[Bug 199155] /sys/block/dev/device/model truncates to 16 characters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.kernel.org/show_bug.cgi?id=199155

--- Comment #3 from d gilbert (dgilbert@xxxxxxxxxxxx) ---
On 2018-03-22 05:08 AM, bugzilla-daemon@xxxxxxxxxxxxxxxxxxx wrote:
> https://bugzilla.kernel.org/show_bug.cgi?id=199155
> 
> --- Comment #2 from Bryan Seitz (seitzbg@xxxxxxxxx) ---
> Is there some other place this is stored under /sys ?
> 

There shouldn't be any need. If that SATA SSD is behind a compliant
SATL (SCSI to ATA Translation Layer) then it should supply the ATA
Information VPD page plus a SCSI ATA PASS-THROUGH command so that
an ATA Identify command can be tunnelled through to the SSD (and
the response will have the untruncated device details). Tools like
smartmontools use that ATA PASS-THROUGH.

This is a SATA SSD connected via a USB Type C to SATA dongle that
uses UASP.

# lsscsi -gs
[0:0:0:0]  disk INTEL SS DSA2M080G2GC 2CV1 /dev/sda  /dev/sg0  80.0GB


# hdparm -I /dev/sg0

/dev/sg0:

ATA device, with non-removable media
        Model Number:       INTEL SSDSA2M080G2GC
        Serial Number:      CVPO017405HT080JGN
        Firmware Revision:  2CV102M3
        Transport:          Serial, ATA8-AST, SATA 1.0a, SATA II Extensions,
SATA Rev 
2.5, SATA Rev 2.6
....


Note that is not the transport connected to my laptop (USB is).

# sg_vpd -p ai /dev/sda
fetching VPD page failed: Illegal request
sg_vpd failed: Illegal request

That is not good, the SATL should implement the AI VPD page.


# smartctl -a /dev/sg0
smartctl 6.7 2018-03-07 r4718 [x86_64-linux-4.16.0-rc1+] (local build)
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:               INTEL SS
Product:              DSA2M080G2GC
Revision:             2CV1
Compliance:           SPC-4
....

So smartctl thinks its a SCSI device, but if told there is a SATL:

# smartctl -a -d sat /dev/sg0
smartctl 6.7 2018-03-07 r4718 [x86_64-linux-4.16.0-rc1+] (local build)
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Intel X18-M/X25-M/X25-V G2 SSDs
Device Model:     INTEL SSDSA2M080G2GC
Serial Number:    CVPO017405HT080JGN
....


So now smartctl sees that it is a SATA SSD. BTW there is some discussion
on the smartmontool dev list about changing that default. That means
that all SCSI storage devices would be checked for the presence of a SATL
and if it was present automatically switch to "ATA" mode.

Doug Gilbert

-- 
You are receiving this mail because:
You are the assignee for the bug.



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux