mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tony Vroon <tony@linx.net>
To: LKML <linux-kernel@vger.kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Subject: Re: MTRR setup failure on Fujitsu Lifebook S761
Date: Mon, 25 Jul 2011 11:39:22 +0100 (BST)	[thread overview]
Message-ID: <20110725103922.5718910089@gold.linx.net> (raw)
In-Reply-To: <20110722081225.2272F10082@gold.linx.net>

On 07/22/11 09:12, Tony Vroon wrote:
> The contents of /proc/mtrr are:
> reg00: base=0x0ffc00000 ( 4092MB), size=    4MB, count=1: write-protect
> reg01: base=0x000000000 (    0MB), size= 2048MB, count=1: write-back
> reg02: base=0x080000000 ( 2048MB), size= 1024MB, count=1: write-back
> reg03: base=0x0c0000000 ( 3072MB), size=  512MB, count=1: write-back
> reg04: base=0x0d0000000 ( 3328MB), size=  256MB, count=1: uncachable
> reg05: base=0x0cc000000 ( 3264MB), size=   64MB, count=1: uncachable
> reg06: base=0x0cb000000 ( 3248MB), size=   16MB, count=1: uncachable
> reg07: base=0x0cac00000 ( 3244MB), size=    4MB, count=1: uncachable
> reg08: base=0x100000000 ( 4096MB), size= 1024MB, count=1: write-back
> reg09: base=0x130000000 ( 4864MB), size=  256MB, count=1: uncachable

I believe this is closer to the optimum:
adrastea ~ # cat /proc/mtrr
reg00: base=0x0ffc00000 ( 4092MB), size=    4MB, count=1: write-protect
reg01: base=0x000000000 (    0MB), size= 2048MB, count=1: write-back
reg02: base=0x080000000 ( 2048MB), size= 1024MB, count=1: write-back
reg03: base=0x0c0000000 ( 3072MB), size=  256MB, count=1: write-back
reg04: base=0x0d0000000 ( 3328MB), size=  256MB, count=1: write-combining
reg05: base=0x100000000 ( 4096MB), size= 1024MB, count=1: write-back
reg09: base=0x130000000 ( 4864MB), size=  256MB, count=1: uncachable

0x0d0000000 is the range triggering the warning before, it is the AGP 
aperture for the Sandy Bridge graphics.

I used the following script to get there:
adrastea ~ # cat /usr/sbin/mtrr.sh 
#!/bin/bash
echo "disable=3" >| /proc/mtrr
echo "disable=4" >| /proc/mtrr
echo "disable=5" >| /proc/mtrr
echo "disable=6" >| /proc/mtrr
echo "disable=7" >| /proc/mtrr
echo "disable=8" >| /proc/mtrr
echo "base=0xc0000000 size=0x10000000 type=write-back" >| /proc/mtrr
echo "base=0xd0000000 size=0x10000000 type=write-combining" >| /proc/mtrr
echo "base=0x100000000 size=0x40000000 type=write-back" >| /proc/mtrr

Two questions remain...
1) Why can't the MTRR sanitizer figure this one out? (Even on 3.0.0-03370-gb6844e8)
2) If the MTRR sanitizer will not be fixed, how can I override the above MTRRs on the kernel command line?

Regards,
-- 
Tony Vroon
UNIX systems administrator
London Internet Exchange Ltd, Trinity Court, Trinity Street,
Peterborough, PE1 1DA
Registered in England number 3137929
E-Mail: tony@linx.net 

  reply	other threads:[~2011-07-25 10:39 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-22  8:12 Tony Vroon
2011-07-25 10:39 ` Tony Vroon [this message]
2011-08-26 12:37 Tony Vroon
2011-08-26 16:37 ` H. Peter Anvin
2011-08-26 19:01   ` Tony Vroon
2011-08-26 21:29     ` Suresh Siddha
2011-08-26 21:39       ` Tony Vroon
2011-08-26 23:40         ` Suresh Siddha
2011-08-27 20:19           ` Tony Vroon
2011-08-26 22:24       ` H. Peter Anvin
2011-08-26 23:51         ` Suresh Siddha
2011-09-02  9:57           ` Tony Vroon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110725103922.5718910089@gold.linx.net \
    --to=tony@linx.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®