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

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 > wrote: >> > On Mon, 30 Mar 2015 12:45:32 +1030 Joel Stanley wrote: >> > >>> >> The kernel has orderly_poweroff which allows the kernel to initiate a >>> >> graceful shutdown of userspace

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 ' session). Perf report still displays the generic event based relative symbol classification as usual. This problem

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&#x

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 readi

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 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 >>>> (wh

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

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

2015-04-19 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 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

[RFC] powerpc, tm: Drop tm_orig_msr from thread_struct

2015-04-20 Thread Anshuman Khandual
thread_struct structure. This patch does that change. Signed-off-by: Anshuman Khandual --- This issue came up in the discussion regarding ptrace interface for TM specific registers https://lkml.org/lkml/2015/4/20/100, so just wanted to give this a try. The basic TM tests still pass after this change

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

[PATCH] powerpc, mm: Fix build failure due to CONFIG_PPC_TRANSACTIONAL_MEM

2015-04-21 Thread Anshuman Khandual
: Anshuman Khandual --- arch/powerpc/mm/hash_utils_64.c: In function ‘flush_hash_hugepage’: arch/powerpc/mm/hash_utils_64.c:1381:1: error: label at end of compound statement tm_abort: ^ make[1]: *** [arch/powerpc/mm/hash_utils_64.o] Error 1 make: *** [arch/powerpc/mm] Error 2 arch/powerpc/mm

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

Re: [RFC] powerpc, tm: Drop tm_orig_msr from thread_struct

2015-04-23 Thread Anshuman Khandual
On 04/20/2015 01:45 PM, Anshuman Khandual wrote: > Currently tm_orig_msr is getting used during process context switch only. > Then there is ckpt_regs which saves the checkpointed userspace context > The MSR slot contained in ckpt_regs structure can be used during process > context sw

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

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

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

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 V5 12/13] selftests, powerpc: Add thread based stress test for DSCR sysfs interfaces

2015-06-03 Thread Anshuman Khandual
On 05/21/2015 12:13 PM, Anshuman Khandual wrote: > This patch adds a test to update the system wide DSCR value repeatedly > and then verifies that any thread on any given CPU on the system must > be able to see the same DSCR value whether its is being read through > the problem state

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

2014-09-10 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 > plat

[PATCH] powerpc, powernv: Add OPAL platform event driver

2014-09-29 Thread Anshuman Khandual
system explicitly. Signed-off-by: Anshuman Khandual --- arch/powerpc/include/asm/opal.h| 45 +- .../include/uapi/asm/opal_platform_events.h| 90 +++ arch/powerpc/platforms/powernv/Makefile| 2 +- .../platforms/powernv/opal-platform-events.c | 737

[PATCH] powerpc, powernv: Add OPAL platform event driver

2014-09-29 Thread Anshuman Khandual
system explicitly. Signed-off-by: Anshuman Khandual --- arch/powerpc/include/asm/opal.h| 45 +- .../include/uapi/asm/opal_platform_events.h| 90 +++ arch/powerpc/platforms/powernv/Makefile| 2 +- .../platforms/powernv/opal-platform-events.c | 737

[PATCH V2] powerpc, powernv: Add OPAL platform event driver

2014-10-05 Thread Anshuman Khandual
system explicitly. Reviewed-by: Neelesh Gupta Signed-off-by: Anshuman Khandual --- Changes in V2: - Changed the function fetch_dpo_timeout - Export opal_platform_events.h for user space consumption arch/powerpc/include/asm/opal.h| 45 +- arch/powerpc/include/uapi/asm/Kbuild

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 96d016108640bc2b7fb0ee800737f

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 V3] powerpc, xmon: Enable HW instruction breakpoint on POWER8

2014-10-09 Thread Anshuman Khandual
function - Some minor code cleanup - Added more in-code documentation - Changed the commit message Changes in V2: (http://patchwork.ozlabs.org/patch/373114/) - Fixed the compilation problem in 32 bit archs - Selective inclusion of plapr_set_ciabr for required platforms - Cleaned up the white space i

[PATCH] powerpc, pseries: All events of EPOW_SYSTEM_SHUTDOWN must initiate shutdown

2014-10-21 Thread Anshuman Khandual
this rtas based event, it will expose itself to a forced abrupt shutdown initiated by the platform firmware. This patch fixes the situation. Signed-off-by: Anshuman Khandual --- arch/powerpc/platforms/pseries/ras.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/platforms/pseries

Re: [PATCH V3] powerpc, xmon: Enable HW instruction breakpoint on POWER8

2014-10-26 Thread Anshuman Khandual
On 10/09/2014 05:18 PM, Anshuman Khandual wrote: > This patch enables support for hardware instruction breakpoints > on POWER8 with the help of a new register CIABR (Completed > Instruction Address Breakpoint Register). With this patch, single > hardware instruction breakpoint can

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

[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

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

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

[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 --- arch/powerpc/include/uapi/asm/elf.h | 2 + arch/powerpc/kernel/ptrace.c| 666

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

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

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

2014-11-10 Thread Anshuman Khandual
compares the received values against the expected values to verify whether it passed the test or not. Signed-off-by: Anshuman Khandual --- tools/testing/selftests/powerpc/tm/Makefile| 2 +- tools/testing/selftests/powerpc/tm/tm-ptrace.c | 529 + 2 files changed, 530

[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 --- arch/powerpc/kernel/process.c | 20 1 file

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 E

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

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 powe

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

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 > wrote: > >> This patch adds four new core note sections for PowerPC transactional >> memory and one core note section for general miscellaneous debug registers. >>

[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

  1   2   3   4   5   6   7   8   9   10   >