Printing of machine check severity

2019-03-04 Thread Michael Ellerman
Hi all, RE: https://github.com/linuxppc/issues/issues/230 > Host dmesg throws lot of below SLB [Multihit] HMI's > > [295216.837358] Severe Machine check interrupt [Recovered] > [295216.837365] Harmless Hypervisor Maintenance interrupt [Recovered] > [295216.837374] Guest NIP: c024a7dc >

Re: [PATCH RFC v4 2/9] powerpc/powernv/pci: Suppress an EEH error when reading an empty slot

2019-03-04 Thread Oliver
On Sat, Mar 2, 2019 at 3:04 AM Sergey Miroshnichenko wrote: > > Reading an empty slot returns all ones, which triggers a false > EEH error event on PowerNV. This patch unfreezes the bus where > it has happened. > > Signed-off-by: Sergey Miroshnichenko > --- > arch/powerpc/include/asm/ppc-pci.h

[PATCH] powerpc: config: Sync skiroot defconfig

2019-03-04 Thread Joel Stanley
This updates the skiroot defconfig with the version from the OpenPower firmwre build tree. Important changes are the addition of QED and E1000E ethernet drivers. Signed-off-by: Joel Stanley --- Generated on top of next-20190304 arch/powerpc/configs/skiroot_defconfig | 11 +-- 1 file

Re: [PATCH] Disable kcov for slb routines.

2019-03-04 Thread Andrew Donnellan
On 4/3/19 7:25 pm, Mahesh J Salgaonkar wrote: From: Mahesh Salgaonkar The kcov instrumentation inside SLB routines causes duplicate SLB entries to be added resulting into SLB multihit machine checks. Disable kcov instrumentation on slb.o Signed-off-by: Mahesh Salgaonkar Summary line needs a

Re: [PATCH 3/6] x86: clean up _TIF_SYSCALL_EMU handling using ptrace_syscall_enter hook

2019-03-04 Thread Haibo Xu (Arm Technology China)
On 2019/3/4 18:12, Sudeep Holla wrote: > On Mon, Mar 04, 2019 at 08:25:28AM +, Haibo Xu (Arm Technology China) > wrote: >> On 2019/3/1 2:32, Sudeep Holla wrote: >>> Now that we have a new hook ptrace_syscall_enter that can be called from >>> syscall entry code and it handles PTRACE_SYSEMU in g

Re: [PATCH RESEND v5 1/3] ASoC: fsl: Add Audio Mixer CPU DAI driver

2019-03-04 Thread kbuild test robot
Hi Viorel, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on asoc/for-next] [also build test WARNING on v5.0 next-20190304] [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

Re: [PATCH RESEND v5 1/3] ASoC: fsl: Add Audio Mixer CPU DAI driver

2019-03-04 Thread kbuild test robot
Hi Viorel, Thank you for the patch! Yet something to improve: [auto build test ERROR on asoc/for-next] [also build test ERROR on v5.0 next-20190304] [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

[RFC v3] sched/topology: fix kernel crash when a CPU is hotplugged in a memoryless node

2019-03-04 Thread Laurent Vivier
When we hotplug a CPU in a memoryless/cpuless node, the kernel crashes when it rebuilds the sched_domains data. I reproduce this problem on POWER and with a pseries VM, with the following QEMU parameters: -machine pseries -enable-kvm -m 8192 \ -smp 2,maxcpus=8,sockets=4,cores=2,threads=1 \

[PATCH] powerpc/hmi: Fix kernel hang when TB is in error state.

2019-03-04 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar On TOD/TB errors timebase register stops/freezes until HMI error recovery gets TOD/TB back into running state. On successful recovery, TB starts running again and udelay() that relies on TB value continues to function properly. But in case when HMI fails to recover from TO

Re: [PULL REQUEST] powerpc generic command line

2019-03-04 Thread Daniel Walker
On Mon, Mar 04, 2019 at 06:29:12PM +0100, Christophe Leroy wrote: > > > Le 04/03/2019 à 17:57, Daniel Walker a écrit : > > On Mon, Mar 04, 2019 at 02:55:08PM +0100, Christophe Leroy wrote: > > > > > > > > > Le 01/03/2019 à 20:44, Daniel Walker a écrit : > > > > Here are the generic command line

Re: [PULL REQUEST] powerpc generic command line

2019-03-04 Thread Christophe Leroy
Le 04/03/2019 à 17:57, Daniel Walker a écrit : On Mon, Mar 04, 2019 at 02:55:08PM +0100, Christophe Leroy wrote: Le 01/03/2019 à 20:44, Daniel Walker a écrit : Here are the generic command line changes for powerpc. These changes have been in linux-next for two cycles, with few problems r

Re: [PULL REQUEST] powerpc generic command line

2019-03-04 Thread Daniel Walker
On Mon, Mar 04, 2019 at 02:55:08PM +0100, Christophe Leroy wrote: > > > Le 01/03/2019 à 20:44, Daniel Walker a écrit : > > Here are the generic command line changes for powerpc. > > > > These changes have been in linux-next for two cycles, with few problems > > reported. > > It's also been used

Re: [PATCH 2/3] powerpc: convert to generic builtin command line

2019-03-04 Thread Christophe Leroy
Le 04/03/2019 à 15:26, Christophe Leroy a écrit : Le 01/03/2019 à 20:44, Daniel Walker a écrit : This updates the powerpc code to use the CONFIG_GENERIC_CMDLINE option. Please explain more in details how each powerpc option is replaced by one of the generic options. [maksym.kok...@gl

Re: [PATCH 2/3] powerpc: convert to generic builtin command line

2019-03-04 Thread Christophe Leroy
Le 01/03/2019 à 20:44, Daniel Walker a écrit : This updates the powerpc code to use the CONFIG_GENERIC_CMDLINE option. Please explain more in details how each powerpc option is replaced by one of the generic options. [maksym.kok...@globallogic.com: add strlcat to prom_init_check.sh whit

Re: [PATCH 1/3] add generic builtin command line

2019-03-04 Thread Christophe Leroy
Le 01/03/2019 à 20:44, Daniel Walker a écrit : This code allows architectures to use a generic builtin command line. The state of the builtin command line options across architecture is diverse. On x86 and mips they have pretty much the same code and the code prepends the builtin command line

Re: [PULL REQUEST] powerpc generic command line

2019-03-04 Thread Christophe Leroy
Le 01/03/2019 à 20:44, Daniel Walker a écrit : Here are the generic command line changes for powerpc. These changes have been in linux-next for two cycles, with few problems reported. It's also been used at Cisco Systems, Inc. in production products for many many years with no problems. Ple

Re: [PATCH 5/8] iio/counter: add FlexTimer Module Quadrature decoder counter driver

2019-03-04 Thread Patrick Havelange
On Wed, Feb 20, 2019 at 5:42 PM Jonathan Cameron wrote: [skipped] > > + > > +struct ftm_quaddec { > > + struct platform_device *pdev; > > + void __iomem *ftm_base; > > + bool big_endian; > > I'm curious. What is the benefit of running in big endian mode? It is based on the same behavi

Re: [PATCH 2/6] ptrace: introduce ptrace_syscall_enter to consolidate PTRACE_SYSEMU handling

2019-03-04 Thread Sudeep Holla
On Mon, Mar 04, 2019 at 06:23:32AM -0600, Segher Boessenkool wrote: > On Mon, Mar 04, 2019 at 10:46:43AM +, Sudeep Holla wrote: > > On Mon, Mar 04, 2019 at 08:03:47AM +, Haibo Xu (Arm Technology China) > > wrote: > > > On 2019/3/1 2:32, Sudeep Holla wrote: > > > > +long ptrace_syscall_ente

Re: [PATCH 2/6] ptrace: introduce ptrace_syscall_enter to consolidate PTRACE_SYSEMU handling

2019-03-04 Thread Segher Boessenkool
On Mon, Mar 04, 2019 at 10:46:43AM +, Sudeep Holla wrote: > On Mon, Mar 04, 2019 at 08:03:47AM +, Haibo Xu (Arm Technology China) > wrote: > > On 2019/3/1 2:32, Sudeep Holla wrote: > > > +long ptrace_syscall_enter(struct pt_regs *regs) > > > +{ > > > +#ifdef TIF_SYSCALL_EMU > > > + if (tes

Re: [PATCH RFC v4 0/9] powerpc/powernv/pci: Make hotplug self-sufficient, independent of FW and DT

2019-03-04 Thread Oliver
On Sat, Mar 2, 2019 at 3:04 AM Sergey Miroshnichenko wrote: > > This patchset allows switching from the pnv_php module to the standard > pciehp driver for PCIe hotplug functionality, if the platform supports it: > PowerNV working on on top of the skiboot with the "core/pci: Sync VFs and > the chan

Re: [PATCH] tools: testing: selftests: Remove duplicate headers

2019-03-04 Thread Souptick Joarder
On Tue, Feb 26, 2019 at 10:59 AM Souptick Joarder wrote: > > On Tue, Feb 26, 2019 at 7:18 AM Michael Ellerman wrote: > > > > Souptick Joarder writes: > > > Remove duplicate headers which are included twice. > > > > > > Signed-off-by: Sabyasachi Gupta > > > Signed-off-by: Souptick Joarder > > >

Re: [PATCH 2/6] ptrace: introduce ptrace_syscall_enter to consolidate PTRACE_SYSEMU handling

2019-03-04 Thread Sudeep Holla
On Mon, Mar 04, 2019 at 08:03:47AM +, Haibo Xu (Arm Technology China) wrote: > On 2019/3/1 2:32, Sudeep Holla wrote: > > Currently each architecture handles PTRACE_SYSEMU in very similar way. > > It's completely arch independent and can be handled in the code helping > > to consolidate PTRACE_S

Re: [PATCH 4/6] powerpc: use common ptrace_syscall_enter hook to handle _TIF_SYSCALL_EMU

2019-03-04 Thread Sudeep Holla
On Mon, Mar 04, 2019 at 09:36:27AM +, Haibo Xu (Arm Technology China) wrote: > On 2019/3/1 2:32, Sudeep Holla wrote: > > Now that we have a new hook ptrace_syscall_enter that can be called from > > syscall entry code and it handles PTRACE_SYSEMU in generic code, we > > can do some cleanup using

[PATCH RESEND v5 3/3] ASoC: fsl: Add Audio Mixer machine driver

2019-03-04 Thread Viorel Suman
This patch implements Audio Mixer machine driver for NXP iMX8 SOCs. It connects together Audio Mixer and related SAI instances. Signed-off-by: Viorel Suman Acked-by: Nicolin Chen --- sound/soc/fsl/Kconfig | 9 ++ sound/soc/fsl/Makefile | 2 + sound/soc/fsl/imx-audmix.c | 327 ++

[PATCH RESEND v5 2/3] ASoC: add fsl_audmix DT binding documentation

2019-03-04 Thread Viorel Suman
Add the DT binding documentation for NXP Audio Mixer CPU DAI driver. Signed-off-by: Viorel Suman Acked-by: Nicolin Chen Acked-by: Rob Herring --- .../devicetree/bindings/sound/fsl,audmix.txt | 50 ++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/d

[PATCH RESEND v5 1/3] ASoC: fsl: Add Audio Mixer CPU DAI driver

2019-03-04 Thread Viorel Suman
This patch implements Audio Mixer CPU DAI driver for NXP iMX8 SOCs. The Audio Mixer is a on-chip functional module that allows mixing of two audio streams into a single audio stream. Audio Mixer datasheet is available here: https://www.nxp.com/docs/en/reference-manual/IMX8DQXPRM.pdf Signed-off-by

[PATCH RESEND v5 0/3] Add NXP AUDMIX device and machine drivers

2019-03-04 Thread Viorel Suman
The patchset adds NXP Audio Mixer (AUDMIX) device and machine drivers and related DT bindings documentation. Changes since V4: 1. Removed "model" attribute from device driver DT bindings documentation as suggested by Nicolin. Changes since V3: 1. Removed machine driver DT bindings documentatio

Re: [PATCH 3/6] x86: clean up _TIF_SYSCALL_EMU handling using ptrace_syscall_enter hook

2019-03-04 Thread Sudeep Holla
On Mon, Mar 04, 2019 at 08:25:28AM +, Haibo Xu (Arm Technology China) wrote: > On 2019/3/1 2:32, Sudeep Holla wrote: > > Now that we have a new hook ptrace_syscall_enter that can be called from > > syscall entry code and it handles PTRACE_SYSEMU in generic code, we > > can do some cleanup using

Re: [PATCH 3/6] x86: clean up _TIF_SYSCALL_EMU handling using ptrace_syscall_enter hook

2019-03-04 Thread Sudeep Holla
On Sat, Mar 02, 2019 at 05:11:40PM -0800, Andy Lutomirski wrote: > On Thu, Feb 28, 2019 at 10:32 AM Sudeep Holla wrote: > > > > Now that we have a new hook ptrace_syscall_enter that can be called from > > syscall entry code and it handles PTRACE_SYSEMU in generic code, we > > can do some cleanup u

Re: [PATCH 4/6] powerpc: use common ptrace_syscall_enter hook to handle _TIF_SYSCALL_EMU

2019-03-04 Thread Haibo Xu (Arm Technology China)
On 2019/3/1 2:32, Sudeep Holla wrote: > Now that we have a new hook ptrace_syscall_enter that can be called from > syscall entry code and it handles PTRACE_SYSEMU in generic code, we > can do some cleanup using the same in do_syscall_trace_enter. > > Cc: Oleg Nesterov > Cc: Paul Mackerras > Cc: M

Re: [PATCH 3/6] x86: clean up _TIF_SYSCALL_EMU handling using ptrace_syscall_enter hook

2019-03-04 Thread Haibo Xu (Arm Technology China)
On 2019/3/1 2:32, Sudeep Holla wrote: > Now that we have a new hook ptrace_syscall_enter that can be called from > syscall entry code and it handles PTRACE_SYSEMU in generic code, we > can do some cleanup using the same in syscall_trace_enter. > > Further the extra logic to find single stepping PTR

Re: [PATCH 2/6] ptrace: introduce ptrace_syscall_enter to consolidate PTRACE_SYSEMU handling

2019-03-04 Thread Haibo Xu (Arm Technology China)
On 2019/3/1 2:32, Sudeep Holla wrote: > Currently each architecture handles PTRACE_SYSEMU in very similar way. > It's completely arch independent and can be handled in the code helping > to consolidate PTRACE_SYSEMU handling. > > Let's introduce a hook 'ptrace_syscall_enter' that arch specific sysc

[PATCH] Disable kcov for slb routines.

2019-03-04 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar The kcov instrumentation inside SLB routines causes duplicate SLB entries to be added resulting into SLB multihit machine checks. Disable kcov instrumentation on slb.o Signed-off-by: Mahesh Salgaonkar --- arch/powerpc/mm/Makefile |1 + 1 file changed, 1 insertion(+)