Subject: pci_map_page patch

From: Atsushi Nemoto <[email-masked]>
Date: Fri, 09 Nov 2001 17:19:09 +0900 (JST)

pci_map_page() (added in 2.4.14) ignores offset value.

--- linux-sgi-cvs/include/asm-mips/pci.h	Thu Nov  8 16:27:01 2001
+++ linux.new/include/asm-mips/pci.h	Fri Nov  9 16:54:46 2001
@@ -130,6 +130,7 @@
 		BUG();
 
 	addr = (unsigned long) page_address(page);
+	addr += offset;
 #ifndef CONFIG_COHERENT_IO
 	dma_cache_wback_inv(addr, size);
 #endif
---
Atsushi Nemoto