Re: [PATCH 2/2] iommu/arm-smmu: remove homebrew PCI dma alias parsing

2015-01-19 Thread Will Deacon
On Mon, Jan 19, 2015 at 01:43:51PM +, Varun Sethi wrote: > Hi Will, Hey Varun, > > /* > > * Assume Stream ID == Requester ID for now. > > * We need a way to describe the ID mappings in FDT. > > */ > > - pci_for_each_dma_alias(pdev,

RE: [PATCH 2/2] iommu/arm-smmu: remove homebrew PCI dma alias parsing

2015-01-19 Thread Varun Sethi
hat.com > Cc: m-kariche...@ti.com; Will Deacon; iommu@lists.linux-foundation.org; > a...@arndb.de > Subject: [PATCH 2/2] iommu/arm-smmu: remove homebrew PCI dma alias > parsing > > Core code can walk the PCI topology and extract the DMA alias for us whilst > retrieving the IOMMU gro

[PATCH 2/2] iommu/arm-smmu: remove homebrew PCI dma alias parsing

2015-01-16 Thread Will Deacon
Core code can walk the PCI topology and extract the DMA alias for us whilst retrieving the IOMMU group for a device, so use that instead. Signed-off-by: Will Deacon --- drivers/iommu/arm-smmu.c | 58 ++-- 1 file changed, 31 insertions(+), 27 deletions(