History

powerpc/pseries: Fix software invalidate TCE

The following added support for powernv but broke pseries/BML: 1f1616e powerpc/powernv: Add TCE SW invalidation support TCE_PCI_SW_INVAL was split into FREE and CREATE flags but the tests in the pseries code were not updated to reflect this.

Michael Neuling committed 14 years ago

Commit bc6dc751 parent 0b17ba71 file · +2 −2Browse files

Unified · Split

arch/powerpc/platforms/pseries/iommu.c+2−2
@@ -106,7 +106,7 @@ static int tce_build_pSeries(struct iommu_table *tbl, long index, · 105 unmodified lines
106106 tcep++;
107107 }
108108
109− if (tbl->it_type == TCE_PCI_SWINV_CREATE)
109+ if (tbl->it_type & TCE_PCI_SWINV_CREATE)
110110 tce_invalidate_pSeries_sw(tbl, tces, tcep - 1);
111111 return 0;
112112 }
@@ -121,7 +121,7 @@ static void tce_free_pSeries(struct iommu_table *tbl, long index, long npages) · 8 unmodified lines
121121 while (npages--)
122122 *(tcep++) = 0;
123123
124− if (tbl->it_type == TCE_PCI_SWINV_FREE)
124+ if (tbl->it_type & TCE_PCI_SWINV_FREE)
125125 tce_invalidate_pSeries_sw(tbl, tces, tcep - 1);
126126 }
127127