------- Comment From pavsu...@in.ibm.com 2019-02-12 04:28 EDT-------
I have downloaded the .deb packages and installed on the machine.

root@ltc-zz10:~# wget 
https://kernel.ubuntu.com/~kmously/1719545/kernel-kmously-0830ceed0-KfV4/linux-modules-4.15.0-45-generic_4.15.0-45.48~16.04.1_ppc64el.deb
--2019-02-12 03:07:39--  
https://kernel.ubuntu.com/~kmously/1719545/kernel-kmously-0830ceed0-KfV4/linux-modules-4.15.0-45-generic_4.15.0-45.48~16.04.1_ppc64el.deb
Resolving kernel.ubuntu.com (kernel.ubuntu.com)... 91.189.94.216
Connecting to kernel.ubuntu.com (kernel.ubuntu.com)|91.189.94.216|:443... 
connected.
HTTP request sent, awaiting response... 200 OK
Length: 11400636 (11M) [application/x-debian-package]
Saving to: ?linux-modules-4.15.0-45-generic_4.15.0-45.48~16.04.1_ppc64el.deb?

linux-modules-4.15.0-45-generic_4.15.0-
100%[============================================================================>]
10.87M  7.15MB/s    in 1.5s

2019-02-12 03:07:42 (7.15 MB/s) - ?linux-
modules-4.15.0-45-generic_4.15.0-45.48~16.04.1_ppc64el.deb? saved
[11400636/11400636]

root@ltc-zz10:~# wget 
https://kernel.ubuntu.com/~kmously/1719545/kernel-kmously-0830ceed0-KfV4/linux-modules-extra-4.15.0-45-generic_4.15.0-45.48~16.04.1_ppc64el.deb
--2019-02-12 03:07:55--  
https://kernel.ubuntu.com/~kmously/1719545/kernel-kmously-0830ceed0-KfV4/linux-modules-extra-4.15.0-45-generic_4.15.0-45.48~16.04.1_ppc64el.deb
Resolving kernel.ubuntu.com (kernel.ubuntu.com)... 91.189.94.216
Connecting to kernel.ubuntu.com (kernel.ubuntu.com)|91.189.94.216|:443... 
connected.
HTTP request sent, awaiting response... 200 OK
Length: 30522156 (29M) [application/x-debian-package]
Saving to: 
?linux-modules-extra-4.15.0-45-generic_4.15.0-45.48~16.04.1_ppc64el.deb?

linux-modules-extra-4.15.0-45-generic_4
100%[============================================================================>]
29.11M  9.83MB/s    in 3.0s

2019-02-12 03:07:59 (9.83 MB/s) - ?linux-modules-
extra-4.15.0-45-generic_4.15.0-45.48~16.04.1_ppc64el.deb? saved
[30522156/30522156]

root@ltc-zz10:~# wget 
https://kernel.ubuntu.com/~kmously/1719545/kernel-kmously-0830ceed0-KfV4/linux-image-unsigned-4.15.0-45-generic_4.15.0-45.48~16.04.1_ppc64el.deb
--2019-02-12 03:08:07--  
https://kernel.ubuntu.com/~kmously/1719545/kernel-kmously-0830ceed0-KfV4/linux-image-unsigned-4.15.0-45-generic_4.15.0-45.48~16.04.1_ppc64el.deb
Resolving kernel.ubuntu.com (kernel.ubuntu.com)... 91.189.94.216
Connecting to kernel.ubuntu.com (kernel.ubuntu.com)|91.189.94.216|:443... 
connected.
HTTP request sent, awaiting response... 200 OK
Length: 6010702 (5.7M) [application/x-debian-package]
Saving to: 
?linux-image-unsigned-4.15.0-45-generic_4.15.0-45.48~16.04.1_ppc64el.deb?

linux-image-unsigned-4.15.0-45-generic_
100%[============================================================================>]
5.73M  3.79MB/s    in 1.5s

2019-02-12 03:08:10 (3.79 MB/s) - ?linux-image-
unsigned-4.15.0-45-generic_4.15.0-45.48~16.04.1_ppc64el.deb? saved
[6010702/6010702]

root@ltc-zz10:~# dpkg -i 
linux-modules-4.15.0-45-generic_4.15.0-45.48~16.04.1_ppc64el.deb
(Reading database ... 129185 files and directories currently installed.)
Preparing to unpack 
linux-modules-4.15.0-45-generic_4.15.0-45.48~16.04.1_ppc64el.deb ...
Unpacking linux-modules-4.15.0-45-generic (4.15.0-45.48~16.04.1) over 
(4.15.0-45.48~16.04.1) ...
Setting up linux-modules-4.15.0-45-generic (4.15.0-45.48~16.04.1) ...
Processing triggers for linux-image-unsigned-4.15.0-45-generic 
(4.15.0-45.48~16.04.1) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.15.0-45-generic
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
/etc/kernel/postinst.d/x-grub-legacy-ec2:
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Updating /boot/grub/menu.lst ... done

/etc/kernel/postinst.d/zz-update-grub:
Generating grub configuration file ...
Found linux image: /boot/vmlinux-4.15.0-45-generic
Found initrd image: /boot/initrd.img-4.15.0-45-generic
Found linux image: /boot/vmlinux-4.15.0-43-generic
Found initrd image: /boot/initrd.img-4.15.0-43-generic
done

root@ltc-zz10:~# dpkg -i 
linux-modules-extra-4.15.0-45-generic_4.15.0-45.48~16.04.1_ppc64el.deb
(Reading database ... 129185 files and directories currently installed.)
Preparing to unpack 
linux-modules-extra-4.15.0-45-generic_4.15.0-45.48~16.04.1_ppc64el.deb ...
Unpacking linux-modules-extra-4.15.0-45-generic (4.15.0-45.48~16.04.1) over 
(4.15.0-45.48~16.04.1) ...
Setting up linux-modules-extra-4.15.0-45-generic (4.15.0-45.48~16.04.1) ...
Processing triggers for linux-image-unsigned-4.15.0-45-generic 
(4.15.0-45.48~16.04.1) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.15.0-45-generic
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
/etc/kernel/postinst.d/x-grub-legacy-ec2:
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Updating /boot/grub/menu.lst ... done

/etc/kernel/postinst.d/zz-update-grub:
Generating grub configuration file ...
Found linux image: /boot/vmlinux-4.15.0-45-generic
Found initrd image: /boot/initrd.img-4.15.0-45-generic
Found linux image: /boot/vmlinux-4.15.0-43-generic
Found initrd image: /boot/initrd.img-4.15.0-43-generic
done

root@ltc-zz10:~# apt-get install linux-tools-4.15.0-45-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
linux-hwe-tools-4.15.0-45
The following NEW packages will be installed:
linux-hwe-tools-4.15.0-45 linux-tools-4.15.0-45-generic
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,501 kB of archives.
After this operation, 15.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://us.ports.ubuntu.com/ubuntu-ports xenial-updates/main ppc64el 
linux-hwe-tools-4.15.0-45 ppc64el 4.15.0-45.48~16.04.1 [3,499 kB]
Get:2 http://us.ports.ubuntu.com/ubuntu-ports xenial-updates/main ppc64el 
linux-tools-4.15.0-45-generic ppc64el 4.15.0-45.48~16.04.1 [1,824 B]
Fetched 3,501 kB in 1s (2,744 kB/s)
Selecting previously unselected package linux-hwe-tools-4.15.0-45.
(Reading database ... 129183 files and directories currently installed.)
Preparing to unpack 
.../linux-hwe-tools-4.15.0-45_4.15.0-45.48~16.04.1_ppc64el.deb ...
Unpacking linux-hwe-tools-4.15.0-45 (4.15.0-45.48~16.04.1) ...
Selecting previously unselected package linux-tools-4.15.0-45-generic.
Preparing to unpack 
.../linux-tools-4.15.0-45-generic_4.15.0-45.48~16.04.1_ppc64el.deb ...
Unpacking linux-tools-4.15.0-45-generic (4.15.0-45.48~16.04.1) ...
Setting up linux-hwe-tools-4.15.0-45 (4.15.0-45.48~16.04.1) ...
Setting up linux-tools-4.15.0-45-generic (4.15.0-45.48~16.04.1) ...

-- 
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/1719545

Title:
  [P9][LTCTest][Opal][FW910] cpupower monitor shows multiple stop
  Idle_Stats

Status in The Ubuntu-power-systems project:
  Confirmed
Status in linux package in Ubuntu:
  Confirmed
Status in linux source package in Bionic:
  Confirmed

Bug description:
  == Comment: #0 - PAVAMAN SUBRAMANIYAM <pavsu...@in.ibm.com> - 2017-06-29 
02:30:22 ==
  ---Problem Description---
  cpupower monitor shows multiple stop Idle_Stats
   

   
  ---uname output---
  Linux zz376p1 4.10.0-26-generic #30~16.04.1-Ubuntu SMP Tue Jun 27 09:38:48 
UTC 2017 ppc64le ppc64le ppc64le GNU/Linux
   
  Machine Type = P9 
   
  ---Debugger---
  A debugger is not configured
   
  ---Steps to Reproduce---
  Install a P9 8375-42A Hardware with Ubuntu 16.04.3 OS.
  Then execute the cpupower monitor command to fetch all the Idle_Stats values.

  root@zz376p1:~# cpupower monitor
                |Idle_Stats
  PKG |CORE|CPU | snoo | stop | stop
     0|   8|   0|  0.00|  0.00|  2.79
     0|   8|   1|  0.00|  0.00| 70.68
     0|   8|   2|  0.00|  0.00| 99.87
     0|   8|   3|  0.00|  0.00| 67.28
     0|  12|   4|  0.00|  0.00|  5.17
     0|  12|   5|  0.00|  0.00| 12.50
     0|  12|   6|  0.00|  0.00| 99.74
     0|  12|   7|  0.00|  0.00|  0.00
     8|2048|   8|  0.00|  0.00| 22.14
     8|2048|   9|  0.00|  0.00| 102.3
     8|2048|  10|  0.00|  0.00|  0.00
     8|2048|  11|  0.00|  0.00| 99.97
     8|2052|  12|  0.00|  0.00| 99.70
     8|2052|  13|  0.00|  0.00| 23.86
     8|2052|  14|  0.00|  0.00| 113.1
     8|2052|  15|  0.00|  0.00|  0.00

  As can be seen it shows 2 columns for stop.

  root@zz376p1:~# uname -a
  Linux zz376p1 4.10.0-26-generic #30~16.04.1-Ubuntu SMP Tue Jun 27 09:38:48 
UTC 2017 ppc64le ppc64le ppc64le GNU/Linux

  root@zz376p1:~# cat /etc/os-release
  NAME="Ubuntu"
  VERSION="16.04.2 LTS (Xenial Xerus)"
  ID=ubuntu
  ID_LIKE=debian
  PRETTY_NAME="Ubuntu 16.04.2 LTS"
  VERSION_ID="16.04"
  HOME_URL="http://www.ubuntu.com/";
  SUPPORT_URL="http://help.ubuntu.com/";
  BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/";
  VERSION_CODENAME=xenial
  UBUNTU_CODENAME=xenial

  root@zz376p1:~# cat /proc/cpuinfo | tail
  processor       : 15
  cpu             : POWER9 (raw), altivec supported
  clock           : 2600.000000MHz
  revision        : 1.0 (pvr 004e 0100)

  timebase        : 512000000
  platform        : PowerNV
  model           : 8375-42A
  machine         : PowerNV 8375-42A
  firmware        : OPAL
   
  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 
   
  *Additional Instructions for pavsu...@in.ibm.com: 
  -Post a private note with access information to the machine that the bug is 
occuring on.
  -Attach ltrace and strace of userspace application.

  
  .
  There are 3 idle_stats (3 states) in this system. 

  root@zz376p1:/sys/devices/system/cpu/cpu0/cpuidle/state2# cpupower monitor -l
  Monitor "Idle_Stats" (3 states) - Might overflow after 4294967295 s
  snoo  [T] -> snooze
  stop  [T] -> stop0_lite
  stop  [T] -> stop1_lite

  root@zz376p1:/sys/devices/system/cpu/cpu0/cpuidle/state2# cpupower idle-info
  CPUidle driver: powernv_idle
  CPUidle governor: menu
  analyzing CPU 0:

  Number of idle states: 3
  Available idle states: snooze stop0_lite stop1_lite
  snooze:
  Flags/Description: snooze
  Latency: 0
  Usage: 224
  Duration: 423
  stop0_lite:
  Flags/Description: stop0_lite
  Latency: 0
  Usage: 1685
  Duration: 530522
  stop1_lite:
  Flags/Description: stop1_lite
  Latency: 4
  Usage: 12693
  Duration: 5405898106

  root@zz376p1:/sys/devices/system/cpu/cpu0/cpuidle/state2# cpupower monitor -l
  Monitor "Idle_Stats" (3 states) - Might overflow after 4294967295 s
  snoo  [T] -> snooze
  stop  [T] -> stop0_lite
  stop  [T] -> stop1_lite
  root@zz376p1:/sys/devices/system/cpu/cpu0/cpuidle/state2# cpupower idle-info
  CPUidle driver: powernv_idle
  CPUidle governor: menu
  analyzing CPU 0:

  Number of idle states: 3
  Available idle states: snooze stop0_lite stop1_lite
  snooze:
  Flags/Description: snooze
  Latency: 0
  Usage: 272
  Duration: 905
  stop0_lite:
  Flags/Description: stop0_lite
  Latency: 0
  Usage: 2141
  Duration: 536399
  stop1_lite:
  Flags/Description: stop1_lite
  Latency: 4
  Usage: 15396
  Duration: 6625668881

  
  cpu monitor will print the results of all the 3 available idle_stats .

  The first stop -> stop0_lite stats
  and
  The second stop -> stop1_lite stats.

  cpupower monitor header prints the header list by getting the name of
  the idle stats.

  name          (name description)
  snoo   [T] -> snooze
  stop   [T] -> stop0_lite
  stop   [T] -> stop1_lite

  We can change the header to be more meaningful so user won't interpret
  it as 2 columns for stop.

  May be we need to change the code to print the header to use name description 
instead of name.
  .
  I will work on the patch and get it resolve.


  == Comment: #8 - PAVAMAN SUBRAMANIYAM <pavsu...@in.ibm.com> - 2017-06-30 
03:42:01 ==
  I have executed the command again with the fixed cpupower utility.

  
  Submitted patch upstream and awaiting response. 

  https://lkml.org/lkml/2017/7/31/177

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-power-systems/+bug/1719545/+subscriptions

-- 
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