Ultrastar Hs14 SATA OEM Specification
Hard disk drive specifications
HGST Ultrastar Hs14
3.5 inch Serial ATA hard disk drive
Model:
HSH721414ALE6M0/4
HSH721414ALN6M0/4
Revision 1.0
02 October 2017
1
HGST Hard Disk Drive Specification
Revision 0.1 Preliminary (31 August 2016)
Revision 0.2 Preliminary (16 February 2017)
Revision 1.0 (02 October 2017)
One MB is equal to one million bytes, one GB is equal to one billion bytes and one TB equals 1,000GB (one trillion
bytes) when referring to storage capacity. Accessible capacity will vary from the stated capacity due to formatting and
partitioning of the drive, the computer’s operating system, and other factors.
The following paragraph does not apply to any jurisdiction where such provisions are inconsistent with local law: THIS
PUBLICATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A
PARTICULAR PURPOSE.
This publication could include technical inaccuracies or typographical errors. Changes are periodically made to the
information herein; these changes will be incorporated in new editions of the publication. There may be improvements
or changes in any products or programs described in this publication at any time. It is possible that this publication may
contain reference to, or information about, HGST products (machines and programs), programming, or services that are
not announced in your country. Such references or information must not be construed to mean that Western Digital
Corporation intends to announce such HGST products, programming, or services in your country. Technical information
about this product is available by contacting your local HGST product representative or on the Internet
at: support.hgst.com.
Western Digital Corporation may have patents or pending patent applications covering subject matter in this document.
The furnishing of this document does not give you any license to these patents.
© 2017 Western Digital Corporation or its affiliates.
Ultrastar and the HGST logo are registered trademarks or trademarks of Western Digital Corporation or its affiliates in
the U.S. and/or other countries. Other trademarks are the property of their respective owners.
References in this publication to HGST-branded products, programs, or services do not imply that they will be made
available in all countries. Product specifications provided are sample specifications and do not constitute a warranty.
Actual specifications for unique part numbers may vary. Please visit the Support section of our website, support.hgst.com,
for additional information on product specifications. Pictures shown may vary from actual products.
2
HGST Hard Disk Drive Specification
Table of contents
1
General ............................................................................................................................................................. 16
Introduction ..................................................................................................................................... 16
Glossary ........................................................................................................................................... 16
General caution ............................................................................................................................... 16
References........................................................................................................................................ 16
2
General features ............................................................................................................................................... 17
Part 1. Functional specification ....................................................................................................................... 18
3
Fixed disk subsystem description ..................................................................................................................... 19
Control Electronics ......................................................................................................................... 19
Head disk assembly ........................................................................................................................ 19
Actuator ........................................................................................................................................... 19
4
Drive characteristics.......................................................................................................................................... 20
Default logical drive parameters ................................................................................................... 20
Data sheet........................................................................................................................................ 21
World Wide Name Assignment ...................................................................................................... 21
Drive organization .......................................................................................................................... 22
Drive Format............................................................................................................................ 22
Cylinder allocation................................................................................................................... 22
Zone Layout.............................................................................................................................. 22
Performance characteristics ........................................................................................................... 23
Command overhead ................................................................................................................. 23
Mechanical positioning............................................................................................................ 24
Drive ready time ...................................................................................................................... 24
Operating modes ...................................................................................................................... 25
5
Defect flagging strategy .................................................................................................................................... 26
6
Specification...................................................................................................................................................... 27
Shipped format ................................................................................................................................ 26
Electrical interface .......................................................................................................................... 27
Connector location ................................................................................................................... 27
Signal definition....................................................................................................................... 28
Out of band signaling .............................................................................................................. 29
Environment.................................................................................................................................... 30
Temperature and humidity..................................................................................................... 30
Storage Requirements ............................................................................................................. 31
Corrosion test ........................................................................................................................... 31
Atmospheric condition ............................................................................................................. 31
DC power requirements.................................................................................................................. 32
Input voltage ............................................................................................................................ 32
Power supply current (typical1) .............................................................................................. 33
Power line noise limits ............................................................................................................ 34
Power Consumption Efficiency ............................................................................................... 34
Reliability ........................................................................................................................................ 35
Data integrity........................................................................................................................... 35
Cable noise interference .......................................................................................................... 35
Load/Unload ............................................................................................................................. 35
Start/stop cycles ....................................................................................................................... 35
Preventive maintenance.......................................................................................................... 35
Data reliability ......................................................................................................................... 35
Required Power-Off Sequence ................................................................................................ 35
Mechanical specifications ............................................................................................................... 36
Physical dimensions ................................................................................................................ 36
Connector locations ................................................................................................................. 38
3
HGST Hard Disk Drive Specification
Drive mounting ........................................................................................................................ 38
Heads unload and actuator lock ............................................................................................. 38
Vibration and shock ........................................................................................................................ 39
Operating vibration ................................................................................................................. 39
Nonoperating vibration ........................................................................................................... 40
Operating shock ....................................................................................................................... 40
Nonoperating shock ................................................................................................................. 40
Nonoperating Rotational shock .............................................................................................. 41
Acoustics .......................................................................................................................................... 42
Identification labels ........................................................................................................................ 42
Safety ............................................................................................................................................... 43
UL and CSA standard conformity .......................................................................................... 43
German Safety Mark ............................................................................................................... 43
Flammability............................................................................................................................ 43
Safe handling ........................................................................................................................... 43
Substance restriction requirements ....................................................................................... 43
Secondary circuit protection ................................................................................................... 43
Electromagnetic compatibility ....................................................................................................... 44
CE Mark ................................................................................................................................... 44
RCM Mark................................................................................................................................ 44
BSMI Mark .............................................................................................................................. 44
KC Mark ................................................................................................................................... 44
Part 2. Interface specification .......................................................................................................................... 45
7
General ............................................................................................................................................................. 46
Introduction ..................................................................................................................................... 46
Terminology ..................................................................................................................................... 46
Deviations From Standard ............................................................................................................. 46
8
Registers ........................................................................................................................................................... 47
Alternate Status Register............................................................................................................... 47
Command register .......................................................................................................................... 47
Cylinder High Register ................................................................................................................... 47
Cylinder Low Register .................................................................................................................... 48
Device Control Register .................................................................................................................. 48
Device/Head Register...................................................................................................................... 49
Error Register ................................................................................................................................. 49
Features Register ............................................................................................................................ 50
Sector Count Register ..................................................................................................................... 50
Sector Number Register ................................................................................................................. 50
Status Register ................................................................................................................................ 51
9
Normal and Error Output field descriptions ...................................................................................................... 52
Overview .......................................................................................................................................... 52
Status field ...................................................................................................................................... 52
Overview................................................................................................................................... 52
ALIGNMENT ERROR bit ....................................................................................................... 53
BUSY bit................................................................................................................................... 53
CHECK CONDITION bit ........................................................................................................ 53
DATA REQUEST bit ............................................................................................................... 53
DEVICE FAULT bit ................................................................................................................ 53
DEVICE READY bit ................................................................................................................ 53
ERROR bit................................................................................................................................ 54
SENSE DATA AVAILABLE bit ............................................................................................. 54
Transport Dependent bits and fields...................................................................................... 54
ERROR field .................................................................................................................................... 55
Overview................................................................................................................................... 55
ABORT bit ................................................................................................................................ 55
4
HGST Hard Disk Drive Specification
END OF MEDIA bit ................................................................................................................ 55
ID NOT FOUND bit ................................................................................................................ 55
ILLEGAL LENGTH INDICATOR bit .................................................................................... 55
INTERFACE CRC bit.............................................................................................................. 55
SENSE KEY field .................................................................................................................... 56
UNCORRECTABLE ERROR bit ............................................................................................ 56
INTERRUPT REASON field .......................................................................................................... 57
Overview................................................................................................................................... 57
COMMAND/DATA bit............................................................................................................. 57
INPUT/OUTPUT bit................................................................................................................ 57
COUNT field.................................................................................................................................... 58
Overview................................................................................................................................... 58
NCQ Tag ................................................................................................................................... 58
SACTIVE field ................................................................................................................................. 58
SATA STATUS field ....................................................................................................................... 58
LBA field .......................................................................................................................................... 58
Overview................................................................................................................................... 58
LBA of First Unrecoverable Error .......................................................................................... 58
Device Signatures for Normal Output .......................................................................................... 59
Overview................................................................................................................................... 59
10
General Operation Descriptions ....................................................................................................................... 60
Reset Response ................................................................................................................................ 60
Register Initialization ............................................................................................................. 61
Diagnostic and Reset considerations ............................................................................................. 61
Sector Addressing Mode ................................................................................................................. 62
Logical CHS Addressing Mode ............................................................................................... 62
LBA Addressing Mode ............................................................................................................. 62
Power Management Feature .......................................................................................................... 63
Power Mode .............................................................................................................................. 63
Power Management Commands ............................................................................................. 64
Standby timer .......................................................................................................................... 64
Interface Capability for Power Modes.................................................................................... 64
SMART Function ............................................................................................................................ 65
Attributes ................................................................................................................................. 65
Attribute values ....................................................................................................................... 65
Attribute thresholds ................................................................................................................ 65
Threshold exceeded condition ................................................................................................. 65
SMART commands .................................................................................................................. 65
Off-line Read Scanning ........................................................................................................... 65
Error Log .................................................................................................................................. 65
Self-test..................................................................................................................................... 66
Security Mode Feature Set ............................................................................................................. 67
Security mode........................................................................................................................... 67
Security Level .......................................................................................................................... 67
Password .................................................................................................................................. 67
Operation example .................................................................................................................. 68
Command Table ....................................................................................................................... 71
Host Protected Area Feature ......................................................................................................... 74
Example for operation (In LBA mode) ................................................................................... 74
Security extensions .................................................................................................................. 75
Write Cache Function ..................................................................................................................... 76
Reassign Function........................................................................................................................... 76
Auto Reassign Function .......................................................................................................... 76
Power-up in Standby feature set ................................................................................................... 77
5
HGST Hard Disk Drive Specification
Advanced Power Management feature set (APM)........................................................................ 77
48-bit Address Feature Set ............................................................................................................ 77
SATA BIST (Built-in Self Test)...................................................................................................... 78
SATA Interface Power Management ............................................................................................. 78
Software Setting Preservation ....................................................................................................... 79
COMRESET Preservation Requirements .............................................................................. 79
Serial ATA Revision 3.0 Optional Features .................................................................................. 80
Asynchronous Signal Recovery ............................................................................................... 80
Device Power Connector Pin 11 Definition ............................................................................ 80
Phy Event Counters ................................................................................................................ 80
NCQ NON-DATA (63h) ........................................................................................................... 84
Rebuild Assist log (15h)........................................................................................................... 87
SCT Command Transport feature Set........................................................................................... 88
Overview................................................................................................................................... 88
SCT Command Protocol .......................................................................................................... 89
SCT Command Set .................................................................................................................. 97
Extended Power Conditions (EPC) feature ................................................................................. 104
Power conditions .................................................................................................................... 104
Power condition timers.......................................................................................................... 105
Interaction with resets, commands and other features ...................................................... 105
Sanitize Device feature set ........................................................................................................... 106
Overview................................................................................................................................. 106
Sanitize Device Feature ........................................................................................................ 108
Sanitize Device state machine .............................................................................................. 108
Zone Device Feature set definitions ............................................................................................ 111
Introduction ........................................................................................................................... 111
Basic zoned device model ...................................................................................................... 111
Host Managed Zones feature set .......................................................................................... 111
Zone attributes ....................................................................................................................... 112
Zone types............................................................................................................................... 114
Additional features for the Host Managed Zones feature set ............................................ 125
11
Command Protocol ......................................................................................................................................... 129
PIO Data In commands ................................................................................................................ 129
PIO Data Out commands ............................................................................................................. 129
Non-Data commands .................................................................................................................... 130
DMA Data In commands and DMA Data Out commands ......................................................... 131
First-party DMA commands ........................................................................................................ 131
12
Command Descriptions .................................................................................................................................. 132
Check Power Mode (E5h/98h) ...................................................................................................... 137
Device Configuration Overlay (B1h) ........................................................................................... 139
Device Configuration Restore (Subcommand C0h) ............................................................. 140
Device Configuration Freeze Lock (Subcommand C1h) ..................................................... 140
Device Configuration Identify (Subcommand C2h) ............................................................ 140
Device Configuration Set (Subcommand C3h) .................................................................... 140
Download Microcode (92h) ........................................................................................................... 143
Overview................................................................................................................................. 144
Sector Number / Sector Count .............................................................................................. 144
Download and save microcode with offsets.......................................................................... 144
Download and save microcode with offsets for future use.................................................. 144
Activate downloaded microcode ............................................................................................ 144
Error Outputs ........................................................................................................................ 144
Download Microcode DMA (93h) ................................................................................................. 145
Overview................................................................................................................................. 146
Sector Count / Sector Number .............................................................................................. 146
Download and save microcode with offsets.......................................................................... 146
6
HGST Hard Disk Drive Specification
Download and save microcode with offsets for future use.................................................. 146
Activate downloaded microcode ............................................................................................ 146
Error Outputs ........................................................................................................................ 146
Execute Device Diagnostic (90h).................................................................................................. 147
Flush Cache (E7h)......................................................................................................................... 148
Flush Cache Ext (EAh) ................................................................................................................. 150
Format Track (50h) ....................................................................................................................... 152
Format Unit (F7h) ........................................................................................................................ 153
Identify Device (ECh) ................................................................................................................... 155
Idle (E3h/97h) ................................................................................................................................ 166
Idle Immediate (E1h/95h) ............................................................................................................ 168
Initialize Device Parameters (91h) .............................................................................................. 169
NCQ NON-DATA (63h) ................................................................................................................ 170
Abort NCQ Queue Subcommand (0h) .................................................................................. 171
Deadline handling Subcommand (1h) .................................................................................. 173
Read Buffer (E4h) ......................................................................................................................... 175
Read Buffer DMA (E9h) ............................................................................................................... 176
Read DMA(C8h/C9h) .................................................................................................................... 177
Read DMA Ext (25h)..................................................................................................................... 179
Read FPDMA Queued (60h) ......................................................................................................... 181
Read Log Ext (2Fh) ....................................................................................................................... 183
General Purpose Log Directory ............................................................................................ 185
Extended Comprehensive SMART Error log ....................................................................... 186
Device Statistics log............................................................................................................... 189
Extended Self-test log sector................................................................................................. 195
Power Conditions log ............................................................................................................. 196
NCQ Command Error(log page 10h) .................................................................................... 199
Identify Device Data log ........................................................................................................ 201
Read Log DMA Ext(47h) .............................................................................................................. 211
Read Multiple (C4h)...................................................................................................................... 212
Read Multiple Ext (29h) ............................................................................................................... 213
Read Native Max Address (F8h) .................................................................................................. 214
Read Native Max Address Ext (27h) ........................................................................................... 215
Read Sector(s) (20h/21h)............................................................................................................... 216
Read Sector(s) Ext (24h) ............................................................................................................... 217
Read Verify Sector(s) (40h/41h) ................................................................................................... 218
Read Verify Sector(s) Ext (42h) ................................................................................................... 219
Recalibrate (1xh) ........................................................................................................................... 220
RECEIVE FPDMA QUEUED (65h) ............................................................................................ 221
Request Sense Data Ext (0Bh) ..................................................................................................... 224
Sanitize Device Feature Set (B4h)............................................................................................... 226
Crypto Scramble Ext Command (feature: 0011h) (data encryption model only) .............. 226
Overwrite Ext Command (feature: 0014h) .......................................................................... 229
Sanitize Freeze Lock Ext Command (feature: 0020h) ........................................................ 230
Sanitize Status Ext Command (feature: 0000h) ................................................................. 231
Security Disable Password (F6h) ................................................................................................. 232
Security Erase Prepare (F3h) ...................................................................................................... 233
Security Erase Unit (F4h) ............................................................................................................ 234
Security Freeze Lock (F5h) .......................................................................................................... 236
Security Set Password (F1h) ........................................................................................................ 237
Security Unlock (F2h) ................................................................................................................... 239
Seek (7xh) ...................................................................................................................................... 240
SEND FPDMA QUEUED (64h) ................................................................................................... 241
Sense Condition (F0h : Vendor specific) ...................................................................................... 242
7
HGST Hard Disk Drive Specification
Set Features (EFh)........................................................................................................................ 243
Set Transfer Mode ................................................................................................................. 244
Write Cache ............................................................................................................................ 244
Serial ATA Feature ............................................................................................................... 244
Advanced Power Management ............................................................................................. 245
Set Maximum Host Interface Sector Time .......................................................................... 245
Enable/Disable the Sense Data Reporting feature set ....................................................... 245
Extended Power Conditions (EPC) feature ......................................................................... 246
Set Max Address (F9h) ................................................................................................................. 254
Set Max Set Password (Feature = 01h)................................................................................ 256
Set Max Lock (Feature = 02h) .............................................................................................. 257
Set Max Unlock (Feature = 03h) .......................................................................................... 258
Set Max Freeze Lock (Feature = 04h) .................................................................................. 259
Set Max Address Ext (37h)........................................................................................................... 260
Set Multiple Mode (C6h) .............................................................................................................. 262
Sleep (E6h/99h) ............................................................................................................................. 263
SMART Function Set (B0h) ......................................................................................................... 264
SMART Subcommand ........................................................................................................... 264
Device Attributes Data Structure ........................................................................................ 274
Device Attribute Thresholds Data Structure ...................................................................... 279
Standby (E2h/96h) ........................................................................................................................ 285
Standby Immediate (E0h/94h) ..................................................................................................... 286
Write Buffer (E8h) ........................................................................................................................ 287
Write Buffer DMA (EBh) .............................................................................................................. 288
Write DMA (CAh/CBh) ................................................................................................................. 289
Write DMA FUA Ext (3Dh) .......................................................................................................... 290
Write DMA Ext (35h).................................................................................................................... 292
Write FPDMA Queued (61h) ........................................................................................................ 293
Write Log Ext (3Fh) ...................................................................................................................... 295
Write Log DMA Ext (57h) ............................................................................................................ 297
Write Multiple (C5h)..................................................................................................................... 298
Write Multiple Ext (39h) .............................................................................................................. 299
Write Multiple FUA Ext (CEh) .................................................................................................... 300
Write Sector(s) (30h/31h).............................................................................................................. 301
Write Sector(s) Ext (34h) .............................................................................................................. 302
Write Uncorrectable Ext (45h) ..................................................................................................... 303
Zone management commands ...................................................................................................... 304
Overview................................................................................................................................. 304
ZAC Management In command template, 4Ah, DMA ........................................................ 304
ZAC MANAGEMENT OUT command template, 9Fh, Non-Data or DMA Out ................ 306
CLOSE ZONE EXT command – 9Fh/01h, Non-Data .......................................................... 307
FINISH ZONE EXT command – 9Fh/02h, Non-Data ......................................................... 308
OPEN ZONE EXT command – 9Fh/03h, Non-Data ............................................................ 310
REPORT ZONES EXT command – 4Ah/00h, DMA In ....................................................... 311
RESET WRITE POINTERS EXT command – 9Fh/04h, Non-Data ................................... 316
Normal and Error Outputs ................................................................................................... 317
8
HGST Hard Disk Drive Specification
List of tables
Table 1
Table 2
Table 3
Table 4
Table 5
Table 6
Table 7
Table 8
Table 9
Table 10
Table 11
Table 12
Table 13
Table 14
Table 15
Table 16
Table 17
Table 18
Table 19
Table 20
Table 21
Table 22
Table 23
Table 24
Table 25
Table 26
Table 27
Table 28
Table 29
Table 30
Table 31
Table 32
Table 33
Table 34
Table 35
Table 36
Table 37
Table 38
Table 39
Table 40
Table 41
Table 42
Table 43
Table 44
Table 45
Table 46
Table 47
Table 48
Table 49
Table 50
Table 51
Type and Model# ........................................................................................................................ 16
Formatted capacity .................................................................................................................... 20
Data Sheet .................................................................................................................................. 21
World Wide Name Assignment ................................................................................................. 21
Zone Layout ................................................................................................................................ 22
Command overhead ................................................................................................................... 23
Average seek time ...................................................................................................................... 24
Single Track Seek Time ............................................................................................................. 24
Latency Time .............................................................................................................................. 24
Drive ready time ...................................................................................................................... 24
Mode transition times .............................................................................................................. 25
Interface connector pins and I/O signals ................................................................................ 28
Parameter descriptions ........................................................................................................... 29
Temperature and humidity ..................................................................................................... 30
Input voltage ............................................................................................................................ 32
Power supply current............................................................................................................... 33
Allowable power supply noise limits at drive power connector ............................................ 34
Power consumption efficiency (14TB) .................................................................................... 34
Physical Dimensions ................................................................................................................ 37
Random vibration PSD profile break points (operating) ...................................................... 39
Random vibration (Rotational) PSD profile break points ..................................................... 39
Random vibration PSD profile break points (nonoperating) ................................................ 40
Sinusoidal shock wave ............................................................................................................. 41
Rotational Shock ...................................................................................................................... 41
Sound power levels .................................................................................................................. 42
Alternate Status Register........................................................................................................ 47
Device Control Register ........................................................................................................... 48
Device/Head Register............................................................................................................... 49
Error Register .......................................................................................................................... 49
Status Register ......................................................................................................................... 51
STATUS field ............................................................................................................................ 52
ERROR field ............................................................................................................................. 55
INTERRUPT REASON field ................................................................................................... 57
Device Signatures for Normal Output.................................................................................... 59
Device signatures for COUNT and LBA field ........................................................................ 59
Reset Response ......................................................................................................................... 60
Default Register Values ........................................................................................................... 61
Diagnostic Codes ...................................................................................................................... 61
Power conditions ...................................................................................................................... 64
Command table for device lock operation -1 .......................................................................... 71
Command table for device lock operation -2 .......................................................................... 72
Command table for device lock operation -3 .......................................................................... 73
Phy Event Counter Identifiers ................................................................................................ 81
READ LOG EXT Log Page 11h data structure definition .................................................... 83
NCQ NON-DATA – Command definition ............................................................................... 84
Subcommand Field .................................................................................................................. 84
NCQ NON-DATA Log (12h) data structure definition .......................................................... 86
Rebuild Assist log (15h) data structure definition................................................................. 87
SCT Log Page and direction .................................................................................................... 88
Identify Device Information Word 206 ................................................................................... 88
Output Registers of SCT Command Using SMART .............................................................. 89
9
HGST Hard Disk Drive Specification
Table 52
Table 53
Table 54
Table 55
Table 56
Table 57
Table 58
Table 59
Table 60
Table 61
Table 62
Table 63
Table 64
Table 65
Table 66
Table 67
Table 68
Table 69
Table 70
Table 71
Table 72
Table 73
Table 74
Table 75
Table 76
Table 77
Table 78
Table 79
Table 80
Table 81
Table 82
Table 83
Table 84
Table 85
Table 86
Table 87
Table 88
Table 89
Table 90
Table 91
Table 92
Table 93
Table 94
Table 95
Table 96
Table 97
Table 98
Table 99
Table 100
Table 101
Table 102
Table 103
Table 104
Table 105
Input Registers of SCT Command Using SMART ................................................................ 89
Input Registers of SCT Command Using Write Log Ext ...................................................... 90
Output Registers of SCT Command Using Write Log Ext ................................................... 90
Key Sector Format ................................................................................................................... 91
SCT Action Code List ............................................................................................................... 91
Extended Status Code ............................................................................................................. 92
Input Registers of SCT Data Transfer Using SMART .......................................................... 93
Input Registers of SCT Data Transfer Using Read/Write Log Ext ...................................... 93
Input Registers of SCT Status Request Using SMART ........................................................ 94
Input Registers of SCT Status Request Using Read Log Ext ............................................... 94
Data Format of SCT Status Response -1 ............................................................................... 95
Data Format of SCT Status Response -2 ............................................................................... 96
SCT Write Same (Inputs) ........................................................................................................ 97
SCT Write Same (Outputs) ..................................................................................................... 97
Error Recovery Control command (Inputs) ............................................................................ 99
Error Recovery Control command (Outputs) ......................................................................... 99
Feature Control command (Inputs) ...................................................................................... 100
Feature Control command (Outputs) ................................................................................... 100
Feature Code List .................................................................................................................. 101
SCT Data Table command (Inputs) ...................................................................................... 102
SCT Data Table command (Outputs) ................................................................................... 102
Table ID .................................................................................................................................. 102
Data Format of HDA Absolute Temperature History Table -1 ........................................... 103
Data Format of HDA Absolute Temperature History Table -2 ........................................... 103
Extended Power Conditions Subcommands......................................................................... 104
Power Condition IDs .............................................................................................................. 104
Summary of zone attributes ...................................................................................................112
Zone Type zone attribute ........................................................................................................112
Relationships between zone attributes ................................................................................. 113
Zone Condition zone attribute ............................................................................................... 113
Zone Condition state machine functions ............................................................................... 119
Characteristics and attributes associated with zone state .................................................. 119
ZAC OPTIONS field ............................................................................................................... 128
ZONE POST PROCESSING field ......................................................................................... 128
Command Set ......................................................................................................................... 132
Command Set –Continued– .................................................................................................. 133
Command Set –Continued– .................................................................................................. 134
Command Set (Subcommand) ............................................................................................... 135
Check Power Mode Command (E5h/98h) ............................................................................. 137
Device Configuration Overlay Command (B1h) .................................................................. 139
Device Configuration Overlay Features register values ..................................................... 139
Device Configuration Overlay Data structure ..................................................................... 141
Device Configuration Overlay Data structure –Continued- ............................................... 142
DCO error information definition ......................................................................................... 142
Download Microcode Command (92h) .................................................................................. 143
Download Microcode DMA Command (93h) ........................................................................ 145
Execute Device Diagnostic Command (90h) ........................................................................ 147
Flush Cache Command (E7h) ............................................................................................... 148
Flush Cache Ext Command (EAh)...................................................................................... 150
Format Track Command (50h) ............................................................................................ 152
Format Unit Command (F7h) ............................................................................................. 153
Identify Device Command (ECh) ........................................................................................ 155
Identify device information ................................................................................................. 156
Identify device information –Continued- ........................................................................... 157
10
HGST Hard Disk Drive Specification
Table 106
Table 107
Table 108
Table 109
Table 110
Table 111
Table 112
Table 113
Table 114
Table 115
Table 116
Table 117
Table 118
Table 119
Table 120
Table 121
Table 122
Table 123
Table 124
Table 125
Table 126
Table 127
Table 128
Table 129
Table 130
Table 131
Table 132
Table 133
Table 134
Table 135
Table 136
Table 137
Table 138
Table 139
Table 140
Table 141
Table 142
Table 143
Table 144
Table 145
Table 146
Table 147
Table 148
Table 149
Table 150
Table 151
Table 152
Table 153
Table 154
Table 155
Table 156
Table 157
Table 158
Table 159
Identify device information –Continued- ........................................................................... 158
Identify device information –Continued- ........................................................................... 159
Identify device information –Continued- ........................................................................... 160
Identify device information –Continued- ........................................................................... 161
Identify device information –Continued- ........................................................................... 162
Identify device information –Continued-............................................................................ 163
Identify device information –Continued- ........................................................................... 164
Identify device information –Continued- ........................................................................... 165
Idle Command (E3h/97h)..................................................................................................... 166
Idle Immediate Command (E1h/95h) ................................................................................. 168
Initialize Device Parameters Command (91h) ................................................................... 169
NCQ Queue Management command (63h) ........................................................................ 170
Abort NCQ Queue Subcommand (0h) ................................................................................. 171
Abort Type Field................................................................................................................... 172
Deadline handling Subcommand (1h) ................................................................................ 173
Read Buffer Command (E4h) .............................................................................................. 175
Read Buffer DMA Command (E9h) .................................................................................... 176
Read DMA Command (C8h/C9h) ........................................................................................ 177
Read DMA Ext Command (25h) ......................................................................................... 179
Read FPDMA Queued Command (60h) ............................................................................. 181
Read Log Ext Command (2Fh) ............................................................................................ 183
Log Address Definition ........................................................................................................ 184
General Purpose Log Directory........................................................................................... 185
Extended Comprehensive SMART Error Log .................................................................... 186
Extended Error log data structure ..................................................................................... 187
Command data structure .................................................................................................... 187
Error data structure ............................................................................................................ 188
Defined Device Statistics log pages .................................................................................... 189
List of supported Device Statistics log pages..................................................................... 189
General Statistics ................................................................................................................ 190
Rotating Media Statistics .................................................................................................... 191
General Error Statistics ...................................................................................................... 192
Temperature Statistics (part 1 of 2) ................................................................................... 192
Temperature Statistics (part 2 of 2) ................................................................................... 193
Transport Statistics ............................................................................................................. 194
Extended Self-test log data structure................................................................................. 195
Extended Self-test log descriptor entry .............................................................................. 196
Idle power conditions ........................................................................................................... 196
Standby power conditions (log page 01h) ........................................................................... 196
Power Conditions log descriptor ......................................................................................... 197
Command Error log (part 1 of 2)......................................................................................... 199
NCQ Command Error log (part 2 of 2) ............................................................................... 200
Identify Device Data Log ..................................................................................................... 201
List of supported IDENTIFY DEVICE data pages ........................................................... 201
Capacity log page ................................................................................................................. 202
Supported Capabilities log page ......................................................................................... 203
Supported Capabilities log page –Continued- ................................................................... 204
Current Settings log page ................................................................................................... 205
Current Settings log page –Continued-.............................................................................. 206
Strings log page .................................................................................................................... 206
Security log page .................................................................................................................. 207
Serial ATA log page .............................................................................................................. 208
Zoned-device Information .................................................................................................... 209
ZAC MINOR Version field ................................................................................................... 210
11
HGST Hard Disk Drive Specification
Table 160
Table 161
Table 162
Table 163
Table 164
Table 165
Table 166
Table 167
Table 168
Table 169
Table 170
Table 171
Table 172
Table 173
Table 174
Table 175
Table 176
Table 177
Table 178
Table 179
Table 180
Table 181
Table 182
Table 183
Table 184
Table 185
Table 186
Table 187
Table 188
Table 189
Table 190
Table 191
Table 192
Table 193
Table 194
Table 195
Table 196
Table 197
Table 198
Table 199
Table 200
Table 201
Table 202
Table 203
Table 204
Table 205
Table 206
Table 207
Table 208
Table 209
Table 210
Table 211
Table 212
Table 213
Read Log DMA Ext Command (47h) ................................................................................... 211
Read Multiple Commands (C4h)......................................................................................... 212
Read Multiple Ext Command (29h) .................................................................................... 213
Read Native Max ADDRESS (F8h) .................................................................................... 214
Read Native Max Address Ext (27h) .................................................................................. 215
Read Sector(s) Command (20h/21h) ................................................................................... 216
Read Sector(s) Ext Command (24h).................................................................................... 217
Read Verify Sector(s) Command (40h/41h) ........................................................................ 218
Read Verify Sector(s) Ext Command (42h) ........................................................................ 219
Recalibrate Command (1xh)................................................................................................ 220
RECEIVE FPDMA QUEUED ............................................................................................. 221
RECEIVE FPDMA QUEUED subcommands .................................................................... 221
NCQ Command Acceptance Normal Output ..................................................................... 221
NCQ Normal Output ........................................................................................................... 222
NCQ Command Acceptance Error ...................................................................................... 222
NCQ Write Command Aborted Error ................................................................................. 223
Request Sense Data Ext command (0Bh) .......................................................................... 224
Crypto Scramble Ext Command (B4h/0011h) (data encryption model only) .................. 226
Overwrite Ext Command (B4h/0014h) ............................................................................... 229
Sanitize Freeze Lock Ext Command (B4h/0020h) ............................................................. 230
Sanitize Status Ext Command (B4h/0000h) ...................................................................... 231
Security Disable Password Command (F6h) ..................................................................... 232
Password Information for Security Disable Password command .................................... 232
Security Erase Prepare Command (F3h) ........................................................................... 233
Security Erase Unit Command (F4h) ................................................................................. 234
Erase Unit Information ....................................................................................................... 234
Security Freeze Lock Command (F5h) ............................................................................... 236
Security Set Password Command (F1h)............................................................................. 237
Security Set Password Information .................................................................................... 237
Security Unlock Command (F2h) ....................................................................................... 239
Security Unlock Information............................................................................................... 239
Seek Command (7xh) ........................................................................................................... 240
SEND FPDMA QUEUED .................................................................................................... 241
Sense Condition command (F0h) ........................................................................................ 242
Set Features Command (EFh) ............................................................................................ 243
Restore Power Condition Settings subcommand ............................................................... 246
Go To Power Condition subcommand ................................................................................. 248
Set Power Condition Timer subcommand .......................................................................... 249
Set Power Condition State subcommand ........................................................................... 251
Enable the EPC feature subcommand ............................................................................... 252
Disable the EPC feature subcommand ............................................................................... 253
Set Max ADDRESS (F9h).................................................................................................... 254
Set Max set Password .......................................................................................................... 256
Set Max Set Password data contents ................................................................................. 256
Set Max Lock ........................................................................................................................ 257
Set Max Unlock (F9h) .......................................................................................................... 258
Set Max Freeze Lock (F9h) ................................................................................................. 259
Set Max Address Ext Command (37h) ............................................................................... 260
Set Multiple Mode Commands (C6h) ................................................................................. 262
Sleep Command (E6h/99h) .................................................................................................. 263
SMART Enable/Disable Attribute Autosave (B0h-D2h) ................................................... 265
SMART Enable/Disable Attribute Autosave (B0h-D4h) ................................................... 266
SMART Read Log Sector (B0h-D5h) .................................................................................. 268
Log sector addresses ............................................................................................................ 269
12
HGST Hard Disk Drive Specification
Table 214
Table 215
Table 216
Table 217
Table 218
Table 219
Table 220
Table 221
Table 222
Table 223
Table 224
Table 225
Table 226
Table 227
Table 228
Table 229
Table 230
Table 231
Table 232
Table 233
Table 234
Table 235
Table 236
Table 237
Table 238
Table 239
Table 240
Table 241
Table 242
Table 243
Table 244
Table 245
Table 246
Table 247
Table 248
Table 249
Table 250
Table 251
Table 252
Table 253
Table 254
Table 255
Table 256
Table 257
Table 258
Table 259
Table 260
Table 261
Table 262
Table 263
Table 264
SMART Write Log (B0h-D6h) ............................................................................................. 270
SMART Enable Operations (B0h-D8h) .............................................................................. 271
SMART RETURN STATUS command (B0h-DAh)............................................................ 272
Device Attribute Data Structure ........................................................................................ 274
Individual Attribute Data Structure .................................................................................. 275
Device Attribute Thresholds Data Structure ..................................................................... 279
Individual Threshold Data Structure ................................................................................. 279
SMART Log Directory ......................................................................................................... 280
SMART summary error log sector ...................................................................................... 280
Error log data structure ...................................................................................................... 281
Command data structure .................................................................................................... 281
Error data structure ............................................................................................................ 281
Self-test log data structure .................................................................................................. 282
Selective self-test log data structure .................................................................................. 283
Selective self-test feature flags ........................................................................................... 283
SMART Error Codes ............................................................................................................ 284
Standby Command (E2h/96h) ............................................................................................. 285
Standby Immediate Command (E0h/94h).......................................................................... 286
Write Buffer Command (E8h) ............................................................................................. 287
Write Buffer DMA Command (EBh) .................................................................................. 288
Write DMA Command (CAh/CBh) ...................................................................................... 289
Write DMA FUA Ext Command (3Dh) .............................................................................. 290
Write DMA Ext Command (35h) ........................................................................................ 292
Write FPDMA Queued Command (61h) ............................................................................ 293
Write Log Ext Command (3Fh)........................................................................................... 295
Write Log DMA Ext Command (57h).................................................................................. 297
Write Multiple Command (C5h) ......................................................................................... 298
Write Multiple Ext Command (39h) ................................................................................... 299
Write Multiple FUA Ext Command (CEh) ......................................................................... 300
Write Sector(s) Command (30h/31h) .................................................................................. 301
Write Sector(s) Ext Command (34h) ................................................................................... 302
Write Uncorrectable Ext Command (45h) .......................................................................... 303
Zone management commands ............................................................................................. 304
ZAC Management In command template inputs .............................................................. 305
ZM_ACTION field ................................................................................................................ 305
RECEIVE FPDMA QUEUED command encapsulation for the inputs used by the ZAC
Management In command................................................................................................... 306
ZAC MANAGEMENT OUT command template inputs ................................................... 306
NCQ NON-DATA command encapsulation for the inputs used by the ZAC Management
Out command ....................................................................................................................... 307
SEND FPDMA QUEUED command encapsulation for the inputs used by the ZAC
Management Out command ................................................................................................ 307
CLOSE ZONE EXT command inputs ................................................................................. 308
FINISH ZONE EXT command inputs ................................................................................ 309
OPEN ZONE EXT command inputs................................................................................... 310
REPORT ZONES EXT command inputs............................................................................. 311
REPORTING OPTIONS field ............................................................................................. 312
REPORT ZONES EXT inputs ............................................................................................. 312
SAME field ........................................................................................................................... 313
Zone descriptor format ........................................................................................................ 314
ZONE TYPE field ................................................................................................................. 314
ZONE CONDITION field .................................................................................................... 315
RESET WRITE POINTERS EXT command inputs .......................................................... 316
Generic ZAC Extended Normal Output ............................................................................. 317
13
HGST Hard Disk Drive Specification
Table 265 Generic ZAC Extended Error Output ................................................................................. 318
14
HGST Hard Disk Drive Specification
List of figures
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
Figure 8
Figure 9
Figure 10
Figure 11
Figure 12
Figure 13
Figure 14
Figure 15
Logical Layout example: Number of Block per Sector 4096 ................................................. 22
PList physical format............................................................................................................... 26
Connector location.................................................................................................................... 27
The timing of COMRESET, COMINIT and COMWAKE ...................................................... 29
Limits of temperature and altitude ........................................................................................ 30
Limits of temperature and humidity ...................................................................................... 31
Top and side views and mechanical dimensions .................................................................... 36
Bottom and side views with mounting hole locations ........................................................... 37
Connector locations .................................................................................................................. 38
Initial Setting ......................................................................................................................... 68
Usual Operation ..................................................................................................................... 69
Password Lost ........................................................................................................................ 70
Sanitize Device state machines .......................................................................................... 109
Zones in a zoned device ........................................................................................................ 111
Write pointer zone and write pointer after Reset Write Pointer function with no subsequent
writes .....................................................................................................................................114
Figure 16 Write pointer zone and write pointer example ...................................................................115
Figure 17 Examples of write commands that do not start at the write pointer ................................ 115
Figure 18 Zone Condition state machine............................................................................................. 120
15
HGST Hard Disk Drive Specification
1
General
Introduction
This document describes the specifications of the Ultrastar Hs14 an HGST 3.5-inch 7200-rpm serial ATA /Serial
Attached SCSI interface hard disk drive with the following model numbers:
Table 1 Type and Model#
Capacity
Type
14TB
SMR
Interface
Model#
Description
Host
Managed
Serial ATA
512 Emulation
HSH721414ALE6M0
HSH721414ALE6M4
HSH721414ALN6M0
HSH721414ALN6M4
Instant Secure Erase
Secure Erase (Overwrite only)
Instant Secure Erase
Secure Erase (Overwrite only)
US7SAM140
Serial ATA
4K Native
Glossary
ADM
DFT
ESD
ISE
TB
GB
Gbps
Kbpi
Ktpi
MB
MB/s
Mbps
MiB/s
MiB
PI
PSID
S.M.A.R.T.
SE
Automatic Drive Maintenance
Drive Fitness Test
Electrostatic Discharge
Instant Secure Erase
1,000,000,000,000 bytes (for Drive Capacity)
1,000,000,000 bytes(for Drive Capacity)
1,000,000,000 bits per second
1,000 bits per inch
1,000 tracks per inch
1,048,576 bytes (for Memory Size)
1,000,000 bytes per second
1,000,000 bits per second
1,048,576 bytes per second
1,048,576 bytes (1x1024x1024 bytes)
Protection Information
Physical presence Security ID
Self-Monitoring Analysis and Reporting Technology
Secure Erase
General caution
Do not apply force to the top cover. Handle the drive by its edges or frame only.
Do not touch the interface connector pins or the surface of the print circuit board.
The drive can be damaged by shock or ESD (Electrostatic Discharge). Any damage sustained by the drive after
removal from the shipping package and opening the ESD protective bag are the responsibility of the user.
References
・ Serial ATA II: Extensions to Serial ATA 1.0
・ Serial ATA International Organization: Serial ATA Revision 3.2
・ Supported ZAC revision 05 (T13/BSR INCITS 537 Revision 05)
16
HGST Hard Disk Drive Specification
2
General features

Host Managed SMR (Shingled Magnetic Recording)

Data capacities of 14TB

Spindle speeds of 7200 RPM

Fluid Dynamic Bearing motor

Dual Stage Actuator

Closed-loop actuator servo

Load/Unload mechanism, non head disk contact start/stop

Automatic Actuator lock

Write Cache

Power saving modes/Low RPM idle mode (APM)

S.M.A.R.T. (Self Monitoring and Analysis Reporting Technology)

Adaptive zone formatting

RVS(Rotational Vibration Safeguard)

512MB Memory

Seek time of 7.7 ms in read operation (without Command Overhead)

Conventional Zone 1% of Total Capacity

256MiB zone size (Conventional/Sequential Write required)

UnRestricted Sequential Write Required Zone default setting to be 1

Intelligent Write Verify for SMR Technology

Segmented buffer implementation

Automatic Error Recovery procedures for read and write commands

Automatic defect reallocation

Sector format of 512e bytes/sector, 4096 bytes/sector

Native command queuing support

Self Diagnostics at Power on and resident diagnostics

Serial ATA Data Transfer

Support security feature

48 bit addressing feature

SATA-3.2

SATA Pin3 Power Disable (Option)

Supported ZAC revision 05 (T13/BSR INCITS 537 Revision 05)
6/3/1.5Gbps
compliant
17
HGST Hard Disk Drive Specification
Part 1. Functional specification
18
HGST Hard Disk Drive Specification
3
Fixed disk subsystem description
Control Electronics
The drive is electronically controlled by a microprocessor, several logic modules, digital/analog modules, and
various drivers and receivers. The control electronics performs the following major functions:
 Controls and interprets all interface signals between the host controller and the drive.
 Controls read write accessing of the disk media, including defect management and error recovery.
 Controls starting, stopping, and monitoring of the spindle.
 Conducts a power-up sequence and calibrates the servo.
 Analyzes servo signals to provide closed loop control. These include position error signal and estimated
velocity.
 Monitors the actuator position and determines the target track for a seek operation.
 Controls the voice coil motor driver to align the actuator in a desired position.
 Constantly monitors error conditions of the servo and takes corresponding action if an error occurs.
 Monitors various timers such as head settle and servo failure.
 Performs self-checkout (diagnostics).
Head disk assembly
The head disk assembly (HDA) is assembled in a clean room environment and contains the disks and actuator
assembly. Helium is constantly circulated and filtered when the drive is operational. No venting of the HDA is
accomplished, as HDA is hermetically sealed.
The spindle is driven directly by an in-hub, brushless, sensorless DC drive motor. Dynamic braking is used to
quickly stop the spindle.
Actuator
The read/write heads are mounted in the actuator. The actuator is a swing-arm assembly driven by a voice coil
motor. A closed-loop positioning servo controls the movement of the actuator. An embedded servo pattern
supplies feedback to the positioning servo to keep the read/write heads centered over the desired track.
The actuator assembly is balanced to allow vertical or horizontal mounting without adjustment.
When the drive is powered off, the actuator automatically moves the head to the actuator ramp outside of the disk
where it parks.
19
HGST Hard Disk Drive Specification
4
Drive characteristics
This section describes the characteristics of the drive.
Default logical drive parameters
Table 2 Formatted capacity
The default of the logical drive parameters in Identify Device data is as shown below.
Description
Physical Layout
Label capacity
Bytes per Sector
Number of Heads
Number of Disks
Logical Layout1
Bytes per Sector
Number of Sectors
Total Logical Data Bytes
14TB model
14TB
4096
16
8
14TB
4096
16
8
512e
27,344,764,928
14,000,519,643,136
4096
3,418,095,616
14,000,519,643,136
Notes:
1
Logical layout: Logical layout is an imaginary drive parameter (that is, the number of heads) which is used to
access the drive from the system interface. The Logical layout to Physical layout (that is, the actual Head and
Sectors) translation is done automatically in the drive. The default setting can be obtained by issuing an
IDENTIFY DEVICE command
20
HGST Hard Disk Drive Specification
Data sheet
Table 3 Data Sheet
14TB
Model
2290
600
Description
Max Data transfer rate (Mbps)
Interface transfer rate (MB/s)
MAX Sustained transfer rate (Typ.)
Read/Write (MB/s) *1
Memory size (MB)
Rotational speed (RPM)
Configurable number of buffer segment
Number
Recording density- max (Kbpi)
Track density (Ktpi)
Areal density - max (Gbits/in2)
*1
233 / 233
512
7,200
2048max
1916
540
1034
Sequential Write Required Zone
World Wide Name Assignment
Table 4 World Wide Name Assignment
Description
WWN
Organizationally Unique Identifier (OUI)
000CCAh (HGST)
Block Assignment
25Bh (Thailand)
21
HGST Hard Disk Drive Specification
Drive organization
Drive Format
Upon shipment from HGST manufacturing the drive satisfies the sector continuity in the physical format by means
of the defect flagging strategy described in Section 5 in order to provide the maximum performance to users.
Cylinder allocation
Physical cylinder is calculated from the starting data track of 0. It is not relevant to logical CHS. Depending on the
capacity some of the inner zone cylinders are not allocated.
Data cylinder
This cylinder contains the user data which can be sent and retrieved via read/write commands and a spare area
for reassigned data.
Spare cylinder
The spare cylinder is used by HGST manufacturing and includes data sent from a defect location.
Zone Layout
The LBAs are divided into ranges called zones.
The entire capacity of a zoned block device is organized into a set of contiguous, non-overlapping zones.
Zone size 256MiB
Conventional Zone 1% of Total Capacity
Sequential write required zone 99% of Total Capacity
Table 5 Zone Layout
Description
14TB model
Logical Layout
Bytes per Sector
512e
4096
Number of Conventional Zone
Start LBA
524
0
524
0
274,726,911
34,340,863
51,632
51,632
274,726,912
34,340,864
End LBA
27,344,764,927
3,418,095,615
Number of Sectors
27,344,764,928
3,418,095,616
End LBA
Number of Sequential write
required zone
Start LBA
Conventional zone
↓ LBA 0
Zone 0
LBA 34,340,863↓
Zone 1
…
Zone 2
Zone 523
Sequential write required zone
↓ LBA 34,340,864
Zone 524
Figure 1
Zone 525
LBA 3,418,095,615↓
…
Zone 526
Zone 52155
Logical Layout example: Number of Block per Sector 4096
22
HGST Hard Disk Drive Specification
Performance characteristics
Drive performance is characterized by the following parameters:
 Command overhead
 Mechanical positioning
- Seek time
- Latency
 Data transfer speed
 Buffering operation (Look ahead/Write cache)
All the above parameters contribute to drive performance. There are other parameters that contribute to the
performance of the actual system. This specification defines the characteristics of the drive, not the
characteristics of the system throughput which depends on the system and the application.
Command overhead
Command overhead is defined as the time required
From the time
H->D Reg FIS w/ command bit is sent by host
is sent by host
To the time
- PIO Set Up FIS is sent by device (PIO Read/Write)
- DATA FIS is sent by device (DMA Read)
- DMA Activate FIS is sent by device (DMA Write)
- DMA Set Up FIS is sent by device (NCQ Read/Write)
- Seek Start (Read cache not hit or Seek)
The table below gives average command overhead.
Table 6 Command overhead
Command type
(Drive is in quiescent state)
Read (Cache not hit)
Read (Cache hit)
Write
Seek
Typical time (ms)
0.2
0.2
0.5
0.5
23
HGST Hard Disk Drive Specification
Mechanical positioning
Average seek time (without command overhead, including settling)
Table 7 Average seek time
Command Type
Typical (ms)
Max (ms)
Read
Write
7.7
12.0
10.0
14.5
The terms “Typical” and “Max” are used throughout this specification with the following meanings:
Typical.
The average of the drive population tested at nominal environmental and voltage conditions.
Max.
The maximum value measured on any one drive over the full range of the environmental and voltage
conditions. (See Section 6.2, “Environment” and Section 6.3, “DC Power Requirements”)
Single track seek time (without command overhead, including
settling)
Table 8 Single Track Seek Time
Function
Typical (ms)
Max (ms)
0.23
0.32
0.25
0.35
Read
Write
Average latency
Table 9 Latency Time
Rotational speed
Time for a revolution
(ms)
Average latency
(ms)
7200 RPM
8.3
4.16
Typical (sec)
Max (sec)
20
30
Drive ready time
Table 10 Drive ready time
Power on to ready
Ready
The condition in which the drive is able to perform a media access command (such as read,
write) immediately
Power on
This includes the time required for the internal self diagnostics.
Notes: The typical and maximum drive ready time in the table are for proper power shutdown using the Required
Power-Off Sequence. In the event of an EPO (Emergency Power Off), the drive ready times in the table can be
exceeded by as much as 4-12 seconds or more. The additional time is used to condition the drive for user data
access. The actual time may vary depending on the drive pre-condition before the EPO event.
24
HGST Hard Disk Drive Specification
Operating modes
Operating mode descriptions
Operating mode
Description
Spin up
Period of time from 0 rpm to full rpm
Start up
Period of time from power on to drive ready
Seek
Seek operation mode
Write
Write operation mode
Read
Read operation mode
Active
Drive is able to perform a media access command (such as read, write) immediately
Idle_0
Drive Ready, but not performing IO, drive may power down selected electronics to
reduce power without increasing response time
Idle_A
Drive Ready, but not performing IO, drive may power down selected electronics to
reduce power without increasing response time
Idle_B
Spindle rotation at 7200 RPM with heads unloaded
Idle_C/Standby_Y
Spindle rotation at Low RPM with heads unloaded
Standby_Z
Actuator is unloaded and spindle motor is stopped.
immediately
Commands can be received
Sleep
Actuator is unloaded and spindle motor is stopped.
change the mode to standby_z
Only soft reset or hard reset can
Note: Upon power down or spindle stop a head locking mechanism will secure the heads in the OD parking
position.
Mode transition times
Mode transition times are shown below.
Table 11 Mode transition times
From
Idle_B
Idle_C
Standby_Y
Standby_Z
To
RPM
Typical (sec)
Active
Active
Active
Active
7200
6300 -> 7200
6300 -> 7200
0 > 7200
1.5
4
4
15
Note: Maximum transition time of 30 Seconds based on drive timeout value
25
HGST Hard Disk Drive Specification
5
Defect flagging strategy
Media defects are remapped to the next available sector during the Format Process in manufacturing. The
mapping from LBA to the physical locations is calculated by an internally maintained table.
Shipped format
 Data areas are optimally used.
 No extra sector is wasted as a spare throughout user data areas.
 All pushes generated by defects are absorbed by the spare tracks.
N
N+1 defect
skip
N+2
defect
N+3
skip
Figure 2 PList physical format
Defects are skipped without any constraint, such as track or cylinder boundary.
physical is done automatically by internal table.
26
HGST Hard Disk Drive Specification
The calculation from LBA to
6
Specification
Electrical interface
Connector location
Refer to the following illustration to see the location of the connectors.
Figure 3
Connector location
Signal connector
A Serial ATA device may be either directly connected to a host or connected to a host through a cable.
For direct connection, the device plug connector is inserted directly into a backplane connector. The device plug
connector and the backplane connector incorporate features that enable the direct connection to be hot pluggable
and blind mateable.
For connection via cable, the device signal plug connector mates with the signal cable receptacle connector on one
end of the cable. The signal cable receptacle connector on the other end of the cable is inserted into a host signal
plug connector. The signal cable wire consists of two twinax sections in a common outer sheath.
Besides the signal cable, there is also a separate power cable for the cabled connection. A Serial ATA power cable
includes a power cable receptacle connector on one end and may be directly connected to the host power supply
on the other end or may include a power cable receptacle on the other end. The power cable receptacle connector
on one end of the power cable mates with the device power plug connector. The other end of the power cable is
attached to the host as necessary.
27
HGST Hard Disk Drive Specification
Signal definition
SATA has receivers and drivers to be connected to Tx+/- and Rx +/- Serial data signal.
Defines the signal names of I/O connector pin and signal name.
Table 12
Interface connector pins and I/O signals
No.
Signal
S1
S2
S3
S4
S5
S6
S7
GND
A+
AGnd
BB+
Gnd
P1
P2
P4
P5
P6
P7
P8
P9
P10
Reserved*
Reserved*
Reserved* or
PWDIS*
(option)
Gnd
Gnd
Gnd
V5
V5
V5
Gnd
P11
Reserved
P12
P13
P14
P15
Gnd
V12
V12
V12
P3
Power
Plug Connector pin definition
Signal
2nd mate
Differential signal A from Phy
Gnd
RX+
RXGnd
TXTX+
Gnd
2nd mate
Differential signal B from Phy
2nd mate
Key and spacing separate signal and power
segments
NOT USED (P1 and P2 tied internally)
Not USED (P1 and P2 tied internally)
Reserve
Reserve
Not USED (P1, P2 and P3 tied internally) or
Enter/Exit Power Disable (option)
Reserved or
PWDIS
1st mate
2nd mate
2nd mate
5V power,pre-charge,2nd Mate
5V power
5V power
2nd mate
Support staggered spin-up and LED activity
VDih max=2.1V
1st mate
12V power,pre-chage,2nd mate
12V power
12V power
I/O
Input
Input
Output
Output
Gnd
Gnd
Gnd
5V
5V
5V
Gnd
Reserve
Gnd
V12
V12
V12
* SATA Specification Revision 3.1 and prior revisions assigned 3.3V to pins P1, P2 and P3. In addition, device
plug pins P1, P2, and P3 were required to be bused together. In the standard configuration of this product,
P3 is connected with P1 and P2 and this product behaves as SATA 3.1 or prior version product in a system
designed to SATA 3.2 system that does not support the 3.3 feature. For product with the optional SATA 3.3
Power Disable Feature supported, P3 is now assigned as the POWER DISABLE CONTROL PIN. If P3 is driven
HIGH (2.1V-3.6V max), power to the drive circuitry will be disabled. Drives with this optional feature WILL NOT
POWER UP in systems designed to SATA Spec Revision 3.1 or earlier because P3 driven HIGH will prevent the
drive from powering up.
TX+ / TXThese signals are the outbound high-speed differential signals that are connected to the serial ATA cable
RX+ / RXThese signals are the inbound high-speed differential signals that are connected to the serial ATA cable.
5V PRECHARGE
+5 Vdc that is available on the extended pins. It is used for PRECHARGE when connected to backplane
incorporated feature.
28
HGST Hard Disk Drive Specification
12V PRECHARGE
+12 Vdc that is available on the extended pins. It is used for PRECHARGE when connected to backplane
incorporated feature.
Out of band signaling
t1
COMRESET/COMINIT
COMWAKE
t3
t2
t4
Figure 4 The timing of COMRESET, COMINIT and COMWAKE
Table 13 Parameter descriptions
PARAMETER DESCRIPTION
Nominal (ns)
t1
ALIGN primitives
106.7
t2
Spacing
320
t3
t4
ALIGN primitives
Spacing
106.7
106.7
29
HGST Hard Disk Drive Specification
Environment
Temperature and humidity
Table 14 Temperature and humidity
Operating conditions
Temperature
Relative humidity
Maximum wet bulb temperature
Maximum temperature gradient
Altitude
Non-Op conditions
Temperature
Relative humidity
Maximum wet bulb temperature
5 to 60°C
8 to 90% non-condensing
29.4°C non-condensing
20°C/Hour
–300 to 3,048 m
-40 to 70°C (Storage 0 to 70°C)
5 to 95% non-condensing
35°C non-condensing
Maximum temperature gradient
30°C/Hour
Altitude
–300 to 12,000 m (Inside dashed-dotted line of Figure 5)
Notes:
1. The system is responsible for providing sufficient ventilation to maintain a surface temperature below 65°C at
the center of the top cover of the drive.
2. Non condensing conditions should be maintained at any time.
Altitude specification
13000
-40degC/12000m
12000
40degC/12000m
11000
Non-Operating
10000
9000
Altitude (m)
8000
7000
6000
70degC/3048m
5000
4000
60degC/3048m
5degC/3048m
3000
2000
Operating
1000
60degC/-300m
0
-1000
5degC/-300m
-40degC/-300m
70degC/-300m
-2000
-50
Figure 5
-40
-30
-20
-10
0
10
20
30
Temperature (degC)
Limits of temperature and altitude
30
HGST Hard Disk Drive Specification
40
50
60
70
80
Figure 6
Limits of temperature and humidity
Storage Requirements
Packing
The drive or option kit must be heat-sealed in a moisture barrier bag with bag supplied by HGST
Storage Time
The drive may not remain inoperative for a period of more than one year whether or not the original shipping
package is opened
Corrosion test
The drive shows no sign of corrosion inside and outside of the hard disk assembly and is functional after being
subjected to seven days at 50°C with 90% relative humidity.
Atmospheric condition
Environments that contain elevated levels of corrosives (e.g. hydrogen sulfide, sulfur oxides, or hydrochloric acid)
should be avoided. Care must be taken to avoid using any compound/material in a way that creates an elevated
level of corrosive materials in the atmosphere surrounding the disk drive. Care must also be taken to avoid use of
any organometallic (e.g. organosilicon or organotin) compound/material in a way that creates elevated vapor
levels of these compounds/materials in the atmosphere surrounding the disk drive.
31
HGST Hard Disk Drive Specification
DC power requirements
Damage to the drive electronics may result if the power supply cable is connected or disconnected to the legacy
Power connector while power is being applied to the drive (no hot plug/unplug is allowed). If SATA power supply
cable is connected or disconnected to the SATA power connector, hot plug/unplug is allowed.
Input voltage
Table 15
Input voltage
Input voltage
During run
and spin up
Absolute max
spike voltage
Supply rise
time
+5 Volts Supply
5V ± 5%
–0.3 to 5.5V
0 to 200ms
+12 Volts Supply
12V ± 5%
–0.3 to 15.0V
0 to 400ms
Caution: To avoid damage to the drive electronics, power supply voltage spikes must not exceed specifications.
32
HGST Hard Disk Drive Specification
Power supply current (typical1)
Table 16 Power supply current
33
HGST Hard Disk Drive Specification
Power line noise limits
Table 17 Allowable power supply noise limits at drive power connector
+5V DC
+12V DC
Noise Voltage (mV pp)
250
800
450
250
Frequency Range
100Hz-20MHz
100Hz-8KHz
8KHz-100KHz
100KHz-20MHz
During drive operation, both 5 and 12-volt ripple are generated by the drive due to dynamic loading of the power
supply. This voltage ripple will add to existing power supply voltage ripple. The sum is the power line noise.
To prevent significant performance loss, the power line noise level when measured at the drive power connector
should be kept below the limits in the above table.
Power Consumption Efficiency
Table 18 Power consumption efficiency (14TB)
Power Consumption
Efficiency at Idle
W/TB
W/GB
SATA
0.37
0.00037
34
HGST Hard Disk Drive Specification
Reliability
Data integrity
When the write cache option is disabled, no customer data is lost during power loss. If the write cache option is
active or has been recently used, some data loss can occur during power loss. To prevent the loss of data at
power off; confirm the successful completion of a FLUSH CACHE (E7h) or FLUSH CACHE EXT (EAh) command
Cable noise interference
To avoid any degradation of performance throughput or error rate when the interface cable is routed on top or
comes in contact with the HDA assembly, the drive must be grounded electrically to the system frame by four
screws. The common mode noise or voltage level difference between the system frame and power cable ground
or AT interface cable ground should be in the allowable level specified in the power requirement section.
Load/Unload
The product supports a minimum of 600,000 normal load/unloads in a 40° C environment.
Load/unload is invoked by transition of the HDD's power mode. (Chapter 4.5.4 Operating modes)
Idle (Idle_A) <-> unload idle (Idle_B)
Idle (Idle_A) <-> Low rpm idle (Idle_C)
Start/stop cycles
The drive withstands a minimum of 50,000 start/stop cycles in a 40° C environment and a minimum of 10,000
start/stop cycles in extreme temperature or humidity within the operating range.
Preventive maintenance
None
Data reliability
Probability of not recovering data is 1 in 1015 bits read.
LDPC on the fly/ offline data correction
 4608 bit LDPC
 This implementation recovers maximum 2500 bits single burst error by on the fly correction and maximum
3500 bits single burst error by offline correction
Required Power-Off Sequence
The required sequence for removing power from the drive is as follows:
Step 1: Issue one of the following commands.
Standby
Standby immediate
Sleep
Note: Do not use the Flush Cache command for the power off sequence because this command does not invoke
Unload
Step 2: Wait until the Command Complete status is returned. However, the BIOS time out value needs to be 60
seconds considering error recovery time.
Step 3: Terminate power to HDD.
35
HGST Hard Disk Drive Specification
Mechanical specifications
Physical dimensions
Figure 7
Top and side views and mechanical dimensions
All dimensions are in millimeters.
36
HGST Hard Disk Drive Specification
Figure 8
Bottom and side views with mounting hole locations
All dimensions in the above figure are in millimeters.
The following table shows the physical dimensions of the drive.
Table 19 Physical Dimensions
Height (mm)
Width (mm)
Length (mm)
Weight (grams)
26.1 MAX
101.6 ± 0.25
147 MAX
660 MAX
37
HGST Hard Disk Drive Specification
Connector locations
Figure 9
Connector locations
Drive mounting
The drive will operate in all axes (6 directions). Performance and error rate will stay within specification limits if
the drive is operated in the other orientations from which it was formatted.
For reliable operation, the drive must be mounted in the system securely enough to prevent excessive motion or
vibration of the drive during seek operation or spindle rotation, using appropriate screws or equivalent mounting
hardware.
The recommended mounting screw torque is 0.6 - 1.0 Nm (6-10 Kgf.cm).
The recommended mounting screw depth is 3.8mm maximum for bottom and 6.1 mm maximum for horizontal
mounting.
Drive level vibration test and shock test are to be conducted with the drive mounted to the table using the bottom
four screws.
Heads unload and actuator lock
Heads are moved out from disks (unload) to protect the disk data during shipping, moving, or storage. Upon
power down, the heads are automatically unloaded from disk area and the locking mechanism of the head
actuator will secure the heads in unload position.
38
HGST Hard Disk Drive Specification
Vibration and shock
All vibration and shock measurements recorded in this section are made with a drive that has no mounting
attachments for the systems. The input power for the measurements is applied to the normal drive mounting
points.
Operating vibration
Random vibration (Linear)
The test is 30 minutes of random vibration using the power spectral density (PSD) levels shown below in each of
three mutually perpendicular axes. The disk drive will operate without non-recoverable errors when subjected to
the below random vibration levels.
Table 20 Random vibration PSD profile break points (operating)
Frequency
[(m/sec2)2/Hz]
5 Hz
17 Hz
45 Hz
48 Hz
62 Hz
65 Hz
150 Hz
200 Hz
500 Hz
RMS
(m/sec2)
1.9 x
10E–3
1.1 x
10E–1
1.1 x
10E–1
7.7 x
10E–1
7.7 x
10E–1
9.6 x
10E–2
9.6 x
10E–2
4.8 x
10E–2
4.8
x10E-2
6.57
The overall RMS (root mean square) level is 6.57 m/sec2 (0.67 G).
Swept sine vibration (Linear)
The drive will meet the criteria shown below while operating in the specified conditions:
 No errors occur with 4.9 m/sec2 (0.5 G) 0 to peak, 5 to 300 to 5 Hz sine wave, 0.5 oct/min sweep rate with 3minute dwells at two major resonances
 No data loss occurs with 9.8 m/sec2 (1 G) 0 to peak, 5 to 300 to 5 Hz sine wave, 0.5 oct/min sweep rate with
3-minute dwells at two major resonances
Random vibration (Rotational)
The drive will meet the criteria shown below while operating in the specified conditions:
 Less than 20% Performance degradation
 The overall RMS (Root Mean Square) level of vibration is 12.5Rad/sec^2. PSD profile is shown below.
Table 21 Random vibration (Rotational) PSD profile break points
Frequency
20 Hz
100 Hz
200 Hz
800 Hz
1000 Hz
1500 Hz
1700 Hz
2000 Hz
RMS
(Rad/s2)
[(Rad/s2)
2/Hz]
1.90E-02
1.90E-02
1.87E-01
1.87E-01
5.33E-02
7.70E-03
4.00E-03
4.00E-03
12.5
39
HGST Hard Disk Drive Specification
Nonoperating vibration
The drive does not sustain permanent damage or loss of previously recorded data after being subjected to the
environment described below
Random vibration
The test consists of a random vibration applied for each of three mutually perpendicular axes with the time
duration of 10 minutes per axis. The PSD levels for the test simulate the shipping and relocation environment
shown below. The overall RMS (Root Mean Square) level of vibration is 10.2 m/sec2 (1.04 G).
Table 22 Random vibration PSD profile break points (nonoperating)
Frequency
2 Hz
4 Hz
8 Hz
40 Hz
55 Hz
70 Hz
200 Hz
[(m/sec2)2/Hz]
0.096
2.89
2.89
0.289
0.962
0.962
0.096
Swept sine vibration
 19.6 m/sec2 (2 G) (Zero to peak), 5 to 500 to 5 Hz sine wave
 0.5 oct/min sweep rate
 3 minutes dwell at two major resonances
Operating shock
The drive meets the following criteria while operating in the conditions described below. The shock test consists
of 10 shock inputs in each axis and direction for total of 60. There must be a delay between shock pulses long
enough to allow the drive to complete all necessary error recovery procedures.
 No error occurs with a 98.1 m/sec2 (10 G) half-sine shock pulse of 11 ms duration.
 No data loss occurs with a 294 m/sec2 (30 G) half-sine shock pulse of 4 ms duration.
 No data loss occurs with a 686 m/sec2 (70 G) half-sine shock pulse of 2 ms duration.
Nonoperating shock
The drive will operate without non-recoverable errors after being subjected to shock pulses with the following
characteristics.
Trapezoidal shock wave
 Approximate square (trapezoidal) pulse shape
 Approximate rise and fall time of pulse is1 ms
 Average acceleration level is 490 m/sec2 (50 G). (Average response curve value during the time following the
1 ms rise time and before the 1 ms fall with a time "duration of 11 ms")
 Minimum velocity change is 4.23 m/sec
40
HGST Hard Disk Drive Specification
Sinusoidal shock wave
The shape is approximately half-sine pulse.
duration.
Table 23
The figure below shows the maximum acceleration level and
Sinusoidal shock wave
Acceleration level (m/sec2)
Duration (ms)
2940(300G)
1470(150G)
2
11
Nonoperating Rotational shock
All shock inputs shall be applied around the actuator pivot axis.
Table 24 Rotational Shock
Duration
Rad/sec2
1 ms
30,000
2 ms
20,000
41
HGST Hard Disk Drive Specification
Acoustics
The upper limit criteria of the octave sound power levels are given in Bels relative to one picowatt and are shown
in the following table. The sound power emission levels are measured in accordance with ISO 7779.
Table 25
Sound power levels
Mode
7200rpm (Typical / Max)
Idle
Operating
2.0 / 2.5
3.6 / 4.0
Mode definition:
Idle mode.
Operating mode.
The drive is powered on, disks spinning, track following, unit ready to receive and
respond to interface commands.
Continuous random cylinder selection and seek operation of the actuator with a dwell
time at each cylinder. The seek rate for the drive is to be calculated as shown below:
 Dwell time = 0.5 x 60/RPM
 Seek rate = 0.4 / (Average seek time + Dwell time)
Identification labels
The following labels are affixed to every drive shipped from the drive manufacturing location in accordance with
the appropriate hard disk drive assembly drawing:
 A label containing the HGST logo, the HGST part number, and the statement “Made by HGST, Ltd.” or HGST
approved equivalent
 A label containing the drive model number, the manufacturing date code, the formatted capacity, the place of
manufacture, UL/CSA/TUV/CE/RCM mark logos and WEEE/China RoHS logos
 A bar code label containing the drive serial number
 A label containing the jumper pin description
 A user designed label per agreement
The above labels may be integrated with other labels.
42
HGST Hard Disk Drive Specification
Safety
UL and CSA standard conformity
The product is qualified per UL60950-1:Second Edition and CAN/CSA-C22.2 No.60950-1-07 Second Edition,
for use in Information Technology Equipment including Electric Business Equipment.
The UL recognition or the CSA certification is maintained for the product life.
The UL and C-UL recognition mark or the CSA monogram for CSA certification appear on the drive.
German Safety Mark
The product is approved by TUV on Test requirement: EN60950-1:2006+A11 but the GS mark is not applicable
to internal devices such as this product.
Flammability
The printed circuit boards used in this product are made of material with the UL recognized flammability rating of
V-1 or better. The flammability rating is marked or etched on the board. All other parts not considered electrical
components are made of material with the UL recognized flammability rating of V-2 minimum basically.
Safe handling
The product is conditioned for safe handling in regards to sharp edges and corners.
Substance restriction requirements
The product complies with the Directive 2002/95/EC of the European Parliament on the restrictions of the use of
the certain hazardous substances in electrical and electronic equipment (RoHS) and with Halogen free
requirements based on the electronics industry standard, IEC 61249-2-21 (http://www.iec.ch/).
Secondary circuit protection
Spindle/VCM driver module includes 12 V over current protection circuit.
43
HGST Hard Disk Drive Specification
Electromagnetic compatibility
When installed in a suitable enclosure and exercised with a random accessing routine at maximum data rate, the
drive meets the following worldwide EMC requirements:
 United States Federal Communications Commission (FCC) Rules and Regulations (Class B), Part 15.
 European Economic Community (EEC) directive number 76/889 related to the control of radio frequency
interference and the Verband Deutscher Elektrotechniker (VDE) requirements of Germany (GOP).Spectrum
Management Agency (SMA) EMC requirements of Australia. The SMA has approved RCM Marking for HGST.
CE Mark
The product is declared to be in conformity with requirements of the following EC directives under the sole
responsibility of HGST, Ltd:
Council Directive 2014/30/EU on the approximation of laws of the Member States relating to electromagnetic
compatibility.
RCM Mark
The product complies with the following Australian EMC standard:
Limits and methods of measurement of radio disturbance characteristics of information technology, EN55032 :
2012 Class B.
BSMI Mark
The product complies with the Taiwan EMC standard “Limits and methods of measurement of radio disturbance
characteristics of information technology equipment, CNS 13438 Class B.”
KC Mark
The product complies with the Korea EMC standard. The regulation for certification of information and
communication equipment is based on “Telecommunications Basic Act” and “Radio Waves Act” Korea EMC
requirement are based technically on KN32/KN35 measurement standards and limits. KC standards are
likewise based on IEC standards.
44
HGST Hard Disk Drive Specification
Part 2. Interface specification
45
HGST Hard Disk Drive Specification
7
General
Introduction
This specification describes the host interface of Leo-A(Hs14) (Model Number: HSH721414ALx6xx) that supports
Host Managed Zones feature set.
This product complies with di537r05: Zoned Device ATA Command Set (ZAC).
The interface conforms to the following working documents of Information technology with certain limitations
described in the chapter 7.3 “Deviations from Standard”.
- Serial ATA International Organization: Serial ATA Revision 3.2
Terminology
Device
Device indicates Leo-A(Hs14) (Model Number: HSH721414ALx6xx)
Host
Host indicates the system that the device is attached to.
Deviations From Standard
The device conforms to the referenced specifications, with deviations described below.
Check Power Mode
If the Extended Power Conditions feature set is disabled and the device is in
Idle mode, Check Power Mode command returns FFh by Sector Count
Register, instead of returning 80h. Refer to 12.1 “Check Power Mode” for
detail.
COMRESET
COMRESET response is not the same as that of Power On Reset.
section 10.1, “Reset Response” for detail.
Download
Both Download Microcode and Download Microcode DMA are aborted when
the device is in security locked mode.
COMRESET response time
During 500ms from Power On Reset, COMINIT is not returned within 10ms
as a response to COMRESET.
SCT Error Recovery Control
When the device is in standby mode, any command where error recovery
time limit is specified can’t be completed while waiting for the spindle to reach
operating speed even if execution time exceeds specified recovery time limit.
The minimum time limit is 6.5 second. When the specified time limit is shorter
than 6.5 second, the issued command is aborted.
46
HGST Hard Disk Drive Specification
Refer to
8
Registers
In Serial ATA, the host adapter contains a set of registers that shadow the contents of the traditional device
registers, referred to as the Shadow Register Block. Shadow Register Block registers are interface registers
used for delivering commands to the device or posting status from the device. About details, please refer to the
Serial ATA Specification.
In the following cases, the host adapter sets the BSY bit in its shadow Status Register and transmits a FIS to the
device containing the new contents.
1) Command register is written in the Shadow Register Block
2) Device Control register is written in the Shadow Register Block with a change of state of the SRST bit
3) COMRESET is requested
Alternate Status Register
Table 26 Alternate Status Register
Alternate Status Register
7
6
5
4
3
2
1
0
BSY
RDY
DF
DSC
/SERV
DRQ
COR
IDX
ERR
This register contains the same information as the Status Register. The only difference is that reading this register
does not imply interrupt acknowledge or clear a pending interrupt. See 8.11 “Status Register” on the page 51 for
the definition of the bits in this register.
Command register
This register contains the command code being sent to the device. Command execution begins immediately after
this register is written. The command set is shown in Table 86 Command Set.
All other registers required for the command must be set up before writing the Command Register.
Cylinder High Register
This register contains the high order bits of the starting cylinder address for any disk access. At the end of the
command, this register is updated to reflect the current cylinder number.
In LBA Mode this register contains Bits 16-23. At the end of the command, this register is updated to reflect the
current LBA Bits 16-23.
The cylinder number may be from zero to the number of cylinders minus one.
When 48-bit addressing commands are used, the “most recently written” content contains LBA Bits 16-23, and the
“previous content” contains Bits 40-47. The 48-bit Address feature set is described in 10.12.
47
HGST Hard Disk Drive Specification
Cylinder Low Register
This register contains the low order bits of the starting cylinder address for any disk access. At the end of the
command, this register is updated to reflect the current cylinder number.
In LBA Mode this register contains Bits 8-15. At the end of the command, this register is updated to reflect the
current LBA Bits 8-15.
The cylinder number may be from zero to the number of cylinders minus one.
When 48-bit addressing commands are used, the “most recently written” content contains LBA Bits 8-15, and the
“previous content” contains Bits 32-39.
Device Control Register
Table 27 Device Control Register
Device Control Register
7
6
5
4
3
2
1
0
HOB
-
-
-
1
SRST
-IEN
0
Bit Definitions
HOB
SRST (RST)
HOB (high order byte) is defined by the 48-bit Address feature set. A write to any Command
Register shall clear the HOB bit to zero.
Software Reset. The device is held reset when RST=1. Setting RST=0 re-enables the device.
The host must set RST=1 and wait for at least 5 microseconds before setting RST=0, to ensure
that the device recognizes the reset.
-IEN
Interrupt Enable. When –IEN=0, and the device is selected, device interrupts to the host will be
enabled. When –IEN=1, or the device is not selected, device interrupts to the host will be
disabled.
48
HGST Hard Disk Drive Specification
Device/Head Register
Table 28 Device/Head Register
Device/Head Register
7
6
5
4
3
2
1
0
1
L
1
DRV
HS3
HS2
HS1
HS0
This register contains the device and head numbers.
Bit Definitions
L
Binary encoded address mode select. When L=0, addressing is by CHS mode. When L=1,
addressing is by LBA mode.
DRV
Device. This product ignores this bit.
HS3,HS2,HS1,HS0
Head Select. These four bits indicate binary encoded address of the head. HS0 is the least
significant bit. At command completion, these bits are updated to reflect the currently
selected head.
The head number may be from zero to the number of heads minus one.
In LBA mode, HS3 through HS0 contain bits 24-27 of the LBA. At command completion,
these bits are updated to reflect the current LBA bits 24-27.
Error Register
Table 29 Error Register
Error Register
7
6
5
4
3
2
1
0
ICRCE
UNC
0
IDNF
0
ABRT
TK0NF
AMNF
This register contains status from the last command executed by the device, or a diagnostic code.
At the completion of any command except Execute Device Diagnostic, the contents of this register are valid always
even if ERR=0 in the Status Register.
Following a power on, a reset, or completion of an Execute Device Diagnostic command, this register contains a
diagnostic code.
Bit Definitions
ICRCE (CRC)
Interface CRC Error. ICRCE=1 indicates a CRC error occurred during FIS transmission or FIS
reception.
UNC
Uncorrectable Data Error. UNC=1 indicates an uncorrectable data error has been encountered.
IDNF (IDN)
ID Not Found. IDN=1 indicates the requested sector’s ID field could not be found.
ABRT (ABT)
Aborted Command. ABT=1 indicates the requested command has been aborted due to a device
status error or an invalid parameter in an output register.
TK0NF (T0N)
Track 0 Not Found. T0N=1 indicates track 0 was not found during a Recalibrate command.
AMNF (AMN)
Address Mark Not Found. This product does not report this error. This bit is always zero.
49
HGST Hard Disk Drive Specification
Features Register
This register is command specific. This is used with the Set Features command, SMART Function Set command
and Format Unit command.
Sector Count Register
This register contains the number of sectors of data requested to be transferred on a read or write operation
between the host and the device. If the value in the register is set to 0, a count of 256 sectors (in 28-bit addressing)
or 65,536 sectors (in 48-bit addressing) is specified.
If the register is zero at command completion, the command was successful. If not successfully completed, the
register contains the number of sectors which need to be transferred in order to complete the request.
The contents of the register are defined otherwise on some commands. These definitions are given in the command
descriptions.
Sector Number Register
This register contains the starting sector number for any disk data access for the subsequent command.
The sector number is from one to the maximum number of sectors per track.
In LBA mode, this register contains Bits 0-7. At the end of the command, this register is updated to reflect the
current LBA Bits 0-7.
When 48-bit commands are used, the “most recently written” content contains LBA Bits 0-7, and the “previous
content” contains Bits 24-31.
50
HGST Hard Disk Drive Specification
Status Register
Table 30
Status Register
Status Register
7
6
5
4
3
2
1
0
BSY
DRDY
DF
DSC
/SERV
DRQ
CORR
IDX
ERR
This register contains the device status. The contents of this register are updated whenever an error occurs and at
the completion of each command.
If the host reads this register when an interrupt is pending, it is considered to be the interrupt acknowledge. Any
pending interrupt is cleared whenever this register is read.
If BSY=1, no other bits in the register are valid.
Bit Definitions
BSY
Busy. BSY=1 whenever the device is accessing the registers. The host should not read or write
any registers when BSY=1. If the host reads any register when BSY=1, the contents of the Status
Register will be returned.
DRDY (RDY)
Device Ready. RDY=1 indicates that the device is capable of responding to a command. RDY
will be set to 0 during power on until the device is ready to accept a command. If the device
detects an error while processing a command, RDY is set to 0 until the Status Register is read
by the host, at which time RDY is set back to 1.
DF
Device Fault.
DSC
Device Seek Complete. DSC=1 indicates that a seek has completed and the device head is
settled over a track. DSC is set to 0 by the device just before a seek begins. When an error
occurs, this bit is not changed until the Status Register is read by the host, at which time the bit
again indicates the current seek complete status.
This product does not support DF bit. DF bit is always zero.
When the device enters into or is in Standby mode or Sleep mode, this bit is set by device in
spite of not spinning up.
SERV (SRV)
Service. This product does not support SERV bit.
DRQ
Data Request. DRQ=1 indicates that the device is ready to transfer a word or byte of data
between the host and the device. The host should not write the Command register when DRQ=1.
CORR (COR)
Corrected Data. Always 0.
IDX
Index. IDX=1 once per revolution. Since IDX=1 only for a very short time during each revolution,
the host may not see it set to 1 even if the host is reading the Status Register continuously.
Therefore, the host should not attempt to use IDX for timing purposes.
ERR
Error. ERR=1 indicates that an error occurred during execution of the previous command. The
Error Register should be read to determine the error type. The device sets ERR=0 when the next
command is received from the host.
51
HGST Hard Disk Drive Specification
9
Normal and Error Output field descriptions
Overview
9 Normal and Error Output field descriptions describes requirements for all commands. Individual commands may
describe additional requirements.
The normal outputs (see ACS-4) and error outputs (see ACS-4) for each command include:
a) a one byte STATUS field (see 9.2);
b) a one byte ERROR field (see 9.3);
c) a one byte INTERRUPT REASON field (see 9.4), if required, for certain commands (e.g., PACKET, READ
DMA QUEUED, READ DMA QUEUED EXT, WRITE DMA QUEUED, and WRITE DMA QUEUED EXT);
d) a COUNT field (see 9.5), SATA STATUS field (see 9.7), and SACTIVE field (see 9.6), if required, for certain
commands (e.g., the READ FPDMA QUEUED command, Sanitize Device feature set commands, and WRITE
FPDMA QUEUED command); and
e) an LBA field that may contain the LBA of First Unrecoverable Error (see 9.8.2).
f) Device Signatures field for Normal Output (see 9.9).
Status field
Overview
The STATUS field is one byte and is conveyed as an output from the device to the host (see applicable transport
standard). Each bit, when valid, is defined in Table 31 STATUS field.
Table 31
STATUS field
Bit
Name
Reference
7
BUSY bit
9.2.3
6
DEVICE READY bit
9.2.7
5
DEVICE FAULT bit
9.2.6
4
N/A
3
DATA REQUEST bit
9.2.5
2
ALIGNMENT ERROR bit
9.2.2
1
SENSE DATA AVAILABLE bit
9.2.9
0
CHECK CONDITION bit
9.2.4
ERROR bit
9.2.8
52
HGST Hard Disk Drive Specification
ALIGNMENT ERROR bit
The ALIGNMENT ERROR bit is set to one if:
a) the LOGICAL TO PHYSICAL SECTOR RELATIONSHIP SUPPORTED bit is set to one;
b) the LPS MISALIGNMENT REPORTING SUPPORTED bit is set to one;
c) the ALIGNMENT ERROR REPORTING field contains 01b or 10b; and
d) the device returns completion for a write command without an error where:
A) the first byte of data transfer does not begin at the first byte of a physical sector; or
B) the last byte of data transfer does not end at the last byte of a physical sector.
Otherwise, the ALIGNMENT ERROR bit is cleared to zero.
If an alignment error and another error occur during the processing of a write command, then the other error is
returned and the alignment error is not reported in the STATUS field (i.e, the ALIGNMENT ERROR bit is cleared
to zero). If an alignment error occurs, even if it is not reported in the STATUS field and there is space remaining in
the LPS Mis-alignment log, then an entry must be made in the log.
BUSY bit
The BUSY bit is transport dependent (see 9.2.10). Refer to the applicable transport standard for the usage of the
BUSY bit.
CHECK CONDITION bit
An ATAPI device shall set the CHECK CONDITION bit to one if the:
a) value in the SENSE KEY field (see 9.3.7) is greater than zero;
b) ABORT bit (see 9.3.2) is set to one;
c) END OF MEDIA bit (see 9.3.3) is set to one; or
d) ILLEGAL LENGTH INDICATOR bit (see 9.3.5) is set to one.
Otherwise, an ATAPI device shall clear the CHECK CONDITION bit to zero.
DATA REQUEST bit
The DATA REQUEST bit is transport dependent (see 9.2.10). Refer to the appropriate transport standard for the
usage of the DATA REQUEST bit.
DEVICE FAULT bit
If the device is in a condition where continued operation may affect the integrity of user data on the device (e.g.,
failure to spin-up without error, or no spares remaining for reallocation), then the device does:
a) return command aborted with the DEVICE FAULT bit set to one in response to all commands (e.g., IDENTIFY
DEVICE commands, IDENTIFY PACKET DEVICE commands) except REQUEST SENSE DATA EXT
commands;
b) complete a REQUEST SENSE DATA EXT command without error with a sense key of HARDWARE ERROR
with additional sense code of INTERNAL TARGET FAILURE (see SPC-4), if:
A) the SENSE DATA SUPPORTED bit is set to one; and
B) the REQUEST SENSE DEVICE FAULT SUPPORTED bit is set to one;
or
c) return command aborted with the DEVICE FAULT bit set to one in response to a REQUEST SENSE DATA EXT
command, if:
A) the SENSE DATA SUPPORTED bit is cleared to zero; or
B) the SENSE DATA SUPPORTED bit is set to one and the REQUEST SENSE DEVICE FAULT SUPPORTED
bit is cleared to zero.
Power cycling the device is the only mechanism that may clear the DEVICE FAULT bit to zero.
If the DEVICE FAULT bit has been cleared to zero, then it may remain clear until a command that affects user data
integrity is received by the device.
DEVICE READY bit
The DEVICE READY bit is transport dependent (see 9.2.10). Refer to the applicable transport standard for the
usage of the DEVICE READY bit.
53
HGST Hard Disk Drive Specification
ERROR bit
An ATA device shall set the ERROR bit to one if any bit in the ERROR field (see 9.3) is set to one. Otherwise, an
ATA device shall clear the ERROR bit to zero.
SENSE DATA AVAILABLE bit
The SENSE DATA AVAILABLE bit shall be set to one if:
a) the SENSE DATA SUPPORTED bit is set to one;
b) the SENSE DATA ENABLED bit is set to one; and
c) the device has sense data to report after processing any command.
Otherwise, the SENSE DATA AVAILABLE bit shall be cleared to zero.
The ERROR bit and the SENSE DATA AVAILABLE bit may both be set to one.
Bit 1 of the STATUS field is obsolete if:
a) the SENSE DATA SUPPORTED bit is cleared to zero; or
b) the SENSE DATA ENABLED bit is cleared to zero.
Transport Dependent bits and fields
All bits and fields that are labelled transport dependent are defined in the transport standards.
54
HGST Hard Disk Drive Specification
ERROR field
Overview
The ERROR field is one byte and is conveyed as an output from the device to the host (see applicable transport
standard). Each bit, when valid, is defined in Table 32 ERROR field
Table 32 ERROR field
Bit
Name
Reference
7:4
SENSE KEY field
9.3.7
7
INTERFACE CRC bit
9.3.6
6
UNCORRECTABLE ERROR bit
9.3.8
5
Obsolete
4
ID NOT FOUND bit
3
Obsolete
2
ABORT bit
9.3.2
1
END OF MEDIA bit
9.3.3
0
ILLEGAL LENGTH INDICATOR bit
9.3.5
9.3.4
ABORT bit
The ABORT bit is set to one if the device aborts the command. The ABORT bit is cleared to zero if the device does
not abort the command.
If the host requested an address outside of the range of user addressable addresses, then:
a) the ID NOT FOUND bit (see 9.3.4) is set to one and the ABORT bit is cleared to zero; or
b) the ID NOT FOUND bit is cleared to zero and the ABORT bit is set to one.
If a user addressable address was not found (see 9.3.4), the ABORT bit is cleared to zero.
If the INTERFACE CRC bit (see 9.3.6) is set to one, the ABORT bit is set to one.
END OF MEDIA bit
The END OF MEDIA bit set to one indicates that the end of the media has been reached by an ATAPI device
(see SFF 8020i). Otherwise, the END OF MEDIA bit is cleared to zero.
ID NOT FOUND bit
The ID NOT FOUND bit is set to one if:
a) a user-addressable address was not found; or
b) an address outside of the range of user-addressable addresses is requested and the ABORT bit (see 9.3.2) is
cleared to zero.
Otherwise, the ID NOT FOUND bit is cleared to zero.
ILLEGAL LENGTH INDICATOR bit
The operation of the ILLEGAL LENGTH INDICATOR bit is specific to the SCSI command set implemented by
ATAPI devices (e.g., devices defined by MMC-6).
INTERFACE CRC bit
The INTERFACE CRC bit is set to one if an interface CRC error occurred during an Ultra DMA data transfer.
The INTERFACE CRC bit is cleared to zero if an interface CRC error did not occur during an Ultra DMA data
transfer.
The value of the INTERFACE CRC bit may be applicable to Multiword DMA transfers and PIO data transfers. If the
INTERFACE CRC bit is set to one, the ABORT bit is set to one.
55
HGST Hard Disk Drive Specification
SENSE KEY field
The operation of this field is specific to the SCSI command set implemented by ATAPI devices (e.g., devices
defined by MMC-6).
UNCORRECTABLE ERROR bit
The UNCORRECTABLE ERROR bit is set to one if the data contains an uncorrectable error. The
UNCORRECTABLE ERROR bit is cleared to zero if the data does not contain an uncorrectable error.
56
HGST Hard Disk Drive Specification
INTERRUPT REASON field
Overview
The INTERRUPT REASON field (see Table 33 INTERRUPT REASON field) is an output from the device to the
host for commands in the PACKET feature set and NCQ feature set.
Table 33
INTERRUPT REASON field
Bit
Name
Reference
7:2
Obsolete
7
INPUT/OUTPUT bit
9.4.3
6
COMMAND/DATA bit
9.4.2
COMMAND/DATA bit
The COMMAND/DATA bit is cleared to zero if the transfer is data. Otherwise, the COMMAND/DATA bit is set to
one.
INPUT/OUTPUT bit
The INPUT/OUTPUT bit is cleared to zero if the transfer is to the device. The INPUT/OUTPUT bit is set to one if
the transfer is to the host.
57
HGST Hard Disk Drive Specification
COUNT field
Overview
The COUNT field is an output from the device to the host. The uses of the COUNT field depend on the command
being processed. Commands may use the COUNT field to indicate the:
a) the tag of an NCQ command (see 9.5.2) for commands in the NCQ feature set.
NCQ Tag
For commands in the NCQ feature set, the COUNT field may be used to indicate the tag of an NCQ command that
caused an error.
SACTIVE field
See ATA8-AST for a description of the SACTIVE field.
SATA STATUS field
See ATA8-AST for a description of the SATA STATUS field (i.e., word 0 of the Set Device Bits FIS).
LBA field
Overview
The LBA field is an output from the device to the host. The uses of the LBA field depend on the command being
processed. Commands may use the LBA field to indicate the LBA of the first unrecovered error (see 9.8.2).
LBA of First Unrecoverable Error
For commands that return LBA of the first unrecoverable error, if an unrecoverable error was encountered prior to
or during the processing of that command, then the LBA field contains the LBA of the first unrecoverable error.
This value does not provide any status information regarding any data transferred by the command that returned
the error. The value may be outside the LBA range of the command that returned the error.
58
HGST Hard Disk Drive Specification
Device Signatures for Normal Output
Overview
Table 35 Device signatures for COUNT and LBA field specifies the normal outputs for the READ SECTOR(S)
command (see ACS-4), the IDENTIFY DEVICE command (see ACS-4), and the EXECUTE DEVICE DIAGNOSTIC
command (see ACS-4).
Table 34 Device Signatures for Normal Output
Field
ERROR
COUNT
LBA
DEVICE
STATUS
Description
Diagnostic Results – The diagnostic code as described in Table 38 Diagnostic Codes is returned.
This field shall be reserved for the EXECUTE DEVICE DIAGNOSTIC command (see 12.5).
See Table 35
Device signatures for COUNT and LBA field
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent – See ACS-4
3:0 Reserved
Bit Description
7:6 Transport Dependent – See ACS-4
5 DEVICE FAULT bit – See ACS-4
4 N/A
3 Transport Dependent – See ACS-4
2 N/A
1 N/A
0 shall be cleared to zero
Table 35 Device signatures for COUNT and LBA field
Bits
ATA device
COUNT field (7:0)
LBA field (27:24)
LBA field (23:16)
LBA field (15:8)
LBA field (7:0)
01h
Reserved
00h
00h
01h
Host Managed
Zoned device
01h
Reserved
ABh
CDh
01h
Reserved for SATA
Obsolete
01h
Reserved
C3h
3Ch
01h
01h
Reserved
EBh
14h
01h
01h
Reserved
96h
69h
01h
59
HGST Hard Disk Drive Specification
N/A
Reserved
AAh
CEh
N/A
10 General Operation Descriptions
Reset Response
There are three types of reset in ATA as follows:
Power On Reset (POR)
The device executes a series of electrical circuitry diagnostics.
COMRESET
COMRESET is issued in Serial ATA bus.
The device resets the interface circuitry as well as Soft Reset.
Soft Reset (Software Reset)
SRST bit in the Device Control Register is set, and then is reset.
The device resets the interface circuitry according to the Set Features
requirement.
The actions of each reset are shown in Table 36
Table 36 Reset Response
Aborting Host interface
Aborting Device operation
Initialization of hardware
Internal diagnostic
Spinning spindle
Initialization of registers (*2)
Reverting programmed parameters to default
- Number of CHS
(set by Initialize Device Parameter)
- Multiple mode
- Write cache
- Read look-ahead
- ECC bytes
Disable Standby timer
Power mode
POR
COMRESET
Soft Reset
o
o
(*6)
o
o
o
(*1)
x
x
x
o
(*3)
o
(*1)
x
x
x
o
(*3)
o
(*5)
x
(*4)
x
(*4)
o ---- Execute
x ---- Not execute
Table Notes
(*1)
(*2)
(*3)
(*4)
(*5)
(*6)
Execute after the data in write cache has been written.
Default value on POR is shown in Table 37 “Default Register Values” on page 61.
The Set Features command with Feature register = CCh enables the device to revert these parameters to
the power on defaults.
In the case of Sleep mode, the device goes to Standby mode. In other case, the device does not change
current mode.
Idle when Power-Up in Standby feature set is disabled. Standby when Power-Up in Standby feature set is
enabled.
Spinning up when Power-Up in Standby feature set is disabled. Standby when Power-Up in Standby
feature set is enabled.
60
HGST Hard Disk Drive Specification
Register Initialization
Table 37 Default Register Values
Register
Default Value
Error
Sector Count
Sector Number
Cylinder Low
Cylinder High
Device/Head
Status
Alternate Status
Diagnostic Code
01h
01h
00h
00h
00h
50h
50h
After power on, hard reset, or software reset, the register values are initialized as shown in Table 37.
Table 38 Diagnostic Codes
Code
Description
01h
02h
No error Detected
Formatter device error
03h
04h
Sector buffer error
ECC circuitry error
05h
Controller microprocessor error
The meaning of the Error Register diagnostic codes resulting from power on, hard reset or the Execute Device
Diagnostic command is shown in Table 38
Diagnostic and Reset considerations
In each case of Power on Reset, COMRESET, Soft reset, and EXECUTE DEVICE DIAGNOSTIC command, the
device is diagnosed. And Error register is set as shown in Table 29 Error Register.
61
HGST Hard Disk Drive Specification
Sector Addressing Mode
All addressing of data sectors recorded on the device’s media is by a logical sector address. The logical CHS
address for HSH721414ALx6xx is different from the actual physical CHS location of the data sector on the disk
media. All addressing of data sectors recorded on the device’s media.
HSH721414ALx6xx support both Logical CHS Addressing Mode and LBA Addressing Mode as the sector
addressing mode.
The host system may select either the currently selected CHS translation addressing or LBA addressing on a
command-by-command basis by using the L bit in the DEVICE/HEAD register. So a host system must set the L bit
to 1 if the host uses LBA Addressing mode.
Logical CHS Addressing Mode
The logical CHS addressing is made up of three fields: the cylinder number, the head number and the sector
number. Sectors are numbered from 1 to the maximum value allowed by the current CHS translation mode but can
not exceed 255(0FFh). Heads are numbered from 0 to the maximum value allowed by the current CHS translation
mode but can not exceed 15(0Fh). Cylinders are numbered from 0 to the maximum value allowed by the current
CHS translation mode but cannot exceed 65535(0FFFFh).
When the host selects a CHS translation mode using the INITIALIZE DEVICE PARAMETERS command, the host
requests the number of sectors per logical track and the number of heads per logical cylinder. The device then
computes the number of logical cylinders available in requested mode.
The default CHS translation mode is described in the Identify Device Information. The current CHS translation
mode also is described in the Identify Device Information.
LBA Addressing Mode
Logical sectors on the device shall be linearly mapped with the first LBA addressed sector (sector 0) being the
same sector as the first logical CHS addressed sector (cylinder 0, head 0, sector 1). Irrespective of the logical CHS
translation mode currently in effect, the LBA address of a given logical sector does not change. The following is
always true:
LBA = ( (cylinder * heads_per_cylinder + heads)
* sectors_per_track ) + sector - 1
Where heads_per_cylinder and sectors_per_track are the current translation mode values.
On LBA addressing mode, the LBA value is set to the following register.
Device/Head
Cylinder High
Cylinder Low
Sector Number




LBA bits
LBA bits
LBA bits
LBA bits
27-24
23-16
15- 8
7- 0
62
HGST Hard Disk Drive Specification
Power Management Feature
The power management feature set allows an application client to modify the behavior of a device in a manner that
reduces the power required to operate. The power management feature set provides a set of commands and a
timer that enables a device to implement low power consumption modes.
The Power Management feature set implements the following set of functions.
1. A Standby timer
2. Idle command
3. Idle Immediate command
4. Sleep command
5. Standby command
6. Standby Immediate command
Power Mode
The lowest power consumption when the device is powered on occurs in Sleep Mode. When in sleep mode, the
device requires a reset to be activated.
In Idle Mode the device is capable of responding immediately to media access requests.
In Active Mode the device is under executing a command or accessing the disk media with read look-ahead function
or writes cache function.
Active Idle mode
Servo is mostly off but heads are loaded. The spindle is rotated at the full speed.
Low Power Idle mode
Additional electronics are powered off, and heads are unloaded on the ramp, however the spindle is still rotated at
the full speed.
Low RPM Idle mode
The heads are unloaded on the ramp, and the spindle is rotated at the 85-90% of the full speed.
Standby Mode
The device interface is capable of accepting commands, but as the media may not immediately accessible, there
is a delay while waiting for the spindle to reach operating speed.
63
HGST Hard Disk Drive Specification
Power Management Commands
The Check Power Mode command allows a host to determine if a device is in, going, to or leaving standby or idle
mode.
The Idle and Idle Immediate commands move a device to idle mode immediately from the active or standby modes.
The idle command also sets the standby timer count and enables or disables the standby timer.
The Standby and Standby Immediate commands move a device to standby mode immediately from the active or
idle modes. The standby command also sets the standby timer count and enables or disables the Standby timer.
The Sleep command moves a device to sleep mode. The device’s interface becomes inactive after the device
reports command completion for the sleep command. A device only transitions from sleep mode after processing
hardware reset, a software reset.
Standby timer
The standby timer provides a method for the device to automatically enter standby mode from either active or idle
mode following a host programmed period of inactivity. If the device is in the active or idle mode, the device waits
for the specified time period and if no command is received, the device automatically enters the standby mode.
If the value of SECTOR COUNT Register on Idle command or Standby command is set to 00h, the standby timer
is disabled.
Interface Capability for Power Modes
Each power mode affects the physical interface as defined in the following table:
Table 39 Power conditions
Mode
Active
Idle
Standby
sleep
BSY
RDY
x
0
0
x
x
1
1
x
Interface active
Yes
Yes
Yes
No
Media
Active
Active
Inactive
Inactive
Ready (RDY) is not a power condition. A device may post ready at the interface even though the media may not
be accessible.
64
HGST Hard Disk Drive Specification
SMART Function
The intent of Self-monitoring, analysis and reporting technology (SMART) is to protect user data and prevent
unscheduled system downtime that may be caused by predictable degradation and/or fault of the device. By
monitoring and storing critical performance and calibration parameters, SMART devices employ sophisticated data
analysis algorithms to predict the likelihood of near-term degradation or fault condition. By alerting the host system
of a negative reliability status condition, the host system can warn the user of the impending risk of a data loss and
advise the user of appropriate action.
Attributes
Attributes are the specific performance or calibration parameters that are used in analyzing the status of the device.
Attributes are selected by the device manufacturer based on that attribute’s ability to contribute to the prediction of
degrading or faulty conditions for that particular device. The specific set of attributes being used and the identity of
these attributes is vendor specific and proprietary.
Attribute values
Attribute values are used to represent the relative reliability of individual performance or calibration attributes. The
valid range of attribute values is from 1 to 253 decimal. Higher attribute values indicate that the analysis algorithms
being used by the device are predicting a lower probability of a degrading or faulty condition existing. Accordingly,
lower attribute values indicate that the analysis algorithms being used by the device are predicting a higher
probability of a degrading or faulty condition existing.
Attribute thresholds
Each attribute value has a corresponding attribute threshold limit which is used for direct comparison to the attribute
value to indicate the existence of a degrading or faulty condition. The numerical values of the attribute thresholds
are determined by the device manufacturer through design and reliability testing and analysis. Each attribute
threshold represents the lowest limit to which its corresponding attribute value can be equal while still retaining a
positive reliability status. Attribute thresholds are set at the device manufacturer’s factory and cannot be changed
in the field. The valid range for attribute thresholds is from 1 through 253 decimal.
Threshold exceeded condition
If one or more attribute values, whose Pre-failure bit of their status flag is set, are less than or equal to their
corresponding attribute thresholds, then the device reliability status is negative, indicating an impending degrading
or faulty condition.
SMART commands
The SMART commands provide access to attribute values, attribute thresholds and other logging and reporting
information.
Off-line Read Scanning
The device provides the off-line read scanning feature with reallocation. This is the extension of the off-line data
collection capability. The device performs the entire read scan with reallocation for the marginal sectors to prevent
the user data lost.
If interrupted by the host during the read scanning, the device services the host command.
Error Log
Logging of reported errors is supported. The device provides information on the last five errors that the device
reported as described in SMART error log sector. The device may also provide additional vendor specific
information on these reported errors. The error log is not disabled when SMART is disabled. Disabling SMART
shall disable the delivering of error log information via the SMART READ LOG SECTOR command.
If a device receives a firmware modification, all error log data is discarded and the device error count for the life of
the device is reset to zero.
65
HGST Hard Disk Drive Specification
Self-test
The device provides the self-test features which are initiated by SMART Execute Off-line Immediate command.
The self-test checks the fault of the device, reports the test status in Device Attributes Data and stores the test
result in the SMART self-test log sector as described in SMART self-test log data structure. All SMART attributes
are updated accordingly during the execution of self-test.
If interrupted by the host during the self-tests, the device services the host command.
If the device receives a firmware modification, all self-test log data is discarded.
66
HGST Hard Disk Drive Specification
Security Mode Feature Set
Security Mode Feature Set is a powerful security feature. With a device lock password, a user can prevent
unauthorized access to hard disk device even if the device is removed from the computer.
The following commands are supported for this feature.
Security Set Password
(‘F1’h)
Security Unlock
(‘F2’h)
Security Erase Prepare
(‘F3’h)
Security Erase Unit
(‘F4’h)
Security Freeze Lock
(‘F5’h)
Security Disable Password
(‘F6’h)
Security mode
Following security modes are provided.
Device Locked mode
The device disables media access commands after power on. Media accesses
commands are enabled by either a security unlock command or a security erases unit
command.
Device Unlocked mode
The device enables all commands. If a password is not set this mode is entered after
power on, otherwise it is entered by a security unlock or a security erases unit
command.
Device Frozen mode
The device enables all commands except those which can update the device lock
function, set/change password. The device enters this mode via a Security Freeze Lock
command. It cannot quit this mode until power off.
Security Level
Following security levels are provided.
High level security
When the device lock function is enabled and the User Password is forgotten the device
can be unlocked via a Master Password.
Maximum level security
When the device lock function is enabled and the User Password is forgotten then only
the Master Password with a Security Erase Unit command can unlock the device. Then
user data is erased.
Password
This function can have 2 types of passwords as described below.
Master Password
When the Master Password is set, the device does NOT enable the Device Lock
Function, and the device can NOT be locked with the Master Password, but the Master
Password can be used for unlocking the device locked.
Identify Device Information word 92 contains the value of the Master Password
Revision Code set when the Master Password was last changed. Valid values are
0001h through FFFEh.
User Password
The User Password should be given or changed by a system user. When the User
Password is set, the device enables the Device Lock Function, and then the device is
locked on next power on reset or hard reset.
The system manufacturer/dealer who intends to enable the device lock function for the end users, must set the
master password even if only single level password protection is required.
67
HGST Hard Disk Drive Specification
Operation example
Master Password setting
The system manufacturer/dealer can set a new Master Password from default Master Password using the Security
Set Password command, without enabling the Device Lock Function.
The Master Password Revision Code is set to FFFEh as shipping default by the HDD manufacturer
User Password setting
When a User Password is set, the device will automatically enter lock mode the next time the device is powered
on.
Figure 10 Initial Setting
68
HGST Hard Disk Drive Specification
Operation from POR after User Password is set
When Device Lock Function is enabled, the device rejects media access command until a Security Unlock
command is successfully completed.
POR
Device Locked mode
N
Unlock CMD
Erase Prepare
Password
Match ?
Erase Unit
Password
Match ?
Y
Media access
command (*1)
Non-Media access
command (*1)
Reject
Complete
N
Y
Enter Device
Unlock mode
Complete
Erase Unit
Lock function
Disable
Normal operation : All commands are available
Freeze Lock command
Enter Device Frozen mode
Normal Operation except Set Password,
Disable Password, Erase Unit, Unlock commands.
(*1) Refer to 10.6.5 on the page.71
Figure 11 Usual Operation
69
HGST Hard Disk Drive Specification
User Password Lost
If the User Password is forgotten and High level security is set, the system user can’t access any data. However,
the device can be unlocked using the Master Password.
If a system user forgets the User Password and Maximum security level is set, data access is impossible. However,
the device can be unlocked using the Security Erase Unit command to unlock the device and erase all user data
with the Master Password.
User Password Lost
LEVEL ?
High
Unlock CMD with Master Password
Maximum
Erase Prepare Command
Erase Unit
Command
with Master Password
Normal operation but data lost
Normal operation
Figure 12 Password Lost
Attempt limit for SECURITY UNLOCK command
The SECURITY UNLOCK command has an attempt limit. The purpose of this attempt limit is to prevent that
someone attempts to unlock the drive by using various passwords many times.
The device counts the password mismatch. If the password does not match, the device counts it up without
distinguishing the Master password and the User password. If the count reaches 5, EXPIRE bit (bit 4) of Word 128
in Identify Device information is set, and then SECURITY ERASE UNIT command and SECURITY UNLOCK
command are aborted until a hard reset or a power off. The count and EXPIRE bit are cleared after a power on
reset or a hard reset.
70
HGST Hard Disk Drive Specification
Command Table
This table shows the device’s response to commands when the Security Mode Feature Set (Device lock function)
is enabled.
Table 40 Command table for device lock operation -1
Command
Check Power Mode
Crypto Scramble Ext (data encryption model
only)
Device Configuration Restore
Device Configuration Freeze Lock
Device Configuration Identify
Device Configuration Set
Download Microcode
Download Microcode DMA
Execute Device Diagnostic
Flush Cache
Flush Cache Ext
Format Track
Identify Device
Idle
Idle Immediate
Initialize Device Parameters
NCQ NON-DATA
Overwrite Ext
Read Buffer
Read DMA
Read DMA Ext
Read FPDMA Queued
Read Log Ext
Read Log DMA Ext
Read Multiple
Read Multiple Ext
Read Native Max Address
Read Native Max Ext
Read Sector(s)
Read Sector(s) Ext
Read Verify Sector(s)
Read Verify Sector(s) Ext
Recalibrate
Receive FPDMA Queued
Request Sense Data Ext
Sanitize Freeze Lock Ext
Locked Mode
Unlocked Mode
Frozen Mode
Executable
Executable
Executable
Command aborted
Executable
Executable
Command aborted
Command aborted
Command aborted
Command aborted
Command aborted
Command aborted
Executable
Command aborted
Command aborted
Command aborted
Executable
Executable
Executable
Executable
Command aborted
Command aborted
Executable
Command aborted
Command aborted
Command aborted
Executable
Executable
Command aborted
Command aborted
Executable
Executable
Command aborted
Command aborted
Command aborted
Command aborted
Executable
Command aborted
Executable
Command aborted
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
71
HGST Hard Disk Drive Specification
Table 41 Command table for device lock operation -2
Command
Locked Mode
Unlocked Mode
Frozen Mode
Executable
Command aborted
Command aborted
Command aborted
Command aborted
Command aborted
Executable
Command aborted
Executable
Executable
Command aborted
Command aborted
Executable
Executable
Executable
Command aborted
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Executable
Command aborted
Executable
Executable
Executable
Executable
Executable
Command aborted
Command aborted
Command aborted
Executable
Command aborted
Command aborted
Executable
Executable
Executable
Executable
Set Max Address
Command aborted
Executable
Executable
Set Max Address Ext
Command aborted
Executable
Executable
Set Multiple Mode
Executable
Executable
Executable
Sleep
Executable
Executable
Executable
SMART Disable Operations
Executable
Executable
Executable
SMART Enable/Disable Attribute Autosave
Executable
Executable
Executable
SMART Enable Operations
Executable
Executable
Executable
SMART Execute Off-line Immediate
Executable
Executable
Executable
SMART Read Attribute Values
Executable
Executable
Executable
SMART Read Attribute Thresholds
Executable
Executable
Executable
SMART Return Status
Executable
Executable
Executable
SMART Save Attribute Values
Executable
Executable
Executable
SMART Read Log Sector
Executable
Executable
Executable
SMART Write Log Sector
Executable
Executable
Executable
SMART Enable/Disable Automatic Off-Line
Executable
Executable
Executable
Standby
Executable
Executable
Executable
Standby Immediate
Executable
Executable
Executable
Write Buffer
Executable
Executable
Executable
Write DMA
Command aborted
Executable
Executable
Write DMA Ext
Command aborted
Executable
Executable
Write DMA FUA Ext
Command aborted
Executable
Executable
Write FPDMA Queued
Command aborted
Executable
Executable
Sanitize Status Ext
SCT Read/Write Long
SCT Write Same
SCT Error Recovery Control
SCT Feature Control
SCT Data Table
SCT Read Status
Security Disable Password
Security Erase Prepare
Security Erase Unit
Security Freeze Lock
Security Set Password
Security Unlock
Seek
Set Features
72
HGST Hard Disk Drive Specification
Table 42 Command table for device lock operation -3
Command
Locked Mode
Unlocked Mode
Frozen Mode
Write Log Ext
Command aborted
Executable
Executable
Write Log DMA Ext
Command aborted
Executable
Executable
Write Multiple
Command aborted
Executable
Executable
Write Multiple Ext
Command aborted
Executable
Executable
Write Multiple FUA Ext
Command aborted
Executable
Executable
Write Sector(s)
Command aborted
Executable
Executable
Write Sector(s) Ext
Command aborted
Executable
Executable
CLOSE ZONE EXT
Command aborted
Executable
Executable
FINISH ZONE EXT
Command aborted
Executable
Executable
OPEN ZONE EXT
Command aborted
Executable
Executable
Executable
Executable
Executable
Command aborted
Executable
Executable
REPORT ZONES EXT
RESET WRITE POINTER EXT
73
HGST Hard Disk Drive Specification
Host Protected Area Feature
Host Protected Area Feature is to provide the ‘protected area’ which can not be accessed via conventional method.
This ‘protected area’ is used to contain critical system data such as BIOS or system management information. The
contents of entire system main memory may also be dumped into ‘protected area’ to resume after system power
off. The LBA/CYL changed by following command affects the Identify Device Information.
The following set of commands is implemented for this function.
Read Native Max ADDRESS
(‘F8’h)
Set Max ADDRESS
(‘F9’h)
Example for operation (In LBA mode)
Assumptions:
For better understanding, the following example uses actual values for LBA, size, etc. Since it is just an example,
these values could be different.
Device characteristics
Capacity (native)
:
6,498,680,832
:
12,692,735
Required size for protected area
:
206,438,400
Required blocks for protected area
:
403,200
Customer usable device size
:
6,292,242,432
Customer usable sector count
:
12,289,536
LBA range for protected area
: BB8600h to C1ACFFh
Max LBA
(native)
byte (6.4GB)
(C1ACFFh)
byte
(062700h)
byte (6.2GB)
(BB8600h)
1. Shipping HDDs from HDD manufacturer
When the HDDs are shipped from HDD manufacturer, the device has been tested to have usable capacity of
6.4GB besides flagged media defects not to be visible by system.
2. Preparing HDDs at system manufacturer
Special utility software is required to define the size of protected area and store the data into it.
The sequence is:
Issue Read Native Max Address command to get the real device maximum LBA. Returned value shows that
native device Maximum LBA is 12,692,735 (C1ACFFh) regardless of the current setting.
Make entire device be accessible including the protected area by setting device Maximum LBA as
12,692,735 (C1ACFFh) via Set Max Address command. The option could be either nonvolatile or volatile.
Test the sectors for protected area (LBA >=
12,289,536 (BB8600h)) if required.
Write information data such as BIOS code within the protected area.
Change maximum LBA using Set Max Address command to 12,289,535 (BB85FFh) with nonvolatile
option.
From this point, the protected area cannot be accessed till next Set Max Address command is issued. Any
BIOSes, device drivers, or application software access the HDD as if that is the 6.2GB device because the
device acts exactly the same as real 6.2GB device does.
3.
Conventional usage without system software support
Since the HDD works as 6.2GB device, there is no special care to use this device for normal use.
4.
Advanced usage using protected area
The data in the protected area is accessed by following.
Issue Read Native Max Address command to get the real device maximum LBA. Returned value shows that
native device Maximum LBA is 12,692,735 (C1ACFFh) regardless of the current setting.
Make entire device be accessible including the protected area by setting device Maximum LBA as
74
HGST Hard Disk Drive Specification
12,692,735 (C1ACFFh) via Set Max Address command with volatile option. By using this option, unexpected
power removal or reset will not make the protected area remained accessible.
Read information data from protected area.
Issue hard reset or POR to inhibit any access to the protected area.
Security extensions
1. Set Max Set Password
2. Set Max Lock
3. Set Max Freeze Lock
4. Set Max Unlock.
The Set Max Set Password command allows the host to define the password to be used during the current power
on cycle. The password does not persist over a power cycle but does persist over a hardware or software reset.
This password is not related to the password used for the Security Mode Feature set. When the password is set
the device is in the Set_Max_Unlocked mode. The Set Max Lock command allows the host to disable the Set Max
commands (except set Max Unlock) until the next power cycle or the issuance and acceptance of the Set Max
Unlock command. When this command is accepted the device is in the Set_Max_Locked mode. The Set Max
Unlock command changes the device from the Set_Max_Locked mode to the Set_Max_Unlocked mode. The Set
Max Freeze Lock command allows the host to disable the Set Max commands (including Set Max UNLOCK) until
the next power cycle. When this command is accepted the device is in the Set_Max_Frozen mode.
The IDENTIFY DEVICE response word 83, bit 8 indicates that this extension is supported if set, and word 86, bit 8
indicate the Set Max security extension enabled if set.
75
HGST Hard Disk Drive Specification
Write Cache Function
Write cache is a performance enhancement whereby the device reports as completing the write command (Write
Sector(s), Write Multiple and Write DMA) to the host as soon as the device has received all of the data into its
buffer. And the device assumes responsibility to write the data subsequently onto the disk.
 While writing data after completed acknowledgment of a write command, soft reset or hard reset does not affect
its operation. But power off terminates writing operation immediately and unwritten data are to be lost.
 Soft reset, Standby (Immediate) command and Flush Cache commands during writing the cached data are
executed after the completion of writing to media. So the host system can confirm the completion of write cache
operation by issuing Soft reset, Standby (Immediate) command or Flush Cache command to the device before
power off.
Reassign Function
The reassign Function is used with read commands and write commands. The sectors of data for reassignment
are prepared as the spare data sector.
This reassignment information is registered internally, and the information is available right after completing the
reassign function. Also the information is used on the next power on reset or hard reset.
If the number of the spare sector reaches 0 sectors, the reassign function will be disabled automatically.
The spare tracks for reassignment are located at regular intervals from Cylinder 0. As a result of reassignment, the
physical location of logically sequenced sectors will be dispersed.
Auto Reassign Function
The sectors that show some errors may be reallocated automatically when specific conditions are met. The spare
tracks for reallocation are located at regular intervals from Cylinder 0. The conditions for auto-reallocation are
described below.
Non recovered write errors
When a write operation can not be completed after the Error Recovery Procedure (ERP) is fully carried out, the
sector(s) are reallocated to the spare location. An error is reported to the host system only when the write cache is
disabled and the auto reallocation is failed.
If the write cache function is ENABLED, and when the number of available spare sectors reaches 0 sectors, both
auto reassign function and write cache function are disabled automatically.
Non recovered read errors
When a read operation is failed after defined ERP is fully carried out, a hard error is reported to the host system.
This location is registered internally as a candidate for the reallocation. When a registered location is specified as
a target of a write operation, a sequence of media verification is performed automatically. When the result of this
verification meets the criteria, this sector is reallocated.
Recovered read errors
When a read operation for a sector failed once then recovered at the specific ERP step, this sector of data is
reallocated automatically. A media verification sequence may be run prior to the relocation according to the predefined conditions.
76
HGST Hard Disk Drive Specification
Power-up in Standby feature set
Power-Up In Standby feature set allows devices to be powered-up into the Standby power management state to
minimize inrush current at power-up and to allow the host to sequence the spin-up of devices.
This feature set will be enabled/disabled via the SET FEATURES command. The enabling of this feature set shall
be persistent after power cycle.
A device needs a SET FEATURES subcommand to spin-up to active state when the device has powered-up into
Standby. The device remains in Standby until the SET FEATURES subcommand is received.
If power-up into Standby is enabled, when an IDENTIFY DEVICE is received while the device is in Standby as a
result of powering up into Standby, the device shall set word 0 bit 2 to one to indicate that the response is incomplete,
then only words 0 and 2 are correctly reported.
The IDENTIFY DEVICE information indicates the states as follows:
 identify device information is complete or incomplete
 this feature set is implemented
 this feature set is enabled or disabled
 the device needs the Set Features command to spin-up into active state
Advanced Power Management feature set (APM)
This feature allows the host to select an advanced power management level. The advanced power management
level is a scale from the lowest power consumption setting of 01h to the maximum performance level of FEh. Device
performance may increase with increasing advanced power management levels. Device power consumption may
increase with increasing advanced power management levels. The advanced power management levels contain
discrete bands, described in the section of Set Feature command in detail. This feature set uses the following
functions:
1. A SET FEATURES subcommand to enable Advanced Power Management
2. A SET FEATURES subcommand to disable Advanced Power Management
Advanced Power Management is independent of the Standby timer setting. If both Advanced Power Management
and the Standby timer are set, the device will go to the Standby state when the timer times out or the device’s
Advanced Power Management algorithm indicates that the Standby state should be entered.
The IDENTIFY DEVICE response word 83, bit 3 indicates that Advanced Power Management feature is supported
if set. Word 86, bit 3 indicates that Advanced Power Management is enabled if set. Word 91, bits 7-0 contain the
current Advanced Power Management level if Advanced Power Management is enabled.
48-bit Address Feature Set
The 48-bit Address feature set allows devices:
a) with capacities up to 281,474,976,710,655 logical sectors (i.e., up to 144,115,188,075,855,360 bytes for a 512byte logical block device); and
b) to transfer up to 65536 logical sectors in a single command.
The 48-bit Address feature set operates in LBA addressing only. Devices also implement commands using 28-bit
addressing, and 28-bit and 48-bit commands may be intermixed.
Support of the 48-bit Address feature set is indicated in the Identify Device response bit 10 words 83. In addition,
the maximum user LBA address accessible by 48-bit addressable commands is contained in Identify Device
response words 230 through 233.
When the 48-bit Address feature set is implemented, the native maximum address is the value returned by a Read
Native Max Address Ext command. If the native maximum address is equal to or less than 268,435,455, a Read
Native Max Address shall return the native maximum address. If the native maximum address is greater than
268,435,455, a Read Native Max Address shall return a value of 268,435,455.
77
HGST Hard Disk Drive Specification
SATA BIST (Built-in Self Test)
The device supports the following BIST modes, and begins operations when it receives BIST Activate FIS.
F – Far End Analog Loopback.
L – Far End Retimed Loopback
T – Far End Transmit only
A – ALIGN Bypass (valid only in combination with T bit)
S – Bypass Scrambling (valid only in combination with T bit)
SATA Interface Power Management
The device supports both receiving host-initiated interface power management requests and initiating interface
power management. The device initiates interface power management when the device enters its power saving
mode whose power consumption is lower than Idle mode.
78
HGST Hard Disk Drive Specification
Software Setting Preservation
When a device is enumerated, software will configure the device using SET FEATURES and other commands.
These software settings are often preserved across software reset but not necessarily across hardware reset. In
Parallel ATA, only commanded hardware resets can occur, thus legacy software only reprograms settings that are
cleared for the particular type of reset it has issued. In Serial ATA, COMRESET is equivalent to hard reset and a
non-commanded COMRESET may occur if there is an asynchronous loss of signal. Since COMRESET is
equivalent to hardware reset, in the case of an asynchronous loss of signal some software settings may be lost
without legacy software knowledge. In order to avoid losing important software settings without legacy driver
knowledge, the software settings preservation ensures that the value of important software settings is maintained
across a COMRESET. Software settings preservation may be enabled or disabled using SET FEATURES with
a subcommand code of 06h. If a device supports software settings preservation, the feature shall be enabled by
default.
COMRESET Preservation Requirements
The software settings that shall be preserved across COMRESET are listed below. The device is only required
to preserve the indicated software setting if it supports the particular feature/command the setting is associated
with.
INITIALIZE DEVICE PARAMETERS: Device settings established with the INITIALIZE DEVICE PARAMETERS
command.
Power Management Feature Set Standby Timer: The Standby timer used in the Power Management feature set.
Security mode state: The security mode state established by Security Mode feature set commands (refer to
section 6.13 of the ATA/6 specification). The device shall not transition to a different security mode state based
on a COMRESET. For example, the device shall not transition from the SEC5: Unlocked / not Frozen state to
state SEC4: Security enabled / Locked when a COMRESET occurs, instead the device shall remain in the SEC5:
Unlocked / not Frozen state.
SECURITY FREEZE LOCK: The Frozen mode setting established by the SECURITY FREEZE LOCK command.
SECURITY UNLOCK: The unlock counter that is decremented as part of a failed SECURITY UNLOCK command
attempt.
SET ADDRESS MAX (EXT):
The maximum LBA specified in SET ADDRESS MAX or SET ADDRESS MAX EXT.
SET FEATURES (Write Cache Enable/Disable): The write cache enable/disable setting established by the SET
FEATURES command with subcommand code of 02h or 82h.
SET FEATURES (Set Transfer Mode): PIO, Multiword, and UDMA transfer mode settings established by the SET
FEATURES command with subcommand code of 03h.
SET FEATURES (Advanced Power Management Enable/Disable): The advanced power management
enable/disable setting established by the SET FEATURES command with subcommand code of 05h or 85h. The
advanced power management level established in the Sector Count register when advanced power management
is enabled (SET FEATURES subcommand code 05h) shall also be preserved.
SET FEATURES (Read Look-Ahead): The read look-ahead enable/disable setting established by the SET
FEATURES command with subcommand code of 55h or AAh.
SET FEATURES (Reverting to Defaults): The reverting to power-on defaults enable/disable setting established
by the SET FEATURES command with a subcommand code of CCh or 66h.
SET MULTIPLE MODE: The block size established with the SET MULTIPLE MODE command.
SANITIZE FREEZE LOCK MODE: The Sanitize Frozen state established by the SANITIZE FREEZE LOCK EXT
command.
79
HGST Hard Disk Drive Specification
Serial ATA Revision 3.0 Optional Features
There are several optional features defined in Serial ATA Revision 3.0. The following shows whether these features
are supported or not.
Asynchronous Signal Recovery
The device supports asynchronous signal recovery defined in Serial ATA Revision 3.0.
Device Power Connector Pin 11 Definition
Serial ATA Revision 3.0 specification defines that Pin 11 of the power segment of the device connector may be
used to provide the host with an activity indication and disabling of staggered spin-up.
Phy Event Counters
Phy Event Counters are an optional feature to obtain more information about Phy level events that occur on the
interface. This information may aid designers and integrators in testing and evaluating the quality of the interface.
A device indicates whether it supports the Phy event counters feature in IDENTIFY (PACKET) DEVICE Word 76,
bit 10. The host determines the current values of Phy event counters by issuing the READ LOG EXT command
with a log page of 11h. The counter values shall not be retained across power cycles. The counter values shall be
preserved across COMRESET and software resets.
The counters defined can be grouped into three basic categories: those that count events that occur during Data
FIS transfers, those that count events that occur during non-Data FIS transfers, and events that are unrelated to
FIS transfers. Counters related to events that occur during FIS transfers may count events related to host-to-device
FIS transfers, device-to-host FIS transfers, or bi-directional FIS transfers. A counter that records bi-directional
events is not required to be the sum of the counters that record the same events that occur on device-to-host FIS
transfers and host-to-device FIS transfers.
Implementations that support Phy event counters shall implement all mandatory counters, and may support any of
the optional counters as shown in Table 43 Phy Event Counter Identifiers. Note that some counters may increment
differently based on the speed at which non-Data FIS retries are performed by the host and device. Implementations
may record CRC and non-CRC error events differently. For example, there is a strong likelihood that a disparity
error may cause a CRC error. Thus, the disparity error may cause both the event counter that records non-CRC
events and the event counter that records CRC events to be incremented for the same event. Another example
implementation difference is how a missing EOF event is recorded; a missing EOF primitive may imply a bad CRC
even though the CRC on the FIS may be correct. These examples illustrate that some Phy event counters are
sensitive to the implementation of the counters themselves, and thus these implementation sensitive counters
cannot be used as an absolute measure of interface quality between different implementations.
Counter Reset Mechanisms
There are two mechanisms by which the host can explicitly cause the Phy counters to be reset.
The first mechanism is to issue a BIST Activate FIS to the device. Upon reception of a BIST Activate FIS the device
shall reset all Phy event counters to their reset value. The second mechanism uses the READ LOG EXT command.
When the device receives a READ LOG EXT command for log page 11h and bit 0 in the Features register is set to
one, the device shall return the current counter values for the command and then reset all Phy event counter values.
80
HGST Hard Disk Drive Specification
Counter Identifiers
Each counter begins with a 16-bit identifier. Table 43 Phy Event Counter Identifiers defines the counter value
for each identifier. Any unused counter slots in the log page should have a counter identifier value of 0h.
Optional counters that are not implemented shall not be returned in log page 11h. A value of ‘0’ returned for a
counter means that there have been no instances of that particular event. There is no required ordering for event
counters within the log page; the order is arbitrary and selected by the device vendor.
For all counter descriptions, ‘transmitted’ refers to items sent by the device to the host and ‘received’ refers to items
received by the device from the host.
Bits 14:12 of the counter identifier convey the number of significant bits that counter uses. All counter values
consume a multiple of 16-bits. The valid values for bits 14:12 and the corresponding counter sizes are:
1h 16-bit counter
2h 32-bit counter
3h 48-bit counter
4h 64-bit counter
Any counter that has an identifier with bit 15 set to one is vendor specific. This creates a vendor specific range of
counter identifiers from 8000h to FFFFh. Vendor specific counters shall observe the number of significant bits 14:12
as defined above.
Table 43 Phy Event Counter Identifiers
Identifier
(Bits 11:0)
000h
001h
002h
003h
004h
005h
006h
007h
008h
009h
00Ah
00Bh
00Dh
00Fh
010h
012h
013h
10.16.3.2.1
Mandatory/
Optional
Mandatory
Mandatory
Optional
Optional
Optional
Optional
Optional
Optional
Optional
Optional
Mandatory
Optional
Optional
Optional
Optional
Optional
Optional
Description
No counter value; marks end of counters in the page
Command failed and ICRC bit set to one in Error register
R_ERR response for Data FIS
R_ERR response for Device-to-Host Data FIS
R_ERR response for Host-to-Device Data FIS
R_ERR response for Non-data FIS
R_ERR response for Device-to-Host Non-data FIS
R_ERR response for Host-to-Device Non-data FIS
Not supported (Device-to-Host non-Data FIS retries)
Transitions from drive PhyRdy to drive PhyNRdy
Signature Device-to-Host Register FISes sent due to a COMRESET
CRC errors within a Host-to-Device FIS
Non-CRC errors within a Host-to-Device FIS
Not supported (R_ERR response for Host-to-Device Data FIS due to CRC
errors)
Not supported (R_ERR response for Host-to-Device Data FIS due to nonCRC errors)
Not supported (R_ERR response for Host-to-Device Non-data FIS due to
CRC errors)
Not supported (R_ERR response for Host-to-Device Non-data FIS due to
non-CRC errors)
Counter Definitions
The counter definitions in this section specify the events that a particular counter identifier represents.
10.16.3.2.2
Identifier 000h
There is no counter associated with identifier 000h. A counter identifier of 000h indicates that there are no
additional counters in the log page.
10.16.3.2.3
Identifier 001h
The counter with identifier 001h returns the number of commands that returned an ending status with the ERR bit
set to one in the Status register and the ICRC bit set to one in the Error register.
81
HGST Hard Disk Drive Specification
10.16.3.2.4
Identifier 002h
The counter with identifier 002h returns the sum of (the number of transmitted Device-to-Host Data FISes to
which the host responded with R_ERRP) and (the number of received Host-to-Device Data FISes to which the
device responded with R_ERRP).
10.16.3.2.5
Identifier 003h
The counter with identifier 003h returns the number of transmitted Device-to-Host Data FISes to which the host
responded with R_ERRP.
10.16.3.2.6
Identifier 004h
The counter with identifier 004h returns the number of received Host-to-Device Data FISes to which the device
responded with R_ERRP. The count returned for identifier 004h is not required to be equal to the sum of the
counters with identifiers 00Fh and 010h.
10.16.3.2.7
Identifier 005h
The counter with identifier 005h returns the sum of (the number of transmitted Device-to-Host non-Data FISes to
which the host responded with R_ERRP) and (the number of received Host-to-Device non-Data FISes to which
the device responded with R_ERRP). Retries of non-Data FISes are included in this count.
10.16.3.2.8
Identifier 006h
The counter with identifier 006h returns the number of transmitted Device-to-Host non-Data FISes to which the
host responded with R_ERRP. Retries of non-Data FISes are included in this count.
10.16.3.2.9
Identifier 007h
The counter with identifier 007h returns the number of received Host-to-Device non-Data FISes to which the
device responded with R_ERRP. Retries of non-Data FISes are included in this count.
10.16.3.2.10 Identifier 009h
The counter with identifier 009h returns the number of times the device transitioned into the PHYRDY state from
the PHYNRDY state, including but not limited to asynchronous signal events, power management events, and
COMRESET events. If interface power management is enabled, then this counter may be incremented due to
interface power management transitions.
10.16.3.2.11 Identifier 00Ah
The counter with identifier 00Ah returns the number of transmitted Device-to-Host Register FISes with the device
reset signature in response to a COMRESET, which were successfully followed by an R_OK from the host.
10.16.3.2.12 Identifier 00Bh
The counter with identifier 00Bh returns the number of received Host-to-Device FISes of all types (Data and nonData) to which the device responded with R_ERRP due to CRC error.
10.16.3.2.13 Identifier 00Dh
The counter with identifier 00Dh returns the number of received Host-to-Device FISes of all types (Data and nonData) to which the devices responded with R_ERRP for reasons other than CRC error.
82
HGST Hard Disk Drive Specification
READ LOG EXT Log Page 11h
READ LOG EXT log page 11h is one page (512 bytes) in length. The first Dword of the log page contains
information that applies to the rest of the log page. Software should continue to process counters until a counter
identifier with value 0h is found or the entire page has been read. A counter identifier with value 0h indicates that
the log page contains no more counter values past that point. Log page 11h is defined in Table 44
Table 44 READ LOG EXT Log Page 11h data structure definition
Byte
0
1
2
3
…
n
n+1
n+2
n + Counter n
Length
…
508
509
510
511
7
6
5
4
3
Reserved
Reserved
Reserved
Reserved
…
2
1
0
Counter n Identifier
Counter n Value
…
Reserved
Data Structure Checksum
Counter n Identifier
Phy event counter identifier that corresponds to Counter n Value. Specifies the particular event counter that is
being reported. The Identifier is 16 bits in length.
Valid identifiers are listed in.
Counter n Value
Value of the Phy event counter that corresponds to Counter n Identifier. The number of significant bits is
determined by Counter n Identifier bits 14:12 (as defined in section 10.16.3.2). The length of Counter n Value
shall always be a multiple of 16-bits. All counters are one-extended. For example, if a counter is only physically
implemented as 8-bits when it reaches the maximum value of 0xFF, it shall be one-extended to 0xFFFF. The
counter shall stop (and not wrap to zero) after reaching its maximum value.
Counter n Length
Size of the Phy event counter as defined by bits 14:12 of Counter n Identifier.
The size of the Phy event counter shall be a multiple of 16-bits.
Data Structure Checksum
The data structure checksum is the 2’s complement of the sum of the first 511 bytes in the data structure. Each
byte shall be added with unsigned arithmetic and overflow shall be ignored. The sum of all 512 bytes of the data
structure will be zero when the checksum is correct.
Reserved All reserved fields shall be cleared to zero
83
HGST Hard Disk Drive Specification
NCQ NON-DATA (63h)
The NCQ NON-DATA feature allows the host to manage the outstanding NCQ commands and/or affect the
processing of NCQ commands.
The NCQ NON-DATA command is a non-data NCQ command. Only specified NCQ NON-DATA subcommands are
executed as Immediate NCQ commands.
If NCQ is disabled and an NCQ NON-DATA command is issued to the device, then the device aborts the command
with the ERR bit set to one in the Status register and the ABRT bit set to one in the Error register. This command
is prohibited for devices that implement the PACKET feature set. The queuing behavior of the device depends on
which subcommand is specified.
Table 45 NCQ NON-DATA – Command definition
Register
Features(7:0)
Features(15:8)
Count(7:0)
Count(15:8)
LBA(7:0)
LBA(15:8)
LBA(23:16)
LBA(31:24)
LBA(39:32)
LBA(47:40)
ICC(7:0)
Auxiliary(7:0)
Auxiliary(15:8)
Auxiliary(23:16)
Auxiliary(31:24)
Device(7:0)
Command(7:0)
7
6
5
Subcommand Specific
4
3
2
1
Subcommand
0
Subcommand Specific
TAG
Res
1
Reserved
Subcommand Specific
Subcommand Specific
Subcommand Specific
Subcommand Specific
Subcommand Specific
Subcommand Specific
Subcommand Specific
Reserved
Reserved
Reserved
Subcommand Specific
Reserved
0
63h
Res
Reserved
Table 45 defines the Subcommand values. If an invalid subcommand is specified, then the device aborts the
command with the ERR bit set to one in the Status register, the ABRT bit set to one in the Error register, and
causes all outstanding commands to be aborted.
Table 46
Subcommand Field
Subcommand
Description
Reference
0h
Abort NCQ queue
12.14.1
1h
Deadline Handling
12.14.2
2h - 4h
Reserved
5h
Set Features
Not supported
6h
Reserved
7h
ZAC Management Out
12.65.3
8h..Fh
Reserved
Subcommand Specific (TTAG) is the selected queue TAG. This allows the host to select the specific outstanding
queued command to be managed.
The error and normal returns for this command are subcommand specific.
84
HGST Hard Disk Drive Specification
Abort NCQ Queue Subcommand (0h)
A Subcommand set to 0h specifies the Abort NCQ Queue subcommand (see 12.14.1). The Abort NCQ Queue
subcommand is an immediate NCQ command. Support for this subcommand is indicated in the NCQ NON-DATA
log (see 10.16.4.4).
The Abort NCQ Queue subcommand affects only those NCQ commands for which the device has indicated
command acceptance before accepting this NCQ NON-DATA command.
This command is prohibited for devices that implement the PACKET feature set.
Normal Outputs
If a supported Abort Type parameter is specified, then the device indicates success, even if the command results
in no commands being aborted.
When an Abort NCQ Queue command completes successfully, a Set Device Bits FIS is sent to the host to
complete the Abort subcommand and commands that were aborted as a consequence of the Abort subcommand
by setting the ACT bits for those commands to one. This SDB FIS may also indicate other completed commands.
Error Outputs
The device returns command aborted if:
a) NCQ is disabled and an Abort NCQ queue command is issued to the device;
b) The value of the TTAG field equals the value of the TAG field;
c) The value of the TTAG field is an invalid TAG number; or
d) An unsupported Abort type parameter is specified.
Deadline Handling Subcommand (1h)
A Subcommand set to 1h specifies the Deadline Handling Subcommand (see 12.14.2). This subcommand
controls how NCQ Streaming commands are processed by the device. Support for this subcommand is indicated
in the NCQ NON-DATA Log (see 10.16.4.4).
The state of the WDNC and RDNC bits are preserved across software resets and COMRESETs (via Software
Setting Preservations), and are not preserved across power cycles.
Normal Outputs
If this Deadline Handling Subcommand command is supported, the device returns command completed with no
error.
When a Deadline Handling Subcommand command completes successfully, a Set Device Bits FIS is sent to the
host to complete the Deadline Handling subcommand. This SDB FIS may also indicate other completed
commands.
Error Outputs
The device returns command aborted if:
a) NCQ is disabled and a Deadline Handling command is issued to the device;
b) The value of the TTAG field equals the value of the TAG field;
c) The value of the TTAG field is an invalid TAG number; or
d) An unsupported Abort type parameter is specified.
SET FEATURES Subcommand (5h)
Set Features Subcommand is not supported. When the drive receives Set Features Subcommand from the host,
the drive will abort the command.
READ LOG EXT Log Page 12h(NCQ Non-data Log)
To determine the supported NCQ NON-DATA subcommands and their respective features, host software reads log
address 12h. This log is supported if the NCQ NON-DATA command is supported (i.e., IDENTIFY DEVICE word
77 bit 5 is set to one). Table 47 defines the 512 bytes that make up the SATA NCQ NON-DATA log. The value of
the General Purpose Logging Version word is 0001h.
85
HGST Hard Disk Drive Specification
Table 47 NCQ NON-DATA Log (12h) data structure definition
Dword
0
1
2-4
5
6
7
8-127
Bits
Description
Subcommand 0h
31-5
Reserved
4
Supports Abort Selected TTAG
3
Supports Abort Non-Streaming
2
Supports Abort Streaming
1
Supports Abort All
0
Supports Abort NCQ
Subcommand 1h
31-3
Reserved
2
Supports Read Data Not Continue
1
Supports Write Data Not Continue
0
Supports DEADLINE HANDLING
31-0
Reserved
Subcommand 5h
31-1
Reserved
0
Supports Set Features
31-0
Reserved
31-1
Reserved
0
Support ZAC Management Out
31-0
Reserved
10.16.4.4.1
Supports the Abort NCQ subcommand
If Supports the Abort NCQ subcommand is set to one, then the device supports the Abort NCQ Queue command
(12.14.1). If Supports the Abort NCQ subcommand is cleared to zero, then the device does not support the Abort
NCQ Queue command.
10.16.4.4.2
Supports Abort All
If Supports Abort All is set to one, then the device supports the value of Abort All for the Abort Type parameter of
the Abort NCQ Queue command. If Supports Abort All is cleared to zero, then the device does not support the
value of Abort All for the Abort Type parameter of the Abort NCQ Queue command.
10.16.4.4.3
Supports Abort Streaming
If Supports Abort Streaming is set to one, then the device supports the value of Abort Streaming for the Abort Type
parameter of the Abort NCQ Queue command. If Supports Abort Streaming is cleared to zero, then the device does
not support the value of Abort Streaming for the Abort Type parameter of the Abort NCQ Queue command.
10.16.4.4.4
Supports Abort Non-Streaming
If Supports Abort Non-Streaming is set to one, then the device supports the value of Abort Non-Streaming for the
Abort Type parameter of the Abort NCQ Queue command. If Supports Abort Non-Streaming is cleared to zero,
then the device does not support the value of Abort Non-Streaming for the Abort Type parameter of the Abort NCQ
Queue command.
10.16.4.4.5
Supports the Abort Selected TTAG
If Supports Abort Selected TTAG is set to one, then the device supports the value of Abort Selected for the Abort
Type parameter of the Abort NCQ Queue command. If Supports Abort Selected TTAG is cleared to zero, then the
device does not support the value of Abort Selected for the Abort Type parameter of the Abort NCQ Queue
command.
10.16.4.4.6
Supports the Deadline Handling subcommand
If Supports the Deadline Handling subcommand is set to one, then the device supports the Deadline Handling
command. If the Supports the Deadline Handling subcommand is cleared to zero, then the device does not support
the Deadline Handling command.
86
HGST Hard Disk Drive Specification
10.16.4.4.7
Supports WDNC
If Supports WDNC is set to one, then the device supports the WDNC bit of the DEADLINE HANDLING command.
If Supports WDNC is cleared to zero, then the device does not support the WDNC bit of the DEADLINE HANDLING
command.
10.16.4.4.8
Supports RDNC
If Supports RDNC is set to one, then the device supports the RDNC bit of the Deadline Handling command. If
Supports RDNC is cleared to zero, then the device does not support the WDNC bit of the Deadline Handling
command.
10.16.4.4.9
Supports Set Features
If Supports Set Features is set to one, then the device supports the value of Set Features for the SET FEATURES
subcommand of the NCQ NON-DATA command. If the Set Features bit is cleared to zero, then the device does
not support the SET FEATURES subcommand of the NCQ NONDATA command.
Rebuild Assist log (15h)
If the device supports the Rebuild Assist feature (i.e., IDENTIFY DEVICE data Word 78 bit 11 is set to one), then
the Rebuild Assist log shall be supported.
Table 48 Rebuild Assist log (15h) data structure definition
Byte
0
7
6
5
4
3
2
Reserved
1…6
7
8
1
0
Rebuild
Assist
Enabled
Reserved
Physical Element Length (N)
(MSB)
Disabled Physical Element Mask
7+N
8+N
(LSB)
(MSB)
Disabled Physical Elements
7+(2×N)
8+(2×N)..511
(LSB)
Reserved
Physical Element Length
The Physical Element Length field indicates the number of bytes in the Disabled Physical Element Mask field and
the number of bytes in the Disabled Physical Elements field.
The device shall ignore any attempt by the host to change the value of this field when writing to the Rebuild Assist
log.
Disabled Physical Element Mask
The Disabled Physical Element Mask field indicates that bits in the Disabled Physical Elements field are supported.
The device shall ignore any attempt by the host to change the value of this field when writing to the Rebuild Assist
log.
Disabled Physical Elements
The Disabled Physical Elements field specifies if physical elements shall be disabled. Each bit that is set to one in
the Disabled Physical Elements field specifies that LBAs associated with this physical element shall respond to
read commands and write commands as if the associated LBAs have predicted errors.
Each bit that is set to zero in the Disabled Physical Elements field specifies that LBAs associated with this
physical element shall respond to read commands and write commands as if the associated LBAs do not have
predicted errors.
87
HGST Hard Disk Drive Specification
SCT Command Transport feature Set
Overview
Introduction
SMART Command Transport (SCT) is the method for the drive to receive commands using log page E0h and
transporting data using log page E1h. These log pages are used as follows:
Table 49
SCT Log Page and direction
Write log page
Read log page
Log page E0h
Issue Command
Return Status
Log Page E1h
Send Data to the drive
Received Data from the drive
There are two ways to access the log pages: using SMART READ/WRITE LOG and READ/WRITE LOG EXT. Both
sets of commands access the same log pages and provide the same capabilities.
The log directory for log pages E0h and E1h should report a length of one. The length of log page E1h does not
indicate the length of an SCT data transfer.
If SMART is supported, but not enabled, the drive supports SMART READ/WRITE LOG for Log page E0h and E1h.
If security is enabled and password has not been issued to unlock the device, all SCT commands will fail.
Capability definition
Capability Identification is performed by issuing Identify Device command. Word 206 of Identify Data is used to
determine if SCT is enabled and which SCT Action Codes are supported.
Table 50
Word
206
Identify Device Information Word 206
Description
SCT Command set support
15-12
Vendor Specific
11-6
Reserved
5
Action Code 5 (SCT Data Table) supported
4
Action Code 4 (Features Control) supported
3
Action Code 3 (Error Recovery Control) supported
2
Action Code 2 (SCT Write Same) supported
1
Obsolete
0
SCT Feature Set supported (includes SCT status)
SCT Command Nesting and intermingling with Standard
commands
In general, standard ATA commands can be intermingled with SCT Commands but SCT commands cannot be
nested. SCT commands that do require a follow-on data transfer operation never have an issue with being
intermixed with any ATA commands or each other. SCT commands that do require data transfer, on the other
hand, may not be nested; that is, if a key command that requires a data transfer is issued, all data transfer – to or
from the host – must complete before another SCT command is issued. In most cases, however, ATA read/write
commands may be inserted in between SCT data transfers, that is, between complete SMART Read Log/Write Log
commands. Furthermore, any reset (power-on, software or hardware) will cause the SCT command to be aborted.
Resets
If an SCT command is executing, any reset including Soft Reset, Hard Reset, COMRESET, and Power-On Reset
all cause the command to be terminated. This could result in partial command execution or data loss. There is no
indication once the drive becomes ready that the previous command was terminated.
88
HGST Hard Disk Drive Specification
SCT Command Protocol
Command Transport
SCT Command Transport occurs when a 512-byte data packet (called “Key Sector”) is created and the written to
SMART or extended log page E0h. The key sector specifies Action and Function Codes along with the parameters
that are required to perform the action.
10.17.2.1.1
Issue SCT Command Using SMART
Table 51 Output Registers of SCT Command Using SMART
Command Block Output Registers
Register
7
6
5
4
3
Feature
D6h
Sector Count
01h
Sector Number
E0h
Cylinder Low
4Fh
Cylinder High
C2h
Device/Head
-
-
-
D
Command
Table 52
-
2
1
0
-
-
-
B0h
Input Registers of SCT Command Using SMART
Command Block Input Registers (Success)
Register
7
6
5
4
Error
3
2
1
Command Block Input Registers (Error)
0
00h
Sector Count
7
6
5
Error
Depends on command (LSB)
Depends on command
(MSB)
Sector Number
Register
4
3
2
1
0
04h
Sector Count
Extended Status code (LSB)
Sector Number
Extended Status code (MSB)
Cylinder Low
Number of sectors to
transfer (LSB)
Cylinder Low
Number of sectors to transfer
(LSB)
Cylinder High
Number of sectors to
transfer (MSB)
Cylinder High
Number of sectors to transfer
(MSB)
Device/Head
-
Device/Head
Status
-
-
-
-
50h
-
-
-
Status
89
HGST Hard Disk Drive Specification
-
-
-
-
51h
-
-
-
10.17.2.1.2
Table 53
Issue SCT Command Using Write Log Ext
Input Registers of SCT Command Using Write Log Ext
Command Block Output Registers
Register
Feature
Sector Count
LBA Low
LBA Mid
LBA High
7
6
5
4
3
2
Current
Reserved
Previous
Reserved
Current
01h
Previous
00h
Current
E0h
Previous
Reserved
Current
00h
Previous
00h
Current
Reserved
Previous
Reserved
Device/Head
-
-
-
D
Command
-
-
1
0
-
-
3Fh
Table 54 Output Registers of SCT Command Using Write Log Ext
Command Block Input Registers (Success)
Register
7
6
5
4
Error
Sector
Count
LBA Low
LBA Mid
LBA High
Device/Head
Status
3
2
1
Command Block Input Registers (Error)
0
00h
Depends on command
(LSB)
HOB=1
Reserved
HOB=0
Depends on command
(MSB)
HOB=1
Reserved
HOB=0
Number of sectors (LSB)
HOB=1
Reserved
HOB=0
Number of sectors (MSB)
HOB=1
Reserved
-
-
-
50h
7
6
5
4
Error
HOB=0
-
Register
-
-
-
Sector
Count
LBA Low
LBA Mid
LBA High
3
2
1
0
04h
HOB=0
Extended Status Code
(LSB)
HOB=1
Reserved
HOB=0
Extended Status Code
(MSB)
HOB=1
Reserved
HOB=0
Number of sectors (LSB)
HOB=1
Reserved
HOB=0
Number of sectors (MSB)
HOB=1
Reserved
Device/Head
Status
All ATA “previous” registers are reserved in Write Log Ext responses.
90
HGST Hard Disk Drive Specification
-
-
-
-
51h
-
-
-
10.17.2.1.3
Key Sector Format
An SCT command (Key Sector) is always 512 bytes long. Table below shows the generic format of an SCT
command.
Table 55
Key Sector Format
Byte
1:0
Field
Action Code
Words
1
3:2
Function Code
1
X:4
Y:x+1
…
Parameter1
Parameter2
…
Total Words
Depends on command
Depends on command
…
256
Description
This field defines the command type and
generally specifies the type of data being
accessed, such as sector or physical
action being performed, such as seek.
This field specifies the type of access, and
varies by command. For example, this can
specify read, write, verify, etc.
Depends on command
Depends on command
…
The action codes are defined in Table below.
Table 56
SCT Action Code List
Action Code
Block Data
TF Data
Description
0000h
-
-
Reserved
0001h
Read/Write
Y
Long Sector Access
0002h
Write
N
SCT Write Same
0003h
-
Y
Error Recovery Control
0004h
-
Y
Features Control
0005h
Read
N
SCT Data Table
0006h-BFFFh
-
-
Reserved
C000h-FFFFh
-
-
Vendor Specific
91
HGST Hard Disk Drive Specification
(Not Supported)
10.17.2.1.4
Extended Status Code
Table 57 Extended Status Code
Status Code
0000h
0001h
0002h
0003h
0004h
0005h
0006h
0007h
0008h
0009h
000Ah
000Bh
000Ch
000Dh
000Eh
000Fh
0010h
0011h
0012h
0013h
0014h
0015h
0016h-BFFFh
C000h-C002h
C003h
C004h
C005h
C006h
C007h-FFEFh
FFF0h-FFFEh
FFFFh
Definition
Command complete without error
Invalid Function Code
Input LBA out of range
Request sector count overflow. The number of sectors requested to transfer (Sector Count
register) in the read or write log command is larger than required by SCT command.
Invalid Function code in Error Recovery command
Invalid Selection code in Error Recovery command
Host read command timer is less than minimum value
Host write command timer is less than minimum value
Background SCT command was aborted because of an interrupting host command
Background SCT command was terminated because of unrecoverable error
Invalid Function code in Long Sector Access command
SCT data transfer command was issued without first issuing an SCT command
Invalid Function code in Feature Control command
Invalid Feature code in Feature Control command
Invalid New State value in Feature Control command
Invalid Option Flags in Feature Control command
Invalid SCT Action code
Invalid Table ID (table not supported)
Command was aborted due to drive security being locked
Invalid revision code
Foreground SCT operation was terminated because of unrecoverable error
The most recent non-SCT command returned command completion with an error due to the
SCT Error Recovery Control Read Command Timer or SCT Error Recovery Control Write
Command Timer expiring
Reserved
Vendor Specific
Overlay switch failure in Long Sector Access command
Read Long failure
Write Long failure
Write Cache enable failure
Vendor Specific
Reserved
SCT command executing in background
92
HGST Hard Disk Drive Specification
Data transfer
Once an SCT command has been issued, status can be checked and data can be transferred. Data transfer uses
log page E1h.
10.17.2.2.1
Table 58
Read/Write SCT Data Using SMART
Input Registers of SCT Data Transfer Using SMART
Command Block Output Registers
Register
7
Feature
6
5
4
3 2
0
D5h(Read)/D6h(Write)
Number of sectors to be
transferred
Sector Count
Sector Number
E1h
Cylinder Low
4Fh
Cylinder High
C2h
Device/Head
-
-
-
D
Command
10.17.2.2.2
Table 59
1
-
-
-
-
B0h
Read/Write SCT Data Using Read/Write Log Ext
Input Registers of SCT Data Transfer Using Read/Write Log Ext
Command Block Output Registers
Register
Feature
Sector Count
LBA Low
LBA Mid
LBA High
Device/Head
Command
7 6 5 4 3 2 1 0
Current
Reserved
Previous
Reserved
Current
01h or 08h
Previous
00h
Current
E1h
Previous
Reserved
Current
00h
Previous
00h
Current
Reserved
Previous
Reserved
-
-
- D -
-
-
-
2Fh(Read)/3Fh(Write)
93
HGST Hard Disk Drive Specification
SCT Status Request
Once an SCT command has been issued, a status is reported in the ATA registers. This status indicates that the
command was accepted or that an error occurred. This ATA status return does not indicate successful
completion of the SCT actions. Some commands can take several minutes or even hours to execute. In this case,
the host can determine execution progress by requesting SCT status.
Log page E0h contains the status information. Reading log page E0h retrieves the status information. The SCT
status may be acquired any time that the host is allowing to send a command to the device. This command will
not change the power state of the drive, nor terminate any background activity, including any SCT command in
progress.
10.17.2.3.1
Table 60
SCT Status Request Using SMART
Input Registers of SCT Status Request Using SMART
Command Block Output Registers
Register
7
6
5
4
3 2
Feature
D5h
Sector Count
01h
Sector Number
E0h
Cylinder Low
4Fh
Cylinder High
C2h
Device/Head
-
-
-
D
Command
10.17.2.3.2
Table 61
-
-
1
0
-
-
B0h
SCT Status Request Using Read Log Ext
Input Registers of SCT Status Request Using Read Log Ext
Command Block Output Registers
Register
Feature
Sector Count
LBA Low
LBA Mid
LBA High
Device/Head
Command
7
6
5
4
3
Current
Reserved
Previous
Reserved
Current
01h
Previous
00h
Current
E0h
Previous
Reserved
Current
00h
Previous
00h
Current
Reserved
Previous
Reserved
-
-
-
D
-
2
1
0
-
-
-
2Fh
94
HGST Hard Disk Drive Specification
10.17.2.3.3
Format of SCT Status Response
Table 62 Data Format of SCT Status Response -1
Byte
1:0
3:2
Type
Word
Word
Field Name
Format Version
SCT Version
Value
0003h
5:4
9:6
Word
Dword
SCT Spec.
Status Flags
0001h
10
Byte
Drive Status
13:11
15:14
Byte[3]
Word
17:16
Word
reserved
Extended
Status Code
Action Code
19:18
Word
Function Code
39:20
47:40
Byte[20]
Qword
reserved
LBA
199:48
200
Byte[152]
Byte
HDA Temp
201
Byte
Min Temp
202
Byte
Max Temp
203
Byte
Life Min Temp
204
Byte
Life Max Temp
Description
Status Response format version number
Manufacturer’s vendor specific implementation
version number
Highest level of SCT Technical Report supported
Bit 0 : Segment Initialized Flag
If this bit is set to 1, an SCT Write Same command
write to all LBAs of the drive has completed without
error. This bit shall be cleared to 0 when any user LBA
is written, even if write cache is enabled. This bit is
else cleared if the capacity of the drive is changed via
SETMAX, SETMAX EXT or DCO. This bit is
preserved through a power cycle.
Bit 1-31 : Reserved
0 = Active waiting for a command
1 = Stand-by
2 = Sleep
3 = DST executing in background
4 = SMART ODC executing in background
5 = SCT executing in background
00h
Status Of last SCT command issued. FFFFh if SCT
command executing in background.
Action code of last SCT command issued. If the
Extended Status Code is FFFFh, this is the Action
Code of the command that is current executing.
Function code of last SCT command issued. If the
Extended Status Code is FFFFh, this is the Function
Code of the command that is current executing.
00h
Current LBA of SCT command execution in
background. If there is no command currently
executing in the background, this field is undefined.
00h
Current HDA temperature in degrees Celsius. This is
a 2’s complement number. 80h indicates that this
value is invalid.
Minimum HDA temperature in degrees Celsius. This
is a 2’s complement integer. 80h indicates that this
value is invalid.
Maximum HDA temperature in degrees Celsius. This
is a 2’s complement number. 80h indicates that this
value is invalid.
Minimum HDA temperature in degrees Celsius seen
for the life of the device. This is a 2’s complement
integer. 80h indicates that this value is invalid.
Maximum HDA temperature in degrees Celsius seen
for the life of the drive. This is a 2’s complement
number. 80h indicates that this value is invalid.
95
HGST Hard Disk Drive Specification
Table 63 Data Format of SCT Status Response -2
Byte
Type
Field Name
Value
205
209:206
Byte
Dword
Reserved
Over Limit Count
00h
213:210
Dword
Under Limit Count
479:214
Byte[275]
Reserved
00h
511:480
Byte[32]
Vendor Specific
00h
Description
Number of temperature recording Intervals since the
last power-on reset where the recorded temperature
was greater than Max Op Limit. See Table 74 for
information about this Interval.
Number of temperature recording Intervals since the
last power-on reset where the recorded temperature
was less than Min Op Limit. See Table 74 for
information about this Interval.
96
HGST Hard Disk Drive Specification
SCT Command Set
SCT Write Same (action code : 0002h)
Table 64
SCT Write Same (Inputs)
Inputs: (Key Sector)
Word
0
Name
Action Code
Value
0002h
1
Function Code
5:2
9:6
11:10
Start LBA
Count
Pattern
0001h
0002h
0101h
0102h
Qword
Qword
Dword
255:12
reserved
0000h
Table 65
Description
This action writes a pattern or sector of data repeatedly to
the media. This capability could also be referred to as
“Write All” or “Write Same”.
Repeat Write Pattern (Background Operation)
Repeat Write Sector (Background Operation)
Repeat Write Pattern (Blocking Operation)
Repeat Write Sector (Blocking Operation)
First LBA
Number of sectors to fill
If the Function Code is 0001h, this field contains a 32-bit
pattern that is written on the media starting at the location
specified in words two through five
SCT Write Same (Outputs)
Outputs: (TF Data)
Command Block Input Registers (Success)
Error
00h
Sector Count
Reserved
Sector Number
Reserved
Cylinder Low
Number of sectors to transfer (LSB) = 01h
Cylinder High
Number of sectors to transfer (MSB) = 00h
Device/Head
Reserved
Status
50h
The SCT Write Same command will begin writing sectors from Start LBA in incrementing order until Count
sectors have been written. The HPA feature determines the last user LBA. This command will not write over a
hidden partition when hidden partitions are enabled using the Host Protected Area drive capabilities. Automatic
sector reassignment is permitted during the operation of this function.
If Start LBA or Start LBA + Count go beyond the last user LBA then an error is reported and the SCT command is
not executed.
Once the key sector has been issued, if the Function Code was 0002h or 0102h and the TF Data indicates that
the drive is ready to receive data, log page E1h should be written to transfer the data.
Implementation note for Background Operation (Function code = 0001h, 0002h)
In this mode, the drive will return command completion status when the drive finished receiving data.
Any command, including IDENTIFY DEVICE, other than SCT Status, issued to the drive while this command is in
progress will terminate the SCT Write Same command. The incoming command is executed.
Use the SCT Status command to retrieve status information about the current SCT command. Example status
information includes: command active or complete, current LBA, and errors. When this command is in progress,
the SCT status error code will be FFFFh, and set to 0000h if the command completes without error. It will be less
than FFFFh and grater the 0000h if the command terminated prematurely for any reason.
97
HGST Hard Disk Drive Specification
Possible Extended Status Code for Background Operation (Function code = 0001h, 0002h)
0008h
Background SCT command was aborted because of an interrupting host
command
0009h
Background SCT command was terminated because of unrecoverable error
FFFFh
SCT command executing in background
Implementation note for Blocking Operation (Function code = 0101h, 0102h)
In this mode, the drive will return command completion status when the drive finished the SCT Write Same
operation.
Outputs for Error
Command Block Input Registers (Error)
Register
7 6 5 4 3 2 1 0
Error
04h
Sector Count
Extended Status code
(LSB)
Sector Number
Extended Status code
(MSB)
Cylinder Low
N/A
Cylinder High
N/A
Device/Head
Status
-
-
-
-
-
-
-
-
51h
Possible Extended Status Code for Blocking Operation (Function code = 0101h, 0102h)
0017h
Blocking SCT Write Same command was terminated because of unrecoverable error
Write pointer that is used for checking sequential write will be updated by this command.
98
HGST Hard Disk Drive Specification
Error Recovery Control command (action code : 0003h)
Table 66 Error Recovery Control command (Inputs)
Inputs: (Key Sector)
Word
Name
Value
Description
0
Action Code
0003h
Set the read and write error recovery time
1
Function Code
0001h
Set New Value
0002h
Return Current Value
0001h
Read Timer
0002h
Write Timer
If the function code is 0001h, then this field contains the
recovery time limit in 100ms units. The minimum SCT
timeout value is 65 (=6.5 second). When the specified
time limit is shorter than 6.5 second, the issued command
is aborted.
2
Selection Code
3
Value
Word
255:4
reserved
0000h
Table 67 Error Recovery Control command (Outputs)
Outputs: (TF Data)
Command Block Input Registers (Success)
Error
00h
Sector Count
If Function Code was 0002h, then this is the LSB of the requested recovery limit.
Otherwise, this field is reserved.
Sector Number
If Function Code was 0002h, then this is the MSB of the requested recovery limit.
Otherwise, this field is reserved.
Cylinder Low
reserved
Cylinder High
reserved
Device/Head
reserved
Status
50h
The Error Recovery Control command can be used to set time limits for read and write error recovery. For nonqueued commands, these timers apply to command completion at the host interface. For queued commands
where in order data delivery is enabled, these timers begin counting when the command is sent to the device.
These timers do not apply to streaming commands, or to queued commands when out-of-order data delivery is
enabled.
These command timers are volatile. The default value is 0 (i.e. disable command time-out).
99
HGST Hard Disk Drive Specification
Feature Control Command (action code : 0004h)
Table 68
Feature Control command (Inputs)
Inputs: (Key Sector)
Word
Name
Value
Description
0
Action Code
0004h
Set or return the state of drive features described in Table 70
1
Function Code
0001h
Set state for a feature
0002h
Return the current state of a feature
0003h
Return feature option flags
2
Feature Code
Word
See Table 70 for a list of the feature codes
3
State
Word
Feature code dependent value
4
Option Flags
Word
Bit15:1 = Reserved
If the function code is 0001h, setting bit 0 to one causes the
requested feature state change to be preserved across power
cycles.
If the function code is 0001h, setting bit 0 to zero causes the
requested feature state change to be volatile. A hard reset
causes the drive to revert to default, or last non-volatile setting.
255:5
reserved
0000h
Table 69
Feature Control command (Outputs)
Outputs: (TF Data)
Command Block Input Registers (Success)
Error
00h
Sector Count
If Function Code was 0002h, then this is the LSB of Feature State.
If Function Code was 0003h, then this is the LSB of Option Flags.
Otherwise, this field is reserved.
Sector Number
If Function Code was 0002h, then this is the MSB of Feature State.
If Function Code was 0003h, then this is the MSB of Option Flags.
Otherwise, this field is reserved.
Cylinder Low
reserved
Cylinder High
reserved
Device/Head
reserved
Status
50h
HGST Hard Disk Drive Specification
100
Table 70
Feature Code List
Feature Code
State Definition
0001h
0001h : Allow write cache operation to be determined by Set Feature command
0002h : Force write cache enabled
0003h : Force write cache disabled
If State 0001h is selected, the ATA Set Feature command will determine the operation
state of write cache. If State 0002h or 0003h is selected, write cache will be forced into
the corresponding operation state, regardless of the current ATA Set Feature state. Any
attempt to change the write cache setting through Set Feature shall be accepted, but
otherwise ignored, and not affect the operation state of write cache and complete normally
without reporting an error.
In all cases, bit 5 of word 85 in the Identify Device information will reflect the true
operation state of write cache, one indicating enabled and zero indicating disabled.
The default state is 0001h.
0002h
0001h : Enable Write Cache Reordering
0002h : Disable Write Cache Reordering
The default state is 0001h.
The drive does not return error for setting state 0002h, but the state is ignored.
0003h
Set time interval for temperature logging.
0000h is invalid.
0001h to FFFFh logging interval in minutes.
This value applies to the Absolute HDA Temperature History queue. Issuing this
command will cause the queue to be reset and any prior values in the queue will be lost.
Queue Index shall be set to zero and the first queue location will be set to the current
value. All remaining queue locations are set to 80h. The Sample Period, Max Op Limit,
Over Limit, Min Op Limit and Under Limit values are preserved.
Default value is 0001h.
0004h-CFFFh
Reserved
D000h-FFFFh
Vendor Specific
HGST Hard Disk Drive Specification
101
SCT Data Table Command (action code : 0005h)
Table 71
SCT Data Table command (Inputs)
Inputs: (Key Sector)
Word
Name
Value
Description
0
Action Code
0005h
Read a data table
1
Function Code
0001h
Read Table
2
Table ID
Word
See Table 74 for a list of data tables
255:2
reserved
0000h
Table 72
SCT Data Table command (Outputs)
Outputs: (TF Data)
Command Block Input Registers (Success)
Error
00h
Sector Count
reserved
Sector Number
reserved
Cylinder Low
Number of sectors to transfer (LSB) = 01h
Cylinder High
Number of sectors to transfer (MSB) = 00h
Device/Head
reserved
Status
50h
Table 73 Table ID
Table ID
Description
0000h
Invalid
0001h
Reserved
0002h
HDA Temperature History Table (in absolute degree C).
See Note 1 – The Absolute HDA Temperature History is
preserved across power cycles with the requirement that when the
drive powers up, a new entry is made in the history queue of 80h,
an invalid absolute temperature value. This way an application
viewing the history can see the discontinuity in temperature result
from the drive being turned off.
Note 2 – When the Absolute HDA Temperature history is cleared,
for new drives or after changing the Logging Interval, the Queue
Index shall be set to zero and the first queue location shall be set
to the current Absolute HDA Temperature value. All remaining
queue locations are set to 80h.
0003h-CFFFh
Reserved
D000h-FFFFh
Vendor Specific
HGST Hard Disk Drive Specification
102
Table 74 Data Format of HDA Absolute Temperature History Table -1
Byte
Size
Field Name
Description
1:0
Word
Format
Version
Data table format version (=0002h)
3:2
Word
Sampling
Period
Absolute HDA Temperature sampling period in minutes.
0000h indicates sampling is disabled.
5:4
Word
Interval
Timer interval between entries in the history queue.
6
Byte
Max Op Limit
Maximum recommended continuous operating temperature. This is a
one byte 2’s complement number that allows a range from -127°C to
+127°C to be specified. 80h is an invalid value. This is a fixed value.
7
Byte
Over Limit
Maximum temperature limit. This is a one byte 2’s complement number
that allows a range from -127°C to +127°C to be specified. 80h is an
invalid value. This is a fixed value.
8
Byte
Min Op Limit
Minimum recommended continuous operating limit. This is a one byte
2’s complement number that allows a range from -127°C to +127°C to
be specified. 80h is an invalid value. This is a fixed value.
9
Byte
Under Limit
Minimum temperature limit. This is a one byte 2’s complement number
that allows a range from -127°C to +127°C to be specified. 80h is an
invalid value. This is a fixed value.
29:10
Byte[20]
Reserved
31:30
Word
Queue Size
Number of entry locations in history queue.
This value is 128.
33:32
Word
Queue Index
Last updated entry in queue. Queue Index is zero-based, so Queue
Index 0000h is the first location in the buffer (at offset 34). The most
recent temperature entered in the buffer is at Queue Index + 34.
See Note 1 and Note 2.
Table 75 Data Format of HDA Absolute Temperature History Table -2
Byte
Size
Field Name
Description
(Queue Size+33):34
Byte[Queue Size]
Queue
Buffer
This is a circular buffer of absolute HDA
Temperature values. These are one byte 2’s
complement numbers, which allow a range
from -127°C to +127°C to be specified. A
value of 80h indicates an initial value or a
discontinuity in temperature recording.
The Actual time between samples may vary
because commands may not be interrupted.
The sampling period is the minimum time
between samples. See Note 1.
If the host changes the logging interval
using the volatile option, the interval
between entries in the queue may change
between power cycles with no indication to
the host.
511Queue Size
+34)
Byte
[512Queue Size-34]
Reserved
Note 1 – The Absolute HDA Temperature History is preserved across power cycles with the requirement that when the drive
powers up, a new entry is made in the history queue of 80h, an invalid absolute temperature value. This way an application
viewing the history can see the discontinuity in temperature result from the drive being turned off.
Note 2 – When the Absolute HDA Temperature history is cleared, for new drives or after changing the Logging Interval, the
Queue Index shall be set to zero and the first queue location shall be set to the current Absolute HDA Temperature value. All
remaining queue locations are set to 80h.
HGST Hard Disk Drive Specification
103
Extended Power Conditions (EPC) feature
The Extended Power Conditions feature set provides a host with additional methods to control the power condition
of a device. Host can check power condition using Check Power Mode command.
Subcommand code 4Ah enables, disables, and configures the use of the Extended Power Conditions feature set.
If the EPC feature set is not supported, then the device return command aborted Table 76 describes the EPC
subcommands and Table 77 describes the power condition IDs.
Table 76 Extended Power Conditions Subcommands
EPC Subcommand
0h
1h
2h
3h
4h
5h
6h … Fh
Description
Restore Power Condition Settings
Go To Power Condition
Set Power Condition Timer
Set Power Condition State
Enable the EPC feature
Disable the EPC feature
Reserved
Table 77 Power Condition IDs
Power Condition ID
00h
curre01h
02h…80h
81h
82h
83h
84h … FEh
FFh
Power Condition Name
standby_z
standby_y
Description
Standby
Low RPM Idle
Reserved
Active Idle
Low Power Idle
Low RPM Idle
Reserved
All supported EPC power conditions
idle_a
idle_b
idle_c
All
Power conditions
idle_a, idle_b and idle_c are power conditions within the PM1:Idle power management state. standby_y and
standby_z are power conditions within the PM2:Standby power management state. Please refer to ACS-2 “3.1
Definitions and abbreviations” about PM1:Idle and PM2:Standby. The power conditions are ordered from highest
power consumption (i.e., shortest recovery time) to lowest power consumption (i.e., longest recovery time) as
follows:
idle_a power >= idle_b power >= idle_c power >= standby_y power >= standby_z power
Each of these power conditions has a set of current, saved and default settings. Default settings are not modifiable.
Default and saved settings persist across power cycles. The current settings do not persist across power cycles.
HGST Hard Disk Drive Specification
104
Power condition timers
The device has manufacturer specified power-on default settings for the power condition timers. Power condition
timers are changeable with the SET FEATURES Extended Power Conditions subcommand.
A power condition timer set to zero indicates that the associated power condition is disabled.
If the power condition is enabled, then the value of each timer specifies the time after command completion that
the device waits before transitioning to the power condition. All enabled power condition timers run concurrently.
On command completion all timers that were stopped are initialized with the Current Timer settings values and
started.
As a result of processing any command, the device may change to a different power condition.
If an enabled timer associated with a power condition lower than the power condition that the device is currently in
expires, then the device transitions to the power condition associated with that timer (e.g., if the standby_z timer is
set to a smaller interval than the idle_b timer, and the device is currently in the standby_z power condition, then
the device remains in the Standby_z power condition when the idle_b timer expires). If the timer expiration qualifies
the device to transition to more than one enabled power condition, then the device transitions to the power condition
with the least power consumption.
If a command is accepted that requires a transition to Active, then the timers are stopped. If a command is accepted
that does not require a transition to Active (e.g., a Check Power Mode command), then the timers continues to run.
Prior to entering into any power condition that prevents accessing the media (e.g., before a hard drive stops its
spindle motor during transition to the standby_z power condition) and if volatile write cache is enabled, then the
device shall write all cached data to the medium for the device (e.g., as a device does in response to a flush
command).
Interaction with resets, commands and other features
On successful processing of a power cycle, the EPC enables sub command, the device:
When EPC is Enabling, the following content is executed.
1) stop all EPC timers.
2) copy the Saved Timer Enabled field to the Current Timer Enabled field, for all supported power conditions.
3) copy the Saved Timer Settings field to the Current Timer Settings field, for all supported power conditions.
4) initialize and restart all enabled EPC timers with Current values.
On successful processing of a hardware reset, a software reset, or a DEVICE RESET command, the device:
When EPC is Enabling, the following content is executed.
1) stop all EPC timers.
2) remain in the current power condition.
3) initialize and restart all enabled EPC timers with Current values.
The Extended Power Conditions feature set and the Advanced Power Management feature set are mutually
exclusive. All EPC subcommands, except Enable the EPC feature set, returns command aborted if the EPC feature
set is disabled. If the device processes a SET FEATURES Enable APM subcommand without error and IDENTIFY
DEVICE data word 120 bit 7 is set to one, then the device shall disable the EPC feature set.
During background activities, all EPC timers may be stopped. On completion of the activity, any stopped EPC
timers are restarted from where they were stopped.
HGST Hard Disk Drive Specification
105
Sanitize Device feature set
Overview
The Sanitize Device feature set allows hosts to request that devices modify the content of all user data areas in the
device using sanitize operations. Sanitize operations use one of the operations defined in this sub clause to make
all previously written content in the user data area of the device unable to be read. Sanitize operations affect the
following:
a) user data areas
b) user data areas that are not currently allocated (e.g., previously allocated areas and physical sectors that have
become inaccessible)
c) user data caches
Sanitize operations render user data previously stored in caches, using any methods, unable to be read.
The Sanitize Device feature set is implemented, the following commands are supported:
a) SANITIZE STATUS EXT
b) SANITIZE FREEZE LOCK EXT
c) CRYPTO SCRAMBLE EXT (data encryption model only)
d) OVERWRITE EXT
If physical sectors that have become inaccessible are not successfully sanitized, then Sanitize operations don’t
cause a transition to the SD3: Sanitize Operation Failed state.
Sanitize operations don’t affect non-user data areas (e.g., logs, and Device SMART data structure).
Sector reallocation is able to be performed during the operation of this function. After completion of a sanitize
operation, if:
a) all physical sectors that are available to be allocated for user data have been successfully sanitized
b) any physical areas that were not successfully sanitized were removed from use,
then:
a) the Sanitize Device state machine transitions to SD4: Sanitize Operation Succeeded; and
b) in subsequent SANITIZE STATUS EXT commands, set the SANITIZE OPERATION COMPLETED WITHOUT
ERROR bit to one in the Normal Outputs
Conversely, if physical sectors that are available to be allocated for user data (e.g. allocated physical sectors) were
not successfully
sanitized, then:
a) the Sanitize Device state machine transitions to SD3: Sanitize Operation Failed; and
b) in subsequent SANITIZE STATUS EXT commands, return an error and set the LBA field of the Error Outputs
to report the value of Sanitize Command Unsuccessful
To initiate a sanitize operation the host issues one of the following sanitize operation commands:
a) A CRYPTO SCRAMBLE EXT command (data encryption model only)
b) An OVERWRITE EXT command
The sanitize operation continues after command completion of the initiating sanitize operation command. The
SANITIZE STATUS EXT command to reports progress and completion.
After a device has started processing a sanitize operation, and until the device transitions to the SD0:
Sanitize Idle state, the device aborts all commands other than:
a) IDENTIFY DEVICE command
b) IDLE IMMEDIATE command with UNLOAD feature
c) Request Sense Data Ext command;
d) SANITIZE STATUS EXT command;
e) SMART READ LOG command requesting log address E0h;
f) READ LOG EXT command requesting one of the following log addresses:
A) E0h;
B) 30h; or
C) 10h;
g) READ LOG DMA EXT command requesting one of the following log addresses:
A) E0h;
B) 30h; or
C) 10h;
h) SMART RETURN STATUS command; or
HGST Hard Disk Drive Specification
106
i) SET FEATURES PUIS feature set device spin-up subcommand.
If a sanitize operation is interrupted by a power-on reset, the sanitize operation continues. If the device processes
a power-on reset and enters the PM5: PUIS and spin-up subcommand not supported state (see Figure 13), then
the device resumes processing the sanitize operation after receiving a media access command. (The media access
command reports failure because the sanitize operation does not allow media access commands. However, since
the device has received a media access command, the device is spin-up.)
The SANITIZE STATUS EXT command returns information about the current sanitize operation, if any, including a
percentage of completion if a sanitize operation is in progress.
A CRYPTO SCRAMBLE EXT command (data encryption model only), or OVERWRITE EXT command that returns
command completion with no error transitions the device into the SD2: Sanitize Operation state. The device remains
in this state until the device has completed the sanitize operation (see Figure 13).
The SANITIZE FREEZE LOCK EXT command causes the device to transition to the SD1: Sanitize Frozen state
and causes any subsequent CRYPTO SCRAMBLE EXT command (data encryption model only) or OVERWRITE
EXT command to be aborted. If the device processes a power-on reset or a hardware reset, then the device
transitions from the Sanitize Frozen state to the Sanitize Idle state.
The crypto scramble operation makes previously written contents in the user data area irretrievable. (data
encryption model only)
The overwrite operation fills all user data with a four byte pattern passed within the LBA field of the command.
Parameters for the OVERWRITE EXT command include a count for multiple overwrites and the option to invert
the four byte pattern between consecutive overwrite passes.
A software reset does not cause the SD2: Sanitize Operation state to transition to another state.
HGST Hard Disk Drive Specification
107
Sanitize Device Feature
Sanitize Device Feature Set is a powerful data erase feature. Two data erase features are supported. One is an
Overwrite Ext command, and the other is Crypto Scramble Ext command. Crypto Scramble Ext command can be
supported with a data encryption model only.
Individual Sanitize Device commands are identified by the value specified in the FEATURE field.
The following commands are supported for this feature.
Command
COMMAND field value
FEATURE field value
SANITIZE STATUS EXT
(‘B4’h)
(‘0000’h)
CRYPTO SCRAMBLE EXT
(data encryption model only)
OVERWRITE EXT
(‘B4’h)
(‘0011’h)
(‘B4’h)
(‘0014’h)
SANITIZE FREEZE LOCK EXT
(‘B4’h)
(‘0020’h)
Sanitize Device state machine
Figure 13 describes the operation of the Sanitize Device state machine.
SD0: Sanitize Idle State
In SD0: Sanitize Idle state the Sanitize Device state machine is ready for a sanitize operation command or a
SANITIZE FREEZE LOCK EXT command.
This state is entered when the device processes a power-on reset while in the SD1: Sanitize Freeze Lock state or
the SD4: Sanitize Operation Succeeded state.
While in this state, Sanitize Device state machine does not change state if the device processes:
a) a hardware reset or power-on reset
b) a SANITIZE STATUS EXT command
Transition SD0:SD1: If the device processes a SANITIZE FREEZE LOCK EXT command, then the device
transitions to the SD1: Sanitize Frozen state.
Transition SD0:SD2: If the device successfully processes a supported sanitize operation command, then the
device transitions to the SD2: Sanitize Operation state.
HGST Hard Disk Drive Specification
108
Figure 13 Sanitize Device state machines
HGST Hard Disk Drive Specification
109
SD1: Sanitize Frozen State
In SD1: Sanitize Frozen state, the device will abort Sanitize operation commands.
While in this state, Sanitize Device state machine does not change state if the device processes a SANITIZE
STATUS EXT command.
Transition SD1:SD0: If the device processes a hardware reset or a power-on reset, then the device transitions to
the SD0: Sanitize Idle state.
SD2: Sanitize Operation State
In the SD2: Sanitize Operation state, the device is processing a sanitize operation.
While in this state, Sanitize Device state machine does not change state if the device processes:
a) a hardware reset or power-on reset; and
b) a SANITIZE STATUS EXT command.
Transition SD2:SD3: If a sanitize operation completes with an error, then the device transitions to the SD3: Sanitize
Operation Failed state.
Transition SD2:SD4: If a sanitize operation completes without an error, then the device transitions to the SD4:
Sanitize Operation Succeeded state.
SD3: Sanitize Operation Failed State
In the SD3: Sanitize Operation Failed state, the device has completed processing a sanitize operation without
success.
While in this state, Sanitize Device state machine does not change state if the device processes:
a) a hardware reset or power-on reset; and
b) a SANITIZE STATUS EXT command with the CLEAR SANITIZE OPERATION FAILED bit cleared to zero.
Transition SD3:SD0: If
a) the Sanitize operation was initiated by a Sanitize operation command with the FAILURE MODE bit set to one;
and
b) the SANITIZE STATUS EXT command has been successfully processed with the CLEAR SANITIZE
OPERATION FAILED bit set to one,
then the device transitions to the SD0: Sanitize Idle state.
Transition SD3:SD2: If the device processes a supported sanitize operation command that reports command
completion with no error, then the device transitions to the SD2: Sanitize Operation state.
SD4: Sanitize Operation Succeeded State
In the SD4: Sanitize Operation Succeeded state, the device has completed processing a successful sanitize
operation.
Transition SD4:SD0: If the device processes
a) a hardware reset;
b) a power-on reset; or
c) a SANITIZE STATUS EXT command
then the device transitions to the SD0: Sanitize Idle state.
Transition SD4:SD2: If the device successfully processes a supported Sanitize operation command, then the
device transitions to the SD2: Sanitize Operation state.
HGST Hard Disk Drive Specification
110
Zone Device Feature set definitions
Introduction
Based on the basic zoned device model (see 10.20.2), the following feature sets are defined by di537r05: Zoned
Device ATA Command Set (ZAC):
a) Host Managed Zones feature set (see 10.20.3).
Basic zoned device model
Zoned devices are accessed using LBAs. The LBAs are divided into ranges called zones. The entire capacity of a
zoned device is organized into a set of contiguous, non-overlapping zones. Figure 14 shows a zoned device with
n zones and m LBAs where LBA 0 is the lowest LBA of zone 0 and LBA m–1 is the highest LBA of zone n–1.
Figure 14 Zones in a zoned device
Each zone is one of the following types:
a) a Conventional zone (see 10.20.5.2); or
b) a Sequential Write Required zone (see 10.20.5.3.2).
The REPORT ZONES EXT command (see 12.65.7) returns the zone type for each zone.
Host Managed Zones feature set
The Host Managed Zones feature set relies on active host management of interactions with the device to
maintain efficient operation of the device.
Devices that support the Host Managed Zones feature set support the following feature sets defined in ACS-4:
a) the 48-bit Address feature set;
b) the General feature set;
c) the General Purpose Logging (GPL) feature set;
d) the Native Command Queuing (NCQ) feature set; and
e) the Power Management feature set.
Devices that support the Host Managed Zones feature set:
a) report the Host Managed Zoned device signature (see 9.9);
b) support at least one Sequential Write Required zone (see 10.20.5.3.2);
c) supports multiple Conventional zones (see 10.20.5.2)
d) do not support any Sequential Write Preferred zones
e) support the Zoned Device Information page (see 12.20.7.10) in the Identify Device Data log (see 12.20.7);
f) set the ZONED field to 00b in the Supported Capabilities page of the Identify Device Data log (see 12.20.7);
g) support the Sense Data Reporting feature set (see ACS-4) and shall:
A) enable the Sense Data Reporting feature set during the processing of any reset; and
B) process the SET FEATURES Enable/Disable the Sense Data Reporting feature set subcommand as
defined in ACS-4;
h) support the SCT Write Same command (see ACS-4 and 10.20.6.9);
i) support the non-NCQ command format for those commands defined as mandatory in Table 246;
and
j) The NCQ feature set (see ACS-4) is supported, and:
A) support the NCQ command encapsulations (see 12.65.2,12.65.3 , and ACS-4) for those
commands defined as mandatory in Table 246;
B) support NCQ autosense (i.e., set the NCQ AUTOSENSE SUPPORTED bit to one in the Serial ATA page of
the Identify Device Data log (12.20.7));
C) support bytes 512..1 023 of the NCQ Command Error log (see 12.20.6); and
D) support the use of the NCQ command encapsulations of GPL feature set commands (see ACS-4) to read
and write:
HGST Hard Disk Drive Specification
111
a) the SCT Command/Status log (see ACS-4); and
b) the SCT Data Transfer log (see ACS-4).
The device supports the Self-Monitoring, Analysis, and Reporting Technology (SMART) feature set and the
device:
a) clear the SELECTIVE SELF-TEST IMPLEMENTED bit to zero in the Off-line data collection capabilities
byte of the SMART data structure (see 12.48.2.6); and
b) support the Selective Self-Test log (see 12.48.3.12).
Devices do not support the following feature sets:
a) the PACKET feature set (see ACS-3);
b) the Accessible Max Address Configuration feature set (see ACS-4);
c) the CompactFlash Association (CFA) feature set (see ACS-4);
Zone attributes
Summary
The zoned device zone attributes are summarized in Table 78.
Table 78
Summary of zone attributes
Attribute
Zone Type
Description
Reference
Type of zone (e.g., CONVENTIONAL)
10.20.4.2
Zone's operational characteristics
10.20.4.3
WPointer
Combination of the write pointer (see 10.20.5.3.1) and
whether the write pointer is valid
10.20.4.4
RWP Recommended
Indication of whether the processing of a RESET
WRITE POINTER command (see 12.65.8) for this zone
is recommended
10.20.4.5
Indication of whether zone resources are allocated for
non-sequentialwrites
10.20.4.6
Zone Condition
Non-Sequential Write Resources
Active
Zone Type zone attribute
Zone Type indicates (see Table 79) the type of zone.
Table 79
Zone Type zone attribute
Zone Type
CONVENTIONAL
SEQUENTIAL WRITE REQUIRED
Reference
10.20.5.2
10.20.5.3.2
HGST Hard Disk Drive Specification
112
The relationships between Zone Type and other zone attributes are shown in Table 80.
Table 80 Relationships between zone attributes
Zone type
Other zone attributes
CONVENTIONAL
SEQUENTIAL WRITE
REQUIRED
Non-Sequential Write
Resources Active
RWP Recommended
WPointer
Zone
Condition
false a
false a
invalid a
see 10.20.4.3
see 10.20.4.5
see 10.20.4.4
and Table 83
false
b
a.
The zone attributes values for a Zone Type CONVENTIONAL zone are required to be compatible with the
direct access block device type defined in SBC-4.
b.
Zone resources for non-sequential writes are not allocated for a zone in which all non-sequential write
operations are terminated with an error.
Zone Condition zone attribute
The Zone Condition (see table Table 81) is determined by the Zone Type (see 10.20.4.2) and the Zone Condition
state machine state (see 10.20.5.3.3).
Table 81
Zone Condition zone attribute
Zone Type
Zone Condition state machine
Reference
Resulting Zone Condition
CONVENTIONAL
outside the scope of this specification
10.20.5.2
NOT WRITE POINTER
SEQUENTIAL WRITE
ZC1:Empty state
10.20.5.3.3.2
EMPTY
REQUIRED
ZC2:Implicit_Open state
10.20.5.3.3.3
IMPLICITLY OPENED
ZC3:Explicit_Open state
10.20.5.3.3.4
EXPLICITLY OPENED
ZC4:Closed state
10.20.5.3.3.5
CLOSED
ZC5:Full state
10.20.5.3.3.6
FULL
WPointer zone attribute
For write pointer zones (see 10.20.5.3), WPointer is a combination of the write pointer (see 10.20.5.3.1) and
whether the write pointer is valid (see Table 83).
If Zone Type is CONVENTIONAL, WPointer shall be invalid.
RWP Recommended zone attribute
RWP Recommended zone attribute is always false.
Non-Sequential Write Resources Active zone attribute
Non-Sequential Resources Active zone is always false.
HGST Hard Disk Drive Specification
113
Zone types
Overview
In a zoned block device, each zone:
a) has the zone attributes defined in 10.20.4; and
b) is one of the following zone types:
A) a Conventional zone (see 10.20.5.2); or
B) a Sequential Write Required zone (see 10.20.5.3.2).
Conventional zones
A Conventional zone is a type of zone:
a) that is not associated with a write pointer; and
b) for which the device processes commands as described in ACS-4.
Write pointer zones
10.20.5.3.1
10.20.5.3.1.1
Features common to all write pointer zones
General
A write pointer zone is a type of zone that maintains a write pointer that indicates a logical sector within that
zone. The write pointer is updated as a result of processing of a write command. Depending on the state of a
zone, the write pointer for that zone is or is not valid (see 10.20.5.3.3.1).
Each write pointer zone has one write pointer. That write pointer indicates the LBA that the host should specify
in the starting LBA of the next write command to that zone. Some commands (e.g., the RESET WRITE
POINTER EXT command (see 12.65.8)) set the write pointer to the lowest LBA in the specified zone.
Each write pointer zone in a device is in one of the states defined by the Zone Condition state machine
(see 10.20.5.3.3). The state of each zone is indicated by the Zone Condition (see 10.20.4.3) and affects the
contents of the ZONE CONDITION field in the data returned by the REPORT ZONES EXT command (see
12.65.7).
Read commands that complete without an error do not affect the write pointer.
Figure 15 shows a write pointer zone where no LBAs have been written since the most recent time the zone's
Zone Condition was EMPTY with the write pointer set to the lowest LBA of that zone.
Figure 15 Write pointer zone and write pointer after Reset Write Pointer function with no subsequent writes
Figure 16 shows a write pointer zone where:
a) some LBAs have been written since the most recent time the zone's Zone Condition was EMPTY (i.e.,LBAs
less than the write pointer value); and
b) other LBAs have not been written since the most recent time the zone's Zone Condition was EMPTY (i.e.,
LBAs greater than or equal to the write pointer value).
HGST Hard Disk Drive Specification
114
Figure 16 Write pointer zone and write pointer example
The example in Figure 17 shows the effects of host actions on the write pointer and user data as follows:
1) at time 1, the write pointer zone starts in Zone Condition EMPTY with the write pointer set to the lowest LBA in
that zone;
2) at time 2, a write command:
1) changes the zone to Zone Condition IMPLICITLY OPENED; and
2) writes user data starting at that zone’s lowest LBA and sets the write pointer to the ending LBA
written by the command plus one;
3) at time 3, a write command:
1) writes user data that starts at the write pointer after time 2 and extends to the end of that zone;
2) changes the zone to Zone Condition FULL; and
3) changes the write pointer to invalid;
and
4) at time 4, a RESET WRITE POINTER EXT command (see 12.65.8):
1) sets the write pointer to the lowest LBA of that write pointer zone; and
2) changes the zone to Zone Condition EMPTY.
Figure 17 Examples of write commands that do not start at the write pointer
HGST Hard Disk Drive Specification
115
10.20.5.3.1.2
Resetting the write pointer
A RESET WRITE POINTER EXT command (see 12.65.8) sets the write pointer in a write pointer zone to the
lowest LBA of that zone and changes the Zone Condition to EMPTY.
The following ACS-4 feature sets and commands set the write pointer in a write pointer zone to the lowest LBA of
that zone and change the Zone Condition to EMPTY:
a) the Sanitize Device feature set (see 10.20.6.6);
b) the SECURITY ERASE UNIT command (see 10.20.6.8); and
c) the SCT Write Same command (see 10.20.6.9).
10.20.5.3.2
10.20.5.3.2.1
Sequential Write Required zones
Writing in Sequential Write Required zones
A Sequential Write Required zone is a write pointer zone (see 10.20.5.3.1) in which the device requires that write
commands specify a starting LBA that is equal to that zone’s write pointer.
If the device processes a write command without error, the write pointer is modified to indicate the LBA where a
subsequent write command within the Sequential Write Required zone is able to be performed.
If the ending LBA of a write command that completed without error is equal to the highest LBA of a Sequential Write
Required zone, then the Zone Condition becomes FULL and the write pointer becomes invalid.
If a write command returns command completion with an error, the value of the write pointer may be unknown
to the host. The device indicates the current write pointer in at least one of the following places:
a) the NCQ Command Error log (see ACS-4);
b) the LBA field of the error outputs (see 10.20.5.3.2.1 and 10.20.5.3.2.2); and
c) the data returned by the REPORT ZONES EXT command (see 12.65.7).
If the device processes a write command with:
a) the starting LBA equal to the write pointer;
b) the ending LBA is in the same Sequential Write Required zone; and
c) an ending LBA that is equal to the last logical sector within a physical sector (see ACS-4),
then the device shall process that write command.
If the device processes a write command with:
a) the starting LBA in a Sequential Write Required zone that is not equal to the write pointer; or
b) an ending LBA that is not equal to the last logical sector within a physical sector (see ACS-4),
then the device shall:
a) not write any data;
b) return command completion with an error; and
c) set the sense key to ILLEGAL REQUEST and the additional sense code to UNALIGNED WRITE
COMMAND (see ACS-4 and SPC-5).
If the device processes a write command with an ending LBA that is not in the same Sequential Write
Required zone as the starting LBA, then the device shall:
a) not write any data;
b) return command completion with an error; and
c) set the sense key to ILLEGAL REQUEST and the additional sense code to WRITE BOUNDARY VIOLATION
(see ACS-4 and SPC-5).
If the device processes a write command that specifies:
a) a starting LBA that is not in a Sequential Write Required zone; and
b) access to an LBA that is in a Sequential Write Required zone,
then the device shall:
a) not write any data;
b) return command completion with an error; and
c) set the sense key to ILLEGAL REQUEST and the additional sense code to WRITE BOUNDARY VIOLATION
(see ACS-4 and SPC-5).
If the device sets the additional sense code to UNALIGNED WRITE COMMAND or WRITE BOUNDARY
VIOLATION, then the device shall set the LBA field in the error outputs to the value of the write pointer associated
with the Sequential Write Required zone specified by the starting LBA in the command.
If a write command is not able to write all of the specified logical sectors before encountering an error that prevents
further writing to the media, then the resulting value of the write pointer is outside the scope of this specification.
The host should use the REPORT ZONES EXT command (see 12.65.7) to determine the current write pointer and
other characteristics of the zone.
HGST Hard Disk Drive Specification
116
10.20.5.3.2.2
Reading in Sequential Write Required zones
If the device processes a read command with:
a) the starting LBA in a Sequential Write Required zone; and
b) the ending LBA:
A) in the same Sequential Write Required zone; and
B) less than the write pointer,
then the device shall process that read command.
If the URSWRZ bit (see 12.20.7.10.2) is cleared to zero and device processes a read command with:
a) the starting LBA:
A) less than the write pointer and the ending LBA greater than or equal to the write pointer in the same zone;
or
B) greater than or equal to the write pointer and the ending LBA in the same zone,
then the device shall:
A) not read any data;
B) return command completion with an error; and
C) set the sense key to ILLEGAL REQUEST and the additional sense code to ATTEMPT TO READ INVALID
DATA (see ACS-4 and SPC-5);
or
b) the ending LBA in a different Sequential Write Required zone than the starting LBA, then the device shall:
A) not read any data;
B) return command completion with an error; and
C) set the sense key to ILLEGAL REQUEST and the additional sense code to READ BOUNDARY VIOLATION
(see ACS-4 and SPC-5).
If the URSWRZ bit (see 12.20.7.10.2) is set to one and the device processes a read command:
a) with the starting LBA:
A) less than the write pointer and the ending LBA greater than or equal to the write pointer in the same zone;
or
B) greater than or equal to the write pointer and the ending LBA in the same zone;
or
b) with:
A) the ending LBA in a different Sequential Write Required zone than the starting LBA; and
B) each LBA specified by the command in a Sequential Write Required zone,
then, for any LBA that:
a) contains user data (see ACS-4) written since the most recent time the Zone Condition was EMPTY for the
zone being read, the device shall process the command using the stored data; or
b) does not contain user data written since the most recent time the Zone Condition was EMPTY for the zone
being read, the device shall:
A) process the command using the substitute data pattern for Sequential Write Required zones (see
10.20.5.3.2.3); and
B) not write any data for a read command that has the FUA bit, if any, set to one (see ACS-4).
If the URSWRZ bit (see 12.20.7.10.2) is set to one and the device processes a read command that specifies:
a) a starting LBA that is in a Sequential Write Required zone; and
b) an LBA that is not in a Sequential Write Required zone,
then the device shall:
a) not read any data;
b) return command completion with an error; and
c) set the sense key to ILLEGAL REQUEST and the additional sense code to READ BOUNDARY VIOLATION
(see ACS-4 and SPC-5).
If the device processes a read command that specifies:
a) a starting LBA that is not in a Sequential Write Required zone; and
b) access to an LBA that is in a Sequential Write Required zone,
then the device shall:
a) not read any data;
b) return command completion with an error; and
c) set the sense key to ILLEGAL REQUEST and the additional sense code to ATTEMPT TO READ INVALID
DATA (see ACS-4 and SPC-5).
HGST Hard Disk Drive Specification
117
If the device sets the additional sense code to READ BOUNDARY VIOLATION or ATTEMPT TO READ
INVALID DATA, then the device shall set the LBA field in the error outputs to the value of the write pointer
associated with the Sequential Write Required zone specified by the starting LBA in the command.
10.20.5.3.2.3
Substitute data pattern
The substitute data pattern is data that shall be set by:
a) the manufacturer; or
b) the most recent successful:
A) OVERWRITE EXT command (see ACS-4), if any; or
B) SCT Write Same command (see 10.17.3.1), if any, with:
a) the FUNCTION CODE field set to 0001h, 0002h, 0101h, or 0102h; and
b) the WRITE AND SET SUBSTITUTE DATA PATTERN bit (see 10.20.6.9.2) set to one.
10.20.5.3.2.4
Opening Sequential Write Required zones
If the number of zones with Zone Condition EXPLICITLY OPENED is equal to the value in the MAXIMUM NUMBER
OF OPEN SEQUENTIAL WRITE REQUIRED ZONES field (see 12.20.7.10.3), then any command (e.g., a write
command) that attempts to cause a zone that is not an open zone to become an open zone is completed with an
error as described in 10.20.5.3.3
10.20.5.3.3
10.20.5.3.3.1
Zone Condition state machine
Overview
There is one Zone Condition state machine for each write pointer zone (see 10.20.5.3). The Zone Condition state
machine (see Figure 18) controls the operational characteristics of each write pointer zone. This state machine
consists of the following states:
a) ZC1: Empty state (see 10.20.5.3.3.2);
b) ZC2: Implicit_Open state (see 10.20.5.3.3.3);
c) ZC3: Explicit_Open state (see 10.20.5.3.3.4);
d) ZC4: Closed state (see 10.20.5.3.3.5);
e) ZC5: Full state (see 10.20.5.3.3.6);
Except as specified in 10.20.6, the device shall maintain the zone state after processing all resets except a poweron reset (see ACS-4).
After a power-on reset, the initial state for each write pointer zone shall be:
a) the ZC1: Empty state for a zone in which:
A) the write pointer is valid and indicates the lowest LBA in the zone; and
B) Non-Sequential Write Resources Active is false;
b) the ZC4: Closed state for a zone in which the write pointer is valid and indicates an LBA that is not the lowest
LBA in the zone
c) the ZC5: Full state for a zone in Zone Condition FULL before the power-on reset;
On completion of a sanitize operation (see 10.20.6.6), for each write pointer zone whose Zone Condition is not
changed as a result of processing the sanitize operation, that zone's state shall be:
a) the ZC1: Empty state for a zone in which:
A) the write pointer is valid and indicates the lowest LBA in the zone; and
B) Non-Sequential Write Resources Active is false;
b) the ZC4: Closed state for a zone in which the write pointer is valid and indicates an LBA that is not the lowest
LBA in the zone
c) the ZC5: Full state for a zone in Zone Condition FULL before the sanitize operation;
This state machine includes the functions shown in Table 82 to define the processing of tasks and provide
interfaces for commands that may affect more than one zone as the result of processing one zone at a time.
HGST Hard Disk Drive Specification
118
Table 82
Zone Condition state machine functions
Function
Manage Open Zone
Resources function
Explicitly Open Zone
function
Close Zone function
Finish Zone function
Reset Write Pointer
function
Description
Used by this state machine to limit the number of open zones,
if required, by closing a zone with a Zone Condition of
IMPLICITLY OPENED
Used by commands (e.g., the OPEN ZONE EXT command
(see 12.65.6)) to open a specified zone
Used by commands (e.g., the CLOSE ZONE EXT command
(see 12.65.4)) to close a specified zone
Used by commands (e.g., the FINISH ZONE EXT command
(see 12.65.5)) to modify a specified zone so that its Zone
Condition becomes FULL
Used by commands (e.g., the RESET WRITE POINTER EXT
command (see 12.65.8)) to modify a specified zone such that
its. Zone Condition becomes EMPTY
Reference
10.20.5.3.3.7
10.20.5.3.3.8
10.20.5.3.3.9
10.20.5.3.3.10
10.20.5.3.3.11
The characteristics and zone attributes associated with the state of a zone are summarized in Table 83.
Table 83 Characteristics and attributes associated with zone state
State
Zone characteristics
Write pointer
valid c
Open zone resources
in use
Accessible for
Reads
Writes
ZC1:Empty state
Yes
No
see a
see b
ZC2:Implicit_Open state
Yes
Yes
Yes
Yes
ZC3:Explicit_Open state
Yes
Yes
Yes
Yes
ZC4:Closed state
Yes
No
Yes
see b
ZC5:Full state
No
No
Yes
No
a.
This zone is accessible for reads if:
a) the zone type is sequential write required and the URSWRZ bit is set to one (see 10.20.5.3.2)
b.
This zone is accessible for writes if the manage open zone resources operation (see 10.20.5.3.3.7) is
able to complete with success and the zone transitions to the ZC2:Implicit_Open state.
c.
A valid write pointer (i.e., Yes) indicates a specific LBA in the zone as described in 10.20.5.3.1. An
invalid write pointer (i.e., No) provides no information.
This state machine shall maintain the OZR Available state machine variable to indicate the value returned by a
Manage Open Zone Resources function (see 10.20.5.3.3.7).
Figure 18 shows the Zone Condition state machine
HGST Hard Disk Drive Specification
119
Figure 18 Zone Condition state machine
HGST Hard Disk Drive Specification
120
10.20.5.3.3.2
ZC1: Empty state
For a zone in this state:
a) Zone Condition shall be set to EMPTY;
b) the write pointer is valid and indicates the lowest LBA in the zone;
c) all zone resources (e.g., the write pointer) shall be persistent zone resources (i.e., open zone resources shall
not be used);
d) RWP Recommended is set as defined in 10.20.4.5 (i.e., set to false);
e) Non-Sequential Write Resources Active is set as defined in 10.20.4.6 (i.e., set to false);
f) if the device processes:
A) a write command with valid parameters;
B) an Explicitly Open Zone function (see 10.20.5.3.3.8); or
C) a Finish Zone function (see 10.20.5.3.3.10),
then, the device shall:
1) process a Manage Open Zone Resources function (see 10.20.5.3.3.7) and set the OZR Available
state machine variable to the value returned by the function; and
2) if the OZR Available state machine variable is set to FAILURE, the device shall:
a) return a failure result for an Explicitly Open Zone function or Finish Zone function; or
b) for a write command:
A) not write any data;
B) return command completion with an error; and
C) set the sense key to DATA PROTECT and the additional sense code to INSUFFICIENT ZONE
RESOURCES (see ACS-4 and SPC-5);
and
g) if the device processes a read command, then the device shall process the read command as described in
10.20.5.3.2.
Transition ZC1:ZC2: The zone shall transition from the ZC1: Empty state to the ZC2: Implicit_Open state (see
10.20.5.3.3.3) if:
a) the device successfully completes:
A) a write command; or
B) a Finish Zone function (see 10.20.5.3.3.10);
and
b) the OZR Available state machine variable is set to SUCCESS.
Transition ZC1:ZC3: The zone shall transition from the ZC1: Empty state to the ZC3: Explicit_Open state (see
10.20.5.3.3.4) if:
a) the device successfully completes an Explicitly Open Zone function (see 10.20.5.3.3.8); and
b) the OZR Available state machine variable is set to SUCCESS.
10.20.5.3.3.3
ZC2: Implicit_Open state
For a zone in this state:
a) Zone Condition shall be set to IMPLICITLY OPENED;
b) the write pointer (see 10.20.5.3.1) is valid;
c) all zone resources (e.g., the write pointer) shall be open zone resources, persistent zone resources,
or both (i.e., this zone uses the open zone resources allocated to it);
d) RWP Recommended shall be maintained as defined in 10.20.4.5;
e) Non-Sequential Write Resources Active shall be maintained as defined in 10.20.4.6
f) if the device processes a write command, then the device shall process the write command as described in
10.20.5.3.2;
and
g) if the device processes a read command, then the device shall process the read command as described in
10.20.5.3.2.
If this state is entered as the result of a ZC1:ZC2 transition or a ZC4:ZC2 transition, the device shall continue
processing the write command or Finish Zone function in this state.
Transition ZC2:ZC1: The zone shall transition from the ZC2: Implicit_Open state to the ZC1: Empty state (see
10.20.5.3.3.2):
a) after successful completion of a Reset Write Pointer function (see 10.20.5.3.3.11) for this zone; or
b) if the write pointer indicates the lowest LBA in the zone and Non-Sequential Write Resources Active is false,
HGST Hard Disk Drive Specification
121
then after successful completion of:
A) a Close Zone function (see 10.20.5.3.3.9) for this zone; or
B) a Manage Open Zone Resources function (see 10.20.5.3.3.7) for a different zone that selects and closes
this zone.
Transition ZC2:ZC3: The zone shall transition from the ZC2: Implicit_Open state to the ZC3: Explicit_Open state
(see 10.20.5.3.3.4) after successful completion of an Explicitly Open Zone function (see 10.20.5.3.3.8).
Transition ZC2:ZC4: If the write pointer does not indicate the lowest LBA in the zone or Non-Sequential Write
Resources Active is true, then the zone shall transition from the ZC2: Implicit_Open state to the ZC4: Closed state
(see 10.20.5.3.3.5) after successful completion of:
a) a Close Zone function (see 10.20.5.3.3.9) for this zone; or
b) a Manage Open Zone Resources function (see 10.20.5.3.3.7) for a different zone that selects and closes this
zone.
Transition ZC2:ZC5: For a Sequential Write Required zone, the zone shall transition from the ZC2:
Implicit_Open state to the ZC5: Full state (see 10.20.5.3.3.6) after successful completion of:
a) a Finish Zone function (see 10.20.5.3.3.10); or
b) a write command with the starting LBA equal to the write pointer that writes the highest LBA in the zone.
10.20.5.3.3.4
ZC3: Explicit_Open state
For a zone in this state:
a) Zone Condition shall be set to EXPLICITLY OPENED;
b) the write pointer (see 10.20.5.3.1) is valid;
c) all zone resources (e.g., the write pointer) shall be open zone resources, persistent zone resources, or both
(i.e., this zone uses the open zone resources allocated to it);
d) RWP Recommended shall be maintained as defined in 10.20.4.5;
e) Non-Sequential Write Resources Active shall be maintained as defined in 10.20.4.6;
f) if the device processes a write command, then the device shall process the write command as described in
10.20.5.3.2;
and
g) if the device processes a read command, then the device shall process the read command as
described in 10.20.5.3.2.
Transition ZC3:ZC1: The zone shall transition from the ZC3: Explicit_Open state to the ZC1: Empty state (see
10.20.5.3.3.2):
a) after successful completion of a Reset Write Pointer function (see 10.20.5.3.3.11); or
b) if the write pointer indicates the lowest LBA in the zone and Non-Sequential Write Resources Active is
false, then after successful completion of a Close Zone function (see 10.20.5.3.3.9).
Transition ZC3:ZC4: If the write pointer does not indicate the lowest LBA in the zone or Non-Sequential Write
Resources Active is true, then the zone shall transition from the ZC2: Implicit_Open state to the ZC4: Closed
state (see 10.20.5.3.3.5) after successful completion of a Close Zone function (see 10.20.5.3.3.9).
Transition ZC3:ZC5: For a Sequential Write Required zone, the zone shall transition from the ZC3:
Explicit_Open state to the ZC5: Full state (see 10.20.5.3.3.6) after successful completion of:
a) a Finish Zone function (see 10.20.5.3.3.10); or
b) a write command with the starting LBA equal to the write pointer that writes the highest LBA in the zone.
10.20.5.3.3.5
ZC4: Closed state
For a zone in this state:
a) Zone Condition shall be set to CLOSED;
b) the write pointer (see 10.20.5.3.1) is valid;
c) all zone resources (e.g., the write pointer) shall be persistent zone resources (i.e., open zone resources shall
not be used);
d) all user data shall be written to the zone in non-volatile storage (e.g., by performing the equivalent of a flush
command (see ACS-4));
e) RWP Recommended shall be maintained as defined in 10.20.4.5;
f) Non-Sequential Write Resources Active shall be maintained as defined in 10.20.4.6;
g) if the device processes:
A) a write command with valid parameters;
B) an Explicitly Open Zone function (see 10.20.5.3.3.8); or
C) a Finish Zone function (see 10.20.5.3.3.10),
then, the device shall:
HGST Hard Disk Drive Specification
122
1) process a Manage Open Zone Resources function (see 10.20.5.3.3.7) and set the OZR Available state
machine variable to the value returned by the function; and
2) if the OZR Available state machine variable is set to FAILURE, then the device shall:
a) return a failure result for an Explicitly Open Zone function or Finish Zone function; or
b) for a write command:
A) not write any data;
B) return command completion with an error; and
C) set the sense key to DATA PROTECT and the additional sense code to INSUFFICIENT ZONE
RESOURCES (see ACS-4 and SPC-5);
and
h) if the device processes a read command, then the device shall process the read command as described in
10.20.5.3.2.2 for Sequential Write Required zones.
Transition ZC4:ZC1: The zone shall transition from the ZC4: Closed state to the ZC1: Empty state (see
10.20.5.3.3.2) after successful completion of a Reset Write Pointer function (see 10.20.5.3.3.11).
Transition ZC4:ZC2: The zone shall transition from the ZC4: Closed state to the ZC2: Implicit_Open state (see
10.20.5.3.3.3) if:
a) the device successfully completes:
A) a write command; or
B) a Finish Zone function (see 10.20.5.3.3.10);
and
b) the OZR Available state machine variable is set to SUCCESS.
Transition ZC4:ZC3: The zone shall transition from the ZC4: Closed state to the ZC3: Explicit_Open state
(see10.20.5.3.3.4) if:
a) the device successfully completes an Explicitly Open Zone function (see 10.20.5.3.3.8); and
b) the OZR Available state machine variable is set to SUCCESS.
10.20.5.3.3.6
ZC5: Full state
For a zone in this state:
a) Zone Condition shall be set to FULL;
b) the write pointer is invalid;
c) all LBAs in the zone are able to return data in response to a read command;
d) all zone resources (e.g., the write pointer) shall be persistent zone resources (i.e., open zone resources shall
not be used);
e) RWP Recommended shall be maintained as defined in 10.20.4.5;
f) Non-Sequential Write Resources Active shall be maintained as defined in 10.20.4.6;
g) if the device processes a write command, the device shall:
a) not write any data;
b) return command completion with an error; and
c) set the sense key to ILLEGAL REQUEST and the additional sense code to INVALID FIELD IN CDB (see
ACS-4 and SPC-5);
and
h) if the device processes a read command, then the device shall process the read command as described in
10.20.5.3.2.2 for Sequential Write Required zones.
Transition ZC5:ZC1: The zone shall transition from the ZC5: Full state to the ZC1: Empty state (see 10.20.5.3.3.2)
after successful completion of a Reset Write Pointer function (see 10.20.5.3.3.11).
10.20.5.3.3.7
Manage Open Zone Resources function
10.21.5.3.3.7.1 Overview
The Manage Open Zone Resources function provides a way for the Zone Condition state machine to allow a zone
to become an open zone while maintaining the limits on the number of open zones that the device indicates in the
MAXIMUM NUMBER OF OPEN SEQUENTIAL WRITE REQUIRED ZONES field (see 12.20.7.10.3).
The processing of a Manage Open Zone Resources function is requested only within the Zone Condition state
machine.
The Manage Open Zone Resources function shall return:
a) SUCCESS to indicate that sufficient open zone resources are available to allow a Zone Condition to become
IMPLICITLY OPENED or EXPLICITLY OPENED; or
b) FAILURE to indicate that insufficient open zone resources are available to allow a Zone Condition to become
HGST Hard Disk Drive Specification
123
IMPLICITLY OPENED or EXPLICITLY OPENED.
The Manage Open Zone Resources function:
a) determines whether open zone resources are available to allow a zone to become an open zone; and
b) closes a zone with a Zone Condition of IMPLICITLY OPENED in order to make open zone resources available.
As detailed in 10.20.5.3.3.7, the Manage Open Zone Resources function returns SUCCESS if:
a) closing a zone is not required in order to limit the number of open zones; or
b) a zone is closed in order to limit the number of open zones.
Otherwise, the Manage Open Zone Resources function returns FAILURE.
10.21.5.3.3.7.2 Processing a sequential write required zone
If equation (1) evaluates to true, then:
a) the device should not select a zone to be closed; and
b) the function shall return SUCCESS.
max > (explicitɤ + implicitɤ)
(1)
If equation (2) evaluates to true, the function shall return FAILURE.
max < explicitɤ
(2)
If equation (3) evaluates to true, then:
a) the device shall choose a zone with a Zone Condition of IMPLICITLY OPENED and process a Close Zone
function (see 4.20.5.3.3.9) on that zone; and
b) the function shall return SUCCESS.
(max ≤ (explicitɤ + implicitɤ)) AND (0 < implicitɤ)
(3)
where:
explicitɤ
is the number of Sequential Write Required zones (see 10.20.5.3.2) with a Zone Condition of
EXPLICITLY OPENED;
implicitɤ
is the number of Sequential Write Required zones with a Zone Condition of IMPLICITLY
OPENED; and
max
is the contents of the MAXIMUM NUMBER OF OPEN SEQUENTIAL WRITE REQUIRED ZONES
field (see12.20.7.10.3).
10.20.5.3.3.8
Explicitly Open Zone function
The Explicitly Open Zone function prepares a write pointer zone for writing (e.g., by allocating any open zone
resources associated with the write pointer zone).
For the specified zone:
1) the device shall process the Manage Open Zone Resources function (see 10.20.5.3.3.7);
2) if the Manage Open Zone Resources function returned FAILURE, then the Explicitly Open Zone function shall
return FAILURE; and
3) if the Manage Open Zone Resources function returned SUCCESS, then:
1) the Zone Condition for that zone shall become EXPLICITLY OPENED; and
2) the Explicitly Open Zone function shall return SUCCESS.
An Explicitly Open Zone function is allowed to be processed on a zone with a Zone Condition of EXPLICITLY
OPENED.
This has no effect and is not considered to be an error.
10.20.5.3.3.9
Close Zone function
A successful Close Zone function annuls any preparations made for writing an open zone (e.g., by deallocating
any open zone resources associated with the write pointer zone).
As a result of a successful Close Zone function, the following become non-volatile:
a) the write pointer for the specified write pointer zone; and
b) all user data stored in the specified write pointer zone.
For the specified zone, the Zone Condition state machine processing of this function (e.g., as shown in the ZC2:
Implicit_Open state (see 10.20.5.3.3.3)) results in the Zone Condition for the specified zone becoming:
a) EMPTY, if the write pointer indicates the lowest LBA in the zone
or
b) CLOSED, if the write pointer does not indicate the lowest LBA in the zone.
HGST Hard Disk Drive Specification
124
A Close Zone function is allowed to be processed on a zone with a Zone Condition of CLOSED. Such an operation
has no effect and is not considered to be an error.
10.20.5.3.3.10
Finish Zone function
The result of a successful Finish Zone function is:
a) the Zone Condition becomes FULL; and
b) all user data in the zone becomes non-volatile and available for reading.
The device shall process the Finish Zone function for the specified zone as follows:
1) if the Zone Condition is EMPTY or CLOSED, perform the processing described in 10.20.5.3.3.2 and
10.20.5.3.3.5;
and
2) if the Zone Condition after processing step 1) is EXPLICITLY OPENED or IMPLICITLY OPENED, then:
A) subsequent reads that specify logical sectors in the zone that have not been written since the last time the
Zone Condition was EMPTY shall return the substitute data pattern (see 10.20.5.3.2.3); and
B) the Zone Condition for the specified zone becomes FULL.
A finish zone function that is performed on a zone with a Zone Condition of FULL has no effect and is not
considered to be an error.
10.20.5.3.3.11
Reset Write Pointer function
A successful Reset Write Pointer function results in the Zone Condition becoming EMPTY (i.e., the write pointer is
set to the lowest LBA in the zone and the write pointer becomes valid) for the specified zone.
A Reset Write Pointer function that is performed on a zone with a Zone Condition of EMPTY has no effect and is
not considered to be an error.
Additional features for the Host Managed Zones feature set
Introduction
Support for the Host Managed Zones feature set (see 10.20.3) modifies features defined in ACS-4.
Zoned device internal resource management
A device that supports the Host Managed Zones feature set (see 10.20.3) requires internal resources (e.g.,
persistent zone resources) to maintain each zone.
Before sending the RESET WRITE POINTER EXT (see 12.65.8) command, the host may copy the user data in
the affected zone to another location.
Unexpected power removal
If power is removed from a zoned device and:
a) there are partially completed commands that result in writing the non-volatile media;
b) there is user data in volatile write cache; or
c) zone attributes for completed write commands are not stored in persistent zone resources,
then an unexpected power removal condition has occurred.
An unexpected power removal condition results in zone attributes for partially completed write commands
being updated to reflect the partial user data written to the medium (e.g., a write pointer indicates the LBA
plus one of the last logical sector that the device attempted to write before the unexpected power removal
condition).
If:
1) the device has non-volatile media;
2) all write cache is non-volatile (i.e., the NON-VOLATILE WRITE CACHE ENABLED bit (see ACS-4) is set to
one) or the volatile write cache is disabled (i.e., the VOLATILE WRITE CACHE ENABLED bit (see ACS-4) is
cleared to zero);
3) a write command completes without error; and
4) an unexpected power removal occurs,
then, after power is restored, a read command that completes without error for any LBA included in that write
command shall return the user data that was written by that write command before the unexpected power removal.
If:
1) the device has non-volatile media;
2) a write FUA command completes without error; and
HGST Hard Disk Drive Specification
125
3) an unexpected power removal occurs,
then, after power is restored, a read command that completes without error for any LBA included in that write FUA
command shall return the user data that was written by that write FUA command before the unexpected power
removal.
If:
1) the device has non-volatile media;
2) a write command completes without error;
3) a subsequent flush command completes without error; and
4) an unexpected power removal occurs,
then, after power is restored, a read command that completes without error for any LBA included in that write
command shall return the user data that was written by that write command before the unexpected power removal
For Sequential Write Required zones (see 10.20.5.3.2), if an unexpected power removal results in unwritten logical
sectors in LBAs lower than the write pointer for a zone and read commands access those unwritten logical sectors,
then the device shall:
a) return command completion with an error; and
b) set the sense key to MEDIUM ERROR and the additional sense code to UNWRITTEN DATA IN ZONE (see
ACS-4 and SPC-5).
After an unexpected power removal condition, the data transferred to the host by a REPORT ZONES EXT
command (see 12.65.7) contains the write pointers that do not correspond to the ending LBA plus one of the last
command to report completion prior to the unexpected power removal condition.
Media failure
If the device processes a write command that specifies a write pointer zone that results in the additional sense
code being set to (see ACS-4 and SPC-5):
a) WRITE ERROR - RECOVERY NEEDED;
b) WRITE ERROR - RECOVERY SCAN NEEDED; or
c) WRITE ERROR - INSUFFICIENT ZONE RESOURCES,
then the device shall set the LBA field in the error outputs to the lowest numbered LBA where a media failure has
occurred during processing of that write command.
If the additional sense code is set to WRITE ERROR - RECOVERY SCAN NEEDED, the host should:
a) read all the logical blocks between the LBA indicated by the LBA field in the error outputs and the LBA
indicated by the write pointer minus one; and
b) take recovery actions for the LBAs, if any, that return errors.
Interactions with volatile caches
While processing write commands there is a period of time during which the user data may be lost as a result of
using volatile write cache (see ACS-4) if:
a) an unexpected power removal occurs (see 10.20.6.3); or
b) a hardware failure occurs.
If an error occurs while the device is writing to the medium in a Sequential Write Required zone (see 10.20.5.3.2)
and that error is reported as a deferred error (see ACS-4), then the device may invalidate cached user data for
LBAs in that zone that are greater than the LBA reported with the deferred error. This invalidation may occur for
data cached in both volatile and non-volatile caches.
The host may affect behavior of the volatile write cache with:
a) the CLOSE ZONE command (see 12.65.4);
b) the FINISH ZONE command (see 12.65.5);
c) read FUA commands;
d) write FUA commands; and
e) flush commands.
If all write cache is non-volatile (i.e., the NON-VOLATILE WRITE CACHE bit (see ACS-4) is set to one), then all
zone resources shall be persistent zone resources.
If volatile write cache is disabled (i.e., the VOLATILE WRITE CACHE ENABLED bit (see ACS-4) is cleared to zero),
then all zone resources shall be persistent zone resources.
If volatile write cache is enabled (i.e.,the VOLATILE WRITE CACHE ENABLED bit is set to one) and the device
processes:
a) a CLOSE ZONE EXT command with the CLOSE ALL bit set to one (see 12.65.4.3.2);
b) a FINISH ZONE EXT command with the FINISH ALL bit set to one (see 12.65.5.3.2);
HGST Hard Disk Drive Specification
126
c) a RESET WRITE POINTER EXT command with the RESET ALL bit set to one (see 12.65.8.3.2);
d) a flush command; or
e) a STANDBY IMMEDIATE command (see ACS-4),
then, for all open write pointer zones, all zone resources shall become persistent zone resources before returning
command completion without error.
If volatile write cache is enabled, then prior to a transition to a power condition that prevents access to the media
(e.g., before a hard drive stops its spindle motor during a transition to the Standby_z power condition (see ACS-4))
for all open write pointer zones all zone resources shall become persistent zone resources.
If volatile write cache is enabled (i.e.,the VOLATILE WRITE CACHE ENABLED bit is set to one) and the device
processes:
a) a CLOSE ZONE EXT command with the CLOSE ALL bit cleared to zero (see 12.65.4.3.2);
b) a FINISH ZONE EXT command with the FINISH ALL bit cleared to zero (see 12.65.5.3.2);
c) a RESET WRITE POINTER EXT command with the RESET ALL bit cleared to zero (see 12.65.8.3.2);
d) a read FUA command;
e) a write FUA command; or
f) a write stream command with the FLUSH bit set to one (see ACS-4),
then, for the affected open write pointer zones, all zone resources shall become persistent zone resources before
returning command completion without error.
If:
a) the write-read-verify feature set (see ACS-4) is enabled; and
b) the processing of a write command requires the device to read from the media before returning command
completion without error,
then, for the affected open write pointer zones, all zone resources shall become persistent zone resources before
returning command completion without error for that write command.
If volatile write cache is enabled and the device returns command completion without error for an IDLE IMMEDIATE
command (see ACS-4), then all open zone resources that are volatile may remain volatile.
Interactions with the Sanitize Device feature set
If a device that supports the Host Managed Zones feature set (see 10.20.3) also supports the Sanitize Device
feature set (see ACS-4), then the additional requirements
described in this subclause apply.
The ZONED NO RESET bit shall be supported as described in ACS-4 for each of the following commands that are
supported:
a) the CRYPTO SCRAMBLE EXT command (see ACS-4);
b) the BLOCK ERASE EXT (see ACS-4) command; and
c) the OVERWRITE EXT command (see ACS-4).
A CRYPTO SCRAMBLE EXT command, BLOCK ERASE EXT command, or OVERWRITE EXT command affects
all zones as follows:
a) the specified sanitize operation is performed as specified in ACS-4 for each Conventional zone (see
10.20.5.2);
b) the specified sanitize operation is performed as specified in ACS-4 for each write pointer zone (see 10.20.5.3)
and shall include processing of the ZONED NO RESET bit as described in ACS-4 if a sanitize operation:
A) is successful; or
B) fails and:
a) the Failure Mode Policy value (see ACS-4) allows successful processing of a SANITIZE STATUS EXT
command with the CLEAR SANITIZE OPERATION FAILED bit set to one; and
b) a failed sanitize operation is followed by a SANITIZE STATUS EXT command with the CLEAR SANITIZE
OPERATION FAILED bit set to one;
Interactions with the Power Management feature set
As the result of a Power Management Transition PM3:PM2 (see ACS-4) the state of each write pointer zone will
not be set as indicated for the initial state after a power-on reset (see 10.20.5.3.3.1).
Interactions with the SECURITY ERASE UNIT command
If a device supports the device processes a SECURITY ERASE UNIT command (see 12.36), then prior to returning
command completion without error if the ZAC SECURITY OPTION bit (see ACS-4) is:
HGST Hard Disk Drive Specification
127
A) cleared to zero, then the device shall cause the Zone Condition to become EMPTY for all write pointer
zones; or
B) set to one, then the device shall cause the Zone Condition to become FULL for all write pointer zones see
(see 10.20.5.3).
Interactions with the SCT Write Same command
10.20.6.9.1
Overview
If the FUNCTION CODE field is set to 0001h, 0002h, 0101h, or 0102h in an SCT Write Same command (see
10.17.3.1), then the ZAC OPTIONS field (see Table 84) adds zoned device support capabilities to the processing
of the command. Unless otherwise specified, specifying a zoned device capability using the ZAC OPTIONS field
shall not affect the processing of an SCT Write Same command as described in 10.17.3.1.
Table 84
ZAC OPTIONS field
Bit
15
14:4
3:0
Meaning
WRITE AND SET SUBSTITUTE DATA PATTERN bit (see 10.20.6.9.2)
Reserved
ZONE POST PROCESSING field (see 10.20.6.9.3)
If the FUNCTION CODE field is not set to 0001h, 0002h, 0101h, or 0102h and the ZAC OPTIONS field is not
cleared
to zero, then the device should:
a) complete the command with an error; or
b) process the command as if the ZAC OPTIONS field is cleared to zero.
10.20.6.9.2
WRITE AND SET SUBSTITUTE DATA PATTERN bit
A zoned device shall process an SCT Write Same command as follows:
1) perform the actions specified for the SCT Write Same command (see ACS-4);
2) if the WRITE AND SET SUBSTITUTE DATA PATTERN bit is set to one, set the substitute data pattern; and
3) process the ZONE POST PROCESSING field (see 10.20.6.9.3).
If an error occurs during any of these steps, the subsequent steps shall not be performed.
10.20.6.9.3
ZONE POST PROCESSING field
After successfully processing the SCT Write Same command as described in ACS-4, the ZONE POST
PROCESSING field (see Table 85) specifies additional processing that shall be done by the device.
Table 85
ZONE POST PROCESSING field
Code
0h
1h
2h
3h to 8h
9h
Ah
Bh..Fh
Meaning
None: The device shall process the SCT Write Same command as described in ACS-4
with no additional processing
Close Affected Zones: The device shall process a Close Zone function (see
10.20.5.3.3.9) for each zone to which user data was written during the processing of the
SCT Write Same command.
Reset Affected Zones: The device shall process a Reset Write Pointer function (see
10.20.5.3.3.11) for each zone to which user data was written during the processing of
the SCT Write Same command.
Reserved
Close All Zones: The device shall process a Close Zone function (see 10.20.5.3.3.9)
for each zone with a Zone Condition of IMPLICITLY OPENED or EXPLICITLY OPENED.
Reset All Zones: The device shall process a Reset Write Pointer function (see
10.20.5.3.3.11) for each zone with a Zone Condition of IMPLICITLY OPENED,
EXPLICITLY OPENED, CLOSED, or FULL.
Reserved
HGST Hard Disk Drive Specification
128
11 Command Protocol
The commands are grouped into different classes according to the protocols followed for command execution. The
command classes with their associated protocols are defined below.
Please refer to Serial ATA Revision 3.0 about each protocol.
For all commands, the host must first check if BSY=1, and should proceed no further unless and until BSY=0. For
all commands, the host must also wait for RDY=1 before proceeding.
A device must maintain either BSY=1 or DRQ=1 at all times until the command is completed. The INTRQ signal is
used by the device to signal most, but not all, times when the BSY bit is changed from 1 to 0 during command
execution.
A command shall only be interrupted with a COMRESET or software reset. The result of writing to the Command
register while BSY=1 or DRQ=1 is unpredictable and may result in data corruption. A command should only be
interrupted by a reset at times when the host thinks there may be a problem, such as a device that is no longer
responding.
Interrupts are cleared when the host reads the Status Register, issues a reset, or writes to the Command Register.
PIO Data In commands
These commands are:
 Device Configuration Identify
 Identify Device
 Read Buffer
 Read Log Ext
 Read Multiple
 Read Multiple Ext
 Read Sector(s)
 Read Sector(s) Ext
 SMART Read Attribute Values
 SMART Read Attribute Thresholds
 SMART Read Log Sector
Execution includes the transfer of one or more 512 byte sectors of data from the device to the host.
PIO Data Out commands
These commands are:
 Device Configuration Set
 Download Microcode
 Format Track
 Security Disable Password
 Security Erase Unit
 Security Set Password
 Security Unlock
 Set Max Set Password command
 Set Max Unlock command
 SMART Write Log Sector
 Write Buffer
 Write Log Ext
 Write Multiple
 Write Multiple Ext
 Write Multiple FUA Ext
 Write Sector(s)
HGST Hard Disk Drive Specification
129
 Write Sector(s) Ext
Execution includes the transfer of one or more 512 byte sectors of data from the host to the device.
Non-Data commands
These commands are:

Check Power Mode

Crypto Scramble Ext (data encryption model only)

Device Configuration Freeze Lock

Device Configuration Restore

Execute Device Diagnostic

Flush Cache

Flush Cache Ext

Format Unit

Idle

Idle Immediate

Initialize Device Parameters

NCQ NON-DATA

NOP

Overwrite Ext

Read Native Max Address

Read Native Max Address Ext

Read Verify Sector(s)

Read Verify Sector(s) Ext

Recalibrate

Sanitize Freeze Lock Ext

Sanitize Status Ext

Security Erase Prepare

Security Freeze Lock

Seek

Set Features

Set Max Address

Set Max Address Ext

Set Max Lock command

Set Max Freeze Lock command

Set Multiple Mode

Sleep

SMART Disable Operations

SMART Enable/Disable Attribute Autosave

SMART Enable Operations

SMART Execute Off-line Data Collection

SMART Return Status

SMART Save Attribute Values

SMART Enable/Disable Automatic Off-Line

Standby

Standby Immediate

CLOSE ZONE EXT

FINISH ZONE EXT

OPEN ZONE EXT

RESET WRITE POINTER EXT
Execution of these commands involves no data transfer.
HGST Hard Disk Drive Specification
130
DMA Data In commands and DMA Data Out commands
These commands are:
 Download Microcode DMA
 Read DMA
 Read DMA Ext
 Read Log DMA Ext
 Write DMA
 Write DMA Ext
 Write DMA FUA Ext
 Write Log DMA Ext
 Write Stream DMA Ext
 REPORT ZONES EXT
Execution of this class of command includes the transfer of one or more blocks of data between the device and the
host using DMA transfer.
First-party DMA commands
These commands are:
 Read FPDMA Queued
 Write FPDMA Queued
 Receive FPDMA Queued
Execution of this class of commands includes command queuing and the transfer of one or more blocks of data
between the device and the host. The protocol is described in the section 13.6 “Native Command Queuing” of
“Serial ATA Revision 3.0”.
Host knowledge of I/O priority may be transmitted to the device as part of the command. There are two priority
classes for NCQ command as high priority, the host is requesting a better quality of service for that command than
the commands issued with normal priority.
The classes are forms of soft priority. The device may choose to complete a normal priority command before an
outstanding high priority command, although preference is given to the high priority commands. The priority class
is indicated in bit 7 (Priority Information) in the Sector Count register for NCQ commands (READ FPDMA QUEUED
and WRITE FPDMA QUEUED). This bit can indicate either the normal priority or high priority class. If a command
is marked by the host as high priority, the device attempts to provide better quality of service for the command. The
device may not process all high priority requests before satisfying normal priority requests.
HGST Hard Disk Drive Specification
131
12 Command Descriptions
Table 86 Command Set
Code
Protocol
Command
3
3
3
3
3
1
2
2
3
3
3
2
3
1
3
3
3
3
3
3
3
1
4
4
4
5
1
4
1
1
3
3
1
1
1
3
3
3
3
Check Power Mode
Check Power Mode*
Crypto Scramble Ext (data encryption model only)
Device Configuration Restore
Device Configuration Freeze Lock
Device Configuration Identify
Device Configuration Set
Download Microcode
Execute Device Diagnostic
Flush Cache
Flush Cache Ext
Format Track
Format Unit
Identify Device
Idle
Idle*
Idle Immediate
Idle Immediate*
Initialize Device Parameters
NCQ Queue Management
Overwrite Ext
Read Buffer
Read DMA
Read DMA
Read DMA Ext
Read FPDMA Queued
Read Log Ext
Read Log DMA Ext
Read Multiple
Read Multiple Ext
Read Native Max Address
Read Native Max Address Ext
Read Sector(s)
Read Sector(s)
Read Sector(s) Ext
Read Verify Sector(s)
Read Verify Sector(s)
Read Verify Sector(s) Ext
Recalibrate
Binary Code Bit
(Hex)
7
6
5
4
3
2
1
0
E5
98
B4
B1
B1
B1
B1
92
90
E7
EA
50
F7
EC
E3
97
E1
95
91
63
B4
E4
C8
C9
25
60
2F
47
C4
29
F8
27
20
21
24
40
41
42
1x
1
1
1
1
1
1
1
1
1
1
1
0
1
1
1
1
1
1
1
0
1
1
1
1
0
0
0
0
1
0
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1
1
1
1
1
0
1
0
0
1
0
1
1
1
0
1
0
1
1
0
1
0
0
0
0
1
1
1
0
1
0
1
1
1
1
1
0
0
1
1
0
1
1
1
0
1
0
0
1
1
1
0
0
1
1
1
0
0
1
1
1
1
1
1
0
0
0
0
0
1
1
1
1
1
1
1
1
0
0
1
1
0
0
1
0
1
1
0
1
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
1
1
0
0
1
0
0
1
1
0
0
0
0
0
0
0
-
1
0
1
0
0
0
0
0
0
1
0
0
1
1
0
1
0
1
0
0
1
1
0
0
1
0
1
1
1
0
0
1
0
0
1
0
0
0
-
0
0
0
0
0
0
0
1
0
1
1
0
1
0
1
1
0
0
0
1
0
0
0
0
0
0
1
1
0
0
0
1
0
0
0
0
0
1
-
1
0
0
1
1
1
1
0
0
1
0
0
1
0
1
1
1
1
1
1
0
0
0
1
1
0
1
1
0
1
0
1
0
1
0
0
1
0
-
HGST Hard Disk Drive Specification
132
Table 87 Command Set –Continued–
Protocol
5
3
3
2
3
2
3
2
2
3
3
3
3
3
3
3
3
3
3
3
1
1
3
3
2
3
3
3
3
3
2
4
4
4
4
5
2
4
2
2
2
Code
(Hex)
65
B4
B4
F6
F3
F4
F5
F1
F2
7x
EF
F9
37
C6
E6
99
B0
B0
B0
B0
B0
B0
B0
B0
B0
B0
E2
96
E0
94
E8
CA
CB
35
3D
61
3F
57
C5
39
CE
Command
Receive FPMDA Queued
Sanitize Freeze Lock Ext
Sanitize Status Ext
Security Disable Password
Security Erase Prepare
Security Erase Unit
Security Freeze Lock
Security Set Password
Security Unlock
Seek
Set Features
Set Max Address
Set Max Address Ext
Set Multiple Mode
Sleep
Sleep*
SMART Disable Operations
SMART Enable/Disable Attribute Auto save
SMART Enable Operations
SMART Execute Off-line Data Collection
SMART Read Attribute Values
SMART Read Attribute Thresholds
SMART Return Status
SMART Save Attribute Values
SMART Write Log Sector
SMART Enable/Disable Automatic Off-line
Standby
Standby*
Standby Immediate
Standby Immediate*
Write Buffer
Write DMA
Write DMA
Write DMA Ext
Write DMA FUA Ext
Write FPDMA Queued
Write Log Ext
Write Log DMA Ext
Write Multiple
Write Multiple Ext
Write Multiple FUA Ext
7
0
1
1
1
1
1
1
1
1
0
1
1
0
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
0
0
0
0
0
1
0
1
HGST Hard Disk Drive Specification
133
6
1
0
0
1
1
1
1
1
1
1
1
1
0
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
1
1
1
0
0
1
0
1
1
0
1
Binary Code Bit
5
4
3
2
1
0
0
1
1
1
0
1
1
1
0
1
1
1
1
0
1
1
0
0
1
1
0
1
1
1
0
1
1
1
0
0
1
1
0
0
1
1
1
0
1
1
1
1
1
0
1
1
0
1
0
0
0
1
1
0
0
1
0
1
1
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
0
0
0
0
1
0
1
1
0
0
0
0
1
0
1
1
0
1
0
0
0
1
0
0
0
1
0
1
1
0
1
1
1
1
1
1
0
0
0
1
1
1
1
0
1
0
1
0
0
0
1
1
1
1
0
0
0
1
1
1
0
0
0
1
1
0
0
0
1
1
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
1
1
0
0
0
1
1
0
0
1
0
1
0
0
0
1
0
1
1
0
1
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
0
Table 88 Command Set –Continued–
Protocol
2
2
2
3
3
3
4
3
Protocol :
Code
(Hex)
30
31
34
9F
9F
9F
4A
9F
Command
Write Sector(s)
Write Sector(s)
Write Sector(s) Ext
CLOSE ZONE EXT
FINISH ZONE EXT
OPEN ZONE EXT
REPORT ZONES EXT
RESET WRITE POINTER EXT
1:
2:
3:
4:
5:
+:
7
0
0
0
1
1
1
0
1
6
0
0
0
0
0
0
1
0
Binary Code Bit
5
4
3
2
1
1
0
0
1
1
0
0
1
1
0
1
0
1
1
1
0
1
1
1
0
1
1
1
0
0
1
1
0
1
1
1
PIO data IN command
PIO data OUT command
Non data command
DMA command
DMA Queued command
Vendor specific command
Commands marked * are alternate command codes for previous defined commands.
HGST Hard Disk Drive Specification
134
1
0
0
0
1
1
1
0
1
0
0
1
0
1
1
1
0
1
Table 89 Command Set (Subcommand)
Command
code
(Hex)
Command (Subcommand)
(SMART Function)
SMART Read Attribute Values
SMART Read Attribute Thresholds
SMART Enable/Disable Attribute Autosave
SMART Save Attribute Values
SMART Execute Off-line Data Collection
SMART Read Log
SMART Write Log
SMART Enable Operations
SMART Disable Operations
SMART Return Status
SMART Enable/Disable Automatic Off-line
(Set Features)
Enable Write Cache
Set Transfer Mode
Enable Advanced Power Management
Enable Power-up in Standby Feature Set
Power-up in Standby Feature Set Device Spin-up
Disable read look-ahead feature
Disable reverting to power on defaults
Disable write cache
Disable Advanced Power Management
Disable Power-up in Standby Feature Set
Enable read look-ahead feature
Enable reverting to power on defaults
(Sanitize Device Feature Set)
Sanitize Status Ext
Crypto Scramble Ext (data encryption model only)
Overwrite Ext
Sanitize Freeze Lock Ext
(NCQ NON-DATA)
Abort NCQ queue – Abort All
Abort NCQ queue – Abort Streaming
Abort NCQ queue – Abort Non-Streaming
Abort NCQ queue – Abort Selected
Deadline Handling – WDNC
Deadline Handling – RDNC
Feature
Register
(Hex)
B0
B0
B0
B0
B0
B0
B0
B0
B0
B0
B0
D0
D1
D2
D3
D4
D5
D6
D8
D9
DA
DB
EF
EF
EF
EF
EF
EF
EF
EF
EF
EF
EF
EF
02
03
05
06
07
55
66
82
85
86
AA
CC
B4
B4
B4
B4
0000
0011
0014
0020
63
63
63
63
63
00
10
20
30
Set:11
Clear:01
Set:21
Clear:01
63
(Zone Manamgent In Command)
CLOSE ZONE EXT
9F
9F
9F
4A
9F
FINISH ZONE EXT
OPEN ZONE EXT
REPORT ZONES EXT
RESET WRITE POINTER EXT
0001 or 0101
0002 or 0102
0003 or 0103
see 12.65.7.1
0004 or 0104
Table 86 Command Set on the page 132 and Table 87 Command Set – Continued- on the page 133 show the
commands that are supported by the device. Table 89 Command Set (Subcommand) on the page 135 shows the
sub-commands they are supported by each command or feature.
HGST Hard Disk Drive Specification
135
The following symbols are used in the command descriptions:
Output Registers
0
Indicates that the bit must be set to 0.
1
Indicates that the bit must be set to 1.
D The device number bit. Indicates that the device number bit of the Device/Head Register should be specified.
This bit is reserved since all Serial ATA devices behave like Device 0.
H Head number. Indicates that the head number part of the Device/Head Register is an output parameter and
should be specified.
L LBA mode. Indicates the addressing mode. Zero specifies CHS mode and one does LBA addressing mode.
R Retry. Original meaning is already obsolete, there is no difference between 0 and 1. (Using 0 is recommended
for future compatibility.)
B Option Bit. Indicates that the Option Bit of the Sector Count Register should be specified. (This bit is used by
Set Max ADDRESS command)
V Valid. Indicates that the bit is part of an output parameter and should be specified.
X Indicates that the hex character is not used.
Indicates that the bit is not used.
Input Registers
0
Indicates that the bit is always set to 0.
1
Indicates that the bit is always set to 1.
H Head number. Indicates that the head number part of the Device/Head Register is an input parameter and will
be set by the device.
V Valid. Indicates that the bit is part of an input parameter and will be set to 0 or 1 by the device.
Indicates that the bit is not part of an input parameter.
The command descriptions show the contents of the Status and Error Registers after the device has completed
processing the command and has interrupted the host.
Please refer to ATA interface specifications about other commands’ descriptions which are not described in this
SATA interface specification. However, be careful that Serial ATA Device/Head register bit-4 (d) is different from
that of Parallel ATA. In Serial ATA, Device/Head register bit-4 is reserved for all commands.
HGST Hard Disk Drive Specification
136
Check Power Mode (E5h/98h)
Table 90 Check Power Mode Command (E5h/98h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
N/A
N/A
N/A
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 E5h or 98h
Normal Outputs
Field
ERROR
COUNT
LBA
DEVICE
Description
N/A
Value Description
00h Device is in the:
PM2:Standby state and the EPC feature set is not enabled; or
PM2:Standby state, the EPC feature set is enabled, and the device is in the
Standby_z power condition.
01h Device is in the PM2:Standby state, the EPC feature set is enabled, and the device is in
the Standby_y power condition.
02h..3Fh Reserved
40h..41h Obsolete
42h..7Fh Reserved
80h Device is in the
PM1:Idle state and EPC feature set is not supported; or
PM1:Idle state and EPC feature set is supported and the EPC feature set is disabled.
81h Device is in the PM1:Idle state, the EPC feature set is enable, and the device is in the
Idle_a power condition.
82h Device is in the PM1:Idle state, the EPC feature set is enabled, and the device is in
the Idle_b power condition.
83h Device is in the PM1:Idle state, the EPC feature set is enabled, and the device is in
the Idle_c power condition.
84h..FEh Reserved
FFh Device is in the PM0:Active state or PM1:Idle state.
If the LOW POWER STANDBY SUPPORTED bit is set to one, then this field is as described
in this table. Otherwise this field is N/A.
Bit Description
27:20 Device is waiting to enter a lower power condition:
Value Description
- 00h Standby_z
- 01h Standby_y
- 02h..80h Reserved
- 81h Idle_a
- 81h Idle_b
- 82h Idle_c
- 83h..FEh Reserved
- FFh Device is not waiting to enter a lower power condition
19 Device is held in the current power condition
18:0 Reserved
Bit Description
HGST Hard Disk Drive Specification
137
STATUS
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
Bit Description
7:6 Transport Dependent
5 DEVICE FAULT bit
4 N/A
3 Transport Dependent
2 N/A
1 SENSE DATA AVAILABLE bit
0 ERROR bit
Error Outputs
Field
ERROR
COUNT
LBA
DEVICE
STATUS
Description
Bit Description
7:3 N/A
2 ABORT bit
1:0 N/A
N/A
N/A
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
Bit Description
7:6 Transport Dependent
5 DEVICE FAULT bit
4:2 N/A
1 SENSE DATA AVAILABLE bit
0 ERROR bit
The Check Power Mode command will report whether the device is spun up and the media is available for
immediate access.
HGST Hard Disk Drive Specification
138
Device Configuration Overlay (B1h)
Table 91 Device Configuration Overlay Command (B1h)
Command Block Normal Outputs
Command Block Command Input
Register
7
6
5
4
3
2
1
0
Register
7
6
5
4
3
2
1
0
Data
-
-
-
-
-
-
-
-
Data
-
-
-
-
-
-
-
-
Feature
1
0
1
0
V
V
V
V
Error
Sector Count
-
-
-
-
-
-
-
-
Sector Count
V
V
V
V
V
V
V
V
Sector Number
-
-
-
-
-
-
-
-
Sector Number
-
-
-
-
-
-
-
-
Cylinder Low
-
-
-
-
-
-
-
-
Cylinder Low
V
V
V
V
V
V
V
V
Cylinder High
-
-
-
-
-
-
-
-
Cylinder High
V
V
V
V
V
V
V
V
Device/Head
-
-
-
D
-
-
-
-
Device/Head
-
-
-
-
-
-
-
-
Command
1
0
1
1
0
0
0
1
Status
…See Below…
…See Below…
Error Register
7
6
CRC UNC
0
0
5
4
3
0
IDN
0
0
0
0
2
Status Register
1
0
7
ABT T0N AMN
V
0
0
6
5
4
3
2
1
0
BSY RDY DF DSC DRQ COR IDX ERR
V
V
0
-
V
-
-
V
Individual Device Configuration Overlay feature set commands are identified by the value placed in the Features
register. The table below shows these Features register values.
Table 92 Device Configuration Overlay Features register values
Value
Command
C0h
DEVICE CONFIGURATION RESTORE
C1h
DEVICE CONFIGURATION FREEZE LOCK
C2h
DEVICE CONFIGURATION IDENTIFY
C3h
DEVICE CONFIGURATION SET
other
Reserved
HGST Hard Disk Drive Specification
139
Device Configuration Restore (Subcommand C0h)
The Device Configuration Restore command disables any setting previously made by a Device Configuration Set
command and returns the content of the Identify Device or Identify Packet Device command response to the original
settings as indicated by the data returned from the execution of a Device Configuration Identify command.
Device Configuration Freeze Lock (Subcommand C1h)
The Device Configuration Freeze Lock command prevents accidental modification of the Device Configuration
Overlay settings. After successful execution of a Device Configuration Freeze Lock command, all Device
Configuration Set, Device Configuration Freeze Lock, Device Configuration Identify, and Device Configuration
Restore commands are aborted by the device. The Device Configuration Freeze Lock condition shall be cleared
by a power-down. The Device Configuration Freeze Lock condition shall not be cleared by hardware or software
reset.
Device Configuration Identify (Subcommand C2h)
The Device Configuration Identify command returns a 512 byte data structure via PIO data-in transfer. The content
of this data structure indicates the selectable commands, modes, and feature sets that the device is capable of
supporting. If a Device Configuration Set command has been issued reducing the capabilities, the response to an
Identify Device or Identify Packet Device command will reflect the reduced set of capabilities, while the Device
Configuration Identify command will reflect the entire set of selectable capabilities.
The format of the Device Configuration Overlay Data structure is shown on next page.
Device Configuration Set (Subcommand C3h)
The Device Configuration Set command allows a device manufacturer or a personal computer system manufacturer
to reduce the set of optional commands, modes, or feature sets supported by a device as indicated by a Device
Configuration Identify command. The Device Configuration Set command transfers an overlay that modifies some
of the bits set in words 63, 82, 83, 84, and 88 of the Identify Device command response. When the bits in these
words are cleared, the device no longer supports the indicated command, mode, or feature set. If a bit is set in the
overlay transmitted by the device that is not set in the overlay received from a Device Configuration Identify
command, no action is taken for that bit.
The format of the overlay transmitted by the device is described in the table on next page. The restrictions on
changing these bits are described in the text following that table. If any of the bit modification restrictions described
is violated or any setting is changed with Device Configuration Set command, the device shall return command
aborted. At that case, error reason code is returned to sector count register, invalid word location is returned to
cylinder high register, and invalid bit location is returned to cylinder low register. The Definition of error information
is shown on page 142.
Error Information Example 1:
After establish a protected area with Set Max address, if a user attempts to change maximum LBA address
(Device Configuration Set or Device Configuration Restore), device shall abort that command and return error
reason code as below.
Cylinder high
Cylinder low
Sector Number
Sector count
:
:
:
:
03h
00h
00h
06h
= word 3 is invalid
this register is not assigned in this case
this register is not assigned in this case
= Protected area is now established
Error Information Example 2:
When device is enabled the Security feature set, if user attempts to disable that feature, device abort that command
and return error reason code as below.
Cylinder high
Cylinder low
Sector Number
Sector count
:
:
:
:
07h
00h
08h
04h
= word 7 is invalid
= bit 8-15 are valid
= bit 3 is invalid
= now Security feature set is enabled
HGST Hard Disk Drive Specification
140
Table 93 Device Configuration Overlay Data structure
Word
0
1
2
3-6
7
8
9-20
Content
0002h
Data Structure revision
Multiword DMA modes supported
15-3 Reserved
2 1 = Multiword DMA mode 2 and below are supported
1 1 = Multiword DMA mode 1 and below are supported
0 1 = Multiword DMA mode 0 is supported
Ultra DMA modes supported
15-7 Reserved
6 1 = Ultra DMA mode 6 and below are supported
5 1 = Ultra DMA mode 5 and below are supported
4 1 = Ultra DMA mode 4 and below are supported
3 1 = Ultra DMA mode 3 and below are supported
2 1 = Ultra DMA mode 2 and below are supported
1 1 = Ultra DMA mode 1 and below are supported
0 1 = Ultra DMA mode 0 is supported
Maximum LBA address
Command set/feature set supported
15 0 = Reserved
14 0 = Reserved
13 0 = Reserved
12 1 = SMART Selective self-test is supported
11 1 = Forced Unit Access is supported
10 0 = Reserved
9 0 = Streaming feature set is supported
8 1 = 48-bit Addressing feature set supported
7 1 = Host Protected Area feature set supported
6 0 = Reserved
5 1 = Read/Write DMA Queued commands supported
4 1 = Power-up in Standby feature set supported
3 1 = Security feature set supported
2 1 = SMART error log supported
1 1 = SMART self-test supported
0 1 = SMART feature set supported
Serial ATA command / feature sets supported
15-5 Reserved
4 1 = Supports software settings preservation
3 Reserved
2 1 = Supports interface power management
1 1 = Supports non-zero buffer offset in DMA Setup FIS
0 1 = Supports native command queuing
Reserved
HGST Hard Disk Drive Specification
141
Table 94 Device Configuration Overlay Data structure –ContinuedWord
21
22-254
255
Content
15-10
Reserved
9
1 = Extended Power Conditions feature set supported
8-0
Reserved
Reserved
Integrity word
<Note .>
15-8
Checksum
7-0
Signature (A5h)
Note.
Bits 7:0 of this word contain the value A5h. Bits 15:8 of this word contain the data structure checksum. The data
structure checksum is the two’s complement of the sum of all byte in words 0 through 254 and the byte consisting
of bits 7:0 of word 255. Each byte is added with unsigned arithmetic, and overflow is ignored. The sum of all bytes
is zero when the checksum is correct.
Table 95 DCO error information definition
Cylinder high
Cylinder low
Sector number
Sector count
invalid word location
invalid bit location (bits (15:8))
invalid bit location (bits (7:0))
error reason code & description
01h
DCO feature is frozen
02h
Device is now Security Locked mode
03h
Device’s feature is already modified with DCO
04h
User attempt to disable any feature enabled
05h
Device is now SET MAX Locked or Frozen mode
06h
Protected area is now established
07h
DCO is not supported
HGST Hard Disk Drive Specification
142
Download Microcode (92h)
Table 96 Download Microcode Command (92h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
SUBCOMMAND field
BLOCK COUNT field (7:0)
Bit Description
27:24 Reserved
23:8 BUFFER OFFSET field
7:0 BLOCK COUNT field (15:8)
Bit Description
7:5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 92h
Normal Outputs
Field
FEATURE
COUNT
NUMBER
CYLINDER
Description
Subcommand code.
03h : Download and save microcode with offsets. (See 12.3.3)
07h : Download and save microcode.
0Eh : Download and save microcode with offsets for future use. (See 12.3.4)
0Fh : Activate downloaded microcode. (See 12.3.5)
Other values are reserved.
Lower byte of 16-bit sector count value to transfer from the host. (See 12.3.2)
Higher byte of 16-bit sector count value to transfer from the host. (See 12.3.2)
Buffer offset (only used for Feature = 03h or 0Eh)
Error Outputs
Field
ERROR
COUNT
LBA
DEVICE
STATUS
Description
Bit Description
7 INTERFACE CRC bit
6:3 N/A
2 ABORT bit
1:0 N/A
N/A
N/A
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
Bit Description
7:6 Transport Dependent
5 DEVICE FAULT bit
4 N/A
3 Transport Dependent
2 N/A
1 SENSE DATA AVAILABLE bit
0 ERROR bit
HGST Hard Disk Drive Specification
143
Overview
This command enables the host to alter the device’s microcode. The data transferred using the Download
Microcode commands is vendor specific.
In reloading new microcode, when the spin-up of the device is disabled, the device spins down after reloading
new microcode.
The device may abort the Download Microcode command and discard all previously downloaded Microcode, if
the current buffer offset is not equal to the sum of the previous Download Microcode command buffer offset and
the previous sector count. The first Download Microcode command must have a buffer offset of zero. The new
firmware should become effective immediately after the transfer of the last data segment has completed.
When the device detects the last Download Microcode command for the firmware download the device performs
any device required verification and saves the complete set of downloaded microcode.
Power on reset prior to the receipt of the last segment will discard all of the microcode segments received.
Sector Number / Sector Count
All transfers be an integer multiple of the sector size. The size of the data transfer is determined by the contents of
the Sector Number and Sector Count registers. The Sector Number register is used to extend the Sector Count
register to create a 16-bit sector count value. The Sector Number register is the most significant eight bits and the
Sector Count register is the least significant eight bits. A value of zero in both the Sector Number and Sector Count
registers indicate no data is to be transferred.
Download and save microcode with offsets
A Features register value of 03h indicates that the microcode will be transferred in one or more Download
Microcode commands using the offset transfer method. The buffer offset value is defined by the value in Cylinder
registers. The buffer offset value is the starting location in the microcode file, which varies in 512 byte increments.
All microcode segments will be sent to the device in sequence.
Download and save microcode with offsets for future use
A Features register value of 0Eh indicates that the microcode will be transferred in one or more Download
Microcode commands using the offset transfer method, and stored for deferred update. The buffer offset value is
defined by the value in Cylinder registers. The buffer offset value is the starting location in the microcode file, which
varies in 512 byte increments.
All microcode segments will be sent to the device in sequence.
Activate downloaded microcode
The device may abort the Download Microcode command and discard all previously downloaded Microcode, if the
current buffer offset is not equal to the sum of the previous Download Microcode command buffer offset and the
previous sector count. The first Download Microcode command must have a buffer offset of zero.
After the transfer of the last data segment has completed, the device performs any device required verification and
stores the complete set of downloaded microcode which has not been activated. The new firmware will be activated
after the device receives following Download Microcode command with a Features register value of 0Fh.
Power on reset prior to the receipt of the last segment or activate downloaded microcode will discard all of the
microcode segments which are received or stored.
Error Outputs
ABT will be set to 1 in the Error Register if the value in the Feature register is neither 03h, 07h, 0Eh nor 0Fh, or
the device is in Security Locked mode. When the reload of new microcode is requested in the data sent by the
host for this Download command, UNC error will be set to 1 in the Error Register if the device fails to reload new
microcode. This error is reported only when the reload of microcode is requested.
HGST Hard Disk Drive Specification
144
Download Microcode DMA (93h)
Table 97 Download Microcode DMA Command (93h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
SUBCOMMAND field
BLOCK COUNT field(7:0)
Bit Description
27:24 Reserved
23:8 BUFFER OFFSET field
7:0 BLOCK COUNT field (15:8)
Bit Description
7:5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 93h
Normal Outputs
Field
FEATURE
COUNT
NUMBER
CYLINDER
Description
Subcommand code.
03h : Download and save microcode with offsets. (See 12.4.3)
07h : Download and save microcode.
0Eh : Download and save microcode with offsets for future use. (See 12.4.4)
0Fh : Activate downloaded microcode. (See 12.4.5)
Other values are reserved.
Lower byte of 16-bit sector count value to transfer from the host. (See 12.4.2)
Higher byte of 16-bit sector count value to transfer from the host. (See 12.4.2)
Buffer offset (only used for Feature = 03h, 0Eh)
Error Register
See Error Register in 12.3 Download Microcode (92h)
HGST Hard Disk Drive Specification
145
Overview
This command enables the host to alter the device’s microcode. The data transferred using the Download
Microcode DMA commands is vendor specific.
In reloading new microcode, when the spin-up of the device is disabled, the device spins down after reloading
new microcode.
The device may abort the Download Microcode DMA command and discard all previously downloaded
Microcode, if the current buffer offset is not equal to the sum of the previous Download Microcode DMA
command buffer offset and the previous sector count. The first Download Microcode DMA command must have a
buffer offset of zero.
The new firmware should become effective immediately after the transfer of the last data segment has
completed.
When the device detects the last Download Microcode command for the firmware download the device performs
any device required verification and saves the complete set of downloaded microcode.
Power on reset prior to the receipt of the last segment will discard all of the microcode segments received.
Sector Count / Sector Number
All transfers shall be an integer multiple of the sector size. The size of the data transfer is determined by the
contents of the Sector Number and Sector Count registers. The Sector Number register is used to extend the
Sector Count register to create a 16-bit sector count value. The Sector Number register is the most significant eight
bits and the Sector Count register is the least significant eight bits.
Download and save microcode with offsets
A Features register value of 03h indicates that the microcode will be transferred in one or more Download
Microcode DMA commands using the offset transfer method. The buffer offset value is defined by the value in
Cylinder registers. The buffer offset value is the starting location in the microcode file, which varies in 512 byte
increments. All microcode segments will be sent to the device in sequence.
Download and save microcode with offsets for future use
A Features register value of 0Eh indicates that the microcode will be transferred in one or more Download
Microcode DMA commands using the offset transfer method, and stored for deferred update. The buffer offset
value is defined by the value in Cylinder registers. The buffer offset value is the starting location in the microcode
file, which varies in 512 byte increments.
All microcode segments will be sent to the device in sequence.
Activate downloaded microcode
The device may abort the Download Microcode DMA command and discard all previously downloaded
Microcode, if the current buffer offset is not equal to the sum of the previous Download Microcode DMA
command buffer offset and the previous sector count. The first Download Microcode DMA command must have a
buffer offset of zero.
After the transfer of the last data segment has completed, the device performs any device required verification
and stores the complete set of downloaded microcode which has not been activated. The new firmware will be
activated after the device receives following Download Microcode DMA command with a Features register value
of 0Fh.
Power on reset prior to the receipt of the last segment or activate downloaded microcode will discard all of the
microcode segments which are received or stored.
Error Outputs
ABT will be set to 1 in the Error Register if the value in the Feature register is neither 03h, 07h, 0Eh nor 0Fh, or the
device is in Security Locked mode. When the reload of new microcode is requested in the data sent by the host for
this Download command, UNC error will be set to 1 in the Error Register if the device fails to reload new microcode.
This error is reported only when the reload of microcode is requested.
HGST Hard Disk Drive Specification
146
Execute Device Diagnostic (90h)
Table 98 Execute Device Diagnostic Command (90h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
N/A
N/A
N/A
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 90h
Normal Outputs
Field
ERROR
COUNT
LBA
DEVICE
STATUS
Description
Diagnostic Results – The diagnostic code as described in Table 38 is returned.
0x01
0x00ABCD01
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
Bit Description
7:6 Transport Dependent
5 DEVICE FAULT bit
4 N/A
3 Transport Dependent
2 N/A or ALIGNMENT ERROR bit
1 SENSE DATA AVAILABLE bit
0 For ATAPI devices, the CHECK CONDITION bit
For ATA devices, be cleared to zero
The Execute Device Diagnostic command performs the internal diagnostic tests implemented by the device. The
results of the test are stored in the Error Register.
The normal Error Register bit definitions do not apply to this command. Instead, the register contains a diagnostic
code. See Table 38 page 61 for its definition.
HGST Hard Disk Drive Specification
147
Flush Cache (E7h)
Table 99
Flush Cache Command (E7h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
N/A
N/A
N/A
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 E7h
Normal Outputs
Field
ERROR
COUNT
LBA
DEVICE
STATUS
Description
N/A
N/A
N/A
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
Bit Description
7:6 Transport Dependent
5 DEVICE FAULT bit
4 N/A
3 Transport Dependent.
2 N/A or ALIGNMENT ERROR bit
1 SENSE DATA AVAILABLE bit
0 ERROR bit
HGST Hard Disk Drive Specification
148
Error Outputs
Field
ERROR
COUNT
LBA
DEVICE
STATUS
Description
Bit Description
7:3 N/A
2 ABORT bit
1:0 N/A
N/A
LBA of First Unrecoverable Error
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
Bit Description
7:6 Transport Dependent
5 DEVICE FAULT bit
4 N/A
3 Transport Dependent
2 N/A
1 SENSE DATA AVAILABLE bit
0 ERROR bit
This command causes the device to complete writing data from its cache.
The device returns good status after data in the write cache is written to disk media.
HGST Hard Disk Drive Specification
149
Flush Cache Ext (EAh)
Table 100 Flush Cache Ext Command (EAh)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Normal Outputs
Field
ERROR
COUNT
LBA
DEVICE
STATUS
Error Outputs
Field
ERROR
COUNT
LBA
DEVICE
STATUS
Description
Reserved
Reserved
Reserved
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 EAh
Description
Reserved
Reserved
Reserved
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
Bit Description
7:6 Transport Dependent
5 DEVICE FAULT bit
4 N/A
3 Transport Dependent
2 N/A or ALIGNMENT ERROR bit
1 SENSE DATA AVAILABLE bit
0 ERROR bit
Description
Bit Description
7:3 N/A
2 ABORT bit
1:0 N/A
N/A
LBA of First Unrecoverable Error
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
Bit Description
7:6 Transport Dependent
5 DEVICE FAULT bit
4 N/A
3 Transport Dependent
2 N/A
1 SENSE DATA AVAILABLE bit
0 ERROR bit
HGST Hard Disk Drive Specification
150
This command causes the device to complete writing data from its cache.
The device returns good status after data in the write cache is written to disk media.
HGST Hard Disk Drive Specification
151
Format Track (50h)
Table 101 Format Track Command (50h)
Command Block Normal Outputs
Command Block Command Input
Register
7
6
5
4
3
2
1
0
Register
7
6
5
4
3
2
1
0
Data
-
-
-
-
-
-
-
-
Data
-
-
-
-
-
-
-
-
Feature
-
-
-
-
-
-
-
-
Error
Sector Count
-
-
-
-
-
-
-
-
Sector Count
-
-
-
-
-
-
-
-
Sector Number
V
V
V
V
V
V
V
V
Sector Number
V
V
V
V
V
V
V
V
Cylinder Low
V
V
V
V
V
V
V
V
Cylinder Low
V
V
V
V
V
V
V
V
Cylinder High
V
V
V
V
V
V
V
V
Cylinder High
V
V
V
V
V
V
V
V
Device/Head
1
L
1
D
H
H
H
H
Device/Head
-
-
-
-
H
H
H
H
Command
0
1
0
1
0
0
0
0
Status
…See Below…
…See Below…
Error Register
7
6
CRC UNC
0
0
5
4
3
0
IDN
0
0
V
0
2
Status Register
1
0
ABT T0N AMN
V
0
0
7
6
5
BSY RDY DF
0
V
0
4
3
2
1
0
DSC DRQ COR IDX ERR
V
-
0
-
V
The device does not support Format Track command. When the drive receives Format Track command from the
host, the drive will abort the command
The Format Track command formats a single logical track on the device. Each good sector of data on the track will
be initialized to zero with write operation. At this time, whether the sector of data is initialized correctly is not verified
with read operation. Any data previously stored on the track will be lost.
The host may transfer a sector of data containing a format table to the device. But the device ignores the format
table and writes zero to all sectors on the track regardless of the descriptors.
Since device performance is optimal at 1:1 interleave, and the device uses relative block addressing internally, the
device will always format a track in the same way no matter what sector numbering is specified in the format table.
Output Parameters To The Device
Sector Number
In LBA mode, this register specifies LBA address bits 0 – 7 to be formatted. (L=1)
Cylinder High/Low
The cylinder number of the track to be formatted. (L=0)
In LBA mode, this register specifies LBA address bits 8-15 (Low), 16-23 (High) to be
formatted. (L=1)
H
The head number of the track to be formatted. (L=0)
In LBA mode, this register specifies LBA address bits 24-27 to be formatted. (L=1)
Input Parameters From The Device
Sector Number
In LBA mode, this register specifies current LBA address bits 0-7. (L=1)
Cylinder High/Low
In LBA mode, this register specifies current LBA address bits 8-15 (Low), 16-23 (High)
H
In LBA mode, this register specifies current LBA address bits 24-27. (L=1)
Error
The Error Register. An Abort error (ABT=1) will be returned when LBA out of range.
In LBA mode, this command formats a single logical track including the specified LBA.
HGST Hard Disk Drive Specification
152
Format Unit (F7h)
Table 102 Format Unit Command (F7h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
11h
Reserved
Reserved
Bit Description
5:7 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 F7h
Normal Outputs
Field
ERROR
COUNT
LBA
DEVICE
STATUS
Description
Reserved
Reserved
N/A
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
Bit Description
7:6 Transport Dependent
5 DEVICE FAULT bit
4 N/A
3 Transport Dependent
2 N/A or ALIGNMENT ERROR bit
1 SENSE DATA AVAILABLE bit
0 ERROR bit
Error Outputs
Field
ERROR
COUNT
LBA
DEVICE
Description
Bit Description
7:3 N/A
2 ABORT bit
1:0 N/A
N/A
N/A
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
The Format Unit command only initializes all user data sectors in sequential write required zones and also initializes
all user data sectors in conventional write zone with media write, after merging reassigned sector location into the
defect information of the device and clearing the reassign information. Both new reassign information and new
defect information are available right after command completion of this command. Previous information of reassign
and defect are erased from the device by executing this command.
Note that the Format Unit command initializes from LBA 0 to Native MAX LBA regardless of setting by Initialize
Device Parameter (91h) command, Device Configuration Overlay, or Set Max Address (F9h) command, so the
protected area defined by these commands is also initialized.
HGST Hard Disk Drive Specification
153
Security Erase Prepare (F3h) commands should be completed just prior to the Format Unit command. If the device
receives a Format Unit command without a prior Security Erase Prepare command, the device aborts the Format
Unit command.
All values in Feature register are reserved, and any values other than 11h should not be put into Feature register.
This command does not request to data transfer.
Command execution time depends on drive capacity. To determine command timeout value, Word 89 of Identify
Device data should be referred.
HGST Hard Disk Drive Specification
154
Identify Device (ECh)
Table 103 Identify Device Command (ECh)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
N/A
N/A
N/A
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 ECh
Normal Outputs
See Normal Outputs in 12.6 Flush Cache (E7h)
Error Outputs
See Error Outputs in 12.3 Download Microcode (92h)
The Identify Device command requests the device to transfer configuration information to the host. The device will
transfer a sector to the host containing the information described in the following pages.
HGST Hard Disk Drive Specification
155
Table 104 Identify device information
Word
00
Content
045AH
or
045EH
Description
Drive classification, bit assignments:
15 (=0): 1=ATAPI device, 0=ATA device
14 – 8 : Retired
7 (=0): 1=removable cartridge device
6 (=1): 1=fixed device
5-3 : Retired
2 (=0): Response incomplete
1 : Retired
0 (=0): Reserved
Number of cylinders in default translate mode
Specific Configuration
Need Set Feature for spin-up after power-up
37C8H:
Identify Device is incomplete
Need Set Feature for spin-up after power-up
738CH:
Identify Device is complete
No Need Set Feature for spin-up after power-up
8C73H:
Identify Device is incomplete
No Need Set Feature for spin-up after power-up
C837H:
Identify Device is complete
Number of heads in default translate mode
Reserved
Reserved
Number of sectors per track in default translate mode
Number of bytes of sector gap
Number of bytes in sync field
Reserved
Serial number in ASCII (0 = not specified)
Controller type:
0003: dual ported, multiple sector buffer with look-ahead read
Buffer size in 512-byte increments. In case of 64MB buffer, it is set to 0x0000.
01
02
xxxxH
C837H
03
04
05
06
07
08
09
10-19
20
00xxH
0
0
003FH
0000H
0000H
0000H
XXXX
0003H
21
XXXXH
*
22
0038H
* Reserved
23-26
27-46
47
XXXX
XXXX
80xxH
48
4000H
*
*
*
*
*
*
Microcode version in ASCII
Model number in ASCII
15-8 (=80H) 80h
Maximum number of sectors that can be transferred per interrupt on
Read and Write Multiple commands
7-0 (=xxH)
If logical sector size is 512 bytes, the content of this bits are 10H.
If logical sector size is 4096 bytes, the content of this bits are 02H.
Trusted Computing feature set options
15 (=0) : Shall be cleared to zero
14 (=1) : Shall be set to one
13-1 (=0) : Reserved for the Trusted Computing Group
0 (=0) : 0=Trusted Computing feature set is not supported
HGST Hard Disk Drive Specification
156
Table 105 Identify device information –ContinuedWord
49
Content
xF00H
50
4000H
51
52
0200H
0200H
53
0007H
Description
Capabilities, bit assignments:
15-14 (=0) Reserved
13 Standby timer
(=1) values as specified in ATA standard are supported
(=0) values are vendor specific
12 (=0) Reserved
11 (=1) IORDY Supported
10 (=1) IORDY can be disabled
9 (=1) LBA supported
8 (=1) DMA supported
7- 0 (=0) Reserved
Capabilities, bit assignments:
15-14 (=01) word 50 is valid
13-1(=0) Reserved
0(=0) Minimum value of Standby timer less than 5 minutes
PIO data transfer cycle timing mode
* DMA data transfer cycle timing mode
Refer Word 62 and 63
Validity flag of the word
Free-fall Control Sensitivity
15-8 (=0)
00h = Vendor’s recommended setting
7-3(=0)
54
55
56
57-58
xxxxH
xxxxH
xxxxH
xxxxH
59
xxxxH
60-61
xxxxH
62
63
0000H
xx07H
64
0003H
Reserved
2 (=1) 1=Word 88 is Valid
1 (=1) 1=Word 64-70 are Valid
0 (=1) 1=Word 54-58 are Valid
Number of current cylinders
Number of current heads
Number of current sectors per track
Current capacity in sectors
Word 57 specifies the low word of the capacity
Sanitize capabilities and Current Multiple setting. Bit assignments
15 (=0) The BLOCK ERASE EXT command is not supported
14 (=1) The OVERWRITE EXT command is supported
13 (=0or1) The CRYPTO SCRAMBLE EXT command is supported
12 (=1) The Sanitize Device Feature Set is supported
11 (=1) The commands allowed during a sanitize operation
10-9 (=0) Reserved
8 1= Multiple Sector Setting is Valid
7-0 xxh = Current setting for number of sectors
Total Number of User Addressable Sectors
Word 60 specifies the low word of the number
FFFFFFFh=The 48-bit native max address is greater than 268,435,455
Reserved
Multiword DMA Transfer Capability
15- 8 Multi word DMA transfer mode active
Multi word DMA transfer modes supported
7-0 (=7)
(support mode 0,1 and 2)
Flow Control PIO Transfer Modes Supported
15-8 (=0) Reserved
7-0 (=3) Advanced PIO Transfer Modes Supported
‘11’ = PIO Mode 3 and 4 Supported
HGST Hard Disk Drive Specification
157
Table 106 Identify device information –ContinuedWord
65
Content
0078H
66
0078H
67
0078H
68
0078H
69
0D08H
70-74
75
0000H
001FH
76
970EH
77
007xH
Description
Minimum Multiword DMA Transfer Cycle Time Per Word
15-0 (=78) Cycle time in nanoseconds (120ns, 16.6MB/s)
Manufacturer’s Recommended Multiword DMA Transfer Cycle Time
15-0 (=78) Cycle time in nanoseconds (120ns, 16.6MB/s)
Minimum PIO Transfer Cycle Time Without Flow Control
15-0 (=78) Cycle time in nanoseconds (120ns, 16.6MB/s)
Minimum PIO Transfer Cycle Time With IORDY Flow Control
15-0 (=78) Cycle time in nanoseconds (120ns, 16.6MB/s)
Additional Supported
11 (=1) READ BUFFER DMA command is supported
10 (=1) WRITE BUFFER DMA command is supported
8 (=1) DOWNLOAD MICROCODE DMA is supported
4 (=0) 1=Device Encrypts All User Data on the device
3 (=1) Extended Number of User Addressable Sectors is supported
Zoned field
1-0
Host managed: 00
Reserved
Queue depth
15-5 (=0) Reserved
4-0 (=1F) Maximum queued depth – 1
SATA capabilities
15 (=1) READ LOG DMA EXT command is supported
14-13 (=0) Reserved
12 (=1) High Priority command (Please see 6.5 First-party DMA commands)
11 (=0) Unload while NCQ commands are outstanding is supported
10 (=1) Phy event counters
9 (=1) Receipt of host-initiated interface power management requests
8 (=1) Native Command Queuing supported
7-4 (=0) Reserved
3 (=1) SATA Gen-3 speed (6.0Gbps) supported
2 (=1) SATA Gen-2 speed (3.0Gbps) supported
1 (=1) SATA Gen-1 speed (1.5Gbps) supported
0 (=0) Reserved
15-7 (=0) Reserved
6 (=1) Support RECEIVE FPDMA QUEED and SEND FPDMA QUEUED
5 (=1) Supports NCQ NON-DATA Command
4 (=1) Supports NCQ Streaming
3-1 (=011) Current negotiated SATA speed Gen-3 speed of 6.0Gbps
(=010) Current negotiated SATA speed Gen-2 speed of 3.0Gbps
(=001) Current negotiated SATA speed Gen-1 speed of 1.5Gbps
0 (=0) Reserved
HGST Hard Disk Drive Specification
158
Table 107 Identify device information –ContinuedWord
78
Content
0CDEH
79
0040H
80
03FCH
81
0029H
82
746BH
Description
SATA supported features
15-12 (=0) Reserved
11 (=1) Rebuild Assist
10 (=1) Device Initiated Interface Power Management Software Settings
9-8 (=0) Reserved
7 (=1) NCQ Autosense
6 (=1) Software setting preservation
5 (=0) Reserved
4 (=1) In-order data delivery
3 (=1) Device initiated interface power management
2 (=1) DMA Setup Auto-Activate optimization
1 (=1) Non-zero buffer offset in DMA Setup FIS
0 (=0) Reserved
SATA enabled features
15-7 (=0) Reserved
6 (=1) Software setting preservation
5 (=0) Reserved
4 (=0) In-order data delivery
3 (=0) Device initiated interface power management
2 (=0) DMA Setup Auto-Activate optimization
1 (=0) Non-zero buffer offset in DMA Setup FIS
0 (=0) Reserved
Major version number
ATA-2, ATA-3, ATA/ATAPI-4, ATA/ATAPI-5, ATA/ATAPI-6. ATA/ATAPI-7
15-0(=3FCh)
and ATA8-ACS and ACS2
Minor version number
15-0(=29h) ATA8-ACS Revision 4
Command set supported
15 (=0) Reserved
14 (=1) NOP command
13 (=1) READ BUFFER command
12 (=1) WRITE BUFFER command
11 (=0) Reserved
10 (=1) Host Protected Area Feature Set
9 (=0) DEVICE RESET command
8 (=0) SERVICE interrupt
7 (=0) Release interrupt
6 (=1) LOOK AHEAD
5 (=1) WRITE CACHE
4 (=0) PACKET Command feature set
3 (=1) Power management feature set
2 (=0) Removable feature set
1 (=1) Security feature set
0 (=1) SMART feature Set
HGST Hard Disk Drive Specification
159
Table 108 Identify device information –ContinuedWord
83
Content
7D69H
84
4163H
85
xxxxH
Description
Command set supported
15-14(=01) Word 83 is valid
13 (=1) FLUSH CACHE EXT command supported
12 (=1) FLUSH CACHE command supported
11 (=1) Device Configuration Overlay command supported
10 (=1) 48-bit Address feature set supported
9 (=0) Reserved
8 (=1) SET Max Security extension
7 (=0) Set Features Address Offset feature mode
6 (=1) SET FEATURES subcommand required to spin-up after power-up
5 (=1) Power-Up In Standby feature set supported
4 (=0) Removable Media Status Notification feature
3 (=1) Advanced Power Management feature set
2 (=0) CFA feature set
1 (=0) READ/WRITE DMA QUEUED
0 (=1) Download Microcode command
Command set/feature supported extension
15-14(=01) Word 84 is valid
13(=0) IDLE IMMEDIATE with UNLOAD FEATURE supported
12-9(= 0) Reserved
8 (=1) World wide name supported
7 (=0) WRITE DMA QUEUED FUA EXT command supported
WRITE DMA FUA EXT and WRITE MULTIPLE FUA EXT commands
6 (=1)
supported
5 (=1) General Purpose Logging feature set supported
4 (=0) Streaming feature set supported
3 (=0) Media Card Pass Through Command feature set supported
2 (=0) Media serial number supported
1 (=1) SMART self-test supported
0 (=1) SMART error logging supported
Command set/feature enabled
15 Reserved
14 NOP command
13 READ BUFFER command
12 WRITE BUFFER command
11 Reserved
10 Host Protected Area feature set
9 DEVICE RESET command
8 SERVICE interrupt
7 RELEASE interrupt
6 LOOK AHEAD
5 WRITE CACHE
4 PACKET Command feature set
3 Power management feature set
2 Removable media feature set
1 Security feature set
0 SMART feature set
HGST Hard Disk Drive Specification
160
Table 109 Identify device information –ContinuedWord
86
Content
xxxxH
87
4163H
Description
Command set/feature enabled
15 Words 120:119 are valid.
14 Reserved
13 FLUSH CACHE EXT command supported
12 FLUSH CACHE command supported
11 Device Configuration Overlay command enabled
10 48-bit Address features set supported
9 Reserved
8 Set Max Security extensions enabled
7 Set Features Address Offset mode
6 Set Features subcommand required to spin-up after power-up
5 Power-Up In Standby feature set enabled
4 Removable Media Status Notification feature
3 Advanced Power Management Feature set
2 CFA Feature set
1 READ/WRITE DMA QUEUED
0 Download Microcode command
Command set/feature default
15-14(=01) Word 87 is valid
13(=0) IDLE IMMEDIATE with UNLOAD FEATURE supported
12-9(= 0) Reserved
8 (=1) World wide name supported
7 (=0) WRITE DMA QUEUED FUA EXT command supported
6 (=1) WRITE DMA FUA EXT and WRITE MULTIPLE FUA EXT commands
supported
5 (=1) General Purpose Logging feature set supported
4 (=0) Valid CONFIGURE STREAM command has been executed
3 (=0) Media Card Pass Through Command feature set enabled
2 (=0) Media serial number is valid
1 (=1) SMART self-test supported
0 (=1) SMART error logging supported
HGST Hard Disk Drive Specification
161
Table 110 Identify device information –ContinuedWord
88
Content
xx7FH
89
xxxxH
90
xxxxH
91
92
93
94
95
96
00FEH
FFFEH
0000H
0000H
xxxxH
xxxxH
Description
Ultra DMA Transfer modes
15- 8(=xx) Current active Ultra DMA transfer mode
15 Reserved (=0)
14 Mode 6
1 = Active
0 = Not Active
13 Mode 5
1 = Active
0 = Not Active
12 Mode 4
1 = Active
0 = Not Active
11 Mode 3
1 = Active
0 = Not Active
10 Mode 2
1 = Active
0 = Not Active
9 Mode 1
1 = Active
0 = Not Active
8 Mode 0
1 = Active
0 = Not Active
7- 0(=7F) Ultra DMA Transfer mode supported
7 Reserved (=0)
6 Mode 6
1 = Support
5 Mode 5
1 = Support
4 Mode 4
1 = Support
3 Mode 3
1 = Support
2 Mode 2
1 = Support
1 Mode 1
1 = Support
0 Mode 0
1 = Support
Time required for security erase unit completion
15 1=Extended Time is reported in bits 14:0
0=Time is reported in bits 7:0
If bit 15 is set to one
14:0 Time required for security erase unit completion
Time= value(xxxxh)x2 [minutes]
If bit 15 is set to zero
14:8 Reserved
7:0 Time required for security erase unit completion
Time= value(xxxxh)x2 [minutes]
Time required for Enhanced security erase completion
15 1=Extended Time is reported in bits 14:0
0=Time is reported in bits 7:0
If bit 15 is set to one
14:0 Time required for Enhanced security erase completion
If bit 15 is set to zero
14:8 Reserved
7:0 Time required for Enhanced security erase completion
Current Advanced power management value
Current Password Revision Code
COMRESET result
Reserved
Reserved
Reserved
HGST Hard Disk Drive Specification
162
Table 111 Identify device information –ContinuedWord
97
98
99
100-103
104
105
106
Content
xxxxH
xxxxH
xxxxH
xxxxH
xxxxH
0000H
x00xH
107
108-111
112-116
117-118
5A87H
xxxxH
0000H
xxxxH
119
40DCh
Description
Reserved
Reserved
Reserved
Total Number of User Addressable Logical Sectors for 48-bit commands
Reserved
Reserved
Physical sector size / logical sector size
15 (=0) Shall be cleared to zero
14 (=1) Shall be set to one.
13 (=x) Device has multiple logical sectors per physical sector
If logical sector size is 512 bytes, the content of this bit is 1b.
If logical sector size is 4096 bytes, the content of this bit is 0b.
12 (=x) Device logical sector is longer than 256 words
If logical sector size is 512 bytes, the content of this bit is 0b.
If logical sector size is 4096 bytes, the content of this bit is 1b.
11-4 (=00H) Reserved
3-0 (=xH) 2^0 logical sectors per physical sector
If logical sector size is 512 bytes, the content of this bits are 0011b.
If logical sector size is 4096 bytes, the content of this bits are 0000b.
Inter-seek delay for ISO-7779 acoustic testing in microseconds
World wide name the optional value of the world wide name for the device
Reserved
Words per logical sector
This word is set number of words per logical sector when sector size is longer than
256 words.
If logical sector size is 512 bytes, the content of this bits are 0000H.
If logical sector size is 4096 bytes, the content of this bits are 0800H.
Supported settings (Continued from word 84:82)
15
Shall be cleared to zero
14
Shall be set to one.
13-8
Reserved
7
1=Extended Power Conditions feature set is supported
6
1=Sense data is supported
5
0=Free-fall Control feature set is not supported
4
1=The segmented feature for Download Microcode is supported.
3
1=The READ/ WRITE LOG DMA EXT commands are supported.
2
1=WRITE UNCORRECTABLE EXT is supported and enabled.
1
0=Write-Read-Verify feature set is not supported
0
Reserved
HGST Hard Disk Drive Specification
163
Table 112 Identify device information –ContinuedWord
120
Content
40DCh
121-126
127
0000H
0000H
128
xxxxH
129
xxxxH
*
130-159
160-167
168
xxxxH
0000H
0002H
*
169-175
176-205
206
0000H
0000H
003DH
Note.
Description
Command set/feature enabled/supported. (Continued from word 87:85)
15
Shall be cleared to zero
14
Shall be set to one.
13-8
Reserved
7
1=Extended Power Conditions feature set is enabled
6
1=Sense data is enabled
5
0=Free-fall Control feature set is disabled
4
1=The segmented feature for Download Microcode is supported.
3
1=The READ/ WRITE LOG DMA EXT commands are supported.
2
1=WRITE UNCORRECTABLE EXT is supported and enabled.
1
0=Write-Read-Verify feature set is not enabled
0
Reserved
Reserved
Removable Media Status Notification feature set
0000H=Not supported
Security status. Bit assignments
15-9 Reserved
8 Security Level
1= Maximum, 0= High
7-6 Reserved
5 Enhanced erase
1= Support
4 Expired
1= Expired
3 Freeze
1= Frozen
2 Lock
1= Locked
1 Enabled/Disable
1= Enable
0 Capability
1= Support
Current Set Feature Option. Bit assignments
15-4 Reserved
3 Auto reassign enabled
1= Enable
2 Reverting enabled
1= Enable
1 Read Look-ahead enabled 1= Enable
0 Write Cache enabled
1= Enable
Reserved
Reserved
15-4 Reserved
3-0 Device Nominal Form Factor 02H shows 3.5inch nominal form factor
Reserved
Current media serial number (0000H=Not supported)
SCT Command set support
15-12 Vendor specific
11-6 Reserved
5 Action Code 5 (SCT Data Table)
1= Support
4 Action Code 4 (Features Control)
1= Support
3 Action Code 3 (Error Recovery Control) 1= Support
2 Action Code 2 (SCT Write Same)
1= Support
1 Action Code 1 (Long Sector Access)
0= Not Support
0 SCT Feature Set (includes SCT status)
1= Support
The ‘*’ mark in ‘Content’ field indicates the use of those parameters are vendor specific.
HGST Hard Disk Drive Specification
164
Table 113 Identify device information –ContinuedWord
207-208
209
Content
0000H
4000H
210-211
0000H
212-213
0000H
214
0000H
215-216
217
218
219
0000H
1C20H
0000H
0000H
220
0000H
221
222
0000H
10FFH
223
224-229
230-233
234
0021H
0000H
xxxxH
0008H
235
0000H
236-254
255
0000H
xxA5H
Description
Reserved
Alignment of logical blocks within a physical block (This word is valid if bit 13 of word
106 is set to one.)
15 (=0) Shall be cleared to zero
14 (=1) Shall be set to one
Logical sector offset within the first physical sector where the first
13-0 (=x)
logical sector is placed
Write-Read-Verify Sector Count Mode 3 (Dword)
0000H=Not supported
Write-Read-Verify Sector Count Mode 2 (Dword)
0000H=Not supported
NV Cache Capabilities
0000H=Not supported
NV Cache Size in Logical Blocks (Dword)
Nominal media rotation rate (=7200rpm)
Reserved
NV Cache Options
0000H=Not supported
15-8(=0) Reserved
7-0(=0) Write-Read-Verify feature set current mode(not supported)
Reserved
Transport major version number
15-12(=1) Transport Type (1= Serial)
11-8(=0) Reserved
7(=1) SATA Rev 3.2
6(=1) SATA Rev 3.1
5(=1) SATA Rev 3.0
4(=1) SATA Rev 2.6
3(=1) SATA Rev 2.5
2(=1) SATA II: Extensions
1(=1) SATA 1.0a
0(=1) ATA8-AST
Transport minor version number (ATA8-AST T13 Project D1697 Revision 0b)
Reserved
Extended Number of User Addressable Sectors
Minimum number of 512-byte data blocks per Download Microcode command for
mode 3
Maximum number of 512-byte data blocks per Download Microcode command for
mode 3
Reserved
15-8 Checksum. This value is the two's complement of the sum of all bytes
in byte 0 through 510
7-0 (A5) Signature
HGST Hard Disk Drive Specification
165
Idle (E3h/97h)
Table 114 Idle Command (E3h/97h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
N/A
Standby timer period
N/A
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 E3h or 97h
Normal Outputs
See Normal Outputs in 12.6 Flush Cache (E7h)
Error Outputs
Field
ERROR
COUNT
LBA
DEVICE
STATUS
Description
Bit Description
7:3 N/A
2 ABORT bit
1:0 N/A
N/A
LBA of First Unrecoverable Error
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
Bit Description
7:6 Transport Dependent
5 DEVICE FAULT bit
4 N/A
3 Transport Dependent
2 N/A
1 SENSE DATA AVAILABLE bit
0 ERROR bit
The Idle command causes the device to enter Idle mode immediately, and set auto power down timeout parameter
(standby timer). And then the timer starts counting down.
When the Idle mode is entered, the device is spun up to operating speed. If the device is already spinning, the spin
up sequence is not executed.
During Idle mode the device is spinning and ready to respond to host commands immediately.
HGST Hard Disk Drive Specification
166
Standby timer period
Timeout Parameter. If zero, then the automatic power down sequence is disabled. If
non-zero, then the automatic power down sequence is enabled, and the timeout
interval is shown below:
Value
---------0
1-240
241-251
252
253
254
255
Description
------------------------Timer disabled
Value * 5
(Value-240) * 30 minutes
21 minutes
8 hours
Aborted
21 minutes 15 seconds
When the automatic power down sequence is enabled, the drive will enter Standby
mode automatically if the timeout interval expires with no drive access from the host.
The timeout interval will be reinitialized if there is a drive access before the timeout
interval expires.
HGST Hard Disk Drive Specification
167
Idle Immediate (E1h/95h)
Table 115 Idle Immediate Command (E1h/95h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
N/A except when the Unload feature is requested
N/A except when the Unload feature is requested
N/A except when the Unload feature is requested
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 E1h
Normal Outputs
See Normal Outputs in 12.6 Flush Cache (E7h)
Error Outputs
See Error Outputs in12.11 Idle (E3h/97h)
The Idle Immediate command causes the device to enter Idle mode.
The device is spun up to operating speed. If the device is already spinning, the spin up sequence is not executed.
During Idle mode the device is spinning and ready to respond to host commands immediately.
The Idle Immediate command will not affect to auto power down timeout parameter.
HGST Hard Disk Drive Specification
168
Initialize Device Parameters (91h)
Table 116 Initialize Device Parameters Command (91h)
Command Block Normal Outputs
Command Block Command Input
Register
7
6
5
4
3
2
1
0
Register
7
6
5
4
3
2
1
0
Data
-
-
-
-
-
-
-
-
Data
-
-
-
-
-
-
-
-
Feature
-
-
-
-
-
-
-
-
Error
-
-
-
-
-
-
-
-
V
V
V
V
V
V
V
V
Sector Count
-
-
-
-
-
-
-
-
Sector Number
-
-
-
-
-
-
-
-
Sector Number
-
-
-
-
-
-
-
-
Cylinder Low
-
-
-
-
-
-
-
-
Cylinder Low
-
-
-
-
-
-
-
-
Cylinder High
-
-
-
-
-
-
-
-
Cylinder High
-
-
-
-
-
-
-
-
Device/Head
1
-
1
D
H
H
H
H
Device/Head
-
-
-
-
-
-
-
-
Command
1
0
0
1
0
0
0
1
Status
Sector Count
...See Below...
Error Register
7
6
CRC UNC
0
0
5
4
3
0
IDN
0
0
0
0
Status Register
2
1
0
ABT T0N AMN
V
0
0
7
6
5
4
3
2
1
0
BSY RDY DF DSC DRQ COR IDX ERR
0
V
0
-
-
0
-
V
The Initialize Device Parameters command enables the host to set the number of sectors per track and the number
of heads minus 1, per cylinder. Words 54-58 in Identify Device Information reflect these parameters.
The parameters remain in effect until following events:
 Another Initialize Device Parameters command is received.
 The device is powered off.
 Soft reset occurs and the Set Feature option of CCh is set instead of 66h.
Output Parameters To The Device
Sector Count
The number of sectors per track. 0 does not mean there are 256 sectors per track, but there is
no sector per track.
H
The number of heads minus 1 per cylinder. The minimum is 0 and the maximum is 15.
Note:
The following conditions needs to be satisfied to avoid invalid number of cylinders beyond FFFFh.
(Total number of user addressable sectors)/((Sector Count)*(H+1)) = < FFFFh
The total number of user addressable sectors is described in Identify Device command.
HGST Hard Disk Drive Specification
169
NCQ NON-DATA (63h)
Table 117 NCQ Queue Management command (63h)
Command Input
Field
FEATURE
COUNT
LBA
AUXILIARY
DEVICE
Command
Description
Bit Description
15:8 Reserved
7:4 Subcommand specific
3:0 SUBCOMMAND field
Bit Description
15:14 PRIO field
13:8 Reserved
7:3 NCQ TAG field
2:0 Reserved
Bit Description
47:8 Reserved
7:3 Subcommand specific
2:0 Reserved
15:0 Subcommand specific
Bit Description
7 Reserved
6 Shall be set to one
5 Reserved
4 Shall be cleared to zero
3:0 Reserved
7:0 63h
Table 46 Subcommand Field defines the NCQ NON-DATA subcommands. See the referenced sections for
additional information in this table.
The output from the host to the device, the command acceptance outputs for this command, the normal outputs
for this command and the error outputs for this command are subcommand specific. See 12.14.1 and 12.14.2.
HGST Hard Disk Drive Specification
170
Abort NCQ Queue Subcommand (0h)
Table 118 Abort NCQ Queue Subcommand (0h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
Bit Description
15:8 Reserved
7:4 ABORT TYPE field
3:0 Subcommand field – shall be set to 0h
Bit Description
15:14 PRIO field
13:8 Reserved
7:3 NCQ TAG field
2:0 Reserved
Bit Description
47:8 Reserved
7:3 TTAG field
2:0 Reserved
Bit Description
7 Reserved
6 Shall be set to one
5 Reserved
4 Shall be cleared to zero
3:0 Reserved
7:0 63h
Normal Outputs
If a supported Abort Type parameter is specified, then the device indicates success, even if the command results
in no commands being aborted.
When an Abort NCQ Queue command completes successfully, a Set Device Bits FIS is sent to the host to
complete the Abort subcommand and commands that were aborted as a consequence of the Abort subcommand
by setting the ACT bits for those commands to one. This SDB FIS may also indicate other completed commands.
Error Outputs
The device returns command aborted if:
a) NCQ is disabled and an Abort NCQ Queue command is issued to the device;
b) the value of the TTAG field equals the value of the TAG field;
c) the value of the TTAG field is an invalid TAG number; or
d) an unsupported Abort type parameter is specified.
HGST Hard Disk Drive Specification
171
Output Parameters To The Device
Feature Current
Subcommand (bits 3-0) When bits(3:0) is 0h, Abort NCQ Queue Abort Subcommand.
Subcommand Specific
Abort Type, bit(7:4), describes the action requested. The NCQ NON-DATA Log (see
(bits 7-4)
10.16.4.4) provides a list of abort types supported by the device. The value of Abort
type are defined in the below the table.
Feature Previous
Sector Count Current
.
TAG (bits 7-3)
The TAG value is assigned to be different from all other queued commands. The
value does not exceed the maximum queue depth specified by the Word 75 of the
Identify Device information.
Sector Count Previous
Sector Number Current
TTAG (bits 7-3)
The TTAG field contains the value of the TAG of the outstanding command that is
requested to be aborted. The TTAG value is only valid when the Abort Type field is
set to 3h (Abort Selected). TTAG does not exceed the value specified in IDENTIFY
DEVICE word 75.
Cylinder Low Current
Cylinder Low Previous
Cylinder High Current
Cylinder High Previous
Device/Head
Input Parameters From The Device
Sector Number (HOB=0)
Sector Number (HOB=1)
Cylinder Low (HOB=0)
Cylinder Low (HOB=1)
Cylinder High (HOB=0)
Cylinder High (HOB=1)
Table 119 Abort Type Field
Abort Type Parameters
Abort Type
0h
1h
2h
3h
Abort Type
Abort All
Abort Streaming
Description
The device attempts to abort all outstanding NCQ commands.
The device attempts to abort all outstanding NCQ Streaming commands.
All non-streaming NCQ commands are unaffected.
Abort Non-Streaming The device attempts to abort all outstanding NCQ Non-Streaming commands.
All NCQ Streaming commands are unaffected.
Abort Selected
The device attempts to abort the outstanding NCQ command associated with
the tag represented in TTAG field.
HGST Hard Disk Drive Specification
172
Deadline handling Subcommand (1h)
Table 120 Deadline handling Subcommand (1h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
Bit Description
15:6 Reserved
5 RDNC bit
4 WDNC bit
3:0 Subcommand (1h)
Bit Description
15:14 PRIO field
13:8 Reserved
7:3 NCQ TAG field
2:0 Reserved
Bit Description
47:8 Reserved
7:3 TTAG field
2:0 Reserved
Bit Description
7 Reserved
6 Shall be set to one
5 Reserved
4 Shall be cleared to zero
3:0 Reserved
7:0 63h
Normal Outputs
If this Deadline Handling Subcommand command is supported, the device returns the command completed with
no error.
When a Deadline Handling Subcommand command completes successfully, a Set Device Bits FIS is sent to the
host to complete the Deadline Handling subcommand. This SDB FIS may also indicate other completed
commands.
Error Outputs
The device returns command aborted if:
a) NCQ is disabled and a DEADLINE HANDLING command is issued to the device;
b) The value of the TTAG field equals the value of the TAG field;
c) The value of the TTAG field is an invalid TAG number; or
d) An unsupported Abort type parameter is specified.
Feature
Subcommand (bits 3-0)
WDNC(bits 4)
RDNC(bits 5)
When bits (3:0) is 1h, Deadline Handling Subcommand.
If the WDNC (Write Data Not Continue) bit is cleared to zero, then the device
allows WRITE FPDMA QUEUED command completion times to exceed what the
ICC parameter specified. If the WDNC bit is set to one, then the all WRITE FPDMA
QUEUED commands are completed by the time specified by the ICC timer value,
otherwise the device returns command aborted for all outstanding commands.
WDNC is only applicable to WRITE FPDMA QUEUED commands with PRIO is set
to 01b (Isochronous – deadline dependent priority)
If the RDNC (Read Data Not Continue) bit is cleared to zero, then the device
allows READ FPDMA QUEUED command completion times to exceed what the
ICC parameter specified. If the RDNC bit is set to one, then the all READ FPDMA
QUEUED commands are completed by the time specified by the ICC timer value,
otherwise the device returns command aborted for all outstanding commands.
RDNC is only applicable to READ FPDMA QUEUED commands with PRIO is set
to 01b (Isochronous – deadline dependent priority)
HGST Hard Disk Drive Specification
173
Count
TAG (bits 7-3)
The TAG value is assigned to be different from all other queued commands. The
value does not exceed the maximum queue depth specified by the Word 75 of the
Identify Device information.
HGST Hard Disk Drive Specification
174
Read Buffer (E4h)
Table 121 Read Buffer Command (E4h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
N/A
N/A
N/A
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 E4h
Normal Outputs
See Normal Outputs in 12.6 Flush Cache (E7h)
Error Register
See Error Register in 12.3 Download Microcode (92h)
The Read Buffer command transfers a sector of data from the sector buffer of device to the host.
The sector is transferred through the Data Register 16 bits at a time.
The sector transferred will be from the same part of the buffer written to by the last Write Buffer command. The
contents of the sector may be different if any reads or writes have occurred since the Write Buffer command was
issued.
HGST Hard Disk Drive Specification
175
Read Buffer DMA (E9h)
Table 122 Read Buffer DMA Command (E9h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
N/A
N/A
N/A
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 E9h
Normal Outputs
See Normal Outputs in 12.6 Flush Cache (E7h)
Error Register
See Error Register in 12.3 Download Microcode (92h)
The Read Buffer DMA command transfers a sector of data from the sector buffer of device to the host.
The sector is transferred through the Data Register 16 bits at a time.
The sector transferred will be from the same part of the buffer written to by the last Write Buffer command. The
contents of the sector may be different if any reads or writes have occurred since the Write Buffer command was
issued.
HGST Hard Disk Drive Specification
176
Read DMA(C8h/C9h)
Table 123 Read DMA Command (C8h/C9h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
N/A
The number of logical sectors to be transferred. A value of 00h indicates
that 256 logical sectors are to be transferred
LBA of first logical sector to be transferred
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 C8h or C9h
Normal Outputs
See Normal Outputs in 12.6 Flush Cache (E7h)
Error Outputs
Field
ERROR
COUNT
LBA
DEVICE
STATUS
Description
Bit Description
7 INTERFACE CRC bit
6 UNCORRECTABLE ERROR bit
5 Obsolete
4 ID NOT FOUND bit
3 Obsolete
2 ABORT bit
1:0 Obsolete
N/A
LBA of First Unrecoverable Error
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
Bit Description
7:6 Transport Dependent
5 DEVICE FAULT bit
4 N/A
3 Transport Dependent
2 N/A
1 SENSE DATA AVAILABLE bit
0 ERROR bit
The Read DMA command reads one or more sectors of data from disk media, then transfers the data from the
device to the host.The sectors are transferred through the Data Register 16 bits at a time.The host initializes a
slave-DMA channel prior to issuing the command. The data transfers are qualified by DMARQ and are performed
by the slave-DMA channel. The device issues only one interrupt per command to indicate that data transfer has
terminated and status is available.
If an uncorrectable error occurs, the read will be terminated at the failing sector.
HGST Hard Disk Drive Specification
177
Output Parameters To The Device
Sector Count
The number of continuous sectors to be transferred. If zero is specified, then 256 sectors
will be transferred.
Sector Number
The sector number of the first sector to be transferred. (L=0)
In LBA mode, this register specifies LBA address bits 0-7 to be transferred. (L=1)
Cylinder High/Low
The cylinder number of the first sector to be transferred. (L=0)
In LBA mode, this register specifies LBA address bits 8-15 (Low) 16-23 (High) to be
transferred. (L=1)
H
The head number of the first sector to be transferred. (L=0)
In LBA mode, this register specifies LBA bits 24-27 to be transferred. (L=1)
R
The retry bit, but this bit is ignored.
Input Parameters From The Device
Sector Count
The number of requested sectors not transferred. This will be zero, unless an
unrecoverable error occurs.
Sector Number
The sector number of the last transferred sector. (L=0)
In LBA mode, this register contains current LBA bits 0-7. (L=1)
Cylinder High/Low
The cylinder number of the last transferred sector. (L=0)
In LBA mode, this register contains current LBA bits 8-15 (Low), 16-23 (High). (L=1)
H
The head number of the sector to be transferred. (L=0)
In LBA mode, this register contains current LBA bits 24-27. (L=1)
HGST Hard Disk Drive Specification
178
Read DMA Ext (25h)
Table 124 Read DMA Ext Command (25h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
Reserved
The number of logical sectors to be transferred. A value of 0000h
indicates that 65536 logical sectors are to be transferred
LBA of first logical sector to be transferred
Bit Description
7 Obsolete
6 Shall be set to one
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 25h
Normal Outputs
See Normal Outputs in 12.7 Flush Cache Ext (EAh)
Error Outputs
Field
ERROR
COUNT
LBA
DEVICE
STATUS
Description
Bit Description
7 INTERFACE CRC bit
6 UNCORRECTABLE ERROR bit
5 Obsolete
4 ID NOT FOUND bit
3 Obsolete
2 ABORT bit
1:0 Obsolete
Reserved
LBA of First Unrecoverable Error
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
Bit Description
7:6 Transport Dependent
5 DEVICE FAULT bit
4 N/A
3 Transport Dependent
2 N/A
1 SENSE DATA AVAILABLE bit
0 ERROR bit
The Read DMA command reads one or more sectors of data from disk media, and then transfers the data from the
device to the host.
The sectors are transferred through the Data Register 16 bits at a time.
The host initializes a slave-DMA channel prior to issuing the command. The data transfers are qualified by DMARQ
and are performed by the slave-DMA channel. The device issues only one interrupt per command to indicate that
data transfer has terminated and status is available.
If an uncorrectable error occurs, the read will be terminated at the failing sector.
HGST Hard Disk Drive Specification
179
Output Parameters To The Device
Sector Count Current
The number of sectors to be transferred low order, bits (7:0).
Sector Count Previous
The number of sectors to be transferred high order, bits (15:8). If 0000h in the
Sector Count register is specified, then 65,536 sectors will be transferred.
Sector Number Current
LBA (7:0)
Sector Number Previous
LBA (31:24)
Cylinder Low Current
LBA (15:8)
Cylinder Low Previous
LBA (39:32)
Cylinder High Current
LBA (23:16)
Cylinder High Previous
LBA (47:40)
Input Parameters From The Device
Sector Number (HOB=0)
LBA (7:0) of the address of the first unrecoverable error.
Sector Number (HOB=1)
LBA (31:24) of the address of the first unrecoverable error.
Cylinder Low (HOB=0)
LBA (15:8) of the address of the first unrecoverable error.
Cylinder Low (HOB=1)
LBA (39:32) of the address of the first unrecoverable error.
Cylinder High (HOB=0)
LBA (23:16) of the address of the first unrecoverable error.
Cylinder High (HOB=1)
LBA (47:40) of the address of the first unrecoverable error.
HGST Hard Disk Drive Specification
180
Read FPDMA Queued (60h)
Table 125 Read FPDMA Queued Command (60h)
Command Input
Field
FEATURE
COUNT
LBA
ICC
DEVICE
Command
Description
The number of logical sectors to be transferred. A value of 0000h
indicates that 65536 logical sectors are to be transferred
Bit Description
15:14 PRIO field
13:8 Reserved
7:3 NCQ TAG field
2:0 Reserved
LBA of first logical sector to be transferred
7:0 ICC field
Bit Description
7 FUA bit
6 Shall be set to one
5 Reserved
4 Shall be cleared to zero
3:0 Reserved
7:0 60h
Normal Outputs
Field
ERROR
COUNT
LBA
DEVICE
STATUS
Description
Shall be cleared to zero
N/A
N/A
Bit Description
7:4 N/A
3:0 Reserved
Bit Description
7:6 Transport Dependent
5 STREAM ERROR bit
4 N/A
3 Transport Dependent
2 N/A
1 SENSE DATA AVAILABLE bit
0 ERROR bit
HGST Hard Disk Drive Specification
181
Error Outputs
Field
ERROR
COUNT
LBA
DEVICE
STATUS
Description
Bit Description
7 INTERFACE CRC bit
6:3 N/A
2 ABORT bit.
1:0 N/A
N/A
N/A
Bit Description
7:4 N/A
3:0 Reserved
Bit Description
7:6 Transport Dependent
5 DEVICE FAULT bit
4 N/A
3 Transport Dependent
2 N/A
1 SENSE DATA AVAILABLE bit
0 ERROR bit
The Read FPDMA command reads one or more sectors of data from disk media, and then transfers the data from
the device to the host.
If an uncorrectable error occurs, the read will be terminated at the failing sector.
FUA bit
When the FUA bit is set to 1, the requested data is always retrieved from the media regardless of whether the
data are held in the sector buffer or not.
When the FUA bit is set to 0, the data may be retrieved from the media or from the cached data left by previously
processed Read or Write commands.
ICC field
The Isochronous Command Completion (ICC) field is valid when PRIO is set to a value of 01b. It is assigned by
the host based on the intended deadline associated with the command issued. When a deadline has expired, the
device continues to complete the command as soon as possible. The host can modify this behavior if the device
supports the NCQ NON-DATA command (see 12.14) and supports the Deadline Handling subcommand (see
12.14.2). This subcommand allows the host to set whether the device aborts commands that have exceeded the
time set in ICC.
There are several parameters encoded in the ICC field: Fine or Coarse timing, Interval and the Max Time. The
Interval indicates the time units of the Time Limit parameter.
If ICC Bit 7 cleared to zero, then the time interval is fine-grained.
Interval
= 10msec
Time Limit
= (ICC[6:0] + 1) * 10 msec
If ICC Bit 7 is set to one (coarse encoding), then the time interval is coarse grained.
Interval
= 0.5 sec
Time Limit
= (ICC[6:0] + 1) * 0.5 sec
HGST Hard Disk Drive Specification
182
Read Log Ext (2Fh)
Table 126 Read Log Ext Command (2Fh)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
If not defined by the log specified by the LOG
ADDRESS field, this field is reserved.
LOG PAGE COUNT field
Bit Description
47:40 Reserved
39:32 PAGE NUMBER field (15:8)
31:16 Reserved
15:8 PAGE NUMBER field (7:0)
7:0 LOG ADDRESS field
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 2Fh
Normal Outputs
See Normal Outputs in 12.7 Flush Cache Ext (EAh)
Error Outputs
Field
ERROR
COUNT
LBA
DEVICE
STATUS
Description
Bit Description
7 INTERFACE CRC bit
6 UNCORRECTABLE ERROR bit
5 Obsolete
4 ID NOT FOUND bit
3 Obsolete
2 ABORT bit
1:0 Obsolete
Reserved
Reserved
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
Bit Description
7:6 Transport Dependent
5 DEVICE FAULT bit
4 N/A
3 Transport Dependent
2 N/A
1 SENSE DATA AVAILABLE bit
0 ERROR bit
This command returns the specified log to the host. The device shall interrupt for each DRQ block transferred.
HGST Hard Disk Drive Specification
183
Table 127 Log Address Definition
Log address
Content
Feature set
Type
00h
Log directory
N/A
Read Only
03h
Extended Comprehensive SMART error log
SMART error logging
Read Only
04h
Device Statistics
N/A
Read Only
06h
SMART self-test log
SMART self-test
See Note
07h
Extended SMART self-test log
SMART self-test
Read Only
08h
Power Conditions log
Extended Power Condition
Read Only
0Ch
Pending Defects log
none
Read
0Dh
LPS Mis-alignment log
LPS
Read
10h
Command Error
Native Command Queuing
Read Only
11h
Phy Event Counters
Serial ATA
Read Only
12h
NCQ NON-DATA log
Native Command Queuing
Read Only
13h
Send and Receive log
Native Command Queuing
Read Only
15h
Rebuild Assist log
Rebuild Assist
Read/Write
24h
Current Device Internal Status Data log
none
Read
25h
Saved Device Internal Status Data log
none
Read
30h
Identify Device Data log
N/A
Read Only
Host vendor specific
SMART
Read/Write
80h-9Fh
Note: If log address 06h is accessed using the Read Log Ext or Write Log Ext commands, command abort shall
be returned.
Note: Please see 10.16.3 about Phy Event Counter.
Note: Please see 10.16.4 about NCQ NON-DATA.
The Extended SMART self-test log sector shall support 48-bit and 28-bit addressing. All 28-bit entries contained in
the SMART self-test log sector shall also be included in the Comprehensive SMART self-test log sector with the 48bit entries.
If the feature set associated with the log specified in the Sector Number register is not supported or enabled, or if the
values in the Sector Count, Sector Number or Cylinder Low registers are invalid, the device shall return command
aborted.
HGST Hard Disk Drive Specification
184
General Purpose Log Directory
Table 128 General Purpose Log Directory defines the 512 bytes that make up the General Purpose Log Directory.
Table 128 General Purpose Log Directory
Description
Bytes
Offset
General Purpose Logging Version
2
00h
Number of sectors in the log at log address 01h (7:0)
1
02h
Number of sectors in the log at log address 01h (15:8)
1
03h
Number of sectors in the log at log address 02h (7:0)
1
04h
Number of sectors in the log at log address 02h (15:8)
1
05h
Number of sectors in the log at log address 20h (7:0)
1
40h
Number of sectors in the log at log address 20h (15:8)
1
41h
Number of sectors in the log at log address 21h (7:0)
1
42h
Number of sectors in the log at log address 21h (15:8)
1
43h
Number of sectors in the log at log address 22h (7:0)
1
44h
Number of sectors in the log at log address 22h (15:8)
1
45h
Number of sectors in the log at log address 80h (7:0)
1
100h
Number of sectors in the log at log address 80h (15:8)
1
101h
Number of sectors in the log at log address FFh (7:0)
1
1FEh
Number of sectors in the log at log address FFh (15:8)
1
1FFh
...
...
...
512
The value of the General Purpose Logging Version word shall be 0001h. A value of 0000h indicates that there is
no General Purpose Log Directory.
The logs at log addresses 80-9Fh shall each be defined as 16 sectors long.
HGST Hard Disk Drive Specification
185
Extended Comprehensive SMART Error log
Table 129 Extended Comprehensive SMART Error Log defines the format of each of the sectors that comprise
the Extended Comprehensive SMART error log. Error log data structure shall not include errors attributed to the
receipt of faulty commands such as command codes not implemented by the device or requests with invalid
parameters or in valid addresses.
Table 129 Extended Comprehensive SMART Error Log
Description
Bytes
Offset
SMART error log version
1
00h
Reserved
1
01h
Error log index (7:0)
1
02h
Error log index (15:8)
1
03h
1st error log data structure
124
04h
2nd error log data structure
124
80h
3rd error log data structure
124
FCh
4th error log data structure
124
178h
Device error count
2
1F4h
Reserved
9
1F6h
Data structure checksum
1
1FFh
512
Error log version
The value of this version shall be 01h.
Error log index
This indicates the error log data structure representing the most recent error. If there have been no error log entries,
it is cleared to 0. Valid values for the error log index are 0 to 4.
HGST Hard Disk Drive Specification
186
Extended Error log data structure
An error log data structure shall be presented for each of the last four errors reported by the device.
These error log data structure entries are viewed as a circular buffer. The fifth error shall create an error log structure
that replaces the first error log data structure. The next error after that shall create an error log data structure that
replaces the second error log structure, etc.
Unused error log data structures shall be filled with zeros.
Data format of each error log structure is shown below.
Table 130 Extended Error log data structure
Description
Bytes
Offset
1st command data structure
18
00h
2nd command data structure
18
12h
3rd command data structure
18
24h
4th command data structure
18
36h
5th command data structure
18
48h
Error data structure
34
5Ah
124
Command data structure: Data format of each command data structure is shown below.
Table 131 Command data structure
Description
Bytes
Device Control register
Offset
1
00h
1
01h
Features register (15:8)
1
02h
Sector count register (7:0)
1
03h
Sector count register (15:8)
1
04h
Sector number register (7:0)
1
05h
Sector number register (15:8)
1
06h
Cylinder Low register (7:0)
1
07h
Cylinder Low register (15:8)
1
08h
Cylinder High register (7:0)
1
09h
Cylinder High register (15:8)
1
0Ah
Device/Head register
1
0Bh
Command register
1
0Ch
Reserved
1
0Dh
Timestamp (milliseconds from Power-on)
4
0Eh
Features register (7:0)
(see Note)
18
Note: bits (7:0) refer to the most recently written contents of the register. Bits (15:8) refer to the
contents of the register prior to the most recent write to the register.
HGST Hard Disk Drive Specification
187
Error data structure: Data format of error data structure is shown below.
Table 132 Error data structure
Description
Bytes
Offset
Reserved
1
00h
Error register
1
01h
1
02h
1
03h
Sector number register (7:0)
1
04h
Sector number register (15:8)
1
05h
Cylinder Low register (7:0)
1
06h
Cylinder Low register (15:8)
1
07h
Cylinder High register (7:0)
1
08h
Cylinder High register (15:8)
1
09h
Device/Head register
1
0Ah
Status register
1
0Bh
19
0Ch
State
1
1Fh
Life timestamp (hours)
2
20h
Sector count register (7:0)
(see Note)
Sector count register (15:8)
(see Note)
Extended error data (vendor specific)
34
Note: bits (7:0) refer to the contents if the register is read with bit 7 of the Device Control register
cleared to zero. Bits (15:8) refer to the contents if the register is read with bit 7 of the Device Control
register set to one.
State shall contain a value indicating the state of the device when the command was issued to the device or the
reset occurred as described below.
Value
x0h
x1h
x2h
x3h
State
Unknown
Sleep
Standby (If the EPC feature set is enabled, Standby is standby_y or standby_z)
Active/Idle
(If the EPC feature set is enabled, Active/Idle is idle_a or idle_b or idle_c)
x4h
SMART Off-line or Self-test
x5h-xAh
Reserved
xBh-xFh
Vendor specific
Note: The value of x is vendor specific.
Device error count
This field shall contain the total number of errors attributable to the device that have been reported by the device
during the life of the device. This count shall not include errors attributed to the receipt of faulty commands such as
commands codes not implemented by the device or requests with invalid parameters or invalid addresses. If the
maximum value for this field is reached the count shall remain at the maximum value when additional errors are
encountered and logged.
HGST Hard Disk Drive Specification
188
Device Statistics log
The Device Statistics log contains selected statistics about the device.
The number of log pages may be greater than one.
See Table 133 Defined Device Statistics log pages for a list of defined log pages. Each supported log page
consists of a header field that may be followed by defined statistics fields. If the Revision Number field in the log
page header is 0000h, then that log page is not supported. All log page data following the last defined statistic for
that log page is reserved.
If an unsupported log page is requested, then 512 bytes of all zeros are returned for that log page.
Table 133 Defined Device Statistics log pages
Description
Log page
List of supported log pages (Table 134
General Statistics (Table 135
List of supported Device Statistics log pages)
00h
General Statistics)
01h
Free Fall Statistics (Not Support)
Rotating Media Statistics (Table 136
02h
Rotating Media Statistics)
03h
General Errors Statistics (Table 137 General Error Statistics)
Temperature Statistics (Table 139
Temperature Statistics (part 2 of 2)Table 138
Temperature Statistics (part 1 of 2)Table 138 )
Transport Statistics (Table 140 Transport Statistics)
04h
Solid State Device Statistics (Not Support)
07h
Reserved
05h
06h
08h..FFh
List of Supported Device Statistics log pages (log page 00h)
The List of Supported Device Statistics log pages contains a list of the supported device statistics log pages as
described in Table 134 List of supported Device Statistics log pages. Entries are in order of ascending log page
number. Every log page for which there is at least one supported statistic is listed.
Table 134 List of supported Device Statistics log pages
Description
Bytes
Offset
8
00h
1
08h
Log page number of first supported device statistics log page (00h)
1
09h
Log page number of second supported device statistics log page
1
0Ah
1
n+08h
Device Statistics Information Header. This device statistics log page lists the
number of the supported device statistics log pages.
Bit
Description
63:24
Reserved
23:16
Log page number. (00h)
15:0
Revision number. (0001h)
Number of entries (n) in the following list
…
Log page number of nth supported device statistics log page
Reserved
n+09h..1FFh
HGST Hard Disk Drive Specification
189
General Statistics (log page 01h)
The General Statistics log page contains general information about the device as described in Table 135
Statistics.
General
Table 135 General Statistics
Description
Device Statistics Information Header
Bit
Description
63:24
Reserved
23:16
Log page number. (01h)
15:0
Revision number. (0002h)
Lifetime Power-On Resets
Bit
Description
63:56
Device Statistics Flags
55:32
Reserved
31:0
Number of times that the device has processed a Power-On Reset
event (DWord)
Power-on Hours
Bit
Description
63:32
Reserved
31:0
Power-on Hours (DWord)
Logical Sectors Written
Bit
Description
63:56
Device Statistics Flags
55:48
Reserved
47:0
Logical Sectors Written
Number of Write Commands
Bit
Description
63:56
Device Statistics Flags
55:48
Reserved
47:0
Number of Write Commands
Logical Sectors Read
Bit
Description
63:56
Device Statistics Flags
55:48
Reserved
47:0
Logical Sectors Read
Number of Read Commands
Bit
Description
63:56
Device Statistics Flags
55:48
Reserved
47:0
Number of Read Commands
Reserved
HGST Hard Disk Drive Specification
190
Bytes
Offset
8
00h
8
08h
8
10h
8
18h
8
20h
8
28h
8
30h
1
38h..1FFh
Rotating Media Statistics (log page 03h)
The Rotating Media Statics log page contains device rotating media information as described in Table 136
Rotating Media Statistics
Table 136 Rotating Media Statistics
Description
Device Statistics Information Header
Bit
Description
63:24
Reserved
23:16
Log page number. (03h)
15:0
Revision number. (0001h)
Spindle Motor Power-on Hours
Bit
Description
63:56
Device Statistics Flags
55:32
Reserved
31:0
Spindle Motor Power-on Hours (DWord)
Head Flying Hours
Bit
Description
63:56
Device Statistics Flags
55:32
Reserved
31:0
Head Flying Hours (DWord)
Head Load Events
Bit
Description
63:56
Device Statistics Flags
55:32
Reserved
31:0
Head Load Events (DWord)
Number of Reallocated Logical Sectors
Bit
Description
63:56
Device Statistics Flags
55:32
Reserved
31:0
Number of Reallocated Logical Sectors (DWord)
Read Recovery Attempts
Bit
Description
63:56
Device Statistics Flags
55:32
Reserved
31:0
Read Recovery Attempts (DWord)
Number of Mechanical Start Failures
Bit
Description
63:56
Device Statistics Flags
55:32
Reserved
31:0
Number of Mechanical Start Failures (DWord)
Reserved
HGST Hard Disk Drive Specification
191
Bytes
Offset
8
00h
8
08h
8
10h
8
18h
8
20h
8
28h
8
30h
1
38h..1FFh
General Errors Statistics (log page 04h)
General Errors Statistics log page contains general error information about the device as described in Table 137
General Error Statistics
Table 137 General Error Statistics
Description
Device Statistics Information Header
Bit
Description
63:24
Reserved
23:16
Log page number. (04h)
15:0
Revision number. (0001h)
Number of Reported Uncorrectable Errors
Bit
Description
63:56
Device Statistics Flags
55:32
Reserved
31:0
Number of Reported Uncorrectable Errors (DWord)
Number of Resets Between Command Acceptance and Command
Completion
Bit
Description
63:56
Device Statistics Flags
55:32
Reserved
31:0
Number of Resets Between Command Acceptance and
Command Completion (DWord)
Reserved
Bytes
Offset
8
00h
8
08h
8
10h
1
18h..1FFh
Temperature Statistics (log page 05h)
The Temperature Statistics log page contains general information about the device as described in Table 138
Temperature Statistics (part 1 of 2).
The value in the temperature field is a two’s complement integer in degrees Celsius.
Table 138 Temperature Statistics (part 1 of 2)
Description
Device Statistics Information Header
Bit
Description
63:24
Reserved
23:16
Log page number. (05h)
15:0
Revision number. (0001h)
Current Temperature
Bit
Description
63:56
Device Statistics Flags
55:8
Reserved
7:0
Current Temperature (signed byte)
Average Short Term Temperature
Bit
Description
63:56
Device Statistics Flags
55:8
Reserved
7:0
Average Short Term Temperature (signed byte)
Average Long Term Temperature
Bit
Description
63:56
Device Statistics Flags
55:8
Reserved
7:0
Average Long Term Temperature (signed byte)
HGST Hard Disk Drive Specification
192
Bytes
Offset
8
00h
8
08h
8
10h
8
18h
Table 139 Temperature Statistics (part 2 of 2)
Highest Temperature
Bit
Description
63:56
Device Statistics Flags
55:8
Reserved
7:0
Highest Temperature (signed byte)
Lowest Temperature
Bit
Description
63:56
Device Statistics Flags
55:8
Reserved
7:0
Lowest Temperature (signed byte)
Highest Average Short Term Temperature
Bit
Description
63:56
Device Statistics Flags
55:8
Reserved
7:0
Highest Average Short Term Temperature (signed byte)
Lowest Average Short Term Temperature
Bit
Description
63:56
Device Statistics Flags
55:8
Reserved
7:0
Lowest Average Short Term Temperature (signed byte)
Highest Average Long Term Temperature
Bit
Description
63:56
Device Statistics Flags
55:8
Reserved
7:0
Highest Average Long Term Temperature (signed byte)
Lowest Average Long Term Temperature
Bit
Description
63:56
Device Statistics Flags
55:8
Reserved
7:0
Lowest Average Long Term Temperature (signed byte)
Time in Over-Temperature
Bit
Description
63:56
Device Statistics Flags
55:32
Reserved
31:0
Time in Over-Temperature (DWord)
Specified Maximum Operating Temperature
Bit
Description
63:56
Device Statistics Flags
55:8
Reserved
7:0
Specified Maximum Operating Temperature (signed byte)
Time in Under-Temperature
Bit
Description
63:56
Device Statistics Flags
55:32
Reserved
31:0
Time in Under-Temperature (DWord)
Specified Minimum Operating Temperature
Bit
Description
63:56
Device Statistics Flags
55:8
Reserved
7:0
Specified Minimum Operating Temperature (signed byte)
Reserved
HGST Hard Disk Drive Specification
193
8
20h
8
28h
8
30h
8
38h
8
40h
8
48h
8
50h
8
58h
8
60h
8
68h
1
70h..1FFh
Transport Statistics (log page 06h)
The Transport Statistics log page contains interface transport information about the device as described in Table
140 Transport Statistics.
Table 140 Transport Statistics
Description
Device Statistics Information Header
Bit
Description
63:24
Reserved
23:16
Log page number. (06h)
15:0
Revision number. (0001h)
Number of hardware resets
Bit
Description
63:56
Device Statistics Flags
55:32
Reserved
31:0
Number of hardware resets (DWord)
Number of ASR Events
Bit
Description
63:56
Device Statistics Flags
55:32
Reserved
31:0
Number of ASR Events (DWord)
Head Load Events
Bit
Description
63:56
Device Statistics Flags
55:32
Reserved
31:0
Head Load Events (DWord)
Number of Interface CRC Errors
Bit
Description
63:56
Device Statistics Flags
55:32
Reserved
31:0
Number of Interface CRC Errors (DWord)
Reserved
HGST Hard Disk Drive Specification
194
Bytes
Offset
8
00h
8
08h
8
10h
8
18h
8
20h
1
28h..1FFh
Extended Self-test log sector
Table 141 Extended Self-test log data structure defines the format of each of the sectors that comprise the
Extended SMART self-test log.
The Extended SMART self-test log sector shall support 48-bit and 28-bit addressing. All 28-bit entries contained in
the SMART self-test log, defined in 12.48.3.12 Self-test log data structure on page 282 shall also be included in
the Extended SMART self-test log with all 48-bit entries.
Table 141 Extended Self-test log data structure
Description
Bytes
Offset
Self-test log data structure revision number
1
00h
Reserved
1
01h
Self-test descriptor index (7:0)
1
02h
Self-test descriptor index (15:8)
1
03h
Descriptor entry 1
26
04h
Descriptor entry 2
26
1Eh
26
1D8h
2
1F2h
11
1F4h
1
1FFh
...
Descriptor entry 18
Vendor specific
Reserved
Data structure checksum
512
These descriptor entries are viewed as a circular buffer. The nineteenth self-test shall create a descriptor entry that
replaces descriptor entry 1. The next self-test after that shall create a descriptor entry that replaces descriptor entry
2, etc. All unused self-test descriptors shall be filled with zeros.
Self-test log data structure revision number
The value of this revision number shall be 01h.
Self-test descriptor index
This indicates the most recent self-test descriptor. If there have been no self-tests, this is set to zero. Valid values
for the Self-test descriptor index are 0 to 18.
HGST Hard Disk Drive Specification
195
Extended Self-test log descriptor entry
The content of the self-test descriptor entry is shown below.
Table 142 Extended Self-test log descriptor entry
Description
Bytes
Offset
Self-test number
1
00h
Self-test execution status
1
01h
Power-on life timestamp in hours
2
02h
Self-test failure check point
1
04h
Failing LBA (7:0)
1
05h
Failing LBA (15:8)
1
06h
Failing LBA (23:16)
1
07h
Failing LBA (31:24)
1
08h
Failing LBA (39:32)
1
09h
Failing LBA (47:40)
1
0Ah
15
0Bh
Vendor specific
26
Power Conditions log
Defines the Power Conditions log. If the Extended Power Conditions feature set is not supported, then the Power
Conditions log not is supported. Each Power is composed of the following formats.
Table 143 Idle power conditions
Offset
0-63
Type
Byte
64-127
Byte
128-191
Byte
192-511
Byte
Description
Idle_a power conditions descriptor.
Power condition supported is set to one to indicate that the idle_a power
condition is supported.
Idle_b power conditions descriptor.
Power condition supported is set to one to indicate that the idle_b power
condition is supported.
Idle_c power conditions descriptor.
Power condition supported is set to one to indicate that the idle_c power
condition is supported.
Reserved
Table 144 Standby power conditions (log page 01h)
Offset
0-383
384-447
Type
Byte
Byte
448-511
Byte
Description
Reserved
Standby_y power conditions descriptor.
Power condition supported is set to one to indicate that the standby_y
power condition is supported.
Standby_z power conditions descriptor.
Power condition supported is set to one to indicate that the standby_z
power condition is supported.
HGST Hard Disk Drive Specification
196
Table 145 Power Conditions log descriptor
Offset
0
1
Type
Byte
Byte
Description
Reserved
Power Condition Flags
Bit Description
7 Power Condition Supported
The Power Condition Supported bit is valid if the EPC feature set is supported,
regardless of whether EPC is enabled or disabled. If the Power Condition Supported
bit is set to one, then the power condition is supported. If the Power Condition
Supported bit is cleared to zero, then the power condition is not supported.
6 Timer Savable
The Timer Savable bit is valid if the Power Condition Supported bit is set to one,
regardless of whether EPC is enabled or disabled. If the Timer Savable bit is set to
one, then the power condition is savable if EPC is enabled. If the Timer Savable bit is
cleared to zero, then the power condition is not savable.
5 Timer Changeable
The Timer Changeable bit is valid if the Power Condition Supported bit is set to one,
regardless of whether EPC is enabled or disabled. If the Timer Changeable bit is set to
one, then the power condition is changeable if EPC is enabled. If the Timer
Changeable bit is cleared to zero, then the power condition is not changeable.
4 Default Timer Enabled
The Default Timer Enabled bit is valid if the Power Condition Supported bit is set to
one, regardless of whether EPC is enabled or disabled.
3 Saved Timer Enabled
The Saved Timer Enabled bit is valid if the Power Condition Supported bit is set to
one, regardless of whether EPC is enabled or disabled.
2 Current Timer Enabled
If EPC is disabled, then the Current Timer Enabled bit shall be cleared to zero. If EPC
is enabled and the Current Timer Setting field is non-zero and the Current Timer
Enabled bit is set to one, then the power condition timer is enabled. If EPC is enabled
and the Current Timer Enabled bit is cleared to zero, then the power condition timer is
disabled.
2-3
4-7
Byte
DWord
8-11
DWord
1-0 Reserved
Reserved
Default Timer setting
The Default Timer field is set at the time of manufacture.
The Default Timer Setting field is valid if the Power Condition Supported bit is set to
one, regardless of whether EPC is enabled or disabled. A value of FFFF_FFFFh
indicates that the time is greater than or equal to 429_496_729_500 milliseconds.
Measurement Units: 100 milliseconds.
Saved Timer setting
The Saved Timer Setting field is a value that has been saved by a SET FEATURES
Set Power Condition Timer subcommand. The Saved Timer Setting field is valid if the
Power Condition Supported bit is set to one, regardless of whether EPC is enabled or
disabled. A value of zero indicates that this power condition is disabled if the EPC
feature set is enabled. A value of FFFF_FFFFh indicates that the time is greater than
or equal to 429_496_729_500 milliseconds.
Measurement Units: 100 milliseconds.
HGST Hard Disk Drive Specification
197
12-15
DWord
16-19
DWord
20-23
DWord
24-27
DWord
28-63
DWord
Current Timer setting
The Current Timer setting is the minimum time that the device shall wait after
command completion before entering this power condition if the EPC feature set is
enabled.
The Current Timer Setting field shall be cleared to zero if:
a) EPC is disabled;
b) the Power Condition Supported bit is cleared to zero; or
c) the Current Timer Enabled field is cleared to zero.
A value of FFFF_FFFFh indicates that the time is greater than or equal to
429_496_729_500 milliseconds.
Measurement Units: 100 milliseconds
Nominal Recovery time from to PM0:Active power management state
The Nominal Recovery time from power to PM0: Active is the nominal time required to
transition from power to PM0: Active power management state. This time does not
include processing time for the command that caused this transition to occur. A value
of zero indicates that the nominal recovery time is not specified. A value of
FFFF_FFFFh indicates that the recovery time is greater than or equal to 429 496 729
500 milliseconds.
Measurement Units: 100 milliseconds.
This value is preserved over all resets.
Minimum timer setting
The Minimum timer setting is the minimum timer value allowed by the Set Power
Condition Timer subcommand for the timer. A value of zero indicates that the minimum
timer value is not specified. A value of FFFF_FFFFh indicates that the minimum timer
value is greater than or equal to 429 496 729 500 milliseconds.
Measurement Units: 100 milliseconds
This value be preserved over all resets
Maximum timer setting
The Maximum timer setting is the maximum timer value allowed by the Set Power
Condition Timer subcommand for the timer. A value of zero indicates that the
maximum timer value is not specified. A value of FFFF_FFFFh indicates that the
maximum timer value is greater than or equal to 429 496 729 500 milliseconds.
Measurement Units: 100 milliseconds
This value be preserved over all resets
Reserved
HGST Hard Disk Drive Specification
198
NCQ Command Error(log page 10h)
Table 146 defines the format of the Command Error data structure.
Table 146 Command Error log (part 1 of 2)
Byte
0
7
NQ
6
UNL
5
4
3
Rese
rved
2
1
NCQ TAG
1
Reserved
2
Status
3
Error
4
LBA field(7:0)
5
LBA field(15:8)
6
LBA field(23:16)
7
DEVICE field
8
LBA field(31:24)
9
LBA field(39:32)
10
LBA field(47:40)
11
Reserved
12
COUNT field(7:0)
13
COUNT field(15:8)
14
Reserved
15
ADDITIONAL SENSE CODE field
16
ADDITIONAL SENSE CODE QUALIFIER filed
17..255
256 – 510
511
0
Reserved
Vendor Unique
Data Structure Checksum
HGST Hard Disk Drive Specification
199
Table 147 NCQ Command Error log (part 2 of 2)
Byte
Description
512
WRITE POINTER VALID field (7:0)
513
WRITE POINTER VALID field (15:8)
514
WRITE POINTER VALID field (23:16)
515
WRITE POINTER VALID field (31:24)
516
WRITE POINTER[0] field (7:0)
517
WRITE POINTER[0] field (15:8)
518
WRITE POINTER[0] field (23:16)
519
WRITE POINTER[0] field (31:24)
520
WRITE POINTER[0] field (39:32)
521
WRITE POINTER[0] field (47:40)
….
….
702
WRITE POINTER[31] field (7:0)
703
WRITE POINTER[31] field (15:8)
704
WRITE POINTER[31] field (23:16)
705
WRITE POINTER[31] field (31:24)
706
WRITE POINTER[31] field (39:32)
707
WRITE POINTER[31] field (47:40)
708..1022
1023
Reserved
Write Pointer checksum
The TAG field (Byte 0 Bits 4-0) contains the tag number corresponding to a queued command if the NQ bit is
cleared.
The NQ field (Byte 0 Bit 7) indicates whether the error condition was a result of a non-queued or not. If it is
cleared the error information corresponds to a queued command specified by the tag number indicated in the
TAG field.
The bytes 1 to 13 correspond to the contents of Shadow Register Block when the error was reported.
The Data Structure Checksum (Byte 511) contains the 2’s complement of the sum of the first 511 bytes in the
data structure. The sum of all 512 bytes of the data structure will be zero when the checksum is correct.
For each write command to a zone with a valid write pointer (see 10.20.5.3) that is terminated as the result of an
NCQ command failure, based on the tag associated with that command (e.g, tag n):
a) the corresponding bit in the WRITE POINTER VALID field (e.g. bit n) shall be set to one; and
b) the corresponding WRITE POINTER[0..31] field (e.g., the WRITE POINTER[n] field) shall be set to the value
of the write pointer at the time the write command was terminated.
EXAMPLE - If a write command with tag 3 is terminated, bit 3 of the WRITE POINTER VALID field is set to one,
and WRITE POINTER[3] field contains the value of the write pointer at the time the write command was terminated.
The WRITE POINTER VALID field bits associated with all other tags shall be cleared to zero, and the contents of
thecorresponding WRITE POINTER[0..31] fields are invalid. Each WRITE POINTER[0..31] field shall contain a
valid or invalid write pointer as described in 10.20.5.3
HGST Hard Disk Drive Specification
200
Identify Device Data log
IDENTIFY DEVICE data log reports device configuration information. This log is read-only. See Table 148
Identify Device Data Log for a list of defined pages. Each page consists of a header field that is followed by
defined statistics fields. If the Revision Number field in the page header is 0000h, then that page is not supported.
All page data following the last defined statistic for that page is reserved.
Table 148 Identify Device Data Log
Description
Page
List of supported pages
00h
Copy of IDENTIFY DEVICE data
01h
Capacity
02h
Supported Capabilities
03h
Current Settings
04h
ATA Strings
05h
Security
06h
Reserved for Parallel ATA
07h
Serial ATA
08h
Zoned-device Information
09h
Reserved
0Ah..FFh
List of Supported IDENTIFY DEVICE data log pages (Page 00h)
IDENTIFY DEVICE data log page 00h contains a list of the supported pages. Entries are in order of ascending
page number (e.g., 00h, 01h, 07h).
Table 149 List of supported IDENTIFY DEVICE data pages
Offset
0..7
Type
QWord
8
9
10
…
n+8
n+9..511
Byte
Byte
Byte
Byte
Content
IDENTIFY DEVICE data log Information Header. This log page lists the
numbers of the supported log pages
Bit Meaning
63:24 Reserved
23:16 Page Number. Set to 00h.
15:0 Revision number. Set to 0001h
Number of entries (n) in the following list
Set to zero to indicate that page 00h is supported
Set to one to indicate that page 01h is supported
Page number of nth supported IDENTIFY DEVICE data log page
Reserved
HGST Hard Disk Drive Specification
201
Copy of IDENTIFY DEVICE data (page 01h)
This page is a copy of IDENTIFY DEVICE data words 0..255.
Capacity (page 02h)
The Capacity log page provides information about the capacity of the device.
Table 150 Capacity log page
Offset
0..7
Type
QWord
8..15
QWord
16..23
QWord
24..31
QWord
32..39
QWord
40..511
Content
Capacity page information header
Bit Meaning
63 Set to one.
62:24 Reserved
23:16 Page Number. Shall be set to 02h.
15:0 Revision number. Shall be set to 0001h
Device Capacity
Bit Meaning
63 Set to one.
62:48 Reserved
47:0 ACCESSIBLE CAPACITY field
Physical/Logical Sector Size
Bit Meaning
63 Contents of the QWord are valid
62 LOGICAL TO PHYSICAL SECTOR RELATIONSHIP SUPPORTED bit
61 LOGICAL SECTOR SIZE SUPPORTED bit
60:22 Reserved
21:20 ALIGNMENT ERROR REPORTING field
19:16 LOGICAL TO PHYSICAL SECTOR RELATIONSHIP field
15:0 LOGICAL SECTOR OFFSET field
Logical Sector Size
Bit Meaning
63 Contents of the QWord are valid
62..32 Reserved
31..0 LOGICAL SECTOR SIZE field
Nominal Buffer Size
Bit Meaning
63 Contents of the QWord are valid
62:0 BUFFER SIZE field
Reserved
HGST Hard Disk Drive Specification
202
Supported Capabilities (page 03h)
The Supported Capabilities log page provides a mechanism for the device to report support for feature sets,
features, commands and other device capabilities.
Table 151 Supported Capabilities log page
Offset
0..7
Type
QWord
8..15
QWord
Content
Supported Capabilities page information header.
Bit Meaning
63 Set to one.
62:24 Reserved
23:16 Page Number. Set to 03h.
15:0 Revision number. Set to 0001h
Supported Capabilities
Bit Meaning
63 Set to one.
62:53 Reserved
52 SFF-8447 REPORTING bit (=0, Hs14 follows SFF-8447)
51 Reserved
50 DATA SET MANAGEMENT XL SUPPORTED bit (=0)
49:46 Reserved
45 REQUEST SENSE DEVICE FAULT SUPPORTED bit (=1)
44 DSN SUPPORTED bit (=0)
43 LOW POWER STANDBY SUPPORTED bit (=0)
42 SET EPC POWER SOURCE SUPPORTED bit (=0)
41 AMAX ADDR SUPPORTED bit (=0)
40 Reserved for CFA
39 DRAT SUPPORTED bit (=0)
38 LPS MISALIGNMENT REPORTING SUPPORTED bit (=0)
37 Reserved
36 READ BUFFER DMA SUPPORTED bit (=1)
35 WRITE BUFFER DMA SUPPORTED bit (=1)
34 Reserved
33 Download Microcode DMA SUPPORTED bit (=1)
32 28-BIT SUPPORTED bit (=0)
31 RZAT SUPPORTED bit (=0)
30 Reserved
29 NOP SUPPORTED bit (=1)
28 READ BUFFER SUPPORTED bit (=1)
27 WRITE BUFFER SUPPORTED bit (=1)
26 Reserved
25 READ LOOK-AHEAD SUPPORTED bit (=1)
24 VOLATILE WRITE CACHE SUPPORTED bit (=1)
23 SMART bit (=1)
22 FLUSH CACHE EXT SUPPORTED bit (=1)
21 Reserved
20 48-BIT SUPPORTED bit (=1)
19 Reserved
18 SPIN-UP SUPPORTED bit (=1)
17 PUIS SUPPORTED bit (=1)
16 APM SUPPORTED bit (=1)
15 CFA SUPPORTED bit (=0)
14 Download Microcode SUPPORTED bit (=1)
13 UNLOAD SUPPORTED bit (=0)
12 The WRITE DMA FUA EXT and WRITE MULTIPLE FUA EXT commands are supported (=1)
11 GPL SUPPORTED bit (=1)
10 STREAMING SUPPORTED bit (=0)
9 Reserved
8 SMART SELF-TEST SUPPORTED bit (=1)
7 SMART ERROR LOGGING SUPPORTED bit (=1)
6 EPC SUPPORTED bit (=1)
5 SENSE DATA SUPPORTED bit (=1)
4 FREE-FALL SUPPORTED bit (=0)
3 DM MODE 3 SUPPORTED bit (=1)
2 GPL DMA SUPPORTED bit (=1)
1 WRITE UNCORRECTABLE SUPPORTED bit (=1)
0 WRV SUPPORTED bit (=0)
HGST Hard Disk Drive Specification
203
Table 152 Supported Capabilities log page –Continued16..23
QWord
24..31
QWord
32..39
QWord
40..47
QWord
48..55
QWord
56..71
DQWord
72..79
QWord
80..103
104..111
QWord
QWord
112..119
QWord
120..511
Download Microcode Capabilities
Bit Meaning
63 Contents of the QWord are valid
62:36 Reserved
35 DM CLEARS NONACTIVATED DEFERRED DATA bit
34 DM OFFSETS DEFERRED SUPPORTED bit
33 DM IMMEDIATE SUPPORTED bit
32 DM OFFSETS IMMEDIATE SUPPORTED bit
31:16 DM MAXIMUM TRANSFER SIZE field
15:0 DM MINIMUM TRANSFER SIZE field
Nominal Media Rotation Rate
Bit Meaning
63 Set to one
62:16 Reserved
15:0 NOMINAL MEDIA ROTATION RATE field
Nominal Form Factor [was word 168]
Bit Meaning
63 Contents of the QWord are valid
62:4 Reserved
3:0 Nominal Form Factor
Write-Read-Verify Sector Count Mode 3
Bit Meaning
63 Contents of the QWord are valid
62:32 Reserved
31:0 WRV MODE 3 COUNT field
Write-Read-Verify Sector Count Mode 2
Bit Meaning
63 Contents of the QWord are valid
62:32 Reserved
31:0 WRV MODE 2 COUNT field
World wide name [was word 108]
Bit Meaning
127 Set to one
126:64 Reserved
63:0 World wide name
DATA SET MANAGEMENT
Bit Meaning
63 Set to one
62:1 Reserved
0 TRIM SUPPORTED bit (Not Supported)
Reserved
Zoned Capabilities
Bit Meaning
63 Contents of the QWord are valid
62:2 Reserved
1:0 ZONED field: 00 = Host Managed
Supported ZAC Capabilities
Bit Meaning
63 Contents of the QWord are valid
62:5 Reserved
4 NON-DATA RESET WRITE POINTERS EXT SUPPORTED bit
3 NON-DATA FINISH ZONE EXT SUPPORTED bit
2 NON-DATA CLOSE ZONE EXT SUPPORTED bit
1 NON-DATA OPEN ZONE EXT SUPPORTED bit
0 REPORT ZONES EXT SUPPORTED bit
Reserved
HGST Hard Disk Drive Specification
204
Current Settings (page 04h)
The Current Settings log page provides a mechanism for the device to report the current settings for feature sets,
features, and other device capabilities.
Table 153 Current Settings log page
Offset
0..7
Type
QWord
8..15
QWord
16..23
QWord
24..31
QWord
32..39
QWord
40..47
QWord
Content
Supported Capabilities page information header.
Bit Meaning
63 Set to one.
62:24 Reserved
23:16 Page Number. Set to 04h.
15:0 Revision number. Set to 0001h
Current Settings
Bit Meaning
63 Set to one.
62:17 Reserved
16 DSN ENABLED bit
15 EPC ENABLED bit
14 8-BIT PIO ENABLED bit
13 VOLATILE WRITE CACHE ENABLED bit
12 Reserved for CFA
11 REVERTING TO DEFAULTS ENABLED bit
10 SENSE DATA ENABLED bit
9 Reserved
8 NON-VOLATILE WRITE CACHE bit
7 READ LOOK-AHEAD ENABLED bit
6 SMART ENABLED bit
5 Reserved
4 Reserved
3 PUIS ENABLED bit
2 APM ENABLED bit
1 FREE-FALL ENABLED bit
0 WRV ENABLED bit
Feature Settings
Bit Meaning
63 Contents of the QWord are valid
62:16 reserved
17:16 POWER SOURCE field
15:8 APM LEVEL field
7:0 WRV MODE field
DMA Host Interface Sector Times
Bit Meaning
63 Contents of the QWord are valid
62:16 Reserved
15:0 DMA SECTOR TIME field
PIO Host Interface Sector Times
Bit Meaning
63 Contents of the QWord are valid
62:16 Reserved
15:0 PIO SECTOR TIME field
Reserved
HGST Hard Disk Drive Specification
205
Table 154 Current Settings log page –ContinuedOffset
48..55
Type
QWord
Content
Reserved
56..63
QWord
Reserved
64..71
QWord
72..79
QWord
Free-fall Control Sensitivity
Bit Meaning
63 Contents of the QWord are valid
62:16 Reserved
7:0 FREE-FALL SENSITIVITY field
Device Maintenance Schedule
Bit Meaning
63 Contents of the QWord are valid
62:48 Reserved
47:32 Time scheduled for device maintenance
31:16 Time to performance degradation
15:0 Minimum inactive time
Reserved
80..511
Strings (page 05h)
The Strings log page provides a mechanism for the device to report ATA String based information.
Table 155 Strings log page
Offset
Type
0..7
QWord
8..27
28..31
32..39
40..47
48..87
88..95
96..103
104..511
ATA String
ATA String
ATA String
ATA String
Content
Strings page information header.
Bit Meaning
63 Set to one.
62:24 Reserved
23:16 Page Number. Set to 05h.
15:0 Revision number. Set to 0001h
Serial number
Reserved
Firmware revision
Reserved
Model number
Reserved
Additional Product Identifier
Reserved
HGST Hard Disk Drive Specification
206
Security (page 06h)
The Security log page provides a mechanism for the device to report Security based information.
Table 156 Security log page
Offset
0..7
Type
QWord
8..15
QWord
16..23
QWord
24..31
QWord
32..39
QWord
40..47
QWord
48..55
QWord
56..511
Content
Security page information header.
Bit Meaning
63 Set to one.
62:24 Reserved
23:16 Page Number. Set to 06h.
15:0 Revision number. Set to 0001h
Master Password Identifier [was word 92]
Bit Meaning
63 Contents of the QWord are valid.
62:16 Reserved
15:0 Master Password Identifier
Security Status
Bit Meaning
63 Contents of the QWord are valid
62:7 Reserved
6 SECURITY SUPPORTED bit
5 MASTER PASSWORD CAPABILITY bit
4 ENHANCED SECURITY ERASE SUPPORTED bit
3 SECURITY COUNT EXPIRED bit
2 SECURITY FROZEN bit
1 SECURITY LOCKED bit
0 SECURITY ENABLED bit
Time required for an Enhanced Erase mode SECURITY ERASE UNIT
command [was word 90]
Bit Meaning
63 Contents of the QWord are valid
62:15 Reserved
14:0 ENHANCED SECURITY ERASE TIME field
Time required for a Normal Erase mode SECURITY ERASE UNIT command
[was word 89]
Bit Meaning
63 Contents of the QWord are valid
62:15 Reserved
14:0 NORMAL SECURITY ERASE TIME field
Trusted Computing feature set
Bit Meaning
63 Contents of the QWord are valid
62:1 Reserved
0 TRUSTED COMPUTING SUPPORTED bit
Security Capabilities
Bit Meaning
63 Contents of the QWord are valid
62:5 Reserved
4 BLOCK ERASE SUPPORTED bit
3 OVERWRITE SUPPORTED bit
2 CRYPTO SCRAMBLE SUPPORTED bit
1 SANITIZE SUPPORTED bit
0 ENCRYPT ALL SUPPORTED bit
Reserved
HGST Hard Disk Drive Specification
207
Parallel ATA (page 07h)
The Parallel ATA log page provides information about the Parallel ATA Transport. This page is not supported.
Serial ATA (page 08h)
The Serial ATA log page provides information about the Serial ATA Transport.
Table 157 Serial ATA log page
Offset
0..7
Type
QWord
8..15
QWord
16..23
QWord
24..39
40..41
42..43
44..511
Word
Word
Content
Serial ATA page information header.
Bit Meaning
63 Set to one.
62:24 Reserved
23:16 Page Number. Set to 08h.
15:0 Revision number. Set to 0001h
SATA Capabilities
Bit Meaning
63 Set to one
62:26 Reserved for Serial ATA
24 NCQ AUTOSENSE SUPPORTED bit
23 SOFTWARE SETTINGS PRESERVATION SUPPORTED bit
22 HARDWARE FEATURE CONTROL SUPPORTED bit
21 IN-ORDER DATA DELIVERY SUPPORTED bit
20 DEVICE INITIATED POWER MANAGEMENT SUPPORTED bit
19 DMA SETUP AUTO-ACTIVATION SUPPORTED bit
18 NON-ZERO BUFFER OFFSETS SUPPORTED bit
17 SEND AND RECEIVE QUEUED COMMANDS SUPPORTED bit
16 NCQ NON-DATA COMMAND SUPPORTED bit
15 NCQ STREAMING SUPPORTED bit
14 READ LOG DMA EXT AS EQUIVALENT TO READ LOG EXT SUPPORTED bit
13 DEVICE AUTOMATIC PARTIAL TO SLUMBER TRANSITIONS SUPPORTED bit
12 HOST AUTOMATIC PARTIAL TO SLUMBER TRANSITIONS SUPPORTED bit
11 NCQ PRIORITY INFORMATION SUPPORTED bit
10 UNLOAD WHILE NCQ COMMANDS ARE OUTSTANDING SUPPORTED bit
9 SATA PHY EVENT COUNTERS LOG SUPPORTED bit
8 RECEIPT OF HOST INITIATED POWER MANAGEMENT REQUESTS
SUPPORTED bit
7 NCQ FEATURE SET SUPPORTED bit
6:3 Reserved for Serial ATA
2 SATA GEN3 SIGNALING SPEED SUPPORTED bit
1 SATA GEN2 SIGNALING SPEED SUPPORTED bit
0 SATA GEN1 SIGNALING SPEED SUPPORTED bit
Current SATA Settings
Bit Meaning
63 Set to one
62:10 Reserved
9 AUTOMATIC PARTIAL TO SLUMBER TRANSITIONS ENABLED bit
8 SOFTWARE SETTINGS PRESERVATION ENABLED bit
7 HARDWARE FEATURE CONTROL IS ENABLED bit
6 IN-ORDER DATA DELIVERY ENABLED bit
5 DEVICE INITIATED POWER MANAGEMENT ENABLED bit)
4 DMA SETUP AUTO-ACTIVATION ENABLED bit
3 NON-ZERO BUFFER OFFSETS ENABLED bit
2:0 CURRENT SERIAL ATA SIGNAL SPEED field
Reserved for Serial ATA
CURRENT HARDWARE FEATURE CONTROL IDENTIFIER field
SUPPORTED HARDWARE FEATURE CONTROL IDENTIFIER field
Reserved for SATA
HGST Hard Disk Drive Specification
208
Zoned-device Information (page 09h)
The Zoned-device Information log page (see Table 158 Zoned-device Information) provides information about the
capabilities and functional settings of a zoned-block device.
12.20.7.10.1 Overview
Table 158 Zoned-device Information
Offset
0..7
Type
QWord
8..15
QWord
16..23
QWord
24..31
32..39
40..47
QWord
QWord
QWord
48..55
QWord
56..511
Content
Zoned-device Information page information header.
Bit Meaning
63 Shall be set to one.
62:24 Reserved
23:16 Page Number. Shall be set to 09h.
15:0 Revision number. Shall be set to 0001h.
Zoned-device capabilities
Bit Meaning
63 Shall be set to one.
62:1 Reserved
0 URSWRZ bit (see 12.20.7.10.2)
Zoned-device settings
Bit Meaning
63 Shall be set to one.
62:0 Reserved
Reserved
Reserved
Maximum number of open sequential write required zones
Bit Meaning
63 Shall be set to one.
62..32 Reserved
31..0 MAXIMUM NUMBER OF OPEN SEQUENTIAL WRITE REQUIRED ZONES
field(see 12.20.7.10.3)
Version information
Bit Meaning
63 Shall be set to one.
62:16 Reserved
15:0 ZAC MINOR VERSION field (see 12.20.7.10.4.1)
Reserved
12.20.7.10.2 URSWRZ bit
An unrestricted read in sequential write required zone (URSWRZ) bit set to zero indicates that the device server
does not support reading unwritten logical blocks or reads across zone boundaries in sequential write required
zones. A URSWRZ bit set to one indicates that the device server supports reading unwritten logical blocks and
reads across zone boundaries in sequential write required zones.
The details of processing reads in sequential write required zones.
12.20.7.10.3 MAXIMUM NUMBER OF OPEN SEQUENTIAL WRITE
REQUIRED ZONES field
The MAXIMUM NUMBER OF OPEN SEQUENTIAL WRITE REQUIRED ZONES field indicates the maximum
number of sequential write required zones that are allowed to be in the ZC3: Explicit_Open state. The Implicit
Close function enforces this limit.
A value of FFFF FFFFh indicates that there is no limit for the number of open sequential write required zones.
12.20.7.10.4 Version information
HGST Hard Disk Drive Specification
209
12.20.7.10.4.1
ZAC MINOR VERSION field
If The ZAC MINOR VERSION field (see Table 159) indicates the version of the standard that guided the device
Implementation.
Table 159 ZAC MINOR Version field
Value
000h
000h.. .05CEh
05CFh
05D0h..A36Bh
A36Ch
A36Dh..B6E7h
B6E8h
B6E8h..FFFEh
FFFFh
Minor version
ZAC minor version is not reported
Reserved
ZAC revision 05
Reserved
ZAC revision 04
Reserved
ZAC revision 01
Reserved
ZAC minor version is not reported
HGST Hard Disk Drive Specification
210
Read Log DMA Ext(47h)
Table 160 Read Log DMA Ext Command (47h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
If not defined by the log specified by the LOG
ADDRESS field, this field is reserved.
Block Count
Bit Description
47:40 Reserved
39:32 PAGE NUMBER field (15:8)
31:16 Reserved
15:8 PAGE NUMBER field (7:0)
7:0 LOG ADDRESS field
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 47h
Normal Outputs
See Normal Outputs in 12.7 Flush Cache Ext (EAh)
Error Outputs
See Error Outputs in 12.20 Read Log DMA Ext (47h)
The content of this command is the same as Read Log Ext. See 12.20
HGST Hard Disk Drive Specification
211
Read Multiple (C4h)
Table 161 Read Multiple Commands (C4h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
N/A
The number of logical sectors to be transferred. A value of 00h
indicates that 256 logical sectors are to be transferred
LBA of first logical sector to be transferred
Bit Description
7:5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 C4h
Normal Outputs
See Normal Outputs in 12.6 Flush Cache (E7h)
Error Outputs
See Error Outputs in 12.17 Read DMA (C8h/C9h)
The Read Multiple command reads one or more sectors of data from disk media, and then transfers the data from
the device to the host.
The sectors are transferred through the Data Register 16 bits at a time. Command execution is identical to the
Read Sector(s) command except that an interrupt is generated for each block (as defined by the Set Multiple
command) instead of for each sector.
HGST Hard Disk Drive Specification
212
Read Multiple Ext (29h)
Table 162 Read Multiple Ext Command (29h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
Reserved
The number of logical sectors to be transferred. A value of 0000h
indicates that 65536 logical sectors are to be transferred
LBA of first logical sector to be transferred
Bit Description
7:5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 29h
Normal Outputs
See Normal Outputs in 12.7 Flush Cache Ext (EAh)
Error Outputs
Field
ERROR
COUNT
LBA
DEVICE
STATUS
Description
Bit Description
7 INTERFACE CRC bit
6 UNCORRECTABLE ERROR bit
5 N/A
4 ID NOT FOUND bit
3 N/A
2 ABORT bit
1 N/A
0 Obsolete
Reserved
LBA of First Unrecoverable Error
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
Bit Description
7:6 Transport Dependent
5 DEVICE FAULT bit
4 N/A
3 Transport Dependent
2 N/A
1 SENSE DATA AVAILABLE bit
0 ERROR bit
The Read Multiple Ext command reads one or more sectors of data from disk media, and then transfers the data
from the device to the host.
The sectors are transferred through the Data Register 16 bits at a time. Command execution is identical to the
Read Sector(s) command except that an interrupt is generated for each block (as defined by the Set Multiple
command) instead of for each sector.
HGST Hard Disk Drive Specification
213
Read Native Max Address (F8h)
Table 163 Read Native Max ADDRESS (F8h)
Block Normal Outputs Command
Command Block Command Input
Register
7
6
5
4
3
2
1
0
Register
7
6
5
4
3
2
1
0
Data
-
-
-
-
-
-
-
-
Data
-
-
-
-
-
-
-
-
Feature
-
-
-
-
-
-
-
-
Error
…See Below…
Sector Count
-
-
-
-
-
-
-
-
Sector Count
-
-
-
-
-
-
-
-
Sector Number
-
-
-
-
-
-
-
-
Sector Number
V
V
V
V
V
V
V
V
Cylinder Low
-
-
-
-
-
-
-
-
Cylinder Low
V
V
V
V
V
V
V
V
Cylinder High
-
-
-
-
-
-
-
-
Cylinder High
V
V
V
V
V
V
V
V
Device/Head
1
L
1
D
-
-
-
-
Device/Head
-
-
-
-
H
H
H
H
Command
1
1
1
1
1
0
0
0
Status
…See Below…
Error Register
Status Register
7
6
5
4
3
2
1
0
7
6
5
CRC
UNC
0
IDN
0
ABT
T0N
AMN
BSY
RDY
DF
0
0
0
0
0
V
0
0
0
V
0
4
3
DSC DRQ
-
-
2
1
0
COR
IDX
ERR
0
-
V
This command returns the native max LBA/CYL of HDD which is not affected by Set Max Address command.
The 48-bit native max address is greater than 268,435,455; the Read Native Max Address command shall return
a value of 268,435,455.
Input Parameters From The Device
Sector Number
Cylinder High/Low
H
In LBA mode, this register contains native max LBA bits 0-7. (L=1)
In CHS mode, this register contains native max sector number. (L=0)
In LBA mode, this register contains native max LBA bits 8-15 (Low), 16-23 (High). (L=1)
In CHS mode, this register contains native max cylinder number. (L=0)
In LBA mode, this register contains native max LBA bits 24-27. (L=1)
In CHS mode, this register contains native max head number.(L=0)
HGST Hard Disk Drive Specification
214
Read Native Max Address Ext (27h)
Table 164 Read Native Max Address Ext (27h)
Command Block Normal Outputs
Register
7 6 5 4 3 2 1 0
Data Low
- - - - - - - Data High
- - - - - - - Feature
Sector Count
Sector
Number
Cylinder Low
Cylinder High
Current
-
-
-
-
-
-
-
-
Previous
-
-
-
-
-
-
-
-
Current
-
-
-
-
-
-
-
-
Previous
-
-
-
-
-
-
-
-
Current
-
-
-
-
-
-
-
-
Previous
-
-
-
-
-
-
-
-
Current
-
-
-
-
-
-
-
-
Previous
-
-
-
-
-
-
-
-
Current
-
-
-
-
-
-
-
-
Previous
- - - - - - - 1 1 1 D - - - 0 0 1 0 0 1 1 1
Device/Head
Command
Command Block Command Input
Register
7 6 5 4 3
Data Low
- - - - Data High
- - - - -
2
-
1
-
0
-
…See Below…
Error
Sector
Count
HOB=0
-
-
-
-
-
-
-
-
HOB=1
-
-
-
-
-
-
-
-
Sector
Number
HOB=0
V
V
V
V
V
V
V
V
HOB=1
V
V
V
V
V
V
V
V
Cylinder
Low
HOB=0
V
V
V
V
V
V
V
V
HOB=1
V
V
V
V
V
V
V
V
Cylinder
High
HOB=0
V
V
V
V
V
V
V
V
HOB=1
Device/Head
Status
V
-
V
-
V V V V V
- - - - …See Below…
V
-
Error Register
Status Register
7
6
5
4
3
2
1
0
CRC
UNC
0
IDN
0
ABT
T0N
AMN
0
0
0
0
0
V
0
0
7
6
BSY RDY
0
V
5
DF
4
3
2
DSC DRQ COR
0
-
-
0
1
0
IDX
ERR
-
V
This command returns the native max LBA of HDD which is not affected by Set Max Address Ext command.
Input Parameters From The Device
Sector Number (HOB=0)
LBA (7:0) of the address of the Native max address.
Sector Number (HOB=1)
LBA (31:24) of the address of the Native max address.
Cylinder Low (HOB=0)
LBA (15:8) of the address of the Native max address.
Cylinder Low (HOB=1)
LBA (39:32) of the address of the Native max address.
Cylinder High (HOB=0)
LBA (23:16) of the address of the Native max address.
Cylinder High (HOB=1)
LBA (47:40) of the address of the Native max address.
HGST Hard Disk Drive Specification
215
Read Sector(s) (20h/21h)
Table 165 Read Sector(s) Command (20h/21h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
N/A
The number of logical sectors to be transferred. A value of
00h indicates that 256 logical sectors are to be transferred
LBA of first logical sector to be transferred
Bit Description
7:5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 20h or 21h
Normal Outputs
See Normal Outputs in 12.6 Flush Cache (E7h)
Error Outputs
See Error Outputs in 12.17 Read DMA (C8h/C9h)
The Read Sector(s) command reads one or more sectors of data from disk media, and then transfers the data
from the device to the host.
The sectors are transferred through the Data Register 16 bits at a time.
If an uncorrectable error occurs, the read will be terminated at the failing sector.
HGST Hard Disk Drive Specification
216
Read Sector(s) Ext (24h)
Table 166 Read Sector(s) Ext Command (24h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
Reserved
The number of logical sectors to be transferred. A value of 0000h
indicates that 65,536 logical sectors are to be transferred
LBA of first logical sector to be transferred
Bit Description
7 Obsolete
6 Shall be set to one
5 Obsolet
4 Transport Dependent
3:0 Reserved
7:0 24h
Normal Outputs
See Normal Outputs in 12.7 Flush Cache Ext (EAh)
Error Outputs
See Error Outputs in 12.23 Read Multiple Ext (29h)
The Read Sector(s) Ext command reads from 1 to 65,536 sectors of data from disk media, and then transfers the
data from the device to the host.
The sectors are transferred through the Data Register 16 bits at a time.
If an uncorrectable error occurs, the read will be terminated at the failing sector.
HGST Hard Disk Drive Specification
217
Read Verify Sector(s) (40h/41h)
Table 167 Read Verify Sector(s) Command (40h/41h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
N/A
The number of logical sectors to be verified. A value of
00h indicates that 256 logical sectors are to be verified
LBA of first logical sector to be verified
Bit Description
7:5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 40h
Normal Outputs
See Normal Outputs in 12.6 Flush Cache (E7h)
Error Outputs
See Error Outputs in 12.17 Read DMA (C8h/C9h)
The Read Verify Sector(s) verifies one or more sectors on the device. No data is transferred to the host.
The difference between Read Sector(s) command and Read Verify Sector(s) command is whether the data is
transferred to the host or not.
If an uncorrectable error occurs, the read verify will be terminated at the failing sector.
HGST Hard Disk Drive Specification
218
Read Verify Sector(s) Ext (42h)
Table 168 Read Verify Sector(s) Ext Command (42h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
N/A
The number of logical sectors to be verified. A value of
0000h indicates that 65536 logical sectors are to be verified
LBA of first logical sector to be verified
Bit Description
7 Obsolete
6 Shall be set to one
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 42h
Normal Outputs
See Normal Outputs in 12.7 Flush Cache Ext (EAh)
Error Outputs
See Error Outputs in 12.23 Read Multiple Ext (29h)
The Read Verify Sector(s) Ext verifies one or more sectors on the device. No data is transferred to the host.
The difference between the Read Sector(s) Ext command and the Read Verify Sector(s) Ext command is whether
the data is transferred to the host or not.
If an uncorrectable error occurs, the Read Verify Sector(s) Ext will be terminated at the failing sector.
HGST Hard Disk Drive Specification
219
Recalibrate (1xh)
Table 169 Recalibrate Command (1xh)
Command Block Normal Outputs
Register
7
6
5
4
3
Data
Feature
Sector Count
Sector Number Cylinder Low
Cylinder High
Device/Head
1
1
D Command
0
0
0
1
-
7
6
CRC UNC
0
0
5
0
0
2
-
Error Register
4
3
2
1
0
IDN 0 ABT T0N AMN
0
0
V
V
0
1
-
0
-
Command Block Command Input
Register
7
6
5
4
3
2
Data
Error
…See Below…
Sector Count
Sector Number Cylinder Low
Cylinder High
Device/Head
Status
…See Below…
Status Register
7
6
5
4
3
2
1
0
BSY RDY DF DSC DRQ COR IDX ERR
0
V
0
V
0
V
The Recalibrate command moves the read/write heads from anywhere on the disk to cylinder 0.
If the device cannot reach cylinder 0, T0N (Track 0 Not Found) will be set in the Error Register.
HGST Hard Disk Drive Specification
220
1
-
0
-
-
-
RECEIVE FPDMA QUEUED (65h)
Table 170 RECEIVE FPDMA QUEUED
Command Input
Field
FEATURE
COUNT
LBA
AUXILIARY
DEVICE
Command
Description
The number of 512-byte blocks of data to be transferred.
A value of 0000h indicates that 65 536
512-byte blocks of data are to be transferred
Bit Description
15:14 PRIO field
13 Reserved
12:8 SUBCOMMAND field – See Table 171
7:3 NCQ TAG field
2:0 Reserved
Subcommand specific
Subcommand specific
Bit Description
7 Reserved
6 Shall be set to one
5 Reserved
4 Shall be cleared to zero
3:0 Reserved
7:0 65h
Table 171 defines the RECEIVE FPDMA QUEUED subcommands. See the referenced sections for additional
information in this table.
Table 171 RECEIVE FPDMA QUEUED subcommands
Subcommand
0h
1h
2h
3h – 1Fh
Description
Reserved
READ LOG DMA EXT
ZAC Management In
Reserved
Reference
No Support
12.65.2 ZAC MAMANGEMENT IN
-
Command Acceptance Outputs
Table 172 NCQ Command Acceptance Normal Output
Field
ERROR
COUNT
LBA
DEVICE
STATUS
Description
Shall be clear to zero
N/A
N/A
Bit Description
7:4 N/A
3:0 Reserved
Bit Description
7:6 Transport Dependent
5 DEVICE FAULT bit
4 N/A
3 Transport Dependent.
2 N/A
1 SENSE DATA AVAILABLE bit
0 ERROR bit
HGST Hard Disk Drive Specification
221
Normal Outputs
Table 173 NCQ Normal Output
Field
SATA STATUS
ERROR
STATUS
SACTIVE
Description
Transport Dependent
Shall be clear to zero
Bit Description
7:6 Transport Dependent
5 DEVICE FAULT bit
4 N/A
3 Transport Dependent.
2 N/A or ALIGNMENT ERROR bit
1 SENSE DATA AVAILABLE bit
0 ERROR bit
Bit Description
31:0 Transport Dependent completion indicator
Error Outputs
The device sets the ERROR bit to one and aborts the command in response to an invalid value in the
SUBCOMMAND field, a duplicate tag number, an invalid tag number, or an Interface CRC error (see Table 174
NCQ Command Acceptance Error).
Errors that occur during the processing of this command are reported by returning a transport dependent
indicator (see Table 175) with additional information available in the NCQ Command Error log (see 12.20.6).
Table 174 NCQ Command Acceptance Error
Field
ERROR
COUNT
LBA
DEVICE
STATUS
Description
Bit Description
7 INTERFACE CRC bit
6:3 N/A
2 ABORT bit
1:0 N/A
N/A
N/A
Bit Description
7:4 N/A
3:0 Reserved
Bit Description
7:6 Transport Dependent
5 DEVICE FAULT bit
4 N/A
3 Transport Dependent.
2 N/A
1 SENSE DATA AVAILABLE bit
0 ERROR bit
HGST Hard Disk Drive Specification
222
Table 175 NCQ Write Command Aborted Error
Field
SATA STATUS
ERROR
STATUS
SACTIVE
Description
Transport Dependent
Bit Description
7 INTERFACE CRC bit
6:5 Obsolete
4 ID NOT FOUND bit
3 Obsolete
2 ABORT bit
1:0 Obsolete
Bit Description
7 Shall be cleared to zero
6 Transport Dependent
5 DEVICE FAULT bit
4 N/A
3 Shall be cleared to zero.
2 N/A
1 SENSE DATA AVAILABLE bit
0 ERROR bit
Bit Description
31:0 Transport Dependent completion indicator
HGST Hard Disk Drive Specification
223
Request Sense Data Ext (0Bh)
Table 176 Request Sense Data Ext command (0Bh)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
Reserved
Reserved
Reserved
Bit Description
7:5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 0Bh
Normal Outputs
Field
ERROR
COUNT
LBA
DEVICE
STATUS
Description
Reserved
Reserved
Bit Description
47:24 Vendor Specific
23:20 Reserved
19:16 SENSE KEY field
15:8 ADDITIONAL SENSE CODE field
7:0 ADDITIONAL SENSE CODE QUALIFIER field
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
Bit Description
7:6 Transport Dependent
5:2 Reserved
1 SENSE DATA AVAILABLE bit
0 ERROR bit
Error Outputs
See Error Outputs in 12.11 Idle (E3h / 97h)
The Request Sense Data Ext command allows the reporting of the most recent sense data from the device.
When sense data is available, the sense key (K), additional sense code (C), and additional sense code qualifier
(Q) fields are set to values that are defined in the SPC-4 standard.
Otherwise, the sense key, additional sense code, and additional sense code qualifier are cleared to zero.
The default reporting for the Sense Data Reporting feature set is enabled.
The Request Sense Data Ext command returns the KCQ of the last command execution result and the KCQ
information is deleted after command execution.
If another command is executed before the Request Sense Data Ext command, the KCQ information will be
overwritten by the command.
Sense data reporting feature and NCQ Autosense feature are independent features.
The KCQ are cleared after:
a) Receiving any reset;
b) Acceptance of a command other than Request Sense Data Ext command that does not read the NCQ
Command Error log; or
c) Completion of a Request Sense Data Ext command.
HGST Hard Disk Drive Specification
224
If the Request Sense Data Ext command is executed before the Read Log Ext, page 10h command, the Sense
Data will be invalid and the contents of Read Log Ext, page 10h is not guaranteed
About Status Register bit 1(Sense Data Available)
The Sense Data Available bit shall be set to one if:
a) IDENTIFY DEVICE data word 119 bit 6 is set to one;
b) IDENTIFY DEVICE data word 120 bit 6 is set to one; and
c) Device has sense data to report after processing any command.
The Error bit and the Sense Data Available may both be set to one.
Bit 1 of the Status Register is obsolete if:
a) IDENTIFY DEVICE data word 119 bit 6 is cleared to zero; or
b) IDENTIFY DEVICE data word 120 bit 6 is cleared to zero.
HGST Hard Disk Drive Specification
225
Sanitize Device Feature Set (B4h)
Crypto Scramble Ext Command (feature: 0011h) (data encryption
model only)
Table 177 Crypto Scramble Ext Command (B4h/0011h) (data encryption model only)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
0011h
Bit Description
15:5 Reserved
4 FAILURE MODE bit
3:0 Reserved
Bit Description
47:32 Reserved
31:0 shall be set to 4372_7970h (DWord)
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 B4h
Normal Outputs
Field
ERROR
COUNT
LBA
DEVICE
STATUS
Description
Reserved
Bit Description
15 SANITIZE OPERATION COMPLETED WITHOUT ERROR bit – the contents of the
Sanitize
Operation Completed Without Error value
14 1 = the device is in the SD2: Sanitize Operation In Progress state
0 = the device is not in the SD2: Sanitize Operation In Progress state
13 1 = the device is in the SD1: Sanitize Frozen state
0 = the device is not in the SD1: Sanitize Frozen state
12 SANITIZE ANTIFREEZE bit – the contents of the Sanitize Antifreeze value
11:0 Reserved
Bit Description
47:16 Reserved
15:0 SANITIZE PROGRESS INDICATION field – This value indicates the fraction complete
of the sanitize operation while the device is in the SD2: Sanitize Operation In Progress state.
The value is a numerator that has 65536 (1_0000h) as its denominator. This value shall be
set to FFFFh if the device is not in the SD2: Sanitize
Operation In Progress state (i.e., a sanitize operation is not in process).
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
Bit Description
7:6 Transport Dependent.
5 DEVICE FAULT bit
4 N/A
3 Transport Dependent
HGST Hard Disk Drive Specification
226
2 N/A
1 SENSE DATA AVAILABLE bit
0 ERROR bit
Error Outputs
Field
ERROR
COUNT
LBA
DEVICE
STATUS
Description
Bit Description
7:3 Reserved
2 ABORT bit
1:0 Reserved
Reserved.
Bit Description
47:8 Reserved
7:0 SANITIZE DEVICE ERROR REASON field
Value Description
00h Reason not reported or sanitize device command failed
01h Sanitize Command Unsuccessful – The sanitize operation completed with physical
sectors that are available to be allocated for user data that were not successfully sanitized.
02h Invalid or unsupported value in the Sanitize Device FEATURE field
03h Device is in the SD1: Sanitize Frozen state
04h SANITIZE FREEZE LOCK command failed as a result of the SanitizeAntifreeze Lock
value being set to one
05h..FFh Reserved
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
Bit Description
7:6 Transport Dependent
5 DEVICE FAULT bit
4 N/A
3 Transport Dependent
2 N/A
1 SENSE DATA AVAILABLE bit
0 ERROR bit
The CRYPTO SCRAMBLE EXT command is only supported by data encryption model.
The CRYPTO SCRAMBLE EXT command starts a crypto scramble operation (i.e., a sanitize operation that
changes the internal encryption keys that are used for user data) causing the user data to become irretrievable.
After a successful crypto scramble operation, the contents of the user data area may be indeterminate.
The CRYPTO SCRAMBLE EXT command only is processed if:
a) the Sanitize Device feature set is supported
b) the device is in the SD0: Sanitize Idle state, the SD3: Sanitize Operation Failed state, or the SD4: Sanitize
Operation Succeeded state.
The FAILURE MODE bit
1: the device may exit the SD3: Sanitize Operation Failed state with successful processing of a SANITIZE
STATUS EXT command.
0: the SD3: Sanitize Operation Failed state returns command aborted for sanitize operations with the FAILURE
MODE bit set to one until the device returns to the SD1: Sanitize Idle state.
Sanitize Operation Completed Without Error.
1: the Sanitize Device state machine enters SD4: Sanitize Operation Succeeded.
0: the Sanitize Device state machine enters SD2: Sanitize Operation. The value of this bit is maintained across
power-on resets.
The Sanitize Progress Indication (15:8).
Progress indicator for the current sanitizes operation when the Sanitize Device state machine is in the SD2:
Sanitize Operation state. This value is FFFFh if the Sanitize Device state machine is not in the
HGST Hard Disk Drive Specification
227
SD2: Sanitize Operation state (i.e., a sanitize operation is not in process). The returned value is a numerator that
has 65,536 (10000h) as its denominator
Error Output
The ABORT bit is set to one if a SANITIZE DEVICE FREEZE LOCK EXT command has successfully completed
since the last power-on reset.
The device returns command aborted if:
a) the device is in the SD3:Sanitize Operation Failed state
b) the completed sanitize command (i.e., CRYPTO SCRAMBLE EXT, or OVERWRITE EXT) specified the
FAILURE MODE bit cleared to zero; and
c) a CRYPTO SCRAMPLE EXT command with the FAILURE MODE bit set to one is received.
Sanitize Device Error (7:0)
00h Reason not reported
01h Sanitize Command Unsuccessful. The sanitize operation completed with physical sectors that are available to
be allocated for user data that were not successfully sanitized.
02h Invalid or unsupported Sanitize Device Feature Field Value
03h Device is in the Sanitize Frozen state
04h..FFh Reserved
HGST Hard Disk Drive Specification
228
Overwrite Ext Command (feature: 0014h)
Table 178 Overwrite Ext Command (B4h/0014h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
0014h
Bit Description
15:8 Reserved
7 INVERT PATTERN BETWEEN OVERWRITE PASSES bit
6:5 Reserved
4 FAILURE MODE bit
3:0 OVERWRITE PASS COUNT field
Bit Description
47:32 shall be set to 4F57h (word)
31:0 OVERWRITE PATTERN field (DWord)
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 B4h
Normal Outputs
See Normal Outputs in 12.33.1 Crypto Scramble Ext Command (feature: 0011h) (data encryption model only)
Error Outputs
See Error Outputs in 12.33.1 Crypto Scramble Ext Command (feature: 0011h) (data encryption model only)
The OVERWRITE EXT command starts an overwrite operation (i.e., a sanitize operation on the internal media that
stores user data) which fills the user data area with a four byte pattern specified in the LBA field of the command.
Parameters for the OVERWRITE EXT command include a count for multiple overwrites and the option to invert the
four byte pattern between consecutive overwrite passes.
After the overwrite operation has been successfully applied, affected data blocks are readable without error.
The OVERWRITE EXT command only is processed if:
a) the Sanitize Device feature set is supported
b) the device is in the SD0: Sanitize Idle state, the SD3: Sanitize Operation Failed state, or the SD4: Sanitize
Operation Succeeded state.
Error Output
The ABORT bit is set to one if a SANITIZE DEVICE FREEZE LOCK EXT command has successfully completed
since the last power-on reset.
The device returns command aborted if:
a) the device is in the SD3:Sanitize Operation Failed state
b) the completed sanitize command (i.e., CRYPTO SCRAMBLE EXT (data encryption model only), or
OVERWRITE EXT) contained the FAILURE MODE bit cleared to zero
c) an OVERWRITE EXT command with the FAILURE MODE bit set to one is received.
HGST Hard Disk Drive Specification
229
Sanitize Freeze Lock Ext Command (feature: 0020h)
Table 179 Sanitize Freeze Lock Ext Command (B4h/0020h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
0020h
Reserved
Bit Description
47:32 Reserved
31:0 shall be set to 4672_4C6Bh (DWord)
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 B4h
Normal Outputs
See Normal Outputs in 12.33.1 Crypto Scramble Ext Command (feature: 0011h) (data encryption model only)
Error Outputs
See Error Outputs in 12.33.1 Crypto Scramble Ext Command (feature: 0011h) (data encryption model only)
The SANITIZE FREEZE LOCK EXT command sets the Sanitize Device state machine to the SD1: Sanitize Frozen
state. After command completion all sanitize commands other than SANITIZE STATUS EXT command returns
command aborted. The Sanitize Device state machine transitions from the SD1: Sanitize Frozen state to the SD0:
Sanitize Idle state after a power-on reset or hardware reset.
HGST Hard Disk Drive Specification
230
Sanitize Status Ext Command (feature: 0000h)
Table 180 Sanitize Status Ext Command (B4h/0000h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
0000h
Reserved
Bit Description
47:32 Reserved
31:0 shall be set to 4672_4C6Bh (DWord)
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 B4h
Normal Outputs
See Normal Outputs in 12.33.1 Crypto Scramble Ext Command (feature: 0011h) (data encryption model only)
Error Outputs
See Error Outputs in 12.33.1 Crypto Scramble Ext Command (feature: 0011h) (data encryption model only)
The SANITIZE STATUS EXT command returns information about current or previously completed sanitizes
operations. This includes:
a) progress indication on a current sanitize operation
b) whether a previous sanitize operation completed successfully or unsuccessfully
c) if an unsupported sanitize device command was received.
The SANITIZE STATUS EXT command is valid in every state of the Sanitize Device state machine.
Error Output
After the sanitize operation has completed, if any physical sector that is available to be allocated for user data was
not successfully sanitized, then this command returns the ABORT bit set to one.
HGST Hard Disk Drive Specification
231
Security Disable Password (F6h)
Table 181 Security Disable Password Command (F6h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
N/A
N/A
N/A
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 F6h
Normal Outputs
See Normal Outputs in 12.6 Flush Cache (E7h)
Error Outputs
See Error Outputs in 12.3 Download Microcode (92h)
The Security Disable Password command disables the security mode feature (device lock function).
The Security Disable Password command requests a transfer of a single sector of data from the host including
information specified in 12.30 Recalibrate (1xh) on the page 220. Then the device checks the transferred password.
If the User Password or Master Password matches the given password, the device disables the security mode
feature (device lock function). This command does not change the Master Password which may be re-activated
later by setting User Password. This command should be executed in device unlock mode.
When security is disabled and the Identifier bit is set to User, then the device shall return command aborted.
Table 182 Password Information for Security Disable Password command
Word
00
01-16
17-255
Description
Control word
bit 0
: Identifier (1-Master, 0-User)
bit 1-15
: Reserved
Password
(32 bytes)
Reserved
The device will compare the password sent from this host with that specified in the control word.
Identifier
Zero indicates that the device should check the supplied password against the user
password stored internally. One indicates that the device should check the given password
against the master password stored internally.
HGST Hard Disk Drive Specification
232
Security Erase Prepare (F3h)
Table 183 Security Erase Prepare Command (F3h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
N/A
N/A
N/A
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 F3h
Normal Outputs
See Normal Outputs in 12.6 Flush Cache (E7h)
Error Outputs
See Error Outputs in 12.11 Idle (E3h / 97h)
The Security Erase Prepare Command must be issued immediately before the Security Erase Unit Command to
enable device erasing and unlocking.
The Security Erase Prepare Command must be issued immediately before the Format Unit Command. This
command is to prevent accidental erasure of the device.
This command does not request to transfer data.
HGST Hard Disk Drive Specification
233
Security Erase Unit (F4h)
Table 184 Security Erase Unit Command (F4h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
N/A
N/A
N/A
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 F4h
Normal Outputs
See Normal Outputs in 12.6 Flush Cache (E7h)
Error Outputs
See Error Outputs in 12.3 Download Microcode (92h)
The Security Erase Unit command initializes all user data sectors, and then disables the device lock function.
Note that the Security Erase Unit command initializes from LBA 0 to Native MAX LBA. Host MAX LBA set by
Initialize Drive Parameter, Device Configuration Overlay, or Set MAX Address command is ignored. So the
protected area by Set MAX Address command is also initialized.
This command requests to transfer a single sector data from the host including information specified in Table 185
Erase Unit Information on the page 234.
When security is disabled and the Identifier bit is set to User, then the device shall return command aborted.
If the password does not match, then the device rejects the command with an Aborted error.
Table 185 Erase Unit Information
Word
00
01-16
17-255
Identifier
Description
Control word
bit 0
bit 1
bit 2-15
Password
Reserved
: Identifier (1-Master, 0-User)
: Erase mode (1- Enhanced, 0- Normal)
Enhanced mode is not supported
: Reserved
(32 bytes)
Zero indicates that the device should check the supplied password against the user password stored
internally. One indicates that the device should check the given password against the master
password stored internally.
The Security Erase Unit command erases all user data and disables the security mode feature (device lock function).
So after completing this command, all user data will be initialized to zero with write operation. At this time, it is not
verified with read operation whether the sector of data is initialized correctly. Also, the defective sector information
and the reassigned sector information for the device are not updated. The security erase prepare command should
be completed immediately prior to the Security Erase Unit command. If the device receives a Security Erase Unit
command without a prior Security Erase Prepare command, the device aborts the security erase unit command.
HGST Hard Disk Drive Specification
234
This command disables the security mode feature (device lock function), however the master password is still
stored internally within the device and may be re-activated later when a new user password is set. If you execute
this command on disabling the security mode feature (device lock function), the password sent by the host is NOT
compared with the password stored in the device for both the Master Password and the User Password, and then
the device only erases all user data.
The execution time of this command is set in word 89 of Identify device information.
HGST Hard Disk Drive Specification
235
Security Freeze Lock (F5h)
Table 186 Security Freeze Lock Command (F5h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
N/A
N/A
N/A
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 F5h
Normal Outputs
See Normal Outputs in 12.6 Flush Cache (E7h)
Error Outputs
See Error Outputs in 12.11 Idle (E3h / 97h)
The Security Freeze Lock Command allows the device to enter frozen mode immediately.
After this command is completed, the command which updates Security Mode Feature (Device Lock Function) is
rejected.
Frozen mode is quit only by Power off.
The following commands are rejected when the device is in frozen mode. For detail, refer to Table 40 Command
table for device lock operation -1, Table 41 Command table for device lock operation -2 and Table 42 Command
table for device lock operation -3 on the page 71.




Security Set Password
Security Unlock
Security Disable Password
Security Erase Unit
HGST Hard Disk Drive Specification
236
Security Set Password (F1h)
Table 187 Security Set Password Command (F1h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Description
N/A
N/A
N/A
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 F1h
Command
Normal Outputs
See Normal Outputs in 12.6 Flush Cache (E7h)
Error Outputs
See Error Outputs in 12.3 Download Microcode (92h)
The Security Set Password command enables security mode feature (device lock function), and sets the master
password or the user password.
The security mode feature (device lock function) is enabled by this command, and the device is not locked
immediately. The device is locked after next power on reset. When the MASTER password is set by this command,
the master password is registered internally, but the device is NOT locked after next power on reset or hard reset.
This command requests a transfer of a single sector of data from the host including the information specified in
Table 187 Security Set Password Command (F1h) on the page 237.
The data transferred controls the function of this command.
Table 188 Security Set Password Information
Word
00
01-16
17
18-255
Description
Control word
bit 0
: Identifier (1-Master, 0-User)
bit 1-7
: Reserved
bit 8
: Security level (1-Maximum, 0-High)
bit 9-15
: Reserved
Password
(32 byte)
Master Password Revision Code (valid if Word 0 bit 0 = 1)
Reserved
Identifier
Zero indicates that the device regards Password as User Password. One indicates that
device regards Password as Master Password.
Security Level
Zero indicates High level, one indicates Maximum level. If the host sets High level and the
password is forgotten, then the Master Password can be used to unlock the device. If the
host sets Maximum level and the user password is forgotten, only a Security Erase
Prepare/Security Unit command can unlock the device and all data will be lost.
Password
Master Password
Revision Code
The text of the password – all 32 bytes are always significant.
The revision code field is returned in the IDENTIFY DEVICE word 92.
The valid revision codes are 0001h through FFFEh. The device accepts the command with a
value of 0000h or FFFFh in this field, but does not change Master Password Revision code.
HGST Hard Disk Drive Specification
237
The setting of the Identifier and Security level bits interact as follows.
Identifier=User / Security level = High
The password supplied with the command will be saved as the new user password. The security mode feature
(lock function) will be enabled from the next power on. The file may then be unlocked by either the user password
or the previously set master password.
Identifier=Master / Security level = High
This combination will set a master password but will NOT enable the security mode feature (lock function).
Identifier=User / Security level = Maximum
The password supplied with the command will be saved as the new user password. The security mode feature
(lock function) will be enabled from the next power on. The file may then be unlocked by only the user password.
The master password previously set is still stored in the file but may NOT be used to unlock the device.
Identifier=Master / Security level = Maximum
This combination will set a master password but will NOT enable the security mode feature (lock function).
HGST Hard Disk Drive Specification
238
Security Unlock (F2h)
Table 189 Security Unlock Command (F2h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
N/A
N/A
N/A
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 F2h
Normal Outputs
See Normal Outputs in 12.6 Flush Cache (E7h)
Error Outputs
See Error Outputs in 12.3 Download Microcode (92h)
This command unlocks the password and causes the device to enter device unlock mode. If power on reset or hard
reset is done without executing the Security Disable Password command after this command is completed, the
device will be in device lock mode. The password has not been changed yet.
The Security Unlock command requests to transfer a single sector of data from the host including information
specified in Table 189 Security Unlock Command (F2h) on the page 239.
If the Identifier bit is set to master and the file is in high security mode then the password supplied will be compared
with the stored master password. If the file is in maximum security mode then the security unlock will be rejected.
If the Identifier bit is set to user, then the file compares the supplied password with the stored user password.
If the password compare fails, then the device returns an abort error to the host and decrements the unlock attempt
counter. This counter is initially set to 5 and is decremented for each password mismatch.
When security is disabled and the Identifier bit is set to User, then the device shall return command aborted.
When this counter reaches zero then all password protected commands are rejected until a hard reset or a power
off.
Table 190 Security Unlock Information
Word
00
01-16
17-255
Identifier
Description
Control word
bit 0
bit 1-15
Password
Reserved
: Identifier (1-Master, 0-User)
: Reserved
(32 bytes)
Zero indicates that device regards Password as User Password. One indicates that device regards
Password as Master Password.
The user can detect if the attempt to unlock the device has failed due to a mismatched password as this is the only
reason that an abort error will be returned by the file AFTER the password information has been sent to the device.
If an abort error is returned by the device BEFORE the password data has been sent to the file then another
problem exists.
HGST Hard Disk Drive Specification
239
Seek (7xh)
Table 191 Seek Command (7xh)
Command Block Normal Outputs
Command Block Command Input
Register
7
6
5
4
3
2
1
0
Register
7
6
5
4
3
2
1
0
Data
-
-
-
-
-
-
-
-
Data
-
-
-
-
-
-
-
-
Feature
-
-
-
-
-
-
-
-
Error
Sector Count
-
-
-
-
-
-
-
-
Sector Count
-
-
-
-
-
-
-
-
Sector Number
V
V
V
V
V
V
V
V
Sector Number
V
V
V
V
V
V
V
V
Cylinder Low
V
V
V
V
V
V
V
V
Cylinder Low
V
V
V
V
V
V
V
V
Cylinder High
V
V
V
V
V
V
V
V
Cylinder High
V
V
V
V
V
V
V
V
Device/Head
1
L
1
D
H
H
H
H
Device/Head
-
-
-
-
H
H
H
H
Command
0
1
1
1
-
-
-
-
Status
…See Below…
…See Below…
Error Register
7
6
CRC UNC
0
0
Status Register
5
4
3
2
0
IDN
0
ABT
0
V
0
V
1
0
T0N AMN
0
0
7
6
BSY RDY
0
V
5
DF
4
3
2
1
DSC DRQ COR IDX
0
V
-
0
-
0
ERR
V
The Seek command initiates a seek to the designated track and selects the designated head. The device need not
be formatted for a seek to execute properly.
Output Parameters To The Device
Sector Number
In LBA mode, this register specifies LBA address bits 0 – 7 for seek. (L=1)
Cylinder High/Low
The cylinder number of the seek.
In LBA mode, this register specifies LBA address bits 8 – 15 (Low), 16 – 23 (High) for seek.
(L=1)
H
The head number of the seek.
In LBA mode, this register specifies LBA address bits 24 – 27 for seek. (L=1)
Input Parameters From The Device
Sector Number
In LBA mode, this register contains current LBA bits 0 – 7. (L=1)
Cylinder High/Low
In LBA mode, this register contains current LBA bits 8 – 15 (Low), 16 – 23 (High). (L=1)
H
In LBA mode, this register contains current LBA bits 24 – 27. (L=1)
HGST Hard Disk Drive Specification
240
SEND FPDMA QUEUED (64h)
Table 192 SEND FPDMA QUEUED
Command Input
Field
FEATURE
COUNT
LBA
AUXILIARY
DEVICE
Command
Description
The number of 512-byte blocks of data to be transferred. A
value of 0000h indicates that 65 536
512-byte blocks of data are to be transferred
Bit Description
15:14 PRIO field
13 Reserved
12:8 SUBCOMMAND field
7:3 NCQ TAG field
2:0 Reserved
Subcommand specific
Subcommand specific
Bit Description
7 Reserved
6 Shall be set to one
5 Reserved
4 Shall be cleared to zero
3:0 Reserved
7:0 64h
SEND FPDMA QUEUED command is not supported. When the drive receives SEND FPDMA QUEUED
command from the host, the drive will abort the command.
HGST Hard Disk Drive Specification
241
Sense Condition (F0h : Vendor specific)
Table 193 Sense Condition command (F0h)
Command Block Normal Outputs
Command Block Command Input
Register
7
6
5
4
3
2
1
0
Register
7
6
5
4
3
2
1
0
Data
-
-
-
-
-
-
-
-
Data
-
-
-
-
-
-
-
-
Feature
0
0
0
0
0
0
0
1
Error
Sector Count
-
-
-
-
-
-
-
-
Sector Count
V
V
V
V
V
V
V
V
Sector Number
-
-
-
-
-
-
-
-
Sector Number
-
-
-
-
-
-
-
-
Cylinder Low
-
-
-
-
-
-
-
-
Cylinder Low
-
-
-
-
-
-
-
-
Cylinder High
-
-
-
-
-
-
-
-
Cylinder High
-
-
-
-
-
-
-
-
Device/Head
-
-
-
-
-
-
-
-
Device/Head
-
-
-
-
-
-
-
-
Command
1
1
1
1
0
0
0
0
Status
…See Below…
…See Below…
Error Register
7
6
CRC UNC
0
0
Status Register
5
4
3
2
0
IDN
0
ABT
0
0
0
V
1
0
T0N AMN
0
0
7
6
BSY RDY
V
V
5
DF
4
3
2
1
DSC DRQ COR IDX
V
-
V
-
0
0
ERR
V
The Sense Condition command is used to sense temperature in a device.
This command is executable even if a device is in Power up in standby mode.
Output Parameters To The Device
Feature
The Feature register must be set to 01h. All other value is rejected with setting ABORT bit in
status register.
Input Parameters From The Device
Sector Count
The Sector Count register contains result value.
Value
Description
00h
01h-FEh
FFh
Temperature is equal to or lower than -20 deg C
Temperature is (Value / 2 - 20) deg C
Temperature is higher than 107 deg C
HGST Hard Disk Drive Specification
242
Set Features (EFh)
Table 194 Set Features Command (EFh)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
SET FEATURES SUBCOMMAND field
Subcommand specific
Subcommand specific
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 EFh
Normal Outputs
See Normal Outputs in 12.6 Flush Cache (E7h)
Error Outputs
See Error Outputs in 12.11 Idle (E3h / 97h)
The Set Feature command is to establish the following parameters which affect the execution of certain features
as shown in below table.
ABT will be set to 1 in the Error Register if the Feature register contains any undefined values.
Subcommands code
Feature
Destination code for this command
02H
Enable write cache
03H
Set transfer mode based on value in sector count register
05H
Enable Advanced Power Management
06H
Enable Power-up in Standby feature set
07H
Power-Up In Standby feature set device spin-up
10H
Enable use of Serial ATA feature
43H
Set Maximum Host Interface Sector Time
4Ah
Extended Power Conditions
55H
Disable read look-ahead feature
66H
Disable reverting to power on defaults
82H
Disable write cache
85H
Disable Advanced Power Management
86H
Disable Power-up in Standby mode
90H
Disable use of Serial ATA feature
AAH
Enable read look-ahead feature
C3H
Enable/Disable the Sense Data Reporting feature set
CCH
Enable reverting to power on defaults
Note.
After power on reset or hard reset, the device is set to the following features as default.
Write cache
Read look-ahead
Reverting to power on defaults
Release interrupt
: Enable
: Enable
: Disable
: Disable
HGST Hard Disk Drive Specification
243
Set Transfer Mode
When Feature register is 03h (=Set Transfer Mode), the Sector Count Register specifies the transfer mechanism.
The upper 5 bits define the type of transfer and the low order 3 bits encode the mode value.
PIO Default Transfer Mode
PIO Default Transfer Mode
Disable IORDY
PIO Flow Control Transfer Mode x
Multiword DMA mode x
Ultra DMA mode x
00000
00000
000
001
00001
00100
01000
nnn
nnn
nnn
(nnn=000,001,010,011,100)
(nnn=000,001,010)
(nnn=000,001,010,011,100,101,110)
Write Cache
If the number of auto reassigned sector reaches the device’s reassignment capacity, the write cache function will
be automatically disabled. Although the device still accepts the Set Features command with Feature register = 02h
without error, but the write cache function will remains disabled. For current write cache function status, please
refer to Identify Device Information (word 85 or 129) by Identify Device command.
Serial ATA Feature
When the Feature register is set to 10h or 90h, the value set to the Sector Count register specifies the specific
Serial ATA feature to enable or disable.
Sector Count Value
Description
01h
Non-zero buffer offset in DMA Setup FIS
02h
DMA Setup FIS Auto-Activate optimization
03h
Device-initiated interface power state transitions
04h
Guaranteed In-Order Data Delivery
06h
Software Settings Preservation
HGST Hard Disk Drive Specification
244
Advanced Power Management
When the value in the Feature register is 05h (=Enable Advanced Power Management), the Sector Count Register
specifies the Advanced Power Management level.
FFh ---
Aborted
C0 – FEh --80 – BFh ---
The deepest power saving mode is Idle mode
(the same as Disable Advanced Power Management)
The deepest power saving mode is Low power Idle mode
01 – 7Fh ---
The deepest power saving mode is Low RPM Idle mode
00h ---
Aborted
The idle time to Low power idle mode and Low RPM idle mode vary according to the value in Sector Count register
as follows:
When Low power idle mode is the deepest power saving mode,
Y1=(x-80h) * 5+120 [sec]
(120<= Y1<=435)
Y2=N/A(the device does not go to Low RPM idle mode)
When Low RPM idle mode is the deepest power saving mode and the value in Sector Count register is between
40h and 7Fh,
120<=Y1<=435 [sec]
(default: 120 [sec])
Y2=(x-40h) * 60 + 600[sec]
(600<=Y2<=4380)
When Low RPM idle mode is the deepest power saving mode and the value in Sector Count register is between
01h and 3Fh,
120<=Y1<=435 [sec]
(default: 120 [sec])
Y2=600 [sec]
Where x is the value in Sector Count register, y1 is the idle time to Low Power Idle mode, and y2 is the idle time to
Low RPM idle mode.
If Low power idle mode has already been enabled (i.e., y1 has been set) before Low RPM idle mode is enabled, y1
is preserved. If Low power idle mode is disabled (i.e., y1 has not been set yet), y1 becomes 120[sec] when Low
RPM idle mode is enabled.
Enabled power saving mode and idle time (y1 and y2) are preserved until Advanced Power Management is disabled,
the deepest power saving mode becomes Idle mode, or new time is set. They are initialized with a hard/soft reset
unless Reverting to power on defaults is disabled and the device receives a soft reset.
Set Maximum Host Interface Sector Time
Sector Count
Typical PIO Mode Host Interface Sector Time (7:0)
LBA Low
Typical PIO Mode Host Interface Sector Time (15:8)
LBA Mid
Typical DMA Mode Host Interface Sector Time (7:0)
LBA High
Typical DMA Mode Host Interface Sector Time (15:8)
Subcommand code 43h allows the host to inform the device of a host interface rate limitation. The typical Host
Interface Sector Times have the same units as Identify Device word 96 for DMA and word 104 for PIO. A value of
zero indicates that the host interface shall be capable of transferring data at the maximum rate allowed by the
selected transfer mode. The Typical PIO Mode Host Interface Sector Time includes the host’s interrupt service
time.
Enable/Disable the Sense Data Reporting feature set
Sense Data Reporting feature set is always enbled for the device. If this subcommand (code C3h) has the count
field bit 0 cleared to zero, then the device returns command completion with error.
HGST Hard Disk Drive Specification
245
Extended Power Conditions (EPC) feature
Restore Power Condition Settings subcommand
Table 195 Restore Power Condition Settings subcommand
Command Block Normal Outputs
Command Block Command Input
Register
7
6
5
4
3
2
1
0
Register
7
6
5
4
3
2
1
0
Data
-
-
-
-
-
-
-
-
Data
-
-
-
-
-
-
-
-
Feature
0
1
0
0
1
0
1
0
Error
Sector Count
V
V
V
V
V
V
V
V
Sector Count
-
-
-
-
-
-
-
-
Sector Number
-
V
-
V
0
0
0
0
Sector Number
-
-
-
-
-
-
-
-
Cylinder Low
-
-
-
-
-
-
-
-
Cylinder Low
-
-
-
-
-
-
-
-
Cylinder High
-
-
-
-
-
-
-
-
Cylinder High
-
-
-
-
-
-
-
-
Device/Head
1
-
1
D
-
-
-
-
Device/Head
-
-
-
-
-
-
-
-
Command
1
1
1
0
1
1
1
1
Status
…See Below…
…See Below…
Error Register
7
6
CRC UNC
0
0
Status Register
5
4
3
2
0
IDN
0
ABT
0
0
0
V
1
0
T0N AMN
0
0
7
6
BSY RDY
0
V
5
DF
0
4
3
2
DSC DRQ COR
-
-
0
1
0
IDX
ERR
-
V
On successful completion of this EPC subcommand, the device updates the Power Conditions log for the selected
Power Condition ID as follows:
1) if Default is set to one, then:
A) copy the Default Timer Settings field to the Current Timer Settings field; and
B) copy the Default Timer Enabled field to the Current Timer Enabled field;
2) if Default is cleared to zero, then:
A) copy the Saved Timer Settings field to the Current Timer Settings field; and
B) copy the Saved Timer Enabled field to the Current Timer Enabled field;
and
3) if Save is set to one and the power condition is savable, then:
A) copy the Current Timer Settings field to the Saved Timer Settings field;
HGST Hard Disk Drive Specification
246
Output Parameters To The Device
Sector Count
Sector Number
Power Condition ID (See Table 77
bit
7
6
5
4
3-0
Power Condition IDs)
Description
Reserved
Default
1
Restore from Default settings
0
Restore from Saved settings
Reserved
Save
1
Save settings on completion
0
Do not save settings on completion
0h Restore Power Condition subcommand (See Table 76
Power Conditions Subcommands)
Extended
Error Output
If any selected Power Condition is not supported, or is not changeable, or if Extended Power Condition feature set
is disable, or if Save is set to one and any selected power condition is not savable, then the device returns command
aborted .
HGST Hard Disk Drive Specification
247
Go To Power Condition subcommand
Table 196 Go To Power Condition subcommand
Command Block Normal Outputs
Command Block Command Input
Register
7
6
5
4
3
2
1
0
Register
7
6
5
4
3
2
1
0
Data
-
-
-
-
-
-
-
-
Data
-
-
-
-
-
-
-
-
Feature
0
1
0
0
1
0
1
0
Error
Sector Count
V
V
V
V
V
V
V
V
Sector Count
-
-
-
-
-
-
-
-
Sector Number
-
-
-
-
0
0
0
1
Sector Number
-
-
-
-
-
-
-
-
Cylinder Low
-
-
-
-
-
-
-
-
Cylinder Low
-
-
-
-
-
-
-
-
Cylinder High
-
-
-
-
-
-
-
-
Cylinder High
-
-
-
-
-
-
-
-
Device/Head
1
-
1
D
-
-
-
-
Device/Head
-
-
-
-
-
-
-
-
Command
1
1
1
0
1
1
1
1
Status
…See Below…
…See Below…
Error Register
7
6
CRC UNC
0
0
Status Register
5
4
3
2
0
IDN
0
ABT
0
0
0
V
1
0
T0N AMN
0
0
7
6
BSY RDY
0
V
5
DF
0
4
3
2
DSC DRQ COR
-
-
0
1
0
IDX
ERR
-
V
On successful completion of this EPC subcommand, the device:
1) stops all enabled EPC timers;
2) enters the selected EPC power condition after command completion of the SET FEATURES command without
having to wait for any timers to expire; and
3) the device remains in the selected power condition until the device processes the next command or reset.
Output Parameters To The Device
Sector Count
Sector Number
Power Condition ID (See Table 77
bit
7-4
3-0
Power Condition IDs)
Description
Reserved
1h Go To Power Condition subcommand (See Table 76
Power Conditions Subcommands)
Extended
Error Output
If the Power condition ID is FFh, a reserved value, or is not supported, or if Extended Power Condition feature set
is disable, then the device returns command aborted .
HGST Hard Disk Drive Specification
248
Set Power Condition Timer subcommand
Table 197 Set Power Condition Timer subcommand
Command Block Normal Outputs
Command Block Command Input
Register
7
6
5
4
3
2
1
0
Register
7
6
5
4
3
2
1
0
Data
-
-
-
-
-
-
-
-
Data
-
-
-
-
-
-
-
-
Feature
0
1
0
0
1
0
1
0
Error
Sector Count
V
V
V
V
V
V
V
V
Sector Count
-
-
-
-
-
-
-
-
Sector Number
V
-
V
V
0
0
1
0
Sector Number
-
-
-
-
-
-
-
-
Cylinder Low
V
V
V
V
V
V
V
V
Cylinder Low
-
-
-
-
-
-
-
-
Cylinder High
V
V
V
V
V
V
V
V
Cylinder High
-
-
-
-
-
-
-
-
Device/Head
1
-
1
D
-
-
-
-
Device/Head
-
-
-
-
-
-
-
-
Command
1
1
1
0
1
1
1
1
Status
…See Below…
…See Below…
Error Register
7
6
CRC UNC
0
0
Status Register
5
4
3
2
0
IDN
0
ABT
0
0
0
V
1
0
T0N AMN
0
0
7
6
BSY RDY
0
V
5
DF
0
4
3
2
DSC DRQ COR
-
-
0
1
0
IDX
ERR
-
V
On successful completion of this EPC subcommand, the device updates the Power Conditions log for the selected
and supported Power Condition as follows:
1) copy the Timer field to the Current Timer Settings field;
2) if Enable is set to one and the Timer field is non-zero, then enable the Current Timer;
3) if Enable is set to one and the Timer field is zero, then disable the Current Timer;
4) if Enable is cleared to zero, then disable the Current Timer; and
5) if Save is set to one and the Power Condition settings are savable, then:
A) copy the Current Timer Settings field to the Saved Timer Settings field; and
B) copy the Current Timer Enabled field to the Saved Timer Enabled field.
HGST Hard Disk Drive Specification
249
Output Parameters To The Device
Sector Count
Sector Number
Power Condition ID (See Table 77
bit
7
6
5
4
Description
Timer Units
If the Timer Units bit is cleared to zero, then the Timer (Cylinder High and Cylinder
Low bit 15-0) are specified in units of 100 milliseconds. If the Timer Units bit is set to
one, then the Timer (Cylinder High and Cylinder Low bit 15-0) are specified in units
of 1 minute.
Reserved
Enable
1
Enable the selected power condition
0
Disable the selected power condition
Save
1
Save settings on completion
0
3-0
Cylinder Low
Cylinder High
15-0
Power Condition IDs)
Do not save settings on completion
2h Set Power Condition Timer subcommand (See Table 76 Extended Power
Conditions Subcommands)
If the new timer value is greater than the maximum value setting, then the device set
the value to the maximum setting. If the new timer value is less than the minimum
setting, then the device set the value to the minimum setting.
(Cylinder High and Cylinder Low bit 15-0)
Error Output
The device returns command aborted If:
a) the new timer value is:
A) less than the maximum setting.
B) greater than the minimum setting.
C) not supported by the device.
b) the Extended Power Condition feature set is disabling.
c) the power condition is not changeable or not supported.
d) the Save bit is set to one and the selected power condition is not savable.
e) the new time value is greater than the maximum setting and the device did not set the timer to the maximum
setting.
f) the new time value is less than the minimum setting and the device did not set the timer to the minimum setting.
If command aborted is returned, then the device makes no modifications to the power condition settings.
Maximum Setting is 3BFFC4h (100ms unit). Minimum Setting is zero.
HGST Hard Disk Drive Specification
250
Set Power Condition State subcommand
Table 198 Set Power Condition State subcommand
Command Block Normal Outputs
Command Block Command Input
Register
7
6
5
4
3
2
1
0
Register
7
6
5
4
3
2
1
0
Data
-
-
-
-
-
-
-
-
Data
-
-
-
-
-
-
-
-
Feature
0
1
0
0
1
0
1
0
Error
Sector Count
V
V
V
V
V
V
V
V
Sector Count
-
-
-
-
-
-
-
-
Sector Number
-
-
V
V
0
0
1
1
Sector Number
-
-
-
-
-
-
-
-
Cylinder Low
-
-
-
-
-
-
-
-
Cylinder Low
-
-
-
-
-
-
-
-
Cylinder High
-
-
-
-
-
-
-
-
Cylinder High
-
-
-
-
-
-
-
-
Device/Head
1
-
1
D
-
-
-
-
Device/Head
-
-
-
-
-
-
-
-
Command
1
1
1
0
1
1
1
1
Status
…See Below…
…See Below…
Error Register
7
6
CRC UNC
0
0
Status Register
5
4
3
2
0
IDN
0
ABT
0
0
0
V
1
0
T0N AMN
0
0
7
6
BSY RDY
0
V
5
DF
4
3
2
DSC DRQ COR
0
-
-
0
1
0
IDX
ERR
-
V
On successful completion of this EPC subcommand, the device updates the Power Conditions log for the Power
Condition as follows:
1) If the Enable bit is set to one, then enable the Current Timer; otherwise disable the Current Timer; and
2) If the Save bit is set to one, then copy the Current Timer Enabled field to the Saved Timer Enabled field.
Output Parameters To The Device
Sector Count
Sector Number
Power Condition ID (See Table 77
bit
7-6
5
4
3-0
Power Condition IDs)
Description
Reserved
Enable
1
Enable the selected power condition
0
Disable the selected power condition
Save
1
Save settings on completion
0
Do not save settings on completion
3h Set Power Condition State subcommand (See Table 76
Power Conditions Subcommands)
Extended
Error Output
If the Power Condition is not changeable, or not supported, or if Extended Power Conditions feature set is
disabling, then the device returns command aborted. If the Save bit is set to one and the selected power
condition is not savable, then the device returns command aborted. If command aborted is returned, then the
device makes no modifications to the power condition settings.
HGST Hard Disk Drive Specification
251
Enable the EPC feature subcommand
Table 199 Enable the EPC feature subcommand
Command Block Normal Outputs
Command Block Command Input
Register
7
6
5
4
3
2
1
0
Register
7
6
5
4
3
2
1
0
Data
-
-
-
-
-
-
-
-
Data
-
-
-
-
-
-
-
-
Feature
0
1
0
0
1
0
1
0
Error
Sector Count
-
-
-
-
-
-
-
-
Sector Count
-
-
-
-
-
-
-
-
Sector Number
-
-
-
-
0
1
0
0
Sector Number
-
-
-
-
-
-
-
-
Cylinder Low
-
-
-
-
-
-
-
-
Cylinder Low
-
-
-
-
-
-
-
-
Cylinder High
-
-
-
-
-
-
-
-
Cylinder High
-
-
-
-
-
-
-
-
Device/Head
1
-
1
D
-
-
-
-
Device/Head
-
-
-
-
-
-
-
-
Command
1
1
1
0
1
1
1
1
Status
…See Below…
…See Below…
Error Register
7
6
CRC UNC
0
0
Status Register
5
4
3
2
0
IDN
0
ABT
0
0
0
V
1
0
T0N AMN
0
0
7
6
BSY RDY
0
V
5
DF
0
4
3
2
DSC DRQ COR
-
-
0
1
0
IDX
ERR
-
V
On successful completion of this EPC subcommand, the device:
a) enables the EPC feature set;
b) sets IDENITFY DEVICE data word 120 bit 7 to one; and
c) disables the APM feature set.
d) if the Saved Timer Setting field is cleared to zero, then:
copy the value of the Default Timer Setting to the Current Timer Setting; and
e) if the Saved Timer Setting field is non-zero, then:
copy the value of the Saved Timer Setting to the Current Timer Setting; and
f) if the Current Timer Setting field is non-zero and the Current Timer Enabled is set to one,
then initialize and start the timer.
If the EPC feature set is enabled, then the EPC feature set remains enabled across all resets (i.e., power-on reset,
hardware reset, and software reset).
Output Parameters To The Device
Sector Number
bit
7-4
3-0
Description
Reserved
4h Enable the EPC feature subcommand (See Table 76
Conditions Subcommands)
Extended Power
Error Output
If the Extended Power Condition feature set is not supported then the device returns command aborted.
HGST Hard Disk Drive Specification
252
Disable the EPC feature subcommand
Table 200 Disable the EPC feature subcommand
Command Block Normal Outputs
Command Block Command Input
Register
7
6
5
4
3
2
1
0
Register
7
6
5
4
3
2
1
0
Data
-
-
-
-
-
-
-
-
Data
-
-
-
-
-
-
-
-
Feature
0
1
0
0
1
0
1
0
Error
Sector Count
-
-
-
-
-
-
-
-
Sector Count
-
-
-
-
-
-
-
-
Sector Number
-
-
-
-
0
1
0
1
Sector Number
-
-
-
-
-
-
-
-
Cylinder Low
-
-
-
-
-
-
-
-
Cylinder Low
-
-
-
-
-
-
-
-
Cylinder High
-
-
-
-
-
-
-
-
Cylinder High
-
-
-
-
-
-
-
-
Device/Head
1
-
1
D
-
-
-
-
Device/Head
-
-
-
-
-
-
-
-
Command
1
1
1
0
1
1
1
1
Status
…See Below…
…See Below…
Error Register
7
6
CRC UNC
0
0
Status Register
5
4
3
2
0
IDN
0
ABT
0
0
0
V
1
0
T0N AMN
0
0
7
6
BSY RDY
0
V
5
DF
0
4
3
2
DSC DRQ COR
-
-
0
1
0
IDX
ERR
-
V
On successful completion of this EPC subcommand, the device:
a) stop all EPC timers
b) disables the EPC feature set; and
c) clears IDENITFY DEVICE data word 120 bit 7 to zero.
If the EPC feature set is disabled, then the EPC feature set remains disabled across all resets (i.e., power-on reset,
hardware reset, and software reset).
Output Parameters To The Device
Sector Number
bit
7-4
3-0
Description
Reserved
5h Disable the EPC feature subcommand (See Table 76
Conditions Subcommands)
Extended Power
Error Output
If the Extended Power Condition feature set is disabling, not supported then the device returns command
aborted.
HGST Hard Disk Drive Specification
253
Set Max Address (F9h)
Table 201 Set Max ADDRESS (F9h)
Command Block Normal Outputs
Command Block Command Input
Register
7
6
5
4
3
2
1
0
Register
7
6
5
4
3
2
1
0
Data
-
-
-
-
-
-
-
-
Data
-
-
-
-
-
-
-
-
Feature
V
V
V
V
V
V
V
V
Error
Sector Count
-
-
-
-
-
-
-
B
Sector Count
-
-
-
-
-
-
-
-
Sector Number
V
V
V
V
V
V
V
V
Sector Number
V
V
V
V
V
V
V
V
Cylinder Low
V
V
V
V
V
V
V
V
Cylinder Low
V
V
V
V
V
V
V
V
Cylinder High
V
V
V
V
V
V
V
V
Cylinder High
V
V
V
V
V
V
V
V
Device/Head
1
L
1
D
H
H
H
H
Device/Head
-
-
-
-
H
H
H
H
Command
1
1
1
1
1
0
0
1
Status
…See Below…
…See Below…
Error Register
7
6
CRC UNC
0
0
Status Register
5
4
3
2
0
IDN
0
ABT
0
0
0
V
1
0
T0N AMN
0
0
7
6
BSY RDY
0
V
5
DF
0
4
3
2
DSC DRQ COR
-
-
0
1
0
IDX
ERR
-
V
The device regards as Set Max Address command, if this command is immediately preceded by a Read Native
Max Address command. The device receives this command without a prior Read Native Max Address command,
the device regards as Set Max security extensions command according to feature register value. Valid features
values are as follows:
1. 01h indicates Set Max Set Password command
2. 02h indicates Set Max Lock command
3. 03h indicates Set Max Unlock command
4. 04h indicates Set Max Freeze LOCK command
This command overwrites the maximum number of Address of HDD in a range of actual device capacity. Once
device receives this command, all accesses beyond that Address are rejected with setting ABORT bit in status
register. Identify device command returns the Address which is set via this command as a default value.
Device returns command aborted for a second non-volatile Set Max Address command until next power on or
hardware reset.
Device returns command aborted during Set Max Locked mode or Set Max Frozen mode.
After a successful command completion, Identify Device response words (61:60) shall reflect the maximum address
set with this command.
If the 48-bit Address feature set is supported, the value placed in Identify Device response words (103:100) shall
be the same as the value placed in words (61:60). However, if the device contains greater than 268,435,455 sectors,
the capacity addressable with 28-bit commands, and the address requested is 268,435,455, the max address shall
be changed to the native maximum address, the value placed in words (61:60) shall be 268,435,455 and the value
placed in words (103:100) shall be the native maximum address.
If a host protected area has been established by a Set Max Address Ext command, the device shall return command
aborted.
HGST Hard Disk Drive Specification
254
Output Parameters To The Device
B
Sector Number
Cylinder High/Low
H
Option bit for selection whether nonvolatile or volatile. B=0 is volatile condition. When
B=1, MAX Address which is set by Set Max Address command is preserved by POR.
When B=0, MAX Address which is set by Set Max Address command will be lost by
POR. B=1 is not valid when the device is in Address Offset mode.
In LBA mode, this register contains LBA bits 0 – 7 which is to be input.(L=1)
In CHS mode, this register is ignored. (L=0)
In LBA mode, this register contains LBA bits 8 – 15 (Low), 16 – 23 (High) which is to be
set. (L=1)
In CHS mode, this register contains cylinder number which is to be set.(L=0)
In LBA mode, this register contains LBA bits 24 – 27 which is to be set.(L=1)
In CHS mode, this register is ignored. (L=0)
Input Parameters From The Device
Sector Number
In LBA mode, this register contains max LBA bits 0 – 7 which is set.(L=1)
In CHS mode, this register contains max sector number (= 63). (L=0)
Cylinder High/Low
In LBA mode, this register contains max LBA bits 8 – 15 (Low), 16 – 23 (High) which is
set. (L=1)
In CHS mode, this register contains max cylinder number which is set. (L=0)
H
In LBA mode, this register contains max LBA bits 24 – 27 which is set. (L=1)
In CHS mode, this register contains max head number.(L=0)
HGST Hard Disk Drive Specification
255
Set Max Set Password (Feature = 01h)
Table 202 Set Max set Password
Command Block Normal Outputs
Command Block Command Input
Register
7
6
5
4
3
2
1
0
Register
7
6
5
4
3
2
1
0
Data
-
-
-
-
-
-
-
-
Data
-
-
-
-
-
-
-
-
Feature
0
0
0
0
0
0
0
1
Error
Sector Count
-
-
-
-
-
-
-
-
Sector Count
-
-
-
-
-
-
-
-
Sector Number
-
-
-
-
-
-
-
-
Sector Number
-
-
-
-
-
-
-
-
Cylinder Low
-
-
-
-
-
-
-
-
Cylinder Low
-
-
-
-
-
-
-
-
Cylinder High
-
-
-
-
-
-
-
-
Cylinder High
-
-
-
-
-
-
-
-
Device/Head
1
-
1
D
-
-
-
-
Device/Head
1
-
1
D
-
-
-
-
Command
1
1
1
1
1
0
0
1
Status
…See Below…
…See Below…
Error Register
7
6
CRC UNC
0
0
Status Register
5
4
3
2
0
IDN
0
ABT
0
0
0
V
1
0
T0N AMN
0
7
6
BSY RDY
0
0
V
5
DF
0
4
3
2
DSC DRQ COR
-
-
0
1
0
IDX
ERR
-
V
The device regards as Set Max Address command, if this command is immediately preceded by a Read Native
Max Address command.
This command requests a transfer of a single sector of data from the host including the information specified in
Table 202 Set Max set Password.
The password is retained by the device until the next power cycle. When the device accepts this command the
device is in Set_Max_Unlocked state.
Table 203 Set Max Set Password data contents
Word
0
01-16
17-255
Description
Reserved
Password (32 byte)
Reserved
HGST Hard Disk Drive Specification
256
Set Max Lock (Feature = 02h)
Table 204 Set Max Lock
Command Block Normal Outputs
Command Block Command Input
Register
7
6
5
4
3
2
1
0
Register
7
6
5
4
3
2
1
0
Data
-
-
-
-
-
-
-
-
Data
-
-
-
-
-
-
-
-
Feature
0
0
0
0
0
0
1
0
Error
Sector Count
-
-
-
-
-
-
-
-
Sector Count
-
-
-
-
-
-
-
-
Sector Number
-
-
-
-
-
-
-
-
Sector Number
-
-
-
-
-
-
-
-
Cylinder Low
-
-
-
-
-
-
-
-
Cylinder Low
-
-
-
-
-
-
-
-
Cylinder High
-
-
-
-
-
-
-
-
Cylinder High
-
-
-
-
-
-
-
-
Device/Head
1
-
1
D
-
-
-
-
Device/Head
1
-
1
D
-
-
-
-
Command
1
1
1
1
1
0
0
1
Status
…See Below…
…See Below…
Error Register
7
6
CRC UNC
0
0
Status Register
5
4
3
2
0
IDN
0
ABT
0
0
0
V
1
0
T0N AMN
0
0
7
6
BSY RDY
0
V
5
DF
0
4
3
2
DSC DRQ COR
-
-
0
1
0
IDX
ERR
-
V
The device regards as Set Max Address command, if this command is immediately preceded by a Read Native
Max Address command.
This command sets the device into Set_Max_Locked state. After this command is completed any other Set Max
commands except Set Max Unlock and Set Max Freeze Lock are rejected. The device remains in this state until a
power cycle or the acceptance of a Set Max Unlock or Set Max Freeze Lock command.
HGST Hard Disk Drive Specification
257
Set Max Unlock (Feature = 03h)
Table 205 Set Max Unlock (F9h)
Command Block Normal Outputs
Command Block Command Input
Register
7
6
5
4
3
2
1
0
Register
7
6
5
4
3
2
1
0
Data
-
-
-
-
-
-
-
-
Data
-
-
-
-
-
-
-
-
Feature
0
0
0
0
0
0
1
1
Error
Sector Count
-
-
-
-
-
-
-
-
Sector Count
-
-
-
-
-
-
-
-
Sector Number
-
-
-
-
-
-
-
-
Sector Number
-
-
-
-
-
-
-
-
Cylinder Low
-
-
-
-
-
-
-
-
Cylinder Low
-
-
-
-
-
-
-
-
Cylinder High
-
-
-
-
-
-
-
-
Cylinder High
-
-
-
-
-
-
-
-
Device/Head
1
-
1
D
-
-
-
-
Device/Head
1
-
1
D
-
-
-
-
Command
1
1
1
1
1
0
0
1
Status
…See Below…
…See Below…
Error Register
7
6
CRC UNC
0
0
Status Register
5
4
3
2
0
IDN
0
ABT
0
0
0
V
1
0
T0N AMN
0
0
7
6
BSY RDY
0
V
5
DF
0
4
3
2
DSC DRQ COR
-
-
0
1
0
IDX
ERR
-
V
The device regards as Set Max Address command, if this command is immediately preceded by a Read Native
Max Address command.
This command requests a transfer of a single sector of data from the host including the information specified in
Table 202 Set Max set Password on the page 256 with the stored SET MAX password.
If the password compare fails then the device returns an abort error to the host and decrements the unlock attempt
counter. This counter is initially set to 5 and is decremented for each password mismatch. When this counter
reaches zero then all Set Max Unlock commands are rejected until a hard reset or a power off.
If the password compares matches, then the device set the Set_Max_Unlocked state and all Set Max commands
shall be accepted.
HGST Hard Disk Drive Specification
258
Set Max Freeze Lock (Feature = 04h)
Table 206 Set Max Freeze Lock (F9h)
Command Block Normal Outputs
Command Block Command Input
Register
7
6
5
4
3
2
1
0
Register
7
6
5
4
3
2
1
0
Data
-
-
-
-
-
-
-
-
Data
-
-
-
-
-
-
-
-
Feature
0
0
0
0
0
1
0
0
Error
Sector Count
-
-
-
-
-
-
-
-
Sector Count
-
-
-
-
-
-
-
-
Sector Number
-
-
-
-
-
-
-
-
Sector Number
-
-
-
-
-
-
-
-
Cylinder Low
-
-
-
-
-
-
-
-
Cylinder Low
-
-
-
-
-
-
-
-
Cylinder High
-
-
-
-
-
-
-
-
Cylinder High
-
-
-
-
-
-
-
-
Device/Head
1
-
1
D
-
-
-
-
Device/Head
1
-
1
D
-
-
-
-
Command
1
1
1
1
1
0
0
1
Status
…See Below…
…See Below…
Error Register
7
6
CRC UNC
0
0
Status Register
5
4
3
2
0
IDN
0
ABT
0
0
0
V
1
0
T0N AMN
0
0
7
6
BSY RDY
0
V
5
DF
0
4
3
2
DSC DRQ COR
-
-
0
1
0
IDX
ERR
-
V
The device regards as Set Max Address command, if this command is immediately preceded by a Read Native
Max Address command.
The Set Max Freeze Lock command sets the device to Set_Max_Frozen state. After command completion any
subsequent Set Max commands are rejected. Commands disabled by Set Max Freeze Lock are:
1.
2.
3.
4.
Set Max Address
Set Max Set PASSWORD
Set Max Lock
Set Max Unlock
HGST Hard Disk Drive Specification
259
Set Max Address Ext (37h)
Table 207 Set Max Address Ext Command (37h)
Command Block Normal Outputs
Command Block Command Input
Register
7
6
5
4
3
2
1
0
Register
7
6
5
4
3
2
1
0
Data Low
-
-
-
-
-
-
-
-
Data Low
-
-
-
-
-
-
-
-
Data High
-
-
-
-
-
-
-
-
Data High
-
-
-
-
-
-
-
-
Current
-
-
-
-
-
-
-
-
Previous
-
-
-
-
-
-
-
-
Current
-
-
-
-
-
-
-
B
Previous
-
-
-
-
-
-
-
-
Current
V
V
V
V
V
V
V
V
Previous
V
V
V
V
V
V
V
V
Current
V
V
V
V
V
V
V
V
Previous
V
V
V
V
V
V
V
V
Current
V
V
V
V
V
V
V
V
Previous
V
V
V
V
V
V
V
Device/Head
-
1
-
D
-
-
Command
0
0
1
1
0
1
Feature
Sector Count
Sector
Number
Cylinder Low
Cylinder High
7
6
CRC UNC
0
0
5
0
0
Error Register
4
3
2
IDN
0
ABT
0
0
V
1
T0N
0
…See Below…
Error
Sector
Count
HOB=0
-
-
-
-
-
-
-
-
HOB=1
-
-
-
-
-
-
-
-
Sector
Number
HOB=0
V
V
V
V
V
V
V
V
HOB=1
V
V
V
V
V
V
V
V
Cylinder
Low
HOB=0
V
V
V
V
V
V
V
V
HOB=1
V
V
V
V
V
V
V
V
HOB=0
V
V
V
V
V
V
V
V
V
Cylinder
High
HOB=1
V
V
V
V
V
V
V
V
-
-
Device/Head
-
-
-
-
-
-
-
-
1
1
Status
0
AMN
0
7
6
BSY RDY
0
V
…See Below…
Status Register
5
4
3
2
DF DSC DRQ COR
0
0
1
IDX
-
0
ERR
V
This command is immediately preceded by a Read Native Max Address Ext command.
This command overwrites the maximum number of Address of HDD in a range of actual device capacity. Once
device receives this command, all accesses beyond that Address are rejected with setting ABORT bit in status
register.
When the address requested is greater than 268,435,455, words (103:100) shall be modified to reflect the
requested value, but words (61:60) shall not be modified. When the address requested is equal to or less than
268,435,455, words (103:100) shall be modified to reflect the requested value, and words (61:60) shall also be
modified.
If this command is not supported, the maximum value to be set exceeds the capacity of the device, a host protected
area has been established by a Set Max Address command, the command is not immediately preceded by a Read
Native Max Address Ext command, or the device is in the Set Max Locked or Set Max Frozen state, the device
shall return command aborted.
The device returns the command aborted for a second non-volatile Set Max Address Ext command until next power
on or hardware reset.
HGST Hard Disk Drive Specification
260
Output Parameters To The Device
B
Sector Number Current
Option bit for selection whether nonvolatile or volatile. B=0 is volatile condition.
When B=1, MAX Address which is set by Set Max Address Ext command is
preserved by POR. When B=0, MAX Address which is set by Set Max Address Ext
command will be lost by POR. B=1 is not valid when the device is in Address
Offset mode.
Set Max LBA (7:0).
Sector Number Previous
Set Max LBA (31:24).
Cylinder Low Current
Set Max LBA (15:8).
Cylinder Low Previous
Set Max LBA (39:32).
Cylinder High Current
Set Max LBA (23:16).
Cylinder High Previous
Set Max LBA (47:40).
Input Parameters From The Device
Sector Number (HOB=0)
Set Max LBA (7:0).
Sector Number (HOB=1)
Set Max LBA (31:24).
Cylinder Low (HOB=0)
Set Max LBA (15:8).
Cylinder Low (HOB=1)
Set Max LBA (39:32).
Cylinder High (HOB=0)
Set Max LBA (23:16).
Cylinder High (HOB=1)
Set Max LBA (47:40).
HGST Hard Disk Drive Specification
261
Set Multiple Mode (C6h)
Table 208 Set Multiple Mode Commands (C6h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
N/A
DRQ data block count
N/A
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 C6h
Normal Outputs
See Normal Outputs in 12.6 Flush Cache (E7h)
Error Outputs
See Error Outputs in 12.11 Idle (E3h / 97h)
The Set Multiple command enables the device to perform Read and Write Multiple commands and establishes the
block size for these commands. The block size is the number of sectors to be transferred for each interrupt.
If an invalid block size is specified, an Abort error will be returned to the host, and Read Multiple and Write Multiple
commands will be disabled.
HGST Hard Disk Drive Specification
262
Sleep (E6h/99h)
Table 209 Sleep Command (E6h/99h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
N/A
N/A
N/A
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 E6h or 99h
Normal Outputs
See Normal Outputs in 12.6 Flush Cache (E7h)
Error Outputs
See Error Outputs in 12.11 Idle (E3h / 97h)
This command causes the device to enter Sleep Mode.
The device is spun down and the interface becomes inactive. If the device is already spun down, the spin down
sequence is not executed.
The only way to recover from Sleep Mode is with software reset or hardware reset.
HGST Hard Disk Drive Specification
263
SMART Function Set (B0h)
The SMART Function Set command provides access to Attribute Values, Attribute Thresholds and other low level
subcommands that can be used for logging and reporting purposes and to accommodate special user needs. The
SMART Function Set command has several separate subcommands which are selectable via the device’s Features
Register when the SMART Function Set command is issued by the host.
SMART Subcommand
In order to select a subcommand the host must write the subcommand code to the device’s Features Register
before issuing the SMART Function Set command. The subcommands and their respective codes are listed below.
Code
Subcommand
D0h
SMART Read Attribute Values
D1h
SMART Read Attribute Thresholds
D2h
SMART Enable/Disable Attribute Autosave
D3h
SMART Save Attribute Values
D4h
SMART Execute Off-line Immediate
D5h
SMART Read Log Sector
D6h
SMART Write Log Sector
D8h
SMART Enable Operations
D9h
SMART Disable Operations
DAh
SMART Return Status
DBh
SMART Enable/Disable Automatic Off-Line
SMART Read Attribute Values (Subcommand D0h)
This subcommand returns the device’s Attribute Values to the host. Upon receipt of the SMART Read Attribute
Values subcommand from the host, the device saves any updated Attribute Values to the Attribute Data sectors,
and then transfers the 512 bytes of Attribute Value information to the host.
SMART Read Attribute Thresholds (Subcommand D1h)
This subcommand returns the device’s Attribute Thresholds to the host. Upon receipt of the SMART Read Attribute
Thresholds subcommand from the host, the device reads the Attribute Thresholds from the Attribute Threshold
sectors, and then transfers the 512 bytes of Attribute Thresholds information to the host.
HGST Hard Disk Drive Specification
264
SMART Enable/Disable Attribute Autosave (Subcommand D2h)
Table 210 SMART Enable/Disable Attribute Autosave (B0h-D2h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
D2h
Value Description
00h Disable attribute autosave
01h-F0h N/A
F1h Enable attribute autosave
F2h-FFh N/A
Bit Description
27:24 N/A
23:8 C24Fh
7:0 N/A
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 B0h
Normal Outputs
See Normal Outputs in 12.6 Flush Cache (E7h)
Error Outputs
See Error Outputs in 12.11 Idle (E3h / 97h)
This subcommand Enables and Disables the Attribute Autosave feature of the device. The SMART Enable/Disable
Attribute Autosave subcommand either allows the device to automatically save its updated Attribute Values to the
Attribute Data Sector periodically; or this subcommand causes the Autosave feature to be disabled. The state of
the Attribute Autosave feature (either enabled or disabled) will be preserved by the device across power cycle.
A value of 00h written by the host into the device’s Sector Count Register before issuing the SMART Enable/Disable
Attribute Autosave subcommand will cause this feature to be disabled. Disabling this feature does not preclude the
device from saving Attribute Values to the Attribute Data sectors during some other normal operation such as during
10
SMART Save Attribute Values (Subcommand D3h)
This subcommand causes the device to immediately save any updated Attribute Values to the device’s Attribute
Data sector regardless of the state of the Attribute Autosave feature. Upon receipt of the SMART Save Attribute
Values subcommand from the host, the device writes any updated Attribute Values to the Attribute Data sector.
HGST Hard Disk Drive Specification
265
SMART Execute Off-line Immediate (Subcommand D4h)
Table 211 SMART Enable/Disable Attribute Autosave (B0h-D4h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
D4h
N/A
Bit Description
27:24 N/A
23:8 C24Fh
7:0 Defines the subcommand that shall be processed
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 B0h
Normal Outputs
Field
ERROR
COUNT
LBA
DEVICE
STATUS
Description
N/A
N/A
Bit Description
27:24 N/A
23:8
Value Description
C24Fh: The subcommand specified a captive self-test that has completed without error.
All Other Values: The subcommand specified an off-line routine including an off-line self-test
routine.
7:0 N/A
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
Bit Description
7:6 Transport Dependent
5 DEVICE FAULT bit
4 N/A
3 Transport Dependent
2 N/A or ALIGNMENT ERROR bit
1 SENSE DATA AVAILABLE bit
0 ERROR bit
HGST Hard Disk Drive Specification
266
Error Outputs
Field
ERROR
COUNT
LBA
DEVICE
STATUS
Description
Bit Description
7:5 N/A
4 ID NOT FOUND bit
3 N/A
2 ABORT bit
1 N/A
0 Obsolete
Reserved
Bit Description
27:24 N/A
23:8
Value Description
C24Fh: Subcommand specified a captive self-test and some error other than a self-test
routine failure occurred (i.e., if the sub-command is not supported or field values are invalid)
2CF4h: the subcommand specified a captive self-test routine that has failed during
processing.
All Other Values: the subcommand specified an off-line routine including an off-line self-test
routine.
7:0 N/A
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
Bit Description
7:6 Transport Dependent
5 DEVICE FAULT bit
4 N/A
3 Transport Dependent
2 N/A
1 SENSE DATA AVAILABLE bit
0 ERROR bit
This subcommand causes the device to immediately initiate the set of activities that collect Attribute data in an offline mode (off-line routine) or execute a self-test routine in either captive or off-line mode.The Sector Number
register shall be set to specify the operation to be executed.
Subcommand
Operation to be executed
0
Execute SMART off-line data collection routine immediately
1
Execute SMART Short self-test routine immediately in off-line mode
2
Execute SMART Extended self-test routine immediately in off-line mode
4
Execute SMART Selective self-test routine immediately in off-line mode
127
Abort off-line mode self-test routine
129
Execute SMART Short self-test routine immediately in captive mode
130
Execute SMART Extended self-test routine immediately in captive mode
132
Execute SMART Selective self-test routine immediately in captive mode
Off-line mode: The device executes command completion before executing the specified routine. During execution
of the routine the device will not set BSY nor clear DRDY. If the device is in the process of performing its routine
and is interrupted by a new command from the host, the device will abort or suspend its routine and service the
host within two seconds after receipt of the new command. After servicing the interrupting command, the device
will resume its routine automatically or not start its routine depending on the interrupting command.
HGST Hard Disk Drive Specification
267
Captive mode: When executing self-test in captive mode, the device sets BSY to one and executes the specified
self-test routine after receipt of the command. At the end of the routine, the device sets the execution result in the
Self-test execution status byte (Table 219 Device Attribute Thresholds Data Structure) and ATA registers as below
and executes command completion.
SMART Read Log Sector (Subcommand D5h)
Table 212 SMART Read Log Sector (B0h-D5h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
D5h
Specifies the number of log pages to be read from the specified log. The log transferred by
the
ATA device shall start at the first page in the specified log, regardless of the Count requested
Bit Description
27:24 N/A
23:8 C24Fh
7:0 LOG ADDRESS field – specifies the log to be read
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 B0h
Normal Outputs
See Normal Outputs in 12.6 Flush Cache (E7h)
Error Outputs
Field
ERROR
COUNT
LBA
DEVICE
STATUS
Description
Bit Description
7 INTERFACE CRC bit
6 UNCORRECTABLE ERROR bit
5 N/A
4 ID NOT FOUND bit
3 N/A
2 ABORT bit
1 N/A
0 Obsolete
N/A
N/A
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
Bit Description
7:6 Transport Dependent
5 DEVICE FAULT bit
4 N/A
3 Transport Dependent
2 N/A
1 SENSE DATA AVAILABLE bit
0 ERROR bit
HGST Hard Disk Drive Specification
268
This command returns the specified log sector contents to the host.
The 512 bytes data are returned at a command and the Sector Count value shall be set to one. Count field shall
be set to specify the log sector address.
Table 213 Log sector addresses
Log sector address
Content
Type
00h
Log directory
Read Only
01h
Summary SMART Error Log
Read Only
03h
Extended Comprehensive SMART Error Log
See Note
06h
SMART Self-test Log
Read Only
07h
Extended Self-test Log
See Note
09h
Selective self-test Log
Read/Write
Host vendor specific
Read/Write
80h-9Fh
Note: Log addresses 03h and 07h are used by the Read Log Ext and Write Log Ext commands. If these log
addresses are used with the SMART Read Log Sector command, the device shall return command aborted.
HGST Hard Disk Drive Specification
269
SMART Write Log (Subcommand D6h)
Table 214 SMART Write Log (B0h-D6h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
D6h
Specifies the number of log pages that shall be written. The data transferred to the device
shall be stored starting at the first block in the specified log. If the device receives a value of
zero in this field, then the device shall report command aborted
Bit Description
27:24 N/A
23:8 C24Fh
7:0 LOG ADDRESS field
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 B0h
Normal Outputs
See Normal Outputs in 12.6 Flush Cache (E7h)
Error Outputs
Field
ERROR
COUNT
LBA
DEVICE
STATUS
Description
Bit Description
7 INTERFACE CRC bit
6:5 N/A
4 ID NOT FOUND bit
3 N/A
2 ABORT bit
1 N/A
0 Obsolete
N/A
N/A
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
Bit Description
7:6 Transport Dependent
5 DEVICE FAULT bit
4 N/A
3 Transport Dependent
2 N/A
1 SENSE DATA AVAILABLE bit
0 ERROR bit
This command writes 512 bytes data to the specified log sector.
The 512 bytes data are transferred at a command and the Sector Count value shall be set to one. The Sector
Number shall be set to specify the log sector address (Table 213 Log sector addresses). If Read Only log sector
is specified, the device returns ABRT error.
HGST Hard Disk Drive Specification
270
SMART Enable Operations (Subcommand D8h)
Table 215 SMART Enable Operations (B0h-D8h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
D8h
N/A
Bit Description
27:24 N/A
23:8 C24Fh
7:0 N/A
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 B0h
Normal Outputs
See Normal Outputs in 12.6 Flush Cache (E7h)
Error Outputs
See Error Outputs in 12.11 Idle (E3h / 97h)
This subcommand enables access to all SMART capabilities within the device. Prior to receipt of a SMART Enable
Operations subcommand, Attribute Values are neither monitored nor saved by the device. The state of SMART
(either enabled or disabled) will be preserved by the device across power cycles. Once enabled, the receipt of
subsequent SMART Enable Operations subcommands will not affect any of the Attribute Values.
Upon receipt of the SMART Enable Operations subcommand from the host, the device enables SMART capabilities
and functions, and then saves any updated Attribute Values to the Attribute Data sector.
SMART Disable Operations (Subcommand D9h)
This subcommand disables all SMART capabilities within the device including the device’s attribute autosave
feature. After receipt of this subcommand the device disables all SMART operations. Non self-preserved Attribute
Values will no longer be monitored. The state of SMART (either enabled or disabled) is preserved by the device
across power cycles.
Upon receipt of the SMART Disable Operations subcommand from the host, the device disables SMART
capabilities and functions, and then saves any updated Attribute Values to the Attribute Data sector.
After receipt of the device of the SMART Disable Operations subcommand from the host, all other SMART
subcommands – with the exception of SMART Enable Operations – are disabled, and invalid and will be aborted
by the device (including the SMART Disable Operations subcommand), returning the error code as specified in
Table 229 SMART Error Codes on the page 284.
Any Attribute Values accumulated and saved to volatile memory prior to receipt of the SMART Disable Operations
command will be preserved in the device’s Attribute Data Sectors. If the device is re-enabled, these Attribute Values
will be updated, as needed, upon receipt of a SMART Read Attribute Values or SMART Save Attribute Values
command.
HGST Hard Disk Drive Specification
271
SMART Return Status (Subcommand DAh)
Table 216 SMART RETURN STATUS command (B0h-DAh)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
DAh
N/A
Bit Description
27:24 N/A
23:8 C24Fh
7:0 N/A
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 B0h
Normal Outputs
Field
ERROR
COUNT
LBA
DEVICE
STATUS
Description
N/A
N/A
N/A
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
Bit Description
7:6 Transport Dependent
5 DEVICE FAULT bit
4 N/A
3 Transport Dependent
2 N/A or ALIGNMENT ERROR bit
1 SENSE DATA AVAILABLE bit
0 ERROR bit
Error Outputs
See Error Outputs in 12.11 Idle (E3h / 97h)
This command is used to communicate the reliability status of the device to the host’s request. Upon receipt of the
SMART Return Status subcommand the device saves any updated Pre-failure type Attribute Values to the reserved
sector and compares the updated Attribute Values to the Attribute Thresholds.
If the device does not detect a Threshold Exceeded Condition, the device loads 4Fh into the Cylinder Low register,
C2h into the Cylinder High register.
If the device detects a Threshold Exceeded Condition, the device loads F4h into the Cylinder Low register, 2Ch
into the Cylinder High register.
HGST Hard Disk Drive Specification
272
SMART Enable/Disable Automatic Off-Line (Subcommand DBh)
This subcommand enables and disables the optional feature that causes the device to perform the set of off-line
data collection activities that automatically collect attribute data in an off-line mode and then save this data to the
device’s non-volatile memory. This subcommand may either cause the device to automatically initiate or resume
performance of its off-line data collection activities or cause the automatic off-line data collection feature to be
disabled.
A value of zero written by the host into the device’s Sector Count Register before issuing this subcommand shall
cause the feature to be disabled. Disabling this feature does not preclude the device from saving attribute values
to non-volatile memory during some other normal operation such as during a power-on or power-off sequence or
during an error recovery sequence.
A value of F8h written by the host into the device’s Sector Count Register before issuing this subcommand shall
cause this feature to be enabled. Any other non-zero value written by the host into this register before issuing this
subcommand is vender specific and will not change the current Automatic Off-Line Data Collection, but the device
may respond with the error code specified in Table 229 SMART Error Codes on the page 284.
HGST Hard Disk Drive Specification
273
Device Attributes Data Structure
The following defines the 512 bytes that make up the Attribute Value information. This data structure is accessed
by the host in its entirety using the SMART Read Attribute Values subcommand. All multi-byte fields shown in these
data structures are in byte ordering, namely that the least significant byte occupies the lowest numbered byte
address location in the field.
Table 217 Device Attribute Data Structure
Description
Data Structure Revision Number
1st Device Attribute
…
…
30th Device Attribute
Off-line data collection status
Self-test execution status
Total time in seconds to complete off-line data collection activity
Vender specific
Off-line data collection capability
SMART capability
SMART device error logging capability
Self-test failure check point
Short self-test completion time in minutes
Extended self-test completion time in minutes. If 0FFh, use bytes 177h and
178h for completion time.
Reserved
Extended self-test completion time in minutes. (word)
Reserved
Vendor specific
Data structure checksum
Bytes
Offset
Value
2
12
..
..
12
1
1
2
1
1
2
1
1
1
00h
02h
0010h
15Eh
16Ah
16Bh
16Ch
16Eh
16Fh
170h
172h
173h
174h
1
175h
1
2
9
125
1
512
176h
177h
179h
182h
1FFh
1Bh
0003h
01h
Data Structure Revision Number
The Data Structure Revision Number identifies which version of this data structure is implemented by the device.
This revision number identifies both the Attribute Value and Attribute Threshold Data structures.
HGST Hard Disk Drive Specification
274
Individual Attribute Data Structure
The following defines the 12 bytes that make up the information for each Attribute entry in the Device Attribute Data
Structure.
Table 218 Individual Attribute Data Structure
Description
Bytes
Offset
Attribute ID Number (01h to FFh)
1
00h
Status Flags
2
01h
Attribute Value (valid values from 01h to FDh)
1
03h
8
04h
Vender specific
Total Bytes
12
Attribute ID Numbers: Any non-zero value in the Attribute ID Number indicates an active attribute. The device
supports following Attribute ID Numbers.
ID
0
1
2
3
4
5
7
8
9
10
12
192
193
194
196
197
198
199
Attribute Name
Indicates that this entry in the data structure is not used
Raw Read Error Rate
Throughput Performance
Spin Up Time
Start/Stop Count
Reallocated Sector Count
Seek Error Rate
Seek Time Performance
Power-On Hours Count
Spin Retry Count
Device Power Cycle Count
Power off Retract count
Load Cycle count
Temperature
Reallocation Event Count
Current Pending Sector Count
Off-Line Scan Uncorrectable Sector Count
Ultra DMA CRC Error Count
Status Flag Definitions
Bit
Definition
0
Pre-failure/advisory bit
0
1
2-5
An Attribute Value less than or equal to its corresponding Attribute Threshold indicates an
advisory condition where the usage or age of the device has exceeded its intended design life
period.
1
An Attribute Value less than or equal to its corresponding attribute threshold indicates a preFailure condition where imminent loss of data is being predicted.
On-Line Collective bit
0
The Attribute Value is updated only during Off-Line testing
1
The Attribute Value is updated during On-Line testing or during both On-Line and Off-Line
testing.
Vendor specific
6-15
Reserved (0)
Normalized Values: The device will perform conversion of the raw Attribute Values to transform them into
normalized values, which the host can then compare with the Threshold values. A Threshold is the excursion limit
for a normalized Attribute Value.
HGST Hard Disk Drive Specification
275
Off-Line Data Collection Status
The value of this byte defines the current status of the off-line activities of the device. Bit 7 indicates Automatic OffLine Data Collection Status.
Bit 7
Automatic Off-Line Data Collection Status
0
Automatic Off-Line Data Collection is disabled.
1
Automatic Off-Line Data Collection is enabled.
Bits 0 thru 6 represent a hexadecimal status value reported by the device.
Valu
e
0
2
4
5
6
Definition
Off-line data collection never started
All segments completed without errors.
Off-line data collection suspended by interrupting command
Off-line data collecting aborted by interrupting command
Off-line data collection aborted with fatal error
Self-test execution status
Bit
0-3
4-7
Definition
Percent Self-test remaining
An approximation of the percent of the self-test routine remaining until completion in ten percent
increments. Valid values are 0 through 9.
Current Self-test execution status
0
The self-test routine completed without error or has never been run
1
The self-test routine aborted by the host
2
The self-test routine interrupted by the host with a hard or soft reset
3
The device was unable to complete the self-test routine due to a fatal error or unknown test error
4
The self-test routine completed with unknown element failure
5
The self-test routine completed with electrical element failure
6
The self-test routine completed with servo element failure
7
The self-test routine completed with read element failure
15
The self-test routine in progress
Total Time in Seconds to Complete Off-line Data Collection
Activity
This field tells the host how many seconds the device requires completing the off-line data collection activity.
HGST Hard Disk Drive Specification
276
Off-Line Data Collection Capability
Bit
0
1
2
3
4
5-7
6
Definition
Execute Off-line Immediate implemented bit
0
SMART Execute Off-line Immediate subcommand is not implemented
1
SMART Execute Off-line Immediate subcommand is implemented
Enable/disable Automatic Off-line implemented bit
0
SMART Enable/disable Automatic Off-line subcommand is not implemented
1
SMART Enable/disable Automatic Off-line subcommand is implemented
abort/restart off-line by host bit
0
The device will suspend off-line data collection activity after an interrupting command and
resume it after some vendor specific event
1
The device will abort off-line data collection activity upon receipt of a new command
Off-line Read Scanning implemented bit
0
The device does not support Off-line Read Scanning
1
The device supports Off-line Read Scanning
Self-test implemented bit
0
Self-test routine is not implemented
1
Self-test routine is implemented
Reserved (0)
Selective self-test implemented bit
0
Selective self-test routine is not implemented
1
Selective self-test routine is implemented
SMART Capability
This word of bit flags describes the SMART capabilities of the device. The device will return 03h indicating that
the device will save its Attribute Values prior to going into a power saving mode and supports the SMART
ENABLE/DISABLE ATTRIBUTE AUTOSAVE command.
Bit
0
1
2-15
Definition
Pre-power mode attribute saving capability
If bit = 1, the device will save its Attribute Values prior to going into a power saving mode (Standby or
Sleep mode).
Attribute autosave capability
If bit = 1, the device supports the SMART ENABLE/DISABLE ATTRIBUTE AUTOSAVE command.
Reserved (0)
Error Logging Capability
Bit
7-1
0
Definition
Reserved (0)
Error Logging support bit
If bit = 1, the device supports the Error Logging
Self-test failure check point
This byte indicates the section of self-test where the device detected a failure.
HGST Hard Disk Drive Specification
277
Self-test completion time
These bytes are the minimum time in minutes to complete self-test.
Data Structure Checksum
The Data Structure Checksum is the 2’s compliment of the result of a simple 8-bit addition of the first 511 bytes in
the data structure.
HGST Hard Disk Drive Specification
278
Device Attribute Thresholds Data Structure
The following defines the 512 bytes that make up the Attribute Threshold information. This data structure is
accessed by the host in its entirety using the SMART Read Attribute Thresholds. All multi-byte fields shown in these
data structures follow the ATA/ATAPI-7 specification for byte ordering, namely that the least significant byte
occupies the lowest numbered byte address location in the field.
The sequence of active Attribute Thresholds will appear in the same order as their corresponding Attribute Values.
Table 219 Device Attribute Thresholds Data Structure
Description
Data Structure Revision Number
1st Attribute Threshold
…
…
30th Attribute Threshold
Reserved
Vendor specific
Data structure checksum
Bytes
2
12
..
..
12
18
131
1
512
Offset
00h
02h
Value
0010h
15Eh
16Ah
17Ch
1FFh
00h
00h
Data Structure Revision Number
This value is the same as the value used in the Device Attributes Values Data Structure.
Individual Thresholds Data Structure
The following defines the 12 bytes that make up the information for each Threshold entry in the Device Attribute
Thresholds Data Structure. Attribute entries in the Individual Threshold Data Structure are in the same order and
correspond to the entries in the Individual Attribute Data Structure.
Table 220 Individual Threshold Data Structure
Description
Attribute ID Number (01h to FFh)
Attribute Threshold
Reserved (00h)
Total Bytes
Bytes
1
1
10
12
Offset
00h
01h
02h
Attribute ID Numbers
Attribute ID Numbers supported by the device are the same as Attribute Values Data Structures.
Attribute Threshold
These values are preset at the factory and are not meant to be changeable.
Data Structure Checksum
The Data Structure Checksum is the 2’s compliment of the result of a simple 8-bit addition of the first 511 bytes in
the data structure.
HGST Hard Disk Drive Specification
279
SMART Log Directory
Table 221 SMART Log Directory defines the 512 bytes that make up the SMART Log Directory. The SMART Log
Directory is SMART Log Address zero and is defined as one sector long.
Table 221 SMART Log Directory
Description
SMART Logging Version
Number of sectors in the log at log address 1
Reserved
Number of sectors in the log at log address 2
Reserved
…
Number of sectors in the log at log address 255
Reserved
Bytes
2
1
1
1
1
…
1
1
512
Offset
00h
02h
03h
04h
05h
…
1Feh
1FFh
The value of the SMART Logging Version word shall be 01h. The logs at log addresses 80-9Fh shall each be
defined as 16 sectors long.
SMART summary error log sector
The following defines the 512 bytes that make up the SMART summary error log sector. All multi-byte fields
shown in this data structure follow the ATA/ATAPI-7 specifications for byte ordering.
Table 222 SMART summary error log sector
Description
SMART error log version
Error log index
1st error log data structure
2nd error log data structure
3rd error log data structure
4th error log data structure
5th error log data structure
Device error count
Reserved
Data structure checksum
Bytes
1
1
90
90
90
90
90
2
57
1
512
Offset
00h
01h
02h
5Ch
B6h
110h
16Ah
1C4h
1C6h
1FFh
SMART error log version
This value is set to 01h.
Error log index
This points the most recent error log data structure. Only values 1 through 5 are valid.
Device error count
This field contains the total number of errors. The value will not roll over.
HGST Hard Disk Drive Specification
280
Error log data structure
Data format of each error log structure is shown below.
Table 223 Error log data structure
Description
1st error log data structure
2nd error log data structure
3rd error log data structure
4th error log data structure
5th error log data structure
Error data structure
Bytes
12
12
12
12
12
30
90
Offset
00h
0Ch
18h
24h
30h
3Ch
Command data structure: Data format of each command data structure is shown below.
Table 224 Command data structure
Description
Device Control register
Features register
Sector count register
Sector number register
Cylinder Low register
Cylinder High register
Device/Head register
Command register
Timestamp (milliseconds from Power On)
Bytes
1
1
1
1
1
1
1
1
4
12
Offset
00h
01h
02h
03h
04h
05h
06h
07h
08h
Error data structure: Data format of error data structure is shown below.
Table 225 Error data structure
Description
Reserved
Error register
Sector count register
Sector number register
Cylinder Low register
Cylinder High register
Device/Head register
Status register
Extended error data (vendor specific)
State
Life timestamp (hours)
Bytes
1
1
1
1
1
1
1
1
19
1
2
30
HGST Hard Disk Drive Specification
281
Offset
00h
01h
02h
03h
04h
05h
06h
07h
08h
1Bh
1Ch
State field contains a value indicating the device state when command was issued to the device.
Value
State
x0h
Unknown
x1h
Sleep
x2h
Standby (If the EPC feature set is enabled, Standby is standby_y or standby_z)
x3h
Active/Idle
(If the EPC feature set is enabled, Active/Idle is idle_a or idle_b or idle_c)
x4h
SMART Off-line or Self-test
x5h-xAh
Reserved
xBh-xFh
Vendor specific
Note: The value of x is vendor specific.
Self-test log data structure
The following defines the 512 bytes that make up the Self-test log sector. All multi-byte fields shown in these data
structures follow the ATA/ATAPI-7 specifications for byte ordering.
Table 226 Self-test log data structure
Description
Data structure revision
Self-test number
Self-test execution status
Life time power on hours
Self-test failure check point
LBA of first failure
Vendor specific
…
Vendor specific
Self-test index
Reserved
Data structure checksum
Bytes
2
1
1
2
1
4
15
Offset
00h
n*18h+02h
n*18h+03h
n*18h+04h
n*18h+06h
n*18h+07h
n*18h+0Bh
2
1
2
1
512
1Fah
1FCh
1FDh
1FFh
Note: n is 0 through 20
The data structure contains the descriptor of Self-test that the device has performed. Each descriptor is 24 bytes
long and the self-test data structure is capable to contain up to 21 descriptors.
After 21 descriptors have been recorded, the oldest descriptor will be overwritten with new descriptor.
Self-test index points the most recent descriptor. When there is no descriptor the value is 0. When there is
descriptor(s) the value is 1 through 21.
HGST Hard Disk Drive Specification
282
Selective self-test log data structure
The Selective self-test log is a log that may be both written and read by the host. This log allows the host to select
the parameters for the self-test and to monitor the progress of the self-test. The following table defines the
contents of the Selective self-test log which is 512 bytes long. All multi-byte fields shown in these data structures
follow the ATA/ATAPI-7 specifications for byte ordering.
Table 227 Selective self-test log data structure
Description
Data structure revision
Starting LBA for test span 1
Ending LBA for test span 1
Starting LBA for test span 2
Ending LBA for test span 2
Starting LBA for test span 3
Ending LBA for test span 3
Starting LBA for test span 4
Ending LBA for test span 4
Starting LBA for test span 5
Ending LBA for test span 5
Reserved
Vendor specific
Current LBA under test
Current span under test
Feature flags
Vendor specific
Selective self-test pending time
Reserved
Data structure checksum
Bytes
2
8
8
8
8
8
8
8
8
8
8
256
154
8
2
2
4
2
1
1
512
Offset
00h
02h
0Ah
12h
1Ah
22h
2Ah
32h
3Ah
42h
4Ah
52h
152h
1Ech
1F4h
1F6h
1F8h
1FCh
1Feh
1FFh
Feature flags
The Feature flags define the features of Selective self-test to be executed.
Table 228 Selective self-test feature flags
Bit
0
1
2
3
4
5-15
Description
Vendor specific
When set to one, perform off-line scan after selective test.
Vendor specific
When set to one, off-line scan after selective test is pending.
When set to one, off-line scan after selective test is active.
Reserved.
HGST Hard Disk Drive Specification
283
Read/Write
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Reserved
Vendor specific
Read
Read
R/W
Vendor specific
R/W
Reserved
R/W
Error Reporting
The following table shows the values returned in the Status and Error Outputs when specific error conditions are
encountered by a device.
Table 229 SMART Error Codes
Error Condition
Status Register
Error Register
A SMART FUNCTION SET command was received by the device
without the required key being loaded into the Cylinder High and
Cylinder Low registers.
51h
04h
A SMART FUNCTION SET command was received by the device
with a subcommand value in the Features Register that is either
invalid or not supported by this device.
51h
04h
A SMART FUNCTION SET command subcommand other than
SMART ENABLE OPERATIONS was received by the device while
the device was in a “SMART disabled” state.
51h
04h
The device is unable to read its Attribute Values or Attribute
Thresholds data structure.
51h
10h or 40h
The device is unable to write to its Attribute Values data structure.
51h
10h
HGST Hard Disk Drive Specification
284
Standby (E2h/96h)
Table 230 Standby Command (E2h/96h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
N/A
Standby timer period
N/A
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 E2h or 96h
Normal Outputs
See Normal Outputs in 12.6 Flush Cache (E7h)
Error Outputs
See Error Outputs in 12.11 Idle (E3h / 97h)
The Standby command causes the device to enter the Standby Mode immediately, and set auto power down
timeout parameter (standby timer).
When the Standby mode is entered, the drive is spun down but the interface remains active. If the drive is already
spun down, the spin down sequence is not executed.
During the Standby mode the device will respond to commands, but there is a delay while waiting for the spindle
to reach operating speed.
The automatic power down sequence is enabled and the timer starts counting down when the drive returns to Idle
mode.
If the EPC feature set is enabled, device enters into the Standby_Z power condition.
Standby timer
period
Timeout Parameter. If zero, the timeout interval (Standby Timer) is NOT disabled. If non-zero,
then the automatic power down sequence is enabled, and the timeout interval is shown blow:
Value
Description
-----------------------------------------0
Timer disabled
1-240
Value * 5 seconds
241-251
(Value-240) * 30 minutes
252
21 minutes
253
8 hours
254
Aborted
255
21 minutes 15 seconds
When the automatic power down sequence is enabled, the drive will enter Standby mode
automatically if the timeout interval expires with no drive access from the host. The timeout
interval will be reinitialized if there is a drive access before the timeout interval expires.
HGST Hard Disk Drive Specification
285
Standby Immediate (E0h/94h)
Table 231 Standby Immediate Command (E0h/94h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
N/A
N/A
N/A
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 E0h
Normal Outputs
See Normal Outputs in 12.6 Flush Cache (E7h)
Error Outputs
See Error Outputs in 12.11 Idle (E3h / 97h)
The Standby Immediate command causes the device to enter Standby mode immediately.
The device is spun down but the interface remains active. If the device is already spun down, the spin down
sequence is not executed.
During the Standby mode, the device will respond to commands, but there is a delay while waiting for the spindle
to reach operating speed.
The Standby Immediate command will not affect the auto power down timeout parameter.
If the EPC feature set is enabled, device enters into the Standby_Z power condition.
HGST Hard Disk Drive Specification
286
Write Buffer (E8h)
Table 232 Write Buffer Command (E8h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
N/A
N/A
N/A
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 E8h
Normal Outputs
See Normal Outputs in 12.6 Flush Cache (E7h)
Error Outputs
See Error Outputs in 12.3 Download Microcode (92h)
The Write Buffer command transfers a sector of data from the host to the sector buffer of the device. The sectors
of data are transferred through the Data Register 16 bits at a time.
The Read Buffer and Write Buffer commands are synchronized such that sequential Write Buffer and Read Buffer
commands access the same 512 byte within the buffer.
HGST Hard Disk Drive Specification
287
Write Buffer DMA (EBh)
Table 233 Write Buffer DMA Command (EBh)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
N/A
N/A
N/A
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 EBh
Normal Outputs
See Normal Outputs in 12.6 Flush Cache (E7h)
Error Outputs
See Error Outputs in 12.3 Download Microcode (92h)
The Write Buffer DMA command transfers a sector of data from the host to the sector buffer of the device. The
sectors of data are transferred through the Data Register 16 bits at a time.
The Read Buffer and Write Buffer commands are synchronized such that sequential Write Buffer and Read Buffer
commands access the same 512 byte within the buffer.
HGST Hard Disk Drive Specification
288
Write DMA (CAh/CBh)
Table 234 Write DMA Command (CAh/CBh)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
N/A
The number of logical sectors to be transferred. A value of 00h
indicates that 256 logical sectors are to be transferred
LBA of first logical sector to be transferred
Bit Description
7:5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 CAh or CBh
Normal Outputs
See Normal Outputs in 12.6 Flush Cache (E7h)
Error Outputs
Field
ERROR
COUNT
LBA
DEVICE
STATUS
Description
Bit Description
7 INTERFACE CRC bit
6:5 Obsolete
4 ID NOT FOUND bit
3 Obsolete
2 ABORT bit
1:0 Obsolete
N/A
LBA of First Unrecoverable Error
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
Bit Description
7:6 Transport Dependent
5 DEVICE FAULT bit
4 N/A
3 Transport Dependent
2 N/A
1 SENSE DATA AVAILABLE bit
0 ERROR bit
The Write DMA command transfers one or more sectors of data from the host to the device, then the data is written
to the disk media.
The sectors of data are transferred through the Data Register 16 bits at a time.
The host initializes a slave-DMA channel prior to issuing the command. Data transfers are qualified by DMARQ
and are performed by the slave-DMA channel. The device issues only one interrupt per command to indicate that
data transfer has terminated and status is available.
If an uncorrectable error occurs, the write will be terminated at the failing sector.
HGST Hard Disk Drive Specification
289
Write DMA FUA Ext (3Dh)
Table 235 Write DMA FUA Ext Command (3Dh)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
Reserved
The number of logical sectors to be transferred. A value of 0000h
indicates that 65,536 logical sectors are to be transferred
LBA of first logical sector to be transferred
Bit Description
7 Obsolete
6 Shall be set to one
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 3Dh
Normal Outputs
See Normal Outputs in 12.7 Flush Cache Ext (EAh)
Error Outputs
Field
ERROR
COUNT
LBA
DEVICE
STATUS
Description
Bit Description
7 INTERFACE CRC bit
6:5 Obsolete
4 ID NOT FOUND bit
3 Obsolete
2 ABORT bit
1 Obsolete
0 N/A
Reserved
LBA of First Unrecoverable Error
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
Bit Description
7:6 Transport Dependent
5 DEVICE FAULT bit
4 N/A
3 Transport Dependent
2 N/A
1 SENSE DATA AVAILABLE bit
0 ERROR bit
The Write DMA FUA Ext command transfers one or more sectors of data from the host to the device, and then the
data is written to the disk media. This command provides the same function as the Write DMA Ext command
except that the transferred data shall be written to the media before the ending status for this command is reported
also when write caching is enabled.
The host initializes a slave-DMA channel prior to issuing the command. Data transfers are qualified by DMARQ
and are performed by the slave-DMA channel. The device issues only one interrupt per command to indicate that
data transfer has terminated and status is available.
If an unrecoverable error occurs, the write will be terminated at the failing sector.
HGST Hard Disk Drive Specification
290
Output Parameters To The Device
Sector Count Current
The number of continuous sectors to be transferred low order, bits (7:0).
Sector Count Previous
The number of continuous sectors to be transferred high order bits (15:8). If zero
is specified in the Sector Count register, then 65,536 sectors will be transferred.
Sector Number Current
LBA (7:0).
Sector Number Previous
LBA (31:24).
Cylinder Low Current
LBA (15:8).
Cylinder Low Previous
LBA (39:32).
Cylinder High Current
LBA (23:16).
Cylinder High Previous
LBA (47:40).
Input Parameters From The Device
Sector Number (HOB=0)
LBA (7:0) of the address of the first unrecoverable error.
Sector Number (HOB=1)
LBA (31:24) of the address of the first unrecoverable error.
Cylinder Low (HOB=0)
LBA (15:8) of the address of the first unrecoverable error.
Cylinder Low (HOB=1)
LBA (39:32) of the address of the first unrecoverable error.
Cylinder High (HOB=0)
LBA (23:16) of the address of the first unrecoverable error.
Cylinder High (HOB=1)
LBA (47:40) of the address of the first unrecoverable error.
HGST Hard Disk Drive Specification
291
Write DMA Ext (35h)
Table 236 Write DMA Ext Command (35h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
Reserved
The number of logical sectors to be transferred. A value of 0000h
indicates that 65,536 logical sectors are to be transferred
LBA of first logical sector to be transferred
Bit Description
7:5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 35h
Normal Outputs
See Normal Outputs in 12.7 Flush Cache Ext (EAh)
Error Outputs
See Error Outputs in 12.54 Write DMA FUA Ext (3Dh)
The Write DMA Ext command transfers one or more sectors of data from the host to the device, and then the data
is written to the disk media.
The host initializes a slave-DMA channel prior to issuing the command. Data transfers are qualified by DMARQ
and are performed by the slave-DMA channel. The device issues only one interrupt per command to indicate that
data transfer has terminated and status is available.
If an uncorrectable error occurs, the write will be terminated at the failing sector
Output Parameters To The Device
Sector Count Current
The number of continuous sectors to be transferred low order, bits (7:0).
Sector Count Previous
The number of continuous sectors to be transferred high order bits (15:8). If zero
is specified in the Sector Count register, then 65,536 sectors will be transferred.
Sector Number Current
LBA (7:0).
Sector Number Previous
LBA (31:24).
Cylinder Low Current
LBA (15:8).
Cylinder Low Previous
LBA (39:32).
Cylinder High Current
LBA (23:16).
Cylinder High Previous
LBA (47:40).
Input Parameters From The Device
Sector Number (HOB=0)
LBA (7:0) of the address of the first unrecoverable error.
Sector Number (HOB=1)
LBA (31:24) of the address of the first unrecoverable error.
Cylinder Low (HOB=0)
LBA (15:8) of the address of the first unrecoverable error.
Cylinder Low (HOB=1)
LBA (39:32) of the address of the first unrecoverable error.
Cylinder High (HOB=0)
LBA (23:16) of the address of the first unrecoverable error.
Cylinder High (HOB=1)
LBA (47:40) of the address of the first unrecoverable error.
HGST Hard Disk Drive Specification
292
Write FPDMA Queued (61h)
Table 237 Write FPDMA Queued Command (61h)
Command Input
Field
FEATURE
COUNT
LBA
ICC
DEVICE
Command
Description
The number of logical sectors to be transferred. A value of 0000h
indicates that 65536 logical sectors are to be transferred
Bit Description
15:14 PRIO field
13:8 Reserved
7:3 NCQ TAG field
2:0 Reserved
LBA of first logical sector to be transferred
7:0 ICC field
Bit Description
7 FUA bit
6 Shall be set to one
5 Reserved
4 Shall be cleared to zero
3:0 Reserved
7:0 61h
Normal Outputs
See Normal Outputs in 12.19 Read FPDMA Queued (60h)
Error Outputs
See Error Outputs in 12.19 Read FPDMA Queued (60h)
The Write FPDMA Queued command transfers one or more sectors of data from the host to the device, and then
the data is written to the disk media.
If an unrecoverable error occurs, the write will be terminated at the failing sector
FUA bit
When the FUA bit is set to 1, the completion status is indicated after the transferred data are written to the media
also when Write Cache is enabled.
When the FUA bit is set to 0, the completion status may be indicated before the transferred data are written to the
media successfully when Write Cache is enabled.
ICC field
The Isochronous Command Completion (ICC) field is valid when PRIO is set to a value of 01b. It is assigned by
the host based on the intended deadline associated with the command issued. When a deadline has expired, the
device continues to complete the command as soon as possible. The host can modify this behavior if the device
supports the NCQ NON-DATA command (see 12.14) and supports the Deadline Handling subcommand (see
12.14.2). This subcommand allows the host to set whether the device aborts commands that have exceeded the
time set in ICC.
There are several parameters encoded in the ICC field: Fine or Coarse timing, Interval and the Max Time. The
Interval indicates the time units of the Time Limit parameter.
If ICC Bit 7 cleared to zero, then the time interval is fine-grained.
Interval
= 10msec
Time Limit
= (ICC[6:0] + 1) * 10 msec
If ICC Bit 7 is set to one (coarse encoding), then the time interval is coarse grained.
Interval
= 0.5 sec
Time Limit
= (ICC[6:0] + 1) * 0.5 sec
HGST Hard Disk Drive Specification
293
PRIO bit
The Priority (PRIO) value shall be assigned by the host based on the priority of the command issued. The device
makes a best effort to complete High priority requests in a more timely fashion than Normal and isochronous priority
requests. The device tries to complete isochronous requests prior to its associated deadline. The Priority values
are defined as follows:
00b
Normal priority
01b
Isochronous – deadline dependent priority
10b
High priority
NCQ TAG
The TAG value shall be assigned to be different from all other queued commands. The value shall not exceed the
maximum queue depth specified by the Word 75 of the Identify Device information.
HGST Hard Disk Drive Specification
294
Write Log Ext (3Fh)
Table 238 Write Log Ext Command (3Fh)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
Reserved
LOG PAGE COUNT field
Bit Description
47:40 Reserved
39:32 PAGE NUMBER field (15:8)
31:16 Reserved
15:8 PAGE NUMBER field (7:0)
7:0 LOG ADDRESS field – specifies the log to be written
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent – See 9.2.10
3:0 Reserved
7:0 3Fh
Normal Outputs
See Normal Outputs in 12.7 Flush Cache Ext (EAh)
Error Outputs
Field
ERROR
COUNT
LBA
DEVICE
STATUS
Description
Bit Description
7 INTERFACE CRC bit
6:5 Obsolete
4 ID NOT FOUND bit
3 Obsolete
2 ABORT bit
1 Obsolete
0 N/A
Reserved
Reserved
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
Bit Description
7:6 Transport Dependent
5 DEVICE FAULT bit
4 N/A
3 Transport Dependent
2 N/A
1 SENSE DATA AVAILABLE bit
0 ERROR bit
This command writes a specified number of 512 byte data sectors to the specific log. The device shall interrupt for
each DRQ block transferred.
LOG PAGE COUNT field
The LOG PAGE COUNT field specifies the number of log pages that shall be written to the specified log. If the
number is zero, or the number is greater than the number indicated in the GPL Directory (see table A.3), the device
HGST Hard Disk Drive Specification
295
shall return command aborted.
PAGE NUMBER field
The PAGE NUMBER field specifies the first page number to be written to the specified log
Error Outputs
A drive returns command aborted for the command if:
a) the LOG PAGE COUNT field is cleared to zero;
b) the feature set associated with the log specified in the LOG ADDRESS field is not supported or not enabled;
c) the values in the FEATURE field, LOG PAGE COUNT field, or LBA field (47:8) are invalid;
d) the host attempts to write to a read only log; or
e) the value in the PAGE NUMBER field plus the value in the LOG PAGE COUNT field is larger than the log size
reported in the GPL Directory.
If the log data is not available or a data structure checksum error occurred, then the device shall return command
completion for the command with the ID NOT FOUND bit set to one.
A drive may return command completion with the ERROR bit set to one if an Interface CRC error has occurred.
HGST Hard Disk Drive Specification
296
Write Log DMA Ext (57h)
Table 239 Write Log DMA Ext Command (57h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
Reserved
LOG PAGE COUNT field
Bit Description
47:40 Reserved
39:32 PAGE NUMBER field (15:8)
31:16 Reserved
15:8 PAGE NUMBER field (7:0)
7:0 LOG ADDRESS field – specifies the log to be written
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent – See 9.2.10
3:0 Reserved
7:0 57h
Normal Outputs
See Normal Outputs in 12.7 Flush Cache Ext (EAh)
Error Outputs
See Error Outputs in 12.57 Write Log Ext (3Fh)
The content of this command is the same as Write Log Ext. See 12.57
HGST Hard Disk Drive Specification
297
Write Multiple (C5h)
Table 240 Write Multiple Command (C5h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
N/A
The number of logical sectors to be transferred. A value of 00h
indicates that 256 logical sectors are to be transferred
LBA of first logical sector to be transferred
Bit Description
7:5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 C5h
Normal Outputs
See Normal Outputs in 12.6 Flush Cache (E7h)
Error Outputs
Field
ERROR
COUNT
LBA
DEVICE
STATUS
Description
Bit Description
7 INTERFACE CRC bit
6:5 Obsolete
4 ID NOT FOUND bit
3 Obsolete
2 ABORT bit
1:0 Obsolete
N/A
LBA of First Unrecoverable Error
Bit Description
7 Obsolete
6 N/A
5 Obsolete
4 Transport Dependent
3:0 Reserved
Bit Description
7:6 Transport Dependent
5 DEVICE FAULT bit
4 N/A
3 Transport Dependent
2 N/A
1 SENSE DATA AVAILABLE bit
0 ERROR bit
The Write Multiple command transfers one or more sectors from the host to the device, and then the data is written
to the disk media.
Command execution is identical to the Write Sector(s) command except that an interrupt is generated for each
block (as defined by the Set Multiple command) instead of for each sector. The sectors are transferred through the
Data Register 16 bits at a time.
HGST Hard Disk Drive Specification
298
Write Multiple Ext (39h)
Table 241 Write Multiple Ext Command (39h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
Reserved
The number of logical sectors to be transferred. A value of 0000h
indicates that 65,536 logical sectors are to be transferred
LBA of first logical sector to be transferred
Bit Description
7 Obsolete
6 Shall be set to one
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 39h
Normal Outputs
See Normal Outputs in 12.7 Flush Cache Ext (EAh)
Error Outputs
See Error Outputs in 12.54 Write DMA FUA Ext (3Dh)
The Write Multiple Ext command transfers one or more sectors from the host to the device, and then the data is
written to the disk media.
Command execution is identical to the Write Sector(s) Ext command except that an interrupt is generated for each
block (as defined by the Set Multiple command) instead of for each sector. The sectors are transferred through the
Data Register 16 bits at a time.
HGST Hard Disk Drive Specification
299
Write Multiple FUA Ext (CEh)
Table 242 Write Multiple FUA Ext Command (CEh)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
Reserved
The number of logical sectors to be transferred. A value of 0000h
indicates that 65536 logical sectors are to be transferred
LBA of first logical sector to be transferred
Bit Description
7 Obsolete
6 Shall be set to one
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 CEh
Normal Outputs
See Normal Outputs in 12.7 Flush Cache Ext (EAh)
Error Outputs
See Error Outputs in 12.54 Write DMA FUA Ext (3Dh)
The Write Multiple Ext command transfers one or more sectors from the host to the device, and then the data is
written to the disk media. This command provides the same function as the Write Multiple Ext command except
that the transferred data shall be written to the media before the ending status for this command is reported also
when write caching is enabled.
Command execution is identical to the Write Sector(s) Ext command except that an interrupt is generated for each
block (as defined by the Set Multiple command) instead of for each sector. The sectors are transferred through the
Data Register 16 bits at a time.
HGST Hard Disk Drive Specification
300
Write Sector(s) (30h/31h)
Table 243 Write Sector(s) Command (30h/31h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
Reserved
The number of logical sectors to be transferred. A value of 0000h
indicates that 65 536 logical sectors are to be transferred
LBA of first logical sector to be transferred
Bit Description
7 Obsolete
6 Shall be set to one
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 34h
Normal Outputs
See Normal Outputs in 12.7 Flush Cache Ext (EAh)
Error Outputs
See Error Outputs in 12.54 Write DMA FUA Ext (3Dh)
The Write Sector(s) command transfers one or more sectors from the host to the device, and then the data is written
to the disk media.
The sectors are transferred through the Data Register 16 bits at a time.
If an uncorrectable error occurs, the write will be terminated at the failing sector.
Output Parameters To The Device
Sector Count
The number of continuous sectors to be transferred. If zero is specified, then 256
sectors will be transferred.
Sector Number
The sector number of the first sector to be transferred. (L=0)
In LBA mode, this register contains LBA bits 0 - 7. (L=1)
Cylinder High/Low
The cylinder number of the first sector to be transferred. (L=0)
In LBA mode, this register contains LBA bits 8 - 15 (Low), 16 - 23 (High). (L=1)
H
The head number of the first sector to be transferred. (L=0)
In LBA mode, this register contains LBA bits 24 - 27. (L=1)
R
The retry bit, but this bit is ignored.
Input Parameters From The Device
Sector Count
The number of requested sectors not transferred. This will be zero, unless an
unrecoverable error occurs.
Sector Number
The sector number of the last transferred sector. (L=0)
In LBA mode, this register contains current LBA bits 0 - 7. (L=1)
Cylinder High/Low
The cylinder number of the last transferred sector. (L=0)
In LBA mode, this register contains current LBA bits 8 - 15 (Low), 16 - 23 (High). (L=1)
H
The head number of the last transferred sector. (L=0)
In LBA mode, this register contains current LBA bits 24 - 27. (L=1)
HGST Hard Disk Drive Specification
301
Write Sector(s) Ext (34h)
Table 244 Write Sector(s) Ext Command (34h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
Reserved
The number of logical sectors to be transferred. A value of 0000h
indicates that 65,536 logical sectors are to be transferred
LBA of first logical sector to be transferred
Bit Description
7 Obsolete
6 Shall be set to one
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 34h
Normal Outputs
See Normal Outputs in 12.7 Flush Cache Ext (EAh)
Error Outputs
See Error Outputs in 12.54 Write DMA FUA Ext (3Dh)
The Write Sector(s) Ext command transfers one or more sectors from the host to the device, and then the data is
written to the disk media.
The sectors are transferred through the Data Register 16 bits at a time.
If an uncorrectable error occurs, the write will be terminated at the failing sector.
HGST Hard Disk Drive Specification
302
Write Uncorrectable Ext (45h)
Table 245 Write Uncorrectable Ext Command (45h)
Command Input
Field
FEATURE
COUNT
LBA
DEVICE
Command
Description
Bit Description
15:8 Reserved
7:0 Uncorrectable options
Value Description
00h-54h Reserved
55h Create a pseudo-uncorrectable error with logging
56h-59h Reserved
5Ah Vendor specific
5Bh-A4h Reserved
A5h Vendor Specific
A6h-A9h Reserved
AAh Create a flagged error without logging
ABh-FFh Reserved
The number of logical sectors to be marked = 01h
LBA of first logical sector to be marked. In case that the device
supports Host Managed Zones feature set (see 10.20.3):
If LBA belongs to a sequential write required zone, LBA must
be less than that zone’s write pointer LBA
Bit Description
7 Obsolete
6 Shall be set to one
5 Obsolete
4 Transport Dependent
3:0 Reserved
7:0 45h
Note:
1) Pseudo uncorrectable sector (FEATURE = 55h) is processed like a flagged sector with the exception that the
device waits a predefined period of time before posting uncorrectable error. Time value is equivalent to the
amount of time for full step recovery.
2) As part of reading a pseudo uncorrectable logical sector (FEATURE = 55h), the device performs no error
logging.
Normal Outputs
See Normal Outputs in 12.6 Flush Cache (E7h)
Error Outputs
See Error Outputs in 12.11 Idle (E3h / 97h)
MAXIMUM number of supported flagged/pseudo error sectors is 128. The WRITE Uncorrectable Ext command is
aborted when flagged/pseudo error sectors are beyond the MAXIMUM number (= 128).
HGST Hard Disk Drive Specification
303
Zone management commands
Overview
Each zone management command (see Table 246) defines a mandatory or optional management function to be
processed by a zoned device using:
a) a command template using the COMMAND field input; and
b) a command protocol (see ACS-4).
Table 246 Zone management commands
Command
CLOSE ZONE EXT
FINISH ZONE EXT
OPEN ZONE EXT
REPORT ZONES EXT
RESET WRITE POINTER EXT
Key:
In = ZAC Management In (see 12.65.2)
Out = ZAC Management Out (see 12.65.3)
Support
Template
Mandatory
Mandatory
Mandatory
Mandatory
Mandatory
Out
Out
Out
In
Out
Command
protocol
Non-Data
Non-Data
Non-Data
DMA
Non-Data
Reference
12.65.4
12.65.5
12.65.6
12.65.7
12.65.8
ZAC Management In command template, 4Ah, DMA
Feature Set
This 48-bit command is for devices that support the Host Managed Zones feature set (see 10.20.3).
Description
Commands based on the ZAC Management In command template transfer one or more 512-byte pages of data
from the device to the host. The data to be transferred is specified by the contents of the ZM_ACTION field (see
12.65.2.3.3) and other command inputs.
The device processes any command that uses the ZAC Management In command template in the NCQ feature
set environment (see ACS-4) if that command is encapsulated in a RECEIVE FPDMA QUEUED command (see
ACS-4) with the inputs encapsulated as shown in 12.65.2.5.
Inputs
12.65.2.3.1
Overview
Table 247 shows the command inputs defined for all commands that use the ZAC Management In command
template.
HGST Hard Disk Drive Specification
304
Table 247 ZAC Management In command template inputs
Field
FEATURE
COUNT
LBA
DEVICE
COMMAND
12.65.2.3.2
Description
Bit Description
15:8 Action specific – See 12.65.2.3.2
7:5 Reserved
4:0 ZM_ACTION field – See 12.65.2.3.3
RETURN PAGE COUNT field – See 12.65.2.3.4
Action specific – See 12.65.2.3.2
Bit Description
7 Obsolete
6 Shall be set to one
5 Obsolete
4 Transport Dependent – See ACS-4
3:0 Reserved
7:0 4Ah
Action specific fields
Each zone management command (see 12.65.1) defines the usage, if any, of the action specific fields in that
command's inputs.
12.65.2.3.3
ZM_ACTION filed
The ZM_ACTION field (see Table 248) and the COMMAND field specify:
a) the zone management command that the device shall process;
b) the definitions for action specific fields (see 12.65.2.3.2) in that command's input, if any; and
c) the definitions of the normal outputs and error outputs for that command.
Table 248 ZM_ACTION field
Code
00h
01h
02h
03h
04h
Command
REPORT ZONES EXT
CLOSE ZONE EXT
FINISH ZONE EXT
OPEN ZONE EXT
RESET WRITE POINTER EXT
All others
Reference
12.65.7
12.65.4
12.65.5
12.65.6
12.65.8
Reserved
Key:
In = ZAC Management In (see 12.65.2)
Out = ZAC Management Out (see 12.65.3)
12.65.2.3.4
RETURN PAGE COUNT field
The device shall return the number of 512-byte pages specified in the RETURN PAGE COUNT field. Pad bytes
are appended as needed to meet this requirement. Pad bytes shall have a value of 00h.
Unless otherwise specified, if the RETURN PAGE COUNT field specifies fewer 512-byte pages than the device
has available to be returned, the device:
a) shall truncate the returned data to the specified number of 512-byte pages; and
b) shall not modify any of the returned data as a result of the truncation.
If the RETURN PAGE COUNT field specifies more 512-byte pages than the device has available to be returned,
then 512 bytes of all zeros shall be returned for those pages.
The value 0000h is reserved in the RETURN PAGE COUNT field.
Normal Outputs and Error Outputs
The normal outputs and error outputs for a command that uses the ZAC Management In command template
are defined based on the contents of the ZM_ACTION field (see 12.65.2.3).
HGST Hard Disk Drive Specification
305
NCQ encapsulation for a DMA ZAC Management In command
If a command that uses the ZAC Management In command template is processed in an NCQ environment
as subcommand 02h of RECEIVE FPDMA QUEUED command (see ACS-4), then the command inputs are
encapsulated as shown in Table 249.
Table 249 RECEIVE FPDMA QUEUED command encapsulation for the inputs used by the ZAC Management In
command
RECEIVE FPDMA QUEUED field (see ACS-4)
ZAC Management In field (see Table 247), if any
LBA
Reserved
FEATURE(15:0)
LBA
AUXILIARY (31:16)
AUXILIARY (15:0)
ZAC MANAGEMENT OUT command template, 9Fh, Non-Data or
DMA Out
Feature Set
This 48-bit command is for devices that support the Host Managed Zones feature set (see10.20.3)..
Description
Commands based on the ZAC Management Out command template transfer zero or more 512-byte pages of
data from the host to the device. What data is transferred is specified by the contents of the ZM_ACTION field
(see 12.65.2.3) and other command inputs.
The device processes any command that uses the ZAC Management Out command template in the NCQ feature
set environment (see ACS-4) if that:
a) Non-Data command is encapsulated in a NCQ NON-DATA command (see ACS-4) with the inputs
encapsulated as shown in 12.65.3.3.4; or
b) DMA command is encapsulated in a SEND FPDMA QUEUED command (see ACS-4) with the inputs
encapsulated as shown in 12.65.3.3.5
Inputs
12.65.3.3.1
Overview
Table 250 shows the command inputs defined for all commands that use the ZAC Management Out, Non-Data
command template or the ZAC Management Out, DMA command template.
Table 250 ZAC MANAGEMENT OUT command template inputs
Field
FEATURE
COUNT
LBA
DEVICE
COMMAND
Description
Bit Description
15:8 Action specific – See 12.65.2.3.2
7:5 Reserved
4:0 ZM_ACTION field – See 12.65.2.3.3
ZAC Management Out, Non-Data (see Table 246): Action specific – See 12.65.2.3.2
ZAC Management Out, DMA (see Table 246): PAGES TO SEND field – See
12.65.3.3.2
Action specific – See 12.65.2.3.2
Bit Description
7 Obsolete
6 Shall be set to one
5 Obsolete
4 Transport Dependent – See ACS-4
3:0 Reserved
7:0 9Fh
HGST Hard Disk Drive Specification
306
12.65.3.3.2
PAGES TO SEND field
The PAGES TO SEND field specifies the number of 512-byte pages that the device shall transfer from the host.
If the PAGES TO SEND field is cleared to zero in a ZAC MANAGEMENT OUT, DMA Out command, the device
shall return command aborted.
12.65.3.3.3
Normal Outputs and Error Outputs
The normal outputs and error outputs for a command that uses the ZAC Management Out command template
are defined based on the contents of the ZM_ACTION field (see 12.65.3.3 and 12.65.1)..
12.65.3.3.4
Non-Data NCQ encapsulation
If a command that uses the ZAC Management Out, Non-Data command template is processed in an NCQ
environment as subcommand 07h of NCQ NON-DATA command (see ACS-4), then the command inputs are
encapsulated as shown in Table 251.
Table 251 NCQ NON-DATA command encapsulation for the inputs used by the ZAC Management Out command
NCQ NON-DATA field (see ACS-4)
FEATURE(7:4)
FEATURE(15:8)
COUNT (15:8)
LBA
AUXILIARY (31:16)
AUXILIARY (15:0)
12.65.3.3.5
ZAC Management Out field (see Table 250), if any
Reserved
COUNT (7:0)
COUNT (15:8)
LBA
Reserved
FEATURE(15:0)
NCQ encapsulation for a DMA ZAC Management Out command
If a command that uses the ZAC Management Out, DMA command template is processed in an NCQ
environment as subcommand 03h of SEND FPDMA QUEUED command (see ACS-4), then the command inputs
are encapsulated as shown in Table 252
Table 252 SEND FPDMA QUEUED command encapsulation for the inputs used by the ZAC Management Out
command
SEND FPDMA QUEUED field (see ACS-4)
LBA
AUXILIARY (31:16)
AUXILIARY (15:0)
ZAC Management Out field (see Table 250), if any
LBA
Reserved
FEATURE(15:0)
CLOSE ZONE EXT command – 9Fh/01h, Non-Data
Feature Set
This 48-bit command is for devices that support the Host Managed Zones feature set (see 10.20.3).
Description
The CLOSE ZONE EXT command requests that one or more Close Zone functions (see 10.20.5.3.3.9) be
processed.
The CLOSE ZONE EXT command is based on the Non-Data ZAC Management Out command template (see
12.65.3) and is able to use the template's NCQ encapsulation capability.
Inputs
12.65.4.3.1
Overview
See Table 253 for the CLOSE ZONE EXT command inputs..
HGST Hard Disk Drive Specification
307
Table 253 CLOSE ZONE EXT command inputs
Field
FEATURE
COUNT
LBA
DEVICE
COMMAND
12.65.4.3.2
Description
Bit
Description
15:9
Reserved
8
CLOSE ALL bit – See 12.65.4.3.2
7:5
Reserved
4:0
ZM_ACTION field, shall be set to 01h – See 12.65.2.3.3
Reserved
ZONE ID field – See 12.65.4.3.3
Bit Description
7
Obsolete
6
Shall be set to one
5
Obsolete
4
Transport Dependent – See ACS-4
3:0
Reserved
7:0
9Fh
CLOSE ALL bit
If the CLOSE ALL bit is set to one, the device shall ignore the contents of the ZONE ID field and process a Close
Zone function (see 10.20.5.3.3.9) for each zone with a Zone Condition of IMPLICITLY OPENED or EXPLICITLY
OPENED.
If the CLOSE ALL bit is cleared to zero and the zone specified by the ZONE ID field (see 12.65.4.3.3) is in Zone
Condition:
a) IMPLICITLY OPENED, or EXPLICITLY OPENED, then the device shall process a Close Zone function (see
10.20.5.3.3.9) for the zone specified by the ZONE ID field;
b) EMPTY, CLOSED, or FULL, then the device shall:
A) not change the zone's state; and
B) return successful command completion;
12.65.4.3.3
ZONE ID field
The ZONE ID field specifies the lowest LBA of the write pointer zone for which the device shall process the
command specified by the ZM_ACTION field (see 12.65.2.3.3) and the COMMAND field.
If the ZONE ID field does not specify the lowest LBA of the write pointer zone, the device shall:
a) return command completion with an error; and
b) set the sense key to ILLEGAL REQUEST and the additional sense code to INVALID FIELD IN CDB (see
ACS-4 and SPC-5).
12.65.4.3.4
Normal Outputs
See Table 264.
12.65.4.3.5
Error Outputs
The device returns command completion with an error if the CLOSE ALL bit (see Table 253) is cleared to zero and
the ZONE ID field does not contain the lowest LBA of a write pointer zone as described in 12.65.4.3.3.
See Table 265
FINISH ZONE EXT command – 9Fh/02h, Non-Data
Feature Set
This 48-bit command is for devices that support the Host Managed Zones feature set (see 10.20.3).
Description
The FINISH ZONE EXT command requests that one or more Finish Zone function (see 10.20.5.3.3.10) be
processed.
HGST Hard Disk Drive Specification
308
The device may write the substitute data pattern to the media for unwritten LBAs.
The FINISH ZONE EXT command is based on the Non-Data ZAC Management Out command template (see
12.65.3) and is able to use the template's NCQ encapsulation capability.
Inputs
12.65.5.3.1
Overview
See table 21 for the FINISH ZONE EXT command inputs.
Table 254 FINISH ZONE EXT command inputs
Field
FEATURE
COUNT
LBA
DEVICE
COMMAND
12.65.5.3.2
Description
Bit
Description
15:9 Reserved
8 FINISH ALL bit – See 12.65.5.3.2
7:5 Reserved
4:0 ZM_ACTION field, shall be set to 02h – See 12.65.2.3.3
Reserved
ZONE ID field – See 12.65.4.3.3
Bit Description
7
Obsolete
6
Shall be set to one
5
Obsolete
4
Transport Dependent – See ACS-4
3:0
Reserved
7:0
9Fh
FINISH ALL bit
If the FINISH ALL bit is set to one, the device shall ignore the contents of the ZONE ID field and process a Finish
Zone function (see 10.20.5.3.3.10) for each zone with a Zone Condition of IMPLICITLY OPENED, EXPLICITLY
OPENED,or CLOSED.
If the FINISH ALL bit is cleared to zero and the zone specified by the ZONE ID field (see 12.65.4.3.3) is in Zone
Condition:
a) EMPTY, IMPLICITLY OPENED, EXPLICITLY OPENED, or CLOSED, then the device shall process a Finish
Zone function (see 10.20.5.3.3.10) for the zone specified by the ZONE ID field;
b) FULL, then the device shall:or
A) not change the zone's state; and
B) return successful command completion;
Normal Outputs
See Table 264
Error Outputs
The device returns command completion with an error if the FINISH ALL bit (see Table 254) is cleared to zero and
the ZONE ID field does not contain the lowest LBA of a write pointer zone as described in 12.65.4.3.3.
If the processing of any Finish Zone function (see 10.20.5.3.3.10) returns a failure, the device shall:
a) return command completion with an error; and
b) set the sense key to DATA PROTECT and the additional sense code to INSUFFICIENT ZONE
RESOURCES (see ACS-4 and SPC-5).
See Table 265.
HGST Hard Disk Drive Specification
309
OPEN ZONE EXT command – 9Fh/03h, Non-Data
Feature Set
This 48-bit command is for devices that support the Host Managed Zones feature set (see 10.20.3).
Description
The OPEN ZONE EXT command requests that one or more Explicitly Open Zone functions (see 10.20.5.3.3.8)
be processed.
The OPEN ZONE EXT command is based on the Non-Data ZAC Management Out command template
(see 12.65.3) and is able to use the template's NCQ encapsulation capability.
Inputs
12.65.6.3.1
See Table 255
Overview
OPEN ZONE EXT command inputs.
Table 255 OPEN ZONE EXT command inputs
Field
Description
FEATURE
Bit
15:9
8
7:5
4:0
COUNT
LBA
DEVICE
COMMAND
12.65.6.3.2
Description
Reserved
OPEN ALL bit – See 12.65.6.3.2
Reserved
ZM_ACTION field, shall be set to 03h – See 12.65.2.3.3
Reserved
ZONE ID field – See 12.65.4.3.3
Bit Description
7
Obsolete
6
Shall be set to one
5
Obsolete
4
Transport Dependent – See ACS-4
3:0
Reserved
7:0
9Fh
OPEN ALL bit
If the OPEN ALL bit is set to one, the device shall ignore the contents of the ZONE ID field and process an
Explicitly Open Zone function (see 10.20.5.3.3.8) for each zone with a Zone Condition of CLOSED.
If:
a) the device supports the Host Managed Zones feature set (see 10.20.3);
b) the OPEN ALL bit is set to one; and
c) the number of zones with a Zone Condition of EXPLICITLY OPENED plus the number of zones with a Zone
Condition of CLOSED is greater than the value in the MAXIMUM NUMBER OF OPEN SEQUENTIAL WRITE
REQUIRED ZONES field (see 12.20.7.10.3),
then the device:
a) shall not process any Explicitly Open Zone functions;
b) returns command completion with an error (see 12.65.6.5); and
c) sets the sense key to DATA PROTECT and the additional sense code to INSUFFICIENT ZONE
RESOURCES (see 12.65.6.5).
If the OPEN ALL bit is cleared to zero and the zone specified by the ZONE ID field (see 12.65.4.3.3) is in Zone
Condition:
a) EMPTY, IMPLICITLY OPENED, or CLOSED, then the device shall process an Explicitly Open Zone function
(see 10.20.5.3.3.8) for the zone specified by the ZONE ID field;
b) EXPLICITLY OPENED or FULL, then the device shall:
A) not change the zone's state; and
B) return successful command completion;
HGST Hard Disk Drive Specification
310
Normal Outputs
See Table 264
Error Outputs
The device returns command completion with an error if the OPEN ALL bit is cleared to zero and the ZONE ID
field does not contain the lowest LBA of a write pointer zone as described in 12.65.4.3.3.
If the processing of any Explicitly Open Zone function (see 10.20.5.3.3.8) returns a failure or too many zones
are required to be opened as a result of the OPEN ALL bit being set to one (see 12.65.6.3.2), then the device
shall:
a) return command completion with an error; and
b) set the sense key to DATA PROTECT and the additional sense code to INSUFFICIENT ZONE
RESOURCES (see ACS-4 and SPC-5).
See Table 265
REPORT ZONES EXT command – 4Ah/00h, DMA In
Feature Set
This 48-bit command is for devices that support the Host Managed Zones feature set (see 10.20.3).
Description
The REPORT ZONES EXT command returns the zone structure of a zoned device.
The REPORT ZONES EXT command is based on the ZAC MANAGEMENT IN command template (see
12.65.2.2) and is able to use the template's NCQ encapsulation capability.
Inputs
12.65.7.3.1
See Table 256
Overview
REPORT ZONES EXT command inputs
Table 256 REPORT ZONES EXT command inputs
Field
Description
FEATURE
Bit
15
14
13:8
7:5
4:0
COUNT
LBA
DEVICE
COMMAND
12.65.7.3.2
Description
PARTIAL bit – See 12.65.7.3.2 and 12.65.7.6.2
Reserved
REPORTING OPTIONS field – See 12.65.7.3.3
Reserved
ZM_ACTION field, shall be set to 00h – See 12.65.2.3.3
RETURN PAGE COUNT field – See 12.65.2.3.4
ZONE LOCATOR field – See 12.65.7.3.4
Bit Description
7
Obsolete
6
Shall be set to one
5
Obsolete
4
Transport Dependent – See ACS-4
3:0
Reserved
7:0
4Ah
PARTIAL bit
The PARTIAL bit modifies the definition of the ZONE LIST LENGTH field as described in 12.65.7.6.2
12.65.7.3.3
REPORTING OPTIONS field
The REPORTING OPTIONS field (see Table 257) specifies the information to be returned by the REPORT
ZONES EXT command.
HGST Hard Disk Drive Specification
311
Table 257 REPORTING OPTIONS field
Code
00h
01h
02h
03h
04h
05h
06h..0Fh
10h
11h
12h..3Fh
3Fh
12.65.7.3.4
Description
List the zones in the zoned device
List the zones with a Zone Condition of EMPTY
List the zones with a Zone Condition of IMPLICITLY OPENED
List the zones with a Zone Condition of EXPLICITLY OPENED
List the zones with a Zone Condition of CLOSED
List the zones with a Zone Condition of FULL
Reserved
List the zones with RWP Recommended set to true
List the zones with Non-Sequential Write Resources Active set to true
Reserved
List the zones with a Zone Condition of NOT WRITE POINTER
ZONE LOCATOR field
The ZONE LOCATOR field should specify the lowest LBA of the first zone to be reported.
If the ZONE LOCATOR field does not specify the lowest LBA of a zone, the first zone to be reported is the
zone that contains the LBA specified by the ZONE LOCATOR field.
If the ZONE LOCATOR field specifies an LBA that is greater than the native max address, then:
a) the command shall be terminated with the ERROR bit set to one and the ID NOT FOUND bit set to one
(see ACS-4); and
b) the sense key shall be set to ILLEGAL REQUEST and the additional sense code shall be set to LOGICAL
BLOCK ADDRESS OUT OF RANGE (see ACS-4 and SPC-5).
Normal Outputs
See Table 264
Error Outputs
See Table 265
Input From the Device to the Host Data Structure
12.65.7.6.1
Overview
The format of the data input from the device to the host (see Table 258) includes a zone descriptors list that
contains zone descriptor 0 through zone descriptor N.
Table 258 REPORT ZONES EXT inputs
Offset
0..3
4
Type
DWord
Byte
5..7
8..15
QWord
16..63
64..127
128..191
…
s–63..s
s+1..(512xpc–1)
Bytes
Bytes
Bytes
Bytes
Description
ZONE LIST LENGTH field (see 12.65.7.6.2)
Bits Description
7:4 Reserved
3:0 SAME field (see 12.65.7.6.3)
Reserved
Bits Description
63:48 Reserved
47:0 MAXIMUM LBA field (see 12.65.7.6.4)
Reserved
Zone descriptor 0 (see 12.65.7.6.6)
Zone descriptor 1
…
Last zone descriptor N
Zero padding (see 12.65.2.3.4)
HGST Hard Disk Drive Specification
312
12.65.7.6.2
ZONE LIST LENGTH field
The ZONE LIST LENGTH field contains the length in bytes of the zone descriptors list (i.e., bytes 63..s in Table
258). Based on the value of the PARTIAL bit (see 12.65.7.3.2), the zone descriptors in the zone descriptors list
are all of the zone descriptors or a subset of all the zone descriptors associated with each zone specified by
the REPORTING OPTIONS field (see 12.65.7.3.3) that includes an LBA that is greater than or equal to the
LBA specified by the ZONE LOCATOR field (see 12.65.7.3.4).
If the PARTIAL bit (see Table 256) is:
a) cleared to zero, then the ZONE LIST LENGTH field shall:
A) contain the length in bytes of the zone descriptors list (i.e., s–63); and
B) not be altered based on the RETURN PAGE COUNT field (see 12.65.2.3.4);
or
b) set to one, then the ZONE LIST LENGTH field shall contain the lesser of:
A) 64 multiplied by the number of zones that:
a) include a lowest LBA that is greater than or equal to the lowest LBA of the zone specified by the
ZONE LOCATOR field (see 12.65.7.3.4); and
b) match the criteria specified by the REPORTING OPTIONS field (see 12.65.7.3.3);
or
B) (contents of the RETURN PAGE COUNT field x 512) – 64.
The zone list length is the number of zones reported multiplied by 64.
12.65.7.6.3
SAME field
The SAME field (see Table 259) indicates same zone type and same zone length relationships between the
zone described by zone descriptor 0 (see Table 258) and the zones described by the other zone descriptors in
the zone descriptors list in the input from the device to the host. If the ZONE LIST LENGTH field is zero then
the SAME field is invalid and should be ignored by the host.
Table 259 SAME field
Code
0h
1h
2h
all others
Description
The zone type and zone length in each zone descriptor in the zone descriptors list
may be different.
The zone type and zone length in each zone descriptor in the zone descriptors list
are equal to the zone type and zone length indicated by zone descriptor 0.
The zone type in each zone descriptor in the zone descriptors list is equal to the
zone type indicated by zone descriptor 0. The zone length of each zone except the
last zone is equal to the zone length indicated by zone descriptor 0. The zone
length of the last zone is different than the zone length of the other zones.
Reserved
HGST Hard Disk Drive Specification
313
12.65.7.6.4
MAXIMUM LBA field
The MAXIMUM LBA field indicates the LBA of the last logical sector on the device, including all logical sectors in
all zones.
12.65.7.6.5
Zero padding
The total bytes input from the device to the host shall be:
512 x pc
where:
pc is the contents of the RETURN PAGE COUNT field (see 12.65.2.3.4) in the command inputs (see Table
258).
The device shall insert as many bytes cleared to zero after the last zone descriptor as are required to make total
bytes input from the device to the host equal of 512 x pc.
12.65.7.6.6
12.65.7.6.6.1
Zone descriptor format
Overview
Each zone descriptor (see Table 260) describes one zone.
Table 260 Zone descriptor format
Offset
0
Type
Byte
1
Byte
2..7
8..15
Byte
QWord
16..23
QWord
24..31
QWord
32..63
Byte
12.65.7.6.6.2
Description
Bit Meaning
7:4 Reserved
3:0 ZONE TYPE field (see 12.65.7.6.6.2)
Bit Meaning
7:4 ZONE CONDITION field (see 12.65.7.6.6.3)
3:2 Reserved
1 NON-SEQ bit (see12.65.7.6.6.4)
0 RESET bit (see 12.65.7.6.6.5)
Reserved
Bits Description
63:48 Reserved
47:0 ZONE LENGTH field (see 12.65.7.6.6)
Bits Description
63:48 Reserved
47:0 ZONE START LBA field (see 12.65.7.6.6.7)
Bits Description
63:48 Reserved
47:0 WRITE POINTER LBA field (see 12.65.7.6.6.8)
Reserved
ZONE TYPE field
The ZONE TYPE field (see Table 261) indicates the type of zone.
Table 261 ZONE TYPE field
Code
Description
0h
Reserved
1h
Conventional
2h
Sequential Write Required
3h..Fh
Reserved
HGST Hard Disk Drive Specification
314
12.65.7.6.6.3
ZONE CONDITION field
The ZONE CONDITION field (see Table 262) indicates Zone Condition (see 10.20.4.3).
Table 262 ZONE CONDITION field
Code
Zone Condition
0h
1h
2h
3h
4h
5h to Ch
Dh
Eh
Fh
NOT WRITE POINTER
EMPTY
IMPLICITLY OPENED
EXPLICITLY OPENED
CLOSED
Reserved
READ ONLY
FULL
OFFLINE
12.65.7.6.6.4
NON-SEQ bit
The value of the NON-SEQ bit is always zero.
12.65.7.6.6.5
RESET bit
The value of the RESET bit is always zero.
12.65.7.6.6.6
ZONE LENGTH field
The ZONE LENGTH field indicates the number of logical sectors in the zone described by this zone descriptor.
12.65.7.6.6.7
ZONE START LBA field
The ZONE START LBA field indicates the lowest LBA in the zone described by this zone descriptor.
12.65.7.6.6.8
WRITE POINTER LBA field
The WRITE POINTER LBA field indicates the starting LBA that the host should specify in the next write command
associated with the zone described by this zone descriptor.
The host should ignore the contents of the WRITE POINTER LBA field if the ZONE CONDITION field indicates that
are invalid (see Table 262).
HGST Hard Disk Drive Specification
315
RESET WRITE POINTERS EXT command – 9Fh/04h, Non-Data
Feature Set
This 48-bit command is for devices that support the Host Managed Zones feature set (see 10.20.3).
Description
The RESET WRITE POINTER EXT command requests that one or more Reset Write Pointer functions (see
10.20.5.3.3.11) be processed.
The RESET WRITE POINTER EXT command is based on the Non-Data ZAC Management Out command template
(see 12.65.3) and is able to use the template's NCQ encapsulation capability.
The RESET WRITE POINTER EXT command clears pseudo unrecovered attribute (see 12.64) of all logical sectors
contained in the zone.
Inputs
12.65.8.3.1
See Table 263
Overview
RESET WRITE POINTERS EXT command inputs.
Table 263 RESET WRITE POINTERS EXT command inputs
Field
FEATURE
COUNT
LBA
DEVICE
COMMAND
12.65.8.3.2
Description
Bit
Description
15:9
Reserved
8
RESET ALL bit – See 12.65.8.3.2
7:5
Reserved
4:0
ZM_ACTION field, shall be set to 04h – See 12.65.2.3.3
Reserved
ZONE ID field – See 12.65.4.3.3
Bit Description
7
Obsolete
6
Shall be set to one
5
Obsolete
4
Transport Dependent – See ACS-4
3:0
Reserved
7:0
9Fh
RESET All bit
If the RESET ALL bit is set to one, the device shall ignore the contents of the ZONE ID field and process a Reset
Write Pointer function (see 10.20.5.3.3.11) for each zone with a Zone Condition of IMPLICITLY OPENED,
EXPLICITLY OPENED, CLOSED, or FULL.
If the RESET ALL bit is cleared to zero and the zone specified by the ZONE ID field (see 12.65.4.3.3) is in Zone
Condition:
a) IMPLICITLY OPENED, EXPLICITLY OPENED, CLOSED, or FULL, then the device shall process a Reset
Write Pointer function (see 10.20.5.3.3.11) for the zone specified by the ZONE ID field;
b) EMPTY, then the device shall:
A) not change the zone's state; and
B) return successful command completion;
Normal Outputs
See Table 264.
Error Outputs
The device returns command completion with an error if the RESET ALL bit is cleared to zero and the ZONE ID
field does not contain the lowest LBA of a write pointer zone as described in 12.65.4.3.3/ See Table 265.
HGST Hard Disk Drive Specification
316
Normal and Error Outputs
Overview
The commands listed in 12.65 each have subclauses labeled Normal Outputs and Error Outputs.
Subclauses 12.65.9.2 and 0 document the return data format for all the commands described in 12.65. Each
command in 12.65 may provide additional information about a normal or error output, however, all the information
specified in 12.65.9 shall also apply to the command.
The references preceding each table indicate each command that generates the output in the table.
Normal Outputs
The tables in this subclause specify the Normal Outputs a command returns.
Table 264 specifies the normal outputs for the commands defined in 12.65.4, 12.65.5, 12.65.6, 12.65.7, and
12.65.8.
Table 264 Generic ZAC Extended Normal Output
HGST Hard Disk Drive Specification
317
Error Outputs
The tables in this subclause specify the Error Outputs a command returns. References to these tables are found
in 12.65.
If the Sense Data Reporting feature set is enabled and there is sense data available, then the ERROR field shall
be set to 7Fh and the ERROR bit in the STATUS field shall be set to one. If the Sense Data Reporting feature set
has been enabled with the SENSE DATA ENABLED bit set to one (see ACS-4), then the device notifies the host
of additional information by setting the SENSE DATA AVAILABLE bit in the STATUS field to one.
Table 265 specifies the error outputs for the commands defined in 12.65.4, 12.65.5, 12.65.6, 12.65.7, and
12.65.8.
Table 265 Generic ZAC Extended Error Output
HGST Hard Disk Drive Specification
318
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertisement