Re: [PATCH v1 1/8] powerpc/32s: Always map kernel text and rodata with BATs

2020-12-10 Thread Michael Ellerman
On Wed, 25 Nov 2020 07:10:46 + (UTC), Christophe Leroy wrote: > Since commit 2b279c0348af ("powerpc/32s: Allow mapping with BATs with > DEBUG_PAGEALLOC"), there is no real situation where mapping without > BATs is required. > > In order to simplify memory handling, always map kernel text > and

[PATCH v1 1/8] powerpc/32s: Always map kernel text and rodata with BATs

2020-11-24 Thread Christophe Leroy
Since commit 2b279c0348af ("powerpc/32s: Allow mapping with BATs with DEBUG_PAGEALLOC"), there is no real situation where mapping without BATs is required. In order to simplify memory handling, always map kernel text and rodata with BATs even when "nobats" kernel parameter is set. Also fix the 60