login
Header Space

 
 

Re: [RFC PATCH 02/12] PAT 64b: Basic PAT implementation

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <venkatesh.pallipadi@...>
Cc: <ak@...>, <ebiederm@...>, <rdreier@...>, <torvalds@...>, <gregkh@...>, <airlied@...>, <davej@...>, <mingo@...>, <tglx@...>, <hpa@...>, <akpm@...>, <arjan@...>, <jesse.barnes@...>, <linux-kernel@...>, Suresh Siddha <suresh.b.siddha@...>
Date: Thursday, December 13, 2007 - 11:48 pm

venkatesh.pallipadi@intel.com writes:


Well that wasn't from my original tested patch. Grr.



I strongly object to this configuration.

The caching modes of interest are:
PAT_WB write-back or a close as the MTRRs will allow
       used for WC today.
PAT_UC completely uncachable not overridable by MTRRs 
       and what we use today for pgprot_noncached
PAT_WC what isn't available for current use.

We should use:

Changing the UC- which currently allows write-combining if the MTRRs specify it,
to WC.  This grandfathers in all of our current usage and changes the one
PAT type that could today and in legacy mode specify WC to really specify WC.

I don't know if we need to set the high half or not, that would depend
on the state of the PAT errata.

I do know we need to use the low 4 pat mappings to avoid most of the PAT
errata issues.

As for Andi's concern about modules playing games with the PAT mappings
if we don't redefine how we use the page table entries our exposure to
badly behaved modules more limited.



Eric
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC PATCH 02/12] PAT 64b: Basic PAT implementation, Eric W. Biederman, (Thu Dec 13, 11:48 pm)
Re: [RFC PATCH 02/12] PAT 64b: Basic PAT implementation, Siddha, Suresh B, (Fri Dec 14, 5:06 pm)
Re: [RFC PATCH 02/12] PAT 64b: Basic PAT implementation, H. Peter Anvin, (Fri Dec 14, 3:45 pm)
Re: [RFC PATCH 02/12] PAT 64b: Basic PAT implementation, Eric W. Biederman, (Fri Dec 14, 12:23 am)
Re: [RFC PATCH 02/12] PAT 64b: Basic PAT implementation, Siddha, Suresh B, (Fri Dec 14, 5:10 pm)
Re: [RFC PATCH 02/12] PAT 64b: Basic PAT implementation, Siddha, Suresh B, (Fri Dec 14, 7:34 pm)
Re: [RFC PATCH 02/12] PAT 64b: Basic PAT implementation, Venki Pallipadi, (Fri Dec 14, 2:31 pm)
speck-geostationary