lkml.org 
[lkml]   [2008]   [Jan]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch 0/4] x86: PAT followup - Incremental changes and bug fixes
Eric W. Biederman wrote:
>>
>> | WB WT WC UC
>> ---+---------------
>> WB | WB WT WC UC
>> WT | WT WT UC UC
>> WC | WC UC WC UC
>> UC | UC UC UC UC
>>
>> With the current PAT encoding:
>>
>> WB = 00
>> WT = 01
>> WC = 10
>> UC = 11
>>
>> ... this is simply a bitwise OR. This makes sense, since one of the bits denies
>> delaying writes (WT, UC), and the other denies delaying reads (WC, UC).
>
> Almost. There is a specific case and important where MTRR UC + page table WC == WC.
>
> But yes. For ioremap where we are WB + MTRR == MTRR we need to request the
> same attributes as the e820 map, to get the attribute checking correct.
>

True; however, that shouldn't be followed for the case of conflicting
attempts at mapping.

Now, I *believe* it is safe to have some mappings UC and some WC. This
is also something to keep in mind (there are legitimate applications for
that particular form of aliasing, too.) If so, we may not want to thump
at those.

-hpa


\
 
 \ /
  Last update: 2008-01-24 22:45    [W:0.108 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site