Bug 1699104

Summary: lshw does not list MMC storage devices as "disk" nodes
Product: Red Hat Enterprise Linux 8 Reporter: Jeff Bastian <jbastian>
Component: lshwAssignee: lijiang
Status: CLOSED ERRATA QA Contact: Jeff Bastian <jbastian>
Severity: low Docs Contact:
Priority: medium    
Version: 8.0CC: pbunyan, ruyang
Target Milestone: rc   
Target Release: 8.1   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: lshw-B.02.19.2-2.el8 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 01:57:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1674330    

Description Jeff Bastian 2019-04-11 19:30:35 UTC
Description of problem:
Some of the latest ARM servers (SmartNICs in particular like the Mellanox Bluefield) use MMC storage, but lshw does not report this as a disk.  As a result, tools like Beaker think the servers have no storage available.  Please report MMC storage as disks, too.

Version-Release number of selected component (if applicable):
lshw-B.02.18-16.el8

How reproducible:
always

Steps to Reproduce:
1. run lshw on a system with MMC for primary storage

Actual results:
no disks reported

Expected results:
/dev/mmcblk0 is reported as a disk

Additional info:
See also bug 1695343 for a similar problem with NVMe storage.

Comment 7 Jeff Bastian 2020-08-05 22:29:33 UTC
Verified with lshw-B.02.19.2-2.el8.

:::::::::::::::::::::::
:: Block device info ::
:::::::::::::::::::::::

[root@mellanox-bluefield-01 ~]# lsblk
NAME                                  MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
mmcblk0                               179:0    0 13.8G  0 disk 
├─mmcblk0p1                           179:1    0  600M  0 part /boot/efi
├─mmcblk0p2                           179:2    0    1G  0 part /boot
└─mmcblk0p3                           179:3    0 12.2G  0 part 
  ├─rhel_mellanox--bluefield--01-root 253:0    0 10.8G  0 lvm  /
  └─rhel_mellanox--bluefield--01-swap 253:1    0  1.4G  0 lvm  [SWAP]
mmcblk0boot0                          179:8    0   16M  1 disk 
mmcblk0boot1                          179:16   0   16M  1 disk 


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

[root@mellanox-bluefield-01 ~]# rpm -q lshw
lshw-B.02.18-16.el8.aarch64

[root@mellanox-bluefield-01 ~]# lshw -class generic -class volume
  *-generic UNCLAIMED       
       description: DMA controller
       product: MT416842 BlueField SoC management interfac
       vendor: Mellanox Technologies
       physical id: 0.2
       bus info: pci@0000:03:00.2
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress vpd msix pm 8237 cap_list
       configuration: latency=0


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

[root@mellanox-bluefield-01 ~]# rpm -q lshw
lshw-B.02.19.2-2.el8.aarch64

[root@mellanox-bluefield-01 ~]# lshw -class generic -class volume
  *-generic UNCLAIMED       
       description: DMA controller
       product: MT416842 BlueField SoC management interfac
       vendor: Mellanox Technologies
       physical id: 0.2
       bus info: pci@0000:03:00.2
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress vpd msix pm 8237 cap_list
       configuration: latency=0
  *-device
       description: SD/MMC Device
       product: R1J56L
       vendor: Unknown (19)
       physical id: 1
       logical name: /dev/mmcblk0
       date: 05/2018
       serial: 2353507851
       size: 14763950080
       capabilities: mmc gpt-1.00 partitioned partitioned:gpt
       configuration: guid=81bca71c-289e-4350-b70c-3b065c088c45 logicalsectorsize=512 sectorsize=512
     *-volume:0 UNCLAIMED
          description: Windows FAT volume
          vendor: mkfs.fat
          physical id: 1
          version: FAT32
          serial: 3a9c-8c6c
          size: 598MiB
          capacity: 599MiB
          capabilities: boot fat initialized
          configuration: FATs=2 filesystem=fat name=EFI System Partition
     *-volume:1
          description: EFI partition
          physical id: 2
          logical name: /dev/mmcblk0p2
          logical name: /boot
          serial: 48869e2c-7527-4b09-9cd8-e1e921ff17a8
          capacity: 1023MiB
          configuration: mount.fstype=xfs mount.options=rw,seclabel,relatime,attr2,inode64,noquota state=mounted
     *-volume:2
          description: LVM Physical Volume
          vendor: Linux
          physical id: 3
          logical name: /dev/mmcblk0p3
          serial: 27hJ9P-hlOv-B1DB-J5I4-HVlQ-tZFB-dzp7xs
          size: 12GiB
          capabilities: multi lvm2

Comment 10 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