RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1695343 - lshw does not list NVMe storage devices as "disk" nodes
Summary: lshw does not list NVMe storage devices as "disk" nodes
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: lshw
Version: 8.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: 8.2
Assignee: lijiang
QA Contact: Jeff Bastian
URL:
Whiteboard:
Depends On:
Blocks: 1755139 1771222 1825061
TreeView+ depends on / blocked
 
Reported: 2019-04-02 20:54 UTC by Bryan Gurney
Modified: 2020-11-04 01:59 UTC (History)
3 users (show)

Fixed In Version: lshw-B.02.19.2-2.el8
Doc Type: No Doc Update
Doc Text:
Clone Of: 1695339
Environment:
Last Closed: 2020-11-04 01:57:49 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:4533 0 None None None 2020-11-04 01:58:06 UTC

Internal Links: 1699104

Description Bryan Gurney 2019-04-02 20:54:40 UTC
+++ This bug was initially created as a clone of Bug #1695339 +++

Description of problem:
lshw currently does not list NVMe solid state drives as "disk" nodes.

Currently, for each NVMe device, lshw shows the "storage" node, which details the capabilities of the NVMe "controller", but it does not show a "disk" node, which details the size of the device.  This means that users of lshw (including beaker) will not be able to determine the device's size.

Version-Release number of selected component (if applicable):
lshw-B.02.18-12.el7.x86_64

How reproducible:
always

Steps to Reproduce:
1. Install RHEL 7.6 on a system with at least one NVMe solid state drive.

Actual results:
lshw lists each NVMe device as a "storage" node under "pci", but there is no corresponding "disk" node.

Expected results:
lshw lists each NVMe device as a "storage" node under "pci", and each NVMe device has a corresponding "disk" node.

Additional info:

Here's a quick example of the current results:

Serial ATA storage device with "disk" node, for a Samsung 850 Pro SSD (size: 256 GB):

        *-sata:0
             description: SATA controller
             product: C620 Series Chipset Family SSATA Controller [AHCI mode]
             vendor: Intel Corporation
             physical id: 11.5
             bus info: pci@0000:00:11.5
             logical name: scsi0
             version: 09
             width: 32 bits
             clock: 66MHz
             capabilities: sata msi pm ahci_1.0 bus_master cap_list emulated
             configuration: driver=ahci latency=0
             resources: irq:39 memory:9d206000-9d207fff memory:9d209000-9d2090ff
 ioport:3070(size=8) ioport:3060(size=4) ioport:3020(size=32) memory:9d180000-9d
1fffff
           *-disk
                description: ATA Disk
                product: Samsung SSD 850
                physical id: 0.0.0
                bus info: scsi@0:0.0.0
                logical name: /dev/sda
                version: 4B6Q
                serial: XXXXXXXXXXXXXXX
                size: 238GiB (256GB)
                capabilities: partitioned partitioned:dos
                configuration: ansiversion=5 logicalsectorsize=512 sectorsize=512 signature=00006543


NVMe solid state drive without a "disk" node, for an Intel Optane 900P (size: 280 GB):

     *-pci:4
          description: PCI bridge
          product: Sky Lake-E PCI Express Root Port A
          vendor: Intel Corporation
          physical id: 104
          bus info: pci@0000:5d:00.0
          version: 04
          width: 32 bits
          clock: 33MHz
          capabilities: pci msi pciexpress pm normal_decode bus_master cap_list
          configuration: driver=pcieport
          resources: irq:32 memory:c5e00000-c5efffff
        *-storage
             description: Non-Volatile memory controller
             product: Optane SSD 900P Series
             vendor: Intel Corporation
             physical id: 0
             bus info: pci@0000:5e:00.0
             version: 00
             width: 64 bits
             clock: 33MHz
             capabilities: storage pm msix pciexpress nvm_express bus_master cap_list rom
             configuration: driver=nvme latency=0
             resources: irq:40 memory:c5e10000-c5e13fff memory:c5e00000-c5e0ffff

--- Additional comment from RHEL Product and Program Management on 2019-04-02 16:49:43 EDT ---

Since this bug report was entered in Red Hat Bugzilla, the release flag has been set to ? to ensure that it is properly evaluated for this release.

--- Additional comment from Bryan Gurney on 2019-04-02 16:52:14 EDT ---

This was on a RHEL 7.6 system; updating the appropriate field.

Comment 1 Bryan Gurney 2019-04-02 20:58:55 UTC
Info for RHEL 8 test system:

Version info:
lshw-B.02.18-16.el8.x86_64


Example NVMe storage device (Intel Optane 16 GB)

     *-pci:2
          description: PCI bridge
          product: Xeon E5/Core i7 IIO PCI Express Root Port 2a
          vendor: Intel Corporation
          physical id: 2
          bus info: pci@0000:80:02.0
          version: 07
          width: 32 bits
          clock: 33MHz
          capabilities: pci msi pciexpress pm normal_decode bus_master cap_list
          configuration: driver=pcieport
          resources: irq:36 memory:fbe00000-fbefffff
        *-storage
             description: Non-Volatile memory controller
             product: Intel Corporation
             vendor: Intel Corporation
             physical id: 0
             bus info: pci@0000:83:00.0
             version: 00
             width: 64 bits
             clock: 33MHz
             capabilities: storage pm msix pciexpress msi nvm_express bus_master cap_list
             configuration: driver=nvme latency=0
             resources: irq:35 memory:fbe10000-fbe13fff memory:fbe00000-fbe0ffff



Example Serial ATA device: Samsung 840 Pro (128 GB)

        *-sata
             description: SATA controller
             product: C600/X79 series chipset 6-Port SATA AHCI Controller
             vendor: Intel Corporation
             physical id: 1f.2
             bus info: pci@0000:00:1f.2
             logical name: scsi0
             logical name: scsi1
             logical name: scsi2
             logical name: scsi3
             logical name: scsi4
             logical name: scsi5
             version: 06
             width: 32 bits
             clock: 66MHz
             capabilities: sata msi pm ahci_1.0 bus_master cap_list emulated
             configuration: driver=ahci latency=0
             resources: irq:50 ioport:9070(size=8) ioport:9060(size=4) ioport:9050(size=8) ioport:9040(size=4) ioport:9020(size=32) memory:dfc21000-dfc217ff
           *-disk:0
                description: ATA Disk
                product: Samsung SSD 840
                physical id: 0
                bus info: scsi@0:0.0.0
                logical name: /dev/sda
                version: 4B0Q
                serial: XXXXXXXXXXXXXXX
                size: 119GiB (128GB)
                capabilities: partitioned partitioned:dos
                configuration: ansiversion=5 logicalsectorsize=512 sectorsize=512 signature=97aa9b44

Comment 11 Jeff Bastian 2020-09-08 21:51:46 UTC
Verified with lshw-B.02.19.2-2.el8.

:::::::::::::::::::
:: Block devices ::
:::::::::::::::::::

[root@dell-per7515-01 ~]# lsblk
NAME                            MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
nvme0n1                         259:0    0 745.2G  0 disk 
├─nvme0n1p1                     259:1    0   600M  0 part /boot/efi
├─nvme0n1p2                     259:2    0     1G  0 part /boot
└─nvme0n1p3                     259:3    0 743.6G  0 part 
  ├─rhel_dell--per7515--01-root 253:0    0    50G  0 lvm  /
  ├─rhel_dell--per7515--01-swap 253:1    0  23.5G  0 lvm  [SWAP]
  └─rhel_dell--per7515--01-home 253:2    0 670.2G  0 lvm  /home


::::::::::::
:: Before ::
::::::::::::

[root@dell-per7515-01 ~]# rpm -q lshw
lshw-B.02.18-23.el8.x86_64

[root@dell-per7515-01 ~]# lshw -class disk

[root@dell-per7515-01 ~]# lshw
...
...
              *-pci:3
                   description: PCI bridge
                   product: PLX Technology, Inc.
                   vendor: PLX Technology, Inc.
                   physical id: 3
                   bus info: pci@0000:42:03.0
                   version: b0
                   width: 32 bits
                   clock: 33MHz
                   capabilities: pci pm msi pciexpress normal_decode bus_master 
cap_list
                   configuration: driver=pcieport
                   resources: irq:45 memory:a6c00000-a6cfffff ioport:47ea0800000
(size=2097152)
                 *-nvme
                      description: Non-Volatile memory controller
                      product: NVMe SSD Controller 172Xa/172Xb
                      vendor: Samsung Electronics Co Ltd
                      physical id: 0
                      bus info: pci@0000:46:00.0
                      version: 01
                      width: 64 bits
                      clock: 33MHz
                      capabilities: nvme pm msi pciexpress msix nvm_express bus_master cap_list
                      configuration: driver=nvme latency=0
                      resources: irq:44 memory:a6c00000-a6c03fff
              *-pci:4
...
...


:::::::::::
:: After ::
:::::::::::

[root@dell-per7515-01 ~]# rpm -q lshw
lshw-B.02.19.2-2.el8.x86_64

[root@dell-per7515-01 ~]# lshw -class disk
  *-namespace               
       description: NVMe disk
       physical id: 1
       bus info: nvme@0:1
       logical name: /dev/nvme0n1
       size: 745GiB (800GB)
       capabilities: gpt-1.00 partitioned partitioned:gpt
       configuration: guid=aac5eccc-26ef-4766-835e-5c5bc5b15c0e logicalsectorsize=512 sectorsize=512 wwid=eui.333959304ab002370025385800000002

[root@dell-per7515-01 ~]# lshw
...
...
              *-pci:3
                   description: PCI bridge
                   product: PLX Technology, Inc.
                   vendor: PLX Technology, Inc.
                   physical id: 3
                   bus info: pci@0000:42:03.0
                   version: b0
                   width: 32 bits
                   clock: 33MHz
                   capabilities: pci pm msi pciexpress normal_decode bus_master cap_list
                   configuration: driver=pcieport
                   resources: irq:45 memory:a6c00000-a6cfffff ioport:47ea0800000(size=2097152)
                 *-nvme
                      description: NVMe device
                      product: Dell Express Flash PM1725a 800GB SFF
                      vendor: Samsung Electronics Co Ltd
                      physical id: 0
                      bus info: pci@0000:46:00.0
                      logical name: /dev/nvme0
                      version: 1.0.4
                      serial: S39YNX0JB00237
                      width: 64 bits
                      clock: 33MHz
                      capabilities: nvme pm msi pciexpress msix nvm_express bus_master cap_list
                      configuration: driver=nvme latency=0 nqn=nqn.2014.08.org.nvmexpress:144d1028      S39YNX0JB00237Dell Express Flash PM1725a 800GB SFF state=live
                      resources: irq:44 memory:a6c00000-a6c03fff
                    *-namespace
                         description: NVMe disk
                         physical id: 1
                         bus info: nvme@0:1
                         logical name: /dev/nvme0n1
                         size: 745GiB (800GB)
                         capabilities: gpt-1.00 partitioned partitioned:gpt
                         configuration: guid=aac5eccc-26ef-4766-835e-5c5bc5b15c0e logicalsectorsize=512 sectorsize=512 wwid=eui.333959304ab002370025385800000002
                       *-volume:0 UNCLAIMED

                            description: Windows FAT volume
                            vendor: mkfs.fat
                            physical id: 1
                            bus info: nvme@0:1,1
                            version: FAT32
                            serial: 5a6b-e16d
                            size: 598MiB
                            capacity: 599MiB
                            capabilities: boot fat initialized
                            configuration: FATs=2 filesystem=fat name=EFI System Partition
                       *-volume:1 UNCLAIMED
                            description: EFI partition
                            physical id: 2
                            bus info: nvme@0:1,2
                            serial: 9f9d5ef1-129f-4953-9d54-5ecbf5326bdb
                            capacity: 1023MiB
                       *-volume:2
                            description: LVM Physical Volume
                            vendor: Linux
                            physical id: 3
                            bus info: nvme@0:1,3
                            logical name: /dev/nvme0n1p3
                            serial: 1tIcKi-qTf8-0V5H-TSwl-4ANd-zcjY-A3zH3J
                            size: 743GiB
                            capabilities: multi lvm2
              *-pci:4
...
...

Comment 14 errata-xmlrpc 2020-11-04 01:57:49 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (lshw bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:4533


Note You need to log in before you can comment on or make changes to this bug.