You have been subscribed to a public bug:

== Comment: #0 - Shriya R. Kulkarni <shriy...@in.ibm.com> - 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 <vipar...@in.ibm.com> - 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 <hunt...@linux.vnet.ibm.com>
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 <hunt...@linux.vnet.ibm.com>
    Signed-off-by: Shuah Khan <shua...@osg.samsung.com>
$

Commit dbdc468f3 is available with 4.15-rc2 onwards.

** 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
-- 
Ubuntu18.04: PowerNV - cpupower monitor will not work when cpu0 is offline
https://bugs.launchpad.net/bugs/1743541
You received this bug notification because you are a member of Kernel Packages, 
which is subscribed to linux in Ubuntu.

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to