]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sparc64: perf: make sure we do not set the 'picnht' bit in the PCR
authorDave Aldridge <david.j.aldridge@oracle.com>
Fri, 2 Dec 2016 16:50:44 +0000 (08:50 -0800)
committerAllen Pais <allen.pais@oracle.com>
Wed, 17 May 2017 07:08:29 +0000 (12:38 +0530)
commit7c6ee2873bd162473d6f79d05d2228ef315c3da5
tree11977ce636da622ce226cb44d5d1add97dc47dcf
parent142edc850cf2c52bce3655634fbec1dbae1e74ad
sparc64: perf: make sure we do not set the 'picnht' bit in the PCR

Testing with the perf_fuzzer tool revealed an issue when the 'picnht' bit
was set in the Performance Control Register. Setting this bit means that
privileged software cannot access the PIC counter and we eventually end up
with messages of the form shown below, being reported.

NMI watchdog: BUG: soft lockup - CPU#788 stuck for 23s! [perf_fuzzer:336548]

This commit fixes the issue my making sure that the 'picnht' bit
is always reset when writing to the PCR register.

Orabug: 24926097

Signed-off-by: Dave Aldridge <david.j.aldridge@oracle.com>
Signed-off-by: Allen Pais <allen.pais@oracle.com>
arch/sparc/kernel/perf_event.c