sg3-utils and NVMe disks

sg3-utils, version 1.44, was recently uploaded to Debian. This new upstream release has happened almost 2.5 years after the last release. One important feature to emphasize about is some support for NVMe disks, which are now getting more common on latest range of laptops.

rrs@priyasi:~$ sudo sg_inq /dev/nvme0
[sudo] password for rrs: 
Identify controller for /dev/nvme0:
  Model number: PC401 NVMe SK hynix 512GB               
  Serial number: ES82N092210402J4U   
  Firmware revision: 80003E00
  Version: 1.2
  Optional admin command support:
    Device self-test
    Firmware download and commit
    Format NVM
    Security send and receive
  Optional NVM command support:
    Save and Select fields non-zero
    Dataset management
    Write uncorrectable
    Compare
  PCI vendor ID VID/SSVID: 0x1c5c/0x1c5c
  IEEE OUI Identifier: 0xace42e
  Controller ID: 0x1
  Number of namespaces: 1
  Maximum data transfer size: 32 pages
  Namespace 1 (of 1):
    Namespace size/capacity: 1000215216/1000215216 blocks
    Namespace utilization: 765481168 blocks
    EUI-64: 0xace42e8170034999
    Number of LBA formats: 2
    Index LBA size: 0
    LBA format 0 support: <-- active
      Logical block size: 512 bytes
      Approximate namespace size: 512 GB
      Metadata size: 0 bytes
      Relative performance: Best [0x0]
    LBA format 1 support:
      Logical block size: 4096 bytes
      Approximate namespace size: 0 GB
      Metadata size: 0 bytes
      Relative performance: Best [0x0]

More details are available on the upstream page. Here’s the snippet for NVMe disks support.

[Read More]
Categories: Debian-Blog  Tags: sg3-utils NVMe SSD scsi