mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Helge Hafting <helge.hafting@aitel.hist.no>
To: Yinghai Lu <yhlu.kernel@gmail.com>
Cc: Alexander Huemer <alexander.huemer@sbg.ac.at>,
	"Pallipadi, Venkatesh" <venkatesh.pallipadi@intel.com>,
	"Rafael J. Wysocki" <rjw@sisk.pl>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Andi Kleen <andi@firstfloor.org>
Subject: Re: 2.6.27 mtrr fixes do not work when X starts
Date: Fri, 22 Aug 2008 12:11:07 +0200	[thread overview]
Message-ID: <48AE90BB.5090800@aitel.hist.no> (raw)
In-Reply-To: <86802c440808210827y72bb1ec0ndcb97b00d6af3a9c@mail.gmail.com>

I also see mtrr problems. I use 2.6.27-rc4, with this in my .config:
CONFIG_MTRR=y
CONFIG_MTRR_SANITIZER=y
CONFIG_MTRR_SANITIZER_ENABLE_DEFAULT=1
CONFIG_MTRR_SANITIZER_SPARE_REG_NR_DEFAULT=1
(Have no idea what the last one is about, the docs didn't say.)

Everything is fine during boot, I see this in dmesg:
Found optimal setting for mtrr clean up
gran_size: 1M   chunk_size: 64M         num_reg: 7      lose RAM: 0M
range0: 0000000000000000 - 000000007c000000
Setting variable MTRR 0, base: 0MB, range: 1024MB, type WB
Setting variable MTRR 1, base: 1024MB, range: 512MB, type WB
Setting variable MTRR 2, base: 1536MB, range: 256MB, type WB
Setting variable MTRR 3, base: 1792MB, range: 128MB, type WB
Setting variable MTRR 4, base: 1920MB, range: 64MB, type WB
range: 000000007c000000 - 0000000080000000
Setting variable MTRR 5, base: 1984MB, range: 64MB, type WB
hole: 000000007ff00000 - 0000000080000000
Setting variable MTRR 6, base: 2047MB, range: 1MB, type UC
x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
After WB checking
MTRR MAP PFN: 0000000000000000 - 0000000000080000
After UC checking
MTRR MAP PFN: 0000000000000000 - 000000000007ff00
After sorting
MTRR MAP PFN: 0000000000000000 - 000000000007ff00

X gets problems however, from my Xorg.0.log:(II) VESA(0): initializing int10
(II) VESA(0): Primary V_BIOS segment is: 0xc000
(II) VESA(0): VESA BIOS detected
(II) VESA(0): VESA VBE Version 3.0
(II) VESA(0): VESA VBE Total Mem: 14336 kB
(II) VESA(0): VESA VBE OEM: NVIDIA
(II) VESA(0): VESA VBE OEM Software Rev: 96.134
(II) VESA(0): VESA VBE OEM Vendor: NVIDIA Corporation
(II) VESA(0): VESA VBE OEM Product: G86 Board - dawson0
(II) VESA(0): VESA VBE OEM Product Rev: Chip Rev
(II) VESA(0): Splitting WC range: base: 0xfb000000, size: 0xe00000
(II) VESA(0): Splitting WC range: base: 0xfb800000, size: 0x600000
(==) VESA(0): Write-combining range (0xfbc00000,0x200000)
(WW) VESA(0): Failed to set up write-combining range (0xfb800000,0x600000)
(WW) VESA(0): Failed to set up write-combining range (0xfb000000,0xe00000)
(II) VESA(0): virtual address = 0x7f17bd6dd000,
         physical address = 0xfb000000, size = 14680064

And dmesg says:
mtrr: no more MTRRs available
mtrr: no more MTRRs available

So I get one write-combining range where X wants three.
$ cat /proc/mtrr
reg00: base=0x00000000 (   0MB), size=1024MB: write-back, count=1
reg01: base=0x40000000 (1024MB), size= 512MB: write-back, count=1
reg02: base=0x60000000 (1536MB), size= 256MB: write-back, count=1
reg03: base=0x70000000 (1792MB), size= 128MB: write-back, count=1
reg04: base=0x78000000 (1920MB), size=  64MB: write-back, count=1
reg05: base=0x7c000000 (1984MB), size=  64MB: write-back, count=1
reg06: base=0x7ff00000 (2047MB), size=   1MB: uncachable, count=1
reg07: base=0xfbc00000 (4028MB), size=   2MB: write-combining, count=1

2MB does obviously not cover the entire framebuffer. :-(

Helge Hafting

  parent reply	other threads:[~2008-08-22 10:11 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-06 14:05 2.6.27-rc1 mtrr fixes do not work Alexander Huemer
2008-08-07 20:14 ` Rafael J. Wysocki
2008-08-07 20:15   ` Pallipadi, Venkatesh
2008-08-07 20:23     ` Yinghai Lu
2008-08-07 20:26       ` Yinghai Lu
2008-08-07 22:14         ` Alexander Huemer
2008-08-07 23:16           ` Yinghai Lu
2008-08-07 23:17             ` Yinghai Lu
2008-08-07 23:30               ` Alexander Huemer
2008-08-07 23:58                 ` Yinghai Lu
2008-08-08  0:28                   ` Alexander Huemer
2008-08-14 14:09                   ` Alexander Huemer
2008-08-14 17:31                     ` Yinghai Lu
2008-08-21 14:52                       ` 2.6.27 " Alexander Huemer
2008-08-21 15:27                         ` Yinghai Lu
2008-08-21 18:44                           ` Alexander Huemer
2008-08-22 10:11                           ` Helge Hafting [this message]
2008-08-22 17:24                             ` 2.6.27 mtrr fixes do not work when X starts Yinghai Lu
2008-08-25 11:10                               ` Helge Hafting
2008-08-25 20:08                                 ` Yinghai Lu
2008-08-25 20:19                                   ` Alexander Huemer
2008-08-25 20:22                                     ` Yinghai Lu
     [not found]                                       ` <48B31508.6020305@sbg.ac.at>
     [not found]                                         ` <86802c440808251344h697a27d0i91486a836d258cb@mail.gmail.com>
     [not found]                                           ` <86802c440808251624u181a98eesd8a19ea6fd3d8d8c@mail.gmail.com>
     [not found]                                             ` <48B34056.5080100@sbg.ac.at>
     [not found]                                               ` <86802c440808251633s7bf8ecb2ua6ef187b5be563db@mail.gmail.com>
2008-08-29 15:09                                                 ` 2.6.27 mtrr fixes do not work Alexander Huemer
2008-08-29 17:43                                                   ` Yinghai Lu
2008-08-29 19:10                                                     ` Alexander Huemer
2008-08-29 21:39                                                       ` Yinghai Lu
2008-08-30 11:11                                                     ` Helge Hafting
2008-08-26  9:32                                   ` 2.6.27 mtrr fixes do not work when X starts Helge Hafting
2008-08-26 16:43                                     ` Yinghai Lu
2008-08-27 12:53                                       ` Helge Hafting
2008-08-27 13:03                                         ` Andi Kleen

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=48AE90BB.5090800@aitel.hist.no \
    --to=helge.hafting@aitel.hist.no \
    --cc=alexander.huemer@sbg.ac.at \
    --cc=andi@firstfloor.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rjw@sisk.pl \
    --cc=venkatesh.pallipadi@intel.com \
    --cc=yhlu.kernel@gmail.com \
    /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®