1、 Edition 1.0 2015-06 ISO/IEC 17760-101 INTERNATIONAL STANDARD Information technology AT attachment 8 Part 101: ATA/ATAPI Command Set (ACS) ISO/IEC 17760-101:2015-06(en) colour inside THIS PUBLICATION IS COPYRIGHT PROTECTED Copyright 2015 ISO/IEC, Geneva, Switzerland All rights reserved. Unless other
2、wise specified, no part of this publication may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying and microfilm, without permission in writing from either IEC or IECs member National Committee in the country of the requester. If you have any ques
3、tions about ISO/IEC copyright or have an enquiry about obtaining additional rights to this publication, please contact the address below or your local IEC member National Committee for further information. IEC Central Office Tel.: +41 22 919 02 11 3, rue de Varemb Fax: +41 22 919 03 00 CH-1211 Genev
4、a 20 infoiec.ch Switzerland www.iec.ch About the IEC The International Electrotechnical Commission (IEC) is the leading global organization that prepares and publishes International Standards for all electrical, electronic and related technologies. About IEC publications The technical content of IEC
5、 publications is kept under constant review by the IEC. Please make sure that you have the latest edition, a corrigenda or an amendment might have been published. IEC Catalogue - webstore.iec.ch/catalogue The stand-alone application for consulting the entire bibliographical information on IEC Intern
6、ational Standards, Technical Specifications, Technical Reports and other documents. Available for PC, Mac OS, Android Tablets and iPad. IEC publications search - www.iec.ch/searchpub The advanced search enables to find IEC publications by a variety of criteria (reference number, text, technical comm
7、ittee,). It also gives information on projects, replaced and withdrawn publications. IEC Just Published - webstore.iec.ch/justpublished Stay up to date on all new IEC publications. Just Published details all new publications released. Available online and also once a month by email. Electropedia - w
8、ww.electropedia.org The worlds leading online dictionary of electronic and electrical terms containing more than 30 000 terms and definitions in English and French, with equivalent terms in 15 additional languages. Also known as the International Electrotechnical Vocabulary (IEV) online. IEC Glossar
9、y - std.iec.ch/glossary More than 60 000 electrotechnical terminology entries in English and French extracted from the Terms and Definitions clause of IEC publications issued since 2002. Some entries have been collected from earlier publications of IEC TC 37, 77, 86 and CISPR. IEC Customer Service C
10、entre - webstore.iec.ch/csc If you wish to give us your feedback on this publication or need further assistance, please contact the Customer Service Centre: csciec.ch. ISO/IEC 17760-101 Edition 1.0 2015-06 INTERNATIONAL STANDARD Information technology AT attachment 8 Part 101: ATA/ATAPI Command Set
11、(ACS) INTERNATIONAL ELECTROTECHNICAL COMMISSION ICS 35.200 ISBN 978-2-8322-2695-7 Warning! Make sure that you obtained this publication from an authorized distributor. colour inside 2 ISO/IEC 17760-101:2015 ISO/IEC 2015 CONTENTS FOREWORD. 14 INTRODUCTION .16 1 Scope 17 2 Normative references 17 3 Te
12、rms, definitions and conventions 18 3.1 Terms and definitions .18 3.2 Conventions 25 3.2.1 Overview .25 3.2.2 Precedence .25 3.2.3 Lists 26 3.2.4 Keywords 26 3.2.5 Numbering 27 3.2.6 Bit conventions 28 3.2.7 State diagram conventions 28 3.2.8 Byte, word, DWord, and QWord Relationships 29 3.2.9 ATA s
13、tring convention .31 4 Feature set definitions .32 4.1 Overview 32 4.2 General feature set .32 4.3 The PACKET feature set .33 4.3.1 Overview .33 4.3.2 Identification of PACKET feature set devices 34 4.3.3 Signature for ATAPI devices .34 4.3.4 The PACKET command 34 4.4 48-bit Address feature set .34
14、4.5 Advanced Power Management (APM) feature set .35 4.6 Automatic Acoustic Management (AAM) feature set 35 4.7 CompactFlash Association (CFA) feature set 35 4.8 Device Configuration Overlay (DCO) feature set .36 4.9 Free-fall Control feature set 38 4.10 General Purpose Logging (GPL) feature set .38
15、4.11 Host Protected Area (HPA) feature set .39 4.11.1 HPA overview 39 4.11.2 HPA security extensions 39 4.11.3 28-bit and 48-bit HPA commands interactions .39 4.11.4 IDENTIFY DEVICE data 41 4.11.5 Determination of SET MAX security extension status 41 4.11.6 HPA State Transition Diagrams .41 4.12 Lon
16、g Logical Sector (LLS) feature set .56 4.13 Long Physical Sector (LPS) feature set .58 4.14 Media Card Pass Through Command feature set 60 4.15 Native Command Queuing (NCQ) feature set .60 4.15.1 Overview .60 4.15.2 Command Phases .61ISO/IEC 17760-101:2015 ISO/IEC 2015 3 4.16 NV Cache feature set 61
17、 4.16.1 Overview .61 4.16.2 Pinning 61 4.16.3 NV Cache Management 62 4.16.4 Rotating media state after power-on event 62 4.17 NV Cache Power Management feature set .62 4.18 Power Management feature set 63 4.18.1 Overview .63 4.18.2 Power management commands 63 4.18.3 Standby timer 64 4.18.4 Power mo
18、des 64 4.19 Power-Up In Standby (PUIS) feature set .66 4.20 Security feature set .66 4.20.1 Overview .66 4.20.2 Passwords 67 4.20.3 Master Password Capability 67 4.20.4 Frozen Mode .67 4.20.5 Commands 67 4.20.6 IDENTIFY DEVICE data 67 4.20.7 Security initial setting 68 4.20.8 Password rules 68 4.20.
19、9 Password attempt counter .68 4.20.10 Security states 69 4.20.11 Master Password Identifier feature 78 4.21 Self-Monitoring, Analysis, and Reporting Technology (SMART) feature set 79 4.21.1 Overview .79 4.21.2 Device SMART data structure .79 4.21.3 Background data collection .79 4.21.4 Off-line/Cap
20、tive mode data collection 79 4.21.5 Threshold exceeded condition .79 4.21.6 SMART feature set commands 79 4.21.7 SMART operation with power management modes .79 4.21.8 SMART device error log reporting .80 4.22 Software Settings Preservation (SSP) feature set .80 4.23 Streaming feature set 81 4.23.1
21、Streaming feature set overview .81 4.23.2 Streaming commands 81 4.24 Tagged Command Queuing (TCQ) feature set 82 4.24.1 Overview .82 4.24.2 Queueing 83 4.25 Trusted Computing feature set 83 4.26 Write-Read-Verify feature set 84 5 ATA protocols 86 6 Normal and Error Output field descriptions 87 6.1 O
22、verview 87 6.2 Status field 87 6.2.1 Overview .87 6.2.2 Busy bit .87 6.2.3 Check Condition bit .87 4 ISO/IEC 17760-101:2015 ISO/IEC 2015 6.2.4 Data Request bit .87 6.2.5 Deferred Write Error bit .87 6.2.6 Device Fault bit .88 6.2.7 Device Ready bit .88 6.2.8 Error bit .88 6.2.9 Service bit .88 6.2.1
23、0 Stream Error bit .88 6.2.11 Transport Dependent (TD) 88 6.3 Error field 89 6.3.1 Overview .89 6.3.2 Abort bit 89 6.3.3 Attempted Partial Range Removal bit 89 6.3.4 Command Completion Time Out bit .89 6.3.5 End of Media bit 89 6.3.6 ID Not Found bit 89 6.3.7 Illegal Length Indicator bit .90 6.3.8 I
24、nsufficient LBA Range Entries Remaining bit .90 6.3.9 Insufficient NV Cache Space bit 90 6.3.10 Interface CRC bit .90 6.3.11 Media Error bit 90 6.3.12 Sense Key field .90 6.3.13 Uncorrectable Error bit 90 6.4 Interrupt Reason field .90 6.4.1 Overview .90 6.4.2 Command/Data bit 90 6.4.3 Input/Output
25、(I/O) bit .90 6.4.4 Release bit 91 6.4.5 Tag field 91 6.5 Count field 91 6.5.1 Overview .91 6.5.2 NCQ Tag field .91 6.6 SActive field 91 6.7 SATA Status .91 7 Command descriptions 92 7.1 Command description introduction 92 7.1.1 Overview .92 7.1.2 Command Name - Command Code /Subcommand Code, Comman
26、d Protocol 92 7.1.3 Feature Set .92 7.1.4 Inputs 93 7.1.5 Normal Outputs .93 7.1.6 Error Outputs 94 7.1.7 Input From the Device to the Host Data Structure .94 7.1.8 Output From the Host to the Device Data Structure .95 7.1.9 Unsupported commands .95 7.2 CFA ERASE SECTORS - C0h, Non-Data .95 7.3 CFA
27、REQUEST EXTENDED ERROR CODE - 03h, Non-Data .96 7.4 CFA TRANSLATE SECTOR - 87h, PIO Data-In 98 7.5 CFA WRITE MULTIPLE WITHOUT ERASE - CDh, PIO Data-Out 99 7.6 CFA WRITE SECTORS WITHOUT ERASE - 38h, PIO Data-Out . 100ISO/IEC 17760-101:2015 ISO/IEC 2015 5 7.7 CHECK MEDIA CARD TYPE - D1h, Non-Data . 10
28、1 7.8 CHECK POWER MODE - E5h, Non-Data . 102 7.9 CONFIGURE STREAM - 51h, Non-Data . 103 7.10 Device Configuration Overlay (DCO) . 104 7.10.1 DCO Overview 104 7.10.2 DEVICE CONFIGURATION FREEZE LOCK - B1h/C1h, Non-Data 105 7.10.3 DEVICE CONFIGURATION IDENTIFY - B1h/C2h, PIO Data-In . 106 7.10.4 DEVIC
29、E CONFIGURATION RESTORE - B1h/C0h, Non-Data .110 7.10.5 DEVICE CONFIGURATION SET - B1h/C3h, PIO Data-Out 111 7.11 DEVICE RESET - 08h, Device Reset 118 7.12 DOWNLOAD MICROCODE - 92h, PIO Data-Out/Non-Data 119 7.13 EXECUTE DEVICE DIAGNOSTIC - 90h, Execute Device Diagnostic 121 7.14 FLUSH CACHE - E7h,
30、Non-Data 122 7.15 FLUSH CACHE EXT - EAh, Non-Data 124 7.16 IDENTIFY DEVICE - ECh, PIO Data-In . 125 7.17 IDENTIFY PACKET DEVICE - A1h, PIO Data-In 163 7.18 IDLE - E3h, Non-Data 181 7.19 IDLE IMMEDIATE - E1h, Non-Data . 182 7.20 Non-Volatile Cache 183 7.20.1 NV Cache Overview 183 7.20.2 NV Cache Powe
31、r Management Overview 184 7.20.3 ADD LBA(S) TO NV CACHE PINNED SET - B6h/10h, DMA. 184 7.20.4 FLUSH NV CACHE - B6h/14h, Non-Data 186 7.20.5 NV CACHE DISABLE- B6h/16h, Non-Data 187 7.20.6 NV CACHE ENABLE - B6h/15h, Non-Data 188 7.20.7 QUERY NV CACHE MISSES - B6h/13h, DMA 189 7.20.8 QUERY NV CACHE PIN
32、NED SET - B6h/12h, DMA 191 7.20.9 REMOVE LBA(S) FROM NV CACHE PINNED SET - B6h/11h, DMA/Non-Data. 192 7.20.10 RETURN FROM NV CACHE POWER MODE - B6h/01h, Non-Data . 194 7.20.11 SET NV CACHE POWER MODE - B6h/00h, Non-Data. 195 7.21 NOP - 00h, Non-Data . 196 7.22 PACKET - A0h, Packet 197 7.23 READ BUFF
33、ER - E4h, PIO Data-In . 199 7.24 READ DMA - C8h, DMA 200 7.25 READ DMA EXT - 25h, DMA . 201 7.26 READ DMA QUEUED - C7h, DMA Queued 202 7.27 READ DMA QUEUED EXT- 26h, DMA Queued 203 7.28 READ FPDMA QUEUED - 60h, DMA Queued 205 7.29 READ LOG EXT - 2Fh, PIO Data-In 206 7.30 READ LOG DMA EXT - 47h, DMA
34、207 7.31 READ MULTIPLE - C4h, PIO Data-In 208 7.32 READ MULTIPLE EXT - 29h, PIO Data-In 209 7.33 READ NATIVE MAX ADDRESS - F8h, Non-Data . 210 7.34 READ NATIVE MAX ADDRESS EXT - 27h, Non-Data . 211 7.35 READ SECTOR(S) - 20h, PIO Data-In 212 7.36 READ SECTOR(S) EXT - 24h, PIO Data-In 213 7.37 READ ST
35、REAM DMA EXT - 2Ah, DMA . 214 6 ISO/IEC 17760-101:2015 ISO/IEC 2015 7.38 READ STREAM EXT - 2Bh, PIO Data-In . 216 7.39 READ VERIFY SECTOR(S) - 40h, Non-Data 217 7.40 READ VERIFY SECTOR(S) EXT - 42h, Non-Data 218 7.41 SECURITY DISABLE PASSWORD - F6h, PIO Data-Out 219 7.42 SECURITY ERASE PREPARE - F3h
36、, Non-Data . 220 7.43 SECURITY ERASE UNIT - F4h, PIO Data-Out . 221 7.44 SECURITY FREEZE LOCK - F5h, Non-Data 223 7.45 SECURITY SET PASSWORD - F1h, PIO Data-Out 224 7.46 SECURITY UNLOCK - F2h, PIO Data-Out 225 7.47 SERVICE - A2h, DMA Queued 227 7.48 SET FEATURES - EFh, Non-Data . 228 7.48.3 Enable/d
37、isable 8-bit PIO data transfer .230 7.48.4 Enable/disable volatile write cache 230 7.48.5 Set transfer mode 230 7.48.6 Enable/disable the APM feature set .231 7.48.7 Enable/disable the PUIS feature set 232 7.48.8 PUIS feature set device spin-up 232 7.48.9 Enable/disable CFA power mode 1 .232 7.48.10
38、 Enable/Disable Write-Read-Verify feature set 233 7.48.11 Enable/disable the AAM feature set .233 7.48.12 Set Maximum Host Interface Sector Times 234 7.48.13 Enable/disable read look-ahead 234 7.48.14 Enable/disable release interrupt 235 7.48.15 Enable/disable SERVICE interrupt 235 7.48.16 Enable/di
39、sable reverting to defaults .235 7.48.17 Enable/Disable the Free-fall Control feature set 235 7.48.18 Enable/Disable SATA feature 235 7.49 SET MAX . 237 7.49.2 SET MAX ADDRESS - F9h, Non-Data. 238 7.49.3 SET MAX FREEZE LOCK F9h/04h, Non-Data . 240 7.49.4 SET MAX LOCK - F9h/02h, Non-Data . 241 7.49.5
40、 SET MAX SET PASSWORD - F9h/01h, PIO Data-Out 242 7.49.6 SET MAX UNLOCK - F9h/03h, PIO Data-Out 243 7.50 SET MAX ADDRESS EXT - 37h, Non-Data 245 7.51 SET MULTIPLE MODE - C6h, Non-Data . 246 7.52 SLEEP - E6h, Non-Data . 247 7.53 SMART . 248 7.53.2 SMART DISABLE OPERATIONS - B0h/D9h, Non-Data 249 7.53
41、.3 SMART ENABLE/DISABLE ATTRIBUTE AUTOSAVE - B0h/D2h, Non-Data . 250 7.53.4 SMART ENABLE OPERATIONS - B0h/D8h, Non-Data. 251 7.53.5 SMART EXECUTE OFF-LINE IMMEDIATE - B0h/D4h, Non-Data 253 7.53.6 SMART READ DATA - B0h/D0h, PIO Data-In . 257 7.53.7 SMART READ LOG - B0h/D5h, PIO Data-In . 262 7.53.8 S
42、MART RETURN STATUS - B0h/DAh, Non-Data. 263 7.53.9 SMART WRITE LOG - B0h/D6h, PIO Data-Out. 264 7.54 STANDBY - E2h, Non-Data . 265 7.55 STANDBY IMMEDIATE - E0h, Non-Data 266 7.56 TRUSTED NON-DATA - 5Bh, Non-Data . 267ISO/IEC 17760-101:2015 ISO/IEC 2015 7 7.57 TRUSTED RECEIVE - 5Ch, PIO Data-In . 268
43、 7.58 TRUSTED RECEIVE DMA - 5Dh, DMA . 271 7.59 TRUSTED SEND - 5Eh, PIO Data-Out 273 7.60 TRUSTED SEND DMA - 5Fh, DMA . 275 7.61 WRITE BUFFER - E8h, PIO Data-Out . 276 7.62 WRITE DMA - CAh, DMA 277 7.63 WRITE DMA EXT - 35h, DMA . 278 7.64 WRITE DMA FUA EXT - 3Dh, DMA . 279 7.65 WRITE DMA QUEUED - CC
44、h, DMA Queued 279 7.66 WRITE DMA QUEUED EXT - 36h, DMA Queued . 282 7.67 WRITE DMA QUEUED FUA EXT - 3Eh, DMA Queued . 284 7.68 WRITE FPDMA QUEUED - 61h, DMA Queued . 285 7.69 WRITE LOG EXT - 3Fh, PIO Data-Out 286 7.70 WRITE LOG DMA EXT - 57h, DMA . 287 7.71 WRITE MULTIPLE - C5h, PIO Data-Out . 288 7
45、.72 WRITE MULTIPLE EXT - 39h, PIO Data-Out 289 7.73 WRITE MULTIPLE FUA EXT - CEh, PIO Data-Out . 290 7.74 WRITE SECTOR(S) - 30h, PIO Data-Out 291 7.75 WRITE SECTOR(S) EXT - 34h, PIO Data-Out 292 7.76 WRITE STREAM DMA EXT - 3Ah, DMA . 293 7.77 WRITE STREAM EXT - 3Bh, PIO Data-Out 295 7.78 WRITE UNCOR
46、RECTABLE EXT - 45h, Non-Data 296 8 SCT Command Transport 298 8.1 Overview 298 8.1.1 General .298 8.1.2 SCT command nesting and interspersing with standard commands 298 8.1.3 Resets .298 8.2 Processing SCT commands . 299 8.2.1 Processing SCT commands overview .299 8.2.2 SCT capability identification
47、299 8.2.3 SCT command transfer .299 8.2.4 SCT data transfer 303 8.2.5 SCT status 305 8.3 SCT Command Set 309 8.3.1 Overview .309 8.3.2 SCT Read/Write Long command 310 8.3.3 SCT Write Same command 312 8.3.4 SCT Error Recovery Control command 315 8.3.5 SCT Feature Control command 317 8.3.6 SCT Data Ta
48、ble command. 320 9 Normal and Error Outputs 324 9.1 Overview 324 9.2 Normal Outputs .324 9.3 Error Outputs 344 Annex A (normative) Log definitions 386 8 ISO/IEC 17760-101:2015 ISO/IEC 2015 Annex B (informative) Command Set summary. 407 Annex C (informative) Design and programming considerations for
49、large physical sector devices432 Annex D (informative) How to use SCT commands 434 Annex E (informative) Implementation Guidelines For 1 024/4 096 Byte Sector Sizes . 442 Bibliography 448ISO/IEC 17760-101:2015 ISO/IEC 2015 9 FIGURES Figure 1 ATA document relationships. 16 Figure 2 State diagram convention . 28 Figure 3 Byte, word, DWord and QWord relationships . 29 Figure 4 Device Configuration Overlay state diagram 37 Figure 5 HPA Not Set . 42 Figure 6 HPA Set (28). 43 Figure 7 HPA Set (48). 44 Figure 8