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.
Unified · Split
| @@ -106,7 +106,7 @@ static int tce_build_pSeries(struct iommu_table *tbl, long index, · 105 unmodified lines | ||
| 106 | 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 | 110 | tce_invalidate_pSeries_sw(tbl, tces, tcep - 1); |
| 111 | 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 | 121 | while (npages--) |
| 122 | 122 | *(tcep++) = 0; |
| 123 | 123 | |
| 124 | − if (tbl->it_type == TCE_PCI_SWINV_FREE) | |
| 124 | + if (tbl->it_type & TCE_PCI_SWINV_FREE) | |
| 125 | 125 | tce_invalidate_pSeries_sw(tbl, tces, tcep - 1); |
| 126 | 126 | } |
| 127 | 127 | |