RE: warning in arch/x86/kernel/cpu/mtrr/generic.c:400 with 2.6.29-rc3 on IBM x3400

From: Morten P.D. Stevens
Date: Tue Feb 10 2009 - 16:19:27 EST


Hi,

> can you post /proc/mtrr in 2.6.29-rc3 and old kernel without
warn_on..?

okay... affected are 2.6.26, 2.6.27, 2.6.28 and 2.6.29-rc3. (previous
kernels are not tested)
a small update: debian 2.6.26 lenny default kernel should be also
affected.

here /proc/mtrr from 2.6.28.4:

ibm-x3400:~# cat /proc/mtrr
reg00: base=0x0c0000000 ( 3072MB), size= 1024MB, count=1: uncachable
reg01: base=0x000000000 ( 0MB), size= 4096MB, count=1: write-back
reg02: base=0x100000000 ( 4096MB), size= 1024MB, count=1: write-back
reg03: base=0x0bff80000 ( 3071MB), size= 512KB, count=1: uncachable

/proc/mtrr linux 2.6.24 (from gentoo 2008.0 amd64 livecd) no errors in
dmesg

reg00: base=0xc0000000 (3072MB), size=1024MB: uncachable, count=1
reg01: base=0x00000000 ( 0MB), size=4096MB: write-back, count=1
reg02: base=0x100000000 (4096MB), size=1024MB: write-back, count=1
reg03: base=0xbff80000 (3071MB), size=196608MB: uncachable, count=1

-

Morten

-----Original Message-----
From: Yinghai Lu [mailto:yinghai@xxxxxxxxxx]
Sent: Tuesday, February 10, 2009 9:45 PM
To: Morten P.D. Stevens
Cc: Ingo Molnar; Thomas Gleixner; H. Peter Anvin; Arjan van de Ven;
linux-kernel@xxxxxxxxxxxxxxx
Subject: Re: warning in arch/x86/kernel/cpu/mtrr/generic.c:400 with
2.6.29-rc3 on IBM x3400

Morten P.D. Stevens wrote:
> Hi,
>
>> the line before this? it should tell why BIOS set the mask wrong.
>
> [ 0.000000] mtrr: BIOS set mask_lo: fcffff80 should be ffffff80,
> fixing it up

so BIOS miss two bits in var mtrr regs

can you post /proc/mtrr in 2.6.29-rc3 and old kernel without warn_on..?

YH
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/