Re: [PATCH v3 1/1] iommu: Bind process address spaces to devices

2019-04-12 Thread Jean-Philippe Brucker
On 12/04/2019 15:59, Joerg Roedel wrote: > Hey Jean-Philippe, > > On Fri, Apr 12, 2019 at 01:23:51PM +0100, Jean-Philippe Brucker wrote: >> I pushed a cleaner version to git://linux-arm.org/linux-jpb.git sva/api >> (with the below mistake fixed as well) and can resend if necessary. > > No need to

Re: [PATCH v3 1/1] iommu: Bind process address spaces to devices

2019-04-12 Thread Joerg Roedel
Hey Jean-Philippe, On Fri, Apr 12, 2019 at 01:23:51PM +0100, Jean-Philippe Brucker wrote: > I pushed a cleaner version to git://linux-arm.org/linux-jpb.git sva/api > (with the below mistake fixed as well) and can resend if necessary. No need to do that, I solved the conflicts I've seen and compil

Re: [PATCH v3 1/1] iommu: Bind process address spaces to devices

2019-04-12 Thread Jean-Philippe Brucker
On 11/04/2019 16:28, Joerg Roedel wrote: > On Wed, Apr 10, 2019 at 04:15:16PM +0100, Jean-Philippe Brucker wrote: >>  drivers/iommu/iommu.c | 104 ++ >>  include/linux/iommu.h |  70 >>  2 files changed, 174 insertions(+) > > Appli

Re: [PATCH v3 1/1] iommu: Bind process address spaces to devices

2019-04-11 Thread Joerg Roedel
On Wed, Apr 10, 2019 at 04:15:16PM +0100, Jean-Philippe Brucker wrote: > drivers/iommu/iommu.c | 104 ++ > include/linux/iommu.h | 70 > 2 files changed, 174 insertions(+) Applied to the api-features branch for now, thanks Jean

[PATCH v3 1/1] iommu: Bind process address spaces to devices

2019-04-10 Thread Jean-Philippe Brucker
Add bind() and unbind() operations to the IOMMU API. iommu_sva_bind_device() binds a device to an mm, and returns a handle to the bond, which is released by calling iommu_sva_unbind_device(). Each mm bound to devices gets a PASID (by convention, a 20-bit system-wide ID representing the address spa