d1699r2b ata8 command set

Upload: ingarnaldoparra

Post on 03-Jun-2018

226 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/12/2019 d1699r2b ATA8 Command Set

    1/309

    Working Draft T13

    American National Project 1699D

    StandardRevision 2b

    January 10, 2006

    Information Technology -AT Attachment - 8 ATA/ATAPI Command Set(ATA8-ACS)

    This is a draft proposed American National Standard of Accredited Standards Committee INCITS. As suchthis is not a completed standard. The T10 Technical Committee may modify this document as a result ofcomments received during public review and its approval as a standard. Use of the information containedhere in is at your own risk.

    Permission is granted to members of INCITS, its technical committees, and their associated task groups toreproduce this document for the purposes of INCITS standardization activities without further permission,provided this notice is included. All other rights are reserved. Any commercial or for-profit replication orrepublication is prohibited.

    T13 Technical Editor:Curtis E. StevensWestern Digital20511 Lake Forest DriveLake Forest, CA 92630USA

    Tel: 949-672-7933E-Mail: [email protected]

    Reference number

    ISO/IEC ****** :200x

    ANSI INCITS.*** - xxxx

    Printed January, 10, 2006 7:58PM

  • 8/12/2019 d1699r2b ATA8 Command Set

    2/309

    T13/1699D Revision 2b

    Page ii

    Points of Contact:

    T13 ChairU UT13 VicechairUDan Colgrove Jim HatfieldHitachi Global Storage Technologies Seagate Technology2903 Carmelo Dr 389 Disc Drive

    Henderson, NV 89502 Longmont CO 80503Tel: 702-614-6119 Tel: 720-684-2120Fax: 702-614-7955 Fax: 720-684-2711

    UINCITS SecretariatNCITS Secretariat Tel: 202-737-88881250 Eye Street, NW Suite 200 Fax: 202-638-4922Washington, DC 20005Email: [email protected]

    U

    T13 Reflector

    See the T13 Web Site at http://www.t13.org for reflector information.

    UT13 Web Site

    http://www.t13.org

    UT13 Anonymous FTP Site

    ftp.t13.org

    U

    Document Distribution

    INCITS Online Store http://www.techstreet.com/incits.htmlmanaged by Techstreet Telephone: 1-734-302-78011327 Jones Drive or 1-800-699-9277

    Ann Arbor, MI 48105 Facsimile: 1-734-302-7811

    orGlobal Engineering H0Hhttp://global.ihs.com/H15 Inverness Way East Telephone: 1-303-792-2181Englewood, CO 80112-5704 or 1-800-854-7179

    Facsimile: 1-303-792-2192

  • 8/12/2019 d1699r2b ATA8 Command Set

    3/309

    T13/1699D Revision 2b

    Page iii

    DOCUMENT STATUS

    Revision History

    Revision Date Description

    0 August 17, 2004 1. Initial revision created from ATA/ATAPI-7 Volume 1 (1532D Rev 4b).2. Removed 3 volume structure and changed abstract to reflect a

    command set document

    3. Removed sections on signal, bit, and timing conventions4. Removed clause 5, I/O register descriptions5. Kept informative annexs A-C

    1 September 7, 2004 1. Restructured all commands to conform to format agreed to ine04139r4.

    2. Added a section defining status bits3. Added a section defining error bits4. Added a section describing protocols5. Added a section describing interrupt reason6. Incorporated single log table e04143r0 table. Did not add wording to

    status that host VS pages are common between SMART and GPL.7. Removed prohibited statements from command definitions. These

    reside in the feature set definitions.8. [Editors Note: Fix N/A vs Reserved]9. [Editors Note: Do a consistency pass for Body Text]10. [Editors Note: Do a consis tency pass on mandatory and

    optional statements]11. [Editors Note: Add section and diagrams to make clear the

    realationsh ip of this doc to other documents.]12. [Editors Note: Under Error Outputs, error bit 0 is sometimes

    obsolete, and sometimes N/A. I do not think this incons istentdocumentation is correct. Bit 1 should always be obsolete, N/A,or is it t ime for reserved]

    1a October 6, 2004 1. Replaced duplicate normal outputs tables with a see clause to thefirst usage.

    2. Replaced many error outputs with a see clause.3. [Editors Note: Fix N/A vs Reserved]

    4. [Editors Note: Do a consistency pass for Body Text]5. [Editors Note: Do a consistency pass on mandatory and

    optional statements]6. [Editors Note: Add section and diagrams to make clear the

    realationsh ip of this doc to other documents.]7. [Editors Note: Under Error Outputs, error bit 0 is sometimes

    obsolete, and sometimes N/A. I do not think this incons istentdocumentation is correct. Bit 1 should always be obsolete, N/A,or is it t ime for reserved]

    1b February 17, 2005 1. Stripped unused informative references2. Changed the definition of ordered and unordered lists to make the

    numeric form ordered.3. Changed all the lists to conform to the changes in #2

    4. Reserved 5Ch-5Fh for TCG. This was done by added commandheaders and a reserved statement in the command section. Alsomaerked the commands with T in the command matrix table.

    5. Moved Normal and Error Outputs to their own section. Commandsnow have a hotlink to the tables.

    6. Moved IDENTIFY (PACKET) DATA to its own section (Input Data)7. Changed more of the titles to be consistent with the front cover.8. Deleted unused definitions9. Changed the general feature set to only apply to non-packet devices10. Changed the packet feature set to include all the commands in the

    packet feature set.

  • 8/12/2019 d1699r2b ATA8 Command Set

    4/309

    T13/1699D Revision 2b

    Page iv

    Revision History

    Revision Date Description

    11. The command prohibitions are now found in the feature setdescription and not with each command.

    12. Integrated e04127r0 This makes SATA signatures reserved with nodescription.

    1c April 15, 2005 1. Added proposal e04143r1 Notes that the Host Vendor Specific

    pages are common to both SMART READ LOG and READ LOGEXTENDED2. Added e04130r2 Tightens the definition of SMART first polling

    time. Also adds a field that enables longer times.3. Added proposal e05103r0 Changes the features register to log

    page specific for read and write log commands4. Added e04153r1 Historical annex of command documentation to

    Annex B5. Added e05102r1 as amended Reserves some set features and

    DCO fields as vendor specific6. Added back in FEATURE SET Clause infront of the description

    1d June 20, 2005 1. Added code 1Dh to IDENTFY DEVICE for ATA/ATAPI-7 X387HTable 13X.2. Added placeholder for reporting alignment3. Updated SET FEATURES table 41 to include reserved entries

    instead of just saying all other entries are reserved.4. Partially Incorporated e04129r5. Assigned Set Features 0Bh and

    8Bh for the enable and disable capability. Had to make severalmodifications to the proposal to fill in missing pieces. Unable to fill inIDENTIFY DEVICE info, data is incomplete. Stopped incorporation

    1e June 21, 2005 1. Modified Selective self-test description last sentence to be moreclear.

    2. Updated definition based on WG review.3. Integrated e05133r3. This conflicts with the definition of IDENTIFY

    DEVICE which is defined to not return an error.4. Incorporated e04129r6. Assigned IDENTIFY DEVICE words 210-

    213 and DCO word 7 bit 14.

    1f July 5, 2005 1. Added several technical reports to the approved references. They

    need to be there since they are mentioned in the body of thedocument.

    2. Updated DCO to refer to TR-37 (TLC) for word 7 bit 10.3. Updated the Scope to match ATA8-AAM4. Replaced sector with logical sector in many places5. [Editors Note: I do not think we should refer to logs as sectors, they

    are really pages]6. Replaced all references to the Features register with features field.7. Replaced all references to the Sector Count register with Count field.

    There are some places that use the count field in calculations.These places refer to the register. I have chosen to keep the wordfield although I think it may read better just saying cound.

    8. Replaced archaic references to sector number register with

    references to the LBA field.9. Replaced references to LBA Low, LBA Mid, and LBA high to LBA

    field.10. Replaced all references to device/head or device register11. Deleted references to the device control register.12. Updated overview in clause 7.13. Updated security commands to have an output data structure where

    appropriate14. Updated SETMAX commands to have an output data structure

    where appropriate.15. Removed remaining hardware references from commands.

  • 8/12/2019 d1699r2b ATA8 Command Set

    5/309

    T13/1699D Revision 2b

    Page v

    Revision History

    Revision Date Description

    Transport documents will have to reference 1e for notes oninformation that needs to move. This includes most references toBSY, RDY, DRQ, and bus.

    16. Implemented e04161r0 (obsoleted ATAPI overlap and queue)17. Moved host vendor specific log description into its own clause.

    18. Integrated e05130r019. Integrated e05131r120. Integrated e05120r2 Needed to add text to 4.21 to support the

    examples.

    2 August 22, 2005 1. Updated SET MAX ADDRESS to indicate that on drives with acapacity that is greater than 28 bits, that issues SET MAX

    ADDRESS to the NATIVE MAX address clears the HPA and returnsthe full capacity of the drive, not just 137GB.

    2. Added e04132r1 Defines subcommand 03 for download microcode3. Incorporated e04162r0 Obsolete Download Microcode4. Incorporated e05151r1 Reserve opcodes for e05106. The

    following resources were assigned:a. CHECK POWER MODE normal returns 40h and 41hb. IDENTIFY DEVICE data words 214-221c. New opcode B6h NV CACHE (Sorry, B8h is reserved for CFA)d. DCO data structure Word 21 bits 14 and 15

    5. Incorporated e02126r6 WRITE UNCORRECTABLE. The followingresources were assigned:a. Opcode 45hb. IDENTIFY DEVICE data words 119/120 bit 2c. DCO Data word 21 bit 13

    6. Modified DCO to indicate that the data is not an overly, it is just datathat can be used to enable or disable reporting of features as well asresponding to features.

    7. Incorporated e05127r2 Updated the definition of the DF bit.8. Incorporated e05129r1 READ/WRITE LOG DMA EXT. The

    following resources were assigned:

    a. Opcodes 47h and 57hb. IDENTIFY DEVICE data words 119/120 bit 2

    9. Incorporated e05132r1 Report transport standard. IDENTIFYDEVICE words 222 and 223 were assigned for this purpose.

    10. Incorporated e05140r0 Media Serial Number Endianess11. Performed a major re-work of the IDENTIFY DEVICE table data.

    Added a column to indicate applicable transport.

    12. Received side-band E-Mail comments from [email protected] in the following changes:a. CFA Translate Sector Features and Count fields S/B N/A as in

    ATA7b. Page number was deleted from the clause reference in 4.4.1

    13. Marked bits 15:13 obsolete. This was accidently left out when

    e04161 was incorporated.14. Reformatted X388HTable 116X, X389HTable 117X, X390HTable 118X, X391HTable 119X. The

    command code table serves as the master. All of the commandcodes are now listed. I believe this will cause the table to bemaintained better. I also discovered some inconsistencies in thetable during the reformat.

    15. Performed consnstency pass on command tables, several links havebeen corrupted.

    2a December 10, 2005 1. Added cross reference to tables. This is required since severalcommands point to the same tables.

    2. Fixed command tables to match ATA7.

  • 8/12/2019 d1699r2b ATA8 Command Set

    6/309

    T13/1699D Revision 2b

    Page vi

    Revision History

    Revision Date Description

    3. e05141r2 was voted in however, no document has been posted.4. Incorporated e05162r05. Incorporated e05161r06. Incorporated e05167r0.7. Incorporated e05109r3 as modified by Mark Evans

    8. Addressed ATA/ATAPI-7 public review comment by inserting thestatement If write cache is enabled unrecoverable errors may not bereliably reported as they may occur after the completion of thecommand. after the statement that says the first error block isreturned in the response fields.

    9. Replaced Masterpassword with Master password as per E-Mailreview comment.

    Replaced isspecified with is specified as per E-Mail review comment

    2b January 10, 2006 1. Made READ and WRITE LOG EXT optional for ATAPI devices2. Reincorporated SCT using e05109r43. Changed Long Segment Access to Write Same4. Incorporated e05170r15. Incorporated e05154r46. Incorporated e05150r2

  • 8/12/2019 d1699r2b ATA8 Command Set

    7/309

    T13/1699D Revision 2b

    Page vii

    American National Standard

    for Information Technology

    AT Attachment - 8 ATA/ATAPI Command Set (ATA8-ACS)

    Secretariat

    Information Technology Industry Council

    Approved mm dd yy

    American National Standards Insti tute, Inc.

    Abstract

    This standard specifies the AT Attachment command set between host systems and storage devices. It

    provides a common command set for systems manufacturers, system integrators, software suppliers, andsuppliers of intelligent storage devices. It includes the Packet Command feature set implemented by devicescommonly known as ATAPI devices.

    This standard maintains a high degree of compatibility with the AT Attachment Interface with PacketInterface - 7 (ATA/ATAPI-7) volume 1, INCITS 397-2004, and while providing additional functions, is notintended to require changes to presently installed devices or existing software.

  • 8/12/2019 d1699r2b ATA8 Command Set

    8/309

    T13/1699D Revision 2b

    Page viii

    ANSIINCITS. -200x

    AmericanNationalStandard

    Approval of an American National Standard requires verification 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

    judgment of the ANSI Board of Standards Review, substantial agreement has beenreached by directly and materially affected interests. Substantial agreementmeans much more than a simple majority, but not necessarily unanimity.

    Consensus requires that all views and objections be considered, and that effort bemade towards their resolution.

    The use of American National Standards is completely voluntary; their existencedoes not in any respect preclude anyone, whether he has approved the standardsor not, from manufacturing, marketing, purchasing, or using products, processes,or procedures not conforming to the standards.

    The American National Standards Institute does not develop standards and will inno circumstances give interpretation on any American National Standard.Moreover, no person shall have the right or authority to issue an interpretation ofan American National Standard in the name of the American National StandardsInstitute. Requests for interpretations should be addressed to the secretariat or

    sponsor whose name appears on the title page 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, or withdraw thisstandard. Purchasers of American National Standards may receive currentinformation on all standards by calling or writing the American National StandardsInstitute.

    CAUTION:The developers of this standard have requested that holders of patentsthat may be required for the implementation of the standard, disclose such patentsto the publisher. However, neither the developers nor the publisher haveundertaken a patent search in order to identify which, if any, patents may apply to

    this standard. As of the date of publication of this standard, following calls for theidentification of patents that may be required for the implementation of thestandard, no such claims have been made. No further patent search is conductedby the developer or the publisher in respect to any standard it processes. Norepresentation is made or implied that licenses are not required to avoidinfringement in the use of this standard.

    Published by

    American National Standards Inst itute11 West 42nd Street, New York, New York 10036

    Copyright 2004 by Information Technology Industry Council (ITI)All rights reserved.

    No part of this publication may by reproduced in anyform, in an electronic retrieval system or otherwise,without prior written permission of ITI, 1250 Eye Street NW, Suite 200,Washington, DC 20005.

    Printed in the United States of America

  • 8/12/2019 d1699r2b ATA8 Command Set

    9/309

    T13/1699D Revision 2b

    Page ix

    ContentsPage

    2HTUCONTENTS UT ...................................................................................................................................................... 392HIX

    3HTU

    TABLESUT

    ......................................................................................................................................................... 393H

    XIV

    4HTU

    FIGURESUT

    ...................................................................................................................................................... 394H

    XVII

    5HTUFOREWORD UT ................................................................................................................................................ 395HXVIII

    6HTU

    INTRODUCTIONUT

    ............................................................................................................................................ 396H

    XIX

    7HTU1UT TUScopeUT .......................................................................................................................................................................... 3 97H1

    8HTU2UT TUNormative referencesUT................................................................................................................................................ 3 98H29HTU2.1UT TUApproved referencesUT ...........................................................................................................................................3 99H2

    10HTU2.1.1UT TUANSI ReferencesUT ........................................................................................................................................ 4 00H211HTU2.1.2UT TUISO ReferencesUT ...........................................................................................................................................4 01H2

    12HTU2.2UT TUReferences under developmentUT ........................................................................................................................... 4 02H213HTU2.3UT TUOther referencesUT.................................................................................................................................................. 4 03H3

    14HTU3UT TUDefinitions, abbreviations, and conventionsUT ........................................................................................................... 4 04H415HTU3.1UT TUDefinitions and abbreviationsUT .............................................................................................................................4 05H416HTU3.2UT TUConventionsUT ........................................................................................................................................................4 06H6

    17HTU3.2.1UT TUPrecedenceUT .................................................................................................................................................. 4 07H618HTU3.2.2UT TUListsUT ............................................................................................................................................................4 08H619HTU3.2.3UT TUKeywordsUT.................................................................................................................................................... 4 09H620HTU3.2.4UT TUNumberingUT .................................................................................................................................................. 4 10H721HTU3.2.5UT TUBit conventionsUT ...........................................................................................................................................4 11H722HTU3.2.6UT TUState diagram conventionsUT .......................................................................................................................... 4 12H723HTU3.2.7UT TUByte ordering for data transfersUT .................................................................................................................. 4 13H924HTU3.2.8UT TUByte, word and DWORD RelationshipsUT ..................................................................................................4 14H10

    25HTU4UT TUGeneral operational requirementsUT ........................................................................................................................ 4 15H1126HTU4.1UT TUCommand deliveryUT............................................................................................................................................4 16H1127HTU4.2UT TUData transfer command logical sector addressingUT............................................................................................. 4 17H11

    28HTU4.2.1UT TUDefinitions and value ranges of IDENTIFY DEVICE data wordsUT ........................................................... 4 18H1129HTU4.2.2UT TUAddressing constraints and error reporting UT ............................................................................................... 4 19H11

    30HTU4.3UT TUGeneral feature set UT ............................................................................................................................................4 20H1131HTU4.4UT TUThe PACKET feature setUT .................................................................................................................................. 4 21H12

    32HTU4.4.1UT TUIdentification of PACKET Command feature set devices UT ........................................................................ 4 22H1333HTU4.4.2UT TUPACKET Command feature set resetsUT...................................................................................................... 4 23H1334HTU4.4.3UT TUThe PACKET commandUT ........................................................................................................................... 4 24H13

    35HTU

    4.5UT

    TU

    Power Management feature setUT

    .........................................................................................................................4 25H

    1436HTU4.5.1UT TUPower management commandsUT................................................................................................................. 4 26H1437HTU4.5.2UT TUStandby timerUT............................................................................................................................................4 27H1438HTU4.5.3UT TUPower modesUT............................................................................................................................................. 4 28H15

    39HTU4.6UT TUAdvanced Power Management feature set UT........................................................................................................ 4 29H1740HTU4.7UT TUSecurity Mode feature setUT ................................................................................................................................. 4 30H17

    41HTU4.7.1UT TUSecurity mode initial settingUT ..................................................................................................................... 4 31H1842HTU4.7.2UT TUUser password lostUT .................................................................................................................................... 4 32H1843HTU4.7.3UT TUAttempt limit for SECURITY UNLOCK commandUT ................................................................................4 33H1844HTU4.7.4UT TUSecurity mode statesUT ................................................................................................................................. 4 34H18

    45HTU4.8UT TUSMART (Self-monitoring, analysis, and reporting technology) feature setUT ..................................................... 4 35H24

  • 8/12/2019 d1699r2b ATA8 Command Set

    10/309

    T13/1699D Revision 2b

    Page x

    46HTU4.8.1UT TUDevice SMART data structureUT ..................................................................................................................436H2447HTU4.8.2UT TUOn-line data collectionUT ..............................................................................................................................437H2448HTU4.8.3UT TUOff-line data collection UT..............................................................................................................................438H2449HTU4.8.4UT TUThreshold exceeded conditionUT ...................................................................................................................439H2450HTU4.8.5UT TUSMART feature set commandsUT.................................................................................................................. 440H2451HTU4.8.6UT TUSMART operation with power management modes UT..................................................................................441H2552HTU4.8.7UT TUSMART device error log reportingUT............................................................................................................442H25

    53HTU4.9UT TUHost Protected Area feature set UT .........................................................................................................................443H2554HTU4.9.1UT TUBIOS determination of SET MAX security exension statusUT .....................................................................444H2755HTU4.9.2UT TUBIOS locking SET MAX UT...........................................................................................................................445H27

    56HTU4.10UT TUCompactFlashAssociation (CFA) feature set UT ................................................................................................446H2957HTU4.11UT TURemovable Media Status Notification and Removable Media feature setsUT.......................................................447H30

    58HTU4.11.1UT TURemovable Media Status Notification feature set UT ..................................................................................... 448H3059HTU4.11.2UT TURemovable Media feature setUT ....................................................................................................................449H31

    60HTU4.12UT TUPower-Up In Standby feature set UT.......................................................................................................................450H3261HTU4.13UT TUAutomatic Acoustic Management (AAM) feature setUT .......................................................................................451H3262HTU4.14UT TU48-bit Address feature setUT ..................................................................................................................................452H3363HTU4.15UT TUDevice Configuration Overlay feature setUT .........................................................................................................453H3464HTU4.16UT TUMedia Card Pass Through Command feature setUT ..............................................................................................454H3665HTU4.17UT TUStreaming feature setUT .........................................................................................................................................455H37

    66HTU4.17.1UT TUStreaming feature set overviewUT ................................................................................................................. 456H3767HTU4.17.2UT TUStreaming commandsUT ................................................................................................................................ 457H37

    68HTU4.18UT TUGeneral Purpose Logging feature set UT................................................................................................................. 458H3969HTU4.19UT TUOverlapped feature setUT.......................................................................................................................................459H3970HTU4.20UT TUQueued feature setUT ............................................................................................................................................. 460H4071HTU4.21UT TULong Physical Sector Feature Set for Non-Packet DevicesUT..............................................................................461H4072HTU4.22UT TULong Logical Sector Feature Set for Non-Packet DevicesUT ...............................................................................462H4273HTU4.23UT TUDevices Implementing the Long Physical Sector Feature Set and the Long Logical Feature Sector SetUT ..........463H4374HTU4.24UT TUWrite-Read-Verify Feature SetUT..........................................................................................................................464H44

    75HTU5UT TUATA ProtocolsUT .........................................................................................................................................................465H4576HTU5.1UT TUOverviewUT ........................................................................................................................................................... 466H4577HTU5.2UT TUPower-On UT ..........................................................................................................................................................467H4578HTU5.3UT TUHardware ResetUT .................................................................................................................................................468H4579HTU

    5.4UT

    TU

    Software ResetUT

    ...................................................................................................................................................469H

    4580HTU5.5UT TUNon-data Command ProtocolUT ............................................................................................................................470H4581HTU5.6UT TUPIO data-in Command ProtocolUT ........................................................................................................................471H4582HTU5.7UT TUPIO data-out Command ProtocolUT ......................................................................................................................472H4583HTU5.8UT TUDMA Command ProtocolUT..................................................................................................................................473H4584HTU5.9UT TUPacket Command ProtocolUT ................................................................................................................................ 474H4585HTU5.10UT TUDMA Queued Command ProtocolUT ....................................................................................................................475H4586HTU5.11UT TUExecute Device Diagnostic Command ProtocolUT................................................................................................476H4587HTU5.12UT TUDevice Reset Command ProtocolUT......................................................................................................................477H4588HTU5.13UT TUUltra DMA data-in Command ProtocolUT ............................................................................................................478H4589HTU5.14UT TUUltra DMA Data-Out Command ProtocolUT.........................................................................................................479H45

    90HTU6UT TUStatus and Error bitsUT...............................................................................................................................................480H4691HTU6.1UT

    TUOverviewUT ........................................................................................................................................................... 481H46

    92HTU6.2UT TUStatus BitsUT..........................................................................................................................................................482H4693HTU6.3UT TUError BitsUT ........................................................................................................................................................... 483H4694HTU6.4UT TUInterrupt Reason BitsUT.........................................................................................................................................484H47

    95HTU7UT TUCommand DescriptionsUT...........................................................................................................................................485H4796HTU7.1UT TUOverviewUT ........................................................................................................................................................... 486H4797HTU7.2UT TUCFA ERASE SECTORS - C0h, non-data UT .........................................................................................................487H5298HTU7.3UT TUCFA REQUEST EXTENDED ERROR CODE - 03h, non-data UT ....................................................................... 488H5399HTU7.4UT TUCFA TRANSLATE SECTOR - 87h, PIO data-inUT .............................................................................................489H54100HTU7.5UT TUCFA WRITE MULTIPLE WITHOUT ERASE - CDh, PIO data-out UT...............................................................490H55

  • 8/12/2019 d1699r2b ATA8 Command Set

    11/309

    T13/1699D Revision 2b

    Page xi

    101HTU7.6UT TUCFA WRITE SECTORS WITHOUT ERASE - 38h, PIO data-outUT.................................................................. 4 91H56102HTU7.7UT TUCHECK MEDIA CARD TYPE - D1h, Non-data UT............................................................................................. 4 92H57103HTU7.8UT TUCHECK POWER MODE - E5h, Non-data UT....................................................................................................... 4 93H58104HTU7.9UT TUCONFIGURE STREAM - 51h, Non-dataUT ........................................................................................................ 4 94H59105HTU7.10UT TUDEVICE CONFIGURATIONUT .......................................................................................................................... 4 95H60

    106HTU7.10.1UT TUDEVICE CONFIGURATION RESTORE - B1h/C0h, Non-data UT ............................................................. 4 96H61107HTU7.10.2UT TUDEVICE CONFIGURATION FREEZE LOCK - B1h/C1h, Non-dataUT .................................................... 4 97H62108HTU7.10.3UT TUDEVICE CONFIGURATION IDENTIFY - B1h/C2h, PIO Data-in UT........................................................4 98H63109HTU7.10.4UT TUDEVICE CONFIGURATION SET - B1h/C3h, PIO Data Out UT ................................................................4 99H67

    110HTU7.11UT TUDEVICE RESET - 08h, Device reset UT ...............................................................................................................5 00H73111HTU7.12UT TUDOWNLOAD MICROCODE - 92h, PIO Data-out UT ......................................................................................... 5 01H74112HTU7.13UT TUEXECUTE DEVICE DIAGNOSTIC - 90h, Device diagnostic UT .......................................................................5 02H76113HTU7.14UT TUFLUSH CACHE - E7h, Non-data UT..................................................................................................................... 5 03H77114HTU7.15UT TUFLUSH CACHE EXT - EAh, Non-dataUT ........................................................................................................... 5 04H78115HTU7.16UT TUGET MEDIA STATUS - DAh, Non-dataUT......................................................................................................... 5 05H79116HTU7.17UT TUIDENTIFY DEVICE - ECh, PIO Data-inUT......................................................................................................... 5 06H80117HTU7.18UT TUIDENTIFY PACKET DEVICE - A1h, PIO Data-in UT ...................................................................................... 507H104118HTU7.19UT TUIDLE - E3h, Non-dataUT..................................................................................................................................... 508H117119HTU7.20UT TUIDLE IMMEDIATE - E1h, Non-dataUT ............................................................................................................. 509H118120HTU7.21UT TUMEDIA EJECT - EDh, Non-dataUT ................................................................................................................... 510H120121HTU7.22UT TUMEDIA LOCK - DEh, Non-data UT .................................................................................................................... 511H121122HTU7.23UT

    TUMEDIA UNLOCK - DFh, Non-data UT .............................................................................................................. 512H122123HTU7.24UT TUNOP - 00h, Non-dataUT ...................................................................................................................................... 513H123124HTU7.25UT TUNV CACHE B6h, TBDUT ............................................................................................................................... 514H124125HTU7.26UT TUPACKET - A0h, PacketUT .................................................................................................................................. 515H125126HTU7.27UT TUREAD BUFFER - E4, PIO data-inUT ................................................................................................................. 516H128127HTU7.28UT TUREAD DMA - C8h, DMA UT.............................................................................................................................. 517H129128HTU7.29UT TUREAD DMA EXT - 25h, DMA UT...................................................................................................................... 518H130129HTU7.30UT TUREAD DMA QUEUED - C7h, DMA QueuedUT ............................................................................................... 519H131130HTU7.31UT TUREAD DMA QUEUED EXT- 26h, DMA QueuedUT ........................................................................................ 520H133131HTU7.32UT TUREAD LOG EXT - 2Fh, PIO data-in UT.............................................................................................................. 521H135132HTU7.33UT TUREAD LOG DMA EXT - 47h, DMA UT............................................................................................................. 522H145133HTU7.34UT TUREAD MULTIPLE - C4h, PIO data-in UT .......................................................................................................... 523H146134HTU7.35UT TUREAD MULTIPLE EXT - 29h, PIO data-in UT .................................................................................................. 524H147135HTU

    7.36UT

    TU

    READ NATIVE MAX ADDRESS - F8h, Non-dataUT

    ...................................................................................... 525H

    148136HTU7.37UT TUREAD NATIVE MAX ADDRESS EXT - 27h, Non-dataUT ............................................................................. 526H149137HTU7.38UT TUREAD SECTOR(S) - 20h, PIO data-in UT........................................................................................................... 527H150138HTU7.39UT TUREAD SECTOR(S) EXT - 24h, PIO data-in UT.................................................................................................. 528H151139HTU7.40UT TUREAD STREAM DMA EXT - 2Ah, DMA UT.................................................................................................... 529H152140HTU7.41UT TUREAD STREAM EXT - 2Bh, PIO data-inUT ..................................................................................................... 530H154141HTU7.42UT TUREAD VERIFY SECTOR(S) - 40h, Non-data UT ............................................................................................... 531H155142HTU7.43UT TUREAD VERIFY SECTOR(S) EXT - 42h, Non-data UT ...................................................................................... 532H156143HTU7.44UT TUSECURITY DISABLE PASSWORD - F6h, PIO data-out UT ............................................................................ 533H157144HTU7.45UT TUSECURITY ERASE PREPARE - F3h, Non-data UT .......................................................................................... 534H158145HTU7.46UT TUSECURITY ERASE UNIT - F4h, PIO data-out UT............................................................................................. 535H159146HTU7.47UT TUSECURITY FREEZE LOCK - F5h, Non-data UT ............................................................................................... 536H160147HTU7.48UT TUSECURITY SET PASSWORD - F1h, PIO data-outUT ...................................................................................... 537H161148HTU7.49UT TUSECURITY UNLOCK - F2h, PIO data-out UT ................................................................................................... 538H162149HTU7.50UT TUSERVICE - A2h, Packet or DMA queuedUT...................................................................................................... 539H163150HTU7.51UT TUSET FEATURES - EFh, Non-dataUT ................................................................................................................. 540H164

    151HTU7.51.1UT TUFeature SetUT .............................................................................................................................................. 541H164152HTU7.51.2UT TUDescriptionUT.............................................................................................................................................. 542H164153HTU7.51.3UT TUEnable/disable 8-bit PIO data transferUT .................................................................................................... 543H166154HTU7.51.4UT TUEnable/disable write cacheUT...................................................................................................................... 544H166155HTU7.51.5UT TUSet transfer modeUT .................................................................................................................................... 545H166156HTU7.51.6UT TUEnable/disable advanced power management UT......................................................................................... 546H167157HTU7.51.7UT TUEnable/disable Power-Up In Standby feature set UT.................................................................................... 547H167158HTU7.51.8UT TUPower-Up In Standby feature set device spin-upUT .................................................................................... 548H167

  • 8/12/2019 d1699r2b ATA8 Command Set

    12/309

    T13/1699D Revision 2b

    Page xii

    159HTU7.51.9UT TUEnable/disable CFA power mode 1UT .........................................................................................................549H167160HTU7.51.10UT TUEnable/Disable Write Read Verify feature setUT..................................................................................... 550H168161HTU7.51.11UT TUEnable/disable Media Status NotificationUT............................................................................................551H168162HTU7.51.12UT TUEnable/disable Automatic Acoustic Management UT ...............................................................................552H169163HTU7.51.13UT TUSet Maximum Host Interface Sector Times UT.........................................................................................553H170164HTU7.51.14UT TUEnable/disable read look-aheadUT ...........................................................................................................554H170165HTU7.51.15UT TUEnable/disable release interruptUT...........................................................................................................555H170166HTU7.51.16UT TUEnable/disable SERVICE interrupt UT .....................................................................................................556H170167HTU7.51.17UT TUEnable/disable reverting to defaults UT.....................................................................................................557H170

    168HTU7.52UT TUSET MAXUT .......................................................................................................................................................558H171169HTU7.52.1UT TUSET MAX OverviewUT ............................................................................................................................... 559H171170HTU7.52.2UT TUSET MAX ADDRESS - F9h UT ...................................................................................................................560H172171HTU7.52.3UT TUSET MAX SET PASSWORD - F9h/01h, PIO data-out UT ..........................................................................561H173172HTU7.52.4UT TUSET MAX LOCK - F9h/02h, Non-data UT ..................................................................................................562H174173HTU7.52.5UT TUSET MAX UNLOCK - F9h/03h, PIO data-out UT .......................................................................................563H175174HTU7.52.6UT TUSET MAX FREEZE LOCK F9h/04h, Non-data UT ..................................................................................564H176

    175HTU7.53UT TUSET MAX ADDRESS EXT - 37h, Non-dataUT..................................................................................................565H177176HTU7.54UT TUSET MULTIPLE MODE - C6h, Non-data UT......................................................................................................566H178177HTU7.55UT TUSLEEP - E6h, Non-data UT...................................................................................................................................567H179178HTU7.56UT TUSMARTUT ........................................................................................................................................................... 568H180

    179HTU7.56.1UT TUOverviewUT .................................................................................................................................................569H180180HTU7.56.2UT

    TUSMART DISABLE OPERATIONS - B0h/D9h, Non-dataUT .....................................................................570H181181HTU7.56.3UT TUSMART ENABLE/DISABLE ATTRIBUTE AUTOSAVE - B0h/D2h, Non-dataUT.................................571H182182HTU7.56.4UT TUSMART ENABLE OPERATIONS - B0h/D8h, Non-dataUT ......................................................................572H183183HTU7.56.5UT TUSMART EXECUTE OFF-LINE IMMEDIATE - B0h/D4h, Non-dataUT ...................................................573H184184HTU7.56.6UT TUSMART READ DATA - B0h/D0h, PIO data-in UT ..................................................................................... 574H188185HTU7.56.7UT TUSMART READ LOG - B0h/D5h UT ............................................................................................................575H192186HTU7.56.8UT TUSMART RETURN STATUS - B0h/DAh, Non-data UT...............................................................................576H200187HTU7.56.9UT TUSMART WRITE LOG - D6h, PIO data-out UT ............................................................................................577H201

    188HTU7.57UT TUSTANDBY - E2h, Non-dataUT............................................................................................................................578H202189HTU7.58UT TUSTANDBY IMMEDIATE - E0h, Non-dataUT .................................................................................................... 579H203190HTU7.59UT TUTRUSTED RECEIVE 5Ch UT...........................................................................................................................580H204191HTU7.60UT TUTRUSTED RECEIVE DMA 5Dh UT ................................................................................................................581H204192HTU7.61UT TUTRUSTED SEND 5Eh UT .................................................................................................................................582H204193HTU

    7.62UT

    TU

    TRUSTED SEND DMA 5FhUT

    .......................................................................................................................583H

    204194HTU7.63UT TUWRITE BUFFER - E8h, PIO data-out UT ............................................................................................................584H205195HTU7.64UT TUWRITE DMA - CAh, DMA UT ............................................................................................................................585H206196HTU7.65UT TUWRITE DMA EXT - 35h, DMA UT.....................................................................................................................586H207197HTU7.66UT TUWRITE DMA FUA EXT - 3Dh, DMA UT ...........................................................................................................587H208198HTU7.67UT TUWRITE DMA QUEUED - CCh, DMA queuedUT ..............................................................................................588H209199HTU7.68UT TUWRITE DMA QUEUED EXT - 36h, DMA queuedUT .......................................................................................589H211200HTU7.69UT TUWRITE DMA QUEUED FUA EXT - 3Eh, DMA queuedUT..............................................................................590H213201HTU7.70UT TUWRITE LOG EXT - 3Fh, PIO data-outUT...........................................................................................................591H214202HTU7.71UT TUWRITE LOG DMA EXT - 47h, DMA UT............................................................................................................592H215203HTU7.72UT TUWRITE MULTIPLE - C3h, PIO data-out UT .......................................................................................................593H216204HTU7.73UT TUWRITE MULTIPLE EXT - 39h, PIO data-out UT ...............................................................................................594H217205HTU7.74UT TUWRITE MULTIPLE FUA EXT - CEh, PIO data-out UT ..................................................................................... 595H218206HTU7.75UT TUWRITE SECTOR(S) - 30h, PIO data-out UT........................................................................................................596H219207HTU7.76UT TUWRITE SECTOR(S) EXT - 34h, PIO data-out UT...............................................................................................597H220208HTU7.77UT TUWRITE STREAM DMA EXT - 3Ah, DMA UT................................................................................................... 598H221209HTU7.78UT TUWRITE STREAM EXT - 3Bh, PIO data-outUT ..................................................................................................599H224210HTU7.79UT TUWRITE UNCORRECTABLE EXT - 45h, Non-data UT ...................................................................................... 600H225

    211HTU8UT TUSCT Command TransportUT....................................................................................................................................601H227212HTU8.1UT TUOverviewUT .........................................................................................................................................................602H227

    213HTU8.1.1UT TUDevice addressing methodsUT .....................................................................................................................603H227214HTU8.1.2UT TUSCT command nesting and interspersing with standard commandsUT........................................................604H227215HTU8.1.3UT TUResetsUT ......................................................................................................................................................605H228

  • 8/12/2019 d1699r2b ATA8 Command Set

    13/309

    T13/1699D Revision 2b

    Page xiii

    216HTU8.2UT TUProcessing SCT commandsUT ............................................................................................................................ 606H228217HTU8.2.1UT TUProcessing SCT commands overview UT..................................................................................................... 607H228218HTU8.2.2UT TUSCT capability identificationUT .................................................................................................................. 608H228219HTU8.2.3UT TUSCT command transferUT ........................................................................................................................... 609H228220HTU8.2.4UT TUSCT data transferUT .................................................................................................................................... 610H231221HTU8.2.5UT TUSCT statusUT............................................................................................................................................... 611H232

    222HTU8.3UT TUSCT Command SetUT ......................................................................................................................................... 612H235223HTU8.3.1UT TULong Sector Access commandUT................................................................................................................ 613H235224HTU8.3.2UT TUWrite SameUT ............................................................................................................................................. 614H237225HTU8.3.3UT TUError Recovery Control commandUT.......................................................................................................... 615H239226HTU8.3.4UT TUFeature Control commandUT ...................................................................................................................... 616H240227HTU8.3.5UT TUSCT Data Table commandUT...................................................................................................................... 617H242

    228HTU9UT TUNormal & Error OutputsUT ..................................................................................................................................... 618H246229HTU9.1UT TUOverviewUT ........................................................................................................................................................ 619H246230HTU9.2UT TUNormal OutputsUT .............................................................................................................................................. 620H246231HTU9.3UT TUError OutputsUT .................................................................................................................................................. 621H254

    232HTU

    ANNEX A -UT TUBIBLIOGRAPHY (INFORMATIVE)UT ...................................................................................... 622H267

    233HTUANNEX B - UT TUCOMMAND SET SUMMARY (INFORMATIVE)UT................................................................... 623H268

    234HTUANNEX C -UT TUDESIGN AND PROGRAMMING CONSIDERATIONS FOR LARGE PHYSICAL SECTORDEVICES (INFORMATIVE)UT ........................................................................................................................... 624H281

    235HTUC.1UT TUIntroductionUT ...................................................................................................................................................... 625H281

    236HTUC.2UT TUPhysical sectorsUT ................................................................................................................................................. 626H281

    237HTUC.3UT TUUnaligned writeUT................................................................................................................................................. 627H281

    238HTUC.4UT TUSET MAXUT .......................................................................................................................................................... 628H282

    239HTUC.5UT TUSoftware compatibilityUT ..................................................................................................................................... 629H282

    240HTU

    ANNEX D -UT TUHOW TO USE SCT COMMANDS UT........................................................................................ 630H283

    241HTUD.1UT TUHow to use SCT commands overviewUT ............................................................................................................. 631H283

    242HTUD.2UT TUExamples of Log page command sequences UT ................................................................................................... 632H285

    243HTUD.3UT TUIssuing an SCT command to a device UT ............................................................................................................. 633H288244HTUD.3.1UT TUStep 1 - Build a Key SectorUT ........................................................................................................................ 634H288245HTUD.3.2UT TUStep 2 - Issue the SCT commandUT................................................................................................................ 635H288246HTUD.3.3UT TUStep 3 - Transfer Data if RequiredUT .............................................................................................................. 636H289247HTUD.3.4UT TUStep 4 - Final Status/SCT Command CompletionUT ...................................................................................... 637H289

  • 8/12/2019 d1699r2b ATA8 Command Set

    14/309

    T13/1699D Revision 2b

    Page xiv

    TablesPage

    248HTUTable 1 - Byte order [Editors Note: Need to rename]UT .........................................................................................................638H9249HTUTable 2 - Byte orderUT ............................................................................................................................................................639H9250HTUTable 3 - Security mode command actionsUT .......................................................................................................................640H22251HTUTable 4 - Media Card type referencesUT ............................................................................................................................... 641H37252HTU

    Table 5 - Long Logical Sector FunctionUT

    ............................................................................................................................642H

    42253HTUTable 6 - Extended error codes UT..........................................................................................................................................643H53254HTUTable 7 - CFA TRANSLATE SECTOR Information UT .......................................................................................................644H54255HTUTable 8 - Device Configuration Overlay Feature field valuesUT...........................................................................................645H60256HTUTable 9 - Device Configuration Identify data structureUT.....................................................................................................646H64257HTUTable 10 - Device Configuration Overlay (DCO) data structureUT.......................................................................................647H69258HTUTable 11 - Diagnostic codes UT .............................................................................................................................................. 648H76259HTUTable 12 - IDENTIFY DEVICE data UT ................................................................................................................................ 649H82260HTUTable 13 - Minor version numberUT......................................................................................................................................650H94261HTUTable 14 Transport minor version numberUT ...................................................................................................................651H103262HTUTable 15 - IDENTIFY PACKET DEVICE dataUT..............................................................................................................652H105263HTUTable 16 - Automatic Standby timer periods UT...................................................................................................................653H117264HTUTable 17 - NOP Subcommand Code UT ............................................................................................................................... 654H123265HTUTable 18 - General Purpose Log DirectoryUT .....................................................................................................................655H135266HTUTable 19 - Extended Comprehensive SMART error logUT .................................................................................................656H135267HTUTable 20 - Extended Error log data structureUT ..................................................................................................................657H136268HTUTable 21 - Command data structure UT ................................................................................................................................ 658H137269HTUTable 22 - Error data structureUT.........................................................................................................................................659H137270HTUTable 23 - State field values UT ............................................................................................................................................660H138271HTUTable 24 - Extended Self-test log data structure UT..............................................................................................................661H139272HTUTable 25 - Extended Self-test log descriptor entry UT ..........................................................................................................662H139273HTUTable 26 - Read Stream Error Log UT ..................................................................................................................................663H140274HTUTable 27 - Error Log EntryUT.............................................................................................................................................. 664H141275HTUTable 28 - Write Stream Error Log UT .................................................................................................................................665H141276HTUTable 29 - Log address definitionUT....................................................................................................................................666H143277HTUTable 30 - SECURITY DISABLE PASSWORD and SECURITY UNLOCK data content UT........................................... 667H157278HTUTable 31 - SECURITY ERASE UNIT data content UT........................................................................................................668H159279HTUTable 32 - SECURITY SET PASSWORD data content UT .................................................................................................669H161280HTUTable 33 - Identifier and security level bit interactionUT ....................................................................................................670H161281HTUTable 34 - SET FEATURES register definitions UT ............................................................................................................671H165282HTUTable 35 - Transfer mode values UT .....................................................................................................................................672H166283HTUTable 36 - Advanced power management levelsUT.............................................................................................................673H167284HTUTable 37 Write-Read-Verify Sector CountsUT ................................................................................................................. 674H168285HTUTable 38 - Automatic acoustic management levelsUT .........................................................................................................675H169286HTUTable 39 - SET MAX Feature field values UT......................................................................................................................676H171287HTUTable 40 - SET MAX SET PASSWORD data contentUT ................................................................................................... 677H173288HTUTable 41 - SMART Feature register valuesUT.....................................................................................................................678H180289HTUTable 42 - SMART EXECUTE OFF-LINE IMMEDIATE Subcommands UT ....................................................................679H184290HTUTable 43 - Device SMART data structureUT .......................................................................................................................680H188291HTUTable 44 - Off-line data collection status byte values UT .....................................................................................................681H189292HTU

    Table 45 - Self-test execution status valuesUT

    .....................................................................................................................682H

    189293HTUTable 46 - SMART Log Directory UT ..................................................................................................................................683H192294HTUTable 47 - SMART summary error log sectorUT................................................................................................................. 684H193295HTUTable 48 - Error log data structureUT ..................................................................................................................................685H193296HTUTable 49 - Command data structure UT ................................................................................................................................ 686H194297HTUTable 50 - Error data structureUT.........................................................................................................................................687H194298HTUTable 51 - State field values UT ............................................................................................................................................688H194299HTUTable 52 - Comprehensive error log UT................................................................................................................................ 689H195300HTUTable 53 - Self-test log data structureUT..............................................................................................................................690H196301HTUTable 54 - Self-test log descriptor entry UT ..........................................................................................................................691H196302HTUTable 55 - Selective self-test logUT .....................................................................................................................................692H197

  • 8/12/2019 d1699r2b ATA8 Command Set

    15/309

    T13/1699D Revision 2b

    Page xv

    303HTUTable 56 - Selective self-test feature flagsUT...................................................................................................................... 693H198304HTUTable 57 Fields to issue an SCT command using SMART WRITE LOGUT................................................................... 694H228305HTUTable 58 Fields to issue an SCT command using WRITE LOG EXTUT......................................................................... 695H229306HTUTable 59 Successful SCT command response UT ............................................................................................................. 696H229307HTUTable 60 SCT command error response UT ...................................................................................................................... 697H230308HTUTable 61 Extended Status codes UT .................................................................................................................................. 698H230309HTUTable 62 SCT data transfer using SMART READ LOG or SMART WRITE LOGUT ................................................... 699H231310HTUTable 63 SCT data transfer using READ LOG EXT or WRITE LOG EXTUT ............................................................... 700H232311HTUTable 64 SCT status request using SMART READ LOGUT ........................................................................................... 701H232312HTUTable 65 SCT status request using READ LOG EXTUT ................................................................................................. 702H233313HTUTable 66 Format of SCT status responseUT ..................................................................................................................... 703H234314HTUTable 67 SCT command format UT................................................................................................................................... 704H235315HTUTable 68 SCT Action Codes UT ........................................................................................................................................ 705H235316HTUTable 69 Long Sector Access commandUT..................................................................................................................... 706H236317HTUTable 70 Long Sector Access command status responseUT............................................................................................. 707H236318HTUTable 71 Long Sector FormatUT ...................................................................................................................................... 708H237319HTUTable 72 Write Same commandUT................................................................................................................................... 709H238320HTUTable 73 Write Same command status response UT.......................................................................................................... 710H238321HTUTable 74 Error Recovery Control commandUT................................................................................................................ 711H239322HTUTable 75 Error Recovery Control command status response UT....................................................................................... 712H240323HTUTable 76 Feature Control commandUT ............................................................................................................................ 713H240324HTUTable 77 Feature Code List UT.......................................................................................................................................... 714H241325HTUTable 78 Feature Control command status responseUT .................................................................................................. 715H242326HTUTable 79 SCT Data Table commandUT........................................................................................................................... 716H242327HTUTable 80 SCT Data Tables (by Table Identifier)UT ......................................................................................................... 717H242328HTUTable 81 Absolute HDA TemperatureUT......................................................................................................................... 718H243329HTUTable 82 Feature Control command status response UT ................................................................................................... 719H245330HTUTable 83 Extended Error Code UT .................................................................................................................................... 720H246331HTUTable 84 Error Bit Defined For Normal Output UT ........................................................................................................... 721H246332HTUTable 85 Device Fault w/Error Bit Defined For Normal OutputUT ................................................................................. 722H247333HTUTable 86 Normal Output UT.............................................................................................................................................. 723H247334HTUTable 87 Media Card Type Normal OutputUT ................................................................................................................. 724H248335HTUTable 88 Check Power ModeUT ...................................................................................................................................... 725H248336HTUTable 89 Stream NormalUT.............................................................................................................................................. 726H249337HTU

    Table 90 Device Reset and Execute DiagnosticsUT

    ......................................................................................................... 727H

    249338HTUTable 91 IDLE UnloadUT ................................................................................................................................................ 728H250339HTUTable 92 ATAPI Normal OutputUT ................................................................................................................................. 729H250340HTUTable 93 Queued Normal OutputUT................................................................................................................................. 730H251341HTUTable 94 SETMAX Normal OutputUT............................................................................................................................. 731H251342HTUTable 95 SMART Off-Line Immediate Normal OutputUT .............................................................................................. 732H252343HTUTable 96 SMART Return Status Normal OutputUT......................................................................................................... 733H253344HTUTable 97 CFA Error StatusUT ........................................................................................................................................... 734H254345HTUTable 98 CFA Error Status w/DRQ UT ............................................................................................................................. 735H255346HTUTable 99 Abort Only Error StatusUT................................................................................................................................ 736H255347HTUTable 100 Abort w/bit 3 Error StatusUT........................................................................................................................... 737H256348HTUTable 101 Abort wo/bit 3 Error StatusUT......................................................................................................................... 738H256349HTUTable 102 Stream ErrorUT ............................................................................................................................................... 739H257350HTUTable 103 Write ErrorUT.................................................................................................................................................. 740H258351HTUTable 104 Media StatusUT ................................................................................................................................................ 741H258352HTUTable 105 Media EjectUT.................................................................................................................................................. 742H259353HTUTable 106 Media LockUT.................................................................................................................................................. 743H259354HTUTable 107 Read DMA ErrorUT ........................................................................................................................................ 744H260355HTUTable 108 Read Log Ext ErrorUT...................................................................................................................................... 745H261356HTUTable 109 Read PIO ErrorUT ............................................................................................................................................ 746H262357HTUTable 110 Read Stream ErrorUT ....................................................................................................................................... 747H263358HTUTable 111 Setmax ErrorUT................................................................................................................................................ 748H263359HTUTable 112 SMART ErrorUT .............................................................................................................................................. 749H264360HTUTable 113 Writre ErrorUT ................................................................................................................................................. 750H265

  • 8/12/2019 d1699r2b ATA8 Command Set

    16/309

    T13/1699D Revision 2b

    Page xvi

    361HTUTable 114 Writre Stream ErrorUT......................................................................................................................................751H266362HTUTable 115 - Command Matrix UT .........................................................................................................................................752H268363HTUTable 116 - Command codes (sorted by command code)UT ...............................................................................................753H269364HTUTable 117 - Command codes (sorted by command name)UT ..............................................................................................754H272365HTUTable 118 - Historical Command AssignmentsUT...............................................................................................................755H274366HTUTable 119 - Historical SET FEATURE Code AssignmentsUT ............................................................................................756H279367HTUFigure 15 Example sequence for reading data using an SCT command with no background activityUT.........................757H286368HTUTable 120 SCT command using SMART WRITE LOG commandUT .............................................................................758H288369HTUTable 121 SCT command using WRITE LOG EXT commandUT ...................................................................................759H288

  • 8/12/2019 d1699r2b ATA8 Command Set

    17/309

    T13/1699D Revision 2b

    Page xvii

    FiguresPage

    370HTUFigure 1 - ATA document relationshipsUT .............................................................................................................................7 60H1371HTUFigure 2 - State diagram convention UT................................................................................................................................... 7 61H7372HTUFigure 3 - Byte, word and DWORD relationshipsUT........................................................................................................... 7 62H10373HTUFigure 4 - Power management state diagramUT.................................................................................................................... 7 63H15374HTU

    Figure 5 - Security mode state diagramUT

    ............................................................................................................................7 64H

    19375HTUFigure 6 - SET MAX security state diagram UT .................................................................................................................... 7 65H28376HTUFigure 7 - Device Configuration Overlay state diagramUT................................................................................................... 7 66H35377HTUFigure 8 - Long Logical and long Physical Sector ExampleUT ............................................................................................ 7 67H41378HTUFigure 9 - Selective self-test test span example UT .............................................................................................................. 768H186379HTUFigure 10 - Unaligned Write ExampleUT............................................................................................................................ 769H282380HTUFigure 11 Example flowchart for SCT commands UT ...................................................................................................... 770H284381HTUFigure 12 Example sequence for foreground write same with a repeating paternUT ....................................................... 771H285382HTUFigure 13 Example sequence for foreground write same with a repeating sectorUT ....................................................... 772H285383HTUFigure 14 Example sequence for writing data using an SCT command with no background activityUT........................ 773H285384HTUFigure 16 Example Sequence for a non-datan SCT command with no background activityUT....................................... 774H286385HTUFigure 17 Example sequence for writing data using an SCT command with background activityUT.............................. 775H287386HTUFigure 18 Example sequence for a non-datan SCT command with background activityUT ............................................ 776H287

  • 8/12/2019 d1699r2b ATA8 Command Set

    18/309

    T13/1699D Revision 2b

    Page xviii

    Foreword(This foreword is not part of this standard.)

    Requests for interpretation, suggestions for improvement and addenda, or defect reports are welcome.They should be sent to the INCITS Secretariat, ITI, 1250 Eye Street, NW, Suite 200, Washington, DC20005-3922.This standard was processed and approved for submittal to ANSI by InterNational Committee forInformation Technology Standards (INCITS). Committee approval of this standard does not necessarilyimply that all committee members voted for approval. At the time it approved this standard, INCITS had thefollowing members:Karen Higginbottom, ChairDavid Michael, Vice-chairMonica Vago, Secretary

    Technical Committee T13 on ATA Interfaces, that reviewed this standard, had the following members andadditional participants:

    Dan Colgrove, Chairman

    Jim Hatfield, Vice-Chairman

    Mark Overby, Secretary[Editors Note: Insert T13 Membership List Here]

  • 8/12/2019 d1699r2b ATA8 Command Set

    19/309

    T13/1699D Revision 2b

    Page xix

    Introduction

    This standard encompasses the following:

    Clause 1 describes the scope.

    Clause 2 provides normative references for the entire standard.

    Clause 3 provides definitions, abbreviations, and conventions used within the entire standard.

    Clause 4 describes the general operating requirements of the command layer.

    Clause 5 describes the ATA protocols used by the commands in this standard

    Clause 6 describes status and error bits

    Clause 7 describes commands

    Clause 8 describes the SCT Command Transport

  • 8/12/2019 d1699r2b ATA8 Command Set

    20/309

  • 8/12/2019 d1699r2b ATA8 Command Set

    21/309

    T13/1699D Revision 2b

    Page 1

    AMERICAN NATIONAL STANDARD INCITS ***-nnnn

    American National Standard

    for Information Systems

    Information TechnologyAT Attachment - 8 ATA/ATAPI Command Set (ATA8-ACS)

    1 Scope

    The set of AT Attachment standards consists of this standard and the ATA implementation standardsdescribed in ATA8-AAM. The AT Attachment ATA Command Set (ATA8-ACS) specifies the command sethost systems use to access storage devices. It provides a common command set for systemsmanufacturers, system integrators, software suppliers, and suppliers of intelligent storage devices. X777HFigure 1X

    shows the relationship of this standard to the other standards and related projects in the ATA and SCSIfamilies of standards and specifications.

    ATAttachment8

    ArchitectureMode

    l

    (ATA8-AAM)

    Otherrelated

    de

    vicespecifications

    Figure 1 - ATA document relationships

    ATA8-ACS maintains compatibility with the AT Attachment with Packet Interface - 7 standard (ATA/ATAPI-7), INCITS 397-2005 volume 1, and while providing additional functions. ATA8-ACS is not intended torequire changes to presently installed devices or existing software.

  • 8/12/2019 d1699r2b ATA8 Command Set

    22/309

    T13/1699D Revision 2b

    Page 2

    2 Normative references

    The following standards contain provisions that, through reference in the text, constitute provisions of thisstandard. At the time of publication, the editions indicated were valid. All standards are subject to revision,and parties to agreements based on this standard are encouraged to investigate the possibility of applyingthe most recent editions of the standards listed below.

    Copies of the following documents can be obtained from ANSI: Approved ANSI standards, approved anddraft international and regional standards (ISO, IEC, CEN/CENELEC, ITUT), and approved and draft foreignstandards (including BSI, JIS, and DIN). For further information, contact ANSI Customer ServiceDepartment at 212-642-4900 (phone), 212-302-1286 (fax), or via the World Wide Web athttp://www.ansi.org.

    Additional availability contact information is provided below as needed.

    2.1 Approved references

    The following approved ANSI standards, approved international and regional standards (ISO, IEC,CEN/CENELEC, ITUT), may be obtained from the international and regional organizations who control them.

    2.1.1 ANSI References

    ISO/IEC 14776 321, SCSI-3 Block Commands (SBC) [ANSI INCITS 306-1998]ISO/IEC 14776 332, SCSI Streaming Commands - 2 (SSC-2) [ANSI INCITS 380-2003]ISO/IEC 14776 363, Multimedia Commands - 3 (MMC-3) [ANSI INCITS 360-2002]Protected Area Run Time Interface Extensions (PARTIES) [ANSI INCITS 346-2001]ISO/IEC 14776 452, SCSI Primary Commands - 2 (SPC-2) [ANSI INCITS 351-2001]

    AT Attachment with Packet Interface Extension (ATA/ATAPI-4) [ANSI INCITS.317-1998]AT Attachment with Packet Interface Extension (ATA/ATAPI-5) [ANSI INCITS.340-2000]AT Attachment with Packet Interface Extension (ATA/ATAPI-6) [ANSI INCITS.361-2002]AT Attachment with Packet Interface Extension (ATA/ATAPI-7) [ANSI INCITS.397-2005]Time Limited Commands (TLC) [ANSI INCITS.TR37-2004]

    SMART Command Transport (SCT) [ANSI INCITS TR38-2005]Address Offset Alternate Boot Feature [ANSI INCITS TR27-2001]

    2.1.2 ISO ReferencesAcousics Measurement of airborne noise emitted by information technology and telecommunications

    equipment [ISO/IEC 7779:1999(E)]

    To obtain copies of these documents, contact Global Engineering or INCITS. Additional information may beavailable at http://www.t10.org and http://www.t13.org.

    2.2 References under development

    At the time of publication, the following referenced standards were still under development. For informationon the current status of the document, or regarding availability, contact the relevant standards body or otherorganization as indicated.

    ISO/IEC 14776 322, SCSI Block Commands - 2 (SBC-2) [T10/1417-D]ISO/IEC 14776 313, SCSI Primary Commands - 3 (SPC-3) [T10/1416-D]ISO/IEC 14776 333, SCSI Streaming Commands 3 (SSC-3) [T10/1611-D]ISO/IEC 14776 364, Multimedia Commands - 4 (MMC-4) [ANSI INCITS 401-200x]

    For more information on the current status of the T10 documents, contact INCITS. To obtain copies of T10or SFF documents, contact Global Engineering.

  • 8/12/2019 d1699r2b ATA8 Command Set

    23/309

    T13/1699D Revision 2b

    Page 3

    2.3 Other references

    The following standards and specifications are also referenced.

    ATAPI for Rewritable Media [SFF8070i]For the SFF documents contact SFF at www.sffcommittee.org.

    PC Card Standard, February 1995, PCMCIA (68-pin Connector)

    For the PC Card Standard published by the Personal Computer Memory Card International Association,contact PCMCIA at 408-433-2273 or http://www.pc-card.org.