Commit 47db4c3e authored by Yinghai Lu's avatar Yinghai Lu Committed by Ingo Molnar

x86: checking aperture report for node instead

currently when gart iommu is enabled by BIOS or previous we got

"
Checking aperture...
CPU 0: aperture @4000000 size 64MB
CPU 1: aperture @4000000 size 64MB
"
we should use use Node instead.

we will get
"
Checking aperture...
Node 0: aperture @4000000 size 64MB
Node 1: aperture @4000000 size 64MB
"
Signed-off-by: default avatarYinghai Lu <yinghai.lu@sun.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 74ff305b
...@@ -312,6 +312,7 @@ void __init gart_iommu_hole_init(void) ...@@ -312,6 +312,7 @@ void __init gart_iommu_hole_init(void)
u32 aper_size, aper_alloc = 0, aper_order = 0, last_aper_order = 0; u32 aper_size, aper_alloc = 0, aper_order = 0, last_aper_order = 0;
u64 aper_base, last_aper_base = 0; u64 aper_base, last_aper_base = 0;
int fix, num, valid_agp = 0; int fix, num, valid_agp = 0;
int node;
if (gart_iommu_aperture_disabled || !fix_aperture || if (gart_iommu_aperture_disabled || !fix_aperture ||
!early_pci_allowed()) !early_pci_allowed())
...@@ -320,6 +321,7 @@ void __init gart_iommu_hole_init(void) ...@@ -320,6 +321,7 @@ void __init gart_iommu_hole_init(void)
printk(KERN_INFO "Checking aperture...\n"); printk(KERN_INFO "Checking aperture...\n");
fix = 0; fix = 0;
node = 0;
for (num = 24; num < 32; num++) { for (num = 24; num < 32; num++) {
if (!early_is_k8_nb(read_pci_config(0, num, 3, 0x00))) if (!early_is_k8_nb(read_pci_config(0, num, 3, 0x00)))
continue; continue;
...@@ -332,8 +334,9 @@ void __init gart_iommu_hole_init(void) ...@@ -332,8 +334,9 @@ void __init gart_iommu_hole_init(void)
aper_base = read_pci_config(0, num, 3, 0x94) & 0x7fff; aper_base = read_pci_config(0, num, 3, 0x94) & 0x7fff;
aper_base <<= 25; aper_base <<= 25;
printk(KERN_INFO "CPU %d: aperture @ %Lx size %u MB\n", printk(KERN_INFO "Node %d: aperture @ %Lx size %u MB\n",
num-24, aper_base, aper_size>>20); node, aper_base, aper_size >> 20);
node++;
if (!aperture_valid(aper_base, aper_size)) { if (!aperture_valid(aper_base, aper_size)) {
fix = 1; fix = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment