Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9c01dda0 authored by Navin Boppuri's avatar Navin Boppuri Committed by Linus Torvalds
Browse files

[PATCH] x86_64: Search K8 devices on more devices.



arch/x86_64/kernel/aperture.c: The search for the AGP bridge has been
extended to search for all the 256 buses instead of the first 32. This
is required since on a some systems, the bridge may be located on a bus
much farther than the first 32. By searching all 256 buses, we guarantee
that the search succeeds on such systems.

arch/x86_64/kernel/pci-gart.c: The search for the Northbridge is not
limited to just bus 0 anymore. This is required because on certain
systems, we may not find one on bus 0.

Signed-off-by: default avatarNavin Boppuri <navin.boppuri@newisys.com>
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 94949436
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -161,7 +161,7 @@ static __u32 __init search_agp_bridge(u32 *order, int *valid_agp)
	int num, slot, func;
	int num, slot, func;


	/* Poor man's PCI discovery */
	/* Poor man's PCI discovery */
	for (num = 0; num < 32; num++) { 
	for (num = 0; num < 256; num++) { 
		for (slot = 0; slot < 32; slot++) { 
		for (slot = 0; slot < 32; slot++) { 
			for (func = 0; func < 8; func++) { 
			for (func = 0; func < 8; func++) { 
				u32 class, cap;
				u32 class, cap;
+1 −3
Original line number Original line Diff line number Diff line
@@ -65,9 +65,7 @@ static u32 gart_unmapped_entry;


#define for_all_nb(dev) \
#define for_all_nb(dev) \
	dev = NULL;	\
	dev = NULL;	\
	while ((dev = pci_get_device(PCI_VENDOR_ID_AMD, 0x1103, dev))!=NULL)\
	while ((dev = pci_get_device(PCI_VENDOR_ID_AMD, 0x1103, dev))!=NULL)
	     if (dev->bus->number == 0 && 				     \
		    (PCI_SLOT(dev->devfn) >= 24) && (PCI_SLOT(dev->devfn) <= 31))


static struct pci_dev *northbridges[MAX_NB];
static struct pci_dev *northbridges[MAX_NB];
static u32 northbridge_flush_word[MAX_NB];
static u32 northbridge_flush_word[MAX_NB];