diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2016-09-15 03:03:06 -0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2016-09-15 03:05:11 -0400 |
commit | ed7d9a1d7da6fe7b1c7477dc70e95051583fd60c (patch) | |
tree | 1e6764d41f7b846aba193ed1faf9259173abe6da | |
parent | 29bf282dec94f6015a675c007614cb29563f1c18 (diff) |
powerpc/powernv/pci: Fix missed TCE invalidations that should fallback to OPAL
In commit f0228c413011 ("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: f0228c413011 ("powerpc/powernv/pci: Fallback to OPAL for TCE invalidations")
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
-rw-r--r-- | arch/powerpc/platforms/powernv/pci-ioda.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/powernv/pci-ioda.c b/arch/powerpc/platforms/powernv/pci-ioda.c index da5da11a6223..bc0c91e84ca0 100644 --- a/arch/powerpc/platforms/powernv/pci-ioda.c +++ b/arch/powerpc/platforms/powernv/pci-ioda.c | |||
@@ -2217,7 +2217,7 @@ static long pnv_pci_ioda2_set_window(struct iommu_table_group *table_group, | |||
2217 | 2217 | ||
2218 | pnv_pci_link_table_and_group(phb->hose->node, num, | 2218 | pnv_pci_link_table_and_group(phb->hose->node, num, |
2219 | tbl, &pe->table_group); | 2219 | tbl, &pe->table_group); |
2220 | pnv_pci_phb3_tce_invalidate_pe(pe); | 2220 | pnv_pci_ioda2_tce_invalidate_pe(pe); |
2221 | 2221 | ||
2222 | return 0; | 2222 | return 0; |
2223 | } | 2223 | } |
@@ -2355,7 +2355,7 @@ static long pnv_pci_ioda2_unset_window(struct iommu_table_group *table_group, | |||
2355 | if (ret) | 2355 | if (ret) |
2356 | pe_warn(pe, "Unmapping failed, ret = %ld\n", ret); | 2356 | pe_warn(pe, "Unmapping failed, ret = %ld\n", ret); |
2357 | else | 2357 | else |
2358 | pnv_pci_phb3_tce_invalidate_pe(pe); | 2358 | pnv_pci_ioda2_tce_invalidate_pe(pe); |
2359 | 2359 | ||
2360 | pnv_pci_unlink_table_and_group(table_group->tables[num], table_group); | 2360 | pnv_pci_unlink_table_and_group(table_group->tables[num], table_group); |
2361 | 2361 | ||