]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
x86: amd opteron TOM2 mask val fix
authorYinghai Lu <yhlu.kernel@gmail.com>
Tue, 13 May 2008 00:40:39 +0000 (17:40 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 20 Aug 2008 18:05:09 +0000 (11:05 -0700)
commit 8004dd965b13b01a96def054d420f6df7ff22d53 upstream.

there is a typo in the mask value, need to remove that extra 0,
to avoid 4bit clearing.

Signed-off-by: Yinghal Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Cc: maximilian attems <max@stro.at>
Cc: Peter Palfrader <weasel@debian.org>
Cc: dann frazier <dannf@debian.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kernel/cpu/mtrr/generic.c
arch/x86/pci/k8-bus_64.c

index 5d241ce94a44f4f5b0fceb7a7a8292e08b6d9b08..75b14b12d48cdf382eb8bdc1aa6579f9bed89596 100644 (file)
@@ -219,7 +219,7 @@ void __init get_mtrr_state(void)
                tom2 = hi;
                tom2 <<= 32;
                tom2 |= lo;
-               tom2 &= 0xffffff8000000ULL;
+               tom2 &= 0xffffff800000ULL;
        }
        if (mtrr_show) {
                int high_width;
index 5c2799c20e47b7a48b05e1fd15cbdbc79229d86b..bfefdf0f40d4da01e57ab4db7ddb1af4d9f9e077 100644 (file)
@@ -384,7 +384,7 @@ static int __init early_fill_mp_bus_info(void)
        /* need to take out [0, TOM) for RAM*/
        address = MSR_K8_TOP_MEM1;
        rdmsrl(address, val);
-       end = (val & 0xffffff8000000ULL);
+       end = (val & 0xffffff800000ULL);
        printk(KERN_INFO "TOM: %016lx aka %ldM\n", end, end>>20);
        if (end < (1ULL<<32))
                update_range(range, 0, end - 1);
@@ -478,7 +478,7 @@ static int __init early_fill_mp_bus_info(void)
                /* TOP_MEM2 */
                address = MSR_K8_TOP_MEM2;
                rdmsrl(address, val);
-               end = (val & 0xffffff8000000ULL);
+               end = (val & 0xffffff800000ULL);
                printk(KERN_INFO "TOM2: %016lx aka %ldM\n", end, end>>20);
                update_range(range, 1ULL<<32, end - 1);
        }