diff options
| author | Alexey Kardashevskiy <[email protected]> | 2017-02-21 13:40:20 +1100 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2017-03-20 19:02:49 +1100 |
| commit | 20f13b95eef1b3ca75535e313357b0b096d39336 (patch) | |
| tree | 47f2d539f461096f563af181efaf15059f9480e2 /tools/perf/scripts/python/bin | |
| parent | 81d5fe1a3b1acfaadc7921d08609e097c6345d7f (diff) | |
powerpc/powernv/npu: Remove dead iommu code
PNV_IODA_PE_DEV is only used for NPU devices (emulated PCI bridges
representing NVLink). These are added to IOMMU groups with corresponding
NVIDIA devices after all non-NPU PEs are setup; a special helper -
pnv_pci_ioda_setup_iommu_api() - handles this in pnv_pci_ioda_fixup().
The pnv_pci_ioda2_setup_dma_pe() helper sets up DMA for a PE. It is called
for VFs (so it does not handle NPU case) and PCI bridges but only
IODA1 and IODA2 types. An NPU bridge has its own type id (PNV_PHB_NPU)
so pnv_pci_ioda2_setup_dma_pe() cannot be called on NPU and therefore
(pe->flags & PNV_IODA_PE_DEV) is always "false".
This removes not used iommu_add_device(). This should not cause any
behavioral change.
Signed-off-by: Alexey Kardashevskiy <[email protected]>
Acked-by: Gavin Shan <[email protected]>
Reviewed-by: David Gibson <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions