login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
September
»
21
Re: MTRR initialization
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Siddha, Suresh B <suresh.b.siddha@...>
To: Howard Chu <hyc@...>
Cc: linux-kernel <linux-kernel@...>
Subject:
Re: MTRR initialization
Date: Friday, September 21, 2007 - 8:27 pm
On Fri, Sep 14, 2007 at 09:33:30AM -0700, Howard Chu wrote:
quoted text
> Hi, was wondering if anyone else has been tripped up by this... I've got > 4GB of > RAM in my Asus A8V Deluxe and memory hole mapping enabled in the BIOS. By > default, my system boots up with these MTRR settings: > > reg00: base=0x00000000 ( 0MB), size=4096MB: write-back, count=1 > reg01: base=0x100000000 (4096MB), size=1024MB: write-back, count=1 > reg02: base=0xc0000000 (3072MB), size=1024MB: uncachable, count=1 > reg03: base=0xc0000000 (3072MB), size= 256MB: write-combining, count=1 > > The X server and various other programs try to add a mapping for my video > card's buffer, at 0xd0000000, size=256MB, type=write-combining, and this > always > fails with a type mismatch error (old type is write-back). Apparently it's > conflicting with mapping register 0. I can't just disable the existing > settings > and re-add them; the system hangs soon after disabling reg01. > > I guess the kernel must be getting the initial setup from the BIOS. I've > hacked > around this in mtrr/generic.c by explicitly changing the MTRR state in > get_mtrr_state to split the first mapping into two; one at base 0 size > 2048M > and one at base 2048M size 1024M. So now I have this, which is pretty much > what > I wanted: > > reg00: base=0x00000000 ( 0MB), size=2048MB: write-back, count=1 > reg01: base=0x80000000 (2048MB), size=1024MB: write-back, count=1 > reg02: base=0x100000000 (4096MB), size=1024MB: write-back, count=1 > reg03: base=0xc0000000 (3072MB), size=1024MB: uncachable, count=1 > reg04: base=0xc0000000 (3072MB), size= 256MB: write-combining, count=1 > reg05: base=0xd0000000 (3328MB), size= 256MB: write-combining, count=1
BTW, having overlapping WC, UC regions make the end result UC. So in this case, you may not be getting the desired performance.
quoted text
> > So the question is - was there an easier/correct way to do this? > > It might have been nice if the MTRR ioctls allowed the register number to > be > specified on the Set commands, though I'm not sure that would have helped > in > this case.
-
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
MTRR initialization
, Howard Chu
, (Fri Sep 14, 12:33 pm)
Re: MTRR initialization
, Siddha, Suresh B
, (Fri Sep 21, 8:27 pm)
Re: MTRR initialization
, Howard Chu
, (Fri Sep 21, 8:46 pm)
Re: MTRR initialization
, Jesse Barnes
, (Wed Sep 19, 5:52 pm)
Re: MTRR initialization
, Andi Kleen
, (Thu Sep 20, 2:50 am)
Re: MTRR initialization
, Jesse Barnes
, (Thu Sep 20, 11:03 am)
Re: MTRR initialization
, Jesse Barnes
, (Thu Sep 20, 1:08 pm)
Re: MTRR initialization
, Avi Kivity
, (Thu Sep 20, 8:05 am)
Re: MTRR initialization
, Andi Kleen
, (Thu Sep 20, 8:10 am)
Re: MTRR initialization
, Avi Kivity
, (Thu Sep 20, 8:46 am)
Re: MTRR initialization
, Yinghai Lu
, (Fri Sep 14, 1:12 pm)
Re: MTRR initialization
, Howard Chu
, (Sun Sep 16, 12:08 pm)
Re: MTRR initialization
, Yinghai Lu
, (Sun Sep 16, 1:53 pm)
Re: MTRR initialization
, Eric W. Biederman
, (Sun Sep 16, 2:40 pm)
Re: MTRR initialization
, Howard Chu
, (Tue Sep 18, 1:53 pm)
Re: MTRR initialization
, Eric W. Biederman
, (Tue Sep 18, 2:18 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
david
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Parag Warudkar
BUG: soft lockup - CPU#1 stuck for 15s! [swapper:0]
holzheu
[RFC/PATCH] Documentation of kernel messages
git
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Antonio Almeida
HTB accuracy for high speed
David Miller
[GIT]: Networking
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
3 users
and
792 guests
online.
Online users
Nelson
cbelgr90
Vince52
Syndicate