Re: [PATCH 8/8] iommu: Move default domain allocation to iommu_group_get_for_dev()

2015-10-30 Thread Joerg Roedel
Hi Will, On Thu, Oct 29, 2015 at 06:22:49PM +, Will Deacon wrote: > The call to iommu_group_get_for_dev in arm_smmu_add_device will end up > calling __iommu_attach_device, since group->domain will now be initialised > by the code above. This means the SMMU driver will see an ->attach_dev > cal

Re: [PATCH 8/8] iommu: Move default domain allocation to iommu_group_get_for_dev()

2015-10-29 Thread Will Deacon
Hi Joerg, Looking at this from an SMMU perspective, I think there's an issue with attaching to the default domain like this. On Wed, Oct 21, 2015 at 11:51:43PM +0200, Joerg Roedel wrote: > From: Joerg Roedel > > Now that the iommu core support for iommu groups is not > pci-centric anymore, we c

[PATCH 8/8] iommu: Move default domain allocation to iommu_group_get_for_dev()

2015-10-21 Thread Joerg Roedel
From: Joerg Roedel Now that the iommu core support for iommu groups is not pci-centric anymore, we can move default domain allocation to the bus independent iommu_group_get_for_dev() function. Signed-off-by: Joerg Roedel --- drivers/iommu/iommu.c | 18 ++ 1 file changed, 10 ins