patch-2.4.19 linux-2.4.19/arch/alpha/kernel/pci_iommu.c

Next file: linux-2.4.19/arch/alpha/kernel/setup.c
Previous file: linux-2.4.19/arch/alpha/kernel/osf_sys.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/arch/alpha/kernel/pci_iommu.c linux-2.4.19/arch/alpha/kernel/pci_iommu.c
@@ -217,9 +217,14 @@
 	}
 
 	/* If the machine doesn't define a pci_tbi routine, we have to
-	   assume it doesn't support sg mapping.  */
+	   assume it doesn't support sg mapping, and, since we tried to
+	   use direct_map above, it now must be considered an error. */
 	if (! alpha_mv.mv_pci_tbi) {
-		printk(KERN_WARNING "pci_map_single failed: no hw sg\n");
+		static int been_here = 0; /* Only print the message once. */
+		if (!been_here) {
+		    printk(KERN_WARNING "pci_map_single: no HW sg\n");
+		    been_here = 1;
+		}
 		return 0;
 	}
 		

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