patch-2.3.41 linux/arch/sparc64/kernel/pci_sabre.c

Next file: linux/arch/sparc64/kernel/process.c
Previous file: linux/arch/sparc64/kernel/pci_psycho.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.40/linux/arch/sparc64/kernel/pci_sabre.c linux/arch/sparc64/kernel/pci_sabre.c
@@ -1150,6 +1150,10 @@
 	p->iommu.page_table_map_base = dvma_offset;
 	memset((char *)tsbbase, 0, PAGE_SIZE << order);
 
+	/* Make sure DMA address 0 is never returned just to allow catching
+	   of buggy drivers.  */
+	p->iommu.lowest_free[0] = 1;
+
 #ifndef NEW_PCI_DMA_MAP
 	iopte = (iopte_t *)tsbbase;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)