Page MenuHomeFreeBSD

print ZBC device type in "camcontrol identify" output
ClosedPublic

Authored by asomers on Nov 20 2017, 6:49 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 2, 10:44 AM
Unknown Object (File)
Thu, May 2, 3:54 AM
Unknown Object (File)
Mar 30 2024, 6:26 AM
Unknown Object (File)
Jan 11 2024, 9:48 PM
Unknown Object (File)
Dec 20 2023, 2:41 AM
Unknown Object (File)
Oct 28 2023, 5:22 PM
Unknown Object (File)
Sep 3 2023, 4:34 PM
Unknown Object (File)
Aug 30 2023, 11:07 AM
Subscribers

Details

Summary

print ZBC device type in "camcontrol identify" output

Example output:
pass17: <ST8000AS0002-1NA17Z AR17> ACS-2 ATA SATA 3.x device
pass17: 600.000MB/s transfers, Command Queueing Enabled

protocol ATA/ATAPI-9 SATA 3.x
device model ST8000AS0002-1NA17Z
firmware revision AR17
serial number Z8409AKB
WWN 5000c50086f77367
cylinders 16383
heads 16
sectors/track 63
sector size logical 512, physical 4096, offset 0
LBA supported 268435455 sectors
LBA48 supported 15628053168 sectors
PIO supported PIO4
DMA supported WDMA2 UDMA6
media RPM 5980
Zoned Block Device no

Feature Support Enabled Value Vendor
read ahead yes yes
write cache yes yes
flush cache yes yes
overlap no
Tagged Command Queuing (TCQ) no no
Native Command Queuing (NCQ) yes 32 tags
NCQ Queue Management no
NCQ Streaming no
Receive & Send FPDMA Queued no
SMART yes yes
microcode download yes yes
security yes no
power management yes yes
advanced power management no no
automatic acoustic management no no
media status notification no no
power-up in Standby yes no
write-read-verify no no
unload yes yes
general purpose logging yes yes
free-fall no no
Data Set Management (DSM/TRIM) no
Host Protected Area (HPA) yes no 15628053168/15628053168
HPA - Security no

Test Plan

run "camcontrol identify" on non-ZBC drives. I don't have any ZBC drives that
actually set these bits :( .

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Nov 20 2017, 7:32 PM

Looks good. At some point we should put Host Managed detection in. It doesn't work the same way as Device Managed and Host Aware. In SCSI it's a different device type (i.e. not Direct Access). There is an equivalent in ATA.

FYI, ken found a host aware drive for me. Its output looks like this:

pass18: <ST8000AS0022-1WL17Z ZN03> ACS-3 ATA SATA 3.x device
pass18: 600.000MB/s transfers, Command Queueing Enabled

protocol              ATA/ATAPI-10 SATA 3.x
device model          ST8000AS0022-1WL17Z
firmware revision     ZN03
serial number         Z84003SK
WWN                   5000c5000293e726
cylinders             16383
heads                 16
sectors/track         63
sector size           logical 512, physical 4096, offset 0
LBA supported         268435455 sectors
LBA48 supported       15628053168 sectors
PIO supported         PIO4
DMA supported         WDMA2 UDMA6 
media RPM             5980
Zoned Block Device    host aware

Feature                      Support  Enabled   Value           Vendor
read ahead                     yes      yes
write cache                    yes      yes
flush cache                    yes      yes
overlap                        no
Tagged Command Queuing (TCQ)   no       no
Native Command Queuing (NCQ)   yes              32 tags
NCQ Queue Management           no
NCQ Streaming                  no
Receive & Send FPDMA Queued    no
SMART                          yes      yes
microcode download             yes      yes
security                       yes      no
power management               yes      yes
advanced power management      no       no
automatic acoustic management  no       no
media status notification      no       no
power-up in Standby            yes      no
write-read-verify              yes      no      0/0x0
unload                         yes      yes
general purpose logging        yes      yes
free-fall                      no       no
Data Set Management (DSM/TRIM) no
Host Protected Area (HPA)      no
This revision was automatically updated to reflect the committed changes.