Ubuntu 16.04.03: perf tool does not count pm_run_inst_cmpl with rcode on POWER9 DD2.0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
The Ubuntu-power-systems project |
Fix Released
|
High
|
Canonical Kernel Team | ||
linux (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Zesty |
Fix Released
|
High
|
Unassigned |
Bug Description
== SRU Justification ==
Ubuntu 16.04.03: perf tool does not count pm_run_inst_cmpl with rcode on POWER9 DD2.0.
This is a regression introduced by mainline commit 8d911904f3ce. This regression
is resolved by commit 8c218578fcbbbdb
Commit 8c218578fc is available in mailine as of 4.12-rc5.
---Problem Description---
Unable to count pm_run_inst_cmpl using perf tool on boston dd2.0
root@isvbos3:~# perf stat -e r500fa,r600f4 -a sleep 1
Performance counter stats for 'system wide':
<not supported> r500fa
8,162,912 r600f4
1.001562716 seconds time elapsed
---uname output---
Linux isvbos3 4.10.0-29-generic #33~16.04.1-Ubuntu SMP Tue Jul 25 18:17:06 UTC 2017 ppc64le ppc64le ppc64le GNU/Linux
Machine Type = p9 dd2.0
---Steps to Reproduce---
root@isvbos3:~# perf stat -e r500fa,r600f4 -a sleep 1
Performance counter stats for 'system wide':
<not supported> r500fa
8,162,912 r600f4
1.001562716 seconds time elapsed
> Also we need this upstream fix 8c218578fcbbbdb
> the distro.
$ git log 8c218578fcbbbdb
commit 8c218578fcbbbdb
Author: Madhavan Srinivasan <email address hidden>
Date: Fri May 26 13:38:27 2017 +0530
powerpc/perf: Fix Power9 test_adder fields
Commit 8d911904f3ce4 ('powerpc/perf: Add restrictions to PMC5 in power9 DD1')
was added to restrict the use of PMC5 in Power9 DD1. Intention was to disable
the use of PMC5 using raw event code. But instead of updating the
power9_
power9_pmu structure. Fix it.
Fixes: 8d911904f3ce ("powerpc/perf: Add restrictions to PMC5 in power9 DD1")
Reported-by: Shriya <email address hidden>
Signed-off-by: Madhavan Srinivasan <email address hidden>
Tested-by: Shriya <email address hidden>
Signed-off-by: Michael Ellerman <email address hidden>
$ git describe --contains 8c218578fcbbbdb
v4.12-rc7~9^2~13
$
Commit 8c218578fc is available with kernel 4.12-rc7 afterwards.
I don't see this fix in the Ubuntu 16.04.3 Zesty tree (the P9 hwe kernel, 4.10 based).
Need to mirror to Canonical to request they pull in:
8c218578fcbbbdb
CVE References
tags: | added: architecture-ppc64le bugnameltc-157381 severity-high targetmilestone-inin16043 |
Changed in ubuntu: | |
assignee: | nobody → Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) |
affects: | ubuntu → linux (Ubuntu) |
Changed in ubuntu-power-systems: | |
importance: | Undecided → High |
assignee: | nobody → Canonical Kernel Team (canonical-kernel-team) |
Changed in linux (Ubuntu Zesty): | |
status: | New → In Progress |
Changed in linux (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → Medium |
Changed in linux (Ubuntu Zesty): | |
importance: | Undecided → Medium |
assignee: | nobody → Joseph Salisbury (jsalisbury) |
Changed in linux (Ubuntu): | |
assignee: | Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) → Joseph Salisbury (jsalisbury) |
importance: | Medium → High |
Changed in linux (Ubuntu Zesty): | |
importance: | Medium → High |
Changed in ubuntu-power-systems: | |
status: | New → In Progress |
description: | updated |
Changed in linux (Ubuntu Zesty): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in ubuntu-power-systems: | |
status: | In Progress → Fix Committed |
Changed in ubuntu-power-systems: | |
status: | Fix Committed → Fix Released |
Changed in linux (Ubuntu): | |
status: | Fix Committed → Fix Released |
I built a 17.04(Zesty) test kernel with a pick of commit 8c218578fcbbbdb104. This kernel can be downloaded from:
http:// kernel. ubuntu. com/~jsalisbury /lp1709964
Can you test this kernel and see if it resolves this bug?