[PATCH] set tbl->it_type to TCE_PCI in iommu code

Ananth N Mavinakayanahalli ananth at in.ibm.com
Thu Jul 22 21:34:35 EST 2004


Hi Anton,

Here is a patch that sets struct iommu_table->it_type to TCE_PCI in
pSeries_iommu.c. Please apply

Signed-off-by: Ananth N Mavinakayanahalli <ananth at in.ibm.com>


Thanks,
Ananth
--
Ananth Narayan
Linux Technology Center,
IBM Software Lab, INDIA


diff -Naurp temp/linux-2.6.8-rc2/arch/ppc64/kernel/pSeries_iommu.c risc/linux-2.6.8-rc2/arch/ppc64/kernel/pSeries_iommu.c
--- temp/linux-2.6.8-rc2/arch/ppc64/kernel/pSeries_iommu.c	2004-07-18 09:57:47.000000000 +0500
+++ risc/linux-2.6.8-rc2/arch/ppc64/kernel/pSeries_iommu.c	2004-07-22 16:24:53.000000000 +0500
@@ -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;
 }


** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc64-dev mailing list