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

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

diff -u --recursive --new-file v2.3.40/linux/arch/sparc64/kernel/pci_psycho.c linux/arch/sparc64/kernel/pci_psycho.c
@@ -1284,6 +1284,10 @@
 	memset((char *)tsbbase, 0, PAGE_SIZE << 7);
 #endif
 
+	/* 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;
 	/* Initialize to "none" settings. */

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