1、American National StandardDeveloped byfor Information Technology AT Attachment 8 - ATA/ATAPICommand Set (ATA8-ACS)INCITS 452-2009INCITS 452-2009INCITS 452-2009American National Standardfor Information Technology AT Attachment 8 - ATA/ATAPICommand Set (ATA8-ACS)SecretariatInformation Technology Indus
2、try CouncilApproved September 29, 2009American National Standards Institute, Inc.AbstractThis standard specifies the AT Attachment command set used to communicate between host systems and storage devices. This provides a common command set for systems manufacturers, system integrators, software supp
3、liers, and suppliers of storage devices. The AT Attachment command set includes the PACKET feature set implemented by devices commonly known as ATAPI devices. This standard maintains a high degree of compatibility with the AT Attachment Interface with Packet Interface - 7 (ATA/ATAPI-7) volume 1 (see
4、 ANSI INCITS 397-2004).Approval of an American National Standard requires review by ANSI that therequirements 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, subs
5、tantial agreement has been reached by directly andmaterially affected interests. Substantial agreement means 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
6、use of American National Standards is completely voluntary; theirexistence does not in any respect preclude 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
7、 Standards Institute does not develop standards andwill in no circumstances give an interpretation of any 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 Institut
8、e. Requests for interpretations should beaddressed to the secretariat or sponsor whose name appears on the 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
9、 be taken periodically to reaffirm, revise, orwithdraw this standard. Purchasers of American National Standards mayreceive current information on all standards by calling or writing the AmericanNational Standards Institute.American National StandardPublished byAmerican National Standards Institute,
10、Inc.25 West 43rd Street, New York, NY 10036Copyright 2009 by Information Technology Industry Council (ITI)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 610W
11、ashington, DC 20005. Printed in the United States of AmericaCAUTION: The developers of this standard have requested that holders of patents that may be re-quired for the implementation of the standard disclose such patents to the publisher. However, nei-ther the developers nor the publisher have und
12、ertaken a patent search in order to identify which, ifany, patents may apply to this standard. As of the date of publication of this standard, followingcalls for the identification of patents that may be required for the implementation of the standard,notice of one or more such claims has been recei
13、ved. By publication of this standard, no positionis taken with respect to the validity of this claim or of any rights in connection therewith. The knownpatent holder(s) has (have), however, filed a statement of willingness to grant a license underthese rights on reasonable and nondiscriminatory term
14、s and conditions to applicants desiring to ob-tain such a license. Details may be obtained from the publisher. No further patent search is con-ducted by the developer or publisher in respect to any standard it processes. No representation ismade or implied that this is the only license that may be r
15、equired to avoid infringement in the use ofthis standard.iContentsPageForeword xviiIntroduction xx1 Scope 12 Normative references 22.1 General . 22.2 Approved references . 22.3 References under development 32.4 Other references . 33 Definitions, abbreviations, and conventions 43.1 Definitions and ab
16、breviations 43.2 Conventions 73.2.1 Overview . 73.2.2 Precedence . 73.2.3 Lists . 73.2.4 Keywords 83.2.5 Numbering 93.2.6 Bit conventions 93.2.7 State diagram conventions . 103.2.8 Byte, word, DWord, and QWord Relationships . 113.2.9 ATA string convention . 134 Feature set definitions . 144.1 Overvi
17、ew . 144.2 General feature set . 144.3 The PACKET feature set 154.3.1 Overview . 154.3.2 Identification of PACKET feature set devices . 164.3.3 Signature for ATAPI devices . 164.3.4 The PACKET command 164.4 48-bit Address feature set . 164.5 Advanced Power Management (APM) feature set 174.6 Automati
18、c Acoustic Management (AAM) feature set 174.7 CompactFlash Association (CFA) feature set . 174.8 Device Configuration Overlay (DCO) feature set 184.9 Free-fall Control feature set 204.10 General Purpose Logging (GPL) feature set 204.11 Host Protected Area (HPA) feature set . 214.11.1 HPA overview .
19、214.11.2 HPA security extensions . 214.11.3 28-bit and 48-bit HPA commands interactions 21iiPage4.11.4 IDENTIFY DEVICE data . 234.11.5 Determination of SET MAX security extension status 234.11.6 HPA State Transition Diagrams 234.12 Long Logical Sector (LLS) feature set 394.13 Long Physical Sector (L
20、PS) feature set 404.14 Media Card Pass Through Command feature set 424.15 Native Command Queuing (NCQ) feature set 424.15.1 Overview . 424.15.2 Command Phases 434.16 NV Cache feature set . 434.17 NV Cache Power Management feature set 454.18 Power Management feature set 454.18.1 Overview . 454.18.2 P
21、ower management commands . 464.18.3 Standby timer 464.18.4 Power modes 474.19 Power-Up In Standby (PUIS) feature set 484.20 Security feature set . 494.20.1 Overview . 494.20.2 Passwords 494.20.3 Master Password Capability . 494.20.4 Frozen Mode . 504.20.5 Commands . 504.20.6 IDENTIFY DEVICE data . 5
22、04.20.7 Security initial setting 504.20.8 Password Rules 504.20.9 Password attempt counter 504.20.10 Security states . 524.20.11 Master Password Identifier feature . 624.21 Self-Monitoring, Analysis, and Reporting Technology (SMART) feature set 634.21.1 Overview . 634.21.2 Device SMART data structur
23、e 634.21.3 Background data collection . 634.21.4 Off-line/Captive mode data collection . 634.21.5 Threshold exceeded condition 634.21.6 SMART feature set commands . 634.21.7 SMART operation with power management modes . 634.21.8 SMART device error log reporting 644.22 Software Settings Preservation
24、(SSP) feature set 644.23 Streaming feature set . 644.23.1 Streaming feature set overview 644.23.2 Streaming commands . 65iiiPage4.24 Tagged Command Queuing (TCQ) feature set . 664.24.1 Overview . 664.24.2 Queueing . 674.25 Trusted Computing feature set 674.26 Write-Read-Verify feature set 675 ATA pr
25、otocols 696 Normal and Error Output field descriptions . 706.1 Overview . 706.2 Status field 706.2.1 Overview . 706.2.2 Busy bit . 706.2.3 Check Condition bit . 706.2.4 Data Request bit . 706.2.5 Deferred Write Error bit . 706.2.6 Device Fault bit . 716.2.7 Device Ready bit . 716.2.8 Error bit . 716
26、.2.9 Service bit . 716.2.10 Stream Error bit . 716.2.11 Transport Dependent (TD) 716.3 Error field . 726.3.1 Overview . 726.3.2 Abort bit . 726.3.3 Attempted Partial Range Removal bit . 726.3.4 Command Completion Time Out bit 726.3.5 End of Media bit 726.3.6 ID Not Found bit 726.3.7 Illegal Length I
27、ndicator bit . 726.3.8 Insufficient LBA Range Entries Remaining bit 736.3.9 Insufficient NV Cache Space bit 736.3.10 Interface CRC bit . 736.3.11 Media Error bit . 736.3.12 Sense Key field . 736.3.13 Uncorrectable Error bit 736.4 Interrupt Reason field 736.4.1 Overview . 736.4.2 Command/Data bit 736
28、.4.3 Input/Output (I/O) bit . 736.4.4 Release bit 736.4.5 Tag field 736.5 Count field . 746.5.1 Overview . 746.5.2 NCQ Tag field . 746.6 SActive field 746.7 SATA Status 74ivPage7 Command descriptions . 757.1 Command descripiton introduction . 757.1.1 Overview . 757.1.2 Command Name - Command Code /S
29、ubcommand Code, Command Protocol . 757.1.3 Feature Set 757.1.4 Inputs . 767.1.5 Normal Outputs 767.1.6 Error Outputs . 777.1.7 Input from the Device to the Host Data Structure 777.1.8 Output from the Host to the Device Data Structure . 787.1.9 Unsupported Commands. 787.2 CFA ERASE SECTORS - C0h, Non
30、-Data 797.3 CFA REQUEST EXTENDED ERROR CODE - 03h, Non-Data 807.4 CFA TRANSLATE SECTOR - 87h, PIO Data-In 827.5 CFA WRITE MULTIPLE WITHOUT ERASE - CDh, PIO Data-Out 847.6 CFA WRITE SECTORS WITHOUT ERASE - 38h, PIO Data-Out 857.7 CHECK MEDIA CARD TYPE - D1h, Non-Data 867.8 CHECK POWER MODE - E5h, Non
31、-Data 877.9 CONFIGURE STREAM - 51h, Non-Data 887.10 Device Configuration Overlay (DCO) 907.10.1 DCO Overview 907.10.2 DEVICE CONFIGURATION FREEZE LOCK - B1h/C1h, Non-Data 917.10.3 DEVICE CONFIGURATION IDENTIFY - B1h/C2h, PIO Data-In. 927.10.4 DEVICE CONFIGURATION RESTORE - B1h/C0h, Non-Data . 967.10
32、.5 DEVICE CONFIGURATION SET - B1h/C3h, PIO Data-Out . 977.11 DEVICE RESET - 08h, Device Reset . 1067.12 DOWNLOAD MICROCODE - 92h, PIO Data-Out/Non-Data 1077.13 EXECUTE DEVICE DIAGNOSTIC - 90h, Execute Device Diagnostic 1107.14 FLUSH CACHE - E7h, Non-Data . 1127.15 FLUSH CACHE EXT - EAh, Non-Data . 1
33、137.16 IDENTIFY DEVICE - ECh, PIO Data-In 1147.17 IDENTIFY PACKET DEVICE - A1h, PIO Data-In . 1537.18 IDLE - E3h, Non-Data . 1717.19 IDLE IMMEDIATE - E1h, Non-Data 1727.20 Non-Volatile Cache . 1747.20.1 NV Cache Overview . 1747.20.2 NV Cache Power Management Overview 1747.20.3 ADD LBA(S) TO NV CACHE
34、 PINNED SET - B6h/10h, DMA 1767.20.4 FLUSH NV CACHE - B6h/14h, Non-Data . 1787.20.5 NV CACHE DISABLE- B6h/16h, Non-Data . 179vPage7.20.6 NV CACHE ENABLE - B6h/15h, Non-Data . 1807.20.7 QUERY NV CACHE MISSES - B6h/13h, DMA 1817.20.8 QUERY NV CACHE PINNED SET - B6h/12h, DMA 1837.20.9 REMOVE LBA(S) FRO
35、M NV CACHE PINNED SET - B6h/11h, DMA/Non-Data 1847.20.10 RETURN FROM NV CACHE POWER MODE - B6h/01h, Non-Data . 1867.20.11 SET NV CACHE POWER MODE - B6h/00h, Non-Data 1877.21 NOP - 00h, Non-Data 1887.22 PACKET - A0h, Packet . 1897.23 READ BUFFER - E4h, PIO Data-In 1927.24 READ DMA - C8h, DMA . 1937.2
36、5 READ DMA EXT - 25h, DMA 1947.26 READ DMA QUEUED - C7h, DMA Queued . 1957.27 READ DMA QUEUED EXT- 26h, DMA Queued . 1977.28 READ FPDMA QUEUED - 60h, DMA Queued . 1997.29 READ LOG EXT - 2Fh, PIO Data-In . 2007.30 READ LOG DMA EXT - 47h, DMA . 2027.31 READ MULTIPLE - C4h, PIO Data-In . 2037.32 READ M
37、ULTIPLE EXT - 29h, PIO Data-In . 2047.33 READ NATIVE MAX ADDRESS - F8h, Non-Data 2057.34 READ NATIVE MAX ADDRESS EXT - 27h, Non-Data 2067.35 READ SECTOR(S) - 20h, PIO Data-In . 2077.36 READ SECTOR(S) EXT - 24h, PIO Data-In . 2087.37 READ STREAM DMA EXT - 2Ah, DMA 2097.38 READ STREAM EXT - 2Bh, PIO D
38、ata-In 2127.39 READ VERIFY SECTOR(S) - 40h, Non-Data . 2137.40 READ VERIFY SECTOR(S) EXT - 42h, Non-Data . 2147.41 SECURITY DISABLE PASSWORD - F6h, PIO Data-Out . 2157.42 SECURITY ERASE PREPARE - F3h, Non-Data 2177.43 SECURITY ERASE UNIT - F4h, PIO Data-Out 2187.44 SECURITY FREEZE LOCK - F5h, Non-Da
39、ta . 2207.45 SECURITY SET PASSWORD - F1h, PIO Data-Out . 2217.46 SECURITY UNLOCK - F2h, PIO Data-Out . 2237.47 SERVICE - A2h, DMA Queued . 2257.48 SET FEATURES - EFh, Non-Data 2267.48.1 Feature Set 2267.48.2 Decription . 226viPage7.48.3 Enable/disable 8-bit PIO data transfer 2287.48.4 Enable/disable
40、 volatile write cache . 2287.48.5 Set transfer mode . 2287.48.6 Enable/disable the APM feature set . 2297.48.7 Enable/disable the PUIS feature set . 2307.48.8 PUIS feature set device spin-up . 2307.48.9 Enable/disable CFA power mode 1 2307.48.10 Enable/Disable Write-Read-Verify feature set 2307.48.1
41、1 Enable/disable the AAM feature set . 2317.48.12 Set Maximum Host Interface Sector Times 2327.48.13 Enable/disable read look-ahead . 2327.48.14 Enable/disable release interrupt . 2327.48.15 Enable/disable SERVICE interrupt . 2327.48.16 Enable/disable reverting to defaults 2327.48.17 Enable/Disable
42、the Free-fall Control feature set . 2337.48.18 Enable/Disable SATA feature . 2337.49 SET MAX 2357.49.1 SET MAX Overview . 2357.49.2 SET MAX ADDRESS - F9h, Non-Data 2367.49.3 SET MAX FREEZE LOCK F9h/04h, Non-Data 2387.49.4 SET MAX LOCK - F9h/02h, Non-Data 2397.49.5 SET MAX SET PASSWORD - F9h/01h, PIO
43、 Data-Out. 2407.49.6 SET MAX UNLOCK - F9h/03h, PIO Data-Out. 2417.50 SET MAX ADDRESS EXT - 37h, Non-Data . 2427.51 SET MULTIPLE MODE - C6h, Non-Data . 2447.52 SLEEP - E6h, Non-Data . 2467.53 SMART . 2477.53.1 Overview 2477.53.2 SMART DISABLE OPERATIONS - B0h/D9h, Non-Data. 2487.53.3 SMART ENABLE/DIS
44、ABLE ATTRIBUTE AUTOSAVE - B0h/D2h, Non-Data 2497.53.4 SMART ENABLE OPERATIONS - B0h/D8h, Non-Data 2517.53.5 SMART EXECUTE OFF-LINE IMMEDIATE - B0h/D4h, Non-Data . 2527.53.6 SMART READ DATA - B0h/D0h, PIO Data-In 2567.53.7 SMART READ LOG - B0h/D5h, PIO Data-In 2617.53.8 SMART RETURN STATUS - B0h/DAh,
45、 Non-Data 2627.53.9 SMART WRITE LOG - B0h/D6h, PIO Data-Out 2637.54 STANDBY - E2h, Non-Data 2647.55 STANDBY IMMEDIATE - E0h, Non-Data . 2657.56 TRUSTED NON-DATA - 5Bh, Non-Data 2667.57 TRUSTED RECEIVE - 5Ch, PIO Data-In . 2677.58 TRUSTED RECEIVE DMA - 5Dh, DMA . 2727.59 TRUSTED SEND - 5Eh, PIO Data-
46、Out 2737.60 TRUSTED SEND DMA - 5Fh, DMA . 2767.61 WRITE BUFFER - E8h, PIO Data-Out . 277viiPage7.62 WRITE DMA - CAh, DMA . 2787.63 WRITE DMA EXT - 35h, DMA 2797.64 WRITE DMA FUA EXT - 3Dh, DMA 2807.65 WRITE DMA QUEUED - CCh, DMA Queued . 2817.66 WRITE DMA QUEUED EXT - 36h, DMA Queued 2837.67 WRITE D
47、MA QUEUED FUA EXT - 3Eh, DMA Queued 2857.68 WRITE FPDMA QUEUED - 61h, DMA Queued 2867.69 WRITE LOG EXT - 3Fh, PIO Data-Out . 2877.70 WRITE LOG DMA EXT - 57h, DMA 2897.71 WRITE MULTIPLE - C5h, PIO Data-Out 2907.72 WRITE MULTIPLE EXT - 39h, PIO Data-Out . 2917.73 WRITE MULTIPLE FUA EXT - CEh, PIO Data
48、-Out 2927.74 WRITE SECTOR(S) - 30h, PIO Data-Out . 2937.75 WRITE SECTOR(S) EXT - 34h, PIO Data-Out . 2947.76 WRITE STREAM DMA EXT - 3Ah, DMA 2957.77 WRITE STREAM EXT - 3Bh, PIO Data-Out . 2987.78 WRITE UNCORRECTABLE EXT - 45h, Non-Data . 2998 SCT Command Transport . 3018.1 Introduction . 3018.1.1 Ov
49、erview . 3018.1.2 SCT command nesting and interspersing with standard commands . 3018.1.3 Resets . 3018.2 Processing SCT commands 3028.2.1 Processing SCT commands overview 3028.2.2 SCT capability identification 3028.2.3 SCT command transfer . 3028.2.4 SCT data transfer 3068.2.5 SCT status 3088.3 SCT Command Set . 3128.3.1 Overview . 3128.3.2 SCT Read/Write Long command . 3138.3.3 SCT Write Same command . 3168.3.4 SCT Error Recovery Control command . 3198.3.5 SCT Feature Control command . 3218.3.6 SCT Data Table command. 3249 Normal and Error Outputs . 3289.1 Overview . 3289.2 Normal Ou