summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/powernv/pci-ioda.c
diff options
context:
space:
mode:
authorAlexey Kardashevskiy2018-12-19 09:52:23 +0100
committerMichael Ellerman2018-12-21 06:20:46 +0100
commit847e6563aa8c6e335397b821b215ac4313580638 (patch)
treea1a3ade68add9295e1610d4d0fdd9d2334c1cf96 /arch/powerpc/platforms/powernv/pci-ioda.c
parentpowerpc/iommu_api: Move IOMMU groups setup to a single place (diff)
downloadkernel-qcow2-linux-847e6563aa8c6e335397b821b215ac4313580638.tar.gz
kernel-qcow2-linux-847e6563aa8c6e335397b821b215ac4313580638.tar.xz
kernel-qcow2-linux-847e6563aa8c6e335397b821b215ac4313580638.zip
powerpc/powernv: Reference iommu_table while it is linked to a group
The iommu_table pointer stored in iommu_table_group may get stale by accident, this adds referencing and removes a redundant comment about this. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/platforms/powernv/pci-ioda.c')
-rw-r--r--arch/powerpc/platforms/powernv/pci-ioda.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/powerpc/platforms/powernv/pci-ioda.c b/arch/powerpc/platforms/powernv/pci-ioda.c
index 59db3b0f23d3..62f45546e66e 100644
--- a/arch/powerpc/platforms/powernv/pci-ioda.c
+++ b/arch/powerpc/platforms/powernv/pci-ioda.c
@@ -2714,10 +2714,6 @@ static long pnv_pci_ioda2_npu_unset_window(
static void pnv_ioda2_npu_take_ownership(struct iommu_table_group *table_group)
{
- /*
- * Detach NPU first as pnv_ioda2_take_ownership() will destroy
- * the iommu_table if 32bit DMA is enabled.
- */
pnv_npu_take_ownership(gpe_table_group_to_npe(table_group));
pnv_ioda2_take_ownership(table_group);
}