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

2014-11-25 Thread Anshuman Khandual
ocess 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 --- 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 --- arch/powerpc/include/uapi/asm/elf.h | 2 + arch/powerpc/kernel/ptrace.c| 667

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

2014-11-25 Thread Anshuman Khandual
Morton Signed-off-by: Anshuman Khandual --- 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/include/uapi/linux/elf.h @@ -379,6 +379,11 @@ typedef

[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 --- arch/powerpc

[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 --- arch/powerpc/kernel/ptrace.c | 103

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

2014-11-25 Thread Anshuman Khandual
: Anshuman Khandual --- 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 fdc8e2f..a41bd98 100644

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 basi

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

2014-12-01 Thread Anshuman Khandual
Morton Signed-off-by: Anshuman Khandual --- 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/include/uapi/linux/elf.h @@ -379,6 +379,11 @@ typedef

[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 --- arch/powerpc/kernel/ptrace.c | 104

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

2014-12-01 Thread Anshuman Khandual
ocess 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 --- 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) for

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 al

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 d

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 > | specif

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 powe

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

2015-05-20 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 Signed-off-by: Anshuman Khandual Signed-off-by: Anton Blanchard --- tools/testing/selftests/powerpc/dscr/Mak

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

2015-05-20 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 V5 10/13] selftests, powerpc: Add test for DSCR inheritence across fork & exec

2015-05-20 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 Signed-off-by: Anshuman Khandual Signed-off-by: Anton Blanchard --- tools/testing/selftests/powerpc/dscr/Mak

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

2015-05-20 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 --- arch/powerpc/kernel/asm-offsets.c | 2 +- arch/powerpc/kernel

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

2015-05-20 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 --- arch/powerpc/include/asm/processor.h | 9 + arch/powerpc/kernel/sysfs.c | 38

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

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

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

2015-05-20 Thread Anshuman Khandual
he 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 Khan

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

2015-05-20 Thread Anshuman Khandual
. Signed-off-by: Anshuman Khandual --- 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/powerpc/00-INDEX b

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

2015-05-20 Thread Anshuman Khandual
Signed-off-by: Anshuman Khandual --- 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 tools/testing/selftests/powerpc/dscr

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

2015-05-20 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 Signed-off-by: Anshuman Khandual Signed-off-by: Anton Blanchard

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

2015-05-20 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 Signed-off-by: Anshuman Khandual Signed-off-by: Anton Blanc

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

2015-05-20 Thread Anshuman Khandual
. efcac658: powerpc: Per process DSCR + some fixes (try#4) Signed-off-by: Anshuman Khandual --- 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 --- a/arch/powerpc/kernel

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

2015-05-20 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 Signed-off-by: Anshuman Khandual --- tools/testing/selftests

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

2015-05-20 Thread Anshuman Khandual
Khan Signed-off-by: Anshuman Khandual Signed-off-by: Anton Blanchard --- tools/testing/selftests/powerpc/Makefile | 2 +- tools/testing/selftests/powerpc/dscr/Makefile | 17 +++ tools/testing/selftests/powerpc/dscr/dscr.h| 128 + .../selftests/po

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

2015-05-25 Thread Anshuman Khandual
On 05/21/2015 12:13 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 >

Re: [PATCH V8 00/28] Add new powerpc specific ELF core notes

2015-05-25 Thread Anshuman Khandual
On 05/19/2015 08:37 PM, Anshuman Khandual wrote: > From: Anshuman Khandual > > This patch series adds twelve new ELF core note sections which can > be used with existing ptrace request PTRACE_GETREGSET-SETREGSET for accessing > various transactional memory and other misc

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 d

[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 --- 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 --- a/arch/powerpc/kernel

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

2015-05-18 Thread Anshuman Khandual
://lkml.org/lkml/2015/1/13/148) - - 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.ozla

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

2015-05-18 Thread Anshuman Khandual
Khan Signed-off-by: Anshuman Khandual Signed-off-by: Anton Blanchard --- tools/testing/selftests/powerpc/Makefile | 2 +- tools/testing/selftests/powerpc/dscr/Makefile | 17 +++ tools/testing/selftests/powerpc/dscr/dscr.h| 120 +++ .../selftests/powerpc

[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 Signed-off-by: Anshuman Khandual Signed-off-by: Anton Blanchard --- tools/testing/selftests/powerpc/dscr/Mak

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

2015-05-18 Thread Anshuman Khandual
. Signed-off-by: Anshuman Khandual --- 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/powerpc/00-INDEX b

[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 --- arch/powerpc/kernel/asm-offsets.c | 2 +- arch/powerpc/kernel

[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 Signed-off-by: Anshuman Khandual --- tools/testing/selftests

[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 Signed-off-by: Anshuman Khandual Signed-off-by: Anton Blanchard --- tools/testing/selftests/powerpc/dscr/Mak

[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 --- arch/powerpc/include/asm/processor.h | 9 + arch/powerpc/kernel/sysfs.c | 38

[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 Signed-off-by: Anshuman Khandual Signed-off-by: Anton Blanc

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

2015-05-18 Thread Anshuman Khandual
Signed-off-by: Anshuman Khandual --- 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 tools/testing/selftests/powerpc/dscr

[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 Signed-off-by: Anshuman Khandual Signed-off-by: Anton Blanchard

[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 --- tools/testing/selftests/powerpc/dscr/.gitignore | 7 +++ 1 file changed, 7 insertions(+) create mode 100644 tools/testing/selftests/powerpc/dscr/.gitignore diff --git a/tools/testing

[PATCH V8 07/28] powerpc, ptrace: Enable support for NT_PPC_CGPR

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

[PATCH V8 26/28] selftests, powerpc: Add ptrace tests for VSX, VMX registers in suspended TM

2015-05-19 Thread Anshuman Khandual
This patch adds ptrace interface test for VSX, VMX registers inside suspended TM context. Signed-off-by: Anshuman Khandual --- tools/testing/selftests/powerpc/ptrace/Makefile| 3 +- .../selftests/powerpc/ptrace/ptrace-tm-spd-vsx.c | 211 + 2 files changed, 213

[PATCH V8 17/28] selftests, powerpc: Add ptrace tests for EBB

2015-05-19 Thread Anshuman Khandual
This patch adds ptrace interface test for EBB specific registers. This also adds some generic ptrace interface based helper functions to be used by other patches later on in the series. Signed-off-by: Anshuman Khandual --- tools/testing/selftests/powerpc/Makefile | 2 +- tools

[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 --- arch/powerpc/kernel/ptrace.c | 126 +++ 1 file changed, 126 insertions(+) diff --git a/arch/powerpc/kernel/ptrace.c b/arch/powerpc/kernel/ptrace.c index

[PATCH V8 28/28] selftests, powerpc: Add .gitignore file for ptrace executables

2015-05-19 Thread Anshuman Khandual
This patch adds a .gitignore file for all the executables in the ptrace test directory thus making invisible with git status query. Signed-off-by: Anshuman Khandual --- tools/testing/selftests/powerpc/ptrace/.gitignore | 11 +++ 1 file changed, 11 insertions(+) create mode 100644 tools

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

2015-05-19 Thread 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. Signed-off-by: Anshuman Khandual --- tools/testing/selftests/powerpc/ptrace/Makefile| 3

[PATCH V8 22/28] selftests, powerpc: Add ptrace tests for TAR, PPR, DSCR in TM

2015-05-19 Thread 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. Signed-off-by: Anshuman Khandual --- tools/testing/selftests/powerpc/ptrace/Makefile| 2

[PATCH V8 20/28] selftests, powerpc: Add ptrace tests for GPR/FPR registers in suspended TM

2015-05-19 Thread Anshuman Khandual
This patch adds ptrace interface test for GPR/FPR registers inside suspended TM context. Signed-off-by: Anshuman Khandual --- tools/testing/selftests/powerpc/ptrace/Makefile| 2 +- .../selftests/powerpc/ptrace/ptrace-tm-spd-gpr.c | 318 + 2 files changed, 319

[PATCH V8 18/28] selftests, powerpc: Add ptrace tests for GPR/FPR registers

2015-05-19 Thread 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. Signed-off-by: Anshuman Khandual --- tools/testing/selftests/powerpc/ptrace/Makefile| 5

[PATCH V8 14/28] powerpc, ptrace: Enable support for EBB registers

2015-05-19 Thread Anshuman Khandual
. It also implements the get, set and active functions for this new register sets added. Signed-off-by: Anshuman Khandual --- arch/powerpc/include/uapi/asm/elf.h | 2 + arch/powerpc/kernel/ptrace.c| 147 2 files changed, 149 insertions(+) diff --git a

[PATCH V8 27/28] selftests, powerpc: Add ptrace tests for TM SPR registers

2015-05-19 Thread 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. Signed-off-by: Anshuman Khandual --- tools/testing/selftests/powerpc/ptrace/Makefile| 2 +- .../selftests/powerpc/ptrace/ptrace-tm-spr.c

[PATCH V8 19/28] selftests, powerpc: Add ptrace tests for GPR/FPR registers in TM

2015-05-19 Thread 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. Signed-off-by: Anshuman Khandual --- tools/testing/selftests/powerpc/ptrace/Makefile| 3 +- .../selftests/powerpc/ptrace

[PATCH V8 10/28] powerpc, ptrace: Enable support for NT_PPC_CVSX

2015-05-19 Thread Anshuman Khandual
the get, set and active functions for this new register set added. Signed-off-by: Anshuman Khandual --- arch/powerpc/include/uapi/asm/elf.h | 1 + arch/powerpc/kernel/ptrace.c| 129 2 files changed, 130 insertions(+) diff --git a/arch/powerpc/include

[PATCH V8 05/28] powerpc, ptrace: Enable in transaction NT_PPC_VSX ptrace requests

2015-05-19 Thread Anshuman Khandual
transaction is active. This patch makes these functions adapt to situations when the transaction is active. Signed-off-by: Anshuman Khandual --- arch/powerpc/kernel/ptrace.c | 64 1 file changed, 64 insertions(+) diff --git a/arch/powerpc/kernel/ptrace.c b/arch

[PATCH V8 11/28] powerpc, ptrace: Enable support for TM SPR state

2015-05-19 Thread Anshuman Khandual
, set and active functions for this new register set added. Signed-off-by: Anshuman Khandual --- arch/powerpc/include/uapi/asm/elf.h | 1 + arch/powerpc/kernel/ptrace.c| 143 +++- 2 files changed, 143 insertions(+), 1 deletion(-) diff --git a/arch/powerpc

[PATCH V8 21/28] selftests, powerpc: Add ptrace tests for TAR, PPR, DSCR registers

2015-05-19 Thread 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. Signed-off-by: Anshuman Khandual --- tools/testing/selftests/powerpc/ptrace/Makefile| 3 +- .../testing/selftests/powerpc

[PATCH V8 23/28] selftests, powerpc: Add ptrace tests for TAR, PPR, DSCR in suspended TM

2015-05-19 Thread Anshuman Khandual
This patch adds ptrace interface test for TAR, PPR, DSCR registers inside suspended TM context. Signed-off-by: Anshuman Khandual --- tools/testing/selftests/powerpc/ptrace/Makefile| 2 +- .../selftests/powerpc/ptrace/ptrace-tm-spd-tar.c | 184 + 2 files changed, 185

[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 --- arch/powerpc/kernel/ptrace.c | 64 +++- 1 file changed, 51 insertions(+), 13

[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 --- tools/testing/selftests/powerpc/reg.h | 21 + 1 file changed

[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 --- tools/testing/selftests

[PATCH V8 09/28] powerpc, ptrace: Enable support for NT_PPC_CVMX

2015-05-19 Thread Anshuman Khandual
the get, set and active functions for this new register set added. Signed-off-by: Anshuman Khandual --- arch/powerpc/include/uapi/asm/elf.h | 1 + arch/powerpc/kernel/ptrace.c| 158 2 files changed, 159 insertions(+) diff --git a/arch/powerpc/include

[PATCH V8 13/28] powerpc, ptrace: Enable support for NT_PPPC_TAR, NT_PPC_PPR, NT_PPC_DSCR

2015-05-19 Thread Anshuman Khandual
corresponding to the ELF core note sections added in this regad. It implements the get, set and active functions for all these new register sets added. Signed-off-by: Anshuman Khandual --- arch/powerpc/kernel/ptrace.c | 117 +++ 1 file changed, 117

[PATCH V8 00/28] Add new powerpc specific ELF core notes

2015-05-19 Thread Anshuman Khandual
From: Anshuman Khandual This patch series adds twelve new ELF core note sections which can be used with existing ptrace request PTRACE_GETREGSET-SETREGSET for accessing various transactional memory and other miscellaneous debug register sets on powerpc platform. Previous versions

[PATCH V8 02/28] powerpc, process: Add the function flush_tmregs_to_thread

2015-05-19 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 --- arch/powerpc

[PATCH V8 04/28] powerpc, ptrace: Enable in transaction NT_PPC_VMX ptrace requests

2015-05-19 Thread Anshuman Khandual
is active. This patch makes these functions adapt to situations when the transaction is active. Signed-off-by: Anshuman Khandual --- arch/powerpc/kernel/ptrace.c | 90 ++-- 1 file changed, 87 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/kernel

[PATCH V8 01/28] elf: Add powerpc specific core note sections

2015-05-19 Thread Anshuman Khandual
sets, EBB related register set etc. Addition of these new ELF core note sections extends the existing ELF ABI on powerpc arch without affecting it in any manner. Signed-off-by: Anshuman Khandual --- include/uapi/linux/elf.h | 12 1 file changed, 12 insertions(+) diff --git a

[PATCH V8 15/28] selftests, powerpc: Move 'reg.h' file outside of 'ebb' sub directory

2015-05-19 Thread Anshuman Khandual
This patch moves 'reg.h' file from pmu 'ebb' sub directory to the powerpc root directory to make all the register definitions and instructions available for tests present in other subsystems. Signed-off-by: Anshuman Khandual --- tools/testing/selftests/powerpc/pmu/ebb/ebb.c

[PATCH V8 12/28] powerpc, ptrace: Enable NT_PPC_TM_CTAR, NT_PPC_TM_CPPR, NT_PPC_TM_CDSCR

2015-05-19 Thread Anshuman Khandual
and REGSET_TM_CDSCR in powerpc corresponding to the ELF core note sections added. It implements the get, set and active functions for all these new register sets added. Signed-off-by: Anshuman Khandual --- arch/powerpc/kernel/ptrace.c | 178 +++ 1 file

[PATCH V8 03/28] powerpc, ptrace: Enable in transaction NT_PRFPREG ptrace requests

2015-05-19 Thread Anshuman Khandual
transaction is active. This patch makes these functions adapt to situations when the transaction is active. Signed-off-by: Anshuman Khandual --- arch/powerpc/kernel/ptrace.c | 93 ++-- 1 file changed, 89 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/kernel

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

2015-05-11 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 >

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 >

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 cas

[RFC 2/9] mm/hugetlb: Add follow_huge_pgd function

2016-03-09 Thread Anshuman Khandual
This just adds 'follow_huge_pgd' function which is will be used later in this series to make 'follow_page_mask' function aware of PGD based huge page implementation. Signed-off-by: Anshuman Khandual --- include/linux/hugetlb.h | 3 +++ mm/hugetlb.c| 10 +++

[RFC 5/9] powerpc/mm: Split huge_pte_offset function for BOOK3S 64K

2016-03-09 Thread Anshuman Khandual
es towards enabling GENERAL_HUGETLB implementation for BOOK3S 64K based huge pages. Signed-off-by: Anshuman Khandual --- arch/powerpc/mm/hugetlbpage.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/arch/powerpc/mm/hugetlbpage.c b/arch/powerpc/mm/hugetlbpa

[RFC 7/9] powerpc/hugetlb: Change follow_huge_* routines for BOOK3S 64K

2016-03-09 Thread Anshuman Khandual
ions for everything else. While being here, also added 'follow_huge_pgd' function which was missing earlier. Signed-off-by: Anshuman Khandual --- arch/powerpc/mm/hugetlbpage.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/powerpc/mm/hugetlbpage.c b/arch/powe

[RFC 1/9] mm/hugetlb: Make GENERAL_HUGETLB functions PGD implementation aware

2016-03-09 Thread Anshuman Khandual
at PGD level (along with PMD level), can use ARCH_WANT_GENERAL_HUGETLB option. Signed-off-by: Anshuman Khandual --- mm/hugetlb.c | 9 + 1 file changed, 9 insertions(+) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 01f2b48..a478b7b 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -4251

[RFC 4/9] powerpc/mm: Split huge_pte_alloc function for BOOK3S 64K

2016-03-09 Thread Anshuman Khandual
tion. This change is one of the prerequisites towards enabling GENERAL_HUGETLB implementation for BOOK3S 64K based huge pages. Signed-off-by: Anshuman Khandual --- arch/powerpc/mm/hugetlbpage.c | 67 +++ 1 file changed, 43 insertions(+), 24 deletions(-) di

[RFC 3/9] mm/gup: Make follow_page_mask function PGD implementation aware

2016-03-09 Thread Anshuman Khandual
Currently the function 'follow_page_mask' does not take into account PGD based huge page implementation. This change achieves that and makes it complete. Signed-off-by: Anshuman Khandual --- mm/gup.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/mm/gup.c b/mm/gup.c ind

[RFC 9/9] selfttest/powerpc: Add memory page migration tests

2016-03-09 Thread Anshuman Khandual
This adds two tests for memory page migration. One for normal page migration which works for both 4K or 64K base page size kernel and the other one is for huge page migration which works only on 64K base page sized 16MB huge page implemention at the PMD level. Signed-off-by: Anshuman Khandual

[RFC 6/9] powerpc/hugetlb: Enable ARCH_WANT_GENERAL_HUGETLB for BOOK3S 64K

2016-03-09 Thread Anshuman Khandual
hich are no longer required) are removed with this change. Signed-off-by: Anshuman Khandual --- arch/powerpc/Kconfig | 4 ++ arch/powerpc/include/asm/book3s/64/hash-64k.h | 8 arch/powerpc/mm/hugetlbpage.c | 60 --- 3 files

[RFC 8/9] powerpc/mm: Enable HugeTLB page migration

2016-03-09 Thread Anshuman Khandual
nce during migration. Signed-off-by: Anshuman Khandual --- arch/powerpc/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index c6920bb..cefc368 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -86,6 +86,10 @@ config GENERIC_HWEIG

Re: [RFC 5/9] powerpc/mm: Split huge_pte_offset function for BOOK3S 64K

2016-03-09 Thread Anshuman Khandual
On 03/10/2016 04:27 AM, Dave Hansen wrote: > On 03/09/2016 04:10 AM, Anshuman Khandual wrote: >> > Currently the 'huge_pte_offset' function has only one version for >> > all the configuations and platforms. This change splits the function >> > into two vers

Re: [RFC 9/9] selfttest/powerpc: Add memory page migration tests

2016-03-09 Thread Anshuman Khandual
On 03/10/2016 01:31 AM, Aneesh Kumar K.V wrote: > Anshuman Khandual writes: > >> > [ text/plain ] >> > This adds two tests for memory page migration. One for normal page >> > migration which works for both 4K or 64K base page size kernel and >> > the

Re: [RFC 6/9] powerpc/hugetlb: Enable ARCH_WANT_GENERAL_HUGETLB for BOOK3S 64K

2016-03-09 Thread Anshuman Khandual
On 03/10/2016 01:28 AM, Aneesh Kumar K.V wrote: > Anshuman Khandual writes: > >> > [ text/plain ] >> > This enables ARCH_WANT_GENERAL_HUGETLB for BOOK3S 64K in Kconfig. >> > It also implements a new function 'pte_huge' which is required by >> >

Re: [RFC 4/9] powerpc/mm: Split huge_pte_alloc function for BOOK3S 64K

2016-03-09 Thread Anshuman Khandual
On 03/10/2016 01:25 AM, Aneesh Kumar K.V wrote: > Anshuman Khandual writes: > >> > [ text/plain ] >> > From: root >> > >> > Currently the 'huge_pte_alloc' function has two versions, one for the >> > BOOK3S and the other one for the

Re: [PATCH 02/10] mm/hugetlb: Add PGD based implementation awareness

2016-04-10 Thread Anshuman Khandual
On 04/07/2016 02:34 PM, Balbir Singh wrote: > > > On 07/04/16 15:37, Anshuman Khandual wrote: >> Currently the config ARCH_WANT_GENERAL_HUGETLB enabled functions like >> 'huge_pte_alloc' and 'huge_pte_offset' dont take into account HugeTLB >> pag

Re: [PATCH 03/10] mm/hugetlb: Protect follow_huge_(pud|pgd) functions from race

2016-04-10 Thread Anshuman Khandual
On 04/07/2016 02:56 PM, Balbir Singh wrote: > > On 07/04/16 15:37, Anshuman Khandual wrote: >> > follow_huge_(pmd|pud|pgd) functions are used to walk the page table and >> > fetch the page struct during 'follow_page_mask' call. There are possible >> &g

Re: [PATCH 03/10] mm/hugetlb: Protect follow_huge_(pud|pgd) functions from race

2016-04-10 Thread Anshuman Khandual
On 04/07/2016 03:04 PM, kbuild test robot wrote: > All errors (new ones prefixed by >>): > >mm/hugetlb.c: In function 'follow_huge_pud': >>> >> mm/hugetlb.c:4360:3: error: implicit declaration of function 'pud_page' >>> >> [-Werror=implicit-function-declaration] > page = pud_page(*pud)

Re: [PATCH 02/10] mm/hugetlb: Add PGD based implementation awareness

2016-04-10 Thread Anshuman Khandual
On 04/11/2016 10:55 AM, Anshuman Khandual wrote: > On 04/07/2016 02:34 PM, Balbir Singh wrote: >> > >> > >> > On 07/04/16 15:37, Anshuman Khandual wrote: >>> >> Currently the config ARCH_WANT_GENERAL_HUGETLB enabled functions like >>> &g

[PATCH 09/10] powerpc/hugetlb: Selectively enable ARCH_ENABLE_HUGEPAGE_MIGRATION

2016-04-06 Thread Anshuman Khandual
ng HugeTLB page migration and clears the way. Signed-off-by: Anshuman Khandual --- arch/powerpc/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 9b3ce18..f2a45eb 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -8

[PATCH 00/10] Enable HugeTLB page migration on POWER

2016-04-06 Thread Anshuman Khandual
This patch series enables HugeTLB page migration on POWER platform. This series has some core VM changes (patch 1, 2, 3) and some powerpc specific changes (patch 4, 5, 6, 7, 8, 9, 10). Comments, suggestions and inputs are welcome. Anshuman Khandual (10): mm/mmap: Replace SHM_HUGE_MASK with

[PATCH 01/10] mm/mmap: Replace SHM_HUGE_MASK with MAP_HUGE_MASK inside mmap_pgoff

2016-04-06 Thread Anshuman Khandual
ext. Hence change it back. Signed-off-by: Anshuman Khandual --- mm/mmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/mmap.c b/mm/mmap.c index bd2e1a53..7d730a4 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -1315,7 +1315,7 @@ SYSCALL_DEFINE6(mmap_pgoff, unsigned long, addr, unsi

[PATCH 03/10] mm/hugetlb: Protect follow_huge_(pud|pgd) functions from race

2016-04-06 Thread Anshuman Khandual
sion of the function 'follow_huge_addr' has been left as it is and its upto the architecture to decide on it. Signed-off-by: Anshuman Khandual --- include/linux/mm.h | 33 +++ mm/hugetlb.c | 67 ++ 2 file

[PATCH 08/10] powerpc/hugetlb: Selectively enable ARCH_WANT_GENERAL_HUGETLB

2016-04-06 Thread Anshuman Khandual
change. Signed-off-by: Anshuman Khandual --- arch/powerpc/Kconfig | 4 +++ arch/powerpc/mm/hugetlbpage.c | 58 --- 2 files changed, 4 insertions(+), 58 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 7cd32c0..9b3ce

<    4   5   6   7   8   9   10   11   12   13   >