Re: [PATCH 02/14] powerpc/irq: Add support for HV virtualization interrupts

2016-07-16 Thread Michael Ellerman
Benjamin Herrenschmidt writes: > This will be delivering external interrupts from the XIVE to the > Hypervisor. We treat it as a normal external interrupt for the > lazy irq disable code (so it will be replayed as a 0x500) and > route it to do_IRQ. > > Signed-off-by: Benjamin Herrenschmidt > ---

Re: [PATCH 02/14] powerpc/irq: Add support for HV virtualization interrupts

2016-07-16 Thread Benjamin Herrenschmidt
On Sat, 2016-07-16 at 20:40 +1000, Michael Ellerman wrote: > This is breaking allmodconfig with: > > arch/powerpc/kernel/exceptions-64s.S:778: Error: attempt to move .org > backwards > arch/powerpc/kernel/exceptions-64s.S:779: Error: attempt to move .org > backwards > arch/powerpc/kernel/excepti

Re: [PATCH 02/14] powerpc/irq: Add support for HV virtualization interrupts

2016-07-16 Thread Benjamin Herrenschmidt
On Sat, 2016-07-16 at 16:33 -0500, Benjamin Herrenschmidt wrote: > On Sat, 2016-07-16 at 20:40 +1000, Michael Ellerman wrote:s > > This is breaking allmodconfig with: > > > > arch/powerpc/kernel/exceptions-64s.S:778: Error: attempt to move > > .org backwards > > arch/powerpc/kernel/exceptions-64s.

[PATCH] powerpc/book64s: Move a few exception common handlers to make room

2016-07-16 Thread Benjamin Herrenschmidt
This moves the CBE RAS and facility unavailable "common" handlers down to after the FWNMI page. This frees up some space in the very demanded spaces before the relocation-on vectors and before the FWNMI page. They are still within 64K of __start, so CONFIG_RELOCATABLE should still work. Signed-of

[PATCH v11 00/27] Add new powerpc specific ELF core notes

2016-07-16 Thread wei . guo . simon
From: Simon Guo This patch series adds twelve new ELF core note sections which can be used with existing ptrace request PTRACE_GETREG/SET-SETREGSET for accessing various transactional memory and other miscellaneous debug register sets on powerpc platform. Note this patch series now depends

[PATCH v11 01/27] elf: Add powerpc specific core note sections

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch adds twelve ELF core note sections for powerpc architecture for various registers and register sets which need to be accessed from ptrace interface and then gdb. These additions include special purpose registers like TAR, PPR, DSCR, TM running and checkpointed s

[PATCH v11 02/27] powerpc/process: Add the function flush_tmregs_to_thread

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch creates a function flush_tmregs_to_thread which will then be used by subsequent patches in this series. The function checks for self tracing ptrace interface attempts while in the TM context and logs appropriate warning message. Cc: Benjamin Herrenschmidt Cc:

[PATCH v11 03/27] powerpc/ptrace: Adapt gpr32_get, gpr32_set functions for transaction

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch splits gpr32_get, gpr32_set functions to accommodate in transaction ptrace requests implemented in patches later in the series. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Shuah Khan Cc: Anton Blanchard Cc: Cyril Bur Cc: Anshuma

[PATCH v11 04/27] powerpc/ptrace: Enable support for NT_PPC_CGPR

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch enables support for TM checkpointed GPR register set ELF core note NT_PPC_CGPR based ptrace requests through PTRACE_GETREGSET, PTRACE_SETREGSET calls. This is achieved through adding a register set REGSET_CGPR in powerpc corresponding to the ELF core note sectio

[PATCH v11 05/27] powerpc/ptrace: Enable support for NT_PPC_CFPR

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch enables support for TM checkpointed FPR register set ELF core note NT_PPC_CFPR based ptrace requests through PTRACE_GETREGSET, PTRACE_SETREGSET calls. This is achieved through adding a register set REGSET_CFPR in powerpc corresponding to the ELF core note sectio

[PATCH v11 06/27] powerpc/ptrace: Enable support for NT_PPC_CVMX

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch enables support for TM checkpointed VMX register set ELF core note NT_PPC_CVMX based ptrace requests through PTRACE_GETREGSET, PTRACE_SETREGSET calls. This is achieved through adding a register set REGSET_CVMX in powerpc corresponding to the ELF core note sectio

[PATCH v11 07/27] powerpc/ptrace: Enable support for NT_PPC_CVSX

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch enables support for TM checkpointed VSX register set ELF core note NT_PPC_CVSX based ptrace requests through PTRACE_GETREGSET, PTRACE_SETREGSET calls. This is achieved through adding a register set REGSET_CVSX in powerpc corresponding to the ELF core note sectio

[PATCH v11 08/27] powerpc/ptrace: Enable support for TM SPR state

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch enables support for TM SPR state related ELF core note NT_PPC_TM_SPR based ptrace requests through PTRACE_GETREGSET, PTRACE_SETREGSET calls. This is achieved through adding a register set REGSET_TM_SPR in powerpc corresponding to the ELF core note section added.

[PATCH v11 09/27] powerpc/ptrace: Enable NT_PPC_TM_CTAR, NT_PPC_TM_CPPR, NT_PPC_TM_CDSCR

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch enables support for all three TM checkpointed SPR states related ELF core note NT_PPC_TM_CTAR, NT_PPC_TM_CPPR, NT_PPC_TM_CDSCR based ptrace requests through PTRACE_GETREGSET, PTRACE_SETREGSET calls. This is achieved through adding three new register sets REGSET

[PATCH v11 10/27] powerpc/ptrace: Enable support for NT_PPPC_TAR, NT_PPC_PPR, NT_PPC_DSCR

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch enables support for running TAR, PPR, DSCR registers related ELF core notes NT_PPPC_TAR, NT_PPC_PPR, NT_PPC_DSCR based ptrace requests through PTRACE_GETREGSET, PTRACE_SETREGSET calls. This is achieved through adding three new register sets REGSET_TAR, REGSET_PP

[PATCH v11 11/27] powerpc/ptrace: Enable support for EBB registers

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch enables support for EBB state registers related ELF core note NT_PPC_EBB based ptrace requests through PTRACE_GETREGSET, PTRACE_SETREGSET calls. This is achieved through adding one new register sets REGSET_EBB in powerpc corresponding to the ELF core note sectio

[PATCH v11 12/27] powerpc/ptrace: Enable support for Performance Monitor registers

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch enables support for Performance monitor registers related ELF core note NT_PPC_PMU based ptrace requests through PTRACE_GETREGSET, PTRACE_SETREGSET calls. This is achieved through adding one new register sets REGSET_PMU in powerpc corresponding to the ELF core n

[PATCH v11 13/27] selftests/powerpc: Add more SPR numbers, TM & VMX instructions to 'reg.h'

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch adds SPR number for TAR, PPR, DSCR special purpose registers. It also adds TM, VSX, VMX related instructions which will then be used by patches later in the series. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Shuah Khan Cc: Anton

[PATCH v11 14/27] selftests/powerpc: Use the new SPRN_DSCR_PRIV definiton

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual Now that the new DSCR register definitions (SPRN_DSCR_PRIV and SPRN_DSCR) are defined outside this directory, use them instead. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Shuah Khan Cc: Anton Blanchard Cc: Cyril Bur Cc: Anshuman Khandual

[PATCH v11 15/27] selftests/powerpc: Add ptrace tests for EBB

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for EBB/PMU specific registers. This also adds some generic ptrace interface based helper functions to be used by other patches later on in the series. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Shuah Kh

[PATCH v11 16/27] selftests/powerpc: Add ptrace tests for GPR/FPR registers

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for GPR/FPR registers. This adds ptrace interface based helper functions related to GPR/FPR access and some assembly helper functions related to GPR/FPR registers. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman

[PATCH v11 17/27] selftests/powerpc: Add ptrace tests for GPR/FPR registers in TM

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for GPR/FPR registers inside TM context. This adds ptrace interface based helper functions related to checkpointed GPR/FPR access. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Shuah Khan Cc: Anton Blancha

[PATCH v11 18/27] selftests/powerpc: Add ptrace tests for GPR/FPR registers in suspended TM

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for GPR/FPR registers inside suspended TM context. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Shuah Khan Cc: Anton Blanchard Cc: Cyril Bur Cc: Anshuman Khandual Cc: Simon Guo Cc: Ulrich Weigand Cc:

[PATCH v11 19/27] selftests/powerpc: Add ptrace tests for TAR, PPR, DSCR registers

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for TAR, PPR, DSCR registers. This also adds ptrace interface based helper functions related to TAR, PPR, DSCR register access. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Shuah Khan Cc: Anton Blanchard

[PATCH v11 20/27] selftests/powerpc: Add ptrace tests for TAR, PPR, DSCR in TM

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for TAR, PPR, DSCR registers inside TM context. This also adds ptrace interface based helper functions related to checkpointed TAR, PPR, DSCR register access. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: S

[PATCH v11 21/27] selftests/powerpc: Add ptrace tests for TAR, PPR, DSCR in suspended TM

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for TAR, PPR, DSCR registers inside suspended TM context. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Shuah Khan Cc: Anton Blanchard Cc: Cyril Bur Cc: Anshuman Khandual Cc: Simon Guo Cc: Ulrich Weiga

[PATCH v11 22/27] selftests/powerpc: Add ptrace tests for VSX, VMX registers

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for VSX, VMX registers. This also adds ptrace interface based helper functions related to VSX, VMX registers access. This also adds some assembly helper functions related to VSX and VMX registers. Cc: Benjamin Herrenschmidt Cc: Paul

[PATCH v11 23/27] selftests/powerpc: Add ptrace tests for VSX, VMX registers in TM

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for VSX, VMX registers inside TM context. This also adds ptrace interface based helper functions related to chckpointed VSX, VMX registers access. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Shuah Khan C

[PATCH v11 24/27] selftests/powerpc: Add ptrace tests for VSX, VMX registers in suspended TM

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for VSX, VMX registers inside suspended TM context. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Shuah Khan Cc: Anton Blanchard Cc: Cyril Bur Cc: Anshuman Khandual Cc: Simon Guo Cc: Ulrich Weigand Cc

[PATCH v11 25/27] selftests/powerpc: Add ptrace tests for TM SPR registers

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for TM SPR registers. This also adds ptrace interface based helper functions related to TM SPR registers access. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Shuah Khan Cc: Anton Blanchard Cc: Cyril Bur

[PATCH v11 26/27] selftests/powerpc: Add .gitignore file for ptrace executables

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual This patch adds a .gitignore file for all the executables in the ptrace test directory thus making invisible with git status query. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Shuah Khan Cc: Anton Blanchard Cc: Cyril Bur Cc: Anshuman Khand

[PATCH v11 27/27] selftests/powerpc: Fix a build issue

2016-07-16 Thread wei . guo . simon
From: Anshuman Khandual Fixes the following build failure - cp_abort.c:90:3: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode for (int i = 0; i < NUM_LOOPS; i++) { ^ cp_abort.c:90:3: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your cod

[PATCH v11 0/5] soc: fsl: Add initial guts driver

2016-07-16 Thread Scott Wood
This patchset adds the beginnings of a driver to consolidate accesses to the Freescale/NXP "global utilities" block. Initially only access to SVR (the system version register) is provided. This register is needed by various drivers, mainly for errata detection. Access to SVR via mfspr(SPRN_SVR)

[PATCH v11 1/5] dt: bindings: update Freescale DCFG compatible

2016-07-16 Thread Scott Wood
From: yangbo lu Update Freescale DCFG compatible with 'fsl,-dcfg' instead of 'fsl,ls1021a-dcfg' to include more chips such as ls1021a, ls1043a, and ls2080a. Signed-off-by: Yangbo Lu Acked-by: Rob Herring Signed-off-by: Scott Wood --- Documentation/devicetree/bindings/arm/fsl.txt | 6 +-

[PATCH v11 2/5] dt: bindings: move guts devicetree doc out of powerpc directory

2016-07-16 Thread Scott Wood
From: Yangbo Lu Move guts devicetree doc to Documentation/devicetree/bindings/soc/fsl/ since it's used by not only PowerPC but also ARM. And add a specification for 'little-endian' property. Signed-off-by: Yangbo Lu Acked-by: Rob Herring Signed-off-by: Scott Wood --- Documentation/devicetree

[PATCH v11 3/5] soc: fsl: add GUTS driver for QorIQ platforms

2016-07-16 Thread Scott Wood
From: Yangbo Lu The global utilities block controls power management, I/O device enabling, power-onreset(POR) configuration monitoring, alternate function selection for multiplexed signals,and clock control. This patch adds a driver to manage and access global utilities block. Initially only rea

[PATCH v11 4/5] powerpc/fsl: move mpc85xx.h to include/linux/fsl

2016-07-16 Thread Scott Wood
From: yangbo lu Move mpc85xx.h to include/linux/fsl and rename it to svr.h as a common header file. This SVR numberspace is used on some ARM chips as well as PPC, and even to check for a PPC SVR multi-arch drivers would otherwise need to ifdef the header inclusion and all references to the SVR s

[PATCH v11 5/5] powerpc/fsl-pci: Use fsl_guts_get_svr()

2016-07-16 Thread Scott Wood
Establish an initial user of fsl_guts_get_svr(), so that the code gets some test coverage until users outside arch/powerpc can get converted. Signed-off-by: Scott Wood --- arch/powerpc/Kconfig | 1 + arch/powerpc/sysdev/fsl_pci.c | 6 +- 2 files changed, 6 insertions(+), 1 deletion(

Re: [PATCH 3/5] powerpc: tm: Always use fp_state and vr_state to store live registers

2016-07-16 Thread Simon Guo
Hi Cyril, On Wed, Jun 08, 2016 at 02:00:34PM +1000, Cyril Bur wrote: > @@ -917,24 +907,10 @@ static inline void tm_recheckpoint_new_task(struct > task_struct *new) >"(new->msr 0x%lx, new->origmsr 0x%lx)\n", >new->pid, new->thread.regs->msr, msr); > > - /* This

Re: [PATCH for-4.8 03/12] powerpc/mm: use _raw variant of page table accessors

2016-07-16 Thread Anton Blanchard via Linuxppc-dev
Hi David, > > This switch few of the page table accessor to use the __raw variant > > and does the cpu to big endian conversion of constants. This helps > > in generating better code. > > It might be better to say that checks for a value being 0 don't depend > on the endianness. > > In which c