[PATCH V2 11/11] powerpc/mm: Move hash specific pte bits to be top bits of RPN
Aneesh Kumar K.V
aneesh.kumar at linux.vnet.ibm.com
Fri Mar 17 14:37:15 AEDT 2017
On Friday 17 March 2017 04:04 AM, Paul Mackerras wrote:
> On Thu, Mar 16, 2017 at 04:02:09PM +0530, Aneesh Kumar K.V wrote:
.....
/* pte contains a translation */
>> +
>> +/*
>> + * Top and bottom bits of RPN which can be used by hash
>> + * translation mode, because we expect them to be zero
>> + * otherwise.
>> + */
>> #define _RPAGE_RPN0 0x01000
>> #define _RPAGE_RPN1 0x02000
>> +#define _RPAGE_RPN45 0x0100000000000000UL
>> +#define _RPAGE_RPN44 0x0080000000000000UL
>> +#define _RPAGE_RPN43 0x0040000000000000UL
>> +#define _RPAGE_RPN42 0x0020000000000000UL
>> +#define _RPAGE_RPN41 0x0010000000000000UL
>> +#define _RPAGE_RPN40 0x0008000000000000UL
>
> If RPN0 is 0x1000, then this is actually RPN39 as far as I can see,
> and the other RPN4* bits are likewise off by one.
0x0100000000000000 >> 12 = 0x100000000000
I guess I got that naming wrong. it is 45 bit count hence the numbering
should be RPN44. I will fixup in next update.
-aneesh
More information about the Linuxppc-dev
mailing list