public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 2.6.13] x86: check host bridge when applying vendor quirks
@ 2005-09-09  2:33 Chuck Ebbert
  2005-09-09  2:47 ` Andi Kleen
  0 siblings, 1 reply; 5+ messages in thread
From: Chuck Ebbert @ 2005-09-09  2:33 UTC (permalink / raw)
  To: linux-kernel; +Cc: Andi Kleen, Linus Torvalds, Len Brown

I was looking at the i386 ACPI early quirk code and x86_64 equivalent
and it seems to me it should be checking the host bridge vendor, not
the one for various PCI bridges.  Nvidia might release some kind of
PCI card with an embedded bridge that would break this code, for
example.  I made this patch but I can't test it:

Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com>

 arch/i386/kernel/acpi/earlyquirk.c |    2 +-
 arch/x86_64/kernel/io_apic.c       |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

--- 2.6.13a.orig/arch/i386/kernel/acpi/earlyquirk.c
+++ 2.6.13a/arch/i386/kernel/acpi/earlyquirk.c
@@ -36,7 +36,7 @@ void __init check_acpi_pci(void) 
 				if (class == 0xffffffff)
 					break; 
 
-				if ((class >> 16) != PCI_CLASS_BRIDGE_PCI)
+				if ((class >> 16) != PCI_CLASS_BRIDGE_HOST)
 					continue; 
 				
 				vendor = read_pci_config(num, slot, func, 
--- 2.6.13a.orig/arch/x86_64/kernel/io_apic.c
+++ 2.6.13a/arch/x86_64/kernel/io_apic.c
@@ -242,7 +242,7 @@ void __init check_ioapic(void) 
 				if (class == 0xffffffff)
 					break; 
 
-		       		if ((class >> 16) != PCI_CLASS_BRIDGE_PCI)
+		       		if ((class >> 16) != PCI_CLASS_BRIDGE_HOST)
 					continue; 
 
 				vendor = read_pci_config(num, slot, func, 
__
Chuck

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: [patch 2.6.13] x86: check host bridge when applying vendor quirks
@ 2005-09-09  4:44 Chuck Ebbert
  0 siblings, 0 replies; 5+ messages in thread
From: Chuck Ebbert @ 2005-09-09  4:44 UTC (permalink / raw)
  To: Andi Kleen; +Cc: Len Brown, Linus Torvalds, linux-kernel

In-Reply-To: <200509090447.10118.ak@suse.de>

On Fri, 9 Sep 2005 at 04:47:09 +0200, Andi Kleen wrote:

> On Friday 09 September 2005 04:33, Chuck Ebbert wrote:
> > I was looking at the i386 ACPI early quirk code and x86_64 equivalent
> > and it seems to me it should be checking the host bridge vendor, not
> > the one for various PCI bridges.  Nvidia might release some kind of
> > PCI card with an embedded bridge that would break this code, for
> > example.  I made this patch but I can't test it:
>
> It's wrong. On AMD K8 systems the host bridge is always from
> AMD because the Northbridge is part of the CPU.

It's at least right on my system:

00:00.0 Host bridge: ATI Technologies Inc RS480 Host Bridge (rev 01)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
__
Chuck

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-09-09  6:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-09  2:33 [patch 2.6.13] x86: check host bridge when applying vendor quirks Chuck Ebbert
2005-09-09  2:47 ` Andi Kleen
2005-09-09  5:19   ` Piter PUNK
2005-09-09  6:07     ` Andi Kleen
  -- strict thread matches above, loose matches on Subject: below --
2005-09-09  4:44 Chuck Ebbert

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