Re: [RFC/PATCH 2/4] powerpc/64/kexec: Fix MMU cleanup on radix

2016-07-07 Thread Benjamin Herrenschmidt
On Fri, 2016-07-08 at 12:55 +1000, Balbir Singh wrote: > + > > +/* For use by kexec */ > > +void mmu_cleanup_all(void) > > +{ > > + if (radix_enabled()) > > + radix__mmu_cleanup_all(); > > > Should this be more than just radix -- cpu_has_feature(CPU_FTR_ARCH_300)? I don't underst

Re: [RFC/PATCH 2/4] powerpc/64/kexec: Fix MMU cleanup on radix

2016-07-07 Thread Balbir Singh
On 06/07/16 14:34, Benjamin Herrenschmidt wrote: > Just using the hash ops won't work anymore since radix will have > NULL in there. Instead create an mmu_cleanup_all() function which > will do the right thing based on the MMU mode. > > For Radix, for now I clear UPRT and the PTCR, effectively s

[RFC/PATCH 2/4] powerpc/64/kexec: Fix MMU cleanup on radix

2016-07-05 Thread Benjamin Herrenschmidt
Just using the hash ops won't work anymore since radix will have NULL in there. Instead create an mmu_cleanup_all() function which will do the right thing based on the MMU mode. For Radix, for now I clear UPRT and the PTCR, effectively switching back to Radix with no partition table setup. Curren