1、American National StandardDeveloped byfor Information Technology SAS Protocol Layer (SPL)INCITS 476-2011INCITS 476-2011INCITS 476-2011American National Standardfor Information Technology SAS Protocol Layer (SPL)SecretariatInformation Technology Industry CouncilApproved June 28, 2011American National
2、 Standards Institute, Inc.AbstractThis standard specifies three transport protocols used over the SAS interconnect specified in SAS-2.1: one to transport SCSI commands, another to transport Serial ATA commands to multiple SATA devices, and a third to support interface management. This standard is in
3、tended to be used in conjunction with SAS standards, SCSI command set standards, and ATA command set standards.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.Co
4、nsensus is established when, in the judgement of the ANSI Board ofStandards Review, substantial 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 ob
5、jections be considered, and that a concerted effort be madetowards their resolution.The use of American National Standards is completely voluntary; theirexistence does not in any respect preclude anyone, whether he has approvedthe standards or not, from manufacturing, marketing, purchasing, or using
6、products, processes, or procedures not conforming to the standards.The American National Standards Institute does not develop standards andwill in no circumstances give an interpretation of any American NationalStandard. Moreover, no person shall have the right or authority to issue aninterpretation
7、 of an American National Standard in the name of the AmericanNational Standards Institute. Requests for interpretations should beaddressed to the secretariat or sponsor whose name appears on the titlepage of this standard.CAUTION NOTICE: This American National Standard may be revised orwithdrawn at
8、any time. The procedures of the American National StandardsInstitute require that action be taken periodically to reaffirm, revise, orwithdraw this standard. Purchasers of American National Standards mayreceive current information on all standards by calling or writing the AmericanNational Standards
9、 Institute.American National StandardPublished byAmerican National Standards Institute, Inc.25 West 43rd Street, New York, NY 10036Copyright 2011 by Information Technology Industry Council (ITI)All rights reserved.No part of this publication may be reproduced in anyform, in an electronic retrieval s
10、ystem or otherwise,without prior written permission of ITI, 1101 K Street NW, Suite 610, Washington, DC 20005. Printed in the United States of AmericaCAUTION: The developers of this standard have requested that holders of patents that may be re-quired for the implementation of the standard disclose
11、such patents to the publisher. However, nei-ther the developers nor the publisher have undertaken 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 requir
12、ed for the implementation of the standard,notice of one or more such claims has been received. 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
13、 willingness to grant a license underthese rights on reasonable and nondiscriminatory terms 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
14、processes. No representation ismade or implied that this is the only license that may be required to avoid infringement in the use ofthis standard.iContentsPageForeword xxxiiIntroduction . xxxvi1 Scope. 12 Normative references. 32.1 Normative references . 32.2 Approved references 32.3 .References un
15、der development 42.4 Other references. 43 Definitions, symbols, abbreviations, keywords, and conventions 53.1 Definitions. 53.2 Symbols and abbreviations 183.3 Keywords 213.4 Editorial conventions 213.5 Class diagram and object diagram conventions. 233.6 State machine conventions 273.6.1 State machi
16、ne conventions overview 273.6.2 Transitions 283.6.3 Messages, requests, indications, confirmations, responses, and event notifications . 293.6.4 State machine counters, timers, and variables . 293.6.5 State machine arguments . 293.7 Bit and byte ordering 303.8 Notation for procedures and functions 3
17、04 General 324.1 Architecture 324.1.1 Architecture overview 324.1.2 Physical links and phys. 344.1.3 Logical links 384.1.4 Ports (narrow ports and wide ports) 384.1.5 Application clients and device servers 414.1.6 SAS devices 424.1.7 Expander devices . 434.1.8 Service delivery subsystem 444.1.9 Doma
18、ins 454.1.10 Expander device topologies 474.1.10.1 Expander device topology overview 474.1.10.2 Expander device topologies 474.1.11 Pathways 494.1.12 Connections 494.1.13 Broadcasts 514.2 Names and identifiers. 534.2.1 Names and identifiers overview 534.2.2 NAA IEEE Registered format identifier . 54
19、4.2.3 NAA Locally Assigned format identifier. 554.2.4 SAS address . 564.2.5 Hashed SAS addresses 564.2.6 Device names and expander device SAS addresses . 574.2.7 Device name for SATA devices with world wide names . 574.2.8 Port names 574.2.9 Port identifiers and SAS port SAS addresses. 574.2.10 Phy
20、identifiers . 584.3 State machines. 59ii4.3.1 State machine overview 594.3.2 Transmit data path 604.3.3 Receive data path . 654.3.4 State machines and SAS Device, SAS Port, and SAS Phy classes. 684.4 Resets 704.4.1 Reset overview . 704.4.2 Hard reset . 724.4.2.1 Hard reset overview 724.4.2.2 Additio
21、nal hard reset processing by SAS ports .724.4.2.3 Additional hard reset processing by expander ports . 724.5 I_T nexus loss 724.6 Expander device model 734.6.1 Expander device model overview . 734.6.2 Expander ports 744.6.3 Expander connection manager (ECM) 754.6.4 Expander connection router (ECR).
22、754.6.5 Broadcast propagation processor (BPP) 764.6.6 Expander device interfaces. 764.6.6.1 Expander device interface overview 764.6.6.2 Expander device interfaces detail . 784.6.6.3 ECM interface 794.6.6.4 ECR interface 814.6.6.5 BPP interface 824.6.7 Expander device routing . 844.6.7.1 Routing att
23、ributes and routing methods 844.6.7.2 Expander device topology routing attribute restrictions. 854.6.7.3 Connection request routing . 854.6.7.4 Expander route table . 854.6.7.4.1 Expander route table overview 854.6.7.4.2 Phy-based expander route table 864.6.7.4.3 Expander-based expander route table
24、874.6.8 Expander device reduced functionality . 874.6.9 Broadcast (Expander) handling 884.7 Discover process 884.7.1 Discover process overview . 884.7.2 Starting the discover process (Broadcast (Change) handling) . 884.7.3 Discover process traversal 884.7.4 Discover process in a self-configuring exp
25、ander device. 904.7.5 Enabling multiplexing 914.8 Configuration subprocess. 924.8.1 Configuration subprocess overview 924.8.2 Allowed expander device topologies. 924.8.3 Externally configurable expander device route table optimization 934.8.4 Externally configurable expander device expander route in
26、dex order 944.9 Zoning. 1014.9.1 Zoning overview 1014.9.2 Zoning expander device requirements 1054.9.3 Zoning operation . 1084.9.3.1 Zone phy information. 1084.9.3.2 Zone groups 1104.9.3.3 Zone permission table . 1104.9.3.4 Zoning expander route table . 1124.9.3.5 Source zone group and destination z
27、one group determination. 1134.9.4 Zone phy information and link reset sequences . 1134.9.5 Broadcast processing in a zoning expander device with zoning enabled. 1154.9.6 Zone configuration 1164.9.6.1 Zone configuration overview . 116iii4.9.6.2 Lock step . 1164.9.6.3 Load step. 1174.9.6.4 Activate st
28、ep 1174.9.6.5 Unlock step 1184.9.6.6 Zone lock inactivity timer . 1194.9.6.7 Enable a zoning expander device . 1194.10 Phy power conditions . 1194.10.1 Low phy power conditions. 1194.10.1.1 Low phy power conditions overview 1194.10.1.2 Active phy power condition 1204.10.1.3 Partial phy power conditi
29、on . 1204.10.1.4 Slumber phy power condition 1204.10.1.5 End device low phy power conditions . 1204.10.1.6 Expander low phy power conditions 1214.10.2 SATA phy power conditions 1214.11 SAS device and expander device power conditions. 1214.12 Phy test functions . 1224.12.1 Phy test functions overview
30、 1224.12.2 Transmit pattern phy test function. 1224.13 Phy events 1225 Phy layer 1285.1 Phy layer overview . 1285.2 8b10b coding 1285.2.1 8b10b coding overview . 1285.2.2 8b10b coding notation conventions 1285.3 Character encoding and decoding 1295.3.1 Introduction . 1295.3.2 Bit transmission order
31、. 1295.3.3 Character transmission order 1295.3.4 Frame transmission order . 1295.3.5 Running disparity (RD) 1305.3.6 Data characters. 1305.3.7 Control characters. 1365.3.8 Encoding characters in the transmitter . 1375.3.9 Decoding characters in the receiver . 1375.4 Dwords, primitives, data dwords,
32、and invalid dwords. 1375.5 Bit order 1385.6 Out of band (OOB) signals . 1395.6.1 OOB signals overview. 1395.6.2 SP Transmission of OOB signals 1395.6.3 Receiver detection of OOB signals . 1405.6.4 SATA port selection signal 1425.6.5 Phy power conditions 1435.7 Phy reset sequences 1435.7.1 Phy reset
33、sequences overview . 1435.7.2 SATA phy reset sequence 1445.7.2.1 SATA OOB sequence . 1445.7.2.2 SATA speed negotiation sequence . 1455.7.3 SAS to SATA phy reset sequence 1455.7.4 SAS to SAS phy reset sequence 1475.7.4.1 SAS OOB sequence 1475.7.4.2 SAS speed negotiation sequence . 1495.7.4.2.1 SAS sp
34、eed negotiation sequence overview 1495.7.4.2.2 SAS speed negotiation sequence timing specifications 1495.7.4.2.3 Speed negotiation window (SNW) definitions 1515.7.4.2.3.1 SNW definitions overview . 151iv5.7.4.2.3.2 SNW-1, SNW-2, and Final-SNW. 1515.7.4.2.3.3 SNW-3. 1525.7.4.2.3.4 Train-SNW 1575.7.4.
35、2.4 SAS speed negotiation sequence 1605.7.4.2.5 SAS speed negotiation sequence examples . 1615.7.4.3 Multiplexing sequence. 1685.7.5 Phy reset sequence after devices are attached 1695.8 Phy power condition sequences. 1705.8.1 Transitioning from the active phy power condition to a low phy power condi
36、tion . 1705.8.2 Transitioning from a low phy power condition to the active phy power condition . 1705.8.3 Events during low phy power condition. 1715.9 SP (phy layer) state machine . 1725.9.1 SP state machine overview. 1725.9.2 SP transmitter and receiver 1755.9.3 OOB sequence states. 1775.9.3.1 OOB
37、 sequence states overview 1775.9.3.2 SP0:OOB_COMINIT state. 1785.9.3.2.1 State description 1785.9.3.2.2 Transition SP0:OOB_COMINIT to SP1:OOB_AwaitCOMX. 1795.9.3.2.3 Transition SP0:OOB_COMINIT to SP3:OOB_AwaitCOMINIT_Sent. 1795.9.3.2.4 Transition SP0:OOB_COMINIT to SP4:OOB_COMSAS. 1795.9.3.3 SP1:OOB
38、_AwaitCOMX state 1795.9.3.3.1 State description 1795.9.3.3.2 Transition SP1:OOB_AwaitCOMX to SP0:OOB_COMINIT. 1795.9.3.3.3 Transition SP1:OOB_AwaitCOMX to SP4:OOB_COMSAS 1795.9.3.4 SP2:OOB_NoCOMSASTimeout state. 1795.9.3.4.1 State description 1795.9.3.4.2 Transition SP2:OOB_NoCOMSASTimeout to SP0:OO
39、B_COMINIT . 1805.9.3.4.3 Transition SP2:OOB_NoCOMSASTimeout to SP4:OOB_COMSAS. 1805.9.3.5 SP3:OOB_AwaitCOMINIT_Sent state 1805.9.3.5.1 State description 1805.9.3.5.2 Transition SP3:OOB_AwaitCOMINIT_Sent to SP4:OOB_COMSAS 1805.9.3.6 SP4:OOB_COMSAS state 1805.9.3.6.1 State description 1805.9.3.6.2 Tra
40、nsition SP4:OOB_COMSAS to SP5:OOB_AwaitCOMSAS_Sent 1805.9.3.6.3 Transition SP4:OOB_COMSAS to SP6:OOB_AwaitNoCOMSAS. 1805.9.3.6.4 Transition SP4:OOB_COMSAS to SP7:OOB_AwaitCOMSAS . 1815.9.3.7 SP5:OOB_AwaitCOMSAS_Sent state 1815.9.3.7.1 State description 1815.9.3.7.2 Transition SP5:OOB_AwaitCOMSAS_Sen
41、t to SP6:OOB_AwaitNoCOMSAS. 1815.9.3.8 SP6:OOB_AwaitNoCOMSAS state. 1815.9.3.8.1 State description 1815.9.3.8.2 Transition SP6:OOB_AwaitNoCOMSAS to SP0:OOB_COMINIT . 1815.9.3.8.3 Transition SP6:OOB_AwaitNoCOMSAS to SP8:SAS_Start 1815.9.3.9 SP7:OOB_AwaitCOMSAS state . 1815.9.3.9.1 State description 1
42、815.9.3.9.2 Transition SP7:OOB_AwaitCOMSAS to SP2:OOB_NoCOMSASTimeout 1815.9.3.9.3 Transition SP7:OOB_AwaitCOMSAS to SP6:OOB_AwaitNoCOMSAS 1815.9.3.9.4 Transition SP7:OOB_AwaitCOMSAS to SP16:SATA_COMWAKE. 1825.9.3.9.5 Transition SP7:OOB_AwaitCOMSAS to SP26:SATA _SpinupHold 1825.9.4 SAS speed negotia
43、tion states. 1825.9.4.1 SAS speed negotiation states overview 1825.9.4.2 Negotiation idle 1825.9.4.3 SP8:SAS_Start state . 1845.9.4.3.1 State description 1845.9.4.3.2 Transition SP8:SAS_Start to SP0:OOB_COMINIT . 1855.9.4.3.3 Transition SP8:SAS_Start to SP1:OOB_AwaitCOMX . 185v5.9.4.3.4 Transition S
44、P8:SAS_Start to SP9:SAS_WindowNotSupported 1855.9.4.3.5 Transition SP8:SAS_Start to SP10:SAS_AwaitALIGN 1855.9.4.3.6 Transition SP8:SAS_Start to SP27:SAS_Settings 1855.9.4.4 SP9:SAS_WindowNotSupported state 1865.9.4.4.1 State description 1865.9.4.4.2 Transition SP9:SAS_WindowNotSupported to SP0:OOB_
45、COMINIT 1865.9.4.4.3 Transition SP9:SAS_WindowNotSupported to SP14:SAS_Fail 1865.9.4.5 SP10:SAS_AwaitALIGN state . 1865.9.4.5.1 State description 1865.9.4.5.2 Transition SP10:SAS_AwaitALIGN to SP0:OOB_COMINIT . 1865.9.4.5.3 Transition SP10:SAS_AwaitALIGN to SP11:SAS_AwaitALIGN1 1865.9.4.5.4 Transiti
46、on SP10:SAS_AwaitALIGN to SP12:SAS_AwaitSNW 1865.9.4.5.5 Transition SP10:SAS_AwaitALIGN to SP14:SAS_Fail 1865.9.4.6 SP11:SAS_AwaitALIGN1 state . 1865.9.4.6.1 State description 1865.9.4.6.2 Transition SP11:SAS_AwaitALIGN1 to SP0:OOB_COMINIT . 1875.9.4.6.3 Transition SP11:SAS_AwaitALIGN1 to SP12:SAS_A
47、waitSNW 1875.9.4.6.4 Transition SP11:SAS_AwaitALIGN1 to SP14:SAS_Fail 1875.9.4.7 SP12:SAS_AwaitSNW state . 1875.9.4.7.1 State description 1875.9.4.7.2 Transition SP12:SAS_AwaitSNW to SP0:OOB_COMINIT 1875.9.4.7.3 Transition SP12:SAS_AwaitSNW to SP13:SAS_Pass 1875.9.4.8 SP13:SAS_Pass state. 1875.9.4.8
48、.1 State description 1875.9.4.8.2 Transition SP13:SAS_Pass to SP0:OOB_COMINIT . 1875.9.4.8.3 Transition SP13:SAS_Pass to SP8:SAS_Start . 1885.9.4.8.4 Transition SP13:SAS_Pass to SP15:SAS_PHY_Ready . 1885.9.4.9 SP14:SAS_Fail state. 1885.9.4.9.1 State description 1885.9.4.9.2 Transition SP14:SAS_Fail
49、to SP1:OOB_AwaitCOMX. 1885.9.4.9.3 Transition SP14:SAS_Fail to SP8:SAS_Start 1885.9.4.10 SP15:SAS_PHY_Ready state. 1885.9.4.10.1 State description 1885.9.4.10.2 Transition SP15:SAS_PHY_Ready to SP0:OOB_COMINIT . 1895.9.4.10.3 Transition SP15:SAS_PHY_Ready to SP31:SAS_PS_Low_Phy_Power . 1895.9.4.11 SP27:SAS_Settings state 1895.9.4.11.1 State description 1895.9.4.11.2 Transition SP27:SAS_Settings to SP0:OOB_COMINIT 1895.9.4.11.3 Transition SP27:SAS_Settings to SP1:OOB_AwaitCOMX 1895.9.4.11.4 Transition SP27:SAS_Settings to SP8:SAS_Start 1905.9.4.11.5 Transition SP27:SAS_Settings to SP28:SAS