Re: MTRR initialization

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Eric W. Biederman <ebiederm@...>
Cc: Yinghai Lu <yhlu.kernel@...>, Andi Kleen <ak@...>, linux-kernel <linux-kernel@...>
Date: Tuesday, September 18, 2007 - 1:53 pm

Eric W. Biederman wrote:

Well the BIOS is definitely doing it wrong here. As I mentioned before, it was 
setting up
	0-0x100000000 WB
	0xc0000000 - 0x100000000 UC
	0xc0000000 - 0xd0000000 WC

But the Intel Architecture Software Developer's Manual states that whenever 
any variable MTRR range overlaps with an UC MTRR range, the range remains UC. 
(Section 9.12.2.3). So in fact what I needed to set was
	0-2GB WB
	2-3GB WB
	3-3.25GB WC
and delete the 3-4GB UC range to get the behavior that the BIOS seems to have 
been intending to set up. (Relying on the default of UC for the unspecified 
ranges.)


Hm. Section 9.5.1 of the doc (table 9-5) says that anything marked UC is 
always UC regardless of the bits in the page table. So with the MTRR setup 
that the BIOS left me with, this is still a no-go. There's no way to get the 
desired effect without completely reinitializing the MTRRs.

Of course, this isn't the only problem with these Asus BIOSs...
-- 
   -- Howard Chu
   Chief Architect, Symas Corp.  http://www.symas.com
   Director, Highland Sun        http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP     http://www.openldap.org/project/
-
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)