linux-mips
[Top] [All Lists]

Re: [PATCH] pci_auto handles better when no IO/MEM behind P2P bridge

To: linux-mips-kernel@lists.sourceforge.net, linux-mips@oss.sgi.com, ralf@oss.sgi.com
Subject: Re: [PATCH] pci_auto handles better when no IO/MEM behind P2P bridge
From: Jun Sun <jsun@mvista.com>
Date: Thu, 06 Dec 2001 18:27:31 -0800
References: <3C1024A2.F3603F6A@mvista.com>
Sender: owner-linux-mips@oss.sgi.com
Perhaps this one is better.

It wastes a little PCI space, but looks more elegant...  Is elegance still
worth anything? :-)

Jun
diff -Nru linux-2.4.16/arch/mips/kernel/pci_auto.c.orig 
linux-2.4.16/arch/mips/kernel/pci_auto.c
--- linux-2.4.16/arch/mips/kernel/pci_auto.c.orig       Mon Nov 26 18:22:58 2001
+++ linux-2.4.16/arch/mips/kernel/pci_auto.c    Thu Dec  6 18:24:00 2001
@@ -256,6 +256,14 @@
 {
        u32 temp;
 
+       /* 
+        * [jsun] we always bump up baselines a little, so that if there 
+        * nothing behind P2P bridge, we don't wind up overlapping IO/MEM 
+        * spaces.
+        */
+       pciauto_lower_memspc += 1;
+       pciauto_lower_iospc += 1;
+
        /* Configure bus number registers */
        early_write_config_byte(hose, top_bus, current_bus, pci_devfn,
                                PCI_SUBORDINATE_BUS, sub_bus);
<Prev in Thread] Current Thread [Next in Thread>