Re: [PATCH] powerpc/mm/book3s64/hash: Update 4k PAGE_SIZE kernel mapping

2019-10-16 Thread Benjamin Herrenschmidt
On Wed, 2019-10-16 at 20:30 +1100, Michael Ellerman wrote: > I think the main reason is that in some configurations we can't use 64K > pages for MMIO, so the 64K vmalloc mappings and 4K MMIO mappings need to > be in different segments. > > It's possible that's no longer true on modern configs.

Re: [PATCH] powerpc/mm/book3s64/hash: Update 4k PAGE_SIZE kernel mapping

2019-10-16 Thread Cameron Berkenpas
Seems to work for me so far! I've tried successfully against 5.2.21 and 5.3.6. Thanks! -Cameron On 10/15/19 10:51 PM, Aneesh Kumar K.V wrote: With commit: 0034d395f89d ("powerpc/mm/hash64: Map all the kernel regions in the same 0xc range"), kernel now split the 64TB address range into 4

Re: [PATCH] powerpc/mm/book3s64/hash: Update 4k PAGE_SIZE kernel mapping

2019-10-16 Thread Michael Ellerman
Christoph Hellwig writes: > On Wed, Oct 16, 2019 at 11:21:30AM +0530, Aneesh Kumar K.V wrote: >> With commit: 0034d395f89d ("powerpc/mm/hash64: Map all the kernel >> regions in the same 0xc range"), kernel now split the 64TB address range >> into 4 contexts each of 16TB. That implies we can do

Re: [PATCH] powerpc/mm/book3s64/hash: Update 4k PAGE_SIZE kernel mapping

2019-10-16 Thread Aneesh Kumar K.V
On 10/16/19 11:35 AM, Christoph Hellwig wrote: On Wed, Oct 16, 2019 at 11:21:30AM +0530, Aneesh Kumar K.V wrote: With commit: 0034d395f89d ("powerpc/mm/hash64: Map all the kernel regions in the same 0xc range"), kernel now split the 64TB address range into 4 contexts each of 16TB. That implies

Re: [PATCH] powerpc/mm/book3s64/hash: Update 4k PAGE_SIZE kernel mapping

2019-10-16 Thread Christoph Hellwig
On Wed, Oct 16, 2019 at 11:21:30AM +0530, Aneesh Kumar K.V wrote: > With commit: 0034d395f89d ("powerpc/mm/hash64: Map all the kernel > regions in the same 0xc range"), kernel now split the 64TB address range > into 4 contexts each of 16TB. That implies we can do only 16TB linear > mapping. This

[PATCH] powerpc/mm/book3s64/hash: Update 4k PAGE_SIZE kernel mapping

2019-10-15 Thread Aneesh Kumar K.V
With commit: 0034d395f89d ("powerpc/mm/hash64: Map all the kernel regions in the same 0xc range"), kernel now split the 64TB address range into 4 contexts each of 16TB. That implies we can do only 16TB linear mapping. This results in boot failure on some P9 systems. Fix this by redoing the hash