diff options
| -rw-r--r-- | arch/x86/Kconfig | 4 | ||||
| -rw-r--r-- | arch/x86/kernel/k8.c | 14 | ||||
| -rw-r--r-- | arch/x86/kernel/pci-gart_64.c | 2 | ||||
| -rw-r--r-- | drivers/char/agp/Kconfig | 2 |
4 files changed, 18 insertions, 4 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index eb4092568f9e..ddb52b8d38a7 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig | |||
| @@ -627,7 +627,7 @@ config GART_IOMMU | |||
| 627 | bool "GART IOMMU support" if EMBEDDED | 627 | bool "GART IOMMU support" if EMBEDDED |
| 628 | default y | 628 | default y |
| 629 | select SWIOTLB | 629 | select SWIOTLB |
| 630 | depends on X86_64 && PCI | 630 | depends on X86_64 && PCI && K8_NB |
| 631 | ---help--- | 631 | ---help--- |
| 632 | Support for full DMA access of devices with 32bit memory access only | 632 | Support for full DMA access of devices with 32bit memory access only |
| 633 | on systems with more than 3GB. This is usually needed for USB, | 633 | on systems with more than 3GB. This is usually needed for USB, |
| @@ -2026,7 +2026,7 @@ endif # X86_32 | |||
| 2026 | 2026 | ||
| 2027 | config K8_NB | 2027 | config K8_NB |
| 2028 | def_bool y | 2028 | def_bool y |
| 2029 | depends on AGP_AMD64 || (X86_64 && (GART_IOMMU || (PCI && NUMA))) | 2029 | depends on CPU_SUP_AMD && PCI |
| 2030 | 2030 | ||
| 2031 | source "drivers/pcmcia/Kconfig" | 2031 | source "drivers/pcmcia/Kconfig" |
| 2032 | 2032 | ||
diff --git a/arch/x86/kernel/k8.c b/arch/x86/kernel/k8.c index cbc4332a77b2..9b895464dd03 100644 --- a/arch/x86/kernel/k8.c +++ b/arch/x86/kernel/k8.c | |||
| @@ -121,3 +121,17 @@ void k8_flush_garts(void) | |||
| 121 | } | 121 | } |
| 122 | EXPORT_SYMBOL_GPL(k8_flush_garts); | 122 | EXPORT_SYMBOL_GPL(k8_flush_garts); |
| 123 | 123 | ||
| 124 | static __init int init_k8_nbs(void) | ||
| 125 | { | ||
| 126 | int err = 0; | ||
| 127 | |||
| 128 | err = cache_k8_northbridges(); | ||
| 129 | |||
| 130 | if (err < 0) | ||
| 131 | printk(KERN_NOTICE "K8 NB: Cannot enumerate AMD northbridges.\n"); | ||
| 132 | |||
| 133 | return err; | ||
| 134 | } | ||
| 135 | |||
| 136 | /* This has to go after the PCI subsystem */ | ||
| 137 | fs_initcall(init_k8_nbs); | ||
diff --git a/arch/x86/kernel/pci-gart_64.c b/arch/x86/kernel/pci-gart_64.c index 34de53b46f87..f3af115a573a 100644 --- a/arch/x86/kernel/pci-gart_64.c +++ b/arch/x86/kernel/pci-gart_64.c | |||
| @@ -735,7 +735,7 @@ int __init gart_iommu_init(void) | |||
| 735 | unsigned long scratch; | 735 | unsigned long scratch; |
| 736 | long i; | 736 | long i; |
| 737 | 737 | ||
| 738 | if (cache_k8_northbridges() < 0 || num_k8_northbridges == 0) | 738 | if (num_k8_northbridges == 0) |
| 739 | return 0; | 739 | return 0; |
| 740 | 740 | ||
| 741 | #ifndef CONFIG_AGP_AMD64 | 741 | #ifndef CONFIG_AGP_AMD64 |
diff --git a/drivers/char/agp/Kconfig b/drivers/char/agp/Kconfig index 2fb3a480f6b0..4b66c69eaf57 100644 --- a/drivers/char/agp/Kconfig +++ b/drivers/char/agp/Kconfig | |||
| @@ -57,7 +57,7 @@ config AGP_AMD | |||
| 57 | 57 | ||
| 58 | config AGP_AMD64 | 58 | config AGP_AMD64 |
| 59 | tristate "AMD Opteron/Athlon64 on-CPU GART support" | 59 | tristate "AMD Opteron/Athlon64 on-CPU GART support" |
| 60 | depends on AGP && X86 | 60 | depends on AGP && X86 && K8_NB |
| 61 | help | 61 | help |
| 62 | This option gives you AGP support for the GLX component of | 62 | This option gives you AGP support for the GLX component of |
| 63 | X using the on-CPU northbridge of the AMD Athlon64/Opteron CPUs. | 63 | X using the on-CPU northbridge of the AMD Athlon64/Opteron CPUs. |
