[Bug 1485086] Re: lshw does not display cpu information correctly on aarch64

dann frazier dann.frazier at canonical.com
Thu Aug 20 23:30:09 UTC 2015


** Changed in: lshw (Ubuntu Vivid)
       Status: Confirmed => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to lshw in Ubuntu.
https://bugs.launchpad.net/bugs/1485086

Title:
  lshw does not display cpu information correctly on aarch64

Status in lshw package in Ubuntu:
  Fix Released
Status in lshw source package in Trusty:
  Confirmed
Status in lshw source package in Vivid:
  In Progress
Status in lshw source package in Wily:
  Fix Released

Bug description:
  On certain aarch64 systems lshw does not display cpu information
  correctly. It displays cpu0 and the any subsequent cpus are displayed
  as DISABLED.  On a multi core aarch64 system lshw displays the
  following:

    *-core
         description: Motherboard
         physical id: 0
         capabilities: < Intentionally Removed >
       *-cpu:0
            description: CPU
            product: cpu
            physical id: 0
            bus info: cpu at 0
       *-cpu:1 DISABLED
            description: CPU
            product: cpu
            physical id: 2
            bus info: cpu at 1
       *-cpu:2 DISABLED
            description: CPU
            product: cpu
            physical id: 4
            bus info: cpu at 2
       *-cpu:3 DISABLED
            description: CPU
            product: cpu
            physical id: 5
            bus info: cpu at 3

  Please consider the attached merge proposal for SRU in trusty.

  [Impact]

   * When users run lshw on aarch64 systems the CPU information is not
  displayed correctly. It displays cpu0 and the any subsequent cpus are
  displayed as DISABLED. Please refer to bug description for details on
  output.

   * This bug can be fixed by adding code to handle the aarch64 case
  similar to the existing code for powerpc, x86, x64, ia64 etc. But,
  lshw upstream has done the work of adding support for s390 and
  aarch64. It will be better to backport those changes rather than using
  a bandaid fix for aarch64 in ubuntu.

  
  [Test Case]

   * On an ubuntu aarch64 system run the command sudo lshw and look at
  the information displayed for cpu. Without the patch you should see
  that CPU 1-N will be DISABLED.

   * With the patch run lshw on aarch64 ubuntu system and you should see
  that it lists CPUs 1-N and display information about the CPU.

  [Regression Potential]

   * Currently support for aarch64 is broken, so if a regression were to
  occur it could be in other archs. But, the changes introduced by this
  patch is to support aarch64 and s390 systems and those changes should
  not impact other archs.

   * This patch was tested on a 48 core aarch64 system running Trusty
  and found to work as expected. lshw package for wily and trusty were
  built and tested on an aarch64 system running Trusty.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lshw/+bug/1485086/+subscriptions



More information about the foundations-bugs mailing list