mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] 2.4.2-acX does not recognize any bus on Intel Serverworks based motherboard
@ 2001-03-02 18:34 Petr Vandrovec
  2001-03-02 23:27 ` Tim Wright
  0 siblings, 1 reply; 2+ messages in thread
From: Petr Vandrovec @ 2001-03-02 18:34 UTC (permalink / raw)
  To: mj; +Cc: linux-kernel, hulinsky

Hi Martin,
  what's idea behind 'pcibios_last_bus >= 0xff' ? On friend's STL2 Intel
motherboard Serverworks bridge contains 0x01 in reg. 0x44 (first bus behind
bridge) and 0xFF in reg. 0x45 (last bus behind bridge).
  This sets pcibios_last_bus to 0xFF in serverworks fixup code. After this
pcibios_fixup_peer_bridges() refuses to do anything, so devices connected
to secondary bus are not visible to system.
  With patch below system sees all devices again - patch is for 2.4.2-ac9.
					Thanks,
						Petr Vandrovec
						vandrove@vc.cvut.cz


diff -urdN linux/arch/i386/kernel/pci-pc.c linux/arch/i386/kernel/pci-pc.c
--- linux/arch/i386/kernel/pci-pc.c	Fri Mar  2 17:55:05 2001
+++ linux/arch/i386/kernel/pci-pc.c	Fri Mar  2 17:56:50 2001
@@ -784,7 +784,7 @@
 	struct pci_dev dev;
 	u16 l;
 
-	if (pcibios_last_bus <= 0 || pcibios_last_bus >= 0xff)
+	if (pcibios_last_bus <= 0 || pcibios_last_bus > 0xff)
 		return;
 	DBG("PCI: Peer bridge fixup\n");
 	for (n=0; n <= pcibios_last_bus; n++) {

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

end of thread, other threads:[~2001-03-02 23:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-02 18:34 [PATCH] 2.4.2-acX does not recognize any bus on Intel Serverworks based motherboard Petr Vandrovec
2001-03-02 23:27 ` Tim Wright

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

all inboxes | Powered by JetHome®