Re: [PATCH 2/3] rfi-flush: Make it possible to call setup_rfi_flush() again

2018-02-14 Thread Michal Suchánek
Hello, On Wed, 14 Feb 2018 19:33:40 -0200 Mauricio Faria de Oliveira wrote: > From: Michael Ellerman > > For PowerVM migration we want to be able to call setup_rfi_flush() > again after we've migrated the partition. > > To support that we

Re: [PATCH] powerpc/xmon: Dont register sysrq key when kernel param xmon=off

2018-02-14 Thread Vaibhav Jain
Thanks for looking into this patch Mpe. Michael Ellerman writes: > > > But the same crash happens with XMON_DEFAULT=n and nothing on the > command line. Yes, XMON_DEFAULT=n and empty boot command line implies xmon=off hence you will see the same issue and this patch should

Re: [PATCH v2] cxl: Remove function write_timebase_ctrl_psl9() for PSL9

2018-02-14 Thread Andrew Donnellan
Acked-by: Andrew Donnellan On 15/02/18 17:19, Vaibhav Jain wrote: For PSL9 the contents of PSL_TB_CTLSTAT register have changed in PSL9 and all of the register is now readonly. Hence we don't need an sl_ops implementation for 'write_timebase_ctrl' for to populate

[PATCH v2] cxl: Remove function write_timebase_ctrl_psl9() for PSL9

2018-02-14 Thread Vaibhav Jain
For PSL9 the contents of PSL_TB_CTLSTAT register have changed in PSL9 and all of the register is now readonly. Hence we don't need an sl_ops implementation for 'write_timebase_ctrl' for to populate this register for PSL9. Hence this patch removes function write_timebase_ctrl_psl9() and its

Re: [PATCH] cxl: Remove function write_timebase_ctrl_psl9() for PSL9

2018-02-14 Thread Vaibhav Jain
Frederic Barrat writes: > The code change looks ok, but am I the only one to think the commit > message doesn't match? The enable bit has always been in the PSL_CONTROL > register, it was just badly documented on p8. What's been removed is > much of the

Re: [PATCH kernel] powerpc/init: Do not advertise radix during client-architecture-support

2018-02-14 Thread Alexey Kardashevskiy
On 09/01/18 16:45, Alexey Kardashevskiy wrote: > Currently the pseries kernel advertises radix MMU support even if > the actual support is disabled via the CONFIG_PPC_RADIX_MMU option. > > This adds a check for CONFIG_PPC_RADIX_MMU to avoid advertising radix > to the hypervisor. > >

Re: [PATCH kernel] powerpc/lpar/debug: Initialize flags before printing debug message

2018-02-14 Thread Alexey Kardashevskiy
On 09/01/18 16:52, Alexey Kardashevskiy wrote: > With enabled DEBUG, there is a compile error: > "error: ‘flags’ is used uninitialized in this function". > > This moves pr_devel() little further where @flags are initialized. > > Signed-off-by: Alexey Kardashevskiy Ping? > ---

Re: samples/seccomp/ broken when cross compiling s390, ppc allyesconfig

2018-02-14 Thread Michael Ellerman
Kees Cook writes: > On Wed, Feb 14, 2018 at 1:20 AM, Michal Hocko wrote: ... >> >> OK, so let's try to nuke it. How should I route this patch? > > I'm fine if goes in via ppc (especially if it can land for 4.16). If > Michael doesn't want it, I can send

Re: [PATCH V3 0/9] powerpc: Support for ibm,dynamic-memory-v2

2018-02-14 Thread Michael Ellerman
Tyrel Datwyler writes: > On 12/03/2017 09:13 PM, Michael Ellerman wrote: >> Nathan Fontenot writes: >> >>> This patch set provides a series of updates to de-couple the LMB >>> information provided in the device tree property from the device

Re: [PATCH] crypto: nx-842: Delete an error message for a failed memory allocation in nx842_pseries_init()

2018-02-14 Thread Dan Streetman
On Wed, Feb 14, 2018 at 11:17 AM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 14 Feb 2018 17:05:13 +0100 > > Omit an extra message for a memory allocation failure in this function. > > This issue was detected by using

Re: 4.16-rc1 virtual machine crash on boot

2018-02-14 Thread Nathan Fontenot
On 02/14/2018 03:37 PM, Tyrel Datwyler wrote: > On 02/13/2018 10:15 PM, Cyril Bur wrote: >> On Tue, 2018-02-13 at 21:12 -0800, Tyrel Datwyler wrote: >>> On 02/13/2018 05:20 PM, Cyril Bur wrote: Hello all, >>> >>> Does reverting commit 02ef6dd8109b581343ebeb1c4c973513682535d6 alleviate >>>

Re: [PATCH V3 0/9] powerpc: Support for ibm,dynamic-memory-v2

2018-02-14 Thread Nathan Fontenot
On 02/14/2018 03:30 PM, Tyrel Datwyler wrote: > On 12/03/2017 09:13 PM, Michael Ellerman wrote: >> Nathan Fontenot writes: >> >>> This patch set provides a series of updates to de-couple the LMB >>> information provided in the device tree property from the device >>>

[PATCH] DEBUG: shortcut mobility fixup/migration store, and abuse no_rfi_flush

2018-02-14 Thread Mauricio Faria de Oliveira
Signed-off-by: Mauricio Faria de Oliveira --- arch/powerpc/kernel/setup_64.c| 8 arch/powerpc/platforms/pseries/mobility.c | 4 2 files changed, 12 insertions(+) diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c

Re: 4.16-rc1 virtual machine crash on boot

2018-02-14 Thread Tyrel Datwyler
On 02/13/2018 10:15 PM, Cyril Bur wrote: > On Tue, 2018-02-13 at 21:12 -0800, Tyrel Datwyler wrote: >> On 02/13/2018 05:20 PM, Cyril Bur wrote: >>> Hello all, >> >> Does reverting commit 02ef6dd8109b581343ebeb1c4c973513682535d6 alleviate the >> issue? >> > > Hi Tyrel, > > No it doesn't. Same

[PATCH 3/3] rfi-flush: Call setup_rfi_flush() after LPM migration

2018-02-14 Thread Mauricio Faria de Oliveira
From: Michael Ellerman We might have migrated to a machine that uses a different flush type, or doesn't need flushing at all. If we migrate to a machine with no flush support, ie. that would use fallback, we just print an error and switch flushing off. We could support

[PATCH 2/3] rfi-flush: Make it possible to call setup_rfi_flush() again

2018-02-14 Thread Mauricio Faria de Oliveira
From: Michael Ellerman For PowerVM migration we want to be able to call setup_rfi_flush() again after we've migrated the partition. To support that we need to check that we're not trying to allocate the fallback flush area after memblock has gone away. If so we just fail,

[PATCH 0/3] Setup RFI flush after PowerVM LPM migration

2018-02-14 Thread Mauricio Faria de Oliveira
This patchset allows for setup_rfi_flush() to be called again after PowerVM LPM (live partition mobility) aka LPAR migration. It's originally written by Michael Ellerman; I just rebased it on top of powerpc/merge as of 2018-02-14 BRST (commit 3f6f556). I tested it with a debug patch (sending

[PATCH 1/3] rfi-flush: Move the logic to avoid a redo into the debugfs code

2018-02-14 Thread Mauricio Faria de Oliveira
From: Michael Ellerman rfi_flush_enable() includes a check to see if we're already enabled (or disabled), and in that case does nothing. But that means calling setup_rfi_flush() a 2nd time doesn't actually work, which is a bit confusing. Move that check into the debugfs

Re: [PATCH V3 0/9] powerpc: Support for ibm,dynamic-memory-v2

2018-02-14 Thread Tyrel Datwyler
On 12/03/2017 09:13 PM, Michael Ellerman wrote: > Nathan Fontenot writes: > >> This patch set provides a series of updates to de-couple the LMB >> information provided in the device tree property from the device >> tree property format. This eases the ability to support

Re: [PATCH] powerpc/via-pmu: Fix section mismatch warning

2018-02-14 Thread Mathieu Malaterre
On Tue, Feb 13, 2018 at 7:54 PM, Laurent Vivier wrote: > On 07/02/2018 20:44, Mathieu Malaterre wrote: >> Remove the __init annotation from pmu_init() to avoid the >> following warning. >> >> WARNING: vmlinux.o(.data+0x4739c): Section mismatch in reference from the >>

[PATCH v2] powerpc/via-pmu: Fix section mismatch warning

2018-02-14 Thread Mathieu Malaterre
Make the struct via_pmu_driver const to avoid following warning: WARNING: vmlinux.o(.data+0x4739c): Section mismatch in reference from the variable via_pmu_driver to the function .init.text:pmu_init() The variable via_pmu_driver references the function __init pmu_init() If the reference is valid

Re: samples/seccomp/ broken when cross compiling s390, ppc allyesconfig

2018-02-14 Thread Kees Cook
On Wed, Feb 14, 2018 at 1:20 AM, Michal Hocko wrote: > On Tue 13-02-18 13:27:30, Kees Cook wrote: >> On Tue, Feb 13, 2018 at 2:32 AM, Michal Hocko wrote: >> > On Tue 13-02-18 21:16:55, Michael Ellerman wrote: >> >> Kees Cook writes:

[RFC PATCH 6/6] enable split pmd ptlock.

2018-02-14 Thread Aneesh Kumar K.V
--- arch/powerpc/platforms/Kconfig.cputype | 4 1 file changed, 4 insertions(+) diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.cputype index a429d859f15d..28ba1acb7842 100644 --- a/arch/powerpc/platforms/Kconfig.cputype +++

[RFC PATCH 5/6] powerpc/mm: Use page fragments for allocation page table at PMD level

2018-02-14 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/book3s/64/pgalloc.h | 9 ++--- arch/powerpc/mm/init-common.c| 2 -- arch/powerpc/mm/pgtable_64.c | 2 +- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git

[RFC PATCH 4/6] powerpc/mm: Simplify the rcu callback for page table free

2018-02-14 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/book3s/32/pgalloc.h | 2 +- arch/powerpc/include/asm/book3s/64/pgalloc.h | 6 ++-- arch/powerpc/include/asm/pgalloc.h | 9 ++ arch/powerpc/mm/pgtable_64.c | 44

[RFC PATCH 3/6] powerpc/mm: Implement helpers for pagetable fragment support at PMD level

2018-02-14 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/book3s/64/hash-4k.h | 4 ++ arch/powerpc/include/asm/book3s/64/hash-64k.h | 4 ++ arch/powerpc/include/asm/book3s/64/mmu.h | 1 + arch/powerpc/include/asm/book3s/64/pgalloc.h | 2 +

[RFC PATCH 2/6] powerpc/mm/4k: Switch 4k pagesize config to use pagetable fragment

2018-02-14 Thread Aneesh Kumar K.V
4K config use one full page at level 4 of the table. Add support single fragment and use that for 4K config. This makes both 4k and 64k use the same code path. Later we will switch pmd to use the page table fragment code Signed-off-by: Aneesh Kumar K.V ---

[RFC PATCH 1/6] powerpc/mm: Rename pte fragment functions

2018-02-14 Thread Aneesh Kumar K.V
We rename the alloc and get_from_cache to indicate they operate on pte fragments. In later patch we will add pmd fragment support. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/mm/pgtable_64.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-)

[RFC PATCH 0/6] powerpc/mm/book3s64: Support for split pmd ptlock

2018-02-14 Thread Aneesh Kumar K.V
This patch series add split pmd pagetable lock for book3s64. nohash64 also should be able to switch to this. I need to workout the code dependency. This series also migh have broken the build on platforms otherthan book3s64. I am sending this early to get feedback on whether we should continue

[PATCH] powerpc: add empty update_numa_cpu_lookup_table for !CONFIG_NUMA

2018-02-14 Thread Corentin Labbe
When CONFIG_NUMA is not set, build fail with: arch/powerpc/platforms/pseries/hotplug-cpu.c:335:4: error: déclaration implicite de la fonction « update_numa_cpu_lookup_table » [-Werror=implicit-function-declaration] So we have to add update_numa_cpu_lookup_table as an empty function when

Re: [PATCH kernel v2] powerpc/mm: Flush radix process translations when setting MMU type

2018-02-14 Thread Michael Ellerman
Laurent Vivier writes: > On 07/02/2018 18:49, Daniel Henrique Barboza wrote: >> On 02/07/2018 12:33 PM, Laurent Vivier wrote: >>> On 01/02/2018 06:09, Alexey Kardashevskiy wrote: Radix guests do normally invalidate process-scoped translations when a new pid is

[GIT PULL] Please pull powerpc/linux.git powerpc-4.16-2 tag

2018-02-14 Thread Michael Ellerman
Hi Linus, Please pull some powerpc fixes for 4.16: The following changes since commit 581e400ff935d34d95811258586128bf11baef15: Merge tag 'modules-for-v4.16' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux (2018-02-07 14:29:34 -0800) are available in the git repository at:

Re: [PATCH] powerpc/xmon: Dont register sysrq key when kernel param xmon=off

2018-02-14 Thread Michael Ellerman
Vaibhav Jain writes: > Thanks for reviewing this patch Balbir > > Balbir Singh writes: > >> Any specific issue you've run into without this patch? > Without this patch since xmon is still accessible via sysrq and there is > no

Re: samples/seccomp/ broken when cross compiling s390, ppc allyesconfig

2018-02-14 Thread Michal Hocko
On Tue 13-02-18 13:27:30, Kees Cook wrote: > On Tue, Feb 13, 2018 at 2:32 AM, Michal Hocko wrote: > > On Tue 13-02-18 21:16:55, Michael Ellerman wrote: > >> Kees Cook writes: > >> > >> > On Mon, Feb 12, 2018 at 7:25 PM, Michael Ellerman