Skip to content

Commit ed7d9a1

Browse files
committed
powerpc/powernv/pci: Fix missed TCE invalidations that should fallback to OPAL
In commit f0228c4 ("powerpc/powernv/pci: Fallback to OPAL for TCE invalidations"), we added logic to fallback to OPAL for doing TCE invalidations if we can't do it in Linux. Ben sent a v2 of the patch, containing these additional call sites, but I had already applied v1 and didn't notice. So fix them now. Fixes: f0228c4 ("powerpc/powernv/pci: Fallback to OPAL for TCE invalidations") Signed-off-by: Benjamin Herrenschmidt <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
1 parent 29bf282 commit ed7d9a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/powerpc/platforms/powernv/pci-ioda.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2217,7 +2217,7 @@ static long pnv_pci_ioda2_set_window(struct iommu_table_group *table_group,
22172217

22182218
pnv_pci_link_table_and_group(phb->hose->node, num,
22192219
tbl, &pe->table_group);
2220-
pnv_pci_phb3_tce_invalidate_pe(pe);
2220+
pnv_pci_ioda2_tce_invalidate_pe(pe);
22212221

22222222
return 0;
22232223
}
@@ -2355,7 +2355,7 @@ static long pnv_pci_ioda2_unset_window(struct iommu_table_group *table_group,
23552355
if (ret)
23562356
pe_warn(pe, "Unmapping failed, ret = %ld\n", ret);
23572357
else
2358-
pnv_pci_phb3_tce_invalidate_pe(pe);
2358+
pnv_pci_ioda2_tce_invalidate_pe(pe);
23592359

23602360
pnv_pci_unlink_table_and_group(table_group->tables[num], table_group);
23612361

0 commit comments

Comments
 (0)