[UBUNTU 20.04] CPU-MF: add extended counter set definitions for new IBM z16
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu on IBM z Systems |
Fix Released
|
Medium
|
Skipper Bug Screeners | ||
linux (Ubuntu) |
Invalid
|
Medium
|
Skipper Bug Screeners | ||
Focal |
Fix Released
|
Medium
|
Canonical Kernel Team | ||
Impish |
Fix Released
|
Medium
|
Canonical Kernel Team | ||
Jammy |
Fix Released
|
Medium
|
Canonical Kernel Team |
Bug Description
SRU Justification:
==================
[Impact]
* This is a hardware enablement SRU
* and adds support for (new) IBM z16 counters
* by exporting the extended counter set counters of the IBM z16 via sysfs.
[Fix]
* c9311de71635 c9311de71635d3e
"s390/cpumf: add new extended counter set for IBM z16"
[Test Case]
* Prepare an IBM z16 LPAR with Ubuntu 20.04, 21.10 or 22.04 (incl. this patch).
* At LPARs activation profile, navigate to the Security page
and within the counter facility options, select each counter set you want to use.
(One may just select all for testing purposes.)
* Use 'perf list' to determine if the new counters are listed.
For comparing the new counters see:
https:/
/commit/
* Use 'perf stat -e' to enable and make use of these counters.
[What can go wrong]
* Only new code is added by this commit - none is changed nor removed.
* The new code may have syntactical errors,
which would become visible during a test compile.
* Initialization of the new struct cpumcf_
* The hex code for the counters could be wrong or mixed up,
or the names might be wrong or mixed up,
in which case one will get wrong or unexpected results.
* The expansion of the case statement to determine the correct (z16) hardware
might be wrong, using wrong case hex numbers.
Which would lead to potentially counters,
that may not match to the underlying hardware.
[ Other info]
* The commit will be upstream accepted with 5.18.
(It's was brought upstream 'next-20220517'.)
* Since the planned target kernel for kinetic is 5.19,
this will be included.
* Hence the SRU is for Focal, Impish and Jammy only.
__________
For IBM z16 machine the extended counter set needs to be exported by the PMU device driver CPU MF. The upstream commit from linux-next is
commit-id: c9311de71635 s390/cpumf: add new extended counter set for IBM z16
The same patch will be imported into linux repo in the next merge window.
Required patches are attached. They apply cleanly and compile without errors on focal (20.04) and jammy (22.04).
CVE References
Changed in ubuntu-z-systems: | |
assignee: | nobody → Skipper Bug Screeners (skipper-screen-team) |
importance: | Undecided → Medium |
Changed in linux (Ubuntu): | |
importance: | Undecided → Medium |
summary: |
- [UBUNTU 20.04] CPU-MF: add extended counter set definitions for new IBM + [UBUNTU 20.04] CPU-MF: add extended counter set definitions for new IBM z16 |
no longer affects: | linux (Ubuntu Kinetic) |
description: | updated |
description: | updated |
Changed in linux (Ubuntu): | |
status: | New → Invalid |
Changed in linux (Ubuntu Focal): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Impish): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Jammy): | |
status: | In Progress → Fix Committed |
Changed in ubuntu-z-systems: | |
status: | In Progress → Fix Committed |
tags: |
added: verification-done-impish removed: verification-needed-impish |
Changed in ubuntu-z-systems: | |
status: | Fix Committed → Fix Released |
tags: |
added: targetmilestone-inin2004 removed: targetmilestone-inin--- |
Default Comment by Bridge