1、American National StandardDeveloped byfor Information Technology ATA/ATAPI Command Set - 3 (ACS-3)INCITS 522-2014INCITS 522-2014INCITS 522-2014American National Standardfor Information Technology ATA/ATAPI Command Set - 3(ACS-3)SecretariatInformation Technology Industry CouncilApproved June 25, 2014
2、American National Standards Institute, Inc.AbstractThis standard specifies the AT Attachment command set used to communicate between host systems andstorage devices. This provides a common command set for systems manufacturers, system integrators,software suppliers, and suppliers of storage devices.
3、 The AT Attachment command set includes thePACKET feature set implemented by devices commonly known as ATAPI devices. This standard main-tains a high degree of compatibility with the ATA/ATAPI Command Set - 2 (ACS-2).Approval of an American National Standard requires review by ANSI that therequireme
4、nts for due process, consensus, and other criteria for approval havebeen met by the standards developer.Consensus is established when, in the judgement of the ANSI Board ofStandards Review, substantial agreement has been reached by directly andmaterially affected interests. Substantial agreement mea
5、ns much more thana simple majority, but not necessarily unanimity. Consensus requires that allviews and objections be considered, and that a concerted effort be madetowards their resolution.The use of American National Standards is completely voluntary; theirexistence does not in any respect preclud
6、e anyone, whether he has approvedthe standards or not, from manufacturing, marketing, purchasing, or usingproducts, processes, or procedures not conforming to the standards.The American National Standards Institute does not develop standards andwill in no circumstances give an interpretation of any
7、American NationalStandard. Moreover, no person shall have the right or authority to issue aninterpretation of an American National Standard in the name of the AmericanNational Standards Institute. Requests for interpretations should beaddressed to the secretariat or sponsor whose name appears on the
8、 titlepage of this standard.CAUTION NOTICE: This American National Standard may be revised orwithdrawn at any time. The procedures of the American National StandardsInstitute require that action be taken periodically to reaffirm, revise, orwithdraw this standard. Purchasers of American National Stan
9、dards mayreceive current information on all standards by calling or writing the AmericanNational Standards Institute.American National StandardPublished byAmerican National Standards Institute, Inc.25 West 43rd Street, New York, NY 10036Copyright 2014 by Information Technology Industry Council (ITI)
10、All rights reserved.No part of this publication may be reproduced in anyform, in an electronic retrieval system or otherwise,without prior written permission of ITI, 1101 K Street NW, Suite 610, Washington, DC 20005. Printed in the United States of AmericaCAUTION: The developers of this standard hav
11、e requested that holders of patents that may berequired for the implementation of the standard disclose such patents to the publisher. However,neither the developers nor the publisher have undertaken a patent search in order to identifywhich, if any, patents may apply to this standard. As of the dat
12、e of publication of this standardand following calls for the identification of patents that may be required for the implementation ofthe standard, no such claims have been made. No further patent search is conducted by the de-veloper or publisher in respect to any standard it processes. No represent
13、ation is made or impliedthat licenses are not required to avoid infringement in the use of this standard.iContentsPageContentsiTables . xiiiFigures xixForewordxxIntroduction . xxiii1 Scope . 12 Normative references . 22.1 General . 22.2 Approved references 22.3 References under development . 22.4 Ot
14、her references . 33 Definitions, abbreviations, and conventions . 43.1 Definitions and abbreviations . 43.2 Symbols and abbreviations 93.3 Conventions 103.3.1 Overview . 103.3.2 Precedence . 103.3.3 Lists . 103.3.4 Keywords 113.3.5 Numbering . 123.3.6 Bit conventions 133.3.7 Number range convention
15、. 133.3.8 State diagram conventions 133.3.9 Byte, word, DWord, QWord, and DQWord Relationships . 153.3.10 ATA string convention . 163.3.11 Offset Convention . 174 Feature set definitions 184.1 Overview . 184.1.1 Feature set summary 184.1.2 Capacity reporting . 194.2 General feature set . 204.3 The P
16、ACKET feature set 204.3.1 Overview . 204.3.2 Identification of PACKET feature set devices . 214.3.3 Signature for ATAPI devices . 214.3.4 The PACKET command 214.4 48-bit Address feature set 214.5 Accessible Max Address Configuration feature set 224.5.1 Overview . 224.5.2 SET ACCESSIBLE MAX ADDRESS E
17、XT description 224.5.3 Device Statistics data 224.6 Advanced Power Management (APM) feature set . 224.7 CompactFlash Association (CFA) feature set 234.8 Device Statistics Notification (DSN) feature set . 234.8.1 Overview . 234.8.2 DSN notifications . 23ii4.8.3 DSN notifications setup . 244.9 Extende
18、d Power Conditions (EPC) feature set 244.9.1 Overview . 244.9.2 Power conditions . 254.9.3 Power condition timers 254.9.4 Interaction with resets, commands, and other features if the EPC feature set is enabled 264.10 Free-fall Control feature set 274.11 General Purpose Logging (GPL) feature set 274.
19、12 Long Logical Sector (LLS) feature set 274.13 Long Physical Sector (LPS) feature set 294.14 Native Command Queuing (NCQ) feature set 314.14.1 Overview . 314.14.2 Priority . 324.14.3 Unload with NCQ commands outstanding 324.14.4 Command Phases . 324.15 Power Management feature set . 334.15.1 Overvi
20、ew . 334.15.2 Power management commands . 334.15.3 Standby timer 344.15.4 Power Management states and transitions .354.16 Power-Up In Standby (PUIS) feature set 384.16.1 Overview . 384.16.2 Interactions with the IDENTIFY DEVICE command and IDENTIFY PACKET DEVICE command 384.16.3 PUIS feature set dev
21、ice spin-up subcommand . 384.17 Sanitize Device feature set . 394.17.1 Overview . 394.17.2 Sanitize operation scope . 394.17.3 Sanitize commands . 394.17.4 Sanitize operations 394.17.5 Command processing during sanitize operations . 404.17.6 Sanitize Operation Completed Without Error value 404.17.7
22、Failure Mode Policy value . 404.17.8 Sanitize Antifreeze value . 414.17.9 Sanitize Device state machine 414.18 Security feature set . 444.18.1 Overview . 444.18.2 Disabling and enabling the Security feature set 444.18.3 Passwords . 444.18.4 Master password capability . 454.18.5 Frozen mode . 454.18.
23、6 Commands 454.18.7 Security initial setting 454.18.8 Password Rules 454.18.9 Password attempt counter and SECURITY COUNT EXPIRED bit 464.18.10 Master Password Identifier feature . 464.18.11 Security states . 474.19 Self-Monitoring, Analysis, and Reporting Technology (SMART) feature set 564.19.1 Ove
24、rview . 564.19.2 Device SMART data structure . 564.19.3 Background data collection . 564.19.4 Off-line/Captive mode data collection . 564.19.5 Threshold exceeded condition 574.19.6 SMART feature set commands . 574.19.7 SMART operation with power management modes 574.19.8 SMART device error log repor
25、ting . 574.20 Sense Data Reporting feature set 57iii4.21 Software Settings Preservation (SSP) feature set 584.22 SATA Hardware Feature Control 594.23 Streaming feature set . 604.23.1 Streaming feature set overview . 604.23.2 Streaming commands . 604.24 Trusted Computing feature set . 614.25 Write-Re
26、ad-Verify feature set . 625 ATA protocols 636 Normal and Error Output field descriptions 646.1 Overview . 646.2 STATUS field . 646.2.1 Overview . 646.2.2 ALIGNMENT ERROR bit . 646.2.3 BUSY bit . 656.2.4 CHECK CONDITION bit 656.2.5 DATA REQUEST bit .656.2.6 DEFERRED WRITE ERROR bit 656.2.7 DEVICE FAU
27、LT bit 656.2.8 DEVICE READY bit 656.2.9 ERROR bit . 656.2.10 SENSE DATA AVAILABLE bit 666.2.11 STREAM ERROR bit 666.2.12 Transport Dependent bits and fields . 666.3 ERROR field 666.3.1 Overview . 666.3.2 ABORT bit . 676.3.3 COMMAND COMPLETION TIME OUT bit . 676.3.4 END OF MEDIA bit 676.3.5 ID NOT FO
28、UND bit 676.3.6 ILLEGAL LENGTH INDICATOR bit 676.3.7 INTERFACE CRC bit 686.3.8 SENSE KEY field 686.3.9 UNCORRECTABLE ERROR bit 686.4 INTERRUPT REASON field 686.4.1 Overview . 686.4.2 COMMAND/DATA bit . 686.4.3 INPUT/OUTPUT bit 686.5 COUNT field 686.5.1 Overview . 686.5.2 Contiguous stream logical se
29、ctors that contain potentially bad data 686.5.3 NCQ Tag . 696.6 SACTIVE field 696.7 SATA STATUS field 696.8 LBA field . 696.8.1 Overview . 696.8.2 LBA of First Unrecoverable Error 697 Command descriptions 707.1 Command description introduction . 707.1.1 Overview . 707.1.10 Command Code Usage . 747.2
30、 Accessible Max Address Configuration 757.2.1 Accessible Max Address Configuration overview . 757.2.2 GET NATIVE MAX ADDRESS EXT 78h/0000h, Non-Data . 757.2.3 SET ACCESSIBLE MAX ADDRESS EXT 78h/0001h, Non-Data. 76iv7.2.4 FREEZE ACCESSIBLE MAX ADDRESS EXT 78h/0002h, Non-Data 777.3 CHECK POWER MODE E5
31、h, Non-Data . 787.4 CONFIGURE STREAM 51h, Non-Data . 797.5 DATA SET MANAGEMENT 06h, DMA . 817.6 DEVICE RESET 08h, Device Reset 847.7 DOWNLOAD MICROCODE 92h, PIO Data-Out/Non-Data . 857.8 DOWNLOAD MICROCODE DMA 93h, DMA 987.9 EXECUTE DEVICE DIAGNOSTIC 90h, Execute Device Diagnostic 997.10 FLUSH CACHE
32、 E7h, Non-Data 1017.11 FLUSH CACHE EXT EAh, Non-Data 1027.12 IDENTIFY DEVICE ECh, PIO Data-In . 1037.13 IDENTIFY PACKET DEVICE A1h, PIO Data-In 1407.14 IDLE E3h, Non-Data 1607.15 IDLE IMMEDIATE E1h, Non-Data . 1627.16 NCQ QUEUE MANAGEMENT 63h, Non-Data 1647.16.4 Output From the Host to the Device Da
33、ta Structure . 1657.16.5 Command Acceptance Outputs 1657.16.6 Normal Outputs . 1657.16.7 Error Outputs . 1657.16.8 ABORT NCQ QUEUE 63h/0h, Non-Data 1667.16.9 DEADLINE HANDLING 63h/1h, Non-Data . 1697.17 NOP 00h, Non-Data 1727.18 PACKET A0h, Packet 1737.19 READ BUFFER E4h, PIO Data-In . 1767.20 READ
34、BUFFER DMA E9h, DMA . 1777.21 READ DMA C8h, DMA 1787.22 READ DMA EXT 25h, DMA . 1797.23 READ FPDMA QUEUED 60h, DMA Queued 1807.24 READ LOG EXT 2Fh, PIO Data-In 1827.25 READ LOG DMA EXT 47h, DMA 1847.26 READ MULTIPLE C4h, PIO Data-In . 1857.27 READ MULTIPLE EXT 29h, PIO Data-In 1867.28 READ SECTOR(S)
35、 20h, PIO Data-In 1877.29 READ SECTOR(S) EXT 24h, PIO Data-In 1887.30 READ STREAM DMA EXT 2Ah, DMA 1897.31 READ STREAM EXT 2Bh, PIO Data-In 1927.32 READ VERIFY SECTOR(S) 40h, Non-Data . 1937.33 READ VERIFY SECTOR(S) EXT 42h, Non-Data . 1947.34 RECEIVE FPDMA QUEUED 65h, DMA Queued 1957.35 REQUEST SEN
36、SE DATA EXT 0Bh, Non-Data . 1977.36 Sanitize Device . 1987.36.2 BLOCK ERASE EXT B4h/0012h, Non-Data. 1997.36.3 CRYPTO SCRAMBLE EXT B4h/0011h, Non-Data. 2027.36.4 OVERWRITE EXT B4h/0014h, Non-Data. 2047.36.5 SANITIZE ANTIFREEZE LOCK EXT B4h/0040h, Non-Data 2077.36.6 SANITIZE FREEZE LOCK EXT B4h/0020h
37、, Non-Data 2097.36.7 SANITIZE STATUS EXT B4h/0000h, Non-Data. 2107.37 SECURITY DISABLE PASSWORD F6h, PIO Data-Out . 2127.38 SECURITY ERASE PREPARE F3h, Non-Data 2147.39 SECURITY ERASE UNIT F4h, PIO Data-Out . 2157.40 SECURITY FREEZE LOCK F5h, Non-Data 2177.41 SECURITY SET PASSWORD F1h, PIO Data-Out
38、. 2187.42 SECURITY UNLOCK F2h, PIO Data-Out . 2207.43 SEND FPDMA QUEUED 64h, DMA Queued 2227.43.4 SFQ DATA SET MANAGEMENT 64h/00h, DMA Queued 2247.44 SET DATE b) approved international and regional standards (ISO and IEC); andc) approved foreign standards (including JIS and DIN).For further informat
39、ion, contact the ANSI Customer Service Department:Phone +1 212-642-4900Fax: +1 212-302-1286Web: http:/www.ansi.orgE-mail: ansionlineansi.orgor the InterNational Committee for Information Technology Standards (INCITS):Phone +1 202-626-5738Web: http:/www.incits.orgE-mail: incitsitic.orgTable 1 lists a
40、pproved ANSI standards, approved international and regional standards (ISO, IEC). Additional information may be available at http:/www.t10.org and http:/www.t13.org.Table 1 Approved ANSI ReferencesName ReferenceATA/ATAPI Command Set - 2 (ACS-2) ANSI INCITS 482-2012AT Attachment-8 - ATA/ATAPI Archite
41、cture Model (ATA8-AAM) ANSI INCITS 451-2008AT Attachment-8 - ATA Serial Transport (ATA8-AST) ANSI INCITS 493-2012SMART Command Transport (SCT) ANSI INCITS TR38-2005Acoustics - Measurement of airborne noise emitted by information technology and telecommunications equipmentISO/IEC 7779:1999(E)Informat
42、ion Systems - Coded Character Sets - 7-Bit American National Standard Code for Information Interchange (7-Bit ASCII)ANSI INCITS 4-1986 (R2002)INCITS 522-201432.3 References under developmentAt the time of publication, the referenced standards were still under development. For information on the curr
43、ent status of the document, or regarding availability, contact the relevant standards body or other organization as indicated in table 2.2.4 Other referencesThese standards and specifications are also referenced.CompactFlash Association Specification, Revision 6.1 (CFA-CF)For the CompactFlash Associ
44、ation Specification published by the CompactFlash Association, contact the CompactFlash Association at http:/pactflash.org.RFC 3280, Internet X.509 Public Key Infrastructure: Certificate and Certificate Revocation List (CRL) Profile, IETF, 2002.For RFC 3280 contact the Internet Engineering Task Forc
45、e at http:/www.ietf.org.RFC 3281, An Internet Attribute Certificate: Profile for Authorization, IETF, 2002For RFC 3281 contact the Internet Engineering Task Force at http:/www.ietf.orgSDCard TrustedFlash Security Systems Specification 1.1.3For the Security Systems Specification 1.1.3, contact the SD
46、 Card Association (SDA) at http:/www.sdcard.org.NOTE 1 An SDA login is required to access the Trusted Flash specification. If you need an SDA login, please go to the “Contact Us” page for information on joining the SDA, and/or getting access to the Members Site/Workspace pages. SD-ATA Interface Spec
47、ification (Part H2)Serial ATA revision 3.1 (SATA 3.1)For the SATA 3.1 specification published by SATA-IO, contact SATA-IO at http:/www.sata-io.orgCFast, a CompactFlash Association Specification, Rev 2.0For the CFast Specification published by the CompactFlash Association, contact the CompactFlash As
48、sociation at http:/pactflash.org.JEDEC JESD220A Universal Flash Storage (UFS 1.1) standardFor the JESD220A standard, contact JEDEC1)at www.jedec.org.IEEE 1667-2009 Standard Protocol for Authentication in Host Attachments of Transient Storage DevicesFor the IEEE 1667-2009 standard, contact the IEEE a
49、t http:/ieeexplore.ieee.org/.FIPS PUB 140-2 SECURITY REQUIREMENTS FOR CRYPTOGRAPHIC MODULES, May 25, 2001For FIPS PUB 140-2, contact NIST at http:/www.nist.govFIPS PUB 140-3 (Revised DRAFT 09/11/09) SECURITY REQUIREMENTS FOR CRYPTOGRAPHIC MODULES, 09/11/09For FIPS PUB 140-3 (Revised DRAFT 09/11/09), contact NIST at http:/www.nist.govTable 2 References Under DevelopmentName Project NumberAT Attachment-8 - Parallel Transport (ATA8-APT) INCITS