Skip to contentSkip to conversation

PPC64 set tbl->it_type in iommu code

PATCH New Paul Mackerras 1 participant 1 message Aug 16, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PPC64 set tbl->it_type in iommu code

Here is a patch that sets struct iommu_table->it_type to TCE_PCI in pSeries_iommu.c. This is just for code completeness (and it is updated in iSeries_iommu.c, but was somehow missed in pSeries_iommu.c).

arch/ppc64/kernel/pSeries_iommu.c +2 -0
diff -Naurp temp/arch/ppc64/kernel/pSeries_iommu.c risc/arch/ppc64/kernel/pSeries_iommu.c
@@ -211,6 +211,7 @@ static void iommu_table_setparms(struct
 	tbl->it_index = 0;
 	tbl->it_entrysize = sizeof(union tce_entry);
 	tbl->it_blocksize = 16;
+	tbl->it_type = TCE_PCI;
 }
 
 /*
@@ -246,6 +247,7 @@ static void iommu_table_setparms_lpar(st
 	tbl->it_index  = dma_window[0];
 	tbl->it_entrysize = sizeof(union tce_entry);
 	tbl->it_blocksize  = 16;
+	tbl->it_type = TCE_PCI;
 }