Public bug reported:
== Comment: #0 - Shriya R. Kulkarni <[email protected]> - 2018-01-16 04:58:48
==
Problem Description :
=============
cpupower monitor fails to show stop states when cpu 0 is made offline.
Testing :
=====
root@ltc-wspoon12:~# echo 0 > /sys/devices/system/cpu/cpu0/online
root@ltc-wspoon12:~# cpupower monitor
WARNING: at least one cpu is offline
No HW Cstate monitors found
root@ltc-wspoon12:~# cpupower -c 12 monitor
WARNING: at least one cpu is offline
No HW Cstate monitors found
root@ltc-wspoon12:~#
root@ltc-wspoon12:~# echo 1 > /sys/devices/system/cpu/cpu0/online
root@ltc-wspoon12:~# cpupower -c 12 monitor
|Idle_Stats
PKG |CORE|CPU | snoo | stop | stop | stop | stop
0| 12| 12| 0.00| 0.00| 0.00| 0.00| 0.01
Details :
====
uname -a : Linux ltc-wspoon12 4.13.0-25-generic #29-Ubuntu SMP Mon Jan 8
21:15:55 UTC 2018 ppc64le ppc64le ppc64le GNU/Linux
OS : Ubuntu 18.04
Machine : Witherspoon ( DD2.1) and Boston (DD.01)
Patch :
====
Patch that fixes the issue :
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=dbdc468f35ee827cab2753caa1c660bdb832243a
== Comment: #1 - VIPIN K. PARASHAR <[email protected]> - 2018-01-16 05:09:40
==
(In reply to comment #0)
> Patch :
> ====
> Patch that fixes the issue :
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/
> ?id=dbdc468f35ee827cab2753caa1c660bdb832243a
$ git log dbdc468f35ee827 -1
commit dbdc468f35ee827cab2753caa1c660bdb832243a
Author: Abhishek Goel <[email protected]>
Date: Wed Nov 15 14:10:02 2017 +0530
cpupower : Fix cpupower working when cpu0 is offline
cpuidle_monitor used to assume that cpu0 is always online which is not
a valid assumption on POWER machines. This patch fixes this by getting
the cpu on which the current thread is running, instead of always using
cpu0 for monitoring which may not be online.
Signed-off-by: Abhishek Goel <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
$
Commit dbdc468f3 is available with 4.15-rc2 onwards.
** Affects: ubuntu-power-systems
Importance: High
Assignee: Canonical Kernel Team (canonical-kernel-team)
Status: Triaged
** Affects: linux (Ubuntu)
Importance: Undecided
Assignee: Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage)
Status: New
** Tags: architecture-ppc64le bugnameltc-163623 severity-high
targetmilestone-inin1804 triage-g
** Tags added: architecture-ppc64le bugnameltc-163623 severity-high
targetmilestone-inin1804
** Changed in: ubuntu
Assignee: (unassigned) => Ubuntu on IBM Power Systems Bug Triage
(ubuntu-power-triage)
** Package changed: ubuntu => linux (Ubuntu)
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1743541
Title:
Ubuntu18.04: PowerNV - cpupower monitor will not work when cpu0 is
offline
Status in The Ubuntu-power-systems project:
Triaged
Status in linux package in Ubuntu:
New
Bug description:
== Comment: #0 - Shriya R. Kulkarni <[email protected]> - 2018-01-16
04:58:48 ==
Problem Description :
=============
cpupower monitor fails to show stop states when cpu 0 is made offline.
Testing :
=====
root@ltc-wspoon12:~# echo 0 > /sys/devices/system/cpu/cpu0/online
root@ltc-wspoon12:~# cpupower monitor
WARNING: at least one cpu is offline
No HW Cstate monitors found
root@ltc-wspoon12:~# cpupower -c 12 monitor
WARNING: at least one cpu is offline
No HW Cstate monitors found
root@ltc-wspoon12:~#
root@ltc-wspoon12:~# echo 1 > /sys/devices/system/cpu/cpu0/online
root@ltc-wspoon12:~# cpupower -c 12 monitor
|Idle_Stats
PKG |CORE|CPU | snoo | stop | stop | stop | stop
0| 12| 12| 0.00| 0.00| 0.00| 0.00| 0.01
Details :
====
uname -a : Linux ltc-wspoon12 4.13.0-25-generic #29-Ubuntu SMP Mon Jan 8
21:15:55 UTC 2018 ppc64le ppc64le ppc64le GNU/Linux
OS : Ubuntu 18.04
Machine : Witherspoon ( DD2.1) and Boston (DD.01)
Patch :
====
Patch that fixes the issue :
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=dbdc468f35ee827cab2753caa1c660bdb832243a
== Comment: #1 - VIPIN K. PARASHAR <[email protected]> - 2018-01-16
05:09:40 ==
(In reply to comment #0)
> Patch :
> ====
> Patch that fixes the issue :
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/
> ?id=dbdc468f35ee827cab2753caa1c660bdb832243a
$ git log dbdc468f35ee827 -1
commit dbdc468f35ee827cab2753caa1c660bdb832243a
Author: Abhishek Goel <[email protected]>
Date: Wed Nov 15 14:10:02 2017 +0530
cpupower : Fix cpupower working when cpu0 is offline
cpuidle_monitor used to assume that cpu0 is always online which is not
a valid assumption on POWER machines. This patch fixes this by getting
the cpu on which the current thread is running, instead of always using
cpu0 for monitoring which may not be online.
Signed-off-by: Abhishek Goel <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
$
Commit dbdc468f3 is available with 4.15-rc2 onwards.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-power-systems/+bug/1743541/+subscriptions
--
Mailing list: https://launchpad.net/~kernel-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help : https://help.launchpad.net/ListHelp