Re: [PATCH 3/4] cxlflash: Cleanup prints

2017-01-08 Thread Andrew Donnellan
On 07/01/17 01:05, Uma Krishnan wrote: From: "Matthew R. Ochs" The usage of prints within the cxlflash driver is inconsistent. This hinders debug and makes the driver source and log output appear sloppy. The following cleanups help unify the prints within cxlflash: - move all prints to dev-*

Re: [PATCH 1/2] powerpc/perf: Cleanup of PM_BR_CMPL vs. PM_BRU_CMPL in power9 event list

2017-01-08 Thread Madhavan Srinivasan
On Saturday 07 January 2017 02:11 AM, kbuild test robot wrote: Hi Madhavan, [auto build test ERROR on powerpc/next] [also build test ERROR on v4.10-rc2 next-20170106] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.co

Re: ext4 filesystem corruption with 4.10-rc2 on ppc64le

2017-01-08 Thread Chandan Rajendra
On Wednesday, January 04, 2017 10:28:37 AM Theodore Ts'o wrote: > On Wed, Jan 04, 2017 at 11:32:42AM +0530, Chandan Rajendra wrote: > > On Wednesday, January 04, 2017 04:18:08 PM Anton Blanchard wrote: > > > I'm consistently seeing ext4 filesystem corruption using a mainline > > > kernel. It doesn'

[PATCH 9/9] powerpc: A new cache geometry aux vectors

2017-01-08 Thread Benjamin Herrenschmidt
This adds AUX vectors for the L1I,D, L2 and L3 cache levels providing for each cache level the size of the cache in bytes and the geometry (line size and number of ways). We chose to not use the existing alpha/sh definition which packs all the information in a single entry per cache level as it is

[PATCH 8/9] powerpc/64: Hard code cache geometry on POWER8

2017-01-08 Thread Benjamin Herrenschmidt
All shipping firmware versions have it wrong in the device-tree Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/kernel/setup_64.c | 52 +++--- 1 file changed, 49 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/k

[PATCH 7/9] powerpc/64: Add L2 and L3 cache shape info

2017-01-08 Thread Benjamin Herrenschmidt
Retrieved from device-tree when available Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/include/asm/cache.h | 2 ++ arch/powerpc/kernel/setup_64.c | 25 - 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/arch/powerpc/include/asm/cache.h b/arch/p

[PATCH 3/9] powerpc: Remove obsolete comment about patching instructions

2017-01-08 Thread Benjamin Herrenschmidt
We don't patch instructions based on the cache lines or block sizes these days. Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/kernel/setup_64.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c index 6263e0d..222bbb0 10

[PATCH 2/9] powerpc: Move {d, i, u}cache_bsize definitions to a common place

2017-01-08 Thread Benjamin Herrenschmidt
The variables are defined twice in setup_32.c and setup_64.c, do it once in setup-common.c instead Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/kernel/setup-common.c | 9 + arch/powerpc/kernel/setup_32.c | 8 arch/powerpc/kernel/setup_64.c | 8 3 files

[PATCH 1/9] powerpc: Move ARCH_DLINFO out of uapi

2017-01-08 Thread Benjamin Herrenschmidt
It's an kernel private macro, it doesn't belong there Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/include/asm/elf.h | 22 ++ arch/powerpc/include/uapi/asm/elf.h | 23 --- 2 files changed, 22 insertions(+), 23 deletions(-) diff --git a/arch

[PATCH 4/9] powerpc/64: Fix naming of cache block vs. cache line

2017-01-08 Thread Benjamin Herrenschmidt
In a number of places we called "cache line size" what is actually the cache block size, which in the powerpc architecture, means the effective size to use with cache management instructions (it can be different from the actual cache line size). We fix the naming across the board and properly retr

[PATCH 6/9] powerpc/64: Clean up ppc64_caches using a struct per cache

2017-01-08 Thread Benjamin Herrenschmidt
We have two set of identical struct members for the I and D sides and mostly identical bunches of code to parse the device-tree to populate them. Instead make a ppc_cache_info structure with one copy for I and one for D Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/include/asm/cache.h

[PATCH 5/9] powerpc/64: Retrieve number of L1 cache sets from device-tree

2017-01-08 Thread Benjamin Herrenschmidt
It will be used to calculate the associativity Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/include/asm/cache.h | 2 ++ arch/powerpc/kernel/setup_64.c | 27 +-- 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/include/asm/cache.h b

Re: [PATCH] mm: stop leaking PageTables

2017-01-08 Thread Kirill A. Shutemov
On Sat, Jan 07, 2017 at 03:37:31PM -0800, Hugh Dickins wrote: > 4.10-rc loadtest (even on x86, even without THPCache) fails with > "fork: Cannot allocate memory" or some such; and /proc/meminfo > shows PageTables growing. > > rc1 removed the freeing of an unused preallocated pagetable after > do_f

[PATCH] do_direct_IO: Use inode->i_blkbits to compute block count to be cleaned

2017-01-08 Thread Chandan Rajendra
The code currently uses sdio->blkbits to compute the number of blocks to be cleaned. However sdio->blkbits is derived from the logical block size of the underlying block device (Refer to the definition of do_blockdev_direct_IO()). Due to this, generic/299 test would rarely fail when executed on an