Re: [PATCH V5 RESEND 1/3] docs: iommu: Documentation for iommu in hi6220 SoC

2015-11-20 Thread Rob Herring
On Fri, Nov 20, 2015 at 10:25:07AM +0800, Chen Feng wrote: > Documentation for hi6220 iommu driver. > > Signed-off-by: Chen Feng Acked-by: Rob Herring > --- > .../bindings/iommu/hisi,hi6220-iommu.txt | 32 > ++ > 1 file

[PATCH v2] iommu/dma: Map scatterlists more parsimoniously

2015-11-20 Thread Robin Murphy
Whilst blindly assuming the worst case for segment boundaries and aligning every segment individually is safe from the point of view of respecting the device's parameters, it is also undeniably a waste of IOVA space. Futhermore, the knock-on effects of more pages than necessary being exposed to

Re: [PATCH 4/4] iommu/vt-d: Do access checks before calling handle_mm_fault()

2015-11-20 Thread David Woodhouse
On Tue, 2015-11-17 at 16:11 +0100, Joerg Roedel wrote: > From: Joerg Roedel > > Not doing so is a bug and might trigger a BUG_ON in > handle_mm_fault(). So add the proper permission checks > before calling into mm code. > > Signed-off-by: Joerg Roedel

Re: [PATCH 1/6] mmput: use notifier chain to call subsystem exit handler.

2015-11-20 Thread David Woodhouse
On Sun, 2015-10-11 at 20:03 +0100, David Woodhouse wrote: > As we try to put together a generic API for device access to processes' > address space, I definitely think we want to stick with the model that > we take a reference on the mm, and we *keep* it until the device driver > unbinds from the

[RFC V4] iommu: arm-smmu: correct group reference count

2015-11-20 Thread Freenix
The basic flow for add a device: arm_smmu_add_device |->iommu_group_get_for_dev |->iommu_group_get return group; (1) |->ops->device_group : Init/increase reference count to/by 1. |->iommu_group_add_device : Increase reference count

[RFC V4] iommu: arm-smmu: correct group reference count

2015-11-20 Thread Freenix
From: Peng Fan The basic flow for add a device: arm_smmu_add_device |->iommu_group_get_for_dev |->iommu_group_get return group; (1) |->ops->device_group : Init/increase reference count to/by 1.

Re: [RFC V4] iommu: arm-smmu: correct group reference count

2015-11-20 Thread Peng Fan
Please ignore this patch, wrong author name. Have reposted V4 with correct author name. Sorry. Regards, Peng. On Fri, Nov 20, 2015 at 04:54:10PM +0800, Freenix wrote: >The basic flow for add a device: > arm_smmu_add_device >|->iommu_group_get_for_dev >|->iommu_group_get >