[mainline][libhugetlbfs][ppc] stack_grow_into_huge test results in kernel Oops

2018-02-09 Thread Abdul Haleem
Greetings, Today's mainline kernel Oops when running stack_grow_into_huge Machine: Power 8 bare-metal Kernel: 4.15.0 Config: attached gcc: 4.8.5 Test: libhugetlbfs stack_grow_into_huge (16M: 64) resulted in kernel Oops message and the bad address maps to: # gdb -batch vmlinux -ex 'list

Re: [PATCH] cxl: Enable NORST bit in PSL_DEBUG register for PSL9

2018-02-09 Thread Frederic Barrat
Le 09/02/2018 à 05:09, Vaibhav Jain a écrit : We enable the NORST bit by default for debug afu images to prevent reset of AFU trace-data on a PCI link drop. For production AFU images this bit is always ignored and PSL gets reconfigured anyways thereby resetting the trace data. So setting this

Re: [PATCH kernel v3] powerpc/pci: Fix broken INTx configuration via OF

2018-02-09 Thread Bjorn Helgaas
On Fri, Feb 09, 2018 at 05:23:58PM +1100, Alexey Kardashevskiy wrote: > Commit 59f47eff03a0 ("powerpc/pci: Use of_irq_parse_and_map_pci() helper") > replaced of_irq_parse_pci() + irq_create_of_mapping() with > of_irq_parse_and_map_pci() but this change lost virq returned by >

[PATCH] pseries: Fix build break for SPLPAR=n and CPU hotplug

2018-02-09 Thread Nathan Fontenot
Build break fix for SPLPAR=n builds and CPU hotplug. arch/powerpc/platforms/pseries/hotplug-cpu.o: In function `.dlpar_online_cpu': hotplug-cpu.c:(.text+0xc40): undefined reference to `.find_and_online_cpu_nid' Move the declaration of find_and_online_cpu_nid() to topology.h where we can define

Re: powerpc-linux-gnu-ld: cannot open linker script file arch/powerpc/boot/zImage.coff.lds: No such file or directory

2018-02-09 Thread Segher Boessenkool
Hi! On Fri, Feb 09, 2018 at 12:52:03PM +0100, Mathieu Malaterre wrote: > Is anyone using O= output directory option ? Yes, always. > It seems that git/master is failing: > > $ make O=ppc6xx ARCH=powerpc ppc6xx_defconfig > $ make O=ppc6xx ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- zImage

Re: [PATCH v3 2/4] gpio: Add GPIO driver for Nintendo Wii

2018-02-09 Thread Andy Shevchenko
On Fri, Feb 9, 2018 at 2:07 PM, Jonathan Neuschäfer wrote: > The Nintendo Wii's chipset (called "Hollywood") has a GPIO controller > that supports a configurable number of pins (up to 32), interrupts, and > some special mechanisms to share the controller between the

Re: [RFC][PATCH bpf 1/2] bpf: allow 64-bit offsets for bpf function calls

2018-02-09 Thread Naveen N. Rao
Naveen N. Rao wrote: Alexei Starovoitov wrote: On 2/8/18 4:03 AM, Sandipan Das wrote: The imm field of a bpf_insn is a signed 32-bit integer. For JIT-ed bpf-to-bpf function calls, it stores the offset from __bpf_call_base to the start of the callee function. For some architectures, such as

Re: [PATCH v3 2/4] gpio: Add GPIO driver for Nintendo Wii

2018-02-09 Thread Jonathan Neuschäfer
On Fri, Feb 09, 2018 at 05:30:55PM +0200, Andy Shevchenko wrote: > On Fri, Feb 9, 2018 at 2:07 PM, Jonathan Neuschäfer > wrote: > > The Nintendo Wii's chipset (called "Hollywood") has a GPIO controller > > that supports a configurable number of pins (up to 32), interrupts,

Re: [PATCH v3 2/4] gpio: Add GPIO driver for Nintendo Wii

2018-02-09 Thread Segher Boessenkool
On Fri, Feb 09, 2018 at 01:07:29PM +0100, Jonathan Neuschäfer wrote: > The Nintendo Wii's chipset (called "Hollywood") has a GPIO controller > that supports a configurable number of pins (up to 32), interrupts, and > some special mechanisms to share the controller between the system's > security

Re: [PATCH 1/2] powerpc/mm: Fix crashes with PUD level hugetlb config

2018-02-09 Thread Aneesh Kumar K.V
On 02/09/2018 12:52 AM, Ram Pai wrote: On Thu, Feb 08, 2018 at 04:04:41PM +0530, Aneesh Kumar K.V wrote: To support memory keys, we moved the hash pte slot information to the second half of the page table. This was ok with PTE entries at level 4 and level 3. We already allocate larger page

Re: [PATCH 1/2] powerpc/mm: Fix crashes with PUD level hugetlb config

2018-02-09 Thread Aneesh Kumar K.V
On 02/09/2018 12:59 AM, Ram Pai wrote: On Thu, Feb 08, 2018 at 08:46:27PM +0530, Aneesh Kumar K.V wrote: "Aneesh Kumar K.V" writes: To support memory keys, we moved the hash pte slot information to the second half of the page table. This was ok with PTE

Re: powerpc-linux-gnu-ld: cannot open linker script file arch/powerpc/boot/zImage.coff.lds: No such file or directory

2018-02-09 Thread Mathieu Malaterre
On Fri, Feb 9, 2018 at 4:55 PM, Mathieu Malaterre wrote: > Segher, > > On Fri, Feb 9, 2018 at 3:48 PM, Segher Boessenkool > wrote: >> Hi! >> >> On Fri, Feb 09, 2018 at 12:52:03PM +0100, Mathieu Malaterre wrote: >>> Is anyone using O= output directory

Re: [PATCH v3 2/4] gpio: Add GPIO driver for Nintendo Wii

2018-02-09 Thread Jonathan Neuschäfer
On Fri, Feb 09, 2018 at 01:07:29PM +0100, Jonathan Neuschäfer wrote: > The Nintendo Wii's chipset (called "Hollywood") has a GPIO controller > that supports a configurable number of pins (up to 32), interrupts, and > some special mechanisms to share the controller between the system's > security

Re: powerpc-linux-gnu-ld: cannot open linker script file arch/powerpc/boot/zImage.coff.lds: No such file or directory

2018-02-09 Thread Mathieu Malaterre
Segher, On Fri, Feb 9, 2018 at 3:48 PM, Segher Boessenkool wrote: > Hi! > > On Fri, Feb 09, 2018 at 12:52:03PM +0100, Mathieu Malaterre wrote: >> Is anyone using O= output directory option ? > > Yes, always. Great ! >> It seems that git/master is failing: >> >> $

Re: [PATCH kernel v2] powerpc/pci: Fix broken INTx configuration via OF

2018-02-09 Thread Rob Herring
On Thu, Feb 8, 2018 at 11:54 PM, Michael Ellerman wrote: > Alexey Kardashevskiy writes: > >> Commit 59f47eff03a0 ("powerpc/pci: Use of_irq_parse_and_map_pci() helper") >> replaced of_irq_parse_pci() + irq_create_of_mapping() with >> of_irq_parse_and_map_pci()

Re: [PATCH] crypto: talitos: fix Kernel Oops on hashing an empty file

2018-02-09 Thread Herbert Xu
On Fri, Jan 26, 2018 at 05:09:59PM +0100, Christophe Leroy wrote: > Performing the hash of an empty file leads to a kernel Oops > > [ 44.504600] Unable to handle kernel paging request for data at address > 0x000c > [ 44.512819] Faulting instruction address: 0xc02d2be8 > [ 44.524088]

Re: powerpc/pci: Use of_irq_parse_and_map_pci() helper

2018-02-09 Thread Rob Herring
On Fri, Feb 9, 2018 at 4:01 PM, Mathieu Malaterre wrote: > Hi Rob, > > I can no longer boot my old Mac Mini G4 using a custom config. After a > tedious bisect it appears that (*). Since Mac Mini does not provide > any serial port I cannot provide a kernel message dump (wish

Re: [PATCH] pseries: Fix build break for SPLPAR=n and CPU hotplug

2018-02-09 Thread Tyrel Datwyler
On 02/09/2018 10:13 AM, Nathan Fontenot wrote: > Build break fix for SPLPAR=n builds and CPU hotplug. > > arch/powerpc/platforms/pseries/hotplug-cpu.o: In function `.dlpar_online_cpu': > hotplug-cpu.c:(.text+0xc40): undefined reference to `.find_and_online_cpu_nid' > > Move the declaration of

powerpc/pci: Use of_irq_parse_and_map_pci() helper

2018-02-09 Thread Mathieu Malaterre
Hi Rob, I can no longer boot my old Mac Mini G4 using a custom config. After a tedious bisect it appears that (*). Since Mac Mini does not provide any serial port I cannot provide a kernel message dump (wish there was some kind of null modem serial cable). All I can see is some crazy stuff going

[PATCH 2/4] powerpc/vas: Fix cleanup when VAS is not configured

2018-02-09 Thread Sukadev Bhattiprolu
When VAS is not configured in the system, make sure to remove the VAS debugfs directory and unregister the platform driver. Signed-off-by: Sukadev Bhattiprolu --- arch/powerpc/platforms/powernv/vas-debug.c | 5 + arch/powerpc/platforms/powernv/vas.c | 5

Re: [RFC][PATCH bpf 1/2] bpf: allow 64-bit offsets for bpf function calls

2018-02-09 Thread Alexei Starovoitov
On 2/9/18 8:54 AM, Naveen N. Rao wrote: Naveen N. Rao wrote: Alexei Starovoitov wrote: On 2/8/18 4:03 AM, Sandipan Das wrote: The imm field of a bpf_insn is a signed 32-bit integer. For JIT-ed bpf-to-bpf function calls, it stores the offset from __bpf_call_base to the start of the callee

[PATCH RESEND 1/4] powerpc/vas: Fix order of cleanup in debugfs dir

2018-02-09 Thread Sukadev Bhattiprolu
Fix the order of cleanup to ensure we free the name buffer in case of an error creating 'hvwc' or 'info' files. Signed-off-by: Sukadev Bhattiprolu --- arch/powerpc/platforms/powernv/vas-debug.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH] powerpc/npu-dma.c: Fix crash after __mmu_notifier_register failure

2018-02-09 Thread Mark Hairgrove
pnv_npu2_init_context wasn't checking the return code from __mmu_notifier_register. If __mmu_notifier_register failed, the npu_context was still assigned to the mm and the caller wasn't given any indication that things went wrong. Later on pnv_npu2_destroy_context would be called, which in turn

[PATCH RESEND 3/4] powerpc/vas: Remove a stray line in Makefile

2018-02-09 Thread Sukadev Bhattiprolu
Remove a bogus line from arch/powerpc/platforms/powernv/Makefile that was added by commit ece4e51 ("powerpc/vas: Export HVWC to debugfs"). Signed-off-by: Sukadev Bhattiprolu --- arch/powerpc/platforms/powernv/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git

Re: [PATCH] powerpc/vas: do not set uses_vas for kernel windows

2018-02-09 Thread Sukadev Bhattiprolu
Nicholas Piggin [npig...@gmail.com] wrote: > cp_abort is only required or user windows, because kernel context > must not be preempted between a copy/paste pair. Yes, that is a good optimization. > > Without this patch, the init task gets used_vas set when it runs > the nx842_powernv_init

[PATCH 4/4] powerpc/vas: Add a couple of trace points

2018-02-09 Thread Sukadev Bhattiprolu
Add a couple of trace points in the VAS driver Signed-off-by: Sukadev Bhattiprolu --- Changelog [v2] - Make TRACE_INCLUDE_PATH relative to --- arch/powerpc/platforms/powernv/vas-trace.h | 112

Re: powerpc-linux-gnu-ld: cannot open linker script file arch/powerpc/boot/zImage.coff.lds: No such file or directory

2018-02-09 Thread Segher Boessenkool
On Fri, Feb 09, 2018 at 04:55:20PM +0100, Mathieu Malaterre wrote: > >> $ make O=ppc6xx ARCH=powerpc ppc6xx_defconfig > >> $ make O=ppc6xx ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- zImage > > > > Works fine for me (exact same arch and defconfig). Two differences: > > 1) I also set

powerpc-linux-gnu-ld: cannot open linker script file arch/powerpc/boot/zImage.coff.lds: No such file or directory

2018-02-09 Thread Mathieu Malaterre
Hi there, Is anyone using O= output directory option ? It seems that git/master is failing: $ make O=ppc6xx ARCH=powerpc ppc6xx_defconfig $ make O=ppc6xx ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- zImage (...) Entry Point: 00b001e8 DTC arch/powerpc/boot/asp834x-redboot.dtb WRAP

[PATCH v3 1/4] powerpc: wii: Explicitly configure GPIO owner for poweroff pin

2018-02-09 Thread Jonathan Neuschäfer
The Hollywood chipset's GPIO controller has two sets of registers: One for access by the PowerPC CPU, and one for access by the ARM coprocessor (but both are accessible from the PPC because the memory firewall (AHBPROT) is usually disabled when booting Linux, today). The wii_power_off function

[PATCH v3 3/4] powerpc: wii.dts: Add ngpios property

2018-02-09 Thread Jonathan Neuschäfer
The Hollywood GPIO controller supports 32 GPIOs, but on the Wii, only 24 are used. Signed-off-by: Jonathan Neuschäfer --- v2, v3: - no change --- arch/powerpc/boot/dts/wii.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/boot/dts/wii.dts

Re: [PATCH v3] cpufreq: powernv: Add support of frequency domain

2018-02-09 Thread Rafael J. Wysocki
On Monday, January 22, 2018 9:17:34 AM CET Abhishek Goel wrote: > Frequency-domain indicates group of CPUs that would share same frequency. > It is detected using device-tree node "frequency-domain-indicator". > frequency-domain-indicator is a bitmask which will have different value > depending

[PATCH v3 2/4] gpio: Add GPIO driver for Nintendo Wii

2018-02-09 Thread Jonathan Neuschäfer
The Nintendo Wii's chipset (called "Hollywood") has a GPIO controller that supports a configurable number of pins (up to 32), interrupts, and some special mechanisms to share the controller between the system's security processor (an ARM926) and the PowerPC CPU. Pin multiplexing is not supported.

[PATCH v3 4/4] powerpc: wii.dts: Add GPIO line names

2018-02-09 Thread Jonathan Neuschäfer
These are the GPIO line names on a Nintendo Wii, as documented in: https://wiibrew.org/wiki/Hardware/Hollywood_GPIOs Signed-off-by: Jonathan Neuschäfer --- v2, v3: - no change --- arch/powerpc/boot/dts/wii.dts | 8 1 file changed, 8 insertions(+) diff --git

[PATCH v3 0/4] Nintendo Wii GPIO driver

2018-02-09 Thread Jonathan Neuschäfer
v2: https://www.spinics.net/lists/devicetree/msg211283.html This series adds a driver for the GPIO controller used in the Nintendo Wii game console. Previous versions of this series included a patch to kernel/resource.c ("resource: Extend the PPC32 reserved memory hack") to work around a

Re: [PATCH] cxl: Enable NORST bit in PSL_DEBUG register for PSL9

2018-02-09 Thread christophe lombard
Le 09/02/2018 à 05:09, Vaibhav Jain a écrit : We enable the NORST bit by default for debug afu images to prevent reset of AFU trace-data on a PCI link drop. For production AFU images this bit is always ignored and PSL gets reconfigured anyways thereby resetting the trace data. So setting this

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

2018-02-09 Thread christophe lombard
Le 09/02/2018 à 05:10, Vaibhav Jain a écrit : For PSL9 the time-base enable bit has moved from PSL_TB_CTLSTAT register to PSL_CONTROL register. Hence we don't need an sl_ops implementation for 'write_timebase_ctrl' for PSL9. Hence this patch removes function write_timebase_ctrl_psl9() and its

Re: [PATCH 1/3] cxl: Introduce various enums/defines for PSL9 trace arrays

2018-02-09 Thread christophe lombard
Le 09/02/2018 à 05:25, Vaibhav Jain a écrit : We introduce a new enum named cxl_psl9_traceid that represents individual trace-arrays available on PSL9. In addition a set of new defines named s CXL_PSL9_TRACESTATE_XXX are introduced that represent various states a trace-array can be in. Value of

Re: [PATCH 2/3] cxl: Introduce module parameter 'enable_psltrace'

2018-02-09 Thread christophe lombard
Le 09/02/2018 à 05:25, Vaibhav Jain a écrit : We introduce a new module parameter named 'enable_psltrace' which asks cxl to start(by default) psl-traces on an adapter as soon as its probe is finished. In case this default behavior is not needed then this module parameter can be set to '0'.