On Thu, 2017-06-01 at 13:30 +0100, Jean-Philippe Brucker wrote: > > Yes, the current plan is to create a PASID (SSID) allocator that could be > used by AMD, Intel, ARM, and other IOMMUs. Currently the kfd driver > allocates PASIDs, but this will be done by the IOMMU subsystem in the > future. Writing the generic allocator isn't on my schedule for the next > few months, though. > > I'm trying to implement the next version of SMMU SVM with the following > principles in mind, and Intel are reworking their PASID allocator similarly. Note that the Intel allocator is designed to work that way and to be easily made generic (that is, easily used from elsewhere).