mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] [for 2.6.15] Fix dumb bug in mmconfig fix
@ 2005-12-16  0:04 Andi Kleen
  0 siblings, 0 replies; only message in thread
From: Andi Kleen @ 2005-12-16  0:04 UTC (permalink / raw)
  To: gregkh; +Cc: linux-kernel


Use correct address when referencing mmconfig aperture while checking
for broken MCFG.  This was a typo when porting the code from 64bit to 
32bit.  It caused oopses at boot on some ThinkPads. 

Should definitely go into 2.6.15.

Signed-off-by: Andi Kleen <ak@suse.de>

Index: linux/arch/i386/pci/mmconfig.c
===================================================================
--- linux.orig/arch/i386/pci/mmconfig.c
+++ linux/arch/i386/pci/mmconfig.c
@@ -155,7 +155,7 @@ static __init void unreachable_devices(v
 		addr = get_base_addr(0, 0, PCI_DEVFN(i, 0));
 		if (addr != 0)
 			pci_exp_set_dev_base(addr, 0, PCI_DEVFN(i, 0));
-		if (addr == 0 || readl((u32 *)addr) != val1)
+		if (addr == 0 || readl((u32 *)mmcfg_virt_addr) != val1)
 			set_bit(i, fallback_slots);
 		spin_unlock_irqrestore(&pci_config_lock, flags);
 	}


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

only message in thread, other threads:[~2005-12-16  0:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-16  0:04 [PATCH] [for 2.6.15] Fix dumb bug in mmconfig fix Andi Kleen

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®