Re: powerpc: fix pgtable pmd cache init

2017-01-18 Thread Michael Ellerman
On Tue, 2017-01-03 at 15:55:17 UTC, Nicholas Piggin wrote: > Commit 9b081e10805cd ("powerpc: port 64 bits pgtable_cache to 32 bits") > mixed up PMD_INDEX_SIZE and PMD_CACHE_INDEX a couple of times. This > resulted in 64s/hash/4k configs to panic at boot with a false positive > error check. > > Fix

Re: [PATCH] powerpc: fix pgtable pmd cache init

2017-01-03 Thread Aneesh Kumar K.V
Nicholas Piggin writes: > On Wed, 04 Jan 2017 07:34:41 +0530 > "Aneesh Kumar K.V" wrote: > >> Nicholas Piggin writes: >> >> > Commit 9b081e10805cd ("powerpc: port 64 bits pgtable_cache to 32 bits") >> > mixed up PMD_INDEX_SIZE and PMD_CACHE_INDEX a couple of times. This >> > resulted in 64s/ha

Re: [PATCH] powerpc: fix pgtable pmd cache init

2017-01-03 Thread Nicholas Piggin
On Wed, 04 Jan 2017 07:34:41 +0530 "Aneesh Kumar K.V" wrote: > Nicholas Piggin writes: > > > Commit 9b081e10805cd ("powerpc: port 64 bits pgtable_cache to 32 bits") > > mixed up PMD_INDEX_SIZE and PMD_CACHE_INDEX a couple of times. This > > resulted in 64s/hash/4k configs to panic at boot with

Re: [PATCH] powerpc: fix pgtable pmd cache init

2017-01-03 Thread Aneesh Kumar K.V
Nicholas Piggin writes: > Commit 9b081e10805cd ("powerpc: port 64 bits pgtable_cache to 32 bits") > mixed up PMD_INDEX_SIZE and PMD_CACHE_INDEX a couple of times. This > resulted in 64s/hash/4k configs to panic at boot with a false positive > error check. > > Fix that and simplify error handling

[PATCH] powerpc: fix pgtable pmd cache init

2017-01-03 Thread Nicholas Piggin
Commit 9b081e10805cd ("powerpc: port 64 bits pgtable_cache to 32 bits") mixed up PMD_INDEX_SIZE and PMD_CACHE_INDEX a couple of times. This resulted in 64s/hash/4k configs to panic at boot with a false positive error check. Fix that and simplify error handling by moving the check to the caller. F