[PATCH] powerpc/fadump: Fix the race in crash_fadump().

2016-10-09 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar There are chances that multiple CPUs can call crash_fadump() simultaneously and would start duplicating same info to vmcoreinfo ELF note section. This causes makedumpfile to fail during kdump capture. One example is, triggering dumprestart from HMC which sends system reset

Re: Commit 1b7898ee276b "powerpc/boot: Use the pre-boot decompression API" breaks boot

2016-10-09 Thread Heiner Kallweit
Am 10.10.2016 um 06:41 schrieb Michael Ellerman: > Heiner Kallweit writes: > >> Am 07.10.2016 um 21:26 schrieb Heiner Kallweit: >>> Am 07.10.2016 um 07:51 schrieb Oliver O'Halloran: Hi, Heiner Could you send me a copy of the kernel .config (or which defconfig) that you're usin

Re: ppc64 qemu test failure since commit f9aa67142 ("powerpc/64s: Consolidate Alignment 0x600 interrupt")

2016-10-09 Thread Michael Ellerman
Guenter Roeck writes: > Nicholas, > > some of my qemu tests for ppc64 started failing on mainline (and -next). > You can find a test log at > http://kerneltests.org/builders/qemu-ppc64-master/builds/580/steps/qemubuildcommand/logs/stdio > > The scripts to run the test are available at > https://g

Re: perf TUI fails with "failed to process type: 64"

2016-10-09 Thread Nicholas Piggin
On Mon, 10 Oct 2016 16:02:07 +1100 Michael Ellerman wrote: > Anton Blanchard writes: > > > Hi, > > > > Updating to mainline as of last night, I started seeing the following > > error when running the perf report TUI: > > > > 0x46068 [0x8]: failed to process type: 68 > > > > This event is just P

Re: ppc64 qemu test failure since commit f9aa67142 ("powerpc/64s: Consolidate Alignment 0x600 interrupt")

2016-10-09 Thread Nicholas Piggin
On Sun, 9 Oct 2016 08:21:21 -0700 Guenter Roeck wrote: > Nicholas, > > some of my qemu tests for ppc64 started failing on mainline (and -next). > You can find a test log at > http://kerneltests.org/builders/qemu-ppc64-master/builds/580/steps/qemubuildcommand/logs/stdio > > The scripts to run th

Re: [PATCH] i2c_powermac: shut up lockdep warning

2016-10-09 Thread Michael Ellerman
Denis Kirjanov writes: > On 9/21/16, Denis Kirjanov wrote: >> That's unclear why lockdep shows the following warning but adding a >> lockdep class to struct pmac_i2c_bus solves it >> >> [ 20.507795] == >> [ 20.507796] [ INFO: possible circu

Re: Commit 1b7898ee276b "powerpc/boot: Use the pre-boot decompression API" breaks boot

2016-10-09 Thread Oliver O'Halloran
On Mon, Oct 10, 2016 at 3:41 PM, Michael Ellerman wrote: > Heiner Kallweit writes: > >> Am 07.10.2016 um 21:26 schrieb Heiner Kallweit: >>> Am 07.10.2016 um 07:51 schrieb Oliver O'Halloran: Hi, Heiner Could you send me a copy of the kernel .config (or which defconfig) that you

Re: perf TUI fails with "failed to process type: 64"

2016-10-09 Thread Michael Ellerman
Anton Blanchard writes: > Hi, > > Updating to mainline as of last night, I started seeing the following > error when running the perf report TUI: > > 0x46068 [0x8]: failed to process type: 68 > > This event is just PERF_RECORD_FINISHED_ROUND: > > 0x46068 [0x8]: event: 68 > . > . ... raw event: si

Re: Commit 1b7898ee276b "powerpc/boot: Use the pre-boot decompression API" breaks boot

2016-10-09 Thread Michael Ellerman
Heiner Kallweit writes: > Am 07.10.2016 um 21:26 schrieb Heiner Kallweit: >> Am 07.10.2016 um 07:51 schrieb Oliver O'Halloran: >>> Hi, Heiner >>> >>> Could you send me a copy of the kernel .config (or which defconfig) >>> that you're using, the name of the HW platform that you're using and >>> if

Re: sysrq-b fails miserably to reboot PowerNV box

2016-10-09 Thread Michael Ellerman
Anton Blanchard writes: > Hi, > > Unfortunately sysrq-b seems to tie us up in knots, instead of rebooting > the box. This is mainline from today. I logged it too, so we (hopefully) don't forget: https://github.com/linuxppc/linux/issues/72 cheers

Re: [PATCH] powerpc: build time sort extable

2016-10-09 Thread Michael Ellerman
Nicholas Piggin writes: > Can we just switch this on? Powerpc does not use relative extables > (that's a nice exercise left for the reader), so it should just use > the standard sort. > > This patch seems to work, famous last words... Would be nice but ... > Sorting probably only takes a few ms

Re: [PATCH 2/2] KVM: PPC: sparse: prototypes for functions called from assembler

2016-10-09 Thread Daniel Axtens
Paul Mackerras writes: > On Mon, Oct 10, 2016 at 11:31:20AM +1100, Daniel Axtens wrote: >> A bunch of KVM functions are only called from assembler. >> Give them prototypes in asm-prototypes.h >> This reduces sparse warnings. >> >> Signed-off-by: Daniel Axtens >> --- >> arch/powerpc/include/asm

Re: [PATCH 2/2] KVM: PPC: sparse: prototypes for functions called from assembler

2016-10-09 Thread Paul Mackerras
On Mon, Oct 10, 2016 at 11:31:20AM +1100, Daniel Axtens wrote: > A bunch of KVM functions are only called from assembler. > Give them prototypes in asm-prototypes.h > This reduces sparse warnings. > > Signed-off-by: Daniel Axtens > --- > arch/powerpc/include/asm/asm-prototypes.h | 44 >

Re: [PATCH] Fix "ibm,processor-radix-AP-encodings"

2016-10-09 Thread Oliver O'Halloran
On Wed, Sep 28, 2016 at 12:43 PM, Aneesh Kumar K.V wrote: > Balbir Singh writes: > >> The top 3 bits of the lower order byte should contain the >> AP encoding, we assume the top 3 bits of the MSB. Balbir, could you reword this so it says "Currently we wrongly assume " or similar. The current com

[PATCH 2/2] KVM: PPC: sparse: prototypes for functions called from assembler

2016-10-09 Thread Daniel Axtens
A bunch of KVM functions are only called from assembler. Give them prototypes in asm-prototypes.h This reduces sparse warnings. Signed-off-by: Daniel Axtens --- arch/powerpc/include/asm/asm-prototypes.h | 44 +++ arch/powerpc/kvm/book3s_64_vio_hv.c | 1 + arch/

[PATCH 1/2] KVM: PPC: Fix sparse static warning.

2016-10-09 Thread Daniel Axtens
Squash a couple of sparse warnings by making things static. Build tested. Signed-off-by: Daniel Axtens --- arch/powerpc/kvm/book3s_64_mmu_hv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kvm/book3s_64_mmu_hv.c b/arch/powerpc/kvm/book3s_64_mmu_hv.c index

Re: [PATCH] powerpc/pseries: Fix stack corruption in htpe code

2016-10-09 Thread Balbir Singh
On 07/10/16 02:02, Aneesh Kumar K.V wrote: > Laurent Dufour writes: > >> This commit fixes a stack corruption in the pseries specific code dealing >> with the huge pages. >> >> In __pSeries_lpar_hugepage_invalidate() the buffer used to pass arguments >> to the hypervisor is not large enough. Th

ppc64 qemu test failure since commit f9aa67142 ("powerpc/64s: Consolidate Alignment 0x600 interrupt")

2016-10-09 Thread Guenter Roeck
Nicholas, some of my qemu tests for ppc64 started failing on mainline (and -next). You can find a test log at http://kerneltests.org/builders/qemu-ppc64-master/builds/580/steps/qemubuildcommand/logs/stdio The scripts to run the test are available at https://github.com/groeck/linux-build-test/tree

Re: PowerPC agpmode issues

2016-10-09 Thread Benjamin Herrenschmidt
On Sat, 2016-10-08 at 12:05 -0700, Herminio Hernandez, Jr. wrote: > Performed an apt dist-upgrade and rebooted with agpmode=4 and still > the GPU is failing with errors. Should I proceed to place a bug > report on this? I wouldn't even try to be honest. The HW issues in Apple AGP implementation pr

RE: [PATCH V2 1/7] dt-bindings: Update QorIQ TMU thermal bindings

2016-10-09 Thread Troy Jia
> -Original Message- > From: Zhang Rui [mailto:rui.zh...@intel.com] > Sent: Monday, September 19, 2016 10:44 AM > To: Leo Li ; Rob Herring > Cc: Troy Jia ; devicet...@vger.kernel.org; linux- > p...@vger.kernel.org; linuxppc-dev ; lkml > ker...@vger.kernel.org>; Scott Wood ; Eduardo Valen

[PATCH V2 5/5] arm64:dt:ls2080a: Add TMU device tree support for LS2080A

2016-10-09 Thread Jia Hongtao
From: Hongtao Jia Also add nodes and properties for thermal management support. Signed-off-by: Jia Hongtao --- Changes for V2: * Rebase on latest linux-next tree (next-20161006). arch/arm64/boot/dts/freescale/fsl-ls2080a-qds.dts | 2 +- arch/arm64/boot/dts/freescale/fsl-ls2080a-rdb.dts |

[PATCH V2 4/5] arm64:dt:ls1043a: Add TMU device tree support for LS1043A

2016-10-09 Thread Jia Hongtao
From: Hongtao Jia Also add nodes and properties for thermal management support. Signed-off-by: Jia Hongtao --- Changes for V2: * Rebase on latest linux-next tree (next-20161006). arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dts | 2 +- arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts | 2

[PATCH V2 3/5] arm:dt:ls1021a: Add TMU device tree support for LS1021A

2016-10-09 Thread Jia Hongtao
From: Hongtao Jia Also add nodes and properties for thermal management support. Signed-off-by: Jia Hongtao --- Changes for V2: * Rebase on latest linux-next tree (next-20161006). arch/arm/boot/dts/ls1021a.dtsi | 84 +- 1 file changed, 82 insertions(+),

[PATCH V2 2/5] powerpc/mpc85xx: Update TMU device tree node for T1023/T1024

2016-10-09 Thread Jia Hongtao
From: Hongtao Jia SoC compatible string and endianness property are added according to the new bindings. Signed-off-by: Jia Hongtao --- Changes for V2: * Rebase on latest linux-next tree (next-20161006). arch/powerpc/boot/dts/fsl/t1023si-post.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH V2 1/5] powerpc/mpc85xx: Update TMU device tree node for T1040/T1042

2016-10-09 Thread Jia Hongtao
From: Hongtao Jia SoC compatible string and endianness property are added according to the new bindings. Signed-off-by: Jia Hongtao --- Changes for V2: * Rebase on latest linux-next tree (next-20161006). arch/powerpc/boot/dts/fsl/t1040si-post.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2