[Bug 1308760] Re: lshw doesn't deal w/ device-tree endianness

Launchpad Bug Tracker 1308760 at bugs.launchpad.net
Tue Sep 2 22:58:42 UTC 2014


This bug was fixed in the package lshw - 02.16-2ubuntu2

---------------
lshw (02.16-2ubuntu2) utopic; urgency=medium

  * Fix endianness issues with device-tree (LP: #1308760)
  * Add DDR3 support for systems described by device-tree (LP: #1351921)
 -- dann frazier <dann.frazier at canonical.com>   Sun, 03 Aug 2014 14:54:54 +0200

** Changed in: lshw (Ubuntu)
       Status: Triaged => Fix Released

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

Title:
  lshw doesn't deal w/ device-tree endianness

Status in lshw - Hardware Lister:
  Unknown
Status in “lshw” package in Ubuntu:
  Fix Released
Status in “lshw” source package in Trusty:
  New
Status in “lshw” package in Debian:
  New

Bug description:
  [Impact]
  lshw parses /proc/device-tree to read system properties on device-tree-based platforms. But, on little endian systems like armhf and arm64, it doesn't properly convert the data, which should always be big endian. This can cause incorrect data to be reported. For instance, a 1GHz cpu might be reported as 13MHz because lshw reads a frequency of 0xca9a3b (13MHz) instead of 0x3b9aca00 (1GHz).
  [Test Case]
  Run lshw on an HP m800 cartridge and examine the cpu frequency.
  [Regression Potential]
  We're changing parsing code, so there's a possibility that we break that code on systems that currently work in trusty. I tested on a big endian system to make sure it didn't break things there (powerpc), and found the output to be byte-for-byte identical before and after the patch.

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



More information about the foundations-bugs mailing list