[Bug 1826737] Re: lshw does not list NVMe storage devices as "disk" nodes
Stephen Boston
1826737 at bugs.launchpad.net
Thu Jan 21 03:25:16 UTC 2021
Installed and ran the application. Although output for device is correct
there is another issue.
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.10
Release: 20.10
Codename: groovy
As below
lshw-B.02.18$ lshw
WARNING: you should run this program as super-user.
terminate called after throwing an instance of 'std::length_error'
what(): cannot create std::vector larger than max_size()
Aborted (core dumped)
~/projects/lshw-B.02.18$ su
Password:
root at asus:/home/stephen/projects/lshw-B.02.18# lshw -class disk
root at asus:/home/stephen/projects/lshw-B.02.18# lshw -class storage
*-storage
description: SATA controller
product: HM170/QM170 Chipset SATA Controller [AHCI Mode]
vendor: Intel Corporation
physical id: 17
bus info: pci at 0000:00:17.0
version: 31
width: 32 bits
clock: 66MHz
capabilities: storage msi pm ahci_1.0 bus_master cap_list
configuration: driver=ahci latency=0
resources: irq:128 memory:dd430000-dd431fff memory:dd434000-dd4340ff ioport:f090(size=8) ioport:f080(size=4) ioport:f060(size=32) memory:dd433000-dd4337ff
*-storage
description: Non-Volatile memory controller
product: NVMe SSD Controller SM951/PM951
vendor: Samsung Electronics Co Ltd
physical id: 0
bus info: pci at 0000:3d:00.0
version: 01
width: 64 bits
clock: 33MHz
capabilities: storage pm msi pciexpress msix nvm_express bus_master cap_list
configuration: driver=nvme latency=0
resources: irq:16 memory:dd100000-dd103fff ioport:d000(size=256)
root at asus:/home/stephen/projects/lshw-B.02.18# lshw | grep -C5 -i nvme
capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
configuration: driver=pcieport
resources: irq:126 ioport:d000(size=4096) memory:dd100000-dd1fffff
*-storage
description: Non-Volatile memory controller
product: NVMe SSD Controller SM951/PM951
vendor: Samsung Electronics Co Ltd
physical id: 0
bus info: pci at 0000:3d:00.0
version: 01
width: 64 bits
clock: 33MHz
capabilities: storage pm msi pciexpress msix nvm_express bus_master cap_list
configuration: driver=nvme latency=0
resources: irq:16 memory:dd100000-dd103fff ioport:d000(size=256)
*-isa
description: ISA bridge
product: HM170 Chipset LPC/eSPI Controller
vendor: Intel Corporation
--
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/1826737
Title:
lshw does not list NVMe storage devices as "disk" nodes
Status in lshw package in Ubuntu:
Fix Released
Status in lshw source package in Bionic:
Fix Committed
Status in lshw source package in Focal:
Fix Committed
Status in lshw source package in Groovy:
Fix Committed
Status in lshw source package in Hirsute:
Fix Released
Status in lshw package in Debian:
Unknown
Bug description:
[Impact]
* NVMe devices are not recognized by lshw in Ubuntu
[Test Case]
* Running "lshw -C disk" or "lshw -C storage" does not show NVMe devices.
Example: https://pastebin.ubuntu.com/p/FfKGNc7W6M/
[Where problems could occur]
* This upload consists of four cherry-picked patches and the feature
is self-contained, so the regression potential is quite low. If
there's anything to happen, it would be in the network device scan,
where the structure was altered by the main NVMe patch.
* For those who does HW monitoring/inventory listing based on 'lshw'
might observe changes in their inventory listing, it shouldn't be a
'problem' but I want to point this out.
[Other information]
# Redhat bug:
https://bugzilla.redhat.com/show_bug.cgi?id=1695343
* It also seems to fit in the 'other safe cases':
https://wiki.ubuntu.com/StableReleaseUpdates#Other_safe_cases
For Long Term Support releases we regularly want to enable new hardware. Such changes are appropriate provided that we can ensure not to affect upgrades on existing hardware.
[Original description]
Ubuntu MATE 19.04, updated 2019-04-28
sudo lshw -class disk
Expected : info on SSD
Actual result : info on USB drive only.
Note this is already reported to RedHat
ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: lshw 02.18-0.1ubuntu7
ProcVersionSignature: Ubuntu 5.0.0-13.14-generic 5.0.6
Uname: Linux 5.0.0-13-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.10-0ubuntu27
Architecture: amd64
CurrentDesktop: MATE
Date: Sun Apr 28 07:11:45 2019
InstallationDate: Installed on 2019-04-25 (3 days ago)
InstallationMedia: Ubuntu-MATE 19.04 "Disco Dingo" - Release amd64 (20190416)
SourcePackage: lshw
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lshw/+bug/1826737/+subscriptions
More information about the foundations-bugs
mailing list