[PATCH v3 7/8] powerpc/perf/hv-24x7: Support v2 of the hypervisor API

2017-06-29 Thread Thiago Jung Bauermann
POWER9 introduces a new version of the hypervisor API to access the 24x7 perf counters. The new version changed some of the structures used for requests and results. Signed-off-by: Thiago Jung Bauermann --- arch/powerpc/perf/hv-24x7.c| 135 +++-- arch/powe

[PATCH v3 8/8] powerpc/perf/hv-24x7: Aggregate result elements on POWER9 SMT8

2017-06-29 Thread Thiago Jung Bauermann
On POWER9 SMT8 the 24x7 API returns two result elements for physical core and virtual CPU events and we need to add their counts to get the final result. Reviewed-by: Sukadev Bhattiprolu Signed-off-by: Thiago Jung Bauermann --- arch/powerpc/perf/hv-24x7.c | 53 ++

Re: [PATCH] scsi: ibmvscsi: constify dev_pm_ops structures.

2017-06-29 Thread Tyrel Datwyler
On 06/29/2017 12:43 AM, Arvind Yadav wrote: > dev_pm_ops are not supposed to change at runtime. All functions > working with dev_pm_ops provided by work with const > dev_pm_ops. So mark the non-const structs as const. > > File size before: >text data bss dec hex filename

Re: [PATCH] scsi: ibmvfc: constify dev_pm_ops structures.

2017-06-29 Thread Tyrel Datwyler
On 06/29/2017 12:54 AM, Arvind Yadav wrote: > dev_pm_ops are not supposed to change at runtime. All functions > working with dev_pm_ops provided by work with const > dev_pm_ops. So mark the non-const structs as const. > > File size before: >text data bss dec hex filename

[PATCH RFC 21/26] powerpc: Remove spin_unlock_wait() arch-specific definitions

2017-06-29 Thread Paul E. McKenney
There is no agreed-upon definition of spin_unlock_wait()'s semantics, and it appears that all callers could do just as well with a lock/unlock pair. This commit therefore removes the underlying arch-specific arch_spin_unlock_wait(). Signed-off-by: Paul E. McKenney Cc: Benjamin Herrenschmidt Cc:

[PATCH 1/2] powerpc/tm: fix live state of vs0/32 in tm_reclaim

2017-06-29 Thread Gustavo Romero
Currently tm_reclaim() can return with a corrupted vs0 (fp0) or vs32 (v0) due to the fact vs0 is used to save FPSCR and vs32 is used to save VSCR. Later, we recheckpoint trusting that the live state of FP and VEC are ok depending on the MSR.FP and MSR.VEC bits, i.e. if MSR.FP is enabled that means

[PATCH 2/2] powerpc/tm: test for regs sanity in VSX exception

2017-06-29 Thread Gustavo Romero
Add a test to check if FP/VSX registers are sane (restored correctly) after a VSX unavailable exception is caught in the middle of a transaction. Signed-off-by: Gustavo Romero Signed-off-by: Breno Leitao --- tools/testing/selftests/powerpc/tm/Makefile| 3 +- .../testing/selftests/powe

Re: kworker with empty task->cpus_allowed (was Re: [v4.12-rc1 regression] mount ext4 fs results in kernel crash on PPC64le host)

2017-06-29 Thread Michael Ellerman
Tejun Heo writes: > Hello, > > Could be the same problem as the one reported in the following thread. > > http://lkml.kernel.org/r/1497266622.15415.39.ca...@abdul.in.ibm.com > > The root cause there is ppc arch code not setting up possible cpu <-> > numa mapping during boot. Huh? You changed t

Re: [1/3] cpuidle: powerpc: cpuidle set polling before enabling irqs

2017-06-29 Thread Michael Ellerman
"Rafael J. Wysocki" writes: > On Thu, Jun 29, 2017 at 2:21 PM, Michael Ellerman > wrote: >> On Wed, 2017-06-14 at 13:02:39 UTC, Nicholas Piggin wrote: >>> local_irq_enable can cause interrupts to be taken which could >>> take significant amount of processing time. The idle process >>> should set

Re: [linux-next] cpus stalls detected few hours after booting next kernel

2017-06-29 Thread Abdul Haleem
On Fri, 2017-06-30 at 00:45 +1000, Nicholas Piggin wrote: > On Thu, 29 Jun 2017 20:23:05 +1000 > Nicholas Piggin wrote: > > > On Thu, 29 Jun 2017 19:36:14 +1000 > > Nicholas Piggin wrote: > > > > I don't *think* the replay-wakeup-interrupt patch is directly involved, > > > but > > > it's likel

[PATCH] powerpc/hugetlbfs: Export HPAGE_SHIFT

2017-06-29 Thread Oliver O'Halloran
Export it so it can be referenced inside a module. Signed-off-by: Oliver O'Halloran --- arch/powerpc/mm/hugetlbpage.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/mm/hugetlbpage.c b/arch/powerpc/mm/hugetlbpage.c index ceeab69cf7fc..96293560f294 100644 --- a/arch/powerpc/mm/hu

<    1   2