Gentoo Archives: gentoo-user

From: Bill Longman <bill.longman@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] dmesg warning about mtrr: type mismatch and allocation failed
Date: Thu, 19 Aug 2010 14:48:17
Message-Id: 4C6D4412.6010800@gmail.com
In Reply to: Re: [gentoo-user] dmesg warning about mtrr: type mismatch and allocation failed by Walter Dnes
1 On 08/19/2010 04:37 AM, Walter Dnes wrote:
2 > On Mon, Aug 16, 2010 at 05:55:04PM -0500, Paul Hartman wrote
3 >>
4 >> I had a similar message, it was there because of the fact that i
5 >> specified the wrong (or failed to specify?) mtrr method in my kernel
6 >> boot parameters for the framebuffer. I'm using uvesafb and in kernel
7 >> documentation (/usr/src/linux/Documentation/fb/uvesafb.txt) it
8 >> explains the values and even gives an example of this error and what
9 >> to do about it:
10 >
11 > I'm using the Intel driver, which doesn't have those settings. And
12 > no, I do not want to drop down to a generic VESA driver with no hardware
13 > acceleration. Some more Google searching has turned up a lead.
14 > Apparently, it's possible to manually set the mtrr's, using cat and echo
15 > with /proc/mtrr
16 >
17 > According to "lspci -v", my integrated graphics chip has
18 >
19 > Memory at fb800000 (64-bit, non-prefetchable) [size=4M]
20 > Memory at d0000000 (64-bit, prefetchable) [size=256M]
21 >
22 > My mtrr setup, however, shows up like so...
23 >
24 > waltdnes@i3 ~ $ cat /proc/mtrr
25 > reg00: base=0x000000000 ( 0MB), size= 8192MB, count=1: write-back
26 > reg01: base=0x200000000 ( 8192MB), size= 1024MB, count=1: write-back
27 > reg02: base=0x0c0000000 ( 3072MB), size= 1024MB, count=1: uncachable
28 > reg03: base=0x0b4000000 ( 2880MB), size= 64MB, count=1: uncachable
29 > reg04: base=0x0b8000000 ( 2944MB), size= 128MB, count=1: uncachable
30 > reg05: base=0x1fc000000 ( 8128MB), size= 64MB, count=1: uncachable
31 >
32 > I'll read up more on how to set it up manually. One thing that has my
33 > curiousity right now... how come there's a gig of ram in write-back mode
34 > *STARTING* at 8 gigs, and ending at 9 gigs minus 1 byte, when I only
35 > have 8 gigs of ram in total?
36
37 You might want to have a look in your kernel Documentation directory.
38 There's a file x86/mtrr.txt that gives you some info. And lots in the fb
39 subdirectory. You can probably find some other info there, too. There's
40 lots of the dreaded MTRR info in the kernel_parameters.txt file, so you
41 can setup the MTRRs at boot time.

Replies

Subject Author
Re: [gentoo-user] dmesg warning about mtrr: type mismatch and allocation failed Mick <michaelkintzios@×××××.com>