Re: [PATCH V3 0/3] Add new PowerPC specific ELF core notes

2014-07-17 Thread Anshuman Khandual
On 06/12/2014 02:39 PM, Anshuman Khandual wrote: On 05/23/2014 08:45 PM, Anshuman Khandual wrote: This patch series adds five new ELF core note sections which can be used with existing ptrace request PTRACE_GETREGSET/SETREGSET for accessing various transactional memory and miscellaneous

Re: [PATCH V3 0/3] Add new PowerPC specific ELF core notes

2014-07-18 Thread Anshuman Khandual
On 07/18/2014 04:53 AM, Sam Bobroff wrote: On 17/07/14 21:14, Michael Neuling wrote: On Jul 17, 2014 9:11 PM, Benjamin Herrenschmidt b...@kernel.crashing.org mailto:b...@kernel.crashing.org wrote: Outstanding Issues == (1) Running DSCR register value inside a transaction

Re: [PATCH V3 0/3] Add new PowerPC specific ELF core notes

2014-10-07 Thread Anshuman Khandual
On 07/24/2014 12:22 PM, Sam Bobroff wrote: Outstanding Issues == (1) Running DSCR register value inside a transaction does not seem to be saved at thread.dscr when the process stops for ptrace examination. Since this is fixed by

Re: [PATCH V3 3/3] powerpc, ptrace: Enable support for miscellaneous registers

2014-10-08 Thread Anshuman Khandual
On 08/28/2014 03:05 AM, Sukadev Bhattiprolu wrote: Anshuman Khandual [khand...@linux.vnet.ibm.com] wrote: | This patch enables get and set of miscellaneous registers through ptrace | PTRACE_GETREGSET/PTRACE_SETREGSET interface by implementing new powerpc | specific register set REGSET_MISC

Re: [PATCH V3 2/3] powerpc, ptrace: Enable support for transactional memory register sets

2014-10-08 Thread Anshuman Khandual
On 08/28/2014 03:05 AM, Sukadev Bhattiprolu wrote: Anshuman Khandual [khand...@linux.vnet.ibm.com] wrote: | This patch enables get and set of transactional memory related register | sets through PTRACE_GETREGSET/PTRACE_SETREGSET interface by implementing | four new powerpc specific register

Re: [PATCH V3 0/3] Add new PowerPC specific ELF core notes

2014-09-11 Thread Anshuman Khandual
On 05/23/2014 08:45 PM, Anshuman Khandual wrote: This patch series adds five new ELF core note sections which can be used with existing ptrace request PTRACE_GETREGSET/SETREGSET for accessing various transactional memory and miscellaneous register sets on PowerPC platform. Please find

Re: [PATCH V4 7/8] powerpc, ptrace: Enable support for miscellaneous debug registers

2014-11-21 Thread Anshuman Khandual
On 11/14/2014 03:30 PM, Denis Kirjanov wrote: On 11/13/14, Anshuman Khandual khand...@linux.vnet.ibm.com wrote: On 11/11/2014 10:56 AM, Anshuman Khandual wrote: This patch enables get and set of miscellaneous debug registers through ptrace PTRACE_GETREGSET-PTRACE_SETREGSET interface

Re: [PATCH V4 6/8] powerpc, ptrace: Enable support for transactional memory register sets

2014-11-21 Thread Anshuman Khandual
On 11/19/2014 02:48 AM, Sukadev Bhattiprolu wrote: Anshuman Khandual [khand...@linux.vnet.ibm.com] wrote: | This patch enables get and set of transactional memory related register | sets through PTRACE_GETREGSET-PTRACE_SETREGSET interface by implementing | four new powerpc specific register

Re: [PATCH V4 2/8] powerpc, process: Add functions flush_tm_state, flush_tmregs_to_thread

2014-11-21 Thread Anshuman Khandual
On 11/11/2014 10:56 AM, Anshuman Khandual wrote: This patch creates a new function called flush_tm_state to flush the existing transactional memory state from the thread. It also creates a function called flush_tmregs_to_thread which will then be used on subsequent patches in this series

Re: [PATCH V4 1/8] elf: Add new PowerPC specifc core note sections

2014-11-24 Thread Anshuman Khandual
On 11/22/2014 05:13 AM, Andrew Morton wrote: On Tue, 11 Nov 2014 10:56:30 +0530 Anshuman Khandual khand...@linux.vnet.ibm.com wrote: This patch adds four new core note sections for PowerPC transactional memory and one core note section for general miscellaneous debug registers

[PATCH V4 0/8] Add new PowerPC specific ELF core notes

2014-11-10 Thread Anshuman Khandual
PPR: 4 (PASSED) success: tm_ptrace Anshuman Khandual (8): elf: Add new PowerPC specifc core note sections powerpc, process: Add functions flush_tm_state, flush_tmregs_to_thread powerpc, process: Merge functions __switch_to_tm and tm_reclaim_task powerpc, ptrace: Enable fpr_(get

[PATCH V4 1/8] elf: Add new PowerPC specifc core note sections

2014-11-10 Thread Anshuman Khandual
This patch adds four new core note sections for PowerPC transactional memory and one core note section for general miscellaneous debug registers. These addition of new elf core note sections extends the existing elf ABI without affecting it in any manner. Signed-off-by: Anshuman Khandual khand

[PATCH V4 7/8] powerpc, ptrace: Enable support for miscellaneous debug registers

2014-11-10 Thread Anshuman Khandual
-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- arch/powerpc/include/uapi/asm/elf.h | 1 + arch/powerpc/kernel/ptrace.c| 102 2 files changed, 103 insertions(+) diff --git a/arch/powerpc/include/uapi/asm/elf.h b/arch/powerpc/include/uapi/asm/elf.h index

[PATCH V4 4/8] powerpc, ptrace: Enable fpr_(get/set) for transactional memory

2014-11-10 Thread Anshuman Khandual
This patch enables the fpr_get which gets the running value of all the FPR registers and the fpr_set which sets the running value of of all the FPR registers to accommodate in transaction ptrace interface based requests. Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- arch

[PATCH V4 8/8] selftests, powerpc: Add new test case for TM related ptrace interfaces

2014-11-10 Thread Anshuman Khandual
then compares the received values against the expected values to verify whether it passed the test or not. Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- tools/testing/selftests/powerpc/tm/Makefile| 2 +- tools/testing/selftests/powerpc/tm/tm-ptrace.c | 529

[PATCH V4 5/8] powerpc, ptrace: Enable vr_(get/set) for transactional memory

2014-11-10 Thread Anshuman Khandual
This patch enables the vr_get which gets the running value of all the VMX registers and the vr_set which sets the running value of of all the VMX registers to accommodate in transaction ptrace interface based requests. Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- arch/powerpc

[PATCH V4 3/8] powerpc, process: Merge functions __switch_to_tm and tm_reclaim_task

2014-11-10 Thread Anshuman Khandual
The function tm_reclaim_task is only called from the function __switch_to_tm. This patch merges these two functions to make it more readable without changing the functionality in any way. Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- arch/powerpc/kernel/process.c | 20

[PATCH V4 6/8] powerpc, ptrace: Enable support for transactional memory register sets

2014-11-10 Thread Anshuman Khandual
core note types added previously in this regard. (1) NT_PPC_TM_SPR (2) NT_PPC_TM_CGPR (3) NT_PPC_TM_CFPR (4) NT_PPC_TM_CVMX Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- arch/powerpc/include/uapi/asm/elf.h | 2 + arch/powerpc/kernel/ptrace.c

[PATCH V4 2/8] powerpc, process: Add functions flush_tm_state, flush_tmregs_to_thread

2014-11-10 Thread Anshuman Khandual
This patch creates a new function called flush_tm_state to flush the existing transactional memory state from the thread. It also creates a function called flush_tmregs_to_thread which will then be used on subsequent patches in this series. Signed-off-by: Anshuman Khandual khand

Re: [PATCH V4 7/8] powerpc, ptrace: Enable support for miscellaneous debug registers

2014-11-13 Thread Anshuman Khandual
On 11/11/2014 10:56 AM, Anshuman Khandual wrote: This patch enables get and set of miscellaneous debug registers through ptrace PTRACE_GETREGSET-PTRACE_SETREGSET interface by implementing new powerpc specific register set REGSET_MISC support corresponding to the new ELF core note NT_PPC_MISC

[V5 0/7] Add new powerpc specific ELF core notes

2014-11-25 Thread Anshuman Khandual
RN FPR[31]: 0 (PASSED) Testing TM running MISC debug registers: TM RN DSCR: 32 (PASSED) TM RN TAR: 3c (PASSED) TM RN PPR: 4 (PASSED) success: tm_ptrace Anshuman Khandual (7): elf: Add new powerpc specifc core note sections powerpc, process: Add the function flush_tmregs_to_thread

[V5 4/7] powerpc, ptrace: Enable vr_(get/set) for transactional memory

2014-11-25 Thread Anshuman Khandual
This patch enables the vr_get which gets the running value of all the VMX registers and the vr_set which sets the running value of of all the VMX registers to accommodate in transaction ptrace interface based requests. Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- arch/powerpc

[V5 7/7] selftests, powerpc: Add test case for TM related ptrace interface

2014-11-25 Thread Anshuman Khandual
then compares the received values against the expected values to verify whether it has passed the given test or not. Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- tools/testing/selftests/powerpc/tm/Makefile| 2 +- tools/testing/selftests/powerpc/tm/tm-ptrace.c | 542

[V5 5/7] powerpc, ptrace: Enable support for transactional memory register sets

2014-11-25 Thread Anshuman Khandual
core note types added previously in this regard. (1) NT_PPC_TM_SPR (2) NT_PPC_TM_CGPR (3) NT_PPC_TM_CFPR (4) NT_PPC_TM_CVMX Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- arch/powerpc/include/uapi/asm/elf.h | 2 + arch/powerpc/kernel/ptrace.c

[V5 1/7] elf: Add new powerpc specifc core note sections

2014-11-25 Thread Anshuman Khandual
Morton a...@linux-foundation.org Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- include/uapi/linux/elf.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/uapi/linux/elf.h b/include/uapi/linux/elf.h index ea9bf25..2260fc0 100644 --- a/include/uapi/linux/elf.h +++ b

[V5 2/7] powerpc, process: Add the function flush_tmregs_to_thread

2014-11-25 Thread 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. Signed-off-by: Anshuman Khandual khand

[V5 3/7] powerpc, ptrace: Enable fpr_(get/set) for transactional memory

2014-11-25 Thread Anshuman Khandual
This patch enables the fpr_get which gets the running value of all the FPR registers and the fpr_set which sets the running value of of all the FPR registers to accommodate in transaction ptrace interface based requests. Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- arch

[V5 6/7] powerpc, ptrace: Enable support for miscellaneous debug registers

2014-11-25 Thread Anshuman Khandual
-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- arch/powerpc/include/uapi/asm/elf.h | 1 + arch/powerpc/kernel/ptrace.c| 123 2 files changed, 124 insertions(+) diff --git a/arch/powerpc/include/uapi/asm/elf.h b/arch/powerpc/include/uapi/asm/elf.h index

Re: [V5 7/7] selftests, powerpc: Add test case for TM related ptrace interface

2014-11-25 Thread Anshuman Khandual
On 11/25/2014 10:36 PM, Shuah Khan wrote: On 11/25/2014 01:05 AM, Anshuman Khandual wrote: This patch adds one more test case called 'tm-ptrace' targeting TM related ptrace interface. This test creates one child process to run some basic TM transactions and the parent process attaches

[PATCH V6 5/9] powerpc, ptrace: Enable support for transactional memory register sets

2014-12-01 Thread Anshuman Khandual
core note types added previously in this regard. (1) NT_PPC_TM_SPR (2) NT_PPC_TM_CGPR (3) NT_PPC_TM_CFPR (4) NT_PPC_TM_CVMX Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- arch/powerpc/include/uapi/asm/elf.h | 2 + arch/powerpc/kernel/ptrace.c

[PATCH V6 8/9] selftests, powerpc: Make GIT ignore all binaries related to TM

2014-12-01 Thread Anshuman Khandual
This patch includes all the TM test binaries into the .gitignore file listing in the same directory. This will make sure that GIT ignores all of them while displaying status. Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- tools/testing/selftests/powerpc/tm/.gitignore | 2 ++ 1

[PATCH V6 2/9] powerpc, process: Add the function flush_tmregs_to_thread

2014-12-01 Thread 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. Signed-off-by: Anshuman Khandual khand

[PATCH V6 3/9] powerpc, ptrace: Enable fpr_(get/set) for transactional memory

2014-12-01 Thread Anshuman Khandual
This patch enables the fpr_get which gets the running value of all the FPR registers and the fpr_set which sets the running value of of all the FPR registers to accommodate in transaction ptrace interface based requests. Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- arch

[PATCH V6 6/9] powerpc, ptrace: Enable support for miscellaneous debug registers

2014-12-01 Thread Anshuman Khandual
-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- arch/powerpc/include/uapi/asm/elf.h | 1 + arch/powerpc/kernel/ptrace.c| 131 2 files changed, 132 insertions(+) diff --git a/arch/powerpc/include/uapi/asm/elf.h b/arch/powerpc/include/uapi/asm/elf.h index

[PATCH V6 9/9] selftests: Make GIT ignore all binaries in powerpc test suite

2014-12-01 Thread Anshuman Khandual
This patch includes all of the powerpc test binaries into the .gitignore file listing in their respective directories. This will make sure that GIT ignores all of these test binaries while displaying status. Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- .../testing/selftests

[PATCH V6 1/9] elf: Add new powerpc specifc core note sections

2014-12-01 Thread Anshuman Khandual
Morton a...@linux-foundation.org Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- include/uapi/linux/elf.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/uapi/linux/elf.h b/include/uapi/linux/elf.h index ea9bf25..2260fc0 100644 --- a/include/uapi/linux/elf.h +++ b

[PATCH V6 4/9] powerpc, ptrace: Enable vr_(get/set) for transactional memory

2014-12-01 Thread Anshuman Khandual
This patch enables the vr_get which gets the running value of all the VMX registers and the vr_set which sets the running value of of all the VMX registers to accommodate in transaction ptrace interface based requests. Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- arch/powerpc

[PATCH V6 7/9] selftests, powerpc: Add test case for TM related ptrace interface

2014-12-01 Thread Anshuman Khandual
then compares the received values against the expected values to verify whether it has passed the given test or not. Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- tools/testing/selftests/powerpc/tm/Makefile| 2 +- tools/testing/selftests/powerpc/tm/tm-ptrace.c | 542

[PATCH V6 0/9] Add new powerpc specific ELF core notes

2014-12-02 Thread Anshuman Khandual
(PASSED) TM RN PPR: 4 (PASSED) success: tm_ptrace Anshuman Khandual (9): elf: Add new powerpc specifc core note sections powerpc, process: Add the function flush_tmregs_to_thread powerpc, ptrace: Enable fpr_(get/set) for transactional memory powerpc, ptrace: Enable vr_(get/set

Re: [PATCH V6 9/9] selftests: Make GIT ignore all binaries in powerpc test suite

2014-12-02 Thread Anshuman Khandual
On 12/02/2014 11:53 PM, Shuah Khan wrote: On 12/02/2014 12:56 AM, Anshuman Khandual wrote: This patch includes all of the powerpc test binaries into the .gitignore file listing in their respective directories. This will make sure that GIT ignores all of these test binaries while

Re: [V6,1/9] elf: Add new powerpc specifc core note sections

2014-12-02 Thread Anshuman Khandual
On 12/03/2014 10:52 AM, Michael Ellerman wrote: On Tue, 2014-02-12 at 07:56:45 UTC, Anshuman Khandual wrote: This patch adds four new ELF core note sections for powerpc transactional memory and one new ELF core note section for powerpc general miscellaneous debug registers. These addition

Re: [V6,1/9] elf: Add new powerpc specifc core note sections

2014-12-08 Thread Anshuman Khandual
On 12/03/2014 12:18 PM, Anshuman Khandual wrote: On 12/03/2014 10:52 AM, Michael Ellerman wrote: On Tue, 2014-02-12 at 07:56:45 UTC, Anshuman Khandual wrote: This patch adds four new ELF core note sections for powerpc transactional memory and one new ELF core note section for powerpc general

Re: [V6,1/9] elf: Add new powerpc specifc core note sections

2015-01-01 Thread Anshuman Khandual
On 12/20/2014 12:58 AM, Edjunior Barbosa Machado wrote: On 12/08/2014 08:08 AM, Anshuman Khandual wrote: On 12/03/2014 12:18 PM, Anshuman Khandual wrote: On 12/03/2014 10:52 AM, Michael Ellerman wrote: On Tue, 2014-02-12 at 07:56:45 UTC, Anshuman Khandual wrote: This patch adds four new ELF

Re: [PATCH V2 00/12] POWER DSCR fixes, improvements, docs and tests

2015-02-04 Thread Anshuman Khandual
On 01/13/2015 03:52 PM, Anshuman Khandual wrote: This patch series has patches for POWER DSCR fixes, improvements, in code documentaion, kernel support user documentation and selftest based test cases. It has got five test cases which are derived from Anton's DSCR test bucket which can

Re: [PATCH V2 00/12] POWER DSCR fixes, improvements, docs and tests

2015-02-04 Thread Anshuman Khandual
On 02/04/2015 01:51 PM, Anshuman Khandual wrote: On 01/13/2015 03:52 PM, Anshuman Khandual wrote: This patch series has patches for POWER DSCR fixes, improvements, in code documentaion, kernel support user documentation and selftest based test cases. It has got five test cases which

Re: [PATCH] selftests/powerpc: Add .gitignore for powerpc selftests

2015-01-13 Thread Anshuman Khandual
On 01/14/2015 07:45 AM, Michael Ellerman wrote: On Tue, 2015-01-13 at 17:16 -0700, Shuah Khan wrote: Please add a commit log. What does it need to say? On 01/13/2015 04:49 PM, Michael Ellerman wrote: Signed-off-by: Michael Ellerman m...@ellerman.id.au ---

Re: [V6,1/9] elf: Add new powerpc specifc core note sections

2015-01-13 Thread Anshuman Khandual
On 01/01/2015 01:38 PM, Anshuman Khandual wrote: Also, we've noticed that the 'misc' regset contains registers from different ISA versions (dscr and ppr appear in ISA 2.05, tar is from 2.07). I'm not sure if there is a way to detect presence/validity of such registers, but perhaps

[PATCH V7 1/8] elf: Add new powerpc specifc core note sections

2015-01-13 Thread Anshuman Khandual
Morton a...@linux-foundation.org Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- include/uapi/linux/elf.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/uapi/linux/elf.h b/include/uapi/linux/elf.h index 71e1d0e..0fd9983 100644 --- a/include/uapi/linux/elf.h +++ b

[PATCH V7 7/8] selftests, powerpc: Add test case for TM related ptrace interface

2015-01-13 Thread Anshuman Khandual
then compares the received values against the expected values to verify whether it has passed the given test or not. Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- tools/testing/selftests/powerpc/tm/Makefile| 2 +- tools/testing/selftests/powerpc/tm/tm-ptrace.c | 542

[PATCH V7 2/8] powerpc, process: Add the function flush_tmregs_to_thread

2015-01-13 Thread 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. Signed-off-by: Anshuman Khandual khand

[PATCH V7 5/8] powerpc, ptrace: Enable support for transactional memory register sets

2015-01-13 Thread Anshuman Khandual
core note types added previously in this regard. (1) NT_PPC_TM_SPR (2) NT_PPC_TM_CGPR (3) NT_PPC_TM_CFPR (4) NT_PPC_TM_CVMX Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- arch/powerpc/include/uapi/asm/elf.h | 2 + arch/powerpc/kernel/ptrace.c

[PATCH V7 6/8] powerpc, ptrace: Enable support for miscellaneous debug registers

2015-01-13 Thread Anshuman Khandual
-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- arch/powerpc/include/uapi/asm/elf.h | 1 + arch/powerpc/kernel/ptrace.c| 133 2 files changed, 134 insertions(+) diff --git a/arch/powerpc/include/uapi/asm/elf.h b/arch/powerpc/include/uapi/asm/elf.h index

[PATCH V7 3/8] powerpc, ptrace: Enable fpr_(get/set) for transactional memory

2015-01-13 Thread Anshuman Khandual
This patch enables the fpr_get which gets the running value of all the FPR registers and the fpr_set which sets the running value of of all the FPR registers to accommodate in transaction ptrace interface based requests. Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- arch

[PATCH V7 4/8] powerpc, ptrace: Enable vr_(get/set) for transactional memory

2015-01-13 Thread Anshuman Khandual
This patch enables the vr_get which gets the running value of all the VMX registers and the vr_set which sets the running value of of all the VMX registers to accommodate in transaction ptrace interface based requests. Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- arch/powerpc

[PATCH V7 0/8] Add new powerpc specific ELF core notes

2015-01-13 Thread Anshuman Khandual
(PASSED) TM RN FPR[29]: 2 (PASSED) TM RN FPR[30]: 1 (PASSED) TM RN FPR[31]: 0 (PASSED) Testing TM running MISC debug registers: TM RN DSCR: 32 (PASSED) TM RN TAR: 3c (PASSED) TM RN PPR: 4 (PASSED) success: tm_ptrace Anshuman Khandual (8): elf: Add new powerpc specifc core note

[PATCH V7 8/8] selftests: Make GIT ignore all binaries in powerpc test suite

2015-01-13 Thread Anshuman Khandual
This patch includes all of the powerpc test binaries into the .gitignore file listing in their respective directories. This will make sure that GIT ignores all of these test binaries while displaying status. Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- NOTE: As Michael had

[PATCH V2 03/12] powerpc, offset: Change PACA_DSCR to PACA_DSCR_DEFAULT

2015-01-13 Thread Anshuman Khandual
PACA_DSCR offset macro tracks dscr_default element in the paca structure. Better change the name of this macro to match that of the data element it tracks. Makes the code more readable. Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- arch/powerpc/kernel/asm-offsets.c | 2

[PATCH V2 01/12] powerpc: Fix handling of DSCR related facility unavailable exception

2015-01-13 Thread Anshuman Khandual
. In case of mfspr instruction, just emulate the instruction. In case of mtspr instruction, set the thread based dscr_inherit bit and also enable the facility through FSCR. All user SPR based mfspr instruction will be emulated till one user SPR based mtspr has been executed. Signed-off-by: Anshuman

[PATCH V2 06/12] selftests, powerpc: Add test for system wide DSCR default

2015-01-13 Thread Anshuman Khandual
-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- tools/testing/selftests/powerpc/Makefile | 2 +- tools/testing/selftests/powerpc/dscr/Makefile | 17 +++ tools/testing/selftests/powerpc/dscr/dscr.h| 120 .../selftests/powerpc/dscr/dscr_default_test.c

[PATCH V2 10/12] selftests, powerpc: Add test for DSCR inheritence across fork exec

2015-01-13 Thread Anshuman Khandual
This patch adds a test case to verify that the changed DSCR value inside any process would be inherited to it's child across the fork and exec system call. Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- tools/testing/selftests/powerpc/dscr/Makefile | 2 +- .../powerpc

[PATCH V2 09/12] selftests, powerpc: Add test for DSCR value inheritence across fork

2015-01-13 Thread Anshuman Khandual
This patch adds a test to verify that the changed DSCR value inside any process would be inherited to it's child process across the fork system call. Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- tools/testing/selftests/powerpc/dscr/Makefile | 3 +- .../selftests/powerpc

[PATCH V2 04/12] powerpc, dscr: Added some in-code documentation

2015-01-13 Thread Anshuman Khandual
This patch adds some in-code documentation to the DSCR related code to make it more readable without having any functional change to it. Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- arch/powerpc/include/asm/processor.h | 9 + arch/powerpc/kernel/sysfs.c | 38

[PATCH V2 05/12] documentation, powerpc: Add documentation for DSCR support

2015-01-13 Thread Anshuman Khandual
. Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- Documentation/powerpc/00-INDEX | 2 + Documentation/powerpc/dscr.txt | 83 ++ 2 files changed, 85 insertions(+) create mode 100644 Documentation/powerpc/dscr.txt diff --git a/Documentation

[PATCH V2 02/12] powerpc, process: Remove the unused extern dscr_default

2015-01-13 Thread Anshuman Khandual
. efcac658: powerpc: Per process DSCR + some fixes (try#4) Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- arch/powerpc/kernel/process.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index b4cc7be..fe3f682

[PATCH V2 07/12] selftests, powerpc: Add test for explicitly changing DSCR value

2015-01-13 Thread Anshuman Khandual
This patch adds a test which modifies the DSCR using mtspr instruction and verifies the change using mfspr instruction. It uses both the privilege state SPR as well as the problem state SPR for the purpose. Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- tools/testing/selftests

[PATCH V2 08/12] selftests, powerpc: Add test for DSCR SPR numbers

2015-01-13 Thread Anshuman Khandual
This patch adds a test which verifies that the DSCR privilege and problem state SPR read write accesses while making sure that the results are always the same irrespective of which SPR number is being used. Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- tools/testing/selftests

[PATCH V2 12/12] selftests, powerpc: Add thread based stress test for DSCR sysfs interfaces

2015-01-13 Thread Anshuman Khandual
the system wide DSCR default value through + * sysfs interface which should then update all the CPU specific + * DSCR default values which must also be then visible to threads + * executing on individual CPUs on the system. + * + * Copyright (C) 2015 Anshuman Khandual khand...@linux.vnet.ibm.com, IBM

[PATCH V2 11/12] selftests, powerpc: Add test for all DSCR sysfs interfaces

2015-01-13 Thread Anshuman Khandual
This test continuously updates the system wide DSCR default value in the sysfs interface and makes sure that the same is reflected across all the sysfs interfaces for each individual CPUs present on the system. Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- tools/testing

[PATCH V2 00/12] POWER DSCR fixes, improvements, docs and tests

2015-01-13 Thread Anshuman Khandual
inside mtspr facility exception path - Modified the in code documentation to follow the kernel-doc format - Added seven selftest based DSCR related test cases under powerpc Original V1: - Posted here at https://patchwork.ozlabs.org/patch/418583/ Anshuman Khandual (12): powerpc: Fix

Re: [PATCH 1/2] kernel/reboot.c: Add orderly_reboot for graceful reboot

2015-03-31 Thread Anshuman Khandual
On 03/30/2015 07:45 AM, Joel Stanley wrote: The kernel has orderly_poweroff which allows the kernel to initiate a graceful shutdown of userspace, by running /sbin/poweroff. This adds orderly_reboot that will cause userspace to shut itself down by calling /sbin/reboot. This will be used for

Re: [PATCH 1/2] kernel/reboot.c: Add orderly_reboot for graceful reboot

2015-03-31 Thread Anshuman Khandual
On 04/01/2015 08:47 AM, Joel Stanley wrote: Hi Andrew, On Wed, Apr 1, 2015 at 9:09 AM, Andrew Morton a...@linux-foundation.org wrote: On Mon, 30 Mar 2015 12:45:32 +1030 Joel Stanley j...@jms.id.au wrote: The kernel has orderly_poweroff which allows the kernel to initiate a graceful

perf report broken for branch stack samples

2015-04-01 Thread Anshuman Khandual
Hello, perf report is not showing up the branch stack sample results in the from_symbol --- to_symbol format even if the perf.data file has got the samples (through 'perf record -b workload' session). Perf report still displays the generic event based relative symbol classification as usual. This

Re: [V6,1/9] elf: Add new powerpc specifc core note sections

2015-03-23 Thread Anshuman Khandual
On 03/19/2015 04:20 AM, Michael Neuling wrote: On Thu, 2015-03-19 at 09:45 +1100, Michael Neuling wrote: On Wed, 2015-03-18 at 13:53 +0100, Ulrich Weigand wrote: Michael Neuling mi...@neuling.org wrote on 23.02.2015 05:51:50: Sorry for the slow response. Same here :-( I'm going to break

Re: [V6,1/9] elf: Add new powerpc specifc core note sections

2015-04-20 Thread Anshuman Khandual
On 04/20/2015 05:57 PM, Ulrich Weigand wrote: Anshuman Khandual khand...@linux.vnet.ibm.com wrote on 13.04.2015 10:48:57: On 04/10/2015 04:03 PM, Ulrich Weigand wrote: - You provide checkpointed FPR and VMX registers, but there doesn't seem to be any way to get at the checkpointed *VSX

Re: [V6,1/9] elf: Add new powerpc specifc core note sections

2015-04-22 Thread Anshuman Khandual
On 04/21/2015 08:11 PM, Ulrich Weigand wrote: Anshuman Khandual khand...@linux.vnet.ibm.com wrote on 21.04.2015 06:55:24: Changed ELF core note sections -- These core note sections need to be changed to accommodate the in transaction ptrace requests when

Re: [V6,1/9] elf: Add new powerpc specifc core note sections

2015-04-20 Thread Anshuman Khandual
On 04/13/2015 02:18 PM, Anshuman Khandual wrote: On 04/10/2015 04:03 PM, Ulrich Weigand wrote: Anshuman Khandual khand...@linux.vnet.ibm.com wrote on 10.04.2015 11:10:35: I believed it stores the check pointed MSR value which was in the register before the transaction started. But then how

Re: [PATCH V3 00/13] POWER DSCR fixes, improvements, docs and tests

2015-05-12 Thread Anshuman Khandual
On 04/10/2015 01:59 PM, Anshuman Khandual wrote: This patch series has patches for POWER DSCR fixes, improvements, in code documentaion, kernel support user documentation and selftest based test cases. It has got five test cases which are derived from Anton's DSCR test bucket which can

Re: [PATCH V3 09/13] selftests, powerpc: Add test for DSCR value inheritence across fork

2015-05-18 Thread Anshuman Khandual
On 05/18/2015 10:39 AM, Anton Blanchard wrote: Hi Anshuman, Thanks for getting these testcases into the kernel. This patch adds a test to verify that the changed DSCR value inside any process would be inherited to it's child process across the fork system call. One issue I do notice (a

[PATCH V4 10/13] selftests, powerpc: Add test for DSCR inheritence across fork exec

2015-05-18 Thread Anshuman Khandual
This patch adds a test case to verify that the changed DSCR value inside any process would be inherited to it's child across the fork and exec system call. Acked-by: Shuah Khan shua...@osg.samsung.com Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com Signed-off-by: Anton Blanchard

[PATCH V4 05/13] documentation, powerpc: Add documentation for DSCR support

2015-05-18 Thread Anshuman Khandual
. Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- Documentation/powerpc/00-INDEX | 2 + Documentation/powerpc/dscr.txt | 83 ++ 2 files changed, 85 insertions(+) create mode 100644 Documentation/powerpc/dscr.txt diff --git a/Documentation

[PATCH V4 03/13] powerpc, offset: Change PACA_DSCR to PACA_DSCR_DEFAULT

2015-05-18 Thread Anshuman Khandual
PACA_DSCR offset macro tracks dscr_default element in the paca structure. Better change the name of this macro to match that of the data element it tracks. Makes the code more readable. Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- arch/powerpc/kernel/asm-offsets.c | 2

[PATCH V4 01/13] powerpc: Fix handling of DSCR related facility unavailable exception

2015-05-18 Thread Anshuman Khandual
. In case of mfspr instruction, just emulate the instruction. In case of mtspr instruction, set the thread based dscr_inherit bit and also enable the facility through FSCR. All user SPR based mfspr instruction will be emulated till one user SPR based mtspr has been executed. Signed-off-by: Anshuman

[PATCH V4 11/13] selftests, powerpc: Add test for all DSCR sysfs interfaces

2015-05-18 Thread Anshuman Khandual
This test continuously updates the system wide DSCR default value in the sysfs interface and makes sure that the same is reflected across all the sysfs interfaces for each individual CPUs present on the system. Acked-by: Shuah Khan shua...@osg.samsung.com Signed-off-by: Anshuman Khandual khand

[PATCH V4 09/13] selftests, powerpc: Add test for DSCR value inheritence across fork

2015-05-18 Thread Anshuman Khandual
This patch adds a test to verify that the changed DSCR value inside any process would be inherited to it's child process across the fork system call. Acked-by: Shuah Khan shua...@osg.samsung.com Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com Signed-off-by: Anton Blanchard

[PATCH V4 04/13] powerpc, dscr: Added some in-code documentation

2015-05-18 Thread Anshuman Khandual
This patch adds some in-code documentation to the DSCR related code to make it more readable without having any functional change to it. Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- arch/powerpc/include/asm/processor.h | 9 + arch/powerpc/kernel/sysfs.c | 38

[PATCH V4 06/13] selftests, powerpc: Add test for system wide DSCR default

2015-05-18 Thread Anshuman Khandual
shua...@osg.samsung.com Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com Signed-off-by: Anton Blanchard an...@samba.org --- tools/testing/selftests/powerpc/Makefile | 2 +- tools/testing/selftests/powerpc/dscr/Makefile | 17 +++ tools/testing/selftests/powerpc/dscr

[PATCH V4 00/13] POWER DSCR fixes, improvements, docs and tests

2015-05-18 Thread Anshuman Khandual
) - - Updated the thread struct DSCR value inside mtspr facility exception path - Modified the in code documentation to follow the kernel-doc format - Added seven selftest based DSCR related test cases under powerpc Original V1: - Posted here at https://patchwork.ozlabs.org/patch/418583/ Anshuman

[PATCH V4 02/13] powerpc, process: Remove the unused extern dscr_default

2015-05-18 Thread Anshuman Khandual
. efcac658: powerpc: Per process DSCR + some fixes (try#4) Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- arch/powerpc/kernel/process.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index febb50d..8005e18 100644

[PATCH V4 08/13] selftests, powerpc: Add test for DSCR SPR numbers

2015-05-18 Thread Anshuman Khandual
This patch adds a test which verifies that the DSCR privilege and problem state SPR read write accesses while making sure that the results are always the same irrespective of which SPR number is being used. Acked-by: Shuah Khan shua...@osg.samsung.com Signed-off-by: Anshuman Khandual khand

[PATCH V4 12/13] selftests, powerpc: Add thread based stress test for DSCR sysfs interfaces

2015-05-18 Thread Anshuman Khandual
...@osg.samsung.com Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- tools/testing/selftests/powerpc/dscr/Makefile | 2 +- .../powerpc/dscr/dscr_sysfs_thread_test.c | 123 + 2 files changed, 124 insertions(+), 1 deletion(-) create mode 100644

[PATCH V4 07/13] selftests, powerpc: Add test for explicitly changing DSCR value

2015-05-18 Thread Anshuman Khandual
This patch adds a test which modifies the DSCR using mtspr instruction and verifies the change using mfspr instruction. It uses both the privilege state SPR as well as the problem state SPR for the purpose. Acked-by: Shuah Khan shua...@osg.samsung.com Signed-off-by: Anshuman Khandual khand

[PATCH V4 13/13] selftests, powerpc: Add gitignore file for the new DSCR tests

2015-05-18 Thread Anshuman Khandual
This patch adds .gitignore for all the newly added DSCR tests. Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- tools/testing/selftests/powerpc/dscr/.gitignore | 7 +++ 1 file changed, 7 insertions(+) create mode 100644 tools/testing/selftests/powerpc/dscr/.gitignore diff

Re: [V6,1/9] elf: Add new powerpc specifc core note sections

2015-04-13 Thread Anshuman Khandual
On 04/10/2015 04:03 PM, Ulrich Weigand wrote: Anshuman Khandual khand...@linux.vnet.ibm.com wrote on 10.04.2015 11:10:35: I had posted a newer version [V7] of this patch series couple of months back which got ignored while the discussion continued in this version. V7: https://lkml.org

Re: [V6,1/9] elf: Add new powerpc specifc core note sections

2015-04-09 Thread Anshuman Khandual
On 04/09/2015 04:41 AM, Michael Neuling wrote: On Wed, 2015-04-08 at 19:50 +0200, Ulrich Weigand wrote: Anshuman Khandual khand...@linux.vnet.ibm.com wrote on 23.03.2015 11:34:30: With that in mind, do we have a way to set the top 32bits of the MSR (which contain the TM bits) when ptracing

Re: [V2, 06/12] selftests, powerpc: Add test for system wide DSCR default

2015-04-09 Thread Anshuman Khandual
On 04/09/2015 04:01 PM, Anshuman Khandual wrote: On 03/27/2015 05:31 PM, Michael Ellerman wrote: On Tue, 2015-13-01 at 10:22:34 UTC, Anshuman Khandual wrote: This patch adds a test case for the system wide DSCR default value, which when changed through it's sysfs interface must be visible

Re: [V2, 06/12] selftests, powerpc: Add test for system wide DSCR default

2015-04-09 Thread Anshuman Khandual
On 03/27/2015 05:31 PM, Michael Ellerman wrote: On Tue, 2015-13-01 at 10:22:34 UTC, Anshuman Khandual wrote: This patch adds a test case for the system wide DSCR default value, which when changed through it's sysfs interface must be visible to all threads reading DSCR either through

[PATCH V8 08/28] powerpc, ptrace: Enable support for NT_PPC_CFPR

2015-05-19 Thread Anshuman Khandual
the get, set and active functions for this new register set added. Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- arch/powerpc/kernel/ptrace.c | 126 +++ 1 file changed, 126 insertions(+) diff --git a/arch/powerpc/kernel/ptrace.c b/arch

[PATCH V8 06/28] powerpc, ptrace: Adapt gpr32_get, gpr32_set functions for transaction

2015-05-19 Thread Anshuman Khandual
This patch splits gpr32_get, gpr32_set functions to accommodate in transaction ptrace requests implemented in patches later in the series. Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- arch/powerpc/kernel/ptrace.c | 64 +++- 1 file

[PATCH V8 16/28] selftests, powerpc: Add more SPR numbers, TM VMX instructions to 'reg.h'

2015-05-19 Thread 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. Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com --- tools/testing/selftests/powerpc/reg.h | 21

[PATCH V8 24/28] selftests, powerpc: Add ptrace tests for VSX, VMX registers

2015-05-19 Thread 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. Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com

<    1   2   3   4   5   6   7   8   9   10   >