Re: [PATCH] powerpc: align address to page boundary in change_page_attr()

2022-05-15 Thread Michael Ellerman
On Mon, 21 Mar 2022 16:44:45 +0100, Christophe Leroy wrote: > Aligning address to page boundary allows flush_tlb_kernel_range() > to know it's a single page flush and use tlbie instead of tlbia. > > On 603 we now have the following code in first leg of > change_page_attr(): > > 2c: 55 2

[PATCH] powerpc: align address to page boundary in change_page_attr()

2022-03-21 Thread Christophe Leroy
Aligning address to page boundary allows flush_tlb_kernel_range() to know it's a single page flush and use tlbie instead of tlbia. On 603 we now have the following code in first leg of change_page_attr(): 2c: 55 29 00 3c rlwinm r9,r9,0,0,30 30: 91 23 00 00 stw