Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 187897
b: refs/heads/master
c: 0e152cd
h: refs/heads/master
i:
  187895: e52e617
v: v3
  • Loading branch information
Borislav Petkov authored and Ingo Molnar committed Mar 13, 2010
1 parent 214ae06 commit 1b73789
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8447b360a3897bdfb0677107564d1dd9ab6e63be
refs/heads/master: 0e152cd7c16832bd5cadee0c2e41d9959bc9b6f9
4 changes: 2 additions & 2 deletions trunk/arch/x86/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ config GART_IOMMU
bool "GART IOMMU support" if EMBEDDED
default y
select SWIOTLB
depends on X86_64 && PCI
depends on X86_64 && PCI && K8_NB
---help---
Support for full DMA access of devices with 32bit memory access only
on systems with more than 3GB. This is usually needed for USB,
Expand Down Expand Up @@ -2026,7 +2026,7 @@ endif # X86_32

config K8_NB
def_bool y
depends on AGP_AMD64 || (X86_64 && (GART_IOMMU || (PCI && NUMA)))
depends on CPU_SUP_AMD && PCI

source "drivers/pcmcia/Kconfig"

Expand Down
14 changes: 14 additions & 0 deletions trunk/arch/x86/kernel/k8.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,17 @@ void k8_flush_garts(void)
}
EXPORT_SYMBOL_GPL(k8_flush_garts);

static __init int init_k8_nbs(void)
{
int err = 0;

err = cache_k8_northbridges();

if (err < 0)
printk(KERN_NOTICE "K8 NB: Cannot enumerate AMD northbridges.\n");

return err;
}

/* This has to go after the PCI subsystem */
fs_initcall(init_k8_nbs);
2 changes: 1 addition & 1 deletion trunk/arch/x86/kernel/pci-gart_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ int __init gart_iommu_init(void)
unsigned long scratch;
long i;

if (cache_k8_northbridges() < 0 || num_k8_northbridges == 0)
if (num_k8_northbridges == 0)
return 0;

#ifndef CONFIG_AGP_AMD64
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/agp/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ config AGP_AMD

config AGP_AMD64
tristate "AMD Opteron/Athlon64 on-CPU GART support"
depends on AGP && X86
depends on AGP && X86 && K8_NB
help
This option gives you AGP support for the GLX component of
X using the on-CPU northbridge of the AMD Athlon64/Opteron CPUs.
Expand Down

0 comments on commit 1b73789

Please sign in to comment.