OSDN Git Service

iommu/arm-smmu: handle multi-alias IOMMU groups for PCI devices
authorWill Deacon <will.deacon@arm.com>
Mon, 19 Jan 2015 14:27:33 +0000 (14:27 +0000)
committerDavid Keitel <dkeitel@codeaurora.org>
Tue, 22 Mar 2016 18:14:51 +0000 (11:14 -0700)
commit81eb6eff75e8c17b6c5961877f00d8b8a342eb47
treefc43f3db08f9f2e19d0b8f2354da484d45007bd2
parent922d32b8b4fc9b53e40213fcd6bc5f80fee8d73b
iommu/arm-smmu: handle multi-alias IOMMU groups for PCI devices

IOMMU groups for PCI devices can correspond to multiple DMA aliases due
to things like ACS and PCI quirks.

This patch extends the ARM SMMU ->add_device callback so that we
consider all of the DMA aliases for a PCI IOMMU group, rather than
creating a separate group for each Requester ID.

Change-Id: I3b8e81e17447cc0bbd0f9d299b5494c390372002
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/arm-smmu.c