[UBUNTU 20.04] kernel: Add support for CPU-MF counter second version 7
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu on IBM z Systems |
Fix Released
|
High
|
Skipper Bug Screeners | ||
linux (Ubuntu) |
Fix Released
|
Medium
|
Krzysztof Kozlowski | ||
Focal |
Fix Released
|
Medium
|
Krzysztof Kozlowski | ||
Impish |
Fix Released
|
Medium
|
Krzysztof Kozlowski | ||
Jammy |
Fix Released
|
Medium
|
Krzysztof Kozlowski |
Bug Description
Fix CPU-MF error on new IBM Z Hardware by adding support for CPU-MF counter second version 7
Error Symptom: Daemon cpacfstatsd fails on start up of the system
with this error message
Problem: When the CPU Measurement facility device driver
is initialized during kernel boot, it reads out the
CPU Measurement facility counter hardware first and
the device driver exports attributes in the sysfs
file DEA_FUNCTIONS and others.
Solution: Add support for the new CPU-MF Measurement counter
Also add support for limited samples. These hardware
Drop these samples when the limited sampled bit is set
in the sample descriptor.
Reproduction: Run command ls -l /sys/devices/
When there is no output at all the attributes files
for the crypto counter set have not been exported.
If above output is visible, the described problem does
not show up.
Upstream-ID: a87b0fd4f9003f8
Problem-ID: 196017
Preventive: yes
Reported: Christian Rund <email address hidden>
SupportTicket: -
Reference: -
Date: 2022-01-20
Author: Thomas Richter <email address hidden>
Component: kernel
CVE References
tags: | added: architecture-s39064 bugnameltc-196340 severity-high targetmilestone-inin--- |
Changed in ubuntu: | |
assignee: | nobody → Skipper Bug Screeners (skipper-screen-team) |
affects: | ubuntu → linux (Ubuntu) |
Changed in ubuntu-z-systems: | |
assignee: | nobody → Skipper Bug Screeners (skipper-screen-team) |
Changed in linux (Ubuntu): | |
importance: | Undecided → High |
Changed in ubuntu-z-systems: | |
importance: | Undecided → High |
Changed in linux (Ubuntu): | |
assignee: | Skipper Bug Screeners (skipper-screen-team) → Krzysztof Kozlowski (krzk) |
status: | New → In Progress |
Changed in linux (Ubuntu Focal): | |
status: | New → In Progress |
Changed in linux (Ubuntu Impish): | |
status: | New → In Progress |
Changed in linux (Ubuntu Focal): | |
assignee: | nobody → Krzysztof Kozlowski (krzk) |
Changed in linux (Ubuntu Impish): | |
assignee: | nobody → Krzysztof Kozlowski (krzk) |
Changed in ubuntu-z-systems: | |
status: | New → In Progress |
Changed in linux (Ubuntu Jammy): | |
importance: | High → Medium |
Changed in linux (Ubuntu Impish): | |
importance: | Undecided → Medium |
Changed in linux (Ubuntu Focal): | |
importance: | Undecided → Medium |
Changed in linux (Ubuntu Focal): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Impish): | |
status: | In Progress → Fix Committed |
Changed in ubuntu-z-systems: | |
status: | In Progress → Fix Committed |
tags: |
added: targetmilestone-inin2004 removed: targetmilestone-inin--- |
Changed in ubuntu-z-systems: | |
status: | Fix Committed → Fix Released |
------- Comment From <email address hidden> 2022-02-15 07:46 EDT------- /git.launchpad. net/~ubuntu- kernel/ ubuntu/ +source/ linux/+ git/focal
I have downloaded the master-next branch from ubuntu version 20. I used this
repository: Fetch URL: https:/
The patches needed to support the new machine are already upstream since 521226e226cf92b 18147b3519 Adds support for the CPU Measurement Counter Facility second version 1f924410f32d8b0 e599b5990e s390/cpumf: Support for CPU Measurement Sampling Facility LS
5.17.0rc1:
1. Patch a87b0fd4f9003f8
number 7.
2. Patch 745f5d20e793693
bit
The first upstream patch (commit a87b0fd4f900) does not apply and I had to
rework it. I have attached the reworked version and now it applies and compiles.
The second upstream patch (commit 745f5d20e7936) applies clean (with 3 lines off).
I also have attached the second patch for completeness.
I consider this item complete. Please let me know if you have any questions.