[PATCH] cxl: Remove racy attempt to force EEH invocation in reset

2015-08-21 Thread Daniel Axtens
cxl_reset currently PERSTs the slot, and then repeatedly tries to read MMIO space in order to kick off EEH. There are 2 problems with this: it's unnecessary, and it's racy. It's unnecessary because the PERST will bring down the PHB link. That will be picked up by the CAPP, which will send out an

Re: powerpc/hvsi: Fix endianness issues in the HVSI driver

2015-08-21 Thread Michael Ellerman
On Fri, 2015-31-07 at 09:29:50 UTC, Laurent Dufour wrote: > This patch fixes several endianness issues detected when running the HVSI > driver in little endian mode. > > These issues are raised in little endian mode because the data exchanged in > memory between the kernel and the hypervisor has t

Re: [V4,2/2] powerpc/kexec: Reset HILE before kexec_sequence

2015-08-21 Thread Michael Ellerman
On Wed, 2015-22-07 at 05:50:51 UTC, Samuel Mendoza-Jonas wrote: > On powernv secondary cpus are returned to OPAL, and will then enter > the target kernel in big-endian. However if it is set the HILE bit > will persist, causing the first exception in the target kernel to be > delivered in litte-endi

Re: [V4, 1/2] powerpc/kexec: Reset secondary cpu endianess before kexec

2015-08-21 Thread Michael Ellerman
On Wed, 2015-22-07 at 05:50:50 UTC, Samuel Mendoza-Jonas wrote: > If the target kernel does not inlcude the FIXUP_ENDIAN check, coming > from a different-endian kernel will cause the target kernel to panic. > All ppc64 kernels can handle starting in big-endian mode, so return to > big-endian before

Re: [PATCH] cxl: Remove racy attempt to force EEH invocation in reset

2015-08-21 Thread Ian Munsie
Acked-by: Ian Munsie ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

linux-next: build failure after merge of the powerpc tree

2015-08-21 Thread Stephen Rothwell
Hi all, After merging the nvdimm tree, today's linux-next build (powerpc allyesconfig) failed like this: drivers/leds/leds-powernv.c:30:3: error: 'OPAL_SLOT_LED_TYPE_ID' undeclared here (not in a function) {OPAL_SLOT_LED_TYPE_ID, POWERNV_LED_TYPE_IDENTIFY}, ^ drivers/leds/leds-powernv.c:30

Re: linux-next: build failure after merge of the powerpc tree

2015-08-21 Thread Vasant Hegde
On 08/21/2015 01:55 PM, Stephen Rothwell wrote: > Hi all, > > After merging the nvdimm tree, today's linux-next build (powerpc > allyesconfig) failed like this: Stephen, Thanks for reporting! I checked powerpc tree.. This is because of commit 8a8d9181 in powerpc tree.. Basically Michael missed o

[PATCH] powerpc/8xx: Shorten irq_chip name for the SIU

2015-08-21 Thread Christophe Leroy
show_interrupts() expects the irq_chip name to be max 8 characters otherwise everything get misaligned # cat /proc/interrupts CPU0 17: 0 CPM PIC 0 Level error 19: 0 MPC8XX SIU 15 Level tbint 20: 90 CPM PIC 4 Level cpm_uart 38: 297

[PATCH] powerpc: handle error case in cpm_muram_alloc()

2015-08-21 Thread Christophe Leroy
rh_alloc() returns (unsigned long)-ERRxx on error, which may result in overwriting memory outside the MURAM AREA. Signed-off-by: Christophe Leroy --- arch/powerpc/sysdev/cpm_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/sysdev/cpm_common.c b/arch/pow

Re: linux-next: build failure after merge of the powerpc tree

2015-08-21 Thread Michael Ellerman
On Fri, 2015-08-21 at 14:29 +0530, Vasant Hegde wrote: > On 08/21/2015 01:55 PM, Stephen Rothwell wrote: > > Hi all, > > > > After merging the nvdimm tree, today's linux-next build (powerpc > > allyesconfig) failed like this: > > Stephen, > > Thanks for reporting! I checked powerpc tree.. This i

[PATCH] powerpc/powernv: Fix mis-merge of OPAL support for LEDS driver

2015-08-21 Thread Michael Ellerman
When I merged the OPAL support for the powernv LEDS driver I missed a hunk. This is slightly modified from the original patch, as the original added code to opal-api.h which is not in the skiboot version, which is discouraged. Instead those values are moved into the driver, which is the only plac

Re: [PATCH] powerpc/powernv: Fix mis-merge of OPAL support for LEDS driver

2015-08-21 Thread Vasant Hegde
On 08/22/2015 05:12 AM, Michael Ellerman wrote: > When I merged the OPAL support for the powernv LEDS driver I missed a > hunk. > > This is slightly modified from the original patch, as the original added > code to opal-api.h which is not in the skiboot version, which is > discouraged. Yeah. I sh

Re: linux-next: build failure after merge of the powerpc tree

2015-08-21 Thread Vasant Hegde
On 08/22/2015 05:10 AM, Michael Ellerman wrote: > On Fri, 2015-08-21 at 14:29 +0530, Vasant Hegde wrote: >> On 08/21/2015 01:55 PM, Stephen Rothwell wrote: >>> Hi all, >>> >>> After merging the nvdimm tree, today's linux-next build (powerpc >>> allyesconfig) failed like this: >> >> Stephen, >> >> T