[PATCH 3.14 20/77] powerpc/powernv: Switch off MMU before entering nap/sleep/rvwinkle mode

2015-01-13 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Paul Mackerras commit 8117ac6a6c2fa0f847ff6a21a1f32c8d2c8501d0 upstream. Currently, when going idle, we set the flag indicating that we are in nap mode (paca->kvm_hstate.hwthread_state) and th

[PATCH 3.18 028/150] powerpc/powernv: Switch off MMU before entering nap/sleep/rvwinkle mode

2015-01-13 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Paul Mackerras commit 8117ac6a6c2fa0f847ff6a21a1f32c8d2c8501d0 upstream. Currently, when going idle, we set the flag indicating that we are in nap mode (paca->kvm_hstate.hwthread_state) and th

[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 --- NOTE: As Michael had mentioned (https://lkml.org/lkm

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

2015-01-13 Thread Anshuman Khandual
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 the child to do some ptrace probing using the recently added regset interfaces. The parent process then

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

2015-01-13 Thread Anshuman Khandual
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 added previously in this regard. Signed-off-by: Anshum

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

2015-01-13 Thread Anshuman Khandual
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 sets i.e REGSET_TM_SPR, REGSET_TM_CGPR, REGSET_TM_CFPR, REGSET_CVMX support corresponding to these following new ELF co

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

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

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

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

2015-01-13 Thread Anshuman Khandual
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 debug register sets on powerpc platform. Previous versions: == RFC: https://lkml.org

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

2015-01-13 Thread Anshuman Khandual
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 of new ELF core note sections extends the existing ELF ABI without affecting it in any manner. Acked-by: Andrew Morto

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

Re: [PATCH v3 2/3] pstore: Add pstore type id for firmware partition

2015-01-13 Thread Michael Ellerman
On Wed, 2014-12-24 at 17:28 +0530, Hari Bathini wrote: > This patch adds a pstore type id to be used for opal specific > nvram partitions. This needs to be CC'ed to the pstore maintainers, and at the very least get an ACK from them. They also might ask why we need another powerpc specific pstore

Re: [PATCH v3 1/3] powerpc/nvram: move generic code for nvram and pstore

2015-01-13 Thread Michael Ellerman
On Wed, 2014-12-24 at 17:28 +0530, Hari Bathini wrote: > With minor checks, we can move most of the code for nvram > under pseries to a common place to be re-used by other > powerpc platforms like powernv. This patch moves such > common code to arch/powerpc/kernel/nvram_64.c file. As I said in my

Re: offlining cpus breakage

2015-01-13 Thread Shreyas B Prabhu
Hi, On Wednesday 07 January 2015 03:07 PM, Alexey Kardashevskiy wrote: > Hi! > > "ppc64_cpu --smt=off" produces multiple error on the latest upstream kernel > (sha1 bdec419): > > NMI watchdog: BUG: soft lockup - CPU#20 stuck for 23s! [swapper/20:0] > > or > > INFO: rcu_sched detected stalls

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 >>> --- >>> .../testing/selftests/powerpc/co

[PATCH] powerpc: Remove old compile time disabled syscall tracing code

2015-01-13 Thread Michael Ellerman
We have code to do syscall tracing which is disabled at compile time by default. It's not been touched since the dawn of time (ie. v2.6.12). There are now better ways to do syscall tracing, ie. using the raw_syscall, or syscall tracepoints. For the specific case of tracing syscalls at boot on a s

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

2015-01-13 Thread Michael Ellerman
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 > > --- > > .../testing/selftests/powerpc/copyloops/.gitignore | 4 > > tools/testing/selftests/

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

2015-01-13 Thread Shuah Khan
Please add a commit log. On 01/13/2015 04:49 PM, Michael Ellerman wrote: > Signed-off-by: Michael Ellerman > --- > .../testing/selftests/powerpc/copyloops/.gitignore | 4 > tools/testing/selftests/powerpc/mm/.gitignore | 1 + > tools/testing/selftests/powerpc/pmu/.gitignore | 3

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

2015-01-13 Thread Michael Ellerman
Signed-off-by: Michael Ellerman --- .../testing/selftests/powerpc/copyloops/.gitignore | 4 tools/testing/selftests/powerpc/mm/.gitignore | 1 + tools/testing/selftests/powerpc/pmu/.gitignore | 3 +++ tools/testing/selftests/powerpc/pmu/ebb/.gitignore | 22 ++

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

2015-01-13 Thread Michael Ellerman
On Tue, 2015-01-13 at 08:22 -0700, Shuah Khan wrote: > On 01/13/2015 03:22 AM, 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 the > >

Re: [PATCH 3/6] powerpc/ps3: Write highmem info to repository

2015-01-13 Thread Geoff Levand
Hi Michael, On Tue, 2015-01-13 at 14:04 +1100, Michael Ellerman wrote: > On Tue, 2015-01-13 at 01:00 +, Geoff Levand wrote: > > Add calls to the ps3_mm_set_repository_highmem() routine when the ps3 > > r1 highmem region is either created or destroyed. > > What does this actually do? ie. from

Re: [PATCH V10 00/17] Enable SRIOV on Power8

2015-01-13 Thread Bjorn Helgaas
On Mon, Dec 22, 2014 at 02:05:22PM +0800, Wei Yang wrote: > Bjorn, > > This patch set is tested on 3.19-rc1 and with the offset/stride update patch. > > I see your comment on the MEM64 issue, so if that is reverted, this > patch set will not work. While I think we can work in parallel, I sent it

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

2015-01-13 Thread Shuah Khan
On 01/13/2015 03:22 AM, 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 based SPR or t

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

2015-01-13 Thread Shuah Khan
On 01/13/2015 03:22 AM, Anshuman Khandual wrote: > 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 Kh

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

2015-01-13 Thread Shuah Khan
On 01/13/2015 03:22 AM, Anshuman Khandual wrote: > 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 > --- > tools/testing/selftests/powerpc/dscr/Mak

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

2015-01-13 Thread Shuah Khan
On 01/13/2015 03:22 AM, Anshuman Khandual wrote: > 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 > --- > tools/testing/selftests/powerpc/dscr/Makefile

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

2015-01-13 Thread Shuah Khan
On 01/13/2015 03:22 AM, Anshuman Khandual wrote: > 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 Khan

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

2015-01-13 Thread Shuah Khan
On 01/13/2015 03:22 AM, Anshuman Khandual wrote: > 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

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

2015-01-13 Thread Shuah Khan
On 01/13/2015 03:22 AM, 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 the > privilege state SPR or the problem state SPR. The DSCR value >

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

2015-01-13 Thread Anshuman Khandual
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 based SPR or the privilege state based SPR. Signed-off-by: Anshuman Kh

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

[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 --- tools/testing/selftests/powerpc/dscr/Makefile | 2 +- .../powerpc/dscr/dscr_inherit_exec_test.c

[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 --- tools/testing/selftests/powerpc/dscr/Makefile | 3 +- .../selftests/powerpc/dscr/dscr_inherit_test.c

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

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

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

2015-01-13 Thread Anshuman Khandual
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 the privilege state SPR or the problem state SPR. The DSCR value change should be immediate as well. Signed-off-by: Anshuma

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

2015-01-13 Thread Anshuman Khandual
This patch adds a new documentation file explaining the DSCR support on powerpc platforms. This explains DSCR related data structure, code paths and also available user interfaces. Any further functional changes to the DSCR support in the kernel should definitely update the documentation here. Sig

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

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

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

2015-01-13 Thread Anshuman Khandual
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 be listed as follows. (1) http://ozlabs.org/~anton/j

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

2015-01-13 Thread Anshuman Khandual
Currently DSCR (Data Stream Control Register) can be accessed with mfspr or mtspr instructions inside a thread via two different SPR numbers. One being the user accessible problem state SPR number 0x03 and the other being the privilege state SPR number 0x11. All access through the privilege state S

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

2015-01-13 Thread Anshuman Khandual
The process context switch code no longer uses dscr_default variable from the sysfs.c file. The variable became unused when we started storing the CPU specific DSCR value in the PACA structure instead. This patch just removes this extern declaration. It was originally added by the following commit.

[PATCH 1/2] MAINTAINERS: ibmvscsi driver maintainer change

2015-01-13 Thread Tyrel Datwyler
Change maintainer of ibmvscsi driver to Tyrel Datwyler. Signed-off-by: Tyrel Datwyler Cc: Nathan Fontenot Cc: Brian King --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 79b2e4b..a646b94 100644 --- a/MAINTAINERS +++ b/MAINTAINE

Re: [PATCH 09/10] PCI, powerpc: clip firmware assigned resource under parent bridge's

2015-01-13 Thread Wei Yang
Did a quick test, looks good on my machine. Thanks :-) On Mon, Jan 12, 2015 at 11:23:19AM -0800, Yinghai Lu wrote: >Some bios put range that is not fully coverred by root bus resources. >Try to clip them and update them in pci bridge bars. > >We'd like to fix other arches instead of just x86. > >