[Kernel-packages] [Bug 1670315] Comment bridged from LTC Bugzilla

2017-04-11 Thread bugproxy
--- Comment From sathe...@in.ibm.com 2017-04-12 00:42 EDT---
Tested on guest kernel version. 4.10.0-19-generic and issue is fixed, though it 
takes quite (~ few secs) time, that would be different item.

#uname -a
Linux ubuntu 4.10.0-19-generic #21-Ubuntu SMP Thu Apr 6 17:03:05 UTC 2017 
ppc64le ppc64le ppc64le GNU/Linux

# virsh vcpucount virt-tests-vm1 --guest
1

# time virsh setvcpus virt-tests-vm1 255 --live

real0m10.541s
user0m0.013s
sys 0m0.011s

# virsh vcpucount virt-tests-vm1 --guest
226

# virsh vcpucount virt-tests-vm1 --guest
255---OK

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

Title:
  Ubuntu 17.04: Guest does not reflect all the cpus hotplugged

Status in linux package in Ubuntu:
  Fix Released
Status in linux source package in Zesty:
  Fix Released

Bug description:
  == Comment: #0 - Satheesh Rajendran  - 2017-02-28 
06:00:53 ==
  ---Problem Description---
  Guest does not reflect all the cpus hotplugged,
  Holpug vcpus using setvcpu with initial less number of cpus(1) to a greater 
cpus(~256), though
  setvcpu(libvirt) returns no error, guest does not reflect all cpus inside.

   
  Contact Information = sathe...@in.ibm.com 
   
  ---uname output---
  Linux ltc-test-ci1 4.10.0-9-generic #11-Ubuntu SMP Mon Feb 20 13:45:11 UTC 
2017 ppc64le ppc64le ppc64le GNU/Linux
   
  Machine Type = power 8 ppc64le 
   
  ---Debugger---
  A debugger is not configured
   
  ---Steps to Reproduce---
   1. Start the guest(Ubuntu 17.04) with 1 current vcpu and 255 maxvcpus
  ...
   255
  ...
   
  

  

  # lscpu
  Architecture:  ppc64le
  Byte Order:Little Endian
  CPU(s):1
  On-line CPU(s) list:   0
  Thread(s) per core:1
  Core(s) per socket:1
  Socket(s): 1
  NUMA node(s):  1
  Model: 2.1 (pvr 004b 0201)
  Model name:POWER8E (raw), altivec supported
  Hypervisor vendor: KVM
  Virtualization type:   para
  L1d cache: 64K
  L1i cache: 32K
  NUMA node0 CPU(s): 0
   
  2.# time virsh setvcpus virt-tests-vm1 255 --live --config

  
  real0m4.460s
  user0m0.012s
  sys 0m0.000s
  
root@ltc-test-ci1:/var/lib/libvirt/images/workspace/runAvocadoFVTTest/avocado-fvt-wrapper#
 echo $?
  0

  3. Check inside the guest after some time (10-15 mins) (
  dmesg of guest shows all the RTAS(255) events,but the guest showed only 90 
vcpus(it consistent around ~ 100 always).

  root@ubuntu:~# lscpu
  Architecture:  ppc64le
  Byte Order:Little Endian
  CPU(s):97
  On-line CPU(s) list:   0-96
  Thread(s) per core:1
  Core(s) per socket:97
  Socket(s): 1
  NUMA node(s):  1
  Model: 2.1 (pvr 004b 0201)
  Model name:POWER8E (raw), altivec supported
  Hypervisor vendor: KVM
  Virtualization type:   para
  L1d cache: 64K
  L1i cache: 32K
  NUMA node0 CPU(s): 0-96
  root@ubuntu:~# tail /proc/cpuinfo 

  processor : 96
  cpu   : POWER8E (raw), altivec supported
  clock : 3425.00MHz
  revision  : 2.1 (pvr 004b 0201)

  timebase  : 51200
  platform  : pSeries
  model : IBM pSeries (emulated by qemu)
  machine   : CHRP IBM pSeries (emulated by qemu)


  Userspace tool common name: libvirt, qemu 
   
  The userspace tool has the following bit modes: both 

  Userspace rpm: qemu-kvm   1:2.8+dfsg-
  2ubuntu1   ppc64el,ii  libvirt-bin
  2.5.0-3ubuntu2ppc64el

  Userspace tool obtained from project website:  na 
   
  Guest Details:
  #cat /etc/os-release |grep VERSION=
  VERSION="17.04 (Zesty Zapus)"
  # uname -a
  Linux ubuntu 4.10.0-8-generic #10-Ubuntu SMP Mon Feb 13 14:00:06 UTC 2017 
ppc64le ppc64le ppc64le GNU/Linux
  root@ubuntu:~# dpkg -l |grep rtas
  ii  librtas-dev2.0.0-2
   ppc64el  userspace RTAS library development files
  ii  librtas2   2.0.0-2
   ppc64el  userspace RTAS library
  ii  librtasevent-dev   2.0.0-2
   ppc64el  RTAS events library development files
  ii  librtasevent2  2.0.0-2
   ppc64el  RTAS events library
  ii  ppc64-diag 2.7.1-6
   ppc64el  Platform error log analysis tool and rtas_errd daemon

  
  *Additional Instructions for sathe...@in.ibm.com: 
  -Post a private note with access information to the machine that the bug is 
occuring on.
  -Attach ltrace and strace of 

[Kernel-packages] [Bug 1670315] Comment bridged from LTC Bugzilla

2017-03-06 Thread bugproxy
--- Comment From mdr...@us.ibm.com 2017-03-06 15:21 EDT---
(In reply to comment #10)
> > Next, I will look at ubuntu-1704 kernel to figure out which commits are
> > required for this to work.
>
> commit 3dbbaf200f532e01e56168b8339f2981f2cb1d67
> Author: Michael Roth 
> Date:   Mon Feb 20 19:12:18 2017 -0600
>
> powerpc/pseries: Advertise Hot Plug Event support to firmware
>
> With the inclusion of commit 333f7b76865b ("powerpc/pseries: Implement
> indexed-count hotplug memory add") and commit 753843471cbb
> ("powerpc/pseries: Implement indexed-count hotplug memory remove"), we
> now have complete handling of the RTAS hotplug event format as described
> by PAPR via ACR "PAPR Changes for Hotplug RTAS Events".
>
> This capability is indicated by byte 6, bit 2 (5 in IBM numbering) of
> architecture option vector 5, and allows for greater control over
> cpu/memory/pci hot plug/unplug operations.
>
> Existing pseries kernels will utilize this capability based on the
> existence of the /event-sources/hot-plug-events DT property, so we
> only need to advertise it via CAS and do not need a corresponding
> FW_FEATURE_* value to test for.
>
> Signed-off-by: Michael Roth 
> Signed-off-by: Michael Ellerman 
>
> The above commit is missing from 1704 kernel. This commit is needed to fix
> the issue seen in this bugzilla. More importantly, this commit is needed for
> memory unplug support.
>
> Vipin - Can you follow up with Ubuntu and get this patch included into 1704
> kernel ?

Because QEMU will also use the flag set by the above patch as an
indicator for memory unplug support, as well as count+indexed-based
memory hotplug support, I think we'd also want to include the patches
required for those memory hotplug operations as well. Otherwise memory
hotplug/unplug may not function correctly with the patch applied.

The following list of commits should do it (from most recent to oldest
commit):

3dbbaf2 powerpc/pseries: Advertise Hot Plug Event support to firmware
943db62 powerpc/pseries: Revert 'Auto-online hotplugged memory'
7538434 powerpc/pseries: Implement indexed-count hotplug memory remove
333f7b7 powerpc/pseries: Implement indexed-count hotplug memory add
673bc43 powerpc/pseries: Report DLPAR capabilities

The "Report DLPAR capabilities" one is optional for KVM, but may be
needed in order for PowerVM guests to use the in-kernel mechanisms for
cpu/memory.

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

Title:
  Ubuntu 17.04: Guest does not reflect all the cpus hotplugged

Status in linux package in Ubuntu:
  Fix Committed
Status in linux source package in Zesty:
  Fix Committed

Bug description:
  == Comment: #0 - Satheesh Rajendran  - 2017-02-28 
06:00:53 ==
  ---Problem Description---
  Guest does not reflect all the cpus hotplugged,
  Holpug vcpus using setvcpu with initial less number of cpus(1) to a greater 
cpus(~256), though
  setvcpu(libvirt) returns no error, guest does not reflect all cpus inside.

   
  Contact Information = sathe...@in.ibm.com 
   
  ---uname output---
  Linux ltc-test-ci1 4.10.0-9-generic #11-Ubuntu SMP Mon Feb 20 13:45:11 UTC 
2017 ppc64le ppc64le ppc64le GNU/Linux
   
  Machine Type = power 8 ppc64le 
   
  ---Debugger---
  A debugger is not configured
   
  ---Steps to Reproduce---
   1. Start the guest(Ubuntu 17.04) with 1 current vcpu and 255 maxvcpus
  ...
   255
  ...
   
  

  

  # lscpu
  Architecture:  ppc64le
  Byte Order:Little Endian
  CPU(s):1
  On-line CPU(s) list:   0
  Thread(s) per core:1
  Core(s) per socket:1
  Socket(s): 1
  NUMA node(s):  1
  Model: 2.1 (pvr 004b 0201)
  Model name:POWER8E (raw), altivec supported
  Hypervisor vendor: KVM
  Virtualization type:   para
  L1d cache: 64K
  L1i cache: 32K
  NUMA node0 CPU(s): 0
   
  2.# time virsh setvcpus virt-tests-vm1 255 --live --config

  
  real0m4.460s
  user0m0.012s
  sys 0m0.000s
  
root@ltc-test-ci1:/var/lib/libvirt/images/workspace/runAvocadoFVTTest/avocado-fvt-wrapper#
 echo $?
  0

  3. Check inside the guest after some time (10-15 mins) (
  dmesg of guest shows all the RTAS(255) events,but the guest showed only 90 
vcpus(it consistent around ~ 100 always).

  root@ubuntu:~# lscpu
  Architecture:  ppc64le
  Byte Order:Little Endian
  CPU(s):97
  On-line CPU(s) list:   0-96
  Thread(s) per core:1
  Core(s) per socket:97
  Socket(s): 1
  NUMA node(s):  1
  Model: 2.1 (pvr 004b 0201)
  Model name:POWER8E (raw), altivec supported
  Hypervisor vendor: KVM
  Virtualization type:   para
  L1d 

[Kernel-packages] [Bug 1670315] Comment bridged from LTC Bugzilla

2017-03-06 Thread bugproxy
--- Comment From vipar...@in.ibm.com 2017-03-06 07:13 EDT---
commit 3dbbaf200f532e01e56168b8339f2981f2cb1d67
Author: Michael Roth 
Date:   Mon Feb 20 19:12:18 2017 -0600

powerpc/pseries: Advertise Hot Plug Event support to firmware

With the inclusion of commit 333f7b76865b ("powerpc/pseries: Implement
indexed-count hotplug memory add") and commit 753843471cbb
("powerpc/pseries: Implement indexed-count hotplug memory remove"), we
now have complete handling of the RTAS hotplug event format as described
by PAPR via ACR "PAPR Changes for Hotplug RTAS Events".

Hello Canonical,

Please include above commit with Ubuntu 17.04 and Ubuntu 16.04 LTS
release.

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

Title:
  Ubuntu 17.04: Guest does not reflect all the cpus hotplugged

Status in linux package in Ubuntu:
  New

Bug description:
  == Comment: #0 - Satheesh Rajendran  - 2017-02-28 
06:00:53 ==
  ---Problem Description---
  Guest does not reflect all the cpus hotplugged,
  Holpug vcpus using setvcpu with initial less number of cpus(1) to a greater 
cpus(~256), though
  setvcpu(libvirt) returns no error, guest does not reflect all cpus inside.

   
  Contact Information = sathe...@in.ibm.com 
   
  ---uname output---
  Linux ltc-test-ci1 4.10.0-9-generic #11-Ubuntu SMP Mon Feb 20 13:45:11 UTC 
2017 ppc64le ppc64le ppc64le GNU/Linux
   
  Machine Type = power 8 ppc64le 
   
  ---Debugger---
  A debugger is not configured
   
  ---Steps to Reproduce---
   1. Start the guest(Ubuntu 17.04) with 1 current vcpu and 255 maxvcpus
  ...
   255
  ...
   
  

  

  # lscpu
  Architecture:  ppc64le
  Byte Order:Little Endian
  CPU(s):1
  On-line CPU(s) list:   0
  Thread(s) per core:1
  Core(s) per socket:1
  Socket(s): 1
  NUMA node(s):  1
  Model: 2.1 (pvr 004b 0201)
  Model name:POWER8E (raw), altivec supported
  Hypervisor vendor: KVM
  Virtualization type:   para
  L1d cache: 64K
  L1i cache: 32K
  NUMA node0 CPU(s): 0
   
  2.# time virsh setvcpus virt-tests-vm1 255 --live --config

  
  real0m4.460s
  user0m0.012s
  sys 0m0.000s
  
root@ltc-test-ci1:/var/lib/libvirt/images/workspace/runAvocadoFVTTest/avocado-fvt-wrapper#
 echo $?
  0

  3. Check inside the guest after some time (10-15 mins) (
  dmesg of guest shows all the RTAS(255) events,but the guest showed only 90 
vcpus(it consistent around ~ 100 always).

  root@ubuntu:~# lscpu
  Architecture:  ppc64le
  Byte Order:Little Endian
  CPU(s):97
  On-line CPU(s) list:   0-96
  Thread(s) per core:1
  Core(s) per socket:97
  Socket(s): 1
  NUMA node(s):  1
  Model: 2.1 (pvr 004b 0201)
  Model name:POWER8E (raw), altivec supported
  Hypervisor vendor: KVM
  Virtualization type:   para
  L1d cache: 64K
  L1i cache: 32K
  NUMA node0 CPU(s): 0-96
  root@ubuntu:~# tail /proc/cpuinfo 

  processor : 96
  cpu   : POWER8E (raw), altivec supported
  clock : 3425.00MHz
  revision  : 2.1 (pvr 004b 0201)

  timebase  : 51200
  platform  : pSeries
  model : IBM pSeries (emulated by qemu)
  machine   : CHRP IBM pSeries (emulated by qemu)


  Userspace tool common name: libvirt, qemu 
   
  The userspace tool has the following bit modes: both 

  Userspace rpm: qemu-kvm   1:2.8+dfsg-
  2ubuntu1   ppc64el,ii  libvirt-bin
  2.5.0-3ubuntu2ppc64el

  Userspace tool obtained from project website:  na 
   
  Guest Details:
  #cat /etc/os-release |grep VERSION=
  VERSION="17.04 (Zesty Zapus)"
  # uname -a
  Linux ubuntu 4.10.0-8-generic #10-Ubuntu SMP Mon Feb 13 14:00:06 UTC 2017 
ppc64le ppc64le ppc64le GNU/Linux
  root@ubuntu:~# dpkg -l |grep rtas
  ii  librtas-dev2.0.0-2
   ppc64el  userspace RTAS library development files
  ii  librtas2   2.0.0-2
   ppc64el  userspace RTAS library
  ii  librtasevent-dev   2.0.0-2
   ppc64el  RTAS events library development files
  ii  librtasevent2  2.0.0-2
   ppc64el  RTAS events library
  ii  ppc64-diag 2.7.1-6
   ppc64el  Platform error log analysis tool and rtas_errd daemon

  
  *Additional Instructions for sathe...@in.ibm.com: 
  -Post a private note with access information to the machine that the bug is 
occuring on.
  -Attach ltrace and strace of