[LTCTest][OPAL][OP920] cpupower idle-info is not listing stop4 and stop5 idle states when all CORES are guarded
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
The Ubuntu-power-systems project |
Fix Released
|
Critical
|
Canonical Kernel Team | ||
linux (Ubuntu) |
Fix Released
|
Critical
|
Unassigned | ||
Bionic |
Fix Released
|
Critical
|
Unassigned | ||
Cosmic |
Fix Released
|
Critical
|
Unassigned |
Bug Description
== SRU Justification ==
During testing, IBM found that cpupower idle-info is not listing stop4 and
stop5 idle states when all CORES are guarded. A patch has been
submitted upstream by IBM. However, the patch has not landed in
linux-next or mainline as of yet. For that reason, this SRU request is
being sent as a SAUCE patch request.
== Fix ==
UBUNTU: SAUCE: cpuidle/powernv : init all present cpus for deep states
== Regression Potential ==
Low. Limited to powerpc.
== Test Case ==
A test kernel was built with this patch and tested by the original bug reporter.
The bug reporter states the test kernel resolved the bug.
== Comment: #0 - PAVAMAN SUBRAMANIYAM - 2018-05-16 04:07:59 ==
---Problem Description---
cpupower idle-info is not listing stop4 and stop5 idle states when all CORES are guarded
---uname output---
Linux ltc-wspoon11 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:14:44 UTC 2018 ppc64le ppc64le ppc64le GNU/Linux
Machine Type = P9
---Debugger---
A debugger is not configured
---Steps to Reproduce---
Install a P9 Open Power Hardware with Ubuntu 18.04 OS.
root@ltc-
Linux ltc-wspoon11 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:14:44 UTC 2018 ppc64le ppc64le ppc64le GNU/Linux
root@ltc-
NAME="Ubuntu"
VERSION="18.04 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04 LTS"
VERSION_ID="18.04"
HOME_URL="https:/
SUPPORT_URL="https:/
BUG_REPORT_URL="https:/
PRIVACY_
VERSION_
UBUNTU_
Then guard an entire processor and also guard all the CORES in the processor 0 except for 1 single core.
root@ltc-
ID | Error | Type | Path
-------
00000001 | 00000000 | Manual | /Sys0/Node0/
00000002 | 00000000 | Manual | /Sys0/Node0/
00000003 | 00000000 | Manual | /Sys0/Node0/Proc1
00000004 | 00000000 | Manual | /Sys0/Node0/
00000005 | 00000000 | Manual | /Sys0/Node0/
00000006 | 00000000 | Manual | /Sys0/Node0/
00000007 | 00000000 | Manual | /Sys0/Node0/
00000008 | 00000000 | Manual | /Sys0/Node0/
00000009 | 00000000 | Manual | /Sys0/Node0/
0000000a | 00000000 | Manual | /Sys0/Node0/
0000000b | 00000000 | Manual | /Sys0/Node0/
0000000c | 00000000 | Manual | /Sys0/Node0/
0000000d | 00000000 | Manual | /Sys0/Node0/
0000000e | 00000000 | Manual | /Sys0/Node0/
0000000f | 00000000 | Manual | /Sys0/Node0/
00000010 | 00000000 | Manual | /Sys0/Node0/
00000011 | 00000000 | Manual | /Sys0/Node0/
00000012 | 00000000 | Manual | /Sys0/Node0/
00000013 | 00000000 | Manual | /Sys0/Node0/
00000014 | 00000000 | Manual | /Sys0/Node0/
00000015 | 00000000 | Manual | /Sys0/Node0/
00000016 | 00000000 | Manual | /Sys0/Node0/
00000017 | 00000000 | Manual | /Sys0/Node0/
=======
Then execute the cpupower idle-info command to check the idle states being shown in the OS.
root@ltc-
CPUidle driver: powernv_idle
CPUidle governor: menu
analyzing CPU 0:
Number of idle states: 7
Available idle states: snooze stop0_lite stop0 stop1_lite stop1 stop2_lite stop2
snooze:
Flags/Description: snooze
Latency: 0
Usage: 774653
Duration: 7698954
stop0_lite:
Flags/Description: stop0_lite
Latency: 1
Usage: 2751
Duration: 11363825
stop0:
Flags/Description: stop0
Latency: 2
Usage: 2343
Duration: 915084
stop1_lite:
Flags/Description: stop1_lite
Latency: 5
Usage: 20
Duration: 1533
stop1:
Flags/Description: stop1
Latency: 5
Usage: 1103
Duration: 1016794
stop2_lite:
Flags/Description: stop2_lite
Latency: 10
Usage: 5
Duration: 765
stop2:
Flags/Description: stop2
Latency: 10
Usage: 113729
Duration: 2850877810
Userspace tool common name: /usr/bin/cpupower
The userspace tool has the following bit modes: 64-bit
Userspace rpm: linux-tools-common
Userspace tool obtained from project website: na
== Comment: #8 - Akshay Adiga <email address hidden> - 2018-05-16 13:29:55 ==
Patch is posted on linux mailing list
https:/
CVE References
Changed in ubuntu-power-systems: | |
assignee: | nobody → Canonical Kernel Team (canonical-kernel-team) |
importance: | Undecided → Critical |
tags: | added: triage-g |
Changed in linux (Ubuntu): | |
assignee: | Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) → Canonical Kernel Team (canonical-kernel-team) |
importance: | Undecided → Critical |
tags: | added: p9 |
Changed in ubuntu-power-systems: | |
status: | New → Triaged |
Changed in linux (Ubuntu): | |
status: | New → Triaged |
Changed in linux (Ubuntu Bionic): | |
status: | New → Triaged |
importance: | Undecided → Critical |
Changed in linux (Ubuntu Bionic): | |
assignee: | nobody → Joseph Salisbury (jsalisbury) |
Changed in linux (Ubuntu): | |
assignee: | Canonical Kernel Team (canonical-kernel-team) → Joseph Salisbury (jsalisbury) |
Changed in linux (Ubuntu Bionic): | |
status: | Triaged → In Progress |
Changed in linux (Ubuntu): | |
status: | Triaged → In Progress |
no longer affects: | linux (Ubuntu Artful) |
no longer affects: | linux (Ubuntu Xenial) |
Changed in linux (Ubuntu Cosmic): | |
status: | In Progress → Fix Committed |
Changed in ubuntu-power-systems: | |
status: | Triaged → In Progress |
Changed in linux (Ubuntu Bionic): | |
status: | In Progress → Fix Committed |
tags: |
added: verification-done-bionic removed: verification-needed-bionic |
Changed in ubuntu-power-systems: | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Cosmic): | |
status: | Fix Committed → Fix Released |
Changed in ubuntu-power-systems: | |
status: | Fix Committed → Fix Released |
Default Comment by Bridge