------- Comment From kalsh...@in.ibm.com 2018-03-25 21:52 EDT-------
@Praveen: please confirm with latest Ubu 18.04 kernel or "-proposed" kernel 
this is fixed?

This is critical for us to update the bug with latest info.

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

Title:
  Ubuntu18.04[P9 DD2.2 Boston]:Unable to boot power8 compat mode
  guests(ubuntu14.04.5) (kvm)

Status in The Ubuntu-power-systems project:
  Triaged
Status in linux package in Ubuntu:
  Fix Committed
Status in linux source package in Bionic:
  Fix Committed

Bug description:
  == Comment: #0 - Praveen K. Pandey <praveen.pan...@in.ibm.com> - 2018-03-15 
03:18:46 ==
  Problem Description : 

  As Ubuntu18.04 as KVM Host installation of ubuntu ubuntu14.04.5  kvm
  guest  is hung to so not able to install using virt-install command

  Reproducible Step:
  1- Install ubuntu18.04 on Boston DD2.2 
  2- Configure system as KVM host 
  3- get ubuntu-14.04.5-server-ppc64el iso 
  4- start installation using virt-install using ubuntu-14.04.5 iso 

  LOG:

  OF stdout device is: /vdevice/vty@30000000
  Preparing to boot Linux version 4.4.0-31-generic (buildd@bos01-ppc64el-007) 
(gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3) ) #50~14.04.1-Ubuntu SMP Wed 
Jul 13 01:03:56 UTC 2016 (Ubuntu 4.4.0-31.50~14.04.1-generic 4.4.13)
  Detected machine type: 0000000000000101
  Max number of cores passed to firmware: 2048 (NR_CPUS = 2048)
  Calling ibm,client-architecture-support...

  ----- it hung here --------------

  root@system :/var/lib/libvirt/images/praveen# uname -a
  Linux system4.15.0-12-generic #13-Ubuntu SMP Wed Mar 7 21:37:03 UTC 2018 
ppc64le ppc64le ppc64le GNU/Linux
  root@lsystem:/var/lib/libvirt/images/praveen# 

  
  root@system:/var/lib/libvirt/images/praveen# qemu-img create -f qcow2 
pra-ubuntu14.qcow2 30G
  Formatting 'pra-ubuntu14.qcow2', fmt=qcow2 size=32212254720 
cluster_size=65536 lazy_refcounts=off refcount_bits=16
  root@system:/var/lib/libvirt/images/praveen# virt-install --name 
PRA-1404.5_vm1 --ram 2048 --disk 
path=/var/lib/libvirt/images/praveen/pra-ubuntu14.qcow2 --vcpus 4 --os-type 
linux --os-variant generic --network bridge=virbr0 --graphics none --console 
pty,target_type=serial --cdrom 
/var/lib/libvirt/images/isos/ubuntu-14.04.5-server-ppc64el.iso 
  WARNING  CDROM media does not print to the text console by default, so you 
likely will not see text install output. You might want to use --location. See 
the man page for examples of using --location with CDROM media

  Starting install...
  Connected to domain PRA-1404.5_vm1
  Escape character is ^]
  Populating /vdevice methods
  Populating /vdevice/vty@30000000
  Populating /vdevice/nvram@71000000
  Populating /pci@800000020000000
                       00 0800 (D) : 1af4 1000    virtio [ net ]
                       00 1000 (D) : 1af4 1004    virtio [ scsi ]
  Populating /pci@800000020000000/scsi@2
         SCSI: Looking for devices
            100000000000000 CD-ROM   : "QEMU     QEMU CD-ROM      2.5+"
                       00 1800 (D) : 1b36 000d    serial bus [ usb-xhci ]
                       00 2000 (D) : 1af4 1001    virtio [ block ]
                       00 2800 (D) : 1af4 1002    unknown-legacy-device*
  No NVRAM common partition, re-initializing...
  Scanning USB 
    XHCI: Initializing
  Using default console: /vdevice/vty@30000000
       
    Welcome to Open Firmware

    Copyright (c) 2004, 2017 IBM Corporation All rights reserved.
    This program and the accompanying materials are made available
    under the terms of the BSD License available at
    http://www.opensource.org/licenses/bsd-license.php

  
  Trying to load:  from: /pci@800000020000000/scsi@2/disk@100000000000000 ...   
Successfully loaded

  
                      GNU GRUB  version 2.02~beta2-9ubuntu1.11

  
   |*Install                                                                    
|                                                                               
    


        Press enter to boot the selected OS, `e' to edit the commands           
                                                                                
    
        before booting or `c' for a command-line.                               
                                                                                
    
                                                                                
                                                                                
  
                                                                                
                                                                                
  

  OF stdout device is: /vdevice/vty@30000000
  Preparing to boot Linux version 4.4.0-31-generic (buildd@bos01-ppc64el-007) 
(gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3) ) #50~14.04.1-Ubuntu SMP Wed 
Jul 13 01:03:56 UTC 2016 (Ubuntu 4.4.0-31.50~14.04.1-generic 4.4.13)
  Detected machine type: 0000000000000101
  Max number of cores passed to firmware: 2048 (NR_CPUS = 2048)
  Calling ibm,client-architecture-support...

  Regards
  Praveen

  == Comment: #1 - Harish Sriram <hasri...@in.ibm.com> - 2018-03-15 04:12:37 ==
  With P8 compat added to XML guest does not boot up.

    <cpu mode='host-model' check='partial'>
      <model fallback='allow'>power8</model>
      <topology sockets='1' cores='1' threads='4'/>
    </cpu>

  
  # virsh start kal-bionic_vm2 --console 
  Domain kal-bionic_vm2 started
  Connected to domain kal-bionic_vm2
  Escape character is ^]

  - Harish

  == Comment: #5 - Satheesh Rajendran <sathe...@in.ibm.com> - 2018-03-15 
06:34:29 ==
  Looks like we need a SMT=off and 
/sys/module/kvm_hv/parameters/indep_threads_mode =N workaround still in Power9 
DD2.2, on ubuntu18.04 kernel, 
   
  # uname -a  
  Linux ltc-bostonxx 4.15.0-12-generic #13-Ubuntu SMP Wed Mar 7 21:37:03 UTC 
2018 ppc64le ppc64le ppc64le GNU/Linux

  Paul,

  Pls let us know which patches to be included ?
  Thanks in advance.

  Regards,
  -Satheesh.

  == Comment: #6 - Praveen K. Pandey <praveen.pan...@in.ibm.com> - 2018-03-15 
07:36:25 ==
  (In reply to comment #5)
  > Looks like we need a SMT=off and
  > /sys/module/kvm_hv/parameters/indep_threads_mode =N workaround still in
  > Power9 DD2.2, on ubuntu18.04 kernel, 
  >  
  > # uname -a  
  > Linux ltc-bostonxx 4.15.0-12-generic #13-Ubuntu SMP Wed Mar 7 21:37:03 UTC
  > 2018 ppc64le ppc64le ppc64le GNU/Linux
  > 
  > Paul,
  > 
  > Pls let us know which patches to be included ?
  > Thanks in advance.
  > 
  > Regards,
  > -Satheesh.

  Hi Satheesh ,

    Seems me still not working with work around

  root@ltc-boston122:~# cat /sys/module/kvm_hv/parameters/indep_threads_mode
  N
  root@ltc-boston122:~# ppc64_cpu --smt
  SMT is off
  root@ltc-boston122:~# 
  root@ltc-boston122:~# virsh start PRA-bionic_vm1 --console
  Domain PRA-bionic_vm1 started
  Connected to domain PRA-bionic_vm1
  Escape character is ^]

  root@ltc-boston122:~# 
  root@ltc-boston122:~# uname -a
  Linux ltc-boston122 4.15.0-12-generic #13-Ubuntu SMP Wed Mar 7 21:37:03 UTC 
2018 ppc64le ppc64le ppc64le GNU/Linux
  root@ltc-boston122:~# 

  
  I am trying  to boot already install ubuntu18.04 guest on p8 mode using xml 
entry .

  Regards
  Praveen

  == Comment: #9 - Harish Sriram <hasri...@in.ibm.com> - 2018-03-15 07:51:02 ==
  Tired with  16 04/ 18 04 guest as P8 compat. Still facing the same issue.

  PNOR is in the latest "version-SUPERMICRO-P9DSU-V1.05-20180308-imp"

  - Harish

  == Comment: #10 - Satheesh Rajendran <sathe...@in.ibm.com> - 2018-03-15 
08:15:01 ==
  Looks like this kernel patch is missing in ubuntu 18.04,

  commit 00608e1f007e4cf6031485c5630e0e504bceef9b
  Author: Paul Mackerras <pau...@ozlabs.org>
  Date:   Thu Jan 11 16:54:26 2018 +1100

      KVM: PPC: Book3S HV: Allow HPT and radix on the same core for POWER9 v2.2
      
      POWER9 chip versions starting with "Nimbus" v2.2 can support running
      with some threads of a core in HPT mode and others in radix mode.
      This means that we don't have to prohibit independent-threads mode
      when running a HPT guest on a radix host, and we don't have to do any
      of the synchronization between threads that was introduced in commit
      c01015091a77 ("KVM: PPC: Book3S HV: Run HPT guests on POWER9 radix
      hosts", 2017-10-19).
      
      Rather than using up another CPU feature bit, we just do an
      explicit test on the PVR (processor version register) at module
      startup time to determine whether we have to take steps to avoid
      having some threads in HPT mode and some in radix mode (so-called
      "mixed mode").  We test for "Nimbus" (indicated by 0 or 1 in the top
      nibble of the lower 16 bits) v2.2 or later, or "Cumulus" (indicated by
      2 or 3 in that nibble) v1.1 or later.
      
      Signed-off-by: Paul Mackerras <pau...@ozlabs.org>

  Regards,
  -Satheesh

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-power-systems/+bug/1756254/+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