Comment 0 for bug 1771780

Revision history for this message
bugproxy (bugproxy) wrote :

== 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-wspoon11:~# uname -a
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-wspoon11:~# cat /etc/os-release
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://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

Then guard an entire processor and also guard all the CORES in the processor 0 except for 1 single core.

root@ltc-wspoon11:~# opal-gard list
 ID | Error | Type | Path
-----------------------------------------------------------------------
 00000001 | 00000000 | Manual | /Sys0/Node0/Proc0/EQ1/EX0/Core0
 00000002 | 00000000 | Manual | /Sys0/Node0/Proc0/EQ1/EX0/Core1
 00000003 | 00000000 | Manual | /Sys0/Node0/Proc1
 00000004 | 00000000 | Manual | /Sys0/Node0/Proc0/EQ2/EX0/Core1
 00000005 | 00000000 | Manual | /Sys0/Node0/Proc0/EQ2/EX0/Core0
 00000006 | 00000000 | Manual | /Sys0/Node0/Proc0/EQ2/EX1/Core0
 00000007 | 00000000 | Manual | /Sys0/Node0/Proc0/EQ2/EX1/Core1
 00000008 | 00000000 | Manual | /Sys0/Node0/Proc0/EQ3/EX0/Core0
 00000009 | 00000000 | Manual | /Sys0/Node0/Proc0/EQ3/EX0/Core1
 0000000a | 00000000 | Manual | /Sys0/Node0/Proc0/EQ3/EX1/Core0
 0000000b | 00000000 | Manual | /Sys0/Node0/Proc0/EQ3/EX1/Core1
 0000000c | 00000000 | Manual | /Sys0/Node0/Proc0/EQ4/EX0/Core0
 0000000d | 00000000 | Manual | /Sys0/Node0/Proc0/EQ4/EX0/Core1
 0000000e | 00000000 | Manual | /Sys0/Node0/Proc0/EQ4/EX1/Core0
 0000000f | 00000000 | Manual | /Sys0/Node0/Proc0/EQ4/EX1/Core1
 00000010 | 00000000 | Manual | /Sys0/Node0/Proc0/EQ5/EX0/Core0
 00000011 | 00000000 | Manual | /Sys0/Node0/Proc0/EQ5/EX0/Core1
 00000012 | 00000000 | Manual | /Sys0/Node0/Proc0/EQ5/EX1/Core0
 00000013 | 00000000 | Manual | /Sys0/Node0/Proc0/EQ5/EX1/Core1
 00000014 | 00000000 | Manual | /Sys0/Node0/Proc0/EQ1/EX1/Core0
 00000015 | 00000000 | Manual | /Sys0/Node0/Proc0/EQ1/EX1/Core1
 00000016 | 00000000 | Manual | /Sys0/Node0/Proc0/EQ0/EX1/Core1
 00000017 | 00000000 | Manual | /Sys0/Node0/Proc0/EQ0/EX1/Core0
=======================================================================

Then execute the cpupower idle-info command to check the idle states being shown in the OS.

root@ltc-wspoon11:~# cpupower idle-info
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://patchwork.ozlabs.org/patch/914575/