login
Header Space

 
 

Re: [patch 00/13] x86: PAT support updated - v3

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: H. Peter Anvin <hpa@...>
Cc: <venkatesh.pallipadi@...>, <ak@...>, <ebiederm@...>, <rdreier@...>, <torvalds@...>, <gregkh@...>, <airlied@...>, <davej@...>, <mingo@...>, <tglx@...>, <akpm@...>, <arjan@...>, <jesse.barnes@...>, <linux-kernel@...>, <suresh.b.siddha@...>
Date: Friday, March 21, 2008 - 3:19 pm

On Fri, Mar 21, 2008 at 06:29:48AM -0700, H. Peter Anvin wrote:

X seems to use (in that order)
- mmap the range through /dev/mem
- Set MTRR for the range to WC

I see this happening on one of my test systems with relatively new xorg.

In this case, when mmap does the reserve for this range, if we give UC mapping
then we will effectively negate the MTRR WC setting with the range being mapped
UC. To accomodate this special use case, we give /dev/mem mmap (only when there
are no other already existing mappings) a UC_MINUS attribute. With that,
if and when X sets MTRR the range will become WC and until that time it will be
UC. We ensure that all page table mappings use UC_MINUS for that range.

Long term, we want X to switch to /proc/ of /sys interfaces. But, we can also
provide backward compatibility for existing X usage like above.

Thanks,
Venki
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [patch 00/13] x86: PAT support updated - v3, H. Peter Anvin, (Fri Mar 21, 9:29 am)
Re: [patch 00/13] x86: PAT support updated - v3, Venki Pallipadi, (Fri Mar 21, 3:19 pm)
Re: [patch 00/13] x86: PAT support updated - v3, H. Peter Anvin, (Fri Mar 21, 3:59 pm)
Re: [patch 00/13] x86: PAT support updated - v3, Ingo Molnar, (Fri Mar 21, 9:24 am)
Re: [patch 00/13] x86: PAT support updated - v3, Venki Pallipadi, (Fri Mar 21, 3:26 pm)
Re: [patch 00/13] x86: PAT support updated - v3, Ingo Molnar, (Fri Mar 21, 10:55 am)
speck-geostationary