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
106 tcep++;106 tcep++;
107 }107 }
108 108
109 if (tbl->it_type == TCE_PCI_SWINV_CREATE)109 if (tbl->it_type & TCE_PCI_SWINV_CREATE)
110 tce_invalidate_pSeries_sw(tbl, tces, tcep - 1);110 tce_invalidate_pSeries_sw(tbl, tces, tcep - 1);
111 return 0;111 return 0;
112}112}
@@ -121,7 +121,7 @@ static void tce_free_pSeries(struct iommu_table *tbl, long index, long npages) · 8 unmodified lines
121 while (npages--)121 while (npages--)
122 *(tcep++) = 0;122 *(tcep++) = 0;
123 123
124 if (tbl->it_type == TCE_PCI_SWINV_FREE)124 if (tbl->it_type & TCE_PCI_SWINV_FREE)
125 tce_invalidate_pSeries_sw(tbl, tces, tcep - 1);125 tce_invalidate_pSeries_sw(tbl, tces, tcep - 1);
126}126}
127 127