public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ppc/ppc64: Fix g5 access to PCI IO cycles
@ 2004-09-29  4:08 Benjamin Herrenschmidt
  0 siblings, 0 replies; only message in thread
From: Benjamin Herrenschmidt @ 2004-09-29  4:08 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Linus Torvalds, Linux Kernel list, Owen Stampflee

Hi !

Looks like we never needed them, since that bug has been there forever,
I didn't get the right base for the IO cycles on the G5 host bridge
in the first place (I probably misinterpreted some OF forth code or
something like that).

Here's the fix:

===== arch/ppc/platforms/pmac_pci.c 1.23 vs edited =====
--- 1.23/arch/ppc/platforms/pmac_pci.c	2004-09-21 11:17:40 +10:00
+++ edited/arch/ppc/platforms/pmac_pci.c	2004-09-29 14:05:15 +10:00
@@ -716,7 +716,7 @@
 	 * properties or figuring out the U3 address space decoding logic and
 	 * then read its configuration register (if any).
 	 */
-	hose->io_base_phys = 0xf4000000 + 0x00400000;
+	hose->io_base_phys = 0xf4000000;
 	hose->io_base_virt = ioremap(hose->io_base_phys, 0x00400000);
 	isa_io_base = (unsigned long) hose->io_base_virt;
 	hose->io_resource.name = np->full_name;
===== arch/ppc64/kernel/pmac_pci.c 1.9 vs edited =====
--- 1.9/arch/ppc64/kernel/pmac_pci.c	2004-09-27 19:12:49 +10:00
+++ edited/arch/ppc64/kernel/pmac_pci.c	2004-09-29 14:05:38 +10:00
@@ -419,7 +419,7 @@
 	 * properties or figuring out the U3 address space decoding logic and
 	 * then read it's configuration register (if any).
 	 */
-	hose->io_base_phys = 0xf4000000 + 0x00400000;
+	hose->io_base_phys = 0xf4000000;
 	hose->io_base_virt = ioremap(hose->io_base_phys, 0x00400000);
 	isa_io_base = pci_io_base = (unsigned long) hose->io_base_virt;
 	hose->io_resource.name = np->full_name;



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-09-29  4:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-29  4:08 [PATCH] ppc/ppc64: Fix g5 access to PCI IO cycles Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox