Re: [PATCH v3] powerpc/32s: reorder Linux PTE bits to better match Hash PTE bits.

2020-03-26 Thread Michael Ellerman
On Tue, 2020-03-10 at 17:29:12 UTC, Christophe Leroy wrote: > Reorder Linux PTE bits to (almost) match Hash PTE bits. > > RW Kernel : PP = 00 > RO Kernel : PP = 00 > RW User : PP = 01 > RO User : PP = 11 > > So naturally, we should have > _PAGE_USER = 0x001 > _PAGE_RW = 0x002 > > Today 0x0

[PATCH v3] powerpc/32s: reorder Linux PTE bits to better match Hash PTE bits.

2020-03-10 Thread Christophe Leroy
Reorder Linux PTE bits to (almost) match Hash PTE bits. RW Kernel : PP = 00 RO Kernel : PP = 00 RW User : PP = 01 RO User : PP = 11 So naturally, we should have _PAGE_USER = 0x001 _PAGE_RW = 0x002 Today 0x001 and 0x002 and _PAGE_PRESENT and _PAGE_HASHPTE which both are software only bits.