Re: [PATCH v5 3/6] powerpc/mm/slice: Enhance for supporting PPC32

2018-02-23 Thread Nicholas Piggin
On Thu, 22 Feb 2018 15:27:24 +0100 (CET) Christophe Leroy wrote: > In preparation for the following patch which will fix an issue on > the 8xx by re-using the 'slices', this patch enhances the > 'slices' implementation to support 32 bits CPUs. > > On PPC32, the address space is limited to 4Gbyte

Re: [PATCH v5 2/6] powerpc/mm/slice: create header files dedicated to slices

2018-02-23 Thread Nicholas Piggin
On Thu, 22 Feb 2018 15:27:22 +0100 (CET) Christophe Leroy wrote: > In preparation for the following patch which will enhance 'slices' > for supporting PPC32 in order to fix an issue on hugepages on 8xx, > this patch takes out of page*.h all bits related to 'slices' and put > them into newly creat

[PATCH 3/3] powerpc/64s: micro-optimise __hard_irq_enable() for mtmsrd L=1 support

2018-02-23 Thread Nicholas Piggin
Book3S minimum supported ISA version now requires mtmsrd L=1. This instruction does not require bits other than RI and EE to be supplied, so __hard_irq_enable() and __hard_irq_disable() does not have to read the kernel_msr from paca. Interrupt entry code already relies on L=1 support. Signed-off-

[PATCH 2/3] powerpc/64s: make PACA_IRQ_HARD_DIS track MSR[EE]

2018-02-23 Thread Nicholas Piggin
When the masked interrupt handler clears MSR[EE] for an interrupt in the PACA_IRQ_MUST_HARD_MASK set, it does not set PACA_IRQ_HARD_DIS. This makes them get out of synch. With that taken into account, it's only low level irq manipulation (and interrupt entry before reconcile) where they can be out

[PATCH 1/3] powerpc/pseries: put cede MSR[EE] check under IRQ_SOFT_MASK_DEBUG

2018-02-23 Thread Nicholas Piggin
This check does not catch IRQ soft mask bugs, but this option is slightly more suitable than TRACE_IRQFLAGS. Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/plpar_wrappers.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/include/asm/plpar_wra

[PATCH 0/3] a few small irq improvements

2018-02-23 Thread Nicholas Piggin
Patch 2 is really the main one. Patch 3 assumes we drop POWER4 support as per https://patchwork.ozlabs.org/patch/875852/ Nicholas Piggin (3): powerpc/pseries: put cede MSR[EE] check under IRQ_SOFT_MASK_DEBUG powerpc/64s: make PACA_IRQ_HARD_DIS track MSR[EE] powerpc/64s: micro-optimise __hard

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

2018-02-23 Thread Michael Ellerman
Hi Linus, Please pull some more powerpc fixes for 4.16: The following changes since commit 91ab883eb21325ad80f3473633f794c78ac87f51: Linux 4.16-rc2 (2018-02-18 17:29:42 -0800) are available in the git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git tags/po

Re: [PATCH v4.4 backport 2/3] powerpc/64s: Simple RFI macro conversions

2018-02-23 Thread Michael Ellerman
Greg KH writes: > On Fri, Feb 23, 2018 at 11:11:12PM +1100, Michael Ellerman wrote: >> Michael Ellerman writes: >> > Subject: [PATCH v4.4 backport 2/3] powerpc/64s: Simple RFI macro >> > conversions >> ^ >>4.9 >> >> Gah, sorry just realised these last t

Re: [PATCH v12 1/3] mm, powerpc, x86: define VM_PKEY_BITx bits if CONFIG_ARCH_HAS_PKEYS is enabled

2018-02-23 Thread Ram Pai
ree, please drop us a note to > help improve the system] > > chmod +x ~/bin/make.cross ...snip.. > # save the attached .config to linux build tree > make.cross ARCH=powerpc > > Note: the > linux-review/Ram-Pai/mm-x86-powerpc-Enhancements-to-M

Re: [PATCH 00/38] cxlflash: OpenCXL transport support

2018-02-23 Thread Uma Krishnan
On Feb 22, 2018, at 10:13 PM, Andrew Donnellan wrote:On 23/02/18 09:20, Uma Krishnan wrote:This patch series adds OpenCXL support to the cxlflash driver. Withthis support, new devices using the OpenCXL transport will be supportedby the cxlflash driver along with the existing CXL devices. An effort

[PATCH 3/3] ftrace: Add MODULE_PLTS support

2018-02-23 Thread Alexander Sverdlin
Teach ftrace_make_call() and ftrace_make_nop() about PLTs. Teach PLT code about FTRACE and all its callbacks. Otherwise the following might happen: [ cut here ] WARNING: CPU: 14 PID: 2265 at .../arch/arm/kernel/insn.c:14 __arm_gen_branch+0x83/0x8c() ... Hardware name: LSI

[PATCH 2/3] ARM: PLT: Move struct plt_entries definition to header

2018-02-23 Thread Alexander Sverdlin
No functional change, later it will be re-used in several files. Signed-off-by: Alexander Sverdlin --- arch/arm/include/asm/module.h | 9 + arch/arm/kernel/module-plts.c | 9 - 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/arm/include/asm/module.h b/arch/arm

[PATCH 1/3] ftrace: Add module to ftrace_make_call() parameters

2018-02-23 Thread Alexander Sverdlin
ARM support for modules' PLTs will require a module pointer in ftrace_make_call() exactly as ftrace_make_nop() has it. Change the function signature without functional change for now. Signed-off-by: Alexander Sverdlin --- arch/arm/kernel/ftrace.c | 3 ++- arch/arm64/kernel/ftrace.c

[PATCH 0/3] ARM: Implement MODULE_PLT support in FTRACE

2018-02-23 Thread Alexander Sverdlin
FTRACE's function tracer currently doesn't always work on ARM with MODULE_PLT option enabled. If the module is loaded too far, FTRACE's code modifier cannot cope with introduced veneers and turns the function tracer off globally. ARM64 already has a solution for the problem, refer to the following

[PATCH] powerpc/boot: Fix random build errors

2018-02-23 Thread Guenter Roeck
Once in a while I see build errors similar to the following when building images from a clean tree. Building powerpc:virtex-ml507:44x/virtex5_defconfig ... failed Error log: arch/powerpc/boot/treeboot-akebono.c:37:20: fatal error: libfdt.h: No such file or directory Building

Re: [PATCH] powerpc/powernv: Turn on SCSI_AACRAID in powernv_defconfig

2018-02-23 Thread Brian King
On 02/22/2018 06:16 PM, Stewart Smith wrote: > Michael Ellerman writes: >> Brian King writes: >>> On 09/03/2017 06:19 PM, Stewart Smith wrote: Michael Ellerman writes: >> 2. On a bare metal machine, if you set ipr.fast_reboot=1 on the skiboot >>kernel, then we should also avoid

Re: [PATCH 00/38] cxlflash: OpenCXL transport support

2018-02-23 Thread Uma Krishnan
> On Feb 22, 2018, at 10:13 PM, Andrew Donnellan > wrote: > > On 23/02/18 09:20, Uma Krishnan wrote: >> This patch series adds OpenCXL support to the cxlflash driver. With >> this support, new devices using the OpenCXL transport will be supported >> by the cxlflash driver along with the existin

Re: [PATCH 04/38] cxlflash: Introduce OpenCXL backend

2018-02-23 Thread Uma Krishnan
> On Feb 22, 2018, at 10:28 PM, Andrew Donnellan > wrote: > > On 23/02/18 09:22, Uma Krishnan wrote: >> Add initial infrastructure to support a new cxlflash transport, OpenCXL. >> Claim a dependency on OpenCXL (OCXL) and add a new file, ocxl_hw.c, which >> will host the backend routines that ar

Re: [PATCH 2/2] selftests/powerpc: Add core file test for Protection Key registers

2018-02-23 Thread Ram Pai
On Fri, Feb 23, 2018 at 03:33:44PM -0300, Thiago Jung Bauermann wrote: > This test verifies that the AMR, IAMR and UAMOR are being written to a > process' core file. > Acked-by: Ram Pai Tested-by: Ram Pai > Signed-off-by: Thiago Jung Bauermann > --- > tools/testing/selftests/powerpc/ptrace/M

Re: [PATCH 1/2] selftests/powerpc: Add ptrace tests for Protection Key registers

2018-02-23 Thread Ram Pai
On Fri, Feb 23, 2018 at 03:33:43PM -0300, Thiago Jung Bauermann wrote: > This test exercises read and write access to the AMR, IAMR and UAMOR. > Tested-by: Ram Pai Acked-by: Ram Pai > Signed-off-by: Thiago Jung Bauermann > --- > tools/testing/selftests/powerpc/include/reg.h | 1 + > t

[PATCH 2/2] selftests/powerpc: Add core file test for Protection Key registers

2018-02-23 Thread Thiago Jung Bauermann
This test verifies that the AMR, IAMR and UAMOR are being written to a process' core file. Signed-off-by: Thiago Jung Bauermann --- tools/testing/selftests/powerpc/ptrace/Makefile| 5 +- tools/testing/selftests/powerpc/ptrace/core-pkey.c | 460 + 2 files changed, 464 in

[PATCH 1/2] selftests/powerpc: Add ptrace tests for Protection Key registers

2018-02-23 Thread Thiago Jung Bauermann
This test exercises read and write access to the AMR, IAMR and UAMOR. Signed-off-by: Thiago Jung Bauermann --- tools/testing/selftests/powerpc/include/reg.h | 1 + tools/testing/selftests/powerpc/ptrace/Makefile| 5 +- tools/testing/selftests/powerpc/ptrace/child.h | 130 +++

Re: [PATCH] PCI/AER: Move pci_uevent_ers() out of pci.h

2018-02-23 Thread Bryant G. Ly
On 2/22/18 10:10 PM, Michael Ellerman wrote: > Bjorn Helgaas writes: > >> On Thu, Feb 08, 2018 at 09:05:45AM -0600, Bryant G. Ly wrote: >>> On 2/8/18 6:20 AM, Michael Ellerman wrote: >>> There's no reason pci_uevent_ers() needs to be inline in pci.h, so move it out to a C file. >>

Re: [PATCH v4.4 backport 2/3] powerpc/64s: Simple RFI macro conversions

2018-02-23 Thread Greg KH
On Fri, Feb 23, 2018 at 11:11:12PM +1100, Michael Ellerman wrote: > Michael Ellerman writes: > > Subject: [PATCH v4.4 backport 2/3] powerpc/64s: Simple RFI macro conversions > ^ >4.9 > > Gah, sorry just realised these last two have "v4.4" in the subject, b

Re: [PATCH v4.4 backport 2/3] powerpc/64s: Simple RFI macro conversions

2018-02-23 Thread Michael Ellerman
Michael Ellerman writes: > Subject: [PATCH v4.4 backport 2/3] powerpc/64s: Simple RFI macro conversions ^ 4.9 Gah, sorry just realised these last two have "v4.4" in the subject, but it should be "4.9". cheers

Hotplug + Reboot is crashing HPT guest with HPT resizing enabled

2018-02-23 Thread Bharata B Rao
Hi, Rebooting a hash guest after hotplugging memory to it is crashing the guest. This is seen only when HPT resizing is enabled. I see guest crashing at multiple places, but this location is fairly commonly seen: kernel BUG at mm/slub.c:3912! Testing with latest guest kernel and ppc-for-2.12 bra

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

2018-02-23 Thread Michal Hocko
On Thu 22-02-18 09:30:35, Kees Cook wrote: > On Thu, Feb 22, 2018 at 5:07 AM, Michal Hocko wrote: > > On Wed 14-02-18 09:14:47, Kees Cook wrote: > > [...] > >> I can send it through my seccomp tree via James Morris. > > > > Could you please do it? > > Hi! Yes, sorry, this fell through the cracks.

Re: [PATCH v12 1/3] mm, powerpc, x86: define VM_PKEY_BITx bits if CONFIG_ARCH_HAS_PKEYS is enabled

2018-02-23 Thread kbuild test robot
Hi Ram, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.16-rc2 next-20180223] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

Re: [PATCH 0/5] PPC32/ioremap: Use memblock API to check for RAM

2018-02-23 Thread Christophe LEROY
Le 22/02/2018 à 13:15, Jonathan Neuschäfer a écrit : This patchset solves the same problem as my previous one[1] but follows a rather different approach. Instead of implementing DISCONTIGMEM for PowerPC32, I simply switched the "is this RAM" check in __ioremap_caller to the existing page_is_ram