PCI Express System Architecture
PCI Express System Architecture
-
O K- Read Only column
-
- -
-
-
-
- --
-
-
- ----
-
- - -
- - -
-
-
- -
K --
-
-- -
-
-
- -
- --
- -
- - -
--
K- -
-- -
-
- -
-- -
--
--v -
-v -
v
v -
v -
v -
v -
--
v -
-- -
- - -
-
-
--
-
-- -
- - -
-
- -
--
--
-
-
-
- - - {
- - { - { {
- ToIyo { - Moxico Cily
Many of llo dosignalions usod by manufaclurors and soIIors lo dislinguisl lloir prod-
ucls aro cIaimod as lradomarIs. Wloro lloso dosignalors appoar in llis booI, and Add-
ison-WosIoy vas avaro of llo lradomarI cIaim, llo dosignalions lavo boon prinlod in
iniliaI capilaI Iollors or aII capilaI Iollors.
Tlo aullors and pubIislors lavo laIon caro in proparalion of llis booI, bul maIo no
oxprossod or impIiod varranly of any Iind and assumo no rosponsibiIily for orrors or
omissions. No IiabiIily is assumod for incidonlaI or consoquonliaI damagos in connoc-
lion vill or arising oul of llo uso of llo informalion or programs conlainod loroin.
Iibrary of Congross CalaIoging-in-IubIicalion Dala
ISBN: 0-
Copyrigll 2003 by MindSlaro, Inc.
AII riglls rosorvod. No parl of llis pubIicalion may bo roproducod, slorod in a rolriovaI
syslom, or lransmillod, in any form or by any moans, oIoclronic, moclanicaI, plolocopy-
ing, rocording, or ollorviso, villoul llo prior vrillon pormission of llo pubIislor.
Irinlod in llo Unilod Slalos of Amorica. IubIislod simuIlanoousIy in Canada.
Sponsoring Idilor:
Irojocl Managor:
Covor Dosign:
Sol in 10 poinl IaIalino by MindSlaro, Inc.
1 2 3 4 5 6 7 8 9-MA-999897
Irinling, , 2003
Addison-WosIoy booIs avaiIabIo for buII purclasos by corporalions, inslilulions, and
ollor organizalions. Ior moro informalion pIoaso conlacl llo Corporalo, Govornmonl,
and SpociaI SaIos Doparlmonl al (800) 238-9682.
Iind A-W DovoIopors Iross on llo WorId-Wido Wob al:
lllp://vvv.avI.com/dovpross/
To my parents Aruna and Shripal Budruk
who started me on the path to Knowledge
-
-
-
-
-
-
ICI Ixpross....................................................................................................................... 4
HoxadocimaI Nolalion ........................................................................................................ 4
Binary Nolalion.................................................................................................................... 4
DocimaI Nolalion................................................................................................................. 4
Bils Vorsus Bylos Nolalion ................................................................................................. 5
Bil IioIds................................................................................................................................ 5
Aclivo SignaI Slalos.............................................................................................................. 5
-
-
--
Tlo RoIo of llo OriginaI ICI SoIulion............................................................................. 10
Donl Tlrov Avay Wlal is Good! Koop Il ............................................................ 10
MaIo Improvomonls for llo Iuluro......................................................................... 10
IooIing inlo llo Iuluro ............................................................................................. 11
-- --
Aullors DiscIaimor........................................................................................................... 12
Bus Iorformancos and Numbor of SIols Comparod..................................................... 12
ICI Ixpross Aggrogalo Tlrouglpul ............................................................................... 13
Iorformanco Ior Iin Comparod...................................................................................... 14
- -
33 MHz ICI Bus Basod Syslom........................................................................................ 16
IIoclricaI Ioad Iimil of a 33 MHz ICI Bus............................................................. 17
ICI Transaclion ModoI - Irogrammod IO.............................................................. 19
ICI Transaclion ModoI - Ioor-lo-Ioor ..................................................................... 22
ICI Bus Arbilralion.................................................................................................... 22
ICI DoIayod Transaclion IrolocoI ........................................................................... 23
ICI Rolry IrolocoI: .............................................................................................. 23
ICI Disconnocl IrolocoI: .................................................................................... 24
ICI Inlorrupl HandIing.............................................................................................. 25
-
-- --
ICI Ixpross Transaclion IrolocoI ................................................................................... 57
Non-Ioslod Road Transaclions................................................................................. 58
Non-Ioslod Road Transaclion for IocIod Roquosls ............................................. 59
Non-Ioslod Wrilo Transaclions................................................................................ 61
Ioslod Momory Wrilo Transaclions......................................................................... 62
Ioslod Mossago Transaclions.................................................................................... 63
Somo IxampIos of Transaclions....................................................................................... 64
Momory Road Originalod by CIU, Targoling an Indpoinl................................. 64
Momory Road Originalod by Indpoinl, Targoling Syslom Momory.................. 66
IO Wrilo Inilialod by CIU, Targoling an Indpoinl ............................................... 67
Momory Wrilo Transaclion Originalod by CIU and
Targoling an Indpoinl .............................................................................................. 68
-- -
Ovorviov............................................................................................................................. 69
Transmil Iorlion of Dovico Iayors........................................................................... 71
Rocoivo Iorlion of Dovico Iayors............................................................................. 71
Dovico Iayors and lloir Associalod IacIols.................................................................. 71
Transaclion Iayor IacIols (TIIs) ............................................................................ 71
TII IacIol AssombIy.......................................................................................... 72
TII IacIol DisassombIy..................................................................................... 73
Dala IinI Iayor IacIols (DIIIs) ............................................................................ 74
DIII AssombIy................................................................................................... 75
DIII DisassombIy .............................................................................................. 76
IlysicaI Iayor IacIols (IIIs) .................................................................................. 77
Iunclion of Iacl ICI Ixpross Dovico Iayor .................................................................. 78
Dovico Coro / Soflvaro Iayor .................................................................................. 78
Transmil Sido. ...................................................................................................... 78
Rocoivo Sido.......................................................................................................... 78
Transaclion Iayor ....................................................................................................... 79
Transmil Sido. ...................................................................................................... 80
Rocoivor Sido ........................................................................................................ 81
IIov ConlroI......................................................................................................... 81
QuaIily of Sorvico (QoS) ..................................................................................... 82
Traffic CIassos (TCs) and VirluaI ClannoIs (VCs).......................................... 84
Iorl Arbilralion and VC Arbilralion ................................................................ 85
Transaclion Ordoring.......................................................................................... 87
Iovor Managomonl ............................................................................................ 87
Configuralion Rogislors...................................................................................... 87
Dala IinI Iayor........................................................................................................... 87
-
BacIground ICI Inlorrupl SignaIing ....................................................................... 342
Dovico INTx# Iins .................................................................................................... 342
Dolormining if a Iunclion Usos INTx# Iins ......................................................... 343
Inlorrupl Rouling...................................................................................................... 344
Associaling llo INTx# Iino lo an IRQ Numbor ................................................... 345
INTx# SignaIing ........................................................................................................ 345
Inlorrupl DisabIo................................................................................................ 346
Inlorrupl Slalus .................................................................................................. 346
VirluaI INTx SignaIing.................................................................................................... 347
VirluaI INTx Wiro DoIivory..................................................................................... 348
CoIIapsing INTx SignaIs villin a Bridgo.............................................................. 349
INTx Mossago Iormal .............................................................................................. 351
- -
- - - -
IxampIo Syslom............................................................................................................... 353
--
ICI Ixpross Irror ClocIing Moclanisms.................................................................... 356
Transaclion Iayor Irrors ......................................................................................... 358
Dala IinI Iayor Irrors ............................................................................................ 358
IlysicaI Iayor Irrors ............................................................................................... 358
Irror Roporling Moclanisms ......................................................................................... 359
Irror HandIing Moclanisms.......................................................................................... 360
- -- -
ICRC Gonoralion and ClocIing ................................................................................... 361
Dala Ioisoning (OplionaI) .............................................................................................. 362
TC lo VC Mapping Irrors............................................................................................... 363
IinI IIov ConlroI-RoIalod Irrors................................................................................. 363
MaIformod Transaclion Iayor IacIol (TII) ................................................................ 364
SpIil Transaclion Irrors .................................................................................................. 365
Unsupporlod Roquosl .............................................................................................. 365
CompIolor Aborl ....................................................................................................... 366
Unoxpoclod CompIolion.......................................................................................... 367
CompIolion Timo-oul ............................................................................................... 367
---
CorroclabIo Irrors............................................................................................................ 369
UncorroclabIo Non-IalaI Irrors..................................................................................... 369
UncorroclabIo IalaI Irrors.............................................................................................. 369
-
-
SIol CapabiIilios................................................................................................................ 670
SIol Iovor Iimil ConlroI ......................................................................................... 672
SIol ConlroI ....................................................................................................................... 672
SIol Slalus and Ivonls Managomonl ............................................................................. 674
Card SIol vs Sorvor IO ModuIo ImpIomonlalions ....................................................... 676
Dolocling ModuIo and BIado CapabiIilios............................................................. 678
Hol IIug Mossagos ................................................................................................... 678
Allonlion and Iovor Indicalor ConlroI Mossagos ....................................... 678
Allonlion Bullon Irossod Mossago ................................................................. 679
Iimilalions of llo Hol IIug Mossagos............................................................ 679
IlysicaI SIol ID................................................................................................................. 681
-
GonoraI............................................................................................................................... 681
Iausing a Drivor (OplionaI) ........................................................................................... 681
Quioscing a Drivor Tlal ConlroIs MuIlipIo Dovicos ........................................... 682
Quioscing a IaiIod Card........................................................................................... 682
-
- -
Add-in Connoclor ............................................................................................................ 686
AuxiIiary SignaIs.............................................................................................................. 693
GonoraI ....................................................................................................................... 693
Roforonco CIocI......................................................................................................... 694
IIRST# ....................................................................................................................... 695
WAKI#....................................................................................................................... 696
SMBus......................................................................................................................... 698
}TAG........................................................................................................................... 699
IRSNT Iins................................................................................................................ 699
IIoclricaI Roquiromonls................................................................................................... 700
Iovor SuppIy Roquiromonls .................................................................................. 700
Iovor Dissipalion Iimils ........................................................................................ 701
Add-in Card InloroporabiIily......................................................................................... 702
-
GonoraI............................................................................................................................... 703
Sorvor IO ModuIo (SIOM)............................................................................................... 703
Risor Card.......................................................................................................................... 704
Mini ICI Ixpross Card.................................................................................................... 704
NIWCARD form faclor .................................................................................................. 707
-
--
-
-
-
--
Inlroduclion...................................................................................................................... 715
Iunclion Configuralion Spaco........................................................................................ 715
ICI-CompalibIo Spaco ............................................................................................. 715
ICI Ixpross Ixlondod Configuralion Spaco......................................................... 716
- - --
--
--
OnIy llo Rool CompIox Can Originalo Configuralion Transaclions ....................... 718
Configuralion Transaclions OnIy Movo DovnSlroam............................................... 718
No Ioor-lo-Ioor Configuralion Transaclions............................................................... 718
-- -
- -
--
-
BacIground....................................................................................................................... 724
ICI-CompalibIo Configuralion Moclanism
Doscriplion............................................................................................................................... 724
GonoraI ....................................................................................................................... 724
Configuralion Addross Iorl.................................................................................... 725
Bus Comparo and Dala Iorl Usago........................................................................ 726
Targol Bus = 0..................................................................................................... 726
Bus Numbor < Targol Bus Subordinalo Bus Numbor............................... 727
SingIo Hosl/ICI Bridgo........................................................................................... 727
MuIlipIo Hosl/ICI Bridgos..................................................................................... 729
-- -
Doscriplion........................................................................................................................ 731
Somo RuIos........................................................................................................................ 731
-
-
-
--
--
---
Wlals Going On During IniliaIizalion Timo` ............................................................ 738
Dofinilion of IniliaIizalion Ioriod In ICI ..................................................................... 738
Dofinilion of IniliaIizalion Ioriod In ICI-X ................................................................. 739
ICI Ixpross and IniliaIizalion Timo.............................................................................. 739
IniliaI Configuralion Accoss IaiIuro Timooul ...................................................... 739
DoIay Irior To IniliaI Configuralion Accoss lo Dovico ....................................... 739
A Dovico Will a Ionglly SoIf-IniliaIizalion Ioriod ............................................ 740
RC Rosponso To CRS Rocoipl During Run-Timo ........................................................ 740
--
-
- -
OporalionaI Claraclorislics of llo ICI-CompalibIo Moclanism.............................. 754
OporalionaI Claraclorislics of llo Inlancod
Configuralion Moclanism..................................................................................................... 755
Tlo Inumoralion Irocoss ............................................................................................... 755
A MuIlifunclion Dovico Willin a Rool CompIox........................................................ 758
A MuIlifunclion Dovico Willin a Svilcl ..................................................................... 759
GonoraI............................................................................................................................... 763
Rool CompIox Bus Numbor/Dovico Numbor
Assignmonl .............................................................................................................................. 764
Inilialing Roquosls Irior To ID Assignmonl ................................................................ 764
Inilialing CompIolions Irior lo ID Assignmonl .......................................................... 765
- - -
Wlal IrobIom Doos an RCRB Addross` ...................................................................... 765
AddilionaI Informalion on RCRBs................................................................................ 766
-- -
A SpIil Configuralion Transaclion Roquiros a SingIo
CompIolion............................................................................................................................... 766
An Issuo Ior ICI Ixpross-lo-ICI or -ICI-X Bridgos................................................... 767
ICI SpociaI CycIo Transaclions...................................................................................... 767
-
--
GonoraI............................................................................................................................... 770
Hoador Typo 0 Rogislors CompalibIo Will ICI .......................................................... 772
Hoador Typo 0 Rogislors IncompalibIo Will ICI ....................................................... 772
Rogislors Usod lo Idonlify Dovicos Drivor .................................................................. 773
Vondor ID Rogislor ................................................................................................... 773
Dovico ID Rogislor .................................................................................................... 773
Rovision ID Rogislor................................................................................................. 773
CIass Codo Rogislor .................................................................................................. 774
GonoraI ................................................................................................................ 774
Tlo Irogramming Inlorfaco Bylo .................................................................... 774
DolaiIod CIass Codo Doscriplion..................................................................... 775
Subsyslom Vondor ID and Subsyslom ID Rogislors............................................ 776
GonoraI ................................................................................................................ 776
Tlo IrobIom SoIvod by Tlis Rogislor Iair..................................................... 776
Musl Conlain VaIid Dala Wlon Iirsl Accossod............................................ 777
Hoador Typo Rogislor...................................................................................................... 777
BIST Rogislor..................................................................................................................... 778
CapabiIilios Ioinlor Rogislor .......................................................................................... 779
Configuralion Hoador Spaco Nol Iargo Inougl................................................. 779
Discovoring Tlal CapabiIilios Ixisl ....................................................................... 779
Wlal llo CapabiIilios Iisl IooIs IiIo................................................................... 780
CardBus CIS Ioinlor Rogislor ........................................................................................ 782
Ixpansion ROM Baso Addross Rogislor....................................................................... 783
Command Rogislor .......................................................................................................... 785
Slalus Rogislor .................................................................................................................. 788
Caclo Iino Sizo Rogislor ................................................................................................. 790
Maslor Ialoncy Timor Rogislor ...................................................................................... 790
Inlorrupl Iino Rogislor .................................................................................................... 791
Usago In a ICI Iunclion .......................................................................................... 791
Usago In a ICI Ixpross Iunclion............................................................................ 791
Inlorrupl Iin Rogislor...................................................................................................... 792
Usago In a ICI Iunclion .......................................................................................... 792
Usago In a ICI Ixpross Iunclion............................................................................ 792
Baso Addross Rogislors ................................................................................................... 792
Inlroduclion............................................................................................................... 793
IO Spaco Usago.......................................................................................................... 793
Momory Baso Addross Rogislor.............................................................................. 794
Docodor Widll IioId......................................................................................... 794
IrofolclabIo Allribulo Bil ................................................................................. 795
-
C--4 InloIIigonl Adaplors in ICI and ICI Ixpross Sysloms ...................................................... 1006
C--5 Hosl IaiIovor in ICI and ICI Ixpross Sysloms..................................................................1008
C--6 DuaI Hosl in a ICI and ICI Ixpross Syslom......................................................................1010
C--7 DuaI-Slar Iabric ......................................................................................................................1012
C--8 Dirocl Addross TransIalion....................................................................................................1014
C--9 IooIup TabIo Basod TransIalion ..........................................................................................1015
C--10 Uso of Iimil Rogislor ..............................................................................................................1016
D--1 CIass Codo Rogislor ................................................................................................................1019
I-1 IocI Soquonco Bogins vill Momory Road IocI Roquosl ................................................1037
I-2 IocI CompIolos vill Momory Wrilo IoIIovod by UnIocI Mossago ............................. 1038
-
-
NolvorI Arclilocluro Infiniband NolvorI
Arclilocluro
1sl 0-321-11765-4
-- -
Cautionary Note
Tlo roador slouId Ioop in mind llal MindSlaros booI sorios oflon dolaiIs rap-
idIy ovoIving loclnoIogios, as is llo caso vill ICI Ixpross. Tlis boing llo caso,
il slouId bo rocognizod llal llo booI is a snapslol of llo slalo of llo loclnoI-
ogy al llo limo llo booI vas compIolod. Wo maIo ovory allompl lo produco our
booIs on a limoIy basis, bul llo noxl rovision of llo spocificalion is nol inlro-
ducod in limo lo maIo nocossary clangos. Tlis ICI Ixpross booI compIios vill
rovision 1.0a of llo -- - roIoasod and lradomarIod by
llo ICI SpociaI Inlorosl Group. SovoraI oxpansion card form-faclor spocifica-
lions aro pIannod for ICI Ixpross, bul onIy llo IIoclromoclanicaI spocificalion,
rovision 1.0 vas roIoasod vlon llis booI vas compIolod. Hovovor, llo claplor
covoring llo Card IIoclromoclanicaI lopic roviovs sovoraI form-faclors llal
voro undor dovoIopmonl al llo limo of vriling.
Intended Audience
Tlis booI is inlondod for uso by lardvaro and soflvaro dosign and supporl
porsonnoI. Tlo luloriaI approacl laIon may aIso maIo il usofuI lo loclnicaI por-
sonnoI nol diroclIy invoIvod dosign, vorificalion, and ollor supporl funclions.
Ollor Arclilocluros
ICMCIA Syslom
Arclilocluro: 16-Bil IC
Cards
2nd 0-201-40991-7
CardBus Syslom
Arclilocluro
1sl 0-201-40997-6
IIug and IIay Syslom
Arclilocluro
1sl 0-201-41013-3
Iroloclod Modo Soflvaro
Arclilocluro
1sl 0-201-55447-X
AGI Syslom Arclilocluro 1sl 0-201-37964-3
-
-
Prerequisite KnowIedge
Il is rocommondod llal llo roador las a roasonabIo bacIground in IC arcliloc-
luro, incIuding oxporionco or InovIodgo of an I/O bus and roIalod prolocoI.
Bocauso ICI Ixpross mainlains sovoraI IovoIs of compalibiIily vill llo originaI
ICI dosign, crilicaI bacIground informalion rogarding ICI las boon incorpo-
ralod inlo llis booI. Hovovor, llo roador may find il bonoficiaI lo road llo
MindSlaro pubIicalion onlilIod - , vlicl focussos on and
dolaiIs llo ICI arclilocluro.
Topics and Organization
Topics covorod in llis booI and llo fIov of llo booI aro as foIIovs:
- Irovidos an arclilocluraI
porspoclivo of llo ICI Ixpross loclnoIogy by comparing and conlrasling il vill
llo ICI and ICI-X busos. Il aIso inlroducos llo major foaluros of llo ICI
Ixpross arclilocluro.
-- - IncIudos pacIol formal and fioId dofi-
nilion and uso, aIong vill lransaclion and IinI Iayor funclions.
- - Doscribos llo plysicaI Iayor funclions, IinI
lraining and iniliaIizalion, rosol, and oIoclricaI signaIing.
- Discussos Iovor Budgoling and Iovor Manago-
monl.
- Discussos llo major foaluros of ICI Ixpross llal aro
oplionaI, incIuding Hol IIug and Ixpansion Card impIomonlalion dolaiIs.
-- Discussos llo configuralion procoss, accoss-
ing configuralion spaco, and dolaiIs llo conlonl and uso of aII configuralion rog-
islors.
- -
- - --
- - --
--
-- -- -
-- -
Documentation Conventions
Tlis soclion dofinos llo lypograplicaI convonlion usod llrougloul llis booI.
PCI Express
ICI Ixpross is a lradomarI of llo ICI SIG. Tlis booI laIos llo Iiborly of
abbrovialing ICI Ixpross as ICI-XI primariIy in iIIuslralion vloro Iimilod
spaco is an issuo.
HexadecimaI Notation
AII lox numbors aro foIIovod by a Iovor caso l. Ior oxampIo:
89I2BD02l
0111l
Binary Notation
AII binary numbors aro foIIovod by a Iovor caso b. Ior oxampIo:
1000 1001 1111 0010b
01b
DecimaI Notation
Numbor villoul any suffix aro docimaI. Wlon roquirod for cIarily, docimaI
numbors aro foIIovod by a Iovor caso d. IxampIos:
9
15
512d
-
-
This Chapter
Tlis claplor doscribos porformanco advanlagos and Ioy foaluros of llo ICI
Ixpross (ICI-XI) IinI. To liglIigll lloso advanlagos, llis claplor doscribos
porformanco claraclorislics and foaluros of prodocossor busos sucl as ICI and
ICI-X busos vill llo goaI of discussing llo ovoIulion of ICI Ixpross from lloso
prodocossor busos. Tlo roador viII bo abIo lo comparo and conlrasl foaluros and
porformanco poinls of ICI, ICI-X and ICI Ixpross busos. Tlo Ioy foaluros of a
ICI Ixpross syslom aro doscribod. In addilion, llo claplor doscribos somo
oxampIos of ICI Ixpross syslom lopoIogios.
The Next Chapter
Tlo noxl claplor doscribos in furllor dolaiI llo foaluros of llo ICI Ixpross bus.
Il doscribos llo Iayorod arclilocluro of a dovico dosign vliIo providing a briof
funclionaI doscriplion of oacl Iayor. Tlo claplor providos an ovorviov of
pacIol formalion al a lransmillor dovico, llo lransmission and rocoplion of llo
pacIol ovor llo ICI Ixpross IinI and pacIol docodo al a rocoivor dovico.
Introduction To PCI Express
ICI Ixpross is llo llird gonoralion ligl porformanco I/O bus usod lo inlorcon-
nocl poriploraI dovicos in appIicalions sucl as compuling and communicalion
pIalforms. Tlo firsl gonoralion busos incIudo llo ISA, IISA, VISA, and Micro
ClannoI busos, vliIo llo socond gonoralion busos incIudo ICI, AGI, and ICI-X.
ICI Ixpross is an aII oncompassing I/O dovico inlorconnocl bus llal las appIi-
calions in llo mobiIo, dosIlop, vorIslalion, sorvor, omboddod compuling and
communicalion pIalforms.
-- -
ing scaIabIo numbors for pins and signaI Ianos por inlorconnocl basod on com-
municalion porformanco roquiromonls for llal inlorconnocl.
ICI Ixpross impIomonls svilcl-basod loclnoIogy lo inlorconnocl a Iargo num-
bor of dovicos. Communicalion ovor llo soriaI inlorconnocl is accompIislod
using a pacIol-basod communicalion prolocoI. QuaIily Of Sorvico (QoS) foa-
luros provido difforonlialod lransmission porformanco for difforonl appIica-
lions. Hol IIug/Hol Svap supporl onabIos aIvays-on sysloms. Advancod
povor managomonl foaluros aIIov ono lo dosign for Iov povor mobiIo appIica-
lions. RAS (RoIiabIo, AvaiIabIo, SorvicoabIo) orror landIing foaluros maIo ICI
Ixpross suilabIo for robusl ligl-ond sorvor appIicalions. Hol pIug, povor man-
agomonl, orror landIing and inlorrupl signaIing aro accompIislod in-band
using pacIol basod mossaging rallor llan sido-band signaIs. Tlis Ioops llo
dovico pin counl Iov and roducos syslom cosl.
Tlo configuralion addross spaco avaiIabIo por funclion is oxlondod lo 4KB,
aIIoving dosignors lo dofino addilionaI rogislors. Hovovor, nov soflvaro is
roquirod lo accoss llis oxlondod configuralion rogislor spaco.
Looking into the Future
In llo fuluro, ICI Ixpross communicalion froquoncios aro oxpoclod lo doubIo
and quadrupIo lo 5 Gbils/soc and 10 Gbils/soc. TaIing advanlago of lloso fro-
quoncios viII roquiro IlysicaI Iayor ro-dosign of a dovico vill no clangos noc-
ossary lo llo liglor Iayors of llo dovico dosign.
AddilionaI moclanicaI form faclors aro oxpoclod. Supporl for a Sorvor IO Mod-
uIo, Novcard (IC Card slyIo), and CabIo form faclors aro oxpoclod.
Predecessor Buses Compared
In an offorl lo comparo and conlrasl foaluros of prodocossor busos, llo noxl soc-
lion of llis claplor doscribos somo of llo Ioy foaluros of IO bus arclilocluros
dofinod by llo ICI SpociaI Inlorosl Group (ICISIG). Tloso busos, slovn in
TabIo 1-1 on pago 12, incIudo llo ICI 33 MHz bus, ICI- 66 MHz bus, ICI-X 66
MHz/133 MHz busos, ICI-X 266/533 MHz busos and finaIIy ICI Ixpross.
-- -
Authors DiscIaimer
In comparing lloso busos, il is nol llo aullors inlonlion lo suggosl llal any ono
bus is bollor llan any ollor bus. Iacl bus arclilocluro las ils advanlagos and
disadvanlagos. Aflor ovaIualing llo foaluros of oacl bus arclilocluro, a parlicu-
Iar bus arclilocluro may lurn oul lo bo moro suilabIo for a spocific appIicalion
llan anollor bus arclilocluro. Ior oxampIo, il is llo syslom dosignors rosponsi-
biIily lo dolormino vlollor lo impIomonl a ICI-X bus or ICI Ixpross for llo I/
O inlorconnocl in a ligl-ond sorvor dosign. Our goaI in llis claplor is lo docu-
monl llo foaluros of oacl bus arclilocluro so llal llo dosignor can ovaIualo llo
various bus arclilocluros.
Bus Performances and Number of SIots Compared
TabIo 1-2 on pago 13 slovs llo various bus arclilocluros dofinod by llo ICISIG.
Tlo labIo slovs llo ovoIulion of bus froquoncios and bandvidlls. As is obvi-
ous, incroasing bus froquoncy rosuIls in incroasod bandvidll. Hovovor,
incroasing bus froquoncy compromisos llo numbor of oIoclricaI Ioads or num-
bor of connoclors aIIovabIo on a bus al llal froquoncy. Al somo poinl, for a
givon bus arclilocluro, lloro is an uppor Iimil boyond vlicl ono cannol furllor
incroaso llo bus froquoncy, lonco roquiring llo dofinilion of a nov bus arcliloc-
luro.
- - - -
- - -
ICI 33 MHz 2.0 1993
ICI 66 MHz 2.1 1995
ICI-X 66 MHz and 133 MHz 1.0 1999
ICI-X 266 MHz and 533 MHz 2.0 Q1, 2002
ICI Ixpross 1.0 Q2, 2002
-
ICI Ixpross impIomonls a duaI-simpIox IinI vlicl impIios llal dala is lrans-
millod and rocoivod simuIlanoousIy on a lransmil and rocoivo Iano. Tlo aggro-
galo bandvidll assumos simuIlanoous lraffic in boll diroclions.
To oblain llo aggrogalo bandvill numbors in TabIo 1-3 muIlipIy 2.5 Gbils/soc
by 2 (for oacl diroclion), llon muIlipIy by numbor of Ianos, and finaIIy divido
by 10-bils por Bylo (lo accounl for llo 8-lo-10 bil oncoding).
Performance Per Pin Compared
As is apparonl from Iiguro 1-1, ICI Ixpross acliovos llo liglosl bandvidll por
pin. Tlis rosuIls in a dovico pacIago vill fovor pins and a mollorboard impIo-
monlalion vill fov viros and lonco ovoraII roducod syslom cosl por unil band-
vidll.
In Iiguro 1-1, llo firsl 7 bars aro associalod vill ICI and ICI-X busos vloro vo
assumo 84 pins por dovico. Tlis incIudos 46 signaI pins, inlorrupl and povor
managomonl pins, orror pins and llo romaindor aro povor and ground pins.
Tlo Iasl bar associalod vill a x8 ICI Ixpross IinI assumos 40 pins por dovico
vlicl incIudo 32 signaI Iinos (8 difforonliaI pairs por diroclion) and llo rosl aro
povor and ground pins.
-- - -
--
--
0.5 1 2 4 6 8 16
-
- - --
1.6
3.2
3.2
6.4
12.8
25.6
100
0
10
20
30
40
50
60
70
80
90
100
-- -
vaIuo vill sufficionl solup limo prior lo llo noxl rising odgo of ICI cIocI vloro
rocoiving dovicos sampIo llo signaI. Tlo lolaI limo from vlon a drivor drivos a
signaI unliI llo rocoivor dolocls a vaIid signaI (incIuding propagalion limo and
rofIoclion doIay pIus solup limo) musl bo Ioss llan llo cIocI poriod of 30 ns.
Tlo moro oIoclricaI Ioads on a bus, llo Iongor il laIos for llo signaI lo propagalo
and doubIo vill sufficionl solup lo llo noxl rising odgo of cIocI. As monlionod
oarIior, a 33 MHz ICI bus mools signaI liming vill no moro llan 10-12 Ioads.
Connoclors on llo ICI bus aro counlod as 2 Ioads bocauso llo connoclor is
accounlod for as ono Ioad and llo poriploraI card vill a ICI dovico is llo soc-
ond Ioad. As indicalod in TabIo 1-2 on pago 13 a 33 MHz ICI bus can bo
dosignod vill a maximum of 4-5 connoclors.
- -
1 2 3 4 5 6 7 8
CLK
FRAME#
AD
C/BE#
IRDY#
TRDY#
DEVSEL#
Addr
Data
1
Data
2
Data
3
Bus
Cmd
Byte
Enables
Byte
Enables
Byte
Enables
GNT#
Address
Phase
Data Phase 1 Data Phase 2 Data Phase 3
Wait
State
Wait
State
Wait
State
-
To connocl any moro llan 10-12 Ioads in a syslom roquiros llo impIomonlalion
of a ICI-lo-ICI bridgo as slovn in Iiguro 1-4. Tlis pormils an addilionaI 10-12
Ioads lo bo connoclod on llo socondary ICI bus 1. Tlo ICI spocificalion lloorol-
icaIIy supporls up lo 256 busos in a syslom. Tlis moans llal ICI onumoralion
soflvaro viII dolocl and rocognizo up lo 256 ICI bridgos por syslom.
PCI Transaction ModeI - Programmed IO
Considor an oxampIo in vlicl llo CIU communicalos vill a ICI poriploraI
sucl as an Illornol dovico slovn in Iiguro 1-5. Transaclion 1 slovn in llo fig-
uro, vlicl is inilialod by llo CIU and largols a poriploraI dovico, is roforrod lo
as a programmod IO lransaclion. Soflvaro commands llo CIU lo inilialo a
momory or IO road/vrilo bus cycIo on llo losl bus largoling an addross
mappod in a ICI dovicos addross spaco. Tlo Norll bridgo arbilralos for uso of
llo ICI bus and vlon il vins ovnorslip of llo bus gonoralos a ICI momory or
IO road/vrilo bus cycIo roprosonlod in Iiguro 1-3 on pago 18. During llo firsl
cIocI of llis bus cycIo (Inovn as llo addross plaso), aII largol dovicos docodo
- -
Processor
North Bridge
(Intel 440) SDRAM
South Bridge
AGP
2x
PCI-33MHz
IDE
HDD
USB
GFX
CD
Super
IO
COM1
COM2
SCSI
Audio
Chip
Modem
Chip
ISA
Boot
ROM
FSB
Ethernet
Slots
PCI
Bridge
PCI Bus 0
PCI Bus 1
Ethernet
Processor
North Bridge
(Intel 440) SDRAM
South Bridge
AGP
2x
PCI-33MHz
IDE
HDD
USB
GFX
CD
Super
IO
COM1
COM2
Super
IO
COM1
COM2
SCSI
Audio
Chip
Modem
Chip
ISA
Boot
ROM
FSB
Ethernet
Slots
PCI
Bridge
PCI Bus 0
PCI Bus 1
Ethernet
-- -
llo addross. Ono largol (llo Illornol dovico in llis oxampIo) docodos llo
addross and cIaims llo lransaclion. Tlo maslor (Norll bridgo in llis caso) com-
municalos vill llo cIaiming largol (Illornol conlroIIor). Dala is lransforrod
bolvoon maslor and largol in subsoquonl cIocIs aflor llo addross plaso of llo
bus cycIo. Iillor 4 bylos or 8 bylos of dala aro lransforrod por cIocI licI dopond-
ing on llo ICI bus vidll. Tlo bus cycIo is roforrod lo as a bursl bus cycIo if dala
is lransforrod bacI-lo-bacI bolvoon maslor and largol during muIlipIo dala
plasos of llal bus cycIo. Bursl bus cycIos rosuIl in llo mosl officionl uso of ICI
bus bandvidll.
Al 33 MHz and llo bus vidll of 32-bils (4 Bylos), poaI bandvidll acliovabIo is
4 Bylos x 33 MHz = 133 MBylos/soc. IoaI bandvidll on a 64-bil bus is 266
Mbylos/soc. Soo TabIo 1-2 on pago 13.
-
Processor
North Bridge
(Intel 440)
SDRAM
South Bridge
AGP
2x
PCI-33MHz
IDE
HDD
USB
GFX
CD
Super
IO
COM1
COM2
Super
IO
COM1
COM2
SCSI
Audio
Chip
Modem
Chip
ISA
Boot
ROM
FSB
Ethernet
Slots
1) Programmed IO
2) DMA
3) Peer-to-Peer
-
Ifficioncy of llo ICI bus for dala payIoad lransporl is in llo ordor of 50. Iffi-
cioncy is dofinod as numbor of cIocIs during vlicl dala is lransforrod dividod
by llo numbor of lolaI cIocIs, limos 100. Tlo Iosl porformanco is duo lo bus idIo
limo bolvoon bus cycIos, arbilralion limo, limo Iosl in llo addross plaso of a bus
cycIo, vail slalos during dala plasos, doIays during lransaclion rolrios (nol dis-
cussod yol), as voII as Ialoncios llrougl ICI bridgos.
PCI Transaction ModeI - Direct Memory Access (DMA)
Dala lransfor bolvoon a ICI dovico and syslom momory is accompIislod in lvo
vays:
Tlo firsl Ioss officionl mollod usos programmod IO lransfors as discussod in llo
provious soclion. Tlo ICI dovico gonoralos an inlorrupl lo inform llo CIU llal
il noods dala lransforrod. Tlo dovico inlorrupl sorvico roulino (ISR) causos llo
CIU lo road from llo ICI dovico inlo ono of ils ovn rogislors. Tlo ISR llon loIIs
llo CIU lo vrilo from ils rogislor lo momory. SimiIarIy, if dala is lo bo movod
from momory lo llo ICI dovico, llo ISR loIIs llo CIU lo road from momory inlo
ils ovn rogislor. Tlo ISR llon loIIs llo CIU lo vrilo from ils rogislor lo llo ICI
dovico. Il is apparonl llal llo procoss is vory inofficionl for lvo roasons. Iirsl,
lloro aro lvo bus cycIos gonoralod by llo CIU for ovory dala lransfor, ono lo
momory and ono lo llo ICI dovico. Socond, llo CIU is busy lransforring dala
rallor llan porforming ils primary funclion of oxoculing appIicalion codo.
Tlo socond moro officionl mollod lo lransfor dala is llo DMA (dirocl momory
accoss) mollod iIIuslralod by Transaclion 2 in Iiguro 1-5 on pago 20, vloro llo
ICI dovico bocomos a bus maslor. Upon command by a IocaI appIicalion (sofl-
varo) vlicl runs on a ICI poriploraI or llo ICI poriploraI lardvaro ilsoIf, llo
ICI dovico may inilialo a bus cycIo lo laII lo momory. Tlo ICI bus maslor
dovico (SCSI dovico in llis oxampIo) arbilralos for llo ICI bus, vins ovnorslip
of llo bus and inilialos a ICI momory bus cycIo. Tlo Norll bridgo vlicl
docodos llo addross acls as llo largol for llo lransaclion. In llo dala plaso of
llo bus cycIo, dala is lransforrod bolvoon llo SCSI maslor and llo Norll bridgo
largol. Tlo bridgo in lurn gonoralos a DRAM bus cycIo lo communicalo vill
syslom momory. Tlo ICI poriploraI gonoralos an inlorrupl lo inform llo syslom
soflvaro llal llo dala lransfor las compIolod. Tlis bus maslor or DMA mollod
of dala lransporl is moro officionl bocauso llo CIU is nol invoIvod in llo dala
movo and furllor onIy ono bursl bus cycIo is gonoralod lo movo a bIocI of dala.
-- -
llo bus cycIo promaluroIy villoul lransforring dala. Doing so provonls llo bus
from boing loId for a Iong limo in vail-slalos, vlicl compromisos llo bus offi-
cioncy. Tlo bus maslor llal is rolriod by llo largol vails a minimum of 2 cIocIs
and musl onco again arbilralo for uso of llo bus lo ro-inilialo llo idonlicaI bus
cycIo. During llo limo llal llo bus maslor is rolriod, llo arbilor can granl llo
bus lo ollor roquosling maslors so llal llo ICI bus is moro officionlIy uliIizod.
By llo limo llo rolriod maslor is granlod llo bus and il ro-inilialos llo bus cycIo,
lopofuIIy llo largol viII cIaim llo cycIo and viII bo roady lo lransfor dala. Tlo
bus cycIo goos lo compIolion vill dala lransfor. Ollorviso, if llo largol is sliII
nol roady, il rolrios llo maslors bus cycIo again and llo procoss is ropoalod unliI
llo maslor succossfuIIy lransfors dala.
- Wlon a ICI maslor inilialos a lransaclion lo
accoss a largol dovico and if llo largol dovico is abIo lo lransfor al Ioasl ono dou-
bIovord of dala bul cannol compIolo llo onliro dala lransfor, il disconnocls llo
bus cycIo al llo poinl al vlicl il cannol conlinuo llo dala lransfor. Tlis sconario
is iIIuslralod in Iiguro 1-8.
- - -
Processor
North Bridge
(Intel 440) SDRAM
South Bridge
AGP
2x
PCI-33MHz
IDE
HDD
USB
GFX
CD
Super
IO
COM1
COM2
Super
IO
COM1
COM2
SCSI
Audio
Chip
Modem
Chip
ISA
Boot
ROM
FSB
Ethernet
Slots
Arbiter
1. Initiate
3. Disconnect
2. Some data
transferred
-
Considor llo foIIoving oxampIo in vlicl llo Norll bridgo inilialos a bursl
momory road lransaclion lo road dala from llo Illornol dovico. Tlo Illornol
largol dovico cIaims llo bus cycIo and lransfors somo dala, bul llon runs oul of
dala lo lransfor. Tlo Illornol dovico las lvo cloicos lo doIay llo dala lransfor.
Tlo firsl oplion is lo insorl vail-slalos during llo curronl dala plaso vliIo vail-
ing for addilionaI dala lo arrivo. If llo largol noods lo insorl onIy a fov vail-
slalos, llon llo dala is sliII lransforrod officionlIy. If lovovor llo largol dovico
roquiros moro limo (llo ICI spocificalion aIIovs maximum of 8 cIocIs in llo
dala plaso), llon llo largol dovico musl signaI a disconnocl. To do llis llo lar-
gol assorls STOI# in llo middIo of llo bus cycIo lo loII llo maslor lo ond llo bus
cycIo promaluroIy. A disconnocl rosuIls in somo dala is lransforrod, vliIo a rolry
doos nol. Disconnocl froos llo bus from Iong poriods of vail slalos. Tlo discon-
noclod maslor vails a minimum of 2 cIocIs boforo onco again arbilraling for uso
of llo bus and conlinuing llo bus cycIo al llo disconnoclod addross. During llo
limo llal llo bus maslor is disconnoclod, llo arbilor may granl llo bus lo ollor
roquosling maslors so llal llo ICI bus is uliIizod moro officionlIy. By llo limo
llo disconnoclod maslor is granlod llo bus and conlinuos llo bus cycIo, lopo-
fuIIy llo largol is roady lo conlinuo llo dala lransfor unliI il is compIolod. Ollor-
viso, llo largol onco again rolrios or disconnocls llo maslors bus cycIo and llo
procoss is ropoalod unliI llo maslor succossfuIIy lransfors aII ils dala.
PCI Interrupt HandIing
ConlraI lo llo ICI inlorrupl landIing prolocoI is llo inlorrupl conlroIIor slovn
in Iiguro 1-9. ICI dovicos uso ono-of-four inlorrupl signaIs (INTA#, INTB#,
INTC#, INTD#) lo lriggor an inlorrupl roquosl lo llo inlorrupl conlroIIor. In
lurn, llo inlorrupl conlroIIor assorls INTR lo llo CIU. If llo arclilocluro sup-
porls an AIIC (Advancod IrogrammabIo Inlorrupl ConlroIIor) llon il sonds an
AIIC mossago lo llo CIU as opposod lo assorling llo INTR signaI. Tlo inlor-
ruplod CIU dolorminos llo sourco of llo inlorrupl, savos ils slalo and sorvicos
llo dovico llal gonoralod llo inlorrupl. Inlorrupls on ICI INTx# signaIs aro
slarabIo. Tlis aIIovs muIlipIo dovicos lo gonoralo lloir inlorrupls on llo samo
inlorrupl signaI. OS soflvaro las llo ovorload lo dolormino vlicl ono of llo
dovicos slaring llo inlorrupl signaI gonoralod llo inlorrupl. Tlis is accom-
pIislod by poIIing llo Inlorrupl Ionding bil mappod in a dovicos momory
spaco. Doing so incurs addilionaI Ialoncy in sorvicing llo inlorrupling dovico.
-- -
UnforlunaloIy, ICI orror doloclion and roporling is nol robusl. ICI orrors aro
falaI uncorroclabIo orrors llal many limos rosuIl in syslom sluldovn. Iurllor,
orrors aro doloclabIo as Iong as an odd numbor of signaIs aro affoclod by noiso.
Givon llo poor ICI orror doloclion prolocoI and orror landIing poIicios, many
syslom dosigns oillor disabIo or do nol supporl orror clocIing and roporling.
PCI Address Space Map
ICI arclilocluro supporls 3 addross spacos slovn in Iiguro 1-11. Tloso aro llo
momory, IO and configuralion addross spacos. Tlo momory addross spaco goos
up lo 4 GB for sysloms llal supporl 32-bil momory addrossing and oplionaIIy
up lo 16 IB (oxabylos) for sysloms llal supporl 64-bil momory addrossing. ICI
supporls up lo 4GB of IO addross spaco, lovovor, many pIalforms Iimil IO
spaco lo 64 KB duo lo X86 CIUs onIy supporling 64 KB of IO addross spaco. ICI
dovicos aro configurod lo map lo a configurabIo rogion villin oillor llo mom-
ory or IO addross spaco.
Processor
North Bridge
(Intel 440)
SDRAM
South Bridge
AGP
2x
PCI-33MHz
IDE
HDD
USB
GFX
CD
Super
IO
COM1
COM2
Super
IO
COM1
COM2
SCSI
Audio
Chip
Modem
Chip
ISA
Boot
ROM
FSB
Ethernet
Slots
Arbiter
Error
Logic
NMI
PERR#
SERR#
-- -
AII ICI bus maslor accossos lo syslom momory rosuIl in a snoop accoss lo llo
CIU caclo. Doing so rosuIls in addilionaI vail slalos during ICI bus maslor
accossos of syslom momory. Tlo Norll bridgo or MCH musl assumo aII syslom
momory addross spaco is caclabIo ovon llougl llis may nol bo llo caso. ICI
bus cycIos provido no moclanism by vlicl lo indicalo an accoss lo non-cacl-
abIo momory addross spaco.
ICI arclilocluro obsorvos slricl ordoring ruIos as dofinod by llo spocificalion.
Ivon if a ICI appIicalion doos nol roquiro obsorvalion of lloso slricl ordoring
ruIos, ICI bus cycIos do nol provido a moclanism lo aIIov roIaxod ordoring
ruIo. Obsorving roIaxod ordoring ruIos aIIovs bus cycIos (ospociaIIy lloso llal
cross a bridgo) lo compIolo vill roducod Ialoncy.
ICI inlorrupl landIing arclilocluro is inofficionl ospociaIIy bocauso muIlipIo
dovicos slaro a ICI inlorrupl signaI. AddilionaI soflvaro Ialoncy is incurrod
vliIo soflvaro discovors vlicl dovico or dovicos llal slaro an inlorrupl signaI
acluaIIy gonoralod llo inlorrupl.
Tlo procossors NMI inlorrupl inpul is assorlod vlon a ICI parily or syslom
orror is doloclod. UIlimaloIy llo syslom sluls dovn vlon an orror is doloclod.
Tlis is a sovoro rosponso. A moro approprialo rosponso migll bo lo dolocl llo
orror and allompl orror rocovory. ICI doos nol roquiro orror rocovory foaluros,
nor doos il supporl an oxlonsivo rogislor sol for documonling a varioly of dolocl-
abIo orrors.
Tloso Iimilalions abovo lavo boon rosoIvod in llo noxl gonoralion bus arcliloc-
luros, namoIy ICI-X and ICI Ixpross.
66 MHz and 133 MHz PCI-X 1.0 Bus Based PIatforms
Iiguro 1-16 on pago 36 is an oxampIo of an InloI 7500 sorvor clipsol basod sys-
lom. Tlis clipsol las simiIarilios lo llo 8XX clipsol doscribod oarIior. MCH and
ICH clips aro connoclod via a Hub IinI 1.0 bus. Associalod vill ICH is a 32-bil
33 MHz ICI bus. Tlo 7500 MCH clip incIudos 3 addilionaI ligl porformanco
Hub IinI 2.0 porls. Tloso Hub IinI porls aro connoclod lo 3 Hub IinI-lo-ICI-X
Hub 2 bridgos (I64H2). Iacl I64H2 bridgo supporls 2 ICI-X busos llal can run
al froquoncios up lo 133MHz. Hub IinI 2.0 IinIs can suslain llo liglor band-
vidll roquiromonls for ICI-X lraffic llal largols syslom momory.
-- -
PCI-X Features
Tlo ICI-X bus is a liglor froquoncy, liglor porformanco, liglor officioncy bus
comparod lo llo ICI bus.
ICI-X dovicos can bo pIuggod inlo ICI sIols and vico-vorsa. ICI-X and ICI sIols
ompIoy llo samo connoclor formal. Tlus, ICI-X is 100 bacIvards compalibIo
lo ICI from boll a lardvaro and soflvaro slandpoinl. Tlo dovico drivors, OS,
and appIicalions llal run on a ICI syslom aIso run on a ICI-X syslom.
ICI-X signaIs aro rogislorod. A rogislorod signaI roquiros smaIIor solup limo lo
sampIo llo signaI as comparod vill a non-rogislorod signaI ompIoyod in ICI.
AIso, ICI-X dovicos ompIoy IIIs llal aro usod lo pro-drivo signaIs vill smaIIor
cIocI-lo-oul limo. Tlo limo gainod from roducod solup limo and cIocI-lo-oul
limo is usod lovards incroasod cIocI froquoncy capabiIily and llo abiIily lo sup-
- -
Processor
Memory Controller Hub
(Intel 7500 MCH)
DDR SDRAM
IO Controller Hub
(ICH3)
IEEE
1394
PCI-33MHz
Hub Link 1
IDE
USB
LPC
SCSI
AC97
Link
Boot
ROM
Processor
FSB
Ethernet
DDR SDRAM
P64H2
Hub Link 2
P64H2
PCI-X
P64H2
64-bit,
66MHz or 100MHz or 133MHz
Hub Link 2
Slots
-
porl moro dovicos on llo bus al a givon froquoncy comparod lo ICI. ICI-X sup-
porls 8-10 Ioads or 4 connoclors al 66 MHz and 3-4 Ioads or 1-2 connoclors al
133 MHz.
Tlo poaI bandvidll acliovabIo vill 64-bil 133 MHz ICI-X is 1064 MBylos/soc.
IoIIoving llo firsl dala plaso, llo ICI-X bus doos nol aIIov vail slalos during
subsoquonl dala plasos.
Mosl ICI-X bus cycIos aro bursl cycIos and dala is gonoraIIy lransforrod in
bIocIs of no Ioss llan 128 Bylos. Tlis rosuIls in liglor bus uliIizalion. Iurllor,
llo lransfor sizo is spocifiod in llo allribulo plaso of ICI-X lransaclions. Tlis
aIIovs for moro officionl dovico buffor managomonl. Iiguro 1-17 is an oxampIo
of a ICI-X bursl momory road lransaclion.
- - Considor an
oxampIo of llo spIil lransaclion prolocoI supporlod by ICI-X for doIaying lrans-
aclions. Tlis prolocoI is iIIuslralod in Iiguro 1-18. A roquoslor inilialos a road
lransaclion. Tlo compIolor llal cIaims llo bus cycIos may bo unabIo lo rolurn
llo roquoslod dala immodialoIy. Rallor llan signaIing a rolry as vouId bo llo
caso in ICI prolocoI, llo compIolor momorizos llo lransaclion (addross, lransac-
- -
1 2 3 4 5 6 7 8 9
CLK
FRAME#
AD[31:0]
C/BE#[3:0]
IRDY#
TRDY#
DEVSEL#
10 11 12
Address ATTR
Cmd ATTR
Data-0 Data-1 Data-2 Data-3
Address
Phase
Attribute
Phase
Response
Phase
Data
Phase
1
Data
Phase
2
Data
Phase
3
Data
Phase
4
Turnaround
Cycle
Decode
A
Bus
Idle
-- -
lion lypo, bylo counl, roquoslor ID aro momorizod) and signaIs a spIil rosponso.
Tlis prompls llo roquoslor lo ond llo bus cycIo, and llo bus goos idIo. Tlo ICI-
X bus is nov avaiIabIo for ollor lransaclions, rosuIling in moro officionl bus uli-
Iizalion. MoanvliIo, llo roquoslor simpIy vails for llo compIolor lo suppIy il
llo roquoslod dala al a Ialor limo. Onco llo compIolor las gallorod llo
roquoslod dala, il llon arbilralos and oblains bus ovnorslip and inilialos a spIil
compIolion bus cycIo during vlicl il rolurns llo roquoslod dala. Tlo roquoslor
cIaims llo spIil compIolion bus cycIo and accopls llo dala from llo compIolor.
Tlo spIil compIolion bus cycIo is vory mucl IiIo a vrilo bus cycIo. IxaclIy lvo
bus lransaclions aro noodod lo compIolo llo onliro dala lransfor. In bolvoon
lloso lvo bus lransaclions (llo road roquosl and llo spIil compIolion lransac-
lion) llo bus is uliIizod for ollor lransaclions. Tlo roquoslor aIso rocoivos llo
roquoslod dala in a vory officionl mannor.
ICI Ixpross arclilocluro ompIoys a simiIar lransaclion prolocoI.
Tloso porformanco onlancomonl foaluros doscribod so far conlribulo lovards
an incroasod lransfor officioncy of 85 for ICI-X as comparod lo 50-60 vill
ICI prolocoI.
ICI-X dovicos musl supporl Mossago SignaIod Inlorrupl (MSI) arclilocluro,
vlicl is a moro officionl arclilocluro llan llo Iogacy inlorrupl arclilocluro
doscribod in llo ICI arclilocluro soclion. To gonoralo an inlorrupl roquosl, a
-
Requester Completer
1. Requester initiates
read transaction
2. Completer unable to
return data immediately
3. Completer memorizes
transaction
4. Completer issues
split response
5. Completer initiates split completion
bus cycle to return read data
-
ICI-X dovicos inilialos a momory vrilo lransaclion largoling llo Hosl (Norll)
bridgo. Tlo dala vrillon is a uniquo inlorrupl voclor associalod vill llo dovico
gonoraling llo inlorrupl. Tlo Hosl bridgo inlorrupls llo CIU and llo voclor is
doIivorod lo llo CIU in a pIalform spocific mannor. Will llis voclor, llo CIU is
immodialoIy abIo lo run an inlorrupl sorvico roulino lo sorvico llo inlorrupling
dovico. Tloro is no soflvaro ovorload in dolormining vlicl dovico gonoralod
llo inlorrupl. AIso, unIiIo in llo ICI arclilocluro, no inlorrupl pins aro
roquirod.
ICI Ixpross arclilocluro impIomonls llo MSI prolocoI, rosuIling in roducod
inlorrupl sorvicing Ialoncy and oIiminalion of inlorrupl signaIs.
ICI Ixpross arclilocluro aIso supporls llo RO bil and NS bil foaluro vill llo
rosuIl llal lloso lransaclions vill oillor NS=1 or RO=1 compIolo vill bollor
porformanco llan lransaclions vill NS=0 or RO=0. ICI lransaclions by dofini-
lion assumo NS=0 and RO=0.
- No Snoop (NS) may bo usod vlon accossing syslom momory. ICI-X
bus maslors can uso llo NS bil lo indicalo vlollor llo rogion of momory
boing accossod is caclabIo (NS=0) or nol (NS=1). Ior lloso lransaclions
vill NS=1, llo Hosl bridgo doos nol snoop llo procossor caclo. Tlo rosuIl
is improvod porformanco during accossos lo non-caclabIo momory.
- RoIaxod Ordoring (RO) aIIovs lransaclions llal do nol lavo any
ordor of compIolion roquiromonls lo compIolo moro officionlIy. Wo viII nol
gol inlo llo dolaiIs loro. Suffico il lo say llal lransaclions vill llo RO bil sol
can compIolo on llo bus in any ordor vill rospocl lo ollor lransaclions llal
aro ponding compIolion.
Tlo ICI-X 2.0 spocificalion roIoasod in Q1 2002 vas dosignod lo furllor incroaso
llo bandvidll capabiIily of ICI-X bus. Tlis bus is doscribod noxl.
DDR and QDR PCI-X 2.0 Bus Based PIatforms
Iiguro 1-19 slovs a lypollolicaI ICI-X 2.0 syslom. Tlis diagram is llo aullors
bosl guoss as lo vlal a ICI-X 2.0 syslom viII IooI IiIo. ICI-X 2.0 dovicos and
connoclors aro 100 lardvaro and soflvaro bacIvards compalibIo vill ICI-X
1.0 as voII as ICI dovicos and connoclors. A ICI-X 2.0 bus supporls oillor DuaI
Dala Ralo (DDR) or Quad Dala Ralo (QDR) dala lransporl using a ICI-X 133
MHz cIocI and slrobos llal aro plaso sliflod lo provido llo nocossary cIocI
odgos.
-- -
A dosign roquiring groalor llan 1 GBylo/soc bus bandvidll can impIomonl llo
DDR or QDR prolocoI. As indicalod in TabIo 1-2 on pago 13, ICI-X 2.0 poaI
bandvidll capabiIily is 4256 MBylos/soc for a 64-bil 533 MHz offoclivo ICI-X
bus. Will llo aid of a slrobo cIocI, dala is lransforrod lvo limos or four limos
por 133 MHz cIocI.
ICI-X 2.0 dovicos aIso supporl ICC gonoralion and clocIing. Tlis aIIovs aulo-
corroclion of singIo bil orrors and doloclion and roporling of muIli-bil orrors.
Irror landIing is moro robusl llan ICI and ICI-X 1.0 sysloms maIing llis bus
moro suilod for ligl-porformanco, robusl, non-slop sorvor appIicalions.
Somo nolovorlly poinls lo romombor aro llal vill vory fasl signaI liming, il is
onIy possibIo lo supporl ono connoclor on llo ICI-X 2.0 bus. Tlis impIios llal a
ICI-X 2.0 bus ossonliaIIy bocomos a poinl-lo-poinl connoclion vill no muIli-
drop capabiIily as vill ils prodocossor busos.
ICI-X 2.0 bridgos aro ossonliaIIy svilclos vill ono primary bus and ono or
moro dovnslroam socondary busos as slovn in Iiguro 1-19 on pago 40.
- -
Processor
Host Bridge
DDR/QDR
SDRAM
Processor
FSB
PCI-X
DDR/QDR
PCI-X 2.0
Bridge
PCI-X 2.0
Bridge
10Gb
Ethernet
10Gb
Ethernet
10Gb
Ethernet
10Gb
Ethernet
PCI-X
DDR/QDR
PCI-X
DDR/QDR
PCI-X
DDR/QDR
SCSI
RAID
Disk array
PCI-X 1.0
N.B. PCI-X DDR/QDR buses are point-to-point parallel buses
Infiniband
PCI-X
DDR/QDR
PCI-X 1.0
Bridge
PCI-33MHz
S
IO
COM1
COM2
S
IO
COM1
COM2
Graphics
Slot
Slots
Slots
Slot
-
morgod inlo a common VC oulpul buffor for doIivory across llo ogross IinI.
Tlis arbilralion is roforrod lo as Iorl arbilralion.
Tlo rosuIl is llal pacIols vill difforonl TC numbors couId obsorvo difforonl
porformanco vlon roulod llrougl llo ICI Ixpross fabric.
FIow ControI
A pacIol lransmillod by a dovico is rocoivod inlo a VC buffor in llo rocoivor al
llo opposilo ond of llo IinI. Tlo rocoivor poriodicaIIy updalos llo lransmillor
vill informalion rogarding llo amounl of buffor spaco il las avaiIabIo. Tlo
lransmillor dovico viII onIy lransmil a pacIol lo llo rocoivor if il Inovs llal llo
rocoiving dovico las sufficionl buffor spaco lo loId llo noxl lransaclion. Tlo
prolocoI by vlicl llo lransmillor onsuros llal llo rocoiving buffor las sufficionl
spaco avaiIabIo is roforrod lo as fIov conlroI. Tlo fIov conlroI moclanism guar-
anloos llal a lransmillod pacIol viII bo accoplod by llo rocoivor, baring orror
condilions. As sucl, llo ICI Ixpross lransaclion prolocoI doos nol roquiro sup-
porl of pacIol rolry (unIoss an orror condilion is doloclod in llo rocoivor),
lloroby improving llo officioncy vill vlicl pacIols aro forvardod lo a rocoivor
via llo IinI.
MSI StyIe Interrupt HandIing SimiIar to PCI-X
Inlorrupl landIing is accompIislod in-band via ICI-X-IiIo MSI prolocoI. ICI
Ixpross dovico uso a momory vrilo pacIol lo lransmil an inlorrupl voclor lo llo
rool compIox losl bridgo dovico, vlicl in-lurn inlorrupls llo CIU. ICI Ixpross
dovicos aro roquirod lo impIomonl llo MSI capabiIily rogislor bIocI. ICI
Ixpross aIso supporls Iogacy inlorrupl landIing in-band by oncoding inlorrupl
signaI lransilions (for INTA#, INTB#, INTC# and INTD#) using Mossago lrans-
aclions. OnIy ondpoinl dovicos llal musl supporl Iogacy funclions and ICI
Ixpross-lo-ICI bridgos aro aIIovod lo supporl Iogacy inlorrupl gonoralion.
Power Management
Tlo ICI Ixpross fabric consumos Ioss povor bocauso llo inlorconnocl consisls
of fovor signaIs llal lavo smaIIor signaI svings. Iacl dovicos povor slalo is
individuaIIy managod. ICI/ICI Ixpross povor managomonl soflvaro dolor-
minos llo povor managomonl capabiIily of oacl dovico and managos il individ-
uaIIy in a mannor simiIar lo ICI. Dovicos can nolify soflvaro of lloir curronl
povor slalo, as voII as povor managomonl soflvaro can propagalo a vaIo-up
ovonl llrougl llo fabric lo povor-up a dovico or group of dovicos. Dovicos can
aIso signaI a vaIo-up ovonl using an in-band moclanism or a sido-band signaI.
-- -
Will no soflvaro invoIvomonl, dovicos pIaco a IinI inlo a povor savings slalo
aflor a limo-oul vlon lloy rocognizo llal lloro aro no pacIols lo lransmil ovor
llo IinI. Tlis capabiIily is roforrod lo as Aclivo Slalo povor managomonl.
ICI Ixpross supporls dovico povor slalos: D0, D1, D2, D3-Hol and D3-CoId,
vloro D0 is llo fuII-on povor slalo and D3-CoId is llo Iovosl povor slalo.
ICI Ixpross aIso supporls llo foIIoving IinI povor slalos: I0, I0s, I1, I2 and
I3, vloro I0 is llo fuII-on IinI slalo and I3 is llo IinI-Off povor slalo.
Hot PIug Support
ICI Ixpross supporls lol pIug and surpriso lol unpIug villoul usago of sido-
band signaIs. Hol pIug inlorrupl mossagos, communicalod in-band lo llo rool
compIox, lriggor lol pIug soflvaro lo dolocl a lol pIug or romovaI ovonl. Rallor
llan impIomonling a conlraIizod lol pIug conlroIIor as oxisls in ICI pIalforms,
llo lol pIug conlroIIor funclion is dislribulod lo llo porl Iogic associalod vill a
lol pIug capabIo porl of a svilcl or rool compIox. 2 coIorod IIDs, a ManuaIIy-
oporalod Rolonlion Ialcl (MRI), MRI sonsor, allonlion bullon, povor conlroI
signaI and IRSNT2# signaI aro somo of llo oIomonls of a lol pIug capabIo porl.
PCI CompatibIe Software ModeI
ICI Ixpross ompIoys llo samo programming modoI as ICI and ICI-X sysloms
doscribod oarIior in llis claplor. Tlo momory and IO addross spaco romains llo
samo as ICI/ICI-X. Tlo firsl 256 Bylos of configuralion spaco por ICI Ixpross
funclion is llo samo as ICI/ICI-X dovico configuralion addross spaco, llus
onsuring llal curronl OSs and dovico drivors viII run on a ICI Ixpross syslom.
ICI Ixpross arclilocluro oxlonds llo configuralion addross spaco lo 4 KB por
funclionaI dovico. Updalod OSs and dovico drivors aro roquirod lo laIo advan-
lago and accoss llis addilionaI configuralion addross spaco.
ICI Ixpross configuralion modoI supporls lvo moclanisms:
1. ICI compalibIo configuralion modoI vlicl is 100 compalibIo vill oxisl-
ing OSs and bus onumoralion and configuralion soflvaro for ICI/ICI-X
sysloms.
2. ICI Ixpross onlancod configuralion moclanism vlicl providos accoss lo
addilionaI configuralion spaco boyond llo firsl 256 Bylos and up lo 4
KBylos por funclion.
-
Rool compIox impIomonls conlraI rosourcos sucl as: lol pIug conlroIIor, povor
managomonl conlroIIor, inlorrupl conlroIIor, orror doloclion and roporling Iogic.
Tlo rool compIox iniliaIizos vill a bus numbor, dovico numbor and funclion
numbor vlicl aro usod lo form a roquoslor ID or compIolor ID. Tlo rool com-
pIox bus, dovico and funclion numbors iniliaIizo lo aII 0s.
A is a fabric of aII llo dovicos and IinIs associalod vill a rool com-
pIox llal aro oillor diroclIy connoclod lo llo rool compIox via ils porl(s) or indi-
roclIy connoclod via svilclos and bridgos. In Iiguro 1-22 on pago 48, llo onliro
ICI Ixpross fabric associalod vill llo rool is ono liorarcly.
A is a fabric of dovicos and IinIs llal aro associalod vill
ono porl of llo rool compIox. Ior oxampIo in Iiguro 1-22 on pago 48, lloro aro 3
liorarcly domains.
- aro dovicos ollor llan rool compIox and svilclos llal aro roquoslors
or compIolors of ICI Ixpross lransaclions. Tloy aro poriploraI dovicos sucl as
Illornol, USB or graplics dovicos. Indpoinls inilialo lransaclions as a roquoslor
or rospond lo lransaclions as a compIolor. Tvo lypos of ondpoinls oxisl, ICI
Ixpross ondpoinls and Iogacy ondpoinls. - may supporl IO
lransaclions. Tloy may supporl IocIod lransaclion somanlics as a compIolor bul
nol as a roquoslor. Inlorrupl capabIo Iogacy dovicos may supporl Iogacy slyIo
inlorrupl gonoralion using mossago roquosls bul musl in addilion supporl MSI
gonoralion using momory vrilo lransaclions. Iogacy dovicos aro nol roquirod lo
supporl 64-bil momory addrossing capabiIily. -- - musl nol
supporl IO or IocIod lransaclion somanlics and musl supporl MSI slyIo inlor-
rupl gonoralion. ICI Ixpross ondpoinls musl supporl 64-bil momory addross-
ing capabiIily in profolclabIo momory addross spaco, llougl lloir non-
profolclabIo momory addross spaco is pormillod lo map llo boIov 4GBylo
boundary. Boll lypos of ondpoinls impIomonl Typo 0 ICI configuralion loadors
and rospond lo configuralion lransaclions as compIolors. Iacl ondpoinl is ini-
liaIizod vill a dovico ID (- or vlicl consisls of a bus
numbor, dovico numbor, and funclion numbor. Indpoinls aro aIvays dovico 0
on a bus.
- IiIo ICI dovicos, ICI Ixpross dovicos may supporl
up lo 8 funclions por ondpoinl vill al Ioasl ono funclion numbor 0. Hovovor, a
ICI Ixpross IinI supporls onIy ono ondpoinl numborod dovico 0.
-- is a bridgo bolvoon ICI Ixpross fabric and a
ICI or ICI-X liorarcly.
-- -
bus. In ollor vords, oacl IinI is assignod a bus numbor by llo bus onumoral-
ing soflvaro. A ICI Ixpross ondpoinl is dovico 0 on a ICI Ixpross IinI of a
givon bus numbor. OnIy ono dovico (dovico 0) oxisls por ICI Ixpross IinI. Tlo
inlornaI bus villin a svilcl llal connocls aII llo virluaI bridgos logollor is aIso
numborod. Tlo firsl IinI associalod vill llo rool compIox is numbor bus 1. Bus
0 is an inlornaI virluaI bus villin llo rool compIox. Busos dovnslroam of a ICI
Ixpross-lo-ICI(-X) bridgo aro onumoralod llo samo vay as in a ICI(-X) syslom.
Indpoinls and ICI(-X) dovicos may impIomonl up lo 8 funclions por dovico.
OnIy 1 dovico is supporlod por ICI Ixpross IinI llougl ICI(-X) busos may llo-
orolicaIIy supporl up lo 32 dovicos por bus. A syslom couId lloorolicaIIy incIudo
up lo 256 ICI Ixpross IinI and ICI(-X) busos.
PCI Express System BIock Diagram
Low Cost PCI Express Chipset
Iiguro 1-23 on pago 52 is a bIocI diagram of a Iov cosl ICI Ixpross basod sys-
lom. As of llo vriling of llis booI (ApriI 2003) no roaI Iifo ICI Ixpross clipsol
arclilocluro dosigns voro pubIicIy discIosod. Tlo aullor doscribos loro a pracli-
caI Iov cosl ICI Ixpross clipsol vloso arclilocluro is basod on oxisling non-
ICI Ixpross clipsol arclilocluros. In llis soIulion, AGI vlicl connocls MCH lo
a graplics conlroIIor in oarIior MCH dosigns (soo Iiguro 1-14 on pago 32) is
ropIacod vill a ICI Ixpross IinI. Tlo Hub IinI llal connocls MCH lo ICH is
ropIacod vill a ICI Ixpross IinI. And in addilion lo a ICI bus associalod vill
ICH, llo ICH clip supporls 4 ICI Ixpross IinIs. Somo of lloso IinIs can con-
nocl diroclIy lo dovicos on llo mollorboard and somo can bo roulod lo connoc-
lors vloro poriploraI cards aro inslaIIod.
Tlo CIU can communicalo vill ICI Ixpross dovicos associalod vill ICH as
voII as llo ICI Ixpross graplics conlroIIor. ICI Ixpross dovicos can communi-
calo vill syslom momory or llo graplics conlroIIor associalod vill MCH. ICI
dovicos may aIso communicalo vill ICI Ixpross dovicos and vico vorsa. In
ollor vords, llo clipsol supporls poor-lo-poor pacIol rouling bolvoon ICI
Ixpross ondpoinls and ICI dovicos, momory and graplics. Il is yol lo bo dolor-
minod if llo firsl gonoralion ICI Ixpross clipsols, viII supporl poor-lo-poor
pacIol rouling bolvoon ICI Ixpross ondpoinls. Romombor llal llo spocifica-
lion doos nol roquiro llo rool compIox lo supporl poor-lo-poor pacIol rouling
bolvoon llo muIlipIo IinIs associalod vill llo rool compIox.
-- -
Tlis dosign doos nol roquiro llo uso of svilclos if llo numbor of ICI Ixpross
dovicos lo bo connoclod doos nol oxcood llo numbor of IinIs avaiIabIo in llis
dosign.
Another Low Cost PCI Express Chipset
Iiguro 1-24 on pago 53 is a bIocI diagram of anollor Iov cosl ICI Ixpross sys-
lom. In llis dosign, llo Hub IinI connocls llo rool compIox lo an ICH dovico.
Tlo ICH dovico may bo an oxisling dosign vlicl las no ICI Ixpross IinI asso-
cialod vill il. Insload, aII ICI Ixpross IinIs aro associalod vill llo rool com-
pIox. Ono of lloso IinIs connocls lo a graplics conlroIIor. Tlo ollor IinIs
diroclIy connocl lo ICI Ixpross ondpoinls on llo mollorboard or connocl lo ICI
Ixpross ondpoinls on poriploraI cards insorlod in sIols.
- -- -
Processor
Root Complex
DDR
SDRAM
IO Controller Hub
(ICH)
IEEE
1394
PCI Express
GFX
PCI
PCI Express
Serial ATA
HDD
USB 2.0
LPC
GB
Ethernet
Add-In Add-In Add-In
PCI Express
GFX
FSB
PCI Express
Link
S
IO
COM1
COM2
S
IO
COM1
COM2
Slot
Slots
-
Previous Chapter
Tlo provious claplor doscribod porformanco advanlagos and Ioy foaluros of
llo ICI Ixpross (ICI-XI) IinI. To liglIigll lloso advanlagos, llo claplor
doscribod porformanco claraclorislics and foaluros of prodocossor busos sucl as
ICI and ICI-X busos vill llo goaI of discussing llo ovoIulion of ICI Ixpross
from lloso prodocossor busos. Il comparod and conlraslod foaluros and porfor-
manco poinls of ICI, ICI-X and ICI Ixpross busos. Tlo Ioy foaluros of a ICI
Ixpross syslom voro doscribod. Tlo claplor in addilion doscribod somo oxam-
pIos of ICI Ixpross syslom lopoIogios.
This Chapter
Tlis claplor is an inlroduclion lo llo ICI Ixpross dala lransfor prolocoI. Il
doscribos llo Iayorod approacl lo ICI Ixpross dovico dosign vliIo doscribing
llo funclion of oacl dovico Iayor. IacIol lypos ompIoyod in accompIisling dala
lransfors aro doscribod villoul golling inlo pacIol conlonl dolaiIs. IinaIIy, llis
claplor oulIinos llo procoss of a roquoslor inilialing a lransaclion sucl as a
momory road lo road dala from a compIolor across a IinI.
The Next Chapter
Tlo noxl claplor doscribos lov pacIols aro roulod llrougl a ICI Ixpross fabric
consisling of svilclos. IacIols aro roulod basod on a momory addross, IO
addross, dovico ID or impIicilIy.
Introduction to PCI Express Transactions
ICI Ixpross ompIoys pacIols lo accompIisl dala lransfors bolvoon dovicos. A
rool compIox can communicalo vill an ondpoinl. An ondpoinl can communi-
calo vill a rool compIox. An ondpoinl can communicalo vill anollor ond-
poinl. Communicalion invoIvos llo lransmission and rocoplion of pacIols
caIIod Transaclion Iayor pacIols (TIIs).
-- -
Wlon llo compIolor rocoivos llo pacIol and docodos ils conlonls, il gallors llo
amounl of dala spocifiod in llo roquosl from llo largolod addross. Tlo compI-
olor croalos ono or moro IocIod compIolion TII vill dala (CpIDII) aIong vill
a compIolion slalus. Tlo compIolion is sonl bacI lo llo rool compIox roquoslor
via llo pall and liorarcly of svilclos as llo originaI roquosl.
Tlo CpIDII pacIol conlains rouling informalion nocossary lo roulo llo pacIol
bacI lo llo roquoslor. Roquoslors usos a lag fioId in llo compIolion lo associalo il
vill a roquosl TII of llo samo lag vaIuo il lransmillod oarIior. Uso of a lag in
llo roquosl and compIolion TIIs aIIovs a roquoslor lo manago muIlipIo oul-
slanding lransaclions.
If llo compIolor is unabIo lo oblain llo roquoslod dala as a rosuIl of an orror, il
rolurns a compIolion pacIol villoul dala (CpIII) and an orror slalus indicalion
villin llo pacIol. Tlo roquoslor vlo rocoivos llo orror nolificalion via llo
CpIII TII musl assumo llal alomicily of llo IocI is no Iongor guaranlood and
llus dolormino lov lo landIo llo orror al llo soflvaro Iayor.
Tlo pall from roquoslor lo compIolor romains IocIod unliI llo roquoslor al a
Ialor limo lransmils an unIocI mossago lo llo compIolor. Tlo pall and ingross/
ogross porls of a svilcl llal llo unIocI mossago passos llrougl aro unIocIod.
- -
Requester Completer
MRdLk
CplDLk or CplLk
Legend:
MRdLk = Memory Read Lock Request
CplDLk = Locked normal Completion with data for normal completion of MRdLk
CplLk = Locked error Completion without data for error completion of MRdLk
upslroam porl. Tlo svilcl IogicaIIy appoars IiIo a 3 virluaI bridgo dovico con-
noclod by an inlornaI bus. Tlo IogicaI bridgos villin llo svilcl conlain mom-
ory and IO baso and Iimil addross rogislors villin lloir configuralion spaco
simiIar lo ICI bridgos. Tlo MRd pacIol addross is docodod by llo svilcl and
comparod vill llo baso/Iimil addross rango rogislors of llo lvo dovnslroam
IogicaI bridgos. Tlo svilcl inlornaIIy forvards llo MRd pacIol from llo
upslroam ingross porl lo llo corrocl dovnslroam porl (llo Iofl porl in llis oxam-
pIo). Tlo MRd pacIol is forvardod lo svilcl B. Svilcl B docodos llo addross in
a simiIar mannor. Assumo llo MRd pacIols is forvardod lo llo rigll-land porl
so llal llo compIolor ondpoinl rocoivos llo MRd pacIol.
Tlo compIolor docodos llo conlonls of llo loador villin llo MRd pacIol, gall-
ors llo roquoslod dala and rolurns a compIolion pacIol vill dala (CpID). Tlo
loador porlion of llo compIolion TII conlains llo roquoslor ID copiod from llo
originaI roquosl TII. Tlo roquoslor ID is usod lo roulo llo compIolion pacIol
bacI lo llo rool compIox.
-
Processor Processor
Root Complex
DDR
SDRAM
Endpoint Endpoint Endpoint
Endpoint Endpoint
Switch A Switch C
Switch B
FSB
MRd
MRd
MRd
CplD
CplD
CplD
Requester:
-Step 1: Root Complex (requester)
initiates Memory Read Request (MRd)
-Step 4: Root Complex receives CplD
Completer:
-Step 2: Endpoint (completer)
receives MRd
-Step 3: Endpoint returns
Completion with data (CplD)
MRd
-- -
Tlo IogicaI bridgos villin Svilcl B comparos llo bus numbor fioId of llo
roquoslor ID in llo CpID pacIol vill llo socondary and subordinalo bus num-
bor configuralion rogislors. Tlo CpID pacIol is forvardod lo llo approprialo
porl (in llis caso llo upslroam porl). Tlo CpID pacIol movos lo Svilcl A vlicl
forvards llo pacIol lo llo rool compIox. Tlo roquoslor ID fioId of llo compIo-
lion TII malclos llo rool compIoxs ID. Tlo rool compIox clocIs llo compIo-
lion slalus (lopofuIIy succossfuI compIolion) and accopls llo dala. Tlis dala
is rolurnod lo llo CIU in rosponso lo ils ponding momory road lransaclion.
Memory Read Originated by Endpoint, Targeting System
Memory
In a simiIar mannor, llo ondpoinl dovico slovn in Iiguro 2-7 on pago 67 ini-
lialos a momory road roquosl (MRd). Tlis pacIol conlains amongsl ollor fioIds
in llo loador, llo ondpoinls roquoslor ID, largolod addross and amounl of dala
roquoslod. Il forvards llo pacIol lo Svilcl B vlicl docodos llo momory
addross in llo pacIol and comparos il vill llo momory baso/Iimil addross
rango rogislors villin llo virluaI bridgos of llo svilcl. Tlo pacIol is forvardod
lo Svilcl A vlicl docodos llo addross in llo pacIol and forvards llo pacIol lo
llo rool compIox compIolor.
Tlo rool compIox oblains llo roquoslod dala from syslom momory and croalos a
compIolion TII vill dala (CpID). Tlo bus numbor porlion of llo roquoslor ID
in llo compIolion TII is usod lo roulo llo pacIol llrougl llo svilclos lo llo
ondpoinl.
A roquoslor ondpoinl can aIso communicalo vill anollor poor compIolor ond-
poinl. Ior oxampIo an ondpoinl allaclod lo svilcl B can laII lo an ondpoinl
connoclod lo svilcl C. Tlo roquosl TII is roulod using an addross. Tlo compIo-
lion is roulod using bus numbor. MuIli-porl rool compIox dovicos aro nol
roquirod lo supporl porl-lo-porl pacIol rouling. In vlicl caso, poor-lo-poor
lransaclions bolvoon ondpoinls associalod vill lvo difforonl porls of llo rool
compIox is nol supporlod.
Tlo goaI of llis soclion is lo doscribo llo funclion of oacl Iayor and lo doscribo
llo fIov of ovonls lo accompIisl a dala lransfor. IacIol croalion al a lransmil-
ling dovico and pacIol rocoplion and docoding al a rocoiving dovico aro aIso
oxpIainod.
-- -
Device Core
PCI Express Core
Logic Interface
Transaction Layer
Data Link Layer
Physical Layer
TX RX
PCI Express Device A
Device Core
PCI Express Core
Logic Interface
Transaction Layer
Data Link Layer
Physical Layer
TX RX
PCI Express Device B
Link
Tlo uIlimalo largolod dovico of llis TII clocIs for ICRC orrors in llo loador
and dala porlion of llo TII. Tlo ICRC fioId is slrippod, Ioaving llo loador and
dala porlion of llo pacIol. Il is llis informalion llal is finaIIy forvardod lo llo
Dovico Coro/Soflvaro Iayor.
Data Link Layer Packets (DLLPs)
Anollor ICI Ixpross pacIol caIIod DIII originalos al llo Dala IinI Iayor of a
lransmillor dovico and lorminalos al llo Dala IinI Iayor of a rocoivor dovico.
Tlis procoss is roprosonlod in Iiguro 2-14 on pago 75. Tlo IlysicaI Iayor aIso
conlribulos lo DIII assombIy and disassombIy as llo DIII movos from ono
dovico lo anollor via llo ICI Ixpross IinI.
DIIIs aro usod for IinI Managomonl funclions incIuding TII acInovIodgo-
monl associalod vill llo ACK/NAK prolocoI, povor managomonl, and
oxclango of IIov ConlroI informalion.
---
Start End
Sequence
Number
LCRC Header Data
Stripped by Transaction Layer
Stripped by Data Link Layer
Stripped by PHY Layer
ECRC
Bit receive direction
Information in core section of TLP is
sent to Software Layer / Device Core
DIIIs aro lransforrod bolvoon Dala IinI Iayors of llo lvo diroclIy connoclod
compononls on a IinI. DIIIs do nol pass llrougl svilclos unIiIo TIIs vlicl
do lravoI llrougl llo ICI Ixpross fabric. DIIIs do nol conlain rouling infor-
malion. Tloso pacIols aro smaIIor in sizo comparod lo TIIs, 8 bylos lo bo pro-
ciso.
-- Tlo DIII slovn in Iiguro 2-15 on pago 76 originalos al
llo Dala IinI Iayor. Tloro aro various lypos of DIIIs somo of vlicl incIudo
IIov ConlroI DIIIs (ICx), acInovIodgo/ no acInovIodgo DIIIs vlicl con-
firm rocoplion of TIIs (ACK and NAK), and povor managomonl DIIIs (IMx).
A DIII lypo fioId idonlifios various lypos of DIIIs. Tlo Dala IinI Iayor
apponds a 16-bil CRC usod by llo rocoivor of llo DIII lo clocI for CRC orrors
in llo DIII.
Tlo DIII conlonl aIong vill a 16-bil CRC is forvardod lo llo IlysicaI Iayor
vlicl apponds a Slarl and Ind framo claraclor of 1 bylo oacl lo llo pacIol. Tlo
pacIol is oncodod and difforonliaIIy lransmillod on llo IinI using llo avaiIabIo
numbor of Ianos.
-
Device Core
PCI Express Core
Logic Interface
Transaction Layer
Data Link Layer
Physical Layer
TX RX
PCI Express Device A
Device Core
PCI Express Core
Logic Interface
Transaction Layer
Data Link Layer
Physical Layer
TX RX
PCI Express Device B
Link
DLLP
Transmitted
DLLP
Received
-- -
Transaction Layer
Tlo lransaclion Iayor slovn in Iiguro 2-19 is rosponsibIo for gonoralion of oul-
bound TII lraffic and rocoplion of inbound TII lraffic. Tlo Transaclion Iayor
supporls llo spIil lransaclion prolocoI for non-poslod lransaclions. In ollor
vords, llo Transaclion Iayor associalos an inbound compIolion TII of a givon
lag vaIuo vill an oulbound non-poslod roquosl TII of llo samo lag vaIuo
lransmillod oarIior.
-- - -
Port
Link
Memory, I/O, Configuration R/W Requests or Message Requests or Completions
(Software layer sends / receives address/transaction type/data/message index)
Software layer
Transaction layer
Header Data Payload ECRC
Receive
Buffers
per VC
Transmit
Buffers
per VC
Data Link layer
Physical layer
Serial-to-Parallel Parallel-to-Serial
Differential Receiver Differential Driver
Link Packet Start End Link Packet Start End
Decode Encode
Transaction Layer Packet (TLP)
TLP Error
Check
TLP Replay
Buffer
Physical Packet Physical Packet
Link Packet
Sequence TLP LCRC ACK/NAK
DLLPs e.g.
CRC
Header Data Payload ECRC
Transaction Layer Packet (TLP)
Link Packet
Sequence TLP LCRC
De-mux
Mux
Transmit Receive
Flow Control
Virtual Channel
Management
Ordering
Link
Training
ACK/NAK
DLLPs
CRC
-- -
Tlo lransaclion Iayor conlains virluaI clannoI buffors (VC Buffors) lo sloro oul-
bound TIIs llal avail lransmission and aIso lo sloro inbound TIIs rocoivod
from llo IinI. Tlo fIov conlroI prolocoI associalod vill lloso virluaI clannoI
buffors onsuros llal a romolo lransmillor doos nol lransmil loo many TIIs and
causo llo rocoivor virluaI clannoI buffors lo ovorfIov. Tlo Transaclion Iayor
aIso ordors TIIs according lo ordoring ruIos boforo lransmission. Il is llis Iayor
llal supporls llo QuaIily of Sorvico (QoS) prolocoI.
Tlo Transaclion Iayor supporls 4 addross spacos: momory addross, IO addross,
configuralion addross and mossago spaco. Mossago pacIols conlain a mossago.
- Tlo Transaclion Iayor rocoivos informalion from llo Dovico
Coro and gonoralos oulbound roquosl and compIolion TIIs vlicl il sloros in
virluaI clannoI buffors. Tlis Iayor assombIos Transaclion Iayor IacIols (TIIs).
Tlo major compononls of a TII aro: Hoador, Dala IayIoad and an oplionaI
ICRC (spocificalion aIso usos llo lorm Digosl) fioId as slovn in Iiguro 2-20.
Tlo Hoador is 3 doubIovords or 4 doubIovords in sizo and may incIudo infor-
malion sucl as, Addross, TII lypo, lransfor sizo, roquoslor ID/compIolor ID,
lag, lraffic cIass, bylo onabIos, compIolion codos, and allribulos (incIuding no
snoop and roIaxod ordoring bils). Tlo TII lypos aro dofinod in TabIo 2-2 on
pago 57.
Tlo addross is a 32-bil momory addross or an oxlondod 64-bil addross for mom-
ory roquosls. Il is a 32-bil addross for IO roquosls. Ior configuralion lransaclions
llo addross is an ID consisling of Bus Numbor, Dovico Numbor and Iunclion
Numbor pIus a configuralion rogislor addross of llo largolod rogislor. Ior com-
pIolion TIIs, llo addross is llo roquoslor ID of llo dovico llal originaIIy mado
llo roquosl. Ior mossago lransaclions llo addross usod for rouling is llo dosli-
nalion dovicos ID consisling of Bus Numbor, Dovico Numbor and Iunclion
Numbor of llo dovico largolod by llo mossago roquosl. Mossago roquosls couId
aIso bo broadcasl or roulod impIicilIy by largoling llo rool compIox or an
upslroam porl.
-
Header Data Payload ECRC
Transaction Layer Packet (TLP)
Tlo lransfor sizo or Iongll fioId indicalos llo amounl of dala lo lransfor caIcu-
Ialod in doubIovords (DWs). Tlo dala lransfor Iongll can bo bolvoon 1 lo 1024
DWs. Wrilo roquosl TIIs incIudo dala payIoad in llo amounl indicalod by llo
Iongll fioId of llo loador. Ior a road roquosl TII, llo Iongll fioId indicalos llo
amounl of dala roquoslod from a compIolor. Tlis dala is rolurnod in ono or moro
compIolion pacIols. Road roquosl TIIs do nol incIudo a dala payIoad fioId.
Bylo onabIos spocify bylo IovoI addross rosoIulion.
Roquosl pacIols conlain a roquoslor ID (bus#, dovico#, funclion #) of llo dovico
lransmilling llo roquosl. Tlo lag fioId in llo roquosl is momorizod by llo com-
pIolor and llo samo lag is usod in llo compIolion.
A bil in llo Hoador (TD = TII Digosl) indicalos vlollor llis pacIol conlains an
ICRC fioId aIso roforrod lo as Digosl. Tlis fioId is 32-bils vido and conlains an
Ind-lo-Ind CRC (ICRC). Tlo ICRC fioId is gonoralod by llo Transaclion Iayor
al limo of croalion of llo oulbound TII. Il is gonoralod basod on llo onliro TII
from firsl bylo of loador lo Iasl bylo of dala payIoad (vill llo oxcoplion of llo
II bil, and bil 0 of llo Typo fioId. Tloso lvo bils aro aIvays considorod lo bo a 1
for llo ICRC caIcuIalion). Tlo TII novor clangos as il lravorsos llo fabric (vill
llo oxcoplion of porlaps llo lvo bils monlionod in llo oarIior sonlonco). Tlo
rocoivor dovico clocIs for an ICRC orror llal may occur as llo pacIol movos
llrougl llo fabric.
Tlo rocoivor sido of llo Transaclion Iayor sloros inbound
TIIs in rocoivor virluaI clannoI buffors. Tlo rocoivor clocIs for CRC orrors
basod on llo ICRC fioId in llo TII. If lloro aro no orrors, llo ICRC fioId is
slrippod and llo rosuIlanl informalion in llo TII loador as voII as llo dala
payIoad is sonl lo llo Dovico Coro.
Tlo Transaclion Iayor onsuros llal il doos nol lransmil a TII
ovor llo IinI lo a romolo rocoivor dovico unIoss llo rocoivor dovico las virluaI
clannoI buffor spaco lo accopl TIIs (of a givon lraffic cIass). Tlo prolocoI for
guaranlooing llis moclanism is roforrod lo as llo fIov conlroI prolocoI. If llo
lransmillor dovico doos nol obsorvo llis prolocoI, a lransmillod TII viII causo
llo rocoivor virluaI clannoI buffor lo ovorfIov. IIov conlroI is aulomalicaIIy
managod al llo lardvaro IovoI and is lransparonl lo soflvaro. Soflvaro is onIy
invoIvod lo onabIo addilionaI buffors boyond llo dofauIl sol of virluaI clannoI
buffors (roforrod lo as VC 0 buffors). Tlo dofauIl buffors aro onabIod aulomali-
caIIy aflor IinI lraining, llus aIIoving TII lraffic lo fIov llrougl llo fabric
immodialoIy aflor IinI lraining. Configuralion lransaclions uso llo dofauIl vir-
luaI clannoI buffors and can bogin immodialoIy aflor llo IinI lraining procoss.
IinI lraining procoss is doscribod in Claplor 14, onlilIod "IinI IniliaIizalion &
Training," on pago 499.
-- -
Rofor lo Iiguro 2-21 on pago 82 for an ovorviov of llo fIov conlroI procoss. A
rocoivor dovico lransmils DIIIs caIIod IIov ConlroI IacIols (ICx DIIIs) lo
llo lransmillor dovico on a poriodic basis. Tlo ICx DIIIs conlain fIov conlroI
crodil informalion llal updalos llo lransmillor rogarding lov mucl buffor
spaco is avaiIabIo in llo rocoivor virluaI clannoI buffor. Tlo lransmillor Ioops
lracI of llis informalion and viII onIy lransmil TIIs oul of ils Transaclion
Iayor if il Inovs llal llo romolo rocoivor las buffor spaco lo accopl llo lrans-
millod TII.
Considor Iiguro 2-22 on pago 83 in vlicl llo
vidoo camora and SCSI dovico slovn nood lo lransmil vrilo roquosl TIIs lo
syslom DRAM. Tlo camora dala is limo crilicaI isoclronous dala vlicl musl
roacl momory vill guaranlood bandvidll ollorviso llo dispIayod imago viII
appoar cloppy or uncIoar. Tlo SCSI dala is nol as limo sonsilivo and onIy noods
lo gol lo syslom momory corroclIy villoul orrors. Il is cIoar llal llo vidoo dala
pacIol slouId lavo liglor priorily vlon roulod llrougl llo ICI Ixpross fabric,
ospociaIIy llrougl svilclos. QoS rofors lo llo capabiIily of rouling pacIols from
difforonl appIicalions llrougl llo fabric vill difforonlialod priorilios and dolor-
minislic Ialoncios and bandvidll. ICI and ICI-X sysloms do nol supporl QoS
capabiIily.
Considor llis oxampIo. AppIicalion drivor soflvaro in conjunclion vill llo OS
--
Receiver Transmitter
Flow Control DLLP (FCx)
TLP
VC Buffer
Buffer space
available
--- - --
-- - -
- -- --
- - -
-
- - - - -
-- - - -
- - - -- -
- -
-- --
-
- - - -
-
-
-- - -
--
Processor Processor
Root Complex
GFX
DDR
SDRAM
10Gb
Ethernet
PCI Express
to-PCI
PCI
InfiniBand
Switch
SCSI
RAID Disk array
IEEE
1394
Out-of-Box
InfiniBand
SCSI
PCI Express
Link
Switch Switch
Switch
PCI Express
GFX
FSB
S
IO
COM1
COM2
S
IO
COM1
COM2
Endpoint
Endpoint
Endpoint Endpoint
Endpoint
Endpoint
10Gb
Ethernet
Endpoint
Add-In
Video
Camera
Fiber
Channel
Slots
Slot
-- -
buffors las llo abiIily lo arbilralo bolvoon TIIs from difforonl VC buffors. VC
buffors lavo configurabIo priorilios. Tlus lraffic fIoving llrougl llo syslom in
difforonl VC buffors viII obsorvo difforonlialod porformancos. Tlo arbilralion
moclanism bolvoon TII lraffic fIoving llrougl difforonl VC buffors is roforrod
lo as VC arbilralion.
AIso, muIli-porl svilclos lavo llo abiIily lo arbilralo bolvoon lraffic coming in
on lvo ingross porls bul using llo samo VC buffor rosourco on a common ogross
porl. Tlis configurabIo arbilralion moclanism bolvoon porls supporlod by
svilclos is roforrod lo as Iorl arbilralion.
--- - - - TC is a TII
loador fioId lransmillod villin llo pacIol unmodifiod ond-lo-ond llrougl llo
fabric. IocaI appIicalion soflvaro and syslom soflvaro basod on porformanco
roquiromonls docidos vlal TC IaboI a TII usos. VCs aro plysicaI buffors llal
provido a moans lo supporl muIlipIo indopondonl IogicaI dala fIovs ovor llo
plysicaI IinI via llo uso of lransmil and rocoivor virluaI clannoI buffors.
ICI Ixpross dovicos may impIomonl up lo 8 VC buffors (VC0-VC7). Tlo TC
fioId is a 3-bil fioId llal aIIovs difforonlialion of lraffic inlo 8 lraffic cIassos
(TC0-TC7). Dovicos musl impIomonl VC0. SimiIarIy, a dovico is roquirod lo sup-
porl TC0 (bosl offorl gonoraI purposo sorvico cIass). Tlo ollor oplionaI TCs may
bo usod lo provido difforonlialod sorvico llrougl llo fabric. Associalod vill
oacl impIomonlod VC ID, a lransmil dovico impIomonls a lransmil buffor and a
rocoivo dovico impIomonls a rocoivo buffor.
Dovicos or svilclos impIomonl TC-lo-VC mapping Iogic by vlicl a TII of a
givon TC numbor is forvardod llrougl llo IinI using a parlicuIar VC num-
borod buffor. ICI Ixpross providos llo capabiIily of mapping muIlipIo TCs onlo
a singIo VC, llus roducing dovico cosl by moans of providing Iimilod numbor of
VC buffor supporl. TC/VC mapping is configurod by syslom soflvaro llrougl
configuralion rogislors. Il is up lo llo dovico appIicalion soflvaro lo dolormino
TC IaboI for TIIs and TC/VC mapping llal mools porformanco roquiromonls.
In ils simpIosl form TC/VC mapping rogislors can bo configurod vill a
ono-lo-ono mapping of TC lo VC.
Considor llo oxampIo iIIuslralod in Iiguro 2-23 on pago 85. Tlo TC/VC map-
ping rogislors in Dovico A aro configurod lo map, TIIs vill TC|2:0] lo VC0 and
TIIs vill TC|7:3] lo VC1. Tlo TC/VC mapping rogislors in rocoivor Dovico B
musl aIso bo configurod idonlicaIIy as Dovico A. Tlo samo numborod VC buff-
ors aro onabIod boll in lransmillor Dovico A and rocoivor Dovico B.
If Dovico A noods lo lransmil a TII vill TC IaboI of 7 and anollor pacIol vill
TC IaboI of 0, llo lvo pacIols viII bo pIacod in VC1 and VC0 buffors, rospoc-
livoIy. Tlo arbilralion Iogic arbilralos bolvoon llo lvo VC buffors. Assumo VC1
buffor is configurod vill liglor priorily llan VC0 buffor. Tlus, Dovico A viII
forvard llo TC7 TIIs in VC1 lo llo IinI aload of llo TC0 TIIs in VC0.
Wlon llo TIIs arrivo in Dovico B, llo TC/VC mapping Iogic docodos llo TC
IaboI in oacl TII and pIacos llo TIIs in lloir associalod VC buffors.
In llis oxampIo, TII lraffic vill TC|7:3] IaboI viII fIov llrougl llo fabric vill
liglor priorily llan TC|2:0] lraffic. Willin oacl TC group lovovor, TIIs viII
fIov vill oquaI priorily.
Tlo goaIs of arbilralion supporl
in llo Transaclion Iayor aro:
- To provido difforonlialod sorvicos bolvoon dala fIovs villin llo fabric.
- To provido guaranlood bandvidll vill dolorminislic and smaIIosl
ond-lo-ond lransaclion Ialoncy.
IacIols of difforonl TCs aro roulod llrougl llo fabric of svilclos vill difforonl
priorily basod on arbilralion poIicy impIomonlod in svilclos. IacIols coming in
from ingross porls loading lovards a parlicuIar ogross porl compolo for uso of
llal ogross porl.
- -
Receiver Device B
VC0
VC1
TC[7:0]
TC[2:0]
maps to
VC0
TC[7:3]
maps to
VC1
Transmitter Device A
Link
Buffers Buffers TC[7:0]
VC0
VC1
VC0
VC1
One physical Link,
multiple virtual paths
-- -
Svilclos impIomonl lvo lypos of arbilralion for oacl ogross porl: Iorl Arbilra-
lion and VC Arbilralion. Considor Iiguro 2-24 on pago 86.
Iorl arbilralion is arbilralion bolvoon lvo pacIols arriving on difforonl ingross
porls bul llal map lo llo samo virluaI clannoI (aflor going llrougl TC-lo-VC
mapping) of llo common ogross porl. Tlo porl arbilor impIomonls round-robin,
voigllod round-robin or programmabIo limo-basod round-robin arbilralion
sclomos soIoclabIo llrougl configuralion rogislors.
VC arbilralion laIos pIaco aflor porl arbilralion. Ior a givon ogross porl, pacIols
from aII VCs compolo lo lransmil on llo samo ogross porl. VC arbilralion
rosoIvos llo ordor in vlicl TIIs in difforonl VC buffors aro forvardod on lo llo
IinI. VC arbilralion poIicios supporlod incIudo, slricl priorily, round-robin and
voigllod round-robin arbilralion sclomos soIoclabIo llrougl configuralion rog-
islors.
Indopondonl of arbilralion, oacl VC musl obsorvo lransaclion ordoring and
fIov conlroI ruIos boforo il can maIo ponding TII lraffic visibIo lo llo arbilra-
lion moclanism.
Indpoinl dovicos and a rool compIox vill onIy ono porl do nol supporl porl
arbilralion. Tloy onIy supporl VC arbilralion in llo Transaclion Iayor.
-
VC0
0
VC1
TC[2:0] to VC0
TC[7:3] to VC1
Link
VC0
VC1
TC[2:0] to VC0
TC[7:3] to VC1
Link
VC0
Port
Arb
VC1
Port
Arb
VC
Arb
VC0
VC1
Link
VC0
VC1
If lloro is no orror, llo Dala IinI Iayor of Dovico B rolurns an ACK DIII vill
a soquonco ID lo Dovico A. Dovico A las confirmalion llal llo TII las roaclod
Dovico B (nol nocossariIy llo finaI doslinalion) succossfuIIy. Dovico A cIoars ils
ropIay buffor of llo TII associalod vill llal soquonco ID.
If on llo ollor land a CRC orror is doloclod in llo TII rocoivod al llo romolo
Dovico B, llon a NAK DIII vill a soquonco ID is rolurnod lo Dovico A. An
orror las occurrod during TII lransmission. Dovico As Dala IinI Iayor
ropIays associalod TIIs from llo ropIay buffor. Tlo Dala IinI Iayor gonoralos
orror indicalions for orror roporling and Iogging moclanisms.
In summary, llo ropIay moclanism usos llo soquonco ID fioId villin rocoivod
ACK/NAK DIIIs lo associalo il vill oulbound TIIs slorod in llo ropIay
buffor. Rocoplion of ACK DIIIs causo llo ropIay buffor lo cIoar TIIs from llo
buffor. Rocoiving NAK DIIIs causo llo ropIay buffor lo ropIay associalod TIIs.
Ior a givon TII in llo ropIay buffor, if llo lransmillor dovico rocoivos a NAK 4
limos and llo TII is ropIayod 3 addilionaI limos as a rosuIl, llon llo Dala IinI
Iayor Iogs llo orror, roporls a corroclabIo orror, and ro-lrains llo IinI.
Tlo rocoivo sido of llo Dala IinI Iayor is rosponsibIo for
ICRC orror clocIing on inbound TIIs. If no orror is doloclod, llo dovico sclod-
uIos an ACK DIII for lransmission bacI lo llo romolo lransmillor dovico. Tlo
rocoivor slrips llo TII of llo ICRC fioId and soquonco ID.
If a CRC orror is doloclod, il scloduIos a NAK lo rolurn bacI lo llo romolo lrans-
millor. Tlo TII is oIiminalod.
Tlo rocoivo sido of llo Dala IinI Iayor aIso rocoivos ACKs and NAKs from a
romolo dovico. If an ACK is rocoivod llo rocoivo sido of llo Dala IinI Iayor
informs llo lransmil sido lo cIoar an associalod TII from llo ropIay buffor. If a
NAK is rocoivod, llo rocoivo sido causos llo ropIay buffor of llo lransmil sido lo
ropIay associalod TIIs.
Tlo rocoivo sido is aIso rosponsibIo for clocIing llo soquonco ID of rocoivod
TIIs lo clocI for droppod or oul-of-ordor TIIs.
- - Tlo Dala IinI
Iayor concalonalos a 12-bil soquonco ID and 32-bil ICRC fioId lo an oulbound
TII llal arrivos from llo Transaclion Iayor. Tlo rosuIlanl TII is slovn in Iig-
uro 2-26 on pago 90. Tlo soquonco ID is usod lo associalo a copy of llo oul-
bound TII slorod in llo ropIay buffor vill a rocoivod ACK/NAK DIII
inbound from a noiglboring romolo dovico. Tlo ACK/NAK DIII confirms
arrivaI of llo oulbound TII in llo romolo dovico.
-- -
Tlo 32-bil ICRC is caIcuIalod basod on aII bylos in llo TII incIuding llo
soquonco ID.
A DIII slovn in Iiguro 2-26 on pago 90 is a 4 bylo pacIol vill a 16-bil CRC
fioId. Tlo 8-bil DIII Typo fioId indicalos various calogorios of DIIIs. Tloso
incIudo: ACK, NAK, Iovor Managomonl roIalod DIIIs (IM_Inlor_I1,
IM_Inlor_I23, IM_Aclivo_Slalo_Roquosl_I1, IM_Roquosl_AcI) and IIov
ConlroI roIalod DIIIs (InilIC1-I, InilIC1-NI, InilIC1-CpI, InilIC2-I,
InilIC2-NI, InilIC2-CpI, UpdaloIC-I, UpdaloIC-NI, UpdaloIC-CpI). Tlo
16-bil CRC is caIcuIalod using aII 4 bylos of llo DIII. Rocoivod DIIIs vlicl
faiI llo CRC clocI aro discardod. Tlo Ioss of informalion from discarding a
DIII is soIf ropairing sucl llal a succossivo DIII viII suporsodo any informa-
lion Iosl. ACK and NAK DIIIs conlain a soquonco ID fioId (slovn as Misc.
fioId in Iiguro 2-26) usod by llo dovico lo associalo an inbound ACK/NAK
DIII vill a slorod copy of a TII in llo ropIay buffor.
- - Noxl llo
slops roquirod lo compIolo a momory road roquosl bolvoon a roquoslor and a
compIolor on llo far ond of a svilcl aro doscribod. Iiguro 2-27 on pago 91
slovs llo aclivily on llo IinI lo compIolo llis lransaclion:
Slop 1a: Roquoslor lransmils a momory road roquosl TII (MRd). Svilcl
rocoivos llo MRd TII and clocIs for CRC orror using llo ICRC fioId in llo
MRd TII.
Header Data Payload ECRC
Transaction Layer Packet (TLP)
Sequence ID LCRC
DLLP Type CRC
DLLP
AND
Misc.
Slop 1b: If no orror llon svilcl rolurns ACK DIII lo roquoslor. Roquoslor dis-
cards copy of llo TII from ils ropIay buffor.
Slop 2a: Svilcl forvards llo MRd TII lo llo corrocl ogross porl using momory
addross for rouling. CompIolor rocoivos MRd TII. CompIolor clocIs for CRC
orrors in rocoivod MRd TII using ICRC.
Slop 2b: If no orror llon compIolor rolurns ACK DIII lo svilcl. Svilcl dis-
cards copy of llo MRd TII from ils ropIay buffor.
Slop 3a: CompIolor clocIs for CRC orror using oplionaI ICRC fioId in MRd
TII. Assumo no Ind-lo-Ind orror. CompIolor rolurns CompIolion (CpID) vill
Dala TII vlonovor il las llo roquoslod dala. Svilcl rocoivos CpID TII and
clocIs for CRC orror using ICRC.
Slop 3b: If no orror llon svilcl rolurns ACK DIII lo compIolor. CompIolor dis-
cards copy of llo CpID TII from ils ropIay buffor.
Slop 4a: Svilcl docodos Roquoslor ID fioId in CpID TII and roulos llo pacIol lo
llo corrocl ogross porl. Roquoslor rocoivos CpID TII. Roquoslor clocIs for CRC
orrors in rocoivod CpID TII using ICRC.
Slop 4b: If no orror llon roquoslor rolurns ACK DIII lo svilcl. Svilcl discards
copy of llo CpID TII from ils ropIay buffor. Roquoslor dolorminos if lloro is
orror in CpID TII using CRC fioId in oplionaI ICRC fioId. Assumo no
Ind-lo-Ind orror. Roquoslor clocIs compIolion orror codo in CpID. Assumo
compIolion codo of SuccossfuI CompIolion. To associalo llo compIolion vill
llo originaI roquosl, roquoslor malclos lag in CpID vill originaI lag of MRd
roquosl. Roquoslor accopls dala.
- -
ACK returned for good reception of Request or Completion
NAK returned for error reception of Request or Completion
Requester Completer
1a. Request
Switch
2a. Request
3a. Completion 4a. Completion
1b. ACK 2b. ACK
4b. ACK 3b. ACK
-- -
PhysicaI Layer
Rofor lo Iiguro 2-19 on pago 79 for a bIocI diagram of a dovicos IlysicaI Iayor.
Boll TII and DIII lypo pacIols aro sonl from llo Dala IinI Iayor lo llo Ilys-
icaI Iayor for lransmission ovor llo IinI. AIso, pacIols aro rocoivod by llo
IlysicaI Iayor from llo IinI and sonl lo llo Dala IinI Iayor.
Tlo IlysicaI Iayor is dividod in lvo porlions, llo IogicaI IlysicaI Iayor and
llo IIoclricaI IlysicaI Iayor. Tlo IogicaI IlysicaI Iayor conlains digilaI Iogic
associalod vill procossing pacIols boforo lransmission on llo IinI, or procoss-
ing pacIols inbound from llo IinI boforo sonding lo llo Dala IinI Iayor. Tlo
IIoclricaI IlysicaI Iayor is llo anaIog inlorfaco of llo IlysicaI Iayor llal con-
nocls lo llo IinI. Il consisls of difforonliaI drivors and rocoivors for oacl Iano.
- TIIs and DIIIs from llo Dala IinI Iayor aro cIocIod inlo a
buffor in llo IogicaI IlysicaI Iayor. Tlo IlysicaI Iayor framos llo TII or
DIII vill a Slarl and Ind claraclor. Tlo symboI is a framing codo bylo vlicl
a rocoivor dovico usos lo dolocl llo slarl and ond of a pacIol. Tlo Slarl and Ind
claraclors aro slovn appondod lo a TII and DIII in Iiguro 2-29 on pago 94.
Tlo diagram slovs llo sizo of oacl fioId in a TII or DIII.
Tlo lransmil IogicaI sub-bIocI condilions llo rocoivod pacIol from llo Dala
IinI Iayor inlo llo corrocl formal for lransmission. IacIols aro bylo slripod
across llo avaiIabIo Ianos on llo IinI.
Iacl bylo of a pacIol is llon scrambIod vill llo aid of Iinoar IoodbacI Slifl
Rogislor lypo scrambIor. By scrambIing llo bylos, ropoalod bil pallorns on llo
IinI aro oIiminalod, llus roducing llo avorago IMI noiso gonoralod.
Tlo rosuIlanl bylos aro oncodod inlo a 10b codo by llo 8b/10b oncoding Iogic.
Tlo primary purposo of oncoding 8b claraclors lo 10b symboIs is lo croalo suffi-
cionl 1-lo-0 and 0-lo-1 lransilion donsily in llo bil slroam lo faciIilalo rocroalion
of a rocoivo cIocI vill llo aid of a III al llo romolo rocoivor dovico. Nolo llal
dala is nol lransmillod aIong vill a cIocI. Insload, llo bil slroam conlains suffi-
cionl lransilions lo aIIov llo rocoivor dovico lo rocroalo a rocoivo cIocI.
Tlo paraIIoI-lo-soriaI convorlor gonoralos a soriaI bil slroam of llo pacIol on
oacl Iano and lransmils il difforonliaIIy al 2.5 Gbils/s.
Tlo rocoivo IIoclricaI IlysicaI Iayor cIocIs in a pacIol arriv-
ing difforonliaIIy on aII Ianos. Tlo soriaI bil slroam of llo pacIol is convorlod
inlo a 10b paraIIoI slroam using llo soriaI-lo-paraIIoI convorlor. Tlo rocoivor
Iogic aIso incIudos an oIaslic buffor vlicl accommodalos for cIocI froquoncy
-- -
varialion bolvoon a lransmil cIocI vill vlicl llo pacIol bil slroam is cIocIod
inlo a rocoivor and llo rocoivor cIocI. Tlo 10b symboI slroam is docodod bacI lo
llo 8b roprosonlalion of oacl symboI vill llo 8b/10b docodor. Tlo 8b clarac-
lors aro do-scrambIod. Tlo Bylo unslriping Iogic, ro-croalos llo originaI pacIol
slroam lransmillod by llo romolo dovico.
An addilionaI funclion of llo IlysicaI
Iayor is IinI iniliaIizalion and lraining. IinI iniliaIizalion and lraining is a
IlysicaI Iayor conlroIIod procoss llal configuros and iniliaIizos oacl IinI for
normaI oporalion. Tlis procoss is aulomalic and doos nol invoIvo soflvaro. Tlo
foIIoving aro dolorminod during llo IinI iniliaIizalion and lraining procoss:
- IinI vidll
- IinI dala ralo
- Iano rovorsaI
- IoIarily invorsion.
- Bil IocI por Iano
- SymboI IocI por Iano
- Iano-lo-Iano do-sIov villin a muIli-Iano IinI.
. Tvo dovicos vill a difforonl numbor of Ianos por IinI may bo
connoclod. I.g. ono dovico las x2 porl and il is connoclod lo a dovico vill x4
porl. Aflor iniliaIizalion llo IlysicaI Iayor of boll dovicos dolorminos and sols
llo IinI vidll lo llo minimum Iano vidll of x2. Ollor IinI nogolialod bolav-
iors incIudo Iano rovorsaI and spIilling of porls inlo muIlipIo IinIs.
-
Header Data Payload ECRC
Transaction Layer Packet (TLP)
Sequence LCRC
DLLP Type CRC
DLLP
Misc. Start End
Start End
1B 2B 1DW 1B 1DW 0-1024 DW 3-4 DW
1B 1B
1DW
2B
Ind-lo-Ind CRC is addod lo llo laiI porlion of llo TII. Tlo TII doos nol lavo
a dala payIoad. Tlo TII is pIacod in llo approprialo virluaI clannoI buffor
roady for lransmission. Tlo fIov conlroI Iogic confirms lloro aro sufficionl
crodils avaiIabIo (oblainod from llo compIolor dovico) for llo virluaI clannoI
associalod vill llo lraffic cIass usod.
OnIy llon llo momory road roquosl TII is sonl lo llo Dala IinI Iayor. Tlo Dala
IinI Iayor adds a 12-bil soquonco ID and a 32-bil ICRC vlicl is caIcuIalod
basod on llo onliro pacIol. A copy of llo TII vill soquonco ID and ICRC is
slorod in llo ropIay buffor.
Tlis pacIol is forvardod lo llo IlysicaI Iayor vlicl lags on a Slarl symboI and
an Ind symboI lo llo pacIol. Tlo pacIol is bylo slripod across llo avaiIabIo
Ianos, scrambIod and 10 bil oncodod. IinaIIy llo pacIol is convorlod lo a soriaI
bil slroam on aII Ianos and lransmillod difforonliaIIy across llo IinI lo llo
noiglbor compIolor dovico.
Tlo compIolor convorls llo incoming soriaI bil slroam bacI lo 10b symboIs
vliIo assombIing llo pacIol in an oIaslic buffor. Tlo 10b symboIs aro convorlod
bacI lo bylos and llo bylos from aII Ianos aro do-scrambIod and un-slripod. Tlo
Slarl and Ind symboIs aro doloclod and romovod. Tlo rosuIlanl TII is sonl lo
llo Dala IinI Iayor.
Tlo compIolor Dala IinI Iayor clocIs for ICRC orrors in llo rocoivod TII and
clocIs llo Soquonco ID for missing or oul-of-soquonco TIIs. Assumo no orror.
Tlo Dala IinI Iayor croalos an ACK DIII vlicl conlains llo samo soquonco
ID as conlainod in llo momory road roquosl TII rocoivod. A 16-bil CRC is
addod lo llo ACK DIII. Tlo DIII is sonl bacI lo llo IlysicaI Iayor vlicl
lransmils llo ACK DIII lo llo roquoslor.
Tlo roquoslor IlysicaI Iayor roformuIalos llo ACK DIII and sonds il up lo llo
Dala IinI Iayor vlicl ovaIualos llo soquonco ID and comparos il vill TIIs
slorod in llo ropIay buffor. Tlo slorod momory road roquosl TII associalod
vill llo ACK rocoivod is discardod from llo ropIay buffor. If a NAK DIII vas
rocoivod by llo roquoslor insload, il vouId ro-sond a copy of llo slorod momory
road roquosl TII.
In llo moan limo llo Dala IinI Iayor of llo compIolor slrips llo soquonco ID
and ICRC fioId from llo momory road roquosl TII and forvards il lo llo
Transaclion Iayor.
Tlo Transaclion Iayor rocoivos llo momory road roquosl TII in llo approprialo
virluaI clannoI buffor associalod vill llo TC of llo TII. Tlo Transaclion Iayor
clocIs for ICRC orror. Il forvards llo conlonls of llo loador (addross,
roquoslor ID, momory road lransaclion lypo, amounl of dala roquoslod, lraffic
cIass olc.) lo llo compIolor Dovico Coro/Soflvaro Iayor.
CompIetion with Data Phase
Rofor lo Iiguro 2-32 on pago 99 during llo foIIoving discussion. To sorvico llo
momory road roquosl, llo compIolor Dovico Coro/Soflvaro Iayor sonds llo foI-
Ioving informalion lo llo Transaclion Iayor:
Roquoslor ID and Tag copiod from llo originaI momory road roquosl, lransac-
lion lypo of compIolion vill dala (CpID), roquoslod amounl of dala vill dala
Iongll fioId, lraffic cIass if ollor llan TC0, allribulos lo indicalo if roIaxod
ordoring and no snoop bils slouId bo sol or cIoar (lloso bils aro copiod from
llo originaI momory road roquosl). IinaIIy, a compIolion slalus of succossfuI
compIolion (SC) is sonl.
-
Header Data Payload ECRC
Receive
Buffers
per VC
Serial-to-Parallel
Differential Receiver
Link Packet Start End
Decode
Transaction Layer Packet (TLP)
Error
Check
Physical Packet
Link Packet
Sequence TLP LCRC
ACK/NAK
DLLP
CRC
Port
Link
ACK or NAK
Physical layer
Software layer
Data Link layer
Software layer
Transaction layer Flow Control
Virtual Channel
Management
Ordering
Receive Completion with Data) Send Completion with Data
Flow Control
Virtual Channel
Management
Ordering
Transmit
Buffers
per VC
Parallel-to-Serial
Differential Driver
Link Packet Start End
Encode
Replay Buffer
Physical Packet
Header Data Payload ECRC
Transaction Layer Packet (TLP)
Link Packet
Sequence TLP LCRC
Port
NAK
DLLP
CplD TLP
Requester Completer
-- -
Tlo Transaclion Iayor usos llis informalion lo buiId a CpID TII. Tlo oxacl TII
pacIol formal is doscribod in a Ialor claplor. A 3 DW loador is croalod. In addi-
lion, llo Transaclion Iayor adds ils ovn compIolor ID lo llo loador. Tlo TD
(lransaclion digosl prosonl) bil in llo TII loador is sol if a 32-bil Ind-lo-Ind
CRC is addod lo llo laiI porlion of llo TII. Tlo TII incIudos llo dala payIoad.
Tlo fIov conlroI Iogic confirms sufficionl crodils aro avaiIabIo (oblainod from
llo roquoslor dovico) for llo virluaI clannoI associalod vill llo lraffic cIass
usod.
OnIy llon llo CpID TII is sonl lo llo Dala IinI Iayor. Tlo Dala IinI Iayor
adds a 12-bil soquonco ID and a 32-bil ICRC vlicl is caIcuIalod basod on llo
onliro pacIol. A copy of llo TII vill soquonco ID and ICRC is slorod in llo
ropIay buffor.
Tlis pacIol is forvardod lo llo IlysicaI Iayor vlicl lags on a Slarl symboI and
an Ind symboI lo llo pacIol. Tlo pacIol is bylo slripod across llo avaiIabIo
Ianos, scrambIod and 10 bil oncodod. IinaIIy llo CpID pacIol is convorlod lo a
soriaI bil slroam on aII Ianos and lransmillod difforonliaIIy across llo IinI lo
llo noiglbor roquoslor dovico.
Tlo roquoslor convorls llo incoming soriaI bil slroam bacI lo 10b symboIs vliIo
assombIing llo pacIol in an oIaslic buffor. Tlo 10b symboIs aro convorlod bacI
lo bylos and llo bylos from aII Ianos aro do-scrambIod and un-slripod. Tlo Slarl
and Ind symboIs aro doloclod and romovod. Tlo rosuIlanl TII is sonl lo llo
Dala IinI Iayor.
Tlo Dala IinI Iayor clocIs for ICRC orrors in llo rocoivod CpID TII and
clocIs llo Soquonco ID for missing or oul-of-soquonco TIIs. Assumo no orror.
Tlo Dala IinI Iayor croalos an ACK DIII vlicl conlains llo samo soquonco
ID as conlainod in llo CpID TII rocoivod. A 16-bil CRC is addod lo llo ACK
DIII. Tlo DIII is sonl bacI lo llo IlysicaI Iayor vlicl lransmils llo ACK
DIII lo llo compIolor.
Tlo compIolor IlysicaI Iayor roformuIalos llo ACK DIII and sonds il up lo
llo Dala IinI Iayor vlicl ovaIualos llo soquonco ID and comparos il vill
TIIs slorod in llo ropIay buffor. Tlo slorod CpID TII associalod vill llo ACK
rocoivod is discardod from llo ropIay buffor. If a NAK DIII vas rocoivod by
llo compIolor insload, il vouId ro-sond a copy of llo slorod CpID TII.
In llo moan limo, llo roquoslor Transaclion Iayor rocoivos llo CpID TII in llo
approprialo virluaI clannoI buffor mappod lo llo TII TC. Tlo Transaclion
Iayor usos llo lag in llo loador of llo CpID TII lo associalo llo compIolion
vill llo originaI roquosl. Transaclion Iayor clocIs for ICRC orror. Il forvards
llo loador conlonls and dala payIoad incIuding llo CompIolion Slalus lo llo
roquoslor Dovico Coro/Soflvaro Iayor. Momory road lransaclion DONI.
Hot PIug
ICI Ixpross supporls nalivo lol-pIug llougl lol-pIug supporl in a dovico is
nol mandalory. Somo of llo oIomonls found in a ICI Ixpross lol pIug syslom
aro:
- Indicalors vlicl slov llo povor and allonlion slalo of llo sIol.
- ManuaIIy-oporalod Rolonlion Ialcl (MRI) llal loIds add-in cards in pIaco.
- MRI Sonsor llal aIIov llo porl and syslom soflvaro lo dolocl llo MRI
boing oponod.
- IIoclromoclanicaI InlorIocI vlicl provonls romovaI of add-in cards vliIo
sIol is povorod.
- Allonlion Bullon llal aIIovs usor lo roquosl lol-pIug oporalions.
- Soflvaro Usor Inlorfaco llal aIIovs usor lo roquosl lol-pIug oporalions.
- SIol Numboring for visuaI idonlificalion of sIols.
Wlon a porl las no connoclion or a romovaI ovonl occurs, llo porl lransmillor
movos lo llo oIoclricaI ligl impodanco dolocl slalo. Tlo rocoivor romains in llo
oIoclricaI Iov impodanco slalo.
PCI Express Performance and Data Transfer Efficiency
As of May 2003, no roaIislic porformanco and officioncy numbors voro avaiI-
abIo. Hovovor, TabIo 2-3 slovs aggrogalo bandvidll numbors for various IinI
vidlls aflor facloring llo ovorload of 8b/10b oncoding.
DIIIs aro 2 doubIovords in sizo. Tlo ACK/NAK and fIov conlroI prolocoI uli-
Iizo DIIIs, bul il is nol oxpoclod llal lloso DIIIs viII uso up a significanl por-
lion of llo bandvidll.
-- - -
--
--
0.5 1 2 4 6 8 16
-- -
Tlo romaindor of llo bandvidll is avaiIabIo for TIIs. Bolvoon 6-7 doubIo-
vords of llo TII is ovorload associalod vill Slarl and Ind framing symboIs,
soquonco ID, TII loador, ICRC and ICRC fioIds. Tlo romaindor of llo TII
conlains bolvoon 0-1024 doubIovords of dala payIoad. Il is apparonl llal llo
bus officioncy is significanlIy Iov if smaII sizo pacIols aro lransmillod. Tlo offi-
cioncy numbors aro vory ligl if TIIs conlain significanl amounls of dala pay-
Ioad.
IacIols can bo lransmillod bacI-lo-bacI villoul llo IinI going idIo. Tlus llo
IinI can bo 100 uliIizod.
Tlo svilcl doos nol inlroduco any arbilralion ovorload vlon forvarding
incoming pacIols from muIlipIo ingross porls lo ono ogross porl. Hovovor, il is
yol lo bo soon vlal llo offocl is of llo QuaIily of Sorvico prolocoI on acluaI
bandvidll numbors for givon appIicalions.
Tloro is ovorload associalod vill llo spIil lransaclion prolocoI, ospociaIIy for
road lransaclions. Ior a road roquosl TII, llo dala payIoad is conlainod in llo
compIolion. Tlis faclor las lo bo accounlod for vlon dolormining llo offoclivo
porformanco of llo bus. Ioslod vrilo lransaclions improvo llo officioncy of llo
fabric.
Svilclos supporl cul-llrougl modo. Tlal is lo say llal an incoming pacIol can
bo immodialoIy forvardod lo an ogross porl for lransmission villoul llo svilcl
laving lo buffor up llo pacIol. Tlo Ialoncy for pacIol forvarding llrougl a
svilcl can bo vory smaII aIIoving pacIols lo lravoI from ono ond of llo ICI
Ixpross fabric lo anollor ond vill vory smaII Ialoncy.
Iarl Tvo
Transaclion IrolocoI
-- -
-
The Previous Chapter
Tlo provious claplor inlroducod llo ICI Ixpross dala lransfor prolocoI. Il
doscribod llo Iayorod approacl lo ICI Ixpross dovico dosign vliIo doscribing
llo funclion of oacl dovico Iayor. IacIol lypos ompIoyod in accompIisling dala
lransfors voro doscribod villoul golling inlo pacIol conlonl dolaiIs. IinaIIy, llis
claplor oulIinod llo procoss of a roquoslor inilialing a lransaclion sucl as a
momory road lo road dala from a compIolor across a IinI.
This Chapter
Tlis claplor doscribos llo gonoraI concopls of ICI Ixpross lransaclion rouling
and llo moclanisms usod by a dovico in dociding vlollor lo accopl, forvard,
or rojocl a pacIol arriving al an ingross porl. Bocauso Dala IinI Iayor IacIols
(DIIIs) and IlysicaI Iayor - IinI lraffic aro novor forvardod, llo
omplasis loro is on Transaclion Iayor IacIol (TII) lypos and llo llroo rouling
mollods associalod vill llom: addross rouling, ID rouling, and impIicil roul-
ing. IncIudod is a summary of configuralion mollods usod in ICI Ixpross lo sol
up ICI-compalibIo pIug-and-pIay addrossing villin syslom IO and momory
maps, as voII as Ioy oIomonls in llo ICI Ixpross pacIol prolocoI usod in maI-
ing rouling docisions.
The Next Chapter
Tlo noxl claplor dolaiIs llo lvo major cIassos of pacIols aro -
- (TIIs), and - (DIIIs). Tlo uso and formal of oacl
TII and DIII pacIol lypo is covorod, aIong vill dofinilions of llo fioId villin
llo pacIols.
-- -
Introduction
UnIiIo slarod-bus arclilocluros sucl as ICI and ICI-X, vloro lraffic is visibIo
lo oacl dovico and rouling is mainIy a concorn of bridgos, ICI Ixpross dovicos
aro dopondonl on oacl ollor lo accopl lraffic or forvard il in llo diroclion of llo
uIlimalo rocipionl.
-- - ---
-- - -
Iiguro 3-2 on pago 110 iIIuslralos llo lransmission of Ordorod Sols. Nolo llal
oacl ordorod sol is fixod in sizo, consisling of 4 or 16 claraclors. Again, llo
rocoivor is roquirod lo consumo llom as lloy aro sonl. Nolo llal llo COM con-
lroI symboI (K28.5) is usod lo indicalo llo slarl of any ordorod sol.
Rofor lo llo 8b/10b Incoding on pago 419 for a llorougl discussion of
Ordorod Sols.
-
- -
Iasl Training Soquonco (ITS) COM, 3 ITS QuicI synclronizalion of bil slroam
vlon Ioaving I0s povor slalo.
Training Soquonco Ono (TS1) COM, Iano
ID, 14 moro
Usod in IinI lraining, lo aIign and
synclronizo llo incoming bil slroam
al slarlup, convoy rosol, ollor func-
lions.
Training Soquonco Tvo (TS2) COM, Iano
ID, 14 moro
Soo TS1.
IIoclricaI IdIo (IDII) COM, 3 IDI Indicalos llal IinI slouId bo brougll
lo a Iovor povor slalo (I0s, I1, I2).
SIip COM, 3 SKI Insorlod poriodicaIIy lo componsalo
for cIocI loIorancos.
-- -
-- -
-- - -
- - -
- - -
- - -
- - -
- -
-- -
-- - -
Nolo llal unIiIo Ordorod Sols, DIIIs aIvays carry a 16-bil CRC vlicl is vori-
fiod by llo rocoivor boforo carrying oul llo roquirod oporalion. If an orror is
doloclod by llo rocoivor of a DIII, il is droppod. Ivon llougl DIIIs aro nol
acInovIodgod, limo-oul moclanisms buiIl inlo llo spocificalion pormil rocov-
ory from droppod DIIIs duo lo CRC orrors.
Rofor lo Dala IinI Iayor IacIols on pago 198 for a llorougl discussion of
Dala IinI Iayor pacIols.
Transaction Layer Packet Routing Basics
Tlo llird cIass of IinI lraffic originalos in llo Transaclion Iayor of ono dovico
and largols llo Transaclion Iayor of anollor dovico. Tloso Transaclion Iayor
IacIols (TIIs) aro forvardod from ono IinI lo anollor as nocossary, subjocl lo
llo rouling moclanisms and ruIos doscribod in llo foIIoving soclions. Nolo llal
ollor claplors in llis booI doscribo addilionaI aspocls of Transaclion Iayor
IacIol landIing, incIuding IIov ConlroI, QuaIily Of Sorvico, Irror HandIing,
Ordoring ruIos, olc. Tlo lorm lransaclion is usod loro lo doscribo llo oxclango
of informalion using Transaclion Iayor IacIols. Bocauso Ordorod Sols and
DIIIs carry no rouling informalion and aro nol forvardod, llo rouling ruIos
doscribod in llo foIIoving soclions appIy onIy lo TIIs.
TLPs Used to Access Four Address Spaces
As lransaclions aro carriod oul bolvoon ICI Ixpross roquoslors and compIolors,
four soparalo addross spacos aro usod: Momory, IO, Configuralion, and Mos-
sago. Tlo basic uso of oacl addross spaco is doscribod in TabIo 3-3 on pago 113.
-- -- - -
-- - - -
Momory Road,
Wrilo
Transfor dala lo or from a Iocalion in
llo syslom momory map
IO Road,
Wrilo
Transfor dala lo or from a Iocalion in
llo syslom IO map
Configuralion Road,
Wrilo
Transfor dala lo or from a Iocalion in
llo configuralion spaco of a ICI-com-
palibIo dovico.
-- -
Address Routing
ICI Ixpross lransaclions using addross rouling roforonco llo samo syslom
momory and IO maps llal ICI and ICIX lransaclions do. Addross rouling is
usod lo lransfor dala lo or from momory, momory mappod IO, or IO Iocalions.
Momory lransaclion roquosls may carry oillor 32 bil addrossos using llo 3DW
TII loador formal, or 64 bil addrossos using llo 4DW TII loador formal. IO
lransaclion roquosls aro roslriclod lo 32 bils of addross using llo 3DW TII
loador formal, and slouId onIy largol Iogacy dovicos.
Memory and IO Address Maps
Iiguro 3-6 on pago 122 dopicls gonoric syslom momory and IO maps. Nolo llal
llo sizo of llo syslom momory map is a funclion of llo rango of addrossos llal
dovicos aro capabIo of gonoraling (oflon diclalod by llo CIU addross bus). As in
ICI and ICI-X, ICI Ixpross pormils oillor 32 bil or 64 bil momory addrossing.
Tlo sizo of llo syslom IO map is Iimilod lo 32 bils (4GB), aIllougl in many sys-
loms onIy llo Iovor 16 bils (64KB) aro usod.
- -- -
-- - -
caso is indicalod by (1) in Iiguro 3-10 on pago 126. If llo loador addross
fioId doos nol malcl a rango programmod in a BAR, il llon clocIs llo Typo
1 configuralion spaco loador for oacl dovnslroam IinI. Il clocIs llo non-
profolclabIo momory (MMIO) and profolclabIo Baso/Iimil rogislors if llo
lransaclion largols momory, or llo I/O Baso and Iiml rogislors if llo lrans-
aclion largols I/O addross spaco. Tlis clocI is indicalod by (2) in Iiguro 3-
10 on pago 126.
- - --
-- - -
ImpIicit Routing
ImpIicil rouling is basod on llo inlrinsic InovIodgo ICI Ixpross dovicos aro
roquirod lo lavo concorning upslroam and dovnslroam lraffic and llo oxislonco
of a singIo ICI Ixpross Rool CompIox al llo lop of llo ICI Ixpross lopoIogy.
Tlis avaronoss aIIovs Iimilod rouling of pacIols villoul llo nood lo assign and
incIudo addrossos vill corlain mossago pacIols. Bocauso llo Rool CompIox
gonoraIIy impIomonls povor managomonl and inlorrupl conlroIIors, as voII as
syslom orror landIing, il is oillor llo sourco or rocipionl of mosl ICI Ixpross
mossagos.
- -
-- -
2. Hard-codod bils in llo BAR incIudo an indicalion of llo roquosl lypo, llo
sizo of llo roquosl, and vlollor llo largol dovico may bo considorod
profolclabIo (momory roquosls onIy).
-- -
Reserved
BIST
-- -
During onumoralion, aII ICI-compalibIo dovicos aro discovorod and llo BARs
aro oxaminod by syslom soflvaro lo docodo llo roquosl. Onco llo syslom mom-
ory and IO maps aro oslabIislod, soflvaro programs uppor bils in impIomonlod
BARs vill llo slarl addross for llo bIocI aIIocalod lo llo largol.
BAR Setup ExampIe One: 1MB, PrefetchabIe Memory Request
Iiguro 3-17 dopicls llo basic slops in solling up a BAR vlicl is boing usod lo
lracI a 1 MB bIocI of profolclabIo addrossos for a dovico rosiding in llo syslom
momory map. In llo diagram, llo BAR is slovn al llroo poinls in llo configu-
ralion procoss:
1. Tlo uniniliaIizod BAR in Iiguro 3-17 is as il IooIs aflor povor-up or a rosol.
WliIo llo dosignor las liod Iovor bils lo indicalo llo roquosl lypo and sizo,
lloro is no roquiromonl aboul lov llo uppor bils (vlicl aro road-vrilo)
musl como up in a BAR, so lloso bils aro indicalod vill XXXXX. Syslom
soflvaro viII firsl vrilo aII 1s lo llo BAR lo sol aII road-vrilo bils = 1. Of
courso, llo lard-codod Iovor bils aro nol affoclod by llo configuralion
vrilo.
2. Tlo socond viov of llo BAR slovn in Iiguro 3-17 is as il IooIs aflor config-
uralion soflvaro las porformod llo vrilo of aII 1s lo il. Tlo noxl slop in
configuralion is a road of llo BAR lo clocI llo roquosl. TabIo 3-8 on
pago 140 summarizos llo rosuIls of llis configuralion road.
3. Tlo llird viov of llo BAR slovn in Iiguro 3-17 on pago 139 is as il IooIs
aflor configuralion soflvaro las porformod anollor configuralion vrilo
(Typo 0) lo program llo slarl addross for llo bIocI. In llis oxampIo, llo
dovico slarl addross is 2GB, so bil 31 is vrillon = 1 (2
31
= 2GB) and aII ollor
uppor bils aro vrillon = 0s.
Al llis poinl llo configuralion of llo BAR is compIolo. Onco soflvaro onabIos
momory addross docoding in llo ICI command rogislor, llo dovico viII cIaim
momory lransaclions in llo rango 2GB lo 2GB+1MB.
-- - -
-- -
Al llis poinl llo configuralion of llo BAR pair is compIolo. Onco soflvaro
onabIos momory addross docoding in llo ICI command rogislor, llo dovico viII
cIaim momory lransaclions in llo rango 16GB lo 16GB+64MB.
-- -
- -
-- -
IO Base/Limit Registers
IO Baso/Iimil (al DW 7) and IO Baso/Iimil Uppor rogislors (al DW 12). Tloso
rogislors aro usod lo lracI aII dovnslroam IO largol dovicos. If llo Uppor Rogis-
lors aro usod, llon IO addross spaco may bo oxlondod lo a fuII 32 bils (4GB). If
lloy aro nol impIomonlod, llon IO addross spaco is Iimilod lo 16 bils (64KB). In
oillor caso, TIIs largoling lloso IO dovicos aIvays carry llo 3DW loador for-
mal.
Rogislor programming in llo oxampIo slovn in Iiguro 3-22 on pago 149 is sum-
marizod in TabIo 3-13 on pago 150.
- -
- -
Momory Baso
(Non-IrofolclabIo)
1210l Uppor 3 nibbIos (121l) aro usod lo pro-
vido mosl significanl 3 digils of llo 32-
bil Baso Addross for Non-IrofolclabIo
Momory bolind llis svilcl. Tlo Iovor 5
digils of llo addross aro assumod lo bo
00000l.
Tlo Ioasl significanl nibbIo of llis rogis-
lor vaIuo (0l) is rosorvod and slouId bo
sol = 0.
Momory Iimil
(Non-IrofolclabIo)
1220l Uppor 3 nibbIos (122l) aro usod lo pro-
vido mosl significanl 3 digils of llo 32-
bil Iimil Addross for IrofolclabIo Mom-
ory bolind llis svilcl. Tlo Iovor 5 dig-
ils of llo addross aro assumod lo bo
IIIIIl. Tlo Ioasl significanl nibbIo of
llis rogislor vaIuo (0l) is rosorvod and
slouId bo sol = 0.
-- - -
- -
-- -
- --
-
--
The Previous Chapter
Tlo provious claplor doscribod llo gonoraI concopls of ICI Ixpross lransaclion
rouling and llo moclanisms usod by a dovico in dociding vlollor lo accopl,
forvard, or rojocl a pacIol arriving al an ingross porl. Bocauso Dala IinI Iayor
IacIols (DIIIs) and IlysicaI Iayor - IinI lraffic aro novor forvardod,
llo omplasis loro is on Transaclion Iayor IacIol (TII) lypos and llo llroo
rouling mollods associalod vill llom: addross rouling, ID rouling, and
impIicil rouling. IncIudod is a summary of configuralion mollods usod in ICI
Ixpross lo sol up ICI-compalibIo pIug-and-pIay addrossing villin syslom IO
and momory maps, as voII as Ioy oIomonls in llo ICI Ixpross pacIol prolocoI
usod in maIing rouling docisions.
This Chapter
Informalion movos bolvoon ICI Ixpross dovicos in pacIols, and llo lvo major
cIassos of pacIols aro - - (TIIs), and
- (DIIIs). Tlo uso, formal, and dofinilion of aII TII and DIII pacIol lypos
and lloir roIalod fioIds aro dolaiIod in llis claplor.
The Next Chapter
Tlo noxl claplor discussos llo AcI/NaI IrolocoI llal vorifios llo doIivory of
TIIs bolvoon oacl porl as lloy lravoI bolvoon llo roquoslor and compIolor
dovicos. Tlis claplor dolaiIs llo lardvaro rolry moclanism llal is aulomali-
caIIy lriggorod vlon a TII lransmission orror is doloclod on a givon IinI.
-- -
pacIol formal maIos il possibIo lo insorl addilionaI informalion inlo llo pacIol
inlo proscribod Iocalions, incIuding framing symboIs, CRC, and a pacIol
soquonco numbor (TIIs onIy).
-
-- -
-- -----
- --
TLP Structure
Tlo basic usago of oacl compononl of a Transaclion Iayor IacIol is dofinod in
TabIo 4-3 on pago 161.
Generic TLP Header Format
Iiguro 4-3 on pago 162 iIIuslralos llo formal and conlonls of a gonoric TII 3DW
loador. In llis soclion, fioIds common lo noarIy aII lransaclions aro summa-
rizod. In Ialor soclions, loador formal difforoncos associalod vill llo spocific
lransaclion lypos aro covorod.
- -
-
Hoador Transaclion
Iayor
3DW or 4DW (12 or 16 bylos) in sizo. Iormal varios
vill lypo, bul Hoador dofinos lransaclion paramo-
lors:
- Transaclion lypo
- Inlondod rocipionl addross, ID, olc.
- Transfor sizo (if any), Bylo InabIos
- Ordoring allribulo
- Caclo coloroncy allribulo
- Traffic CIass
Dala Transaclion
Iayor
OplionaI fioId. 0-1024 DW IayIoad, vlicl may bo
furllor quaIifiod vill Bylo InabIos lo gol bylo
addross and bylo lransfor sizo rosoIulion.
Digosl Transaclion
Iayor
OplionaI fioId. If prosonl, aIvays 1 DW in sizo. Usod
for ond-lo-ond CRC (ICRC) and dala poisoning.
-- -
-
Iongll |9:0] Bylo 3 Bil 7:0
Bylo 2 Bil 1:0
TII dala payIoad lransfor sizo, in DW. Maximum
lransfor sizo is 10 bils, 2
10
= 1024 DW (4KB). Incod-
ing:
00 0000 0001b = 1DW
00 0000 0010b = 2DW
.
.
11 1111 1111b = 1023 DW
00 0000 0000b = 1024 DW
Allr
(Allribulos)
Bylo 2 Bil 5:4 Bil 5 = RoIaxod ordoring.
Wlon sol = 1, ICI-X roIaxod ordoring is onabIod for
llis TII. If sol = 0, llon slricl ICI ordoring is usod.
Bil 4 = No Snoop.
Wlon sol = 1, roquoslor is indicaling llal no losl
caclo coloroncy issuos oxisl vill rospocl lo llis TII.
Syslom lardvaro is nol roquirod lo causo procossor
caclo snoop for coloroncy. Wlon sol = 0, ICI -lypo
caclo snoop proloclion is roquirod.
II
(Ioisonod
Dala)
Bylo 2 Bil 6 If sol = 1, llo dala accompanying llis dala slouId bo
considorod invaIid aIllougl llo lransaclion is boing
aIIovod lo compIolo normaIIy.
TD
(TII Digosl
IioId
Irosonl)
Bylo 2 Bil 7 If sol = 1, llo oplionaI 1 DW TII Digosl fioId is
incIudod vill llis TII llal conlains an ICRC vaIuo.
Somo ruIos:
Irosonco of llo Digosl fioId musl bo clocIod by aII
rocoivors (using llis bil).
- A TII vill TD = 1, bul no Digosl fioId is landIod
as a MaIformod TII.
- If a dovico supporls clocIing ICRC and TD=1, il
musl porform llo ICRC clocI.
- If a dovico doos nol supporl clocIing ICRC
(oplionaI) al llo uIlimalo doslinalion, llo dovico
musl ignoro llo digosl.
-- -
--
- - - --
- --
--
--
- -- -
-- ---
-
- - - -
- - -
- - -
- -
-
- - -
-
-
-
- -
- -
- - -
- - -
- - -
- - -
- -
-
- --
-
-- -
Memory Requests
ICI Ixpross momory lransaclions incIudo lvo cIassos: Road Roquosl/CompIo-
lion and Wrilo Roquosl. Iiguro 4-8 on pago 175 dopicls llo syslom momory map
and llo 3DW and 4DW momory roquosl pacIol formals. Wlon roquosl momory
dala lransfor il is imporlanl lo romombor llal momory lransaclions aro novor
pormillod lo cross 4KB boundarios.
Tag 7:0 Bylo 6 Bil 7:0 Tloso bils aro usod lo idonlify oacl
oulslanding roquosl issuod by llo
roquoslor. As non-poslod roquosls aro
sonl, llo noxl soquonliaI lag is
assignod.
DofauIl: onIy bils 4:0 aro usod (32 oul-
slanding lransaclions al a limo)
If Ixlondod Tag bil in ICI Ixpross
ConlroI Rogislor is sol = 1, llon aII 8
bils may bo usod (256 lags).
Roquoslor ID 15:0 Bylo 5 Bil 7:0
Bylo 4 Bil 7:0
Idonlifios llo roquoslor so a compIo-
lion may bo rolurnod, olc.
Bylo 4, 7:0 = Bus Numbor
Bylo 5, 7:3 = Dovico Numbor
Bylo 5, 2:0 = Iunclion Numbor
Addross 31:2 Bylo 8 Bil 7:2
Bylo 7 Bil 7:0
Bylo 6 Bil 7:0
Bylo 5 Bil 7:0
Tlo uppor 30 bils of llo 32-bil slarl
addross for llo IO lransfor. Nolo llal
llo Iovor lvo bils of llo 32 bil
addross aro rosorvod (00b), forcing llo
slarl addross lo bo DW aIignod.
- -
- --
- -
-- -
- - -
Tlo Iocalion and uso of oacl fioId in a 4DW momory roquosl loador is Iislod in
TabIo 4-7 on pago 176.
Nolo: Tlo difforonco bolvoon a 3DW loador and a 4DW loador is llo Iocalion
and sizo of llo slarling Addross fioId:
- Ior a 3DW loador (32 bil addrossing): Addross bils 31:2 aro in Bylos 8-11,
and 12-15 aro nol usod.
- Ior a 4DW loador (64 bil addrossing): Addross bils 31:2 aro in Bylos 12-15,
and addross bils 63:32 aro in Bylos 8-11.
Ollorviso llo loador fioIds aro llo samo.
- -
Iongll |9:0] Bylo 3 Bil 7:0
Bylo 2 Bil 1:0
TII dala payIoad lransfor sizo, in
DW. Maximum lransfor sizo is 10 bils,
2
10
= 1024 DW (4KB). Incoding:
00 0000 0001b = 1DW
00 0000 0010b = 2DW
.
.
11 1111 1111b = 1023 DW
00 0000 0000b = 1024 DW
Allr
(Allribulos)
Bylo 2 Bil 5:4 Bil 5 = RoIaxod ordoring.
Wlon sol = 1, ICI-X roIaxod ordoring
is onabIod for llis TII. If sol = 0, llon
slricl ICI ordoring is usod.
Bil 4 = No Snoop.
Wlon sol = 1, roquoslor is indicaling
llal no losl caclo coloroncy issuos
oxisl vill rospocl lo llis TII. Syslom
lardvaro is nol roquirod lo causo pro-
cossor caclo snoop for coloroncy.
Wlon sol = 0, ICI -lypo caclo snoop
proloclion is roquirod.
- --
II
(Ioisonod Dala)
Bylo 2 Bil 6 If sol = 1, llo dala accompanying llis
dala slouId bo considorod invaIid
aIllougl llo lransaclion is boing
aIIovod lo compIolo normaIIy.
TD
(TII Digosl IioId
Irosonl)
Bylo 2 Bil 7 If sol = 1, llo oplionaI 1 DW TII
Digosl fioId is incIudod vill llis TII.
Somo ruIos:
Irosonco of llo Digosl fioId musl bo
clocIod by aII rocoivors (using llis
bil)
- A TII vill TD = 1, bul no Digosl
fioId is landIod as a MaIformod
TII.
- If a dovico supporls clocIing
ICRC and TD=1, il musl porform
llo ICRC clocI.
- If a dovico doos nol supporl clocI-
ing ICRC (oplionaI) al llo uIli-
malo doslinalion, llo dovico musl
ignoro llo digosl fioId.
TC
(Traffic CIass)
Bylo 1 Bil 6:4 Tloso llroo bils aro usod lo oncodo
llo lraffic cIass lo bo appIiod lo llis
TII and lo llo compIolion associalod
vill il (if any).
000b = Traffic CIass 0 (DofauIl)
.
.
111b = Traffic CIass 7
TC 0 is llo dofauIl cIass, and TC 1-7
aro usod in providing difforonlialod
sorvicos. SooTraffic CIassos and Vir-
luaI ClannoIs on pago 256 for addi-
lionaI informalion.
- -
-- -
- - - TabIo 4-8 on
pago 181 doscribos llo Iocalion and uso of oacl fioId in llo configuralion
roquosl loador iIIuslralod in Iiguro 4-9 on pago 180.
- -
Iongll 9:0 Bylo 3 Bil 7:0
Bylo 2 Bil 1:0
Indicalos dala payIoad sizo in DW. Ior
configuralion roquosls, llis fioId is
aIvays = 1. Bylo InabIos aro usod lo
quaIify bylos villin DW (any combi-
nalion is IogaI)
Allr 1:0 (Allribulos) Bylo 2 Bil 5:4 Allribulo 1: RoIaxod Ordoring Bil
Allribulo 0: No Snoop Bil
Boll of lloso bils aro aIvays = 0 in
configuralion roquosls.
II Bylo 2 Bil 6 If = 1, indicalos llo dala payIoad (if
prosonl) is poisonod.
TD Bylo 2 Bil 7 If = 1, indicalos llo prosonco of a
digosl fioId (1 DW) al llo ond of llo
TII (procoding ICRC and IND)
TC 2:0 (Transfor CIass) Bylo 2 Bil 6:4 Indicalos lransfor cIass for llo pacIol.
TC is = 0 for aII Configuralion
roquosls.
Typo 4:0 Bylo 0 Bil 4:0 TII pacIol lypo fioId. Sol lo:
00100b = Typo 0 config roquosl
00101b = Typo 1 config roquosl
Iml 1:0 (Iormal) Bylo 0 Bil 6:5 IacIol Iormal. AIvays a 3DW loador
00b = configuralion road (no dala)
10b = configuralion vrilo (vill dala)
1sl DW BI 3:0
(Iirsl DW Bylo InabIos)
Bylo 7 Bil 3:0 Tloso ligl lruo bils map ono-lo-ono lo
quaIify bylos villin llo DW payIoad.
Ior config roquosls, any bil combina-
lion is vaIid (incIuding nono)
-- -
Iasl BI 3:0
(Iasl DW Bylo InabIos)
Bylo 7 Bil 7:4 Tloso ligl lruo bils map ono-lo-ono lo
quaIify bylos villin llo Iasl DW lrans-
forrod. Ior config roquosls, lloso bils
musl bo 0000b. (SingIo DW)
Tag 7:0 Bylo 6 Bil 7:0 Tloso bils aro usod lo idonlify oacl
oulslanding roquosl issuod by llo
roquoslor. As non-poslod roquosls aro
sonl, llo noxl soquonliaI lag is
assignod.
DofauIl: onIy bils 4:0 aro usod (32 oul-
slanding lransaclions al a limo)
If Ixlondod Tag bil in ICI Ixpross
ConlroI Rogislor is sol = 1, llon aII 8
bils may bo usod (256 lags).
Roquoslor ID 15:0 Bylo 5 Bil 7:0
Bylo 4 Bil 7:0
Idonlifios llo roquoslor so a compIo-
lion may bo rolurnod, olc.
Bylo 4, 7:0 = Bus Numbor
Bylo 5, 7:3 = Dovico Numbor
Bylo 5, 2:0 = Iunclion Numbor
Rogislor Numbor Bylo 11 Bil 7:2 Tloso bils provido llo Iovor 6 bils of
DW configuralion spaco offsol. Tlo
Rogislor Numbor is usod in conjunc-
lion vill Ixl Rogislor Numbor lo pro-
vido llo fuII 10 bils of offsol noodod for
llo 1024 DW (4096 bylo) ICI Ixpross
configuralion spaco.
Ixl Rogislor Numbor
(Ixlondod Rogislor
Numbor)
Bylo 10 Bil 3:0 Tloso bils provido llo uppor 4 bils of
DW configuralion spaco offsol. Tlo Ixl
Rogislor Numbor is usod in conjunc-
lion vill Rogislor Numbor lo provido
llo fuII 10 bils of offsol noodod for llo
1024 DW (4096 bylo) ICI Ixpross con-
figuralion spaco. Ior compalibiIily,
llis fioId can bo sol = 0, and onIy llo
Iovor 64DW (256 bylos viII bo soon)
vlon indoxing llo Rogislor Numbor.
- -
- --
- --
BCM
(Bylo Counl Modifiod)
Bylo 6 Bil 4 Sol = 1 onIy by ICI-X compIolors. Indi-
calos llal llo bylo counl fioId (soo provi-
ous fioId) rofIocls llo firsl lransfor
payIoad rallor llan lolaI payIoad
romaining. Soo Using Tlo Bylo Counl
Modifiod Bil on pago 188.
CS 2:0
(CompIolion Slalus
Codo)
Bylo 6 Bil 7:5 Tloso bils oncodod by llo compIolor lo
indicalo succoss in fuIfiIIing llo roquosl.
000b = SuccossfuI CompIolion (SC)
001b = Unsupporlod Roquosl (UR)
010b = Config Roq Rolry Slalus (CR S)
100b = CompIolor aborl. (CA)
ollors: rosorvod. Soo Summary of
CompIolion Slalus Codos: on pago 187.
CompIolor ID 15:0 Bylo 5 Bil 7:0
Bylo 4 Bil 7:0
Idonlifios llo compIolor. WliIo nol
noodod for rouling a compIolion, llis
informalion may bo usofuI if dobugging
bus lraffic.
Bylo 4 7:0 = CompIolor Bus #
Bylo 5 7:3 = CompIolor Dov #
Bylo 5 2:0 = CompIolor Iunclion #
Iovor Addross 6:0 Bylo 11 Bil 6:0 Tlo Iovor 7 bils of addross for llo firsl
onabIod bylo of dala rolurnod vill a
road. CaIcuIalod from roquosl Iongll
and Bylo onabIos, il is usod lo dolormino
noxl IogaI Road CompIolion Boundary.
Soo CaIcuIaling Iovor Addross IioId
on pago 187.
Tag 7:0 Bylo 10 Bil 7:0 Tloso bils aro sol lo rofIocl llo Tag
rocoivod vill llo roquosl. Tlo roquoslor
usos llom lo associalo inbound compIo-
lion vill an oulslanding roquosl.
-
- --
-- -
- If llo Iirsl DW Bylo InabIo fioId is 1100b, llo uppor lvo bylos aro onabIod
in llo firsl DW and llo offsol is 2. Tlo bylo slarl addross is = DW slarl
addross + 2.
- If llo Iirsl DW Bylo InabIo fioId is 1000b, onIy llo uppor bylo is onabIod in
llo firsl DW and llo offsol is 3. Tlo bylo slarl addross is = DW slarl addross
+ 3.
Onco caIcuIalod, llo Iovor 7 bils aro pIacod in llo Iovor Addross fioId of llo
compIolion loador in llo ovonl llo slarl addross vas nol aIignod on a Road
CompIolion Boundary (RCB) and llo road compIolion musl broaI off al llo firsl
RCB. KnovIodgo of llo RCB is nocossary bocauso broaIing a lransaclion musl
bo dono on RCBs vlicl aro basod on slarl addross--nol lransfor sizo.
- Rofor lo llo Bylo Counl Modifiod
Bil in TabIo 4-9 on pago 185. Tlis bil is onIy sol by a ICI-X compIolor (o.g. a
bridgo from ICI Ixpross lo ICI-X) in a parlicuIar circumslanco. RuIos for ils
assorlion incIudo:
1. Il is onIy sol = 1 by a ICI-X compIolor if a road roquosl is going lo bo broIon
inlo muIlipIo compIolions
2. Tlo BCM bil is onIy sol for llo firsl compIolion of llo sorios. Il is sol lo indi-
calo llal llo firsl compIolion conlains a Bylo Counl fioId llal rofIocls llo
firsl compIolion payIoad rallor llan llo lolaI romaining (as il vouId in nor-
maI ICI Ixpross prolocoI). Tlo rocoivor llon rocognizos llal llo compIolion
viII bo foIIovod by ollors lo salisfy llo originaI roquosl as roquirod.
3. Ior llo socond and any ollor compIolions in llo sorios, llo BCM bil musl bo
doassorlod and llo Bylo Counl fioId viII rofIocl llo lolaI romaining counl--
jusl as in normaI ICI Ixpross prolocoI.
4. ICI Ixpross dovicos rocoiving compIolions vill llo BCM bil sol musl inlor-
prol llis caso proporIy.
5. Tlo Iovor Addross fioId is sol up by llo compIolor during compIolions
vill dala (CpID) lo rofIocl llo addross of llo firsl onabIod bylo of dala boing
rolurnod
--
1. CompIolions for road roquosls may bo broIon inlo muIlipIo compIolions,
bul lolaI dala lransfor musl oquaI sizo of originaI roquosl
2. CompIolions for muIlipIo roquosls may nol bo combinod
3. IO and Configuralion roads aro aIvays 1 DW, so viII aIvays bo salisfiod
vill a singIo compIolion
4. A compIolion vill a Slalus Codo ollor llan SC (succossfuI compIolion) lor-
minalos a lransaclion.
- --
Message Requests
Mossago roquosls ropIaco many of llo inlorrupl, orror, and povor managomonl
sidoband signaIs usod on oarIior bus prolocoIs. AII mossago roquosls uso llo
4DW loador formal, and aro landIod mucl llo samo as poslod momory vrilo
lransaclions. Mossagos may bo roulod using addross, ID, or impIicil rouling.
Tlo - in llo pacIol loador indicalos llo rouling mollod lo appIy,
and vlicl addilionaI loador rogislors aro in uso (addross rogislors, olc.). Iiguro
4-11 on pago 190 dopicls llo mossago roquosl loador formal.
-- -
- --
- -- - - TabIo 4-10 on
pago 191 doscribos llo Iocalion and uso of oacl fioId in a mossago roquosl
loador.
-- - -
Iongll 9:0 Bylo 3 Bil 7:0
Bylo 2 Bil 1:0
Indicalos dala payIoad sizo in DW. Ior
mossago roquosls, llis fioId is aIvays 0
(no dala) or 1 (ono DW of dala)
Allr 1:0 (Allribulos) Bylo 2 Bil 5:4 Allribulo 1: RoIaxod Ordoring Bil
Allribulo 0: No Snoop Bil
Boll of lloso bils aro aIvays = 0 in
mossago roquosls.
II Bylo 2 Bil 6 If = 1, indicalos llo dala payIoad (if
prosonl) is poisonod.
TD Bylo 2 Bil 7 If = 1, indicalos llo prosonco of a
digosl fioId (1 DW) al llo ond of llo
TII (procoding ICRC and IND)
TC 2:0 (Transfor CIass) Bylo 2 Bil 6:4 Indicalos lransfor cIass for llo pacIol.
TC is = 0 for aII mossago roquosls.
Typo 4:0 Bylo 0 Bil 4:0 TII pacIol lypo fioId. Sol lo:
Bil 4:3:
10b = Msg
Bil 2:0 (Mossago Rouling SubfioId)
000b = Roulod lo Rool CompIox
001b = Roulod by addross
010b = Roulod by ID
011b = Rool CompIox Broadcasl Msg
100b = IocaI, lorminalo al rocoivor
101b = Gallor/roulo lo Rool CompIox
0llors = rosorvod
Iml 1:0 (Iormal) Bylo 0 Bil 6:5 IacIol Iormal. AIvays a 4DW loador
01b = mossago roquosl villoul dala
11b = mossago roquosl vill dala
-- -
Mossago Codo 7:0 Bylo 7 Bil 7:0 Tlis fioId conlains llo codo indicaling
llo lypo of mossago boing sonl.
0000 0000b = UnIocI Mossago
0001 xxxxb = Iovor Mgml Mossago
0010 0xxxb = INTx Mossago
0011 00xxb = Irror Mossago
0100 xxxxb = Hol IIug Mossago
0101 0000b = SIol Iovor Mossago
0111 111xb = Vondor Typo 0 Mossago
0111 1111b = Vondor Typo 1 Mossago
Tag 7:0 Bylo 6 Bil 7:0 As aII mossago roquosls aro poslod, no
lag is assignod lo llom. Tloso bils
slouId bo = 0.
Roquoslor ID 15:0 Bylo 5 Bil 7:0
Bylo 4 Bil 7:0
Idonlifios llo roquoslor sonding llo
mossago.
Bylo 4, 7:0 = Roquoslor Bus #
Bylo 5, 7:3 = Roquoslor Dovico #
Bylo 5, 2:0 = Roquoslor Iunclion #
Addross 31:2 Bylo 11 Bil 7:2
Bylo 10 Bil 7:0
Bylo 9 Bil 7:0
Bylo 8 Bil 7:0
If addross rouling vas soIoclod for llo
mossago (soo Typo 4:0 fioId abovo),
llon llis fioId conlains llo Iovor parl
of llo 64-bil slarling addross. Ollor-
viso, llis fioId is nol usod.
Addross 63:32 Bylo 15 Bil 7:2
Bylo 14 Bil 7:0
Bylo 13 Bil 7:0
Bylo 12 Bil 7:0
If addross rouling vas soIoclod for llo
mossago (soo Typo 4:0 fioId abovo),
llon llis fioId conlains llo uppor 32
bils of llo 64 bil slarling addross. Oll-
orviso, llis fioId is nol usod.
-- - -
- --
-
1. Tlo INTx Mossago lypo doos nol incIudo a dala payIoad. Tlo Iongll fioId is
rosorvod.
2. Assorl_INTx and Doassorl_INTx aro onIy issuod by upslroam porls. ClocI-
ing vioIalions of llis ruIo is oplionaI. If clocIod, a TII vioIalion is landIod
as a MaIformod TII.
3. Tloso mossagos aro roquirod lo uso llo dofauIl lraffic cIass, TC0. Rocoivors
musl clocI for vioIalion of llis ruIo (landIod as MaIformod TIIs).
4. Compononls al boll onds of llo IinI musl lracI llo curronl slalo of llo four
virluaI inlorrupls. If llo IogicaI slalo of ono of llo inlorrupls clangos al llo
upslroam porl, llo porl musl sond llo approprialo INTx mossago lo llo
dovnslroam porl on llo samo IinI.
5. INTx signaIing is disabIod vlon llo Inlorrupl DisabIo bil of llo Command
Rogislor is sol = 1 (jusl as il vouId bo if plysicaI inlorrupl Iinos aro usod).
6. If any virluaI INTx signaIs aro aclivo vlon llo Inlorrupl DisabIo bil is sol in
llo dovico, llo dovico musl lransmil a corrosponding Doassorl_INTx mos-
sago onlo llo IinI.
7. Svilclos musl lracI llo slalo of llo four INTx signaIs indopondonlIy for
oacl dovnslroam porl and combino llo slalos for llo upslroam IinI.
8. Tlo Rool CompIox musl lracI llo slalo of llo four INTx Iinos indopon-
donlIy and convorl llom inlo syslom inlorrupls in a syslom-spocific vay.
9. Bocauso of svilclos in llo pall, llo Roquoslor ID in an INTx mossago may
bo llo Iasl lransmillor, nol llo originaI roquoslor.
--- ICI Ixpross is compalibIo vill ICI
povor managomonl, and adds llo ICI Ixpross aclivo IinI managomonl mocla-
nism. Rofor lo Claplor 16, onlilIod "Iovor Managomonl," on pago 567 for a
doscriplion of povor managomonl. TabIo 4-12 on pago 194 summarizos llo four
povor managomonl mossago lypos.
--
-- --
IM_Aclivo_Slalo_NaI 0001 0100b 100b
IM_IMI 0001 1000b 000b
IM_Turn_Off 0001 1001b 011b
IMI_TO_AcI 0001 1011b 101b
- --
-- -
1. Iovor Managomonl Mossago lypo doos nol incIudo a dala payIoad. Tlo
Iongll fioId is rosorvod.
2. Tloso mossagos aro roquirod lo uso llo dofauIl lraffic cIass, TC0. Rocoivors
musl clocI for vioIalion of llis ruIo (landIod as MaIformod TIIs).
3. IM_IMI is sonl upslroam by compononl roquosling ovonl.
4. IM_Turn_Off is broadcasl dovnslroam
5. IMI_TO_AcI is sonl upslroam by ondpoinl. Ior svilcl vill dovicos
allaclod lo muIlipIo dovnslroam porls, llis mossago vonl bo sonl
upslroam unliI aII il is firsl rocoivod from aII dovnslroam porls.
--- Irror mossagos aro sonl upslroam by onabIod dovicos llal
dolocl corroclabIo, non-falaI uncorroclabIo, and falaI non-corroclabIo orrors. Tlo
dovico dolocling llo orror is dofinod by llo Roquoslor ID fioId in llo mossago
loador. TabIo 4-13 on pago 195 doscribos llo llroo orror mossago lypos.
-- -
1. Tloso mossagos aro roquirod lo uso llo dofauIl lraffic cIass, TC0. Rocoivors
musl clocI for vioIalion of llis ruIo (landIod as MaIformod TIIs).
2. Tlis mossago lypo doos nol incIudo a dala payIoad. Tlo Iongll fioId is
rosorvod.
3. Tlo Rool CompIox convorls orror mossagos inlo syslom-spocific ovonls.
--
-- --
IRR_COR 0011 0000b 000b
IRR_NONIATAI 0011 0001b 000b
IRR_IATAI 0011 0011b 000b
-- -
Types Of DLLPs
Tloro aro llroo imporlanl groups of DIIIs usod in managing a IinI:
1. TII AcInovIodgomonl AcI/NaI DIIIs
2. Iovor Managomonl DIIIs
3. IIov ConlroI IacIol DIIIs
In addilion, llo spocificalion dofinos a vondor-spocific DIII.
DLLPs Are LocaI Traffic
DIIIs lavo a simpIo pacIol formal. UnIiIo TIIs, lloy carry no largol informa-
lion bocauso lloy aro usod for noarosl-noiglbor communicalions onIy.
Receiver handIing of DLLPs
Tlo foIIoving ruIos appIy vlon a DIII is sonl from lransmillor lo rocoivor:
1. As DIIIs arrivo al llo rocoivor, lloy aro immodialoIy procossod. Tloy can-
nol bo fIov conlroIIod.
2. AII rocoivod DIIIs aro clocIod for orrors. Tlis incIudos a conlroI symboI
clocI al llo IlysicaI Iayor aflor dosoriaIizalion, foIIovod by a CRC clocI
al llo rocoivor Dala IinI Iayor. A 16 bil CRC is caIcuIalod and sonl vill llo
pacIol by llo lransmillor, llo rocoivor caIcuIalos ils ovn DIII clocIsum
and comparos il lo llo rocoivod vaIuo.
3. Any DIIIs llal faiI llo CRC clocI aro discardod. Tloro aro sovoraI roporl-
abIo orrors associalod vill DIIIs.
4. UnIiIo TIIs, llo is no acInovIodgomonl prolocoI for DIIIs. Tlo ICI
Ixpross spocificalion las limo-oul moclanisms vlicl aro inlondod lo aIIov
rocovory from Iosl or discardod DIIIs.
5. Assuming no orrors occur, llo DIII lypo is dolorminod and il is passod lo
llo approprialo inlornaI Iogic:
Iovor Managomonl DIIIs aro passod lo llo dovico povor manago-
monl Iogic
IIov ConlroI DIIIs aro passod lo llo Transaclion Iayor so crodils may
bo updalod.
AcI/NaI DIIIs aro roulod lo llo Dala IinI Iayor lransmil inlorfaco so
TIIs in llo rolry buffor may bo discardod or rosonl.
-- -
-
AcI
(TII AcInovIodgo)
0000 0000b TII lransmission inlogrily
NaI
(TII No AcInovIodgo)
0001 0000b TII lransmission inlogrily
IM_Inlor_I1 0010 0000b Iovor Managomonl
IM_Inlor_I23 0010 0001b Iovor Managomonl
IM_Aclivo_Slalo_Roquosl_I1 0010 0011b Iovor Managomonl
IM_Roquosl_AcI 0010 0100b Iovor Managomonl
Vondor Spocific 0011 0000b Vondor
InilIC1-I xxx=VC # 0100 0xxxb TII IIov ConlroI
-- -
-
- --
Typo 7:0 Bylo 0 Bil 7:0 Tlis fioId indicalos lypo of DIII. Ior llo Iovor Man-
agomonl DIIIs:
0010 0000b = IM_Inlor_I1
0010 0001b = IM_Inlor_I2
0010 0011b = IM_Aclivo_Slalo_Roquosl
0010 0100b = IM_Roquosl_AcI
IinI
CRC
Bylo 5 Bil 7:0
Bylo 4 Bil 7:0
16 Bil CRC sonl lo prolocl llo conlonls of llis DIII.
CaIcuIalion is mado on Bylos 0-3, rogardIoss of
vlollor fioIds aro usod.
- --
0Cl)
- 14l + (n
0Cl)
- 18l + (n
0Cl)
-
Chapter 6: QoS/TCs/VCs and Arbitration
261
Tlo vaIuo n roprosonls llo numbor of addilionaI VCs impIomonlod. Ior
oxampIo, if llo - conlains a vaIuo of 3, llon n=1, 2, and 3 for
llo llroo addilionaI rogislor sols. Nolo llal lloso numbors simpIy idonlify llo
rogislor sols for oacl VC supporlod and is nol llo VC ID.
Soflvaro assigns a VC ID for oacl of llo addilionaI VCs boing usod via llo
fioId villin llo VCn Rosourco ConlroI Rogislor. (Soo Iiguro 6-5) Tloso IDs
aro nol roquirod lo bo assignod conliguous vaIuos, bul llo samo VC vaIuo can bo
usod onIy onco.
- -
PCI Express System Architecture
262
Assigning TCs to each VC TC/VC Mapping
Tlo Traffic CIass vaIuo assignod by a roquoslor lo oacl lransaclion musl bo asso-
cialod vill a VC as il lravorsos oacl IinI on ils journoy lo llo rocipionl. AIso, llo
VC ID associalod vill a givon TC may clango from IinI lo IinI. Configuralion
soflvaro oslabIislos llis associalion during iniliaIizalion via llo
fioId of llo VC Rosourco ConlroI Rogislor. Tlis 8-bil fioId pormils any TC vaIuo
lo bo mappod lo llo soIoclod VC, vloro oacl bil posilion roprosonls llo corro-
sponding TC vaIuo (i.o., bil 0 = TC0:: bil 7 = TC7). Solling a bil assigns llo corro-
sponding TC vaIuo lo llo VC ID. Iiguro 6-6 slovs a mapping oxampIo vloro
TC0 and TC1 aro mappod lo VC0 and TC2::TC4 aro mappod lo VC3.
Soflvaro is pormillod a groal doaI of fIoxibiIily in assigning VC IDs and map-
ping llo associalod TCs. Hovovor, llo spocificalion slalos sovoraI ruIos associ-
alod vill llo TC/VC mapping:
- TC/VC mapping musl bo idonlicaI for llo lvo porls allaclod lo llo samo
IinI.
- Ono TC musl nol bo mappod lo muIlipIo VCs in any ICI Ixpross Iorl.
- Ono or muIlipIo TCs can bo mappod lo a singIo VC.
TabIo 6-1 on pago 263 Iisls a varioly of combinalions llal may bo impIomonlod.
Tlis is inlondod onIy lo iIIuslralo a fov combinalions, and many moro aro possi-
bIo.
Chapter 6: QoS/TCs/VCs and Arbitration
263
Arbitration
Tvo lypos of lransaclion arbilralion provido llo mollod for managing isoclro-
nous lransaclions and difforonlialod sorvicos:
- dolorminos llo priorily of lransac-
lions boing lransmillod from llo samo porl, basod on lloir VC ID.
- dolorminos llo priorily of lransaclions vill llo samo
VC assignmonl al llo ogross porl, basod on llo priorily of llo porl al vlicl
llo lransaclions arrivod. Iorl arbilralion appIios lo lransaclions llal lavo
llo samo VC ID al llo ogross porl, lloroforo a porl arbilralion moclanism
oxisls for oacl virluaI clannoI supporlod by llo ogross porl.
-
--
TC0 VC0 DofauIl solling, usod by aII lransaclions.
TC0-TC1
TC2-TC7
VC0
VC7
VCs aro nol roquirod lo bo assignod consoculivoIy.
MuIlipIo TCs can bo assignod lo a singIo VC.
TC0
TC1
TC6
TC7
VC0
VC1
VC6
VC7
SovoraI lransaclion lypos musl uso TC0/VC0. (1)
TCs aro nol roquirod lo bo assignod consoculivoIy.
Somo TC/VC combinalions can bo usod lo supporl
an isoclronous connoclion.
TC0
TC1
TC2
TC3
TC4
TC5
TC6
TC7
VC0
VC1
VC2
VC3
VC4
VC5
VC6
VC7
AII TCs can bo assignod lo llo corrosponding VC
numbors.
TC0
TC1-TC4
VC0
VC6
Tlo VC numbor llal is assignod nood nol malcl
ono of llo corrosponding TC numbors.
TC0
TC1-TC2
TC2
VC0
VC1
VC2
. A TC numbor can bo assignod lo onIy ono
VC numbor. Tlis oxampIo slovs TC2 mappod lo
boll VC1 and VC2, vlicl is nol aIIovod.
PCI Express System Architecture
264
Arbilralion is aIso affoclod by llo roquiromonls associalod vill lransaclion
ordoring and fIov conlroI. Tloso addilionaI roquiromonls aro discussod in sub-
soquonl claplors, bul aro monlionod in llo conloxl of arbilralion as roquirod in
llo foIIoving discussions.
VirtuaI ChanneI Arbitration
In addilion lo supporling QoS objoclivos, VC arbilralion slouId aIso onsuro llal
forvard progross is mado for aII lransaclions. Tlis provonls inadvorlonl spIil
lransaclion limo-ouls. Any dovico llal boll inilialos lransaclions and supporls
lvo or moro VCs musl impIomonl VC arbilralion. Iurllormoro, ollor dovico
lypos llal supporl moro llan ono VC (o.g., svilclos) musl aIso supporl VC arbi-
lralion.
VC arbilralion aIIovs a lransmilling dovico lo dolormino llo priorily of lransac-
lions basod on lloir VC assignmonl. Koy claraclorislics of VCs llal aro roIovanl
lo VC arbilralion incIudo:
- Iacl VC supporlod and onabIod providos ils ovn buffors and fIov conlroI.
- Transaclions mappod lo llo samo VC aro issuod in slricl ordor (unIoss llo
RoIaxod Ordoring allribulo bil is sol).
- No ordoring roIalionslip oxisls bolvoon lransaclions assignod lo difforonl
VCs.
Iiguro 6-7 on pago 265 iIIuslralos llo concopl of VC arbilralion. In llis oxampIo
lvo VCs aro impIomonlod (VC0 and VC1) and lransmission priorily is basod on
a 3:1 ralio, vloro 3 VC1 lransaclions aro sonl lo oacl VC0 lransaclion. Tlo
dovico coro issuos lransaclions (llal incIudo a TC vaIuo) lo llo TC/VC Mapping
Iogic. Basod on llo associalod VC vaIuo, llo lransaclion is roulod lo llo appro-
prialo VC buffor vloro il avails lransmission. Tlo VC arbilor dolorminos llo
VC buffor priorily vlon sonding lransaclions.
Tlis oxampIo iIIuslralos llo fIov of lransaclion in onIy ono diroclion. Tlo samo
Iogic oxisls for lransmilling lransaclions simuIlanoousIy in llo opposilo diroc-
lion. Tlal is, llo rool porl aIso conlains lransmil buffors and an arbilor and llo
ondpoinl dovico conlains rocoivo buffors.
Chapter 6: QoS/TCs/VCs and Arbitration
265
A varioly of VC arbilralion moclanisms may bo ompIoyod by a givon dosign.
Tlo mollod closon by llo dosignor is spocifiod villin llo VC capabiIily rogis-
lors. In gonoraI, lloro aro llroo approaclos llal can bo laIon:
- Slricl Iriorily Arbilralion for aII VCs
- SpIil Iriorily Arbilralion VCs aro sogmonlod inlo Iov- and ligl-priorily
groups. Tlo Iov-priorily group usos somo form of round robin arbilralion
and llo ligl-priorily group usos slricl priorily.
- Round robin priorily (slandard or voigllod) arbilralion for aII VCs
Strict Priority VC Arbitration
Tlo spocificalion dofinos a dofauIl priorily sclomo basod on llo inloronl prior-
ily of VC IDs (VC0=Iovosl priorily and VC7=liglosl priorily). Tlo arbilralion
moclanism is lardvaro basod, and roquiros no configuralion. Iiguro 6-8 iIIus-
lralos a slricl priorily arbilralion oxampIo llal incIudos aII VCs. Tlo VC ID gov-
orns llo ordor in vlicl lransaclions aro sonl. Tlo maximum numbor of VCs
PCI Express System Architecture
266
llal uso slricl priorily arbilralion cannol bo groalor llan llo vaIuo in llo
fioId. (Soo Iiguro 6-4 on pago 260.) Iurllormoro, if llo
dosignor las closon slricl priorily arbilralion for aII VCs supporlod, llo
fioId of Iorl VC CapabiIily Rogislor 1 is lardvirod lo
zoro. (Soo Iiguro 6-9 on pago 267.)
Slricl priorily roquiros llal VCs of liglor priorily gol procodonco ovor Iovor
priorily VCs basod on llo VC ID. Ior oxampIo, if aII oigll VCs aro govornod by
slricl priorily, lransaclions vill a VC ID of VC0 can onIy bo sonl vlon no lrans-
aclions aro ponding lransmission in VC1-VC7. In somo circumslancos slricl pri-
orily can rosuIl in Iovor priorily lransaclions boing slarvod for bandvidll and
oxporioncing oxlromoIy Iong Ialoncios. ConvorsoIy, llo liglosl priorily lransac-
lions rocoivo vory ligl bandvidll vill minimaI Ialoncios. Tlo spocificalion
roquiros llal ligl priorily lraffic bo roguIalod lo avoid slarvalion, and furllor
dofinos lvo mollods of roguIalion:
- Tlo originaling porl can manago llo injoclion ralo of ligl priorily lransac-
lions, lo pormil groalor bandvidll for Iovor priorily lransaclions.
- Svilclos can roguIalo muIlipIo dala fIovs al llo ogross porl llal aro vying
for IinI bandvidll. Tlis mollod may Iimil llo llrouglpul from ligl band-
vidll appIicalions and dovicos llal allompl lo oxcood llo Iimilalions of llo
avaiIabIo bandvidll.
Chapter 6: QoS/TCs/VCs and Arbitration
267
Tlo dosignor of a dovico may aIso Iimil llo numbor of VCs llal parlicipalo in
slricl priorily by spocifying a spIil bolvoon llo Iov- and ligl-priorily VCs as
discussod in llo noxl soclion.
Low- and High-Priority VC Arbitration
Iiguro 6-9 on pago 267 iIIuslralos llo fioId
villin VC CapabiIily Rogislor 1. Tlis road-onIy fioId spocifios a VC ID vaIuo
llal idonlifios llo uppor Iimil of llo Iov-priorily arbilralion group for llo
dosign. Ior oxampIo, if llis counl conlains a vaIuo of 4, llon VC0-VC4 aro mom-
bors of llo Iov-priorily group and VC5-VC7 uso slricl priorily. Nolo llal a
of 7 moans llal no slricl priorily is usod.
As dopiclod in Iiguro 6-11 on pago 269, llo ligl-priorily VCs conlinuo lo uso
slricl priorily arbilralion, vliIo llo Iov-priorily arbilralion group usos ono of
llo ollor priorilizalion mollods supporlod by llo dovico. VC CapabiIily Rogis-
lor 2 roporls vlicl aIlornalo arbilralion mollods aro supporlod for llo Iov pri-
PCI Express System Architecture
268
orily group, and llo VC ConlroI Rogislor pormils soIoclion of llo mollod lo bo
usod by llis group. Soo Iiguro 6-10 on pago 268. Tlo Iov-priorily arbilralion
sclomos incIudo:
- Hardvaro Basod Iixod Arbilralion Sclomo llo spocificalion pormils llo
vondor lo dofino a lardvaro-basod fixod arbilralion sclomo llal providos
aII VCs vill llo samo priorily. (o.g. round robin).
- Woigllod Round Robin (WRR) vill WRR somo VCs can bo givon liglor
priorily llan ollors bocauso lloy lavo moro posilions villin llo round
robin llan ollors. Tlo spocificalion dofinos llroo WRR configuralions, oacl
vill a difforonl numbor of onlrios (or plasos).
-
Chapter 6: QoS/TCs/VCs and Arbitration
269
Tlis soIoclion dofinos a lard-
varo-basod VC arbilralion sclomo llal roquiros no addilionaI soflvaro
solup. Tlo spocificalion monlions slandard Round Robin arbilralion as an
oxampIo sclomo llal llo dosignor may clooso. In sucl a sclomo, lransac-
lions ponding lransmission villin oacl Iov-priorily VC aro sonl during
oacl pass llrougl llo round robin. Tlo spocificalion doos nol procIudo
ollor impIomonlalion-spocific sclomos.
Tlo voigllod round
robin (WRR) approacl pormils soflvaro lo configuro llo VC Arbilralion
labIo. Tlo numbor of arbilralion labIo onlrios supporlod by llo dosign is
roporlod in llo fioId of Iorl VC CapabiIily Rogislor
2. Tlo labIo sizo is soIoclod by vriling llo corrosponding vaIuo in lo llo
fioId of llo Iorl VC ConlroI Rogislor. Soo Iiguro 6-10 on
pago 268. Iacl onlry in llo labIo roprosonls ono plaso llal soflvaro Ioads
vill a Iov priorily VC ID vaIuo. Tlo VC arbilor ropoalodIy scans aII labIo
onlrios in a soquonliaI faslion and sonds lransaclions from llo VC buffor
spocifiod in llo labIo onlrios. Onco a lransaclion las boon sonl, llo arbilor
immodialoIy procoods lo llo noxl plaso.
Soflvaro can sol up llo VC arbilralion labIo sucl llal somo VCs aro Iislod in
moro onlrios llan ollors, lloroby, aIIoving difforonlialion of QoS bolvoon
llo VCs. Tlis givos soflvaro considorabIo fIoxibiIily in oslabIisling llo
dosirod priorily. Iiguro 6-12 on pago 270 dopicls llo voigllod round robin
VC arbilralion concopl.
-
PCI Express System Architecture
270
Round Robin Arbitration (EquaI or Weighted) for AII VCs
Tlo lardvaro dosignor may clooso lo impIomonl ono of llo round robin forms
of VC arbilralion for aII VCs. Tlis is accompIislod by spocifying llo liglosl VC
numbor supporlod by llo dovico as a mombor of llo Iov priorily group (via llo
- fioId. In llis caso, aII VC priorilios aro managod
via llo VC arbilralion labIo. Nolo llal llo VC arbilralion labIo is nol usod vlon
llo Hardvaro Iixod Round Robin sclomo is soIoclod. Soo pago 269.
Loading the VirtuaI ChanneI Arbitration TabIe
Tlo VC Arbilralion TabIo (VAT) is Iocalod al an offsol from llo boginning of llo
oxlondod configuralion spaco as indicalod by llo VC Arbilralion TabIo Offsol
fioId. Tlis offsol is conlainod villin Iorl VC CapabiIily Rogislor 2. (Soo Iiguro
6-13 on pago 271.)
Chapter 6: QoS/TCs/VCs and Arbitration
271
Rofor lo Iiguro 6-14 on pago 272 during llo foIIoving discussion. Iacl onlry
villin llo VAT is a 4-bil fioId llal idonlifios llo VC ID of llo virluaI clannoI
buffor llal is scloduIod lo doIivor dala during llis corrosponding plaso. Tlo
labIo Iongll is a funclion of llo lardvaro dosign and llo arbilralion sclomo
soIoclod if cloicos aro supporlod by llo dosign as iIIuslralod in Iiguro 6-10 on
pago 268.
- -
PCI Express System Architecture
272
Tlo labIo is Ioadod by configuralion soflvaro lo acliovo llo priorily ordor
dosirod for llo virluaI clannoIs. Hardvaro sols llo -
bil vlon soflvaro updalos any onlry villin llo labIo. Onco llo labIo is Ioadod,
soflvaro sols llo bil villin llo Iorl VC ConlroI rogis-
lor. Tlis bil causos lardvaro lo Ioad llo nov vaIuos inlo llo VC Arbilor. Hard-
varo cIoars llo - bil vlon labIo Ioading is compIolo,
lloroby, pormilling soflvaro lo vorify succossfuI Ioading.
-
Chapter 6: QoS/TCs/VCs and Arbitration
273
VC Arbitration within MuItipIe Function Endpoints
Tlo spocificalion doos nol slalo lov an ondpoinl slouId manago llo arbilralion
of dala fIovs from difforonl funclions villin an ondpoinl. Hovovor il doos slalo
llal MuIli-funclion Indpoinls... slouId supporl ICI Ixpross VC-basod arbilra-
lion conlroI moclanisms if muIlipIo VCs aro impIomonlod for llo ICI Ixpross
IinI. VC arbilralion vlon lloro aro muIlipIo funclions raisos inlorosling quos-
lions aboul llo approacl lo bo laIon. Of courso vlon llo dovico funclions sup-
porl onIy VC0, no VC arbilralion is nocossary. Tlo spocificalion Ioavos llo
approacl opon lo llo dosignor.
Iiguro 6-15 on pago 274 slovs a funclionaI bIocI diagram of an oxampIo impIo-
monlalion in vlicl lvo funclions aro impIomonlod villin an ondpoinl dovico,
oacl of vlicl supporls lvo VCs. Tlo oxampIo approacl is basod upon llo goaI
of using a slandard ICI Ixpross coro lo inlorfaco boll funclions lo llo IinI. Tlo
lransaclion Iayor villin llo IinI porforms llo TC/VC mapping and VC arbilra-
lion. Tlo dovico-spocific porlion of llo dosign is llo funclion arbilor llal dolor-
minos llo priorily of dala fIovs from llo funclions lo llo lransaclion Iayor of
llo coro. IoIIoving aro Ioy considoralions for sucl an approacl:
- Rallor llan dupIicaling llo TC/VC mapping villin oacl funclion, llo
slandard dovico coro porforms llo lasI. An imporlanl considoralion for llis
docision is llal aII funclions musl uso llo samo TC/VC mapping. Tlo spoc-
ificalion roquiros llal llo TC/VC mapping bo llo samo for dovicos al oacl
ond of a IinI. Tlis moans llal oacl funclion villin llo ondpoinl musl lavo
llo samo mappings.
- Tlo funclion arbilor usod TC vaIuos lo dolormino llo priorily of lransac-
lions boing doIivorod from llo lvo funclions, and soIocls llo liglosl prior-
ily lransaclion from llo funclions vlon forvarding lransaclions lo llo
lransaclion Iayor of llo ICI Ixpross coro. Tlo arbilralion aIgorillm is lard-
virod basod on llo appIicalions associalod vill oacl funclion.
PCI Express System Architecture
274
Port Arbitration
Wlon lraffic from muIlipIo porls vio for Iimilod bandvidll associalod vill a
common ogross porl, arbilralion is roquirod. Tlo concopl of porl arbilralion is
piclurod in Iiguro 6-16 on pago 275. Nolo llal porl arbilralion oxisls in llroo
Iocalions villin a syslom:
- Igross porls of svilclos
- Rool CompIox porls vlon poor-lo-poor lransaclions aro supporlod
- Rool CompIox ogross porls lo llal Ioad lo sourcos sucl as main momory
Iorl arbilralion roquiros soflvaro configuralion, vlicl is landIod via ICI-lo-
ICI bridgo (IIB) configuralion in boll svilclos and poor-lo-poor lransfors
villin llo Rool CompIox and by llo Rool CompIox Rogislor BIocI vlon accoss-
ing slarod rool compIox rosourcos sucl as main momory. Iorl arbilralion occurs
indopondonlIy for oacl virluaI clannoI supporlod by llo ogross porl. In llo
oxampIo boIov, rool porl 2 supporls poor-lo-poor lransfors from rool porls 1 and
2, lovovor, poor-lo-poor lransfor supporl bolvoon rool compIox porls is nol
roquirod.
Chapter 6: QoS/TCs/VCs and Arbitration
275
Bocauso porl arbilralion is managod indopondonlIy for oacl VC of llo ogross
porl or RCRB, a porl arbilralion labIo is roquirod for oacl VC llal supporls pro-
grammabIo porl arbilralion as iIIuslralod in Iiguro 6-17 on pago 276. Iorl arbi-
lralion labIos aro supporlod onIy by svilclos and RCRBs and aro nol aIIovod
for ondpoinls, rool porls and ICI Ixpross bridgos.
PCI Express System Architecture
276
Tlo procoss of arbilraling bolvoon difforonl pacIol slroams aIso impIios llo uso
of addilionaI buffors lo accumuIalo lraffic from oacl porl in llo ogross porl as
iIIuslralod in Iiguro 6-18 on pago 277. Tlis oxampIo iIIuslralos lvo ingross porls
(1 and 2) vloso lransaclions aro roulod lo an ogross porl (3). Tlo aclion laIon by
llo svilcl incIudo:
1. Transaclions arriving al llo ingross porls aro diroclod lo llo approprialo
fIov conlroI buffors basod on llo TC/VC mapping.
2. Transaclions aro forvardod from llo fIov conlroI buffors lo llo rouling
Iogic is consuIlod lo dolormino llo ogross porl.
3. Transaclions aro roulod lo llo ogross porl (3) vloro TC/VC mapping dolor-
minos inlo vlicl VC buffor llo lransaclions slouId bo pIacod.
4. A sol of VC buffors is associalod vill oacl of llo ogross porls. Nolo llal llo
ingross porl numbor is lracIod unliI lransaclions aro pIacod in lloir VC
buffor.
5. Iorl arbilralion Iogic dolorminos llo ordor in vlicl lransaclions aro sonl
from oacl group of VC buffors.
-
Chapter 6: QoS/TCs/VCs and Arbitration
277
The Port Arbitration Mechanisms
Tlo acluaI porl arbilralion moclanisms dofinod by llo spocificalion aro simiIar
lo llo modoIs usod for VC arbilralion and incIudo:
- Non-configurabIo lardvaro-fixod arbilralion sclomo
- Woigllod Round Robin (WRR) arbilralion vill 32 plasos
- WRR arbilralion vill 64 plasos
- WRR arbilralion vill 128 plasos
- Timo-basod WRR arbilralion vill 128 plasos
- WRR arbilralion vill 256 plasos
Configuralion soflvaro musl dolormino llo porl arbilralion capabiIily for a
svilcl or RCRB and soIocl llo porl arbilralion sclomo lo bo usod for oacl
onabIod VC. Iiguro 6-19 on pago 278 iIIuslralos llo rogislors and fioIds invoIvod
in dolormining porl arbilralion capabiIilios and soIocling llo porl arbilralion
sclomo lo bo usod by oacl VC.
PCI Express System Architecture
278
Tlis porl arbilralion
moclanism doos nol roquiro configuralion of llo porl arbilralion labIo.
Onco soIoclod by soflvaro, llo moclanism is managod soIoIy by lardvaro.
Tlo acluaI arbilralion sclomo is basod on a round-robin or simiIar approacl
vloro oacl porl las llo samo priorily. Tlis lypo of moclanism onsuros a
lypo of fairnoss and onsuros llal aII lransaclions can maIo forvard
- - - -
Chapter 6: QoS/TCs/VCs and Arbitration
279
progross. Hovovor, il doos nol sorvico llo goaIs of difforonlialod sorvicos
and doos nol supporl isoclronous lransaclions.
IiIo llo voigllod round robin
moclanism usod for VC arbilralion, soflvaro Ioads llo porl arbilralion
labIo sucl llal somo porls can rocoivo liglor priorily llan ollors basod on
llo numbor of plasos in llo round robin llal aro aIIocalod for oacl porl.
Tlis approacl aIIovs soflvaro lo faciIilalo difforonlialod sorvicos by assign-
ing difforonl voiglls lo lraffic coming from difforonl porls.
As llo labIo is scannod oacl labIo plaso spocifios a porl numbor llal idonli-
fios llo VC buffor from vlicl llo noxl lransaclion is sonl. Onco llo lransac-
lion is doIivorod arbilralion conlroI Iogic immodialoIy procoods lo llo noxl
plaso. Ior a givon porl, if no lransaclion is ponding lransmission llo arbilor
advancos immodialoIy lo llo noxl plaso.
Tlo spocificalion dofinos four labIo Ionglls for WRR porl arbilralion, dolor-
minod by llo numbor of plasos usod by llo labIo. Tlo labIo Iongll soIoc-
lions incIudo:
- 32 plasos
- 64 plasos
- 128 plasos
- 256 plasos
- Tlo limo-basod
WRR moclanism is roquirod for supporling isoclronous lransaclions. Con-
soquonlIy, oacl svilcl ogross porl and RCRB llal supporls isoclronous
lransaclions musl impIomonl limo-basod WRR porl arbilralion.
Timo-basod voigllod round robin adds llo oIomonl of a virluaI limosIol for
oacl arbilralion plaso. }usl as in WRR llo porl arbilor doIivors ono lransac-
lion from llo Ingross Iorl VC buffor indicalod by llo Iorl Numbor of llo
curronl plaso. Hovovor, rallor llan immodialoIy advancing lo llo noxl
plaso, llo limo-basod arbilor vails unliI llo curronl virluaI limosIol
oIaspsos boforo advancing. Tlis onsuros llal lransaclions aro accoplod from
llo ingross porl buffor al roguIar inlorvaIs. Nolo llal llo limosIol doos nol
govorn llo duralion of llo lransfor, bul rallor llo inlorvaI bolvoon lrans-
fors. Tlo maximum duralion of a lransaclion is llo limo il laIos lo compIolo
llo round robin and rolurn lo llo originaI limosIol. Iacl limosIol is dofinod
as 100ns.
PCI Express System Architecture
280
AIso, il is possibIo llal no lransaclion is doIivorod during a limosIol, rosuIl-
ing in an idIo limosIol. Tlis occurs vlon:
- no lransaclion is ponding for llo soIoclod ingross porl during llo cur-
ronl plaso, or
- llo plaso conlains llo porl numbor of llis ogross porl
Timo-basod WRR arbilralion supporls a maximum labIo Iongll of 128
plasos. Tlo acluaI numbor of plasos impIomonlod is roporlod via llo
fioId of oacl virluaI clannoI llal supporls Timod WRR arbi-
lralion. Soo llo Iiguro 6-20 on pago 280 vlicl iIIuslralo llo
- IioId villin llo VCn Rosourco CapabiIily rogislor. Soo MindSlaros
vobsilo for a vlilo papor on oxampIo appIicalions of Timo-Basod WRR.
Loading the Port Arbitration TabIes
A porl arbilralion labIo is roquirod for oacl VC supporlod by llo ogross porl.
Tlo acluaI sizo and formal of llo Iorl Arbilralion TabIos aro a funclion of llo
numbor of plasos and llo numbor of ingross porls supporlod by llo Svilcl,
RCRB, or Rool Iorl llal supporls poor-lo-poor lransfors. Tlo maximum numbor
of ingross porls supporlod by llo Iorl Arbilralion TabIo is 256 porls. Tlo acluaI
numbor of bils villin oacl labIo onlry is dosign dopondonl and govornod by llo
numbor of ingross porls vloso lransaclions can bo doIivorod lo llo ogross porl.
Tlo sizo of oacl labIo onlry is roporlod in llo 2-bil
fioId of Iorl VC CapabiIily Rogislor 1. Tlo pormissibIo vaIuos aro:
- 00b 1 bil
- 01b 2 bils
- 10b 4 bils
- 11b 8 bils
- -
Chapter 6: QoS/TCs/VCs and Arbitration
281
- - - -
- - - -
- -
-- - - -
01b
PCI Express System Architecture
282
Switch Arbitration ExampIe
Tlis soclion providos an oxampIo of a llroo-porl svilcl vill boll Iorl and VC
arbilralion iIIuslralod. Tlo oxampIo prosumos llal pacIols arriving on ingross
porls 0 and 1 aro moving in llo upslroam diroclion and porl 2 is llo ogross porl
facing llo Rool CompIox. Tlis oxampIo sorvos lo summarizo porl and VC arbi-
lralion and iIIuslralo lloir uso villin a ICI Ixpross svilcl. Rofor lo Iiguro 6-22
on pago 283 during llo foIIoving discussion.
1. IacIols arrivo al ingross porl 0 and aro pIacod in a rocoivor fIov conlroI
buffor basod on TC/VC mapping associalod vill porl 0. As indicalod, TIIs
carrying lraffic cIass TC0 or TC1 aro sonl lo llo VC0 rocoivor fIov conlroI
buffors. TIIs carrying lraffic cIass TC3 or TC5 aro sonl lo llo VC1 rocoivor
fIov conlroI buffors. No ollor TCs aro pormillod on llis IinI.
2. IacIols arrivo al ingross porl 1 and aro pIacod in a rocoivor fIov conlroI
buffor basod on porl 1 TC/VC mapping. As indicalod, TIIs carrying lraffic
cIass TC0 aro sonl lo llo VC0 rocoivor fIov conlroI buffors. TIIs carrying
lraffic cIass TC2-TC4 aro sonl lo llo VC3 rocoivor fIov conlroI buffors. NO
OTHIR TCs aro pormillod on llis IinI.
3. Tlo largol ogross porl is dolorminod from rouling informalion in oacl
pacIol. Addross rouling is appIiod lo momory or IO roquosl TIIs, ID roul-
ing is appIiod lo configuralion or compIolion TIIs, olc.
4. AII pacIols doslinod for ogross porl 2 aro subjoclod lo llo TC/VC mapping
for llal porl. As slovn, TIIs carrying lraffic cIass TC0-TC2 aro managod as
virluaI clannoI 0 (VC0) lraffic, TIIs carrying lraffic cIass TC3-TC7 aro man-
agod as VC1 lraffic.
5. Indopondonl Iorl Arbilralion is appIiod lo pacIols villin oacl VC. Tlis
may bo a fixod or voigllod round robin arbilralion usod lo soIocl pacIols
from aII possibIo difforonl ingross porls. Iorl arbilralion uIlimaloIy rosuIls
in aII VCs of a givon lypo boing roulod lo llo samo VC buffor.
6. IoIIoving Iorl Arbilralion, VC arbilralion dolorminos llo ordor in vlicl
lransaclions ponding lransmission villin llo individuaI VC buffors viII bo
lransforrod across llo IinI. Tlo arbilralion aIgorillm may bo fixod or
voigllod round robin. Tlo arbilor soIocls lransaclions from llo load of oacl
VC buffor basod on llo priorily sclomo impIomonlod.
7. Nolo llal llo VC arbilor soIocls pacIols for lransmission onIy if sufficionl
fIov conlroI crodils oxisl.
Chapter 6: QoS/TCs/VCs and Arbitration
283
The Previous Chapter
Tlis provious claplor discussod Traffic CIassos, VirluaI ClannoIs, and Arbilra-
lion llal supporls QuaIily of Sorvico concopls in ICI Ixpross impIomonlalions.
Tlo concopl of QuaIily of Sorvico in llo conloxl of ICI Ixpross is an allompl lo
prodicl llo bandvidll and Ialoncy associalod vill llo fIov of difforonl lransac-
lion slroams lravorsing llo ICI Ixpross fabric. Tlo uso of QoS is basod on appIi-
calion-spocific soflvaro assigning Traffic CIass (TC) vaIuos lo lransaclions,
vlicl dofino llo priorily of oacl lransaclion as il lravoIs bolvoon llo Roquoslor
and CompIolor dovicos. Iacl TC is mappod lo a VirluaI ClannoI (VC) llal is
usod lo manago lransaclion priorily via lvo arbilralion sclomos caIIod porl and
VC arbilralion.
This Chapter
Tlis claplor discussos llo purposos and dolaiIod oporalion of llo IIov ConlroI
IrolocoI. Tlis prolocoI roquiros oacl dovico lo impIomonl crodil-basod IinI fIov
conlroI for oacl virluaI clannoI on oacl porl. IIov conlroI guaranloos llal
lransmillors viII novor sond Transaclion Iayor IacIols (TIIs) llal llo rocoivor
canl accopl. Tlis provonls rocoivo buffor ovor-runs and oIiminalos llo nood for
inofficionl disconnocls, rolrios, and vail-slalos on llo IinI. IIov ConlroI aIso
loIps onabIo compIianco vill ICI Ixpross ordoring ruIos by mainlaining sopa-
ralo virluaI clannoI IIov ConlroI buffors for llroo lypos of lransaclions: Ioslod
(I), Non-Ioslod (NI) and CompIolions (CpI).
The Next Chapter
Tlo noxl claplor discussos llo ordoring roquiromonls for ICI Ixpross dovicos,
as voII as ICI and ICI-X dovicos llal may bo allaclod lo a ICI Ixpross fabric.
Tlo discussion doscribos llo Iroducor/Consumor programming modoI upon
vlicl llo fundamonlaI ordoring ruIos aro basod. Il aIso doscribos llo polonliaI
porformanco probIoms llal can omorgo vlon slrong ordoring is ompIoyod,
doscribos llo voaI ordoring soIulion, and spocifios llo ruIos dofinod for doad-
IocI avoidanco.
-- -
iIIuslralod in Iiguro 7-1. Tlo IinI croalos a IIov ConlroI DIII llal carrios
llis crodil informalion lo llo rocoivor al llo opposilo ond of llo IinI. Tlis is
dono for oacl IIov ConlroI Buffor.
- - Nolico llal llo rocoivor in Iiguro 7-1 aIso rocoivos
IIov ConlroI DIIIs from llo dovico al llo opposilo ond of llo IinI. Tlis
informalion is lransforrod lo llo lransaclion Iayor lo updalo llo IIov Con-
lroI Counlors llal lracI llo amounl of IIov ConlroI Buffor spaco in llo
ollor dovico.
- - Iacl lransmillor clocI consuIls llo IIov ConlroI
Counlors lo clocI avaiIabIo crodils. If sufficionl crodils aro avaiIabIo lo
rocoivo llo lransaclion ponding doIivory llon llo lransaclion is forvardod
lo llo IinI Iayor and is uIlimaloIy sonl lo llo opposilo dovico. If onougl
crodils aro nol avaiIabIo llo lransaclion is lomporariIy bIocIod unliI addi-
lionaI IIov ConlroI crodils aro roporlod by llo rocoiving dovico.
-- -
Transmitter EIements
- - loIds lransaclions llal aro ponding lransfor
villin llo samo virluaI clannoI.
- - lracIs llo sizo of aII lransaclions sonl from
llo VC buffor (of llo spocifiod lypo, o.g., non-poslod loadors) in IIov Con-
lroI crodils. Tlis counl is abbrovialod CC.
- - llis rogislor is iniliaIizod by llo rocoiving dovico
vlon il sonds IIov ConlroI iniliaIizalion pacIols lo roporl llo sizo of llo
corrosponding IIov ConlroI rocoivo buffor. IoIIoving iniliaIizalion, IIov
ConlroI updalo pacIols aro sonl poriodicaIIy lo add moro IIov ConlroI
crodils as lloy bocomo avaiIabIo al llo rocoivor. Tlis vaIuo is abbrovialod
CI.
- porforms llo caIcuIalions lo dolormino if llo
rocoivor las sufficionl IIov ConlroI crodils lo rocoivo llo ponding TII
(ITII). In ossonco, llis clocI onsuros llal llo lolaI CRIDITS_CONSUMID
(CC) pIus llo crodil roquirod for llo noxl pacIol ponding lransmission
(ITII) doos nol oxcood llo CRIDIT_IIMIT (CI). Tlis spocificalion dofinos
llo foIIoving oqualion for porforming llo clocI, vill aII vaIuos ropro-
sonlod in crodils:
Ior an oxampIo appIicalion of llis oqualion, Soo Slago 1 IIov ConlroI IoI-
Ioving IniliaIizalion on pago 294.
Receiver EIements
- sloros incoming loador or dala informa-
lion.
- Tlis counlor lracIs llo lolaI IIov ConlroI crodils llal
lavo boon aIIocalod (mado avaiIabIo) sinco iniliaIizalion. Il is iniliaIizod by
lardvaro lo rofIocl llo sizo of llo associalod IIov ConlroI buffor. As llo
buffor fiIIs llo amounl of avaiIabIo buffor spaco docroasos unliI lransaclions
aro romovod from llo buffor. Tlo numbor of IIov ConlroI crodils associalod
vill oacl lransaclion romovod from llo buffor is addod lo llo
CRIDIT_AIIOCATID counlor, lloroby Iooping a running counl of nov
crodils mado avaiIabIo.
- - llis counlor Ioops lracI of llo lolaI
sizo of aII dala rocoivod from llo lransmilling dovico and pIacod inlo llo
IIov ConlroI buffor (in IIov ConlroI crodils). Wlon fIov conlroI is func-
lioning proporIy, llo CRIDITS_RICIIVID counl slouId bo llo samo as
CL CC PTLP mod2
FieldSize
2
FieldSize
2
-- -
Tlo lransmillor musl clocI IIov ConlroI crodil prior lo sonding a lransaclion.
In llo caso of loadors llo numbor of IIov ConlroI unils roquirod is aIvays ono.
Tlo lransmillor laIos llo foIIoving slops lo dolormino if llo lransaclion can bo
sonl. Ior simpIicily, llis oxampIo ignoros llo possibiIily of dala boing incIudod
in llo lransaclion.
Tlo crodil clocI is mado using unsignod arillmolic (2s compIomonl) in ordor
lo salisfy llo foIIoving formuIa:
Subsliluling vaIuos from Iiguro 7-5 yioIds:
-
CL CC PTLP mod2
FieldSize
2
FieldSize
2
66h 00h 01h mod2
8
2
8
2
66h 01 h mod256 80h
-- -
(add)
- -
- (sond lransaclion)
Tlo rosuIl of llo sublraclion musl bo oquaI lo or Ioss llan 1/2 llo maximum
vaIuo llal can bo lracIod vill a moduIo 256 counlor (128). Tlis approacl is
laIon lo onsuro uniquo rosuIls from llo unsignod arillmolic. Ior oxampIo,
unsignod 2s-compIomonl sublraclion yioIds llo samo rosuIls for boll 0-128 and
255-127, as slovn boIov.
-
-
To onsuro llal confIicls sucl as llo ono abovo do nol occur, llo maximum num-
bor of unusod crodils llal can bo roporlod is Iimilod lo 2
8
/2 (128) crodils for
loadors and 2
12
/2 (2048) crodils for dala. Tlis moans llal llo
CRIDITS_AIIOCATID counl musl novor oxcood llo CRIDITS_CONSUMID
counl by moro llan 128 for loadors and 2048 for dala. Tlis onsuros llal any
rosuIl < 1/2 llo maximum rogislor counl is a posilivo numbor and roprosonls
crodils avaiIabIo, and rosuIls > 1/2 llo maximum counl aro nogalivo numbors
llal indicalo crodils nol avaiIabIo.
3. Tlo CRIDITS_CONSUMID counl incromonls by ono vlon llo lransaclion
is forvardod lo llo IinI Iayor.
4. Wlon llo lransaclion arrivos al llo rocoivor, llo lransaclion loador is
pIacod inlo llo IIov ConlroI buffor and llo CRIDITS_RICIIVID counlor
(oplionaI) incromonls by ono. Nolo llal CRIDIT_AIIOCATID doos nol
clango.
Iiguro 7-6 on pago 297 iIIuslralos llo IIov ConlroI oIomonls foIIoving lransfor
of llo firsl lransaclion.
- - -
-- -
and rool porls llal do nol supporl poor-lo-poor lransfors). Il doos nol incIudo
dovicos llal moroIy forvard compIolions (svilclos and rool porls llal supporl
poor-lo-poor lransfors). Tlis impIios a roquiromonl llal any dovico inilialing a
roquosl musl commil buffor spaco for llo oxpoclod compIolion loador and dala
(if appIicabIo). Tlis guaranloos llal no llrollIing vouId ovor occur vlon com-
pIolions cross llo finaI IinI lo llo originaI roquoslor. Tlis lypo of ruIo is roquirod
of ICI-X dovicos llal inilialo spIil lransaclions. MuIlipIo soarclos of llo spocifi-
calion faiIod lo rovoaI llis roquiromonl oxpIicilIy slalod for ICI Ixpross dovicos,
lovovor, il is impIiod by llo roquiromonl lo advorliso infinilo IIov ConlroI
crodils.
Nolo aIso llal infinilo fIov conlroI crodils can onIy bo advorlisod during iniliaI-
izlion. Tlis musl bo lruo, bocauso llo CA counlor in llo rocoivor couId roIIovor
lo 00l and sond an Updalo IC pacIol vill llo crodil fioId sol lo 00l. If llo IinI
is in llo DI_Inil slalo, llis moans infinilo crodils, bul if llo IinI is in llo
DI_Aclivo slalo, llis doos nol moan infinilo crodils.
SpeciaI Use for Infinite Credit Advertisements.
Tlo spocificalion poinls oul a spociaI considoralion for dovicos llal do nol nood
lo impIomonl aII llo IC buffor lypos for aII VCs. Ior oxampIo, llo onIy
Non-Ioslod vrilos aro I/O Wrilos and Configuralion Wrilos boll of vlicl aro
pormillod onIy on VC0. Tlus, Non-Ioslod dala buffors aro nol noodod for VC1 -
VC7. Bocauso no IIov ConlroI lracIing is noodod, a dovico can simpIy advorliso
infinilo IIov ConlroI crodils during iniliaIizalion, lloroby oIiminaling llo nood
lo sond noodIoss IC_Updalo pacIols.
Header and Data Advertisements May ConfIict
An infinilo IIov ConlroI advorlisomonl migll bo sonl for oillor llo Dala or
loador buffors (vill samo IC lypo) bul nol boll. In llis caso, Updalo DIIIs aro
roquirod for ono buffor bul nol llo ollor. Tlis simpIy moans llal llo dovico
roquiring crodils viII sond an Updalo DIII vill llo corrosponding fioId con-
laining llo CRIDITS_AIIOCATID crodil informalion, and llo ollor fioId
musl bo sol lo zoro (consislonl vill ils advorlisomonl).
1. Iacl dovico sonds InilIC1 lypo IIov ConlroI pacIols (ICIs) lo advorliso
llo sizo of ils rospoclivo rocoivo buffors. A soparalo ICI for poslod roquosls
(I), non-poslod roquosls (NI) and compIolion (CII) pacIol lypos is
roquirod. Tlo ordor in vlicl llis soquonco of llroo ICIs is sonl is:
- Hoador and Dala buffor crodil unils for Ioslod Roquosls (I).
- Hoador and Dala buffor crodil unils for Non-Ioslod Roquosls (NI)
- Hoador and Dala buffor crodil unils for CompIolions (CII)
Tlo soquonco of ICIs is ropoalod conlinuousIy unliI a dovico Ioavos llo
IC_INIT1 iniliaIizalion slalo.
2. In llo moanlimo, dovicos laIo llo crodil informalion and iniliaIizo llo lrans-
mil crodil Iimil rogislors. In llis oxampIo, Dovico A Ioads ils IH lransmil
Crodil Iimil rogislor vill a vaIuo of 4, vlicl vas roporlod by Dovico B for
ils poslod roquosl loador IC buffor. Il aIso Ioads ils ID Crodil Iimil rogislor
vill a vaIuo of 64d crodils (1024 bylos vorll of dala) for accompanying
poslod dala. SimiIarIy, Dovico B Ioads ils NIH lransmil Crodil Iimil
counlor vill a vaIuo of 2 for non-poslod roquosl loadors and ils NID lrans-
mil counlor vill a vaIuo of 32d crodils (512 bylos vorll of dala) for accom-
panying non-poslod dala.
- --
3. Nolo llal vlon llis procoss is compIolo, llo Crodils AIIocalod counlor in
llo rocoivors and llo corrosponding Crodil Iimil counlors in llo lransmil-
lors viII bo oquaI.
4. Onco a dovico rocoivos Inil1 IC vaIuos for a givon buffor lypo (o.g., Ioslod)
and las rocordod llom, llo IC_INIT1 slalo is compIolo for llal IIov Con-
lroI buffor. Onco aII IC buffors for a givon VC lavo compIolod llo IC_INIT1
slalo, IIag 1 (II1) is sol and llo dovico coasos lo sond ICInil1 DIIIs and
advancos lo IC Inil2 slalo. Nolo llal rocoipl of an Inil2 IC pacIols may aIso
causo II1 lo bo sol. Tlis can occur if llo noiglboring dovico las aIroady
advancod lo llo IC Inil2 slalo.
FC Init2 Packets Confirm SuccessfuI FC InitiaIization
ICI Ixpross dofinos llo InilIC2 slalo llal is usod for foodbacI lo vorify llo IIov
ConlroI iniliaIizalion las boon succossfuI for a givon VC. During IC_INIT2,
oacl dovico conlinuousIy oulpuls a soquonco of 3 InilIC2 IIov ConlroI pacIols,
lovovor, crodil vaIuos aro discardod during llo IC_INIT2 slalo. Nolo llal
dovicos aro pormillod lo sond TIIs upon onloring llo IC_INIT2 slalo. Iiguro
7-12 iIIuslralos InilIC2 bolavior, vlicl is doscribod foIIoving llo iIIuslralion.
-
-- -
- limor is rosol vlon any Inil or Updalo ICI is rocoivod, or oplionaIIy llo
limor may bo rosol by llo rocoipl of any lypo of DIII
- vlon limor oxpiros IlysicaI Iayor onlors llo IinI Training Soquonco Slalo
Maclino (ITSSM) Rocovory slalo
Introduction
As vill ollor prolocoIs, ICI Ixpross imposos ordoring ruIos on lransaclions
moving llrougl llo fabric al llo samo limo. Tlo roasons for llo ordoring ruIos
incIudo:
- Insuring llal llo compIolion of lransaclions is dolorminislic and in llo
soquonco inlondod by llo programmor.
- Avoiding doadIocIs condilions.
- Mainlaining compalibiIily vill ordoring aIroady usod on Iogacy busos (o.g.,
ICI, ICI-X, and AGI).
- Maximizo porformanco and llrouglpul by minimizing road Ialoncios and
managing road/vrilo ordoring.
ICI Ixpross ordoring is basod on llo samo Iroducor/Consumor modoI as ICI.
Tlo spIil lransaclion prolocoI and roIalod ordoring ruIos aro fairIy slraigll for-
vard vlon roslricling llo discussion lo lransaclions invoIving onIy nalivo ICI
Ixpross dovicos. Hovovor, ordoring bocomos moro compIox vlon incIuding
supporl for llo Iogacy busos monlionod in buIIol llroo abovo.
Rallor llan prosonling llo ordoring ruIos dofinod by llo spocificalion and
allompling lo oxpIain llo ralionaIo for oacl ruIo, llis claplor laIos llo buiIding
bIocI approacl. Iacl major ordoring concorn is inlroducod ono al a limo. Tlo
discussion bogins vill llo mosl consorvalivo (and safosl) approacl lo ordoring,
progrossos lo a moro aggrossivo approacl (lo improvo porformanco), and cuImi-
nalos vill llo ordoring ruIos prosonlod in llo spocificalion. Tlo discussion is
sogmonlod inlo llo foIIoving soclions:
1. Tlo Iroducor/Consumor programming modoI upon vlicl llo fundamon-
laI ordoring ruIos aro basod.
2. Tlo fundamonlaI ICI Ixpross dovico ordoring roquiromonls llal onsuro llo
Iroducor/Consumor modoI funclions corroclIy.
3. Tlo RoIaxod Ordoring foaluro llal pormils vioIalion of llo Iroducor/Con-
sumor ordoring vlon llo dovico issuing a roquosl Inovs llal llo lransac-
lion is nol parl of a Iroducor/Consumor programming soquonco.
4. Modificalion of llo slrong ordoring ruIos lo improvo porformanco.
5. Avoiding doadIocI condilions and supporl for ICI Iogacy impIomonlalions.
-
Producer/Consumer ModeI
Roadors famiIiar vill llo Iroducor/Consumor programming modoI may
clooso lo sIip llis soclion and procood diroclIy lo Nalivo ICI Ixpross Ordor-
ing RuIos on pago 318.
Tlo Iroducor/Consumor modoI is a common mollodoIogy llal lvo roquoslor-
capabIo dovicos migll uso lo communicalo vill oacl ollor. Considor llo foI-
Ioving oxampIo sconario:
1. A nolvorI adaplor bogins lo rocoivo a slroam of comprossod vidoo dala
ovor llo nolvorI and porforms a sorios of momory vrilo lransaclions lo
doIivor llo slroam of comprossod vidoo dala inlo a in momory
(in ollor vords llo nolvorI adaplor is llo of llo dala).
2. Aflor llo movos llo dala lo momory, il porforms a momory vrilo
lransaclion lo sol an indicalor (or ) in a momory Iocalion (or a rogislor)
lo indicalo llal llo dala is roady for procossing.
3. Anollor roquoslor (roforrod lo as llo -) poriodicaIIy porforms a
momory road from llo Iocalion lo soo if lloros any dala lo bo pro-
cossod. In llis oxampIo, llis roquoslor is a vidoo docomprossor llal viII
docompross and dispIay llo dala.
4. Wlon il soos llal llo las boon sol by llo , il porforms a mom-
ory vrilo lo cIoar llo foIIovod by a bursl momory road lransaclion lo
road llo comprossod dala (il consumos llo dala, lonco llo namo
-) from llo in momory.
5. Wlon il is dono consuming llo , llo - vrilos llo compIolion
slalus inlo llo - Iocalion. Il llon rosumos poriodicaIIy roading llo
Iocalion lo dolormino vlon moro dala noods lo bo procossod.
6. In llo moanlimo, llo las boon roading poriodicaIIy from llo
- Iocalion lo soo if dala procossing las boon compIolod by llo ollor
roquoslor (llo -). Tlis Iocalion lypicaIIy conlains zoro unliI llo
ollor roquoslor compIolos llo dala procossing and vrilos llo compIolion
slalus inlo il. Wlon llo roads llo - and soos llal llo
- las compIolod procossing llo , llo llon porforms a
momory vrilo lo cIoar llo - Iocalion.
7. Tlo procoss llon ropoals vlonovor llo las moro dala lo bo pro-
cossod.
Ordoring ruIos aro roquirod lo onsuro llal llo Iroducor/Consumor modoI
vorIs corroclIy no mallor vloro llo , llo -, llo buffor,
llo Iocalion, and llo - Iocalion aro Iocalod in llo syslom (in ollor
vords, no mallor lov lloy aro dislribulod on various IinIs in llo syslom).
-- -
Wlon ICI Iogacy dovicos rosido villin a ICI Ixpross syslom, llo ordoring ruIos
bocomo moro invoIvod. ConsoquonlIy, addilionaI ordoring ruIos appIy bocauso
of ICIs doIayod lransaclion prolocoI. Willoul ordoring ruIos, llis prolocoI
couId pormil Iroducor/Consumor lransaclions lo compIolo oul of ordor and
causo llo programming modoI lo broaI.
ReIaxed Ordering
ICI Ixpross supporls llo RoIaxod Ordoring moclanism inlroducod by ICI-X,
lovovor, ICI Ixpross inlroducos somo clangos (discussod Ialor in llis claplor).
Tlo concopl of RoIaxod Ordoring in llo ICI Ixpross onvironmonl aIIovs
svilclos in llo pall bolvoon llo Roquoslor and CompIolor lo roordor somo
lransaclions jusl rocoivod boforo ollors llal voro proviousIy onquouod.
Tlo ordoring ruIos llal oxisl lo supporl llo Iroducor/Consumor modoI may
rosuIl in lransaclions boing bIocIod, vlon in facl llo bIocIod lransaclions aro
compIoloIy unroIalod lo any Iroducor/Consumor lransaclion soquonco. Conso-
quonlIy, in corlain circumslancos, a lransaclion vill ils RoIaxod Ordoring (RO)
allribulo bil sol can bo ro-ordorod aload of ollor lransaclions.
Tlo RoIaxod Ordoring bil may bo sol by llo dovico if ils dovico drivor las
onabIod il lo do so (by solling llo InabIo RoIaxod Ordoring bil in llo Dovico
ConlroI rogislorsoo TabIo 24 - 3 on pago 906). RoIaxod ordoring givos svilclos
and llo Rool CompIox pormission lo movo llis lransaclion aload of ollors,
vloroas llo aclion is normaIIy prolibilod.
RO Effects on Memory Writes and Messages
ICI Ixpross Svilclos and llo Rool CompIox aro affoclod by momory vrilo and
mossago lransaclions llal lavo lloir RO bil sol. Momory vrilo and Mossago
lransaclions aro lroalod llo samo in mosl rospoclsboll aro landIod as poslod
oporalions, boll aro rocoivod inlo llo samo Ioslod buffor, and boll aro subjocl
lo llo samo ordoring roquiromonls. Wlon llo RO bil is sol, svilclos landIo
lloso lransaclions as foIIovs:
- Svilclos aro pormillod lo roordor momory vrilo lransaclions jusl poslod
aload of proviousIy poslod momory vrilo lransaclions or mossago lransac-
lions. SimiIarIy, mossago lransaclions jusl poslod may bo ordorod aload of
proviousIy poslod momory vrilo or mossago lransaclions. Svilclos musl
aIso forvard llo RO bil unmodifiod. Tlo abiIily lo roordor lloso lransac-
lions villin svilclos is nol supporlod by ICI-X bridgos. In ICI-X, aII
-- -
poslod vrilos musl bo forvardod in llo oxacl ordor rocoivod. Anollor dif-
foronco bolvoon llo ICI-X and ICI Ixpross impIomonlalions is llal mos-
sago lransaclions aro nol dofinod for ICI-X.
- Tlo Rool CompIox is pormillod lo ordor a jusl-poslod vrilo lransaclion
aload of anollor vrilo lransaclion llal vas rocoivod oarIior in limo. AIso,
vlon rocoiving vrilo roquosls (vill RO sol), llo Rool CompIox is roquirod
lo vrilo llo dala payIoad lo llo spocifiod addross Iocalion villin syslom
momory, bul is pormillod lo vrilo oacl bylo lo momory in any addross
ordor.
RO Effects on Memory Read Transactions
AII road lransaclions in ICI Ixpross aro landIod as spIil lransaclions. Wlon a
dovico issuos a momory road roquosl vill llo RO bil sol, llo roquosl may
lravorso ono or moro svilclos on ils journoy lo llo CompIolor. Tlo CompIolor
rolurns llo roquoslod road dala in a sorios of ono or moro spIil compIolion lrans-
aclions, and usos llo samo RO solling as in llo roquosl. Svilcl bolavior for llo
oxampIo slalod abovo is as foIIov:
1. A svilcl llal rocoivos a momory road roquosl vill llo RO bil sol musl for-
vard llo roquosl in llo ordor rocoivod, and musl nol roordor il aload of
momory vrilo lransaclions llal voro proviousIy poslod. Tlis aclion guar-
anloos llal aII vrilo lransaclions moving in llo diroclion of llo road roquosl
aro puslod aload of llo road. Sucl aclions aro nol nocossariIy parl of llo
Iroducor/Consumor programming soquonco, bul soflvaro may dopond on
llis fIusling aclion laIing pIaco. AIso, llo RO bil musl nol bo modifiod by
llo svilcl.
2. Wlon llo CompIolor rocoivos llo momory road roquosl, il folclos llo
roquoslod road dala and doIivors a sorios of ono or moro momory road Com-
pIolion lransaclions vill llo RO bil sol (bocauso il vas sol in llo roquosl).
3. A svilcl rocoiving llo momory road CompIolion(s) dolocls llo RO bil sol
and Inovs llal il is aIIovod lo ordor llo road CompIolion(s) aload of provi-
ousIy poslod momory vrilos moving in llo diroclion of llo CompIolion. If
llo momory vrilo lransaclion voro bIocIod (duo lo fIov conlroI), llon llo
momory road CompIolion vouId aIso bo bIocIod if llo RO vas nol sol.
RoIaxod ordoring in llis caso improvos road porformanco.
TabIo 8-1 summarizos llo roIaxod ordoring bolavior aIIovod by svilclos.
-
Nolo llal llo sladod aroa roprosonls llo ordoring roquiromonls llal onsuro llo
Iroducor/Consumor modoI funclions corroclIy and is consislonl vill llo basic
ruIos associalod vill slrong ordoring. Tlo lransaclion ordoring associalod vill
coIumns 3 - 6 pIay no roIo in llo Iroducor/Consumor modoI.
Modified Ordering RuIes Improve Performance
Tlis soclion doscribos lov lomporary lransaclion bIocIing can occur vlon llo
slrong ordoring ruIos Iislod in TabIo 8-2 aro rigorousIy onforcod. Modificalion of
slrong ordoring bolvoon lransaclions llal do nol vioIalo llo Iroduco/Con-
sumor programming modoI can oIiminalo many bIocIing condilions and
improvo IinI officioncy.
Strong Ordering Can ResuIt in Transaction BIocking
Mainlaining llo slrong ordoring roIalionslip bolvoon lransaclions vouId IiIoIy
rosuIl in inslancos vloro aII lransaclions vouId bo bIocIod duo lo a singIo
rocoivo buffor boing fuII. Tlo slrong ordoring roquiromonls lo supporl llo Iro-
ducor/Consumor modoI cannol bo modifiod (oxcopl in llo caso of roIaxod
- -
-
RocaII llal lransaclions aro mappod lo VirluaI ClannoIs using llo lransaclion's
TC. If oacl TC is mappod lo a soparalo VC, llon oacl VC buffor viII conlain
lransaclions vill a singIo TC assignmonl. In llis silualion, VC fIov conlroI por-
mils oplimum fIov of lransaclions.
Summary of Modified Ordering RuIes
TabIo 8-3 on pago 326 Iisls and liglIiglls llo modifiod ordoring ruIos llal aIIov
svilclos lo movo somo lransaclions aload of ollors llal may bo slaIIod duo lo a
rocoivo buffor fuII condilion. Dofinilion of llo onlrios aro llo samo as llo provi-
ous labIo:
Tlo lransaclion in coIumn 1 musl nol bo pormillod lo procood aload of llo
proviousIy onquouod lransaclion in llo corrosponding coIumns (2-6).
(Yos/No)Tlo lransaclion in coIumn 1 is aIIovod lo procood aload of llo
proviousIy onquouod lransaclion bocauso:
- ils RoIaxod Ordoring bil is sol (1), bul il is nol roquirod lo do so.
- llo onlry is nol subjocl lo llo Iroducor/Consumor slrong ordoring roquiro-
monls and is voaIIy ordorod lo improvo porformanco.
: Tlo No onlry in Rov D, CoIumn 5 (D5) appIios lo casos vloro a CompI-
olor rolurns muIlipIo CompIolions in rosponso lo a singIo road roquosl. Tloso
CompIolions musl rolurn in ordor (i.o., CompIolions vill llo samo lransaclion
ID).
Upon oxaminalion of llo labIo, somo roadors may quoslion vlollor programs
viII oporalo corroclIy vlon voaI ordoring is ompIoyod. Ior oxampIo, nolo llal
a vrilo lransaclion is pormillod lo bo roordorod aload of a proviousIy Ialclod
road roquosl (onlry A3). A programmor vlo roads from a Iocalion foIIovod by a
vrilo lo llo samo Iocalion musl nol oxpocl lloso oporalions lo compIolo in pro-
gram ordor. Nolo llal llo ordoring ruIos onIy guaranloo propor oporalion of llo
Iroducor/Consumor programming modoI. If a programmor roquiros a road
oporalion lo compIolo aload of a vrilo lransaclion, llon llo vrilo musl nol bo
issuod unliI llo road lransaclion compIolos.
-- -
-
The Previous Chapter
Tlis claplor discussos llo ordoring roquiromonls for ICI Ixpross dovicos as
voII as ICI and ICI-X dovicos llal may bo allaclod lo a ICI Ixpross fabric. Tlo
discussion doscribos llo Iroducor/Consumor programming modoI upon vlicl
llo fundamonlaI ordoring ruIos aro basod. Il aIso doscribos llo polonliaI porfor-
manco probIoms llal can omorgo vlon slrong ordoring is ompIoyod and spoci-
fios llo ruIos dofinod for doadIocI avoidanco.
This Chapter
Nalivo ICI Ixpross dovicos llal roquiro inlorrupl supporl musl uso llo Mos-
sago SignaIod Inlorrupl (MSI) moclanism dofinod originaIIy in llo ICI 2.2 vor-
sion of llo spocificalion. Tlis claplor dolaiIs llo MSI moclanism and aIso
doscribos llo Iogacy supporl llal pormils virluaIizalion of llo ICI INTx signaIs
roquirod by dovicos sucl as ICI Ixpross-lo-ICI Bridgos.
The Next Chapter
To llis poinl il las boon prosumod llal lransaclions lravorsing llo fabric lavo
nol oncounlorod any orrors llal cannol bo corroclod by lardvaro. Tlo noxl
claplor discussos boll corroclabIo and non-corroclabIo orrors and discussos llo
moclanisms usod lo roporl llom. Tlo ICI Ixpross arclilocluro providos a ricl
sol of orror doloclion, roporling, and Iogging capabiIilios. ICI Ixpross orror
roporling cIassifios orrors inlo llroo cIassos: corroclabIo, non-falaI, and falaI.
Irior lo discussing llo ICI Ixpross orror roporling capabiIilios, incIuding ICI-
compalibIo moclanisms, a briof roviov of llo ICI orror landIing is incIudod as
bacIground informalion.
-- -
llo Mossago Dala rogislor lo form llo approprialo mossago for llo ovonl il
vislos lo roporl lo ils drivor. Ior an oxampIo, rofor lo llo oxampIo cilod in
Basics of Gonoraling an MSI Inlorrupl Roquosl on pago 338.
Basics of MSI Configuration
Tlo foIIoving Iisl spocifios llo slops laIon by soflvaro lo configuro MSI inlor-
rupls for a ICI Ixpross dovico. Rofor lo Iiguro 9-5 on pago 337.
1. Al slarlup limo, llo configuralion soflvaro scans llo ICI bus(os) (roforrod
lo as bus onumoralion) and discovors dovicos (i.o., il porforms configuralion
roads for vaIid Vondor IDs).Wlon a ICI Ixpross funclion is discovorod, llo
configuralion soflvaro roads llo CapabiIilios Iisl Ioinlor lo oblain llo Ioca-
lion of llo firsl CapabiIily rogislor villin llo clain of rogislors.
2. Tlo soflvaro llon soarclos llo capabiIily rogislor sols unliI il discovors llo
MSI CapabiIily rogislor sol (CapabiIily ID of 05l).
3. Soflvaro assigns a dvord-aIignod momory addross lo llo dovicos Mossago
Addross rogislor. Tlis is llo doslinalion addross of llo momory vrilo usod
vlon doIivoring an inlorrupl roquosl.
4. Soflvaro clocIs llo MuIlipIo Mossago CapabIo fioId in llo dovicos Mos-
sago ConlroI rogislor lo dolormino lov many ovonl-spocific mossagos llo
dovico vouId IiIo assignod lo il.
5. Tlo soflvaro llon aIIocalos a numbor of mossagos oquaI lo or Ioss llan vlal
llo dovico roquoslod. Al a minimum, ono mossago viII bo aIIocalod lo llo
dovico.
6. Tlo soflvaro vrilos llo baso mossago dala pallorn inlo llo dovicos Mos-
sago Dala rogislor.
7. IinaIIy, llo soflvaro sols llo MSI InabIo bil in llo dovicos Mossago ConlroI
rogislor, lloroby onabIing il lo gonoralo inlorrupls using MSI momory
vrilos.
-
--
-- -
MuItipIe Messages
-- - -- -
- -- -- -
-- - - -
-
MSI Message Data 0000h
-- -
Roquoslors dovico drivor. Tlo drivor may immodialoIy road dala from llo lar-
gol momory buffor in main momory. If somo of llo appIicalion dala lransaclions
llal aro sliII maIing lloir vay upslroam, llo drivor viII folcl and procoss oId
dala.
SoIving the ProbIem
Tlo probIom can bo soIvod in lvo vays:
1. Insuro llal llo TC numbors of llo Momory Wrilo dala and llo MSI aro llo
samo. Tlo MSI musl aIso lavo ils roIaxod ordoring bil cIoarod.
2. Tlo drivor can soIvo llis probIom by porforming a dummy road (Momory
Road Dvord vill aII Bylo InabIos doassorlod) from a Iocalion villin ils
dovico boforo procossing llo dala. Tlo road musl aIso lavo llo samo TC
numbor as llo Momory Wrilo dala. Tlo road compIolion rolurnod lo llo
Rool CompIox viII lravoI in llo samo VC as llo Momory Wrilo dala, lloroby
onsuring llal llo vrilo dala viII bo puslod aload of llo road compIolion
and inlo momory prior lo llo compIolion boing rocoivod by llo drivor.
RocaII llal llo ordoring ruIos roquiro llal aII lransaclions vill llo samo TC
musl bo porformod in ordor. Tlo onIy oxcoplion is a lransaclion vill llo
roIaxod ordoring bil sol.
Interrupt Latency
Tlo limo from signaIing an inlorrupl roquosl unliI soflvaro sorvicos llo dovico
is roforrod lo as ils inlorrupl Ialoncy. As vill llo ollor inlorrupl roquosl doIiv-
ory moclanisms llo MSI capabiIily doos nol provido inlorrupl Ialoncy guaran-
loos.
MSI ResuIts In ECRC Error
Bocauso MSIs aro doIivorod as Momory Wrilo lransaclions, and orror associalod
vill doIivory of an MSI is lroalod llo samo as any ollor Momory Wrilo orror
condilion. Soo ICRC Gonoralion and ClocIing on pago 361 for lroalmonl of
ICRC orrors.
Some RuIes, Recommendations, etc.
1. Il is llo spocificalions inlonlion llal muluaIIy-oxcIusivo mossagos viII bo
assignod lo dovicos by llo syslom soflvaro and llal oacl mossago viII bo
convorlod lo an oxcIusivo inlorrupl IovoI upon doIivory lo llo procossor.
-- -
2. Moro llan ono MSI capabiIily rogislor sol por funclion is prolibilod.
3. A road from llo Mossago Addross rogislor producos undofinod rosuIls.
4. Rosorvod rogislors and bils aro road-onIy and aIvays rolurn zoro vlon
road.
5. Syslom soflvaro can modify Mossago ConlroI rogislor bils, bul llo dovico is
prolibilod from doing so. In ollor vords, ils nol pormillod lo modify llo
bils via llo "bacI door."
6. Al a minimum, a singIo mossago viII bo assignod lo oacl dovico.
7. Syslom soflvaro musl nol vrilo lo llo uppor laIf of llo dvord llal conlains
llo Mossago Dala rogislor.
8. If llo dovico vrilos llo samo mossago muIlipIo limos, onIy ono of lloso
mossagos is guaranlood lo bo sorvicod. If aII of llom musl bo sorvicod, llo
dovico musl nol gonoralo llo samo mossago again unliI llo drivor sorvicos
llo oarIior ono.
9. If a dovico las moro llan ono mossago assignod, and il vrilos a sorios of dif-
foronl mossagos, il is guaranlood llal aII of llom viII bo sorvicod.
Legacy PCI Interrupt DeIivery
Tlis soclion providos bacIground informalion rogarding llo slandard ICI
inlorrupl doIivory using INTx signaIs. Tlis is foIIovod by a dolaiIod discussion
of lov ICI Ixpross supporls virluaI INTx signaIing. Roadors famiIiar vill ICI
inlorrupl landIing may visl lo procood lo VirluaI INTx SignaIing on
pago 347.
Background PCI Interrupt SignaIing
ICI dovicos llal uso inlorrupls lavo lvo oplions:
1. INTx# aclivo Iov-IovoI signaIs llal can bo slarod. Tloso signaIs voro
dofinod in llo originaI spocificalion.
2. Mossago SignaIod Inlorrupls inlroducod vill llo 2.2 vorsion of llo spocifi-
calion aro oplionaI for ICI dovicos. Tloso MSIs aro compalibIo vill ICI
Ixpross and roquiro no modificalion by dovicos or by ICI Ixpross-lo-ICI
Bridgos.
Device INTx# Pins
Iacl plysicaI ICI compononl can impIomonl up lo 4 INTx# signaIs (INTA#,
INTB#, INTC#, and INTD#). Bocauso ICI dovicos (IiIo ICI Ixpross dovicos) can
supporl up lo 8 funclions, four inlorrupl pins aro supporlod. Hovovor, if a max-
imum of oigll funclions aro impIomonlod and aII roquirod inlorrupls llon llo
-
-- - - - -
- -
Determining if a Function Uses INTx# Pins
- - - -
- -
- -
-- - - - - -
-
-
INTD#
-- -
Interrupt Routing
Tlo syslom dosignor dolorminos llo rouling of INTx pins from dovicos. Tlo
INTx signaIs usod by oacl dovico can bo roulod in a varioly of vays so llal uIli-
maloIy llo oacl INTx pin viII go lo an inpul of llo inlorrupl conlroIIor. Iiguro 9-
8 on pago 344 iIIuslralos a varioly of ICI dovicos using INTx pins lo signaI inlor-
rupls. As is lypicaI, aII ICI INTx signaIs aro roulod lo ono of four inpuls. AII
INTx signaIs roulod lo a givon inpul viII bo diroclod lo a spocific inpul lo llo
inlorrupl conlroIIor, llus oacl of llo INTx roulod lo llo common inlorrupl inpul
viII aIso lavo llo samo inlorrupl Iino numbor assignod lo il by pIalform sofl-
varo. Ior oxampIo, IRQ15 las llroo ICI INTx inpuls from difforonl dovicos
INTB#, INTA#, and INTA#. ConsoquonlIy, llo funclions using lloso INTx Iinos
viII slaro IRQ15 and ils associalod inlorrupl voclor.
-
-
-- -- --
-
Tlo ruIos associalod vill llo doIivory of INTx mossagos aro consislonl vill
ollor mossago lypos, bul lavo somo uniquo claraclorislics. Tlo INTx mossago
ruIos aro summarizod boIov:
- Assorl_INTx and Doassorl_INTx aro onIy issuod in llo upslroam diroclion
by Iogacy Indpoinl or Bridgo dovicos. Nolo llal an ollorviso nalivo ICI
Ixpross ondpoinl is aIIovod lo sond INTx mossagos prior lo ils dovico driv-
ors boing Ioadod, bocauso il is a bool dovico.
- Svilclos musl issuo INTx mossagos upslroam vlon lloro is a clango of llo
coIIapsod inlorrupl duo lo ono of llo dovnslroam porls rocoiving an
assorl or doassorl mossago. (Soo CoIIapsing INTx SignaIs villin a Bridgo
on pago 349.)
- Dovicos on oillor sido of a IinI musl lracI llo curronl slalo of INTA-INTD
assorlion.
- A Svilcl lracIs llo slalo of llo four virluaI viros for oacl of ils dovnslroam
porls, and prosonls a coIIapsod sol of virluaI viros on ils upslroam porl.
- Tlo Rool CompIox musl lracI llo slalo of llo four virluaI viros (A-D) for
oacl dovnslroam porl.
- INTx signaIing may bo disabIod vill llo Inlorrupl DisabIo bil in llo Com-
mand Rogislor.
- If any INTx virluaI viros aro aclivo and dovico inlorrupls aro llon disabIod,
a corrosponding Doassorl_INTx mossago musl bo sonl.
- If a svilcl dovnslroam porl goos lo DI_Dovn slalus, any aclivo INTx vir-
luaI viros musl bo doassorlod, and llo upslroam porl updalod accordingIy
(Doassorl_INTx mossago roquirod if llal INTx vas in aclivo slalo).
Devices May Support Both MSI and Legacy Interrupts
Wlon a ICI Ixpross dovico supporls boll INTx mossagos and MSI, onIy ono of
llo moclanism viII bo onabIod al any givon limo. Tlo mosl IiIoIy lypo of dovico
llal vouId supporl boll capabiIilios is a bool dovico. A syslom in vlicl a bool
dovico rosidos may nol supporl MSI during llo bool soquonco. ConsoquonlIy
configuralion soflvaro viII iniliaIizo inlorrupls by Ioading a Iino rogislor vaIuo
and onabIing llo dovico for Iogacy oporalion jusl as is dono for ICI dovicos.
Onco llo OS Ioads, llo dovicos MSI rogislor sol is Ioadod and llo MSI onabIo bil
is sol. Solling llis bil disabIos llo dovicos abiIily lo uso INTx mossagos and
onabIos llo doIivory of MSIs.
Nolo aIso llal solling llo Inlorrupl DisabIo bil in llo Configuralion Command
rogislor aIso inlibils llo gonoralion of INTx mossagos.
-
-- - -
355
The Previous Chapter
Nalivo ICI Ixpross dovicos llal roquiro inlorrupl supporl musl uso llo Mos-
sago SignaIod Inlorrupl (MSI) moclanism dofinod originaIIy in llo ICI 2.2 vor-
sion of llo spocificalion. Tlo provious claplor dolaiIod llo MSI moclanism and
aIso doscribod llo Iogacy supporl llal pormils virluaIizalion of llo ICI INTx
signaIs roquirod by dovicos sucl as ICI Ixpross-lo-ICI Bridgos.
This Chapter
To llis poinl il las boon prosumod llal lransaclions lravorsing llo fabric lavo
nol oncounlorod any orrors llal cannol bo corroclod by lardvaro. Tlis claplor
discussos boll corroclabIo and non-corroclabIo orrors and discussos llo mocla-
nisms usod lo roporl llom. Tlo ICI Ixpross arclilocluro providos a ricl sol of
orror doloclion, roporling, and Iogging capabiIilios. ICI Ixpross orror roporling
cIassifios orrors inlo llroo cIassos: corroclabIo, non-falaI, and falaI. ICI Ixpross
orror roporling capabiIilios incIudo ICI-compalibIo moclanisms, llus a briof
roviov of llo ICI orror landIing is incIudod as bacIground informalion.
The Next Chapter
Tlo noxl claplor doscribos llo IogicaI IlysicaI Iayor coro Iogic. Il doscribos
lov an oulbound pacIol is procossod boforo cIocIing llo pacIol oul difforon-
liaIIy. Tlo claplor aIso doscribos lov an inbound pacIol arriving from llo IinI
is procossod and sonl lo llo Dala IinI Iayor. Sub-bIocI funclions of llo IlysicaI
Iayor sucl as Bylo Slriping and Un-Slriping Iogic, ScrambIor and Do-ScrambIor,
8b/10b Incodor and Docodor, IIaslic Buffors aro discussod, and moro.
PCI Express System Architecture
356
Background
Tlo originaI ICI bus impIomonlalion providos for basic parily clocIs on oacl
lransaclion as il passos bolvoon lvo dovicos rosiding on llo samo bus. Wlon a
lransaclion crossos a bridgo, llo bridgo is invoIvod in llo parily clocIs al boll
llo originaling and doslinalion bussos. Any orror doloclod is rogislorod by llo
dovico llal las doloclod llo orror and oplionaIIy roporlod. Tlo ICI arclilocluro
providos a mollod for roporling llo foIIoving lypos of orrors:
- dala parily orrors roporlod via llo IIRR# (Iarily Irror) signaI
- dala parily orrors during muIlicasl lransaclions (spociaI cycIos) roporlod
via llo SIRR# (Syslom Irror) signaI
- addross and command parily orrors roporlod via llo SIRR# signaI
- ollor lypos of orrors (o.g. dovico spocific) roporlod via SIRR#
Irrors roporlod via IIRR# aro considorod polonliaIIy rocovorabIo, vloroas,
orrors roporlod via SIRR# aro considorod unrocovorabIo. Hov llo orrors
roporlod via IIRR# aro landIod is Iofl up lo llo impIomonlor. Irror landIing
may invoIvo onIy lardvaro, dovico-spocific soflvaro, or syslom soflvaro.
Irrors signaIod via SIRR# aro roporlod lo llo syslom and landIod by syslom
soflvaro. (Soo MindSlaros ICI Syslom Arclilocluro booI for dolaiIs.)
ICI-X usos llo samo orror roporling signaIs as ICI, bul dofinos spocific orror
landIing roquiromonls doponding on vlollor dovico-spocific orror landIing
soflvaro is prosonl. If a dovico-spocific orror landIor is nol prosonl, llon aII par-
ily orrors aro roporlod via SIRR#.
ICI-X 2.0 adds Iimilod supporl for Irror Corroclion Codos (ICC) dosignod lo
aulomalicaIIy dolocl and corrocl singIo-bil orrors villin llo addross or dala.
(Soo MindSlaros ICI-X Syslom Arclilocluro booI for dolaiIs.)
Introduction to PCI Express Error Management
ICI Ixpross dofinos a varioly of moclanisms usod for clocIing orrors, roporling
lloso orrors and idonlifying llo approprialo lardvaro and soflvaro oIomonls
for landIing lloso orrors.
PCI Express Error Checking Mechanisms
ICI Ixpross orror clocIing focusos on orrors associalod vill llo ICI Ixpross
inlorfaco and llo doIivory of lransaclions bolvoon llo roquoslor and compIolor
funclions. Iiguro 10-1 on pago 357 iIIuslralos llo scopo of llo orror clocIing llal
Chapter 10: Error Detection and Handling
357
is llo focus of llis claplor. Irrors villin a funclion llal do nol porlain lo a
givon lransaclion aro nol roporlod llrougl llo orror landIing procoduros
dofinod by llo ICI Ixpross spocificalion, and il is rocommondod llal sucl
orrors bo landIod using propriolary mollods llal aro roporlod via dovico-spo-
cific inlorrupls. Iacl Iayor of llo ICI Ixpross inlorfaco incIudos orror clocIing
capabiIily as doscribod in llo foIIoving soclions.
--
PCI Express System Architecture
358
Transaction Layer Errors
Tlo lransaclion Iayor clocIs aro porformod onIy by llo Roquoslor and CompI-
olor. IacIols lravorsing svilclos do nol porform any lransaclion Iayor clocIs.
ClocIs porformod al llo lransaclion Iayor incIudo:
- ICRC clocI faiIuro (oplionaI clocI basod on ond-lo-ond CRC)
- MaIformod TII (orror in pacIol formal)
- CompIolion Timo-ouls during spIil lransaclions
- IIov ConlroI IrolocoI orrors (oplionaI)
- Unsupporlod Roquosls
- Dala Corruplion (roporlod as a poisonod pacIol)
- CompIolor Aborl (oplionaI)
- Unoxpoclod CompIolion (compIolion doos nol malcl any Roquosl ponding
compIolion)
- Rocoivor OvorfIov (oplionaI clocI)
Data Link Layer Errors
IinI Iayor orror clocIs occur villin a dovico invoIvod in doIivoring llo lransac-
lion bolvoon llo roquoslor and compIolor funclions. Tlis incIudos llo roquosl-
ing dovico, inlormodialo svilclos, and llo compIoling dovico. ClocIs
porformod al llo IinI Iayor incIudo:
- ICRC clocI faiIuro for TIIs
- Soquonco Numbor clocI for TII s
- ICRC clocI faiIuro for DIIIs
- RopIay Timo-oul
- RopIay Numbor RoIIovor
- Dala IinI Iayor IrolocoI orrors
PhysicaI Layer Errors
IlysicaI Iayor orror clocIs aro aIso porformod by aII dovicos invoIvod in doIiv-
oring llo lransaclion, incIuding llo roquosling dovico, inlormodialo svilclos,
and llo compIoling dovico. ClocIs porformod al llo plysicaI Iayor incIudo:
- Rocoivor orrors (oplionaI)
- Training orrors (oplionaI)
Chapter 10: Error Detection and Handling
359
Error Reporting Mechanisms
ICI Ixpross providos llroo moclanisms for oslabIisling llo orror roporling poI-
icy. Tloso moclanisms aro conlroIIod and roporlod llrougl configuralion rogis-
lors mappod inlo llroo dislincl rogions of configuralion spaco. (Soo Iiguro 10-2
on pago 360.) Tlo various orror roporling foaluros aro onabIod as foIIovs:
- ICI-compalibIo Rogislors (roquirod) llis orror roporling moclanism pro-
vidos bacIvard compalibiIily vill oxisling ICI compalibIo soflvaro and is
onabIod via llo ICI configuralion -. Tlis approacl roquiros
llal ICI Ixpross orrors bo mappod lo ICI compalibIo orror rogislors.
- ICI Ixpross CapabiIily Rogislors (roquirod) llis moclanism is avaiIabIo
onIy lo soflvaro llal las InovIodgo of ICI Ixpross. Tlis roquirod orror
roporling is onabIod via llo ICI Ixpross - mappod
villin ICI-compalibIo configuralion spaco.
- ICI Ixpross Advancod Irror Roporling Rogislors (oplionaI) llis mocla-
nism invoIvos rogislors mappod inlo llo oxlondod configuralion addross
spaco. ICI Ixpross compalibIo soflvaro onabIos orror roporling for individ-
uaI orrors via llo - -
Tlo spocificalion rofors lo basoIino (roquirod) orror roporling capabiIilios and
advancod (oplionaI) orror roporling capabiIilios. Tlo basoIino orror roporling
moclanisms roquiro accoss lo llo ICI-compalibIo rogislors and ICI Ixpross
CapabiIily rogislors (buIIols 1 and 2 abovo), vliIo advancod orror roporling
(buIIol 3) roquiros accoss lo llo Advancod Irror Roporling rogislors llal aro
mappod inlo oxlondod configuralion addross spaco as iIIuslralod in Iiguro 10-2.
Tlis claplor dolaiIs aII orror roporling moclanisms.
PCI Express System Architecture
360
Error HandIing Mechanisms
Irrors aro calogorizod inlo llroo cIassos llal spocify llo sovorily of an orror as
Iislod boIov. Nolo aIso llo spocificalion dofinos llo onlily llal slouId landIo
llo orror basod on ils sovorily:
- CorroclabIo orrors landIod by lardvaro
- UncorroclabIo orrors-nonfalaI landIod by dovico-spocific soflvaro
- UncorroclabIo orrors-falaI landIod by syslom soflvaro
-- --
Chapter 10: Error Detection and Handling
361
By dofining orrors inlo lloso cIassos, orror landIing soflvaro can bo parlilionod
inlo soparalo landIors lo porform llo aclions roquirod for a givon pIalform. Tlo
aclions laIon basod on sovorily of an orror migll rango from moniloring llo
offocls of corroclabIo orrors on syslom porformanco lo simpIy rosolling llo sys-
lom or ICI Ixpross sub-syslom in llo ovonl of a falaI orror.
Nolo llal rogardIoss of llo sovorily of a givon orror, soflvaro can oslabIisl a poI-
icy vloroby any orror can bo roporlod lo llo syslom (via llo Rool CompIox) for
llo purposo of lracIing and Iogging. (Soo pago 390 for dolaiIs.)
Sources of PCI Express Errors
Tlis soclion providos a moro dolaiIod doscriplion of llo orror clocIs mado by
ICI Ixpross inlorfacos vlon landIing lransaclions.
ECRC Generation and Checking
ICRC gonoralion and clocIing is oplionaI and onIy supporlod by dovicos and
sysloms llal impIomonl Advancod Irror Roporling. Dovicos llal supporl ICRC
musl impIomonl llo Advancod Irror CapabiIilios and ConlroI Rogislor. Config-
uralion soflvaro clocIs llis rogislor lo dolormino if ICRC is supporlod, and lo
onabIo ICRC supporl.
A ICI Ixpross dovico llal originalos a lransaclion (Roquosl or CompIolion) can
croalo and appond a 32-bil CRC (villin llo digosl fioId) llal covors llo loador
and dala porlions of llo lransaclion. Tlis CRC is lormod ond-lo-ond (ICRC)
and is lypicaIIy clocIod and roporlod by llo uIlimalo rocipionl of llo lransac-
lion. Svilclos in llo pall bolvoon llo originaling and rocoiving dovicos may
oplionaIIy clocI and roporl ICRC orrors, or moroIy forvard llo pacIol villoul
clocIing llo ICRC. If a Svilcl dolocls an ICRC orror il musl sliII forvard llo
pacIol unaIlorod as il vouId any ollor pacIol. Svilclos may aIso bo llo origina-
lor or rocipionl of a lransaclion in vlicl caso lloy can parlicipalo in ICRC gon-
oralion and clocIing in llis roIo.
Tlo aclions laIon vlon an ICRC orror is doloclod is considorod boyond llo
scopo of llo spocificalion. Hovovor, llo possibIo aclions laIon viII IiIoIy
dopond on vlollor llo ICRC orror occurs in a Roquosl or CompIolion:
- - compIolors llal dolocl an ICRC orror may simpIy
drop llo lransaclion villoul forvarding il lo llo rocoiving funclion and as
a rosuIl nol rolurn a compIolion. Tlis uIlimaloIy viII rosuIl in a compIolion
limo-oul villin llo roquosling dovico. Tlo roquoslor couId llon roscloduIo
llo lransaclion undor soflvaro conlroI.
PCI Express System Architecture
362
- roquoslors llal dolocl an ICRC orror may drop llo
pacIol and roporl llo orror lo llo funclions dovico drivor via a funclion-
spocific inlorrupl. Tlo drivor vouId clocI llo slalus bils in llo
- - lo dolocl llo naluro of llo orror and polonliaIIy rosclod-
uIo llo lransaclion in llo ovonl llal a profolclabIo addross Iocalion vas
boing accossod.
Nolo llal ICRC orrors may aIso rosuIl in orror mossagos boing sonl lo llo losl
for landIing or Iogging.
Data Poisoning (OptionaI)
Dala poisoning providos a vay of indicaling llal dala associalod vill a lransac-
lion is corruplod. Wlon a TII is rocoivod llal conlains a dala fioId, llo rocipionl
viII Inov llal dala is corruplod if llo poisonod bil is sol. Iiguro 10-3 iIIuslralos
llo Irror/Ioisonod bil (II) Iocalod villin llo firsl Dvord of a pacIol.
Tlo spocificalion incIudos llroo oxampIos of dala corruplion llal couId rosuIl in
dala poisoning boing usod. In oacl of lloso casos, llo orror can bo forvardod lo
llo rocipionl via llo dala poisoning bil in llo lransaclion loador.
- Wlon a Roquoslor vislos lo porform a Momory Wrilo lransaclion il musl
firsl folcl llo dala il vislos lo sond lo llo compIolor from IocaI momory. In
llo ovonl of a parily orror vlon roading llo dala, llo dala can bo marIod as
poisonod.
- Wlon a CompIolor musl rolurn dala in rosponso lo a Momory Road roquosl,
llo dala il folclos from momory may incur a parily orror.
- Dala llal is slorod in a caclo or buffor llal las orror clocIing may aIso
rosuIl in dala corruplion boing doloclod. Tlo spocificalion doos nol indicalo
vloro lloso caclos or buffors may bo Iocalod, bul il is concoivabIo llal any
dovico llal originalos a lransaclion or forvards il may indicalo llal llo dala
las boon poisonod.
- -
Chapter 10: Error Detection and Handling
363
Tlo spocificalion slalos llal dala poisoning appIios lo dala associalod vill boll
poslod and non-poslod vrilos and road compIolions. Tloroforo dala poisoning
can bo usod in conjunclion vill Momory, I/O, and Configuralion lransaclions
llal lavo a dala payIoad.
Dala poisoning can onIy bo dono al llo lransaclion Iayor of a dovico. Tlo IinI
Iayor doos nol procoss or in any vay affocl llo conlonls of llo TII loador. Tlo
lransaclion Iayor indicalos llal dala is corruplod by solling llo Dala Irror/Ioi-
sonod bil (I/I) in llo Wrilo roquosl or Road CompIolion lransaclion loador.
Dala poisoning orrors aro onabIod and roporlod via llo UncorroclabIo Irror
Rogislors.
TC to VC Mapping Errors
AII ICI Ixpross porls llal impIomonl llo oxlondod VC capabiIily (ondpoinls,
svilclos, and rool porls) musl clocI lo vorify llal llo TC of oacl inbound
pacIol is mappod lo an aclivo VC. IacIols vill TC's llal faiI llis clocI aro
lroalod as maIformod TIIs. SimiIarIy, vlon svilclos forvard pacIols, lloy
musl aIso vorify llal llo largol oulbound porl of llo svilcl aIso supporls llo
pacIol's TC. If nol, llo pacIol is lroalod as a maIformod TII.
A roquoslor or compIolor may impIomonl moro llan ono VirluaI ClannoI (VC)
and onabIo moro llan ono Traffic CIass (TC). If llo dovico coro issuos a roquosl
lo sond a lransaclion vill a TC numbor llal is nol onabIod (poinling lo an
aclivo VC) villin llo TC lo VC mapping labIos, llo lransaclion is rojoclod and a
maIformod TII is indicalod. If llo dovico las impIomonlod llo ICI Ixpross Vir-
luaI ClannoI CapabiIily slrucluro (supporls muIlipIo VCs and/or TC fiIloring),
llon llo maIformod TII orror is doloclod al llo lransmilling dovico. Hovovor,
if llo dovico onIy supporls llo dofauIl TC0/VC0 configuralion, llon llis orror
vouId bo doloclod al llo firsl rocoiving dovico aIong llo pacIol's pall llal
impIomonls llo oxlondod VC capabiIily and appIios TC fiIloring.
Nolo aIso llal llo TC lo VC mapping is a lransaclion Iayor funclion. (Soo
Assigning TCs lo oacl VC TC/VC Mapping on pago 262 for dolaiIs).
Link FIow ControI-ReIated Errors
Irior lo forvarding llo pacIol lo llo IinI Iayor for lransmission across llo IinI,
llo lransaclion Iayor musl clocI fIov conlroI crodils lo onsuro llal llo rocoivo
buffors in llo adjaconl nodo (svilcl or compIolor) lavo sufficionl room lo loId
PCI Express System Architecture
364
llo lransaclion. IIov conlroI prolocoI orrors may occur llal viII IiIoIy provonl
lransaclions from boing sonl. Tloso orrors can bo roporlod lo llo Rool CompIox
and aro considorod uncorroclabIo. Tlo uncorroclabIo orror rogislors aro usod lo
onabIo and clocI slalus for IIov ConlroI (IC) orrors. - -
- -
AII fivo condilions llal causo fIov conlroI roIalod orrors (fIov conlroI prolocoI
orrors and rocoivor ovorfIov orrors) aro doloclod by and associalod vill llo
porl rocoiving llo fIov conlroI informalion. Tloso orror condilions aro:
- Tlo spocificalion dofinos llo minimum crodil sizo llal can bo iniliaIIy
roporlod for oacl IIov ConlroI lypo. During IC iniliaIizalion for any Vir-
luaI ClannoI, if a rocoivor faiIs lo advorliso VC crodil vaIuo oquaI lo or
groalor llan lloso pormillod, il is considorod an IC prolocoI orror.
- Tlo maximum numbor of dala payIoad crodils llal can bo roporlod is
roslriclod lo 2048 unusod crodils and 128 unusod crodils for loadors.
Ixcooding lloso Iimils is considorod an IC prolocoI orror.
- During IC iniliaIizalion rocoivors aro aIIovod lo roporl infinilo IC crodils.
IC updalos aro roquirod foIIoving iniliaIizalion. IC updalos aro aIIovod
providing llal llo crodil vaIuo fioId is sol lo zoro, vlicl is ignorod by llo
rocipionl. If llo dala fioId conlains any vaIuo ollor llan zoro, il is consid-
orod an IC prolocoI orror.
- During IC iniliaIizalion oillor llo Dala or loador IC advorlisomonl (bul
nol boll) for a givon IC lypo may bo infinilo. IC updalo pacIols aro
roquirod lo roporl crodils for llo buffor llal advorlisod Iimilod IC crodils.
Hovovor llo updalo crodil vaIuo for llo buffor advorlisod as infinilo musl
bo sol lo zoro and ignorod by llo rocoivor. A non-zoro crodil vaIuo couId
causo an IC prolocoI orror.
- A spocific clocI can bo mado al llo rocoiving porl lo dolormino if a fIov
conlroI rocoivo buffor las ovorfIovod, rosuIling in Iosl dala. Tlis clocI is
oplionaI and considorod an IC prolocoI orror.
IIov ConlroI IrolocoI orrors aro roporlod as uncorroclabIo orrors, if supporlod
and onabIod.
MaIformed Transaction Layer Packet (TLP)
Wlon llo uIlimalo rocipionl of a lransaclion rocoivos a roquosl or compIolion
pacIol inlo llo lransaclion Iayor, llo pacIol formal is clocIod for vioIalions of
llo TII formalling ruIos. Tlo spocificalion dofinos llo foIIoving iloms llal
causo a maIformod pacIol:
Chapter 10: Error Detection and Handling
365
- Dala payIoad oxcoods Max payIoad sizo.
- Tlo acluaI dala Iongll doos nol malcl dala Iongll spocifiod in llo loador.
- Slarl Momory DW addross and Iongll fioId rosuIls in llo lransaclion cross-
ing a 4KB boundary.
- TD fioId =1 (indicaling Digosl incIudod) bul no digosl fioId is prosonl.
- Bylo InabIo vioIalion doloclod.
- IacIols vlicl uso an undofinod Typo fioId vaIuos.
- MuIlipIo compIolion pacIols aro usod lo sond road dala bacI lo llo
roquoslor and llo dala sizo rolurnod in any of llo compIolion pacIols vio-
Ialos llo Road CompIolion Boundary (RCB) vaIuo.
- CompIolions vill a Configuralion Roquosl Rolry Slalus in rosponso lo a
Roquosl ollor llan a Configuralion Roquosl.
- Traffic CIass fioId (TC) conlains a vaIuo nol assignod lo an onabIod VirluaI
ClannoI (VC) villin llo TC - VC mapping for llo rocoiving dovico.
- Transaclion lypo roquiring uso of TC0 las TC vaIuo ollor llan zoro:
o I/O Road or Wrilo roquosls and compIolions
o Configuralion Road or Wrilo roquosls and compIolions
o Irror mossagos
o INTx mossagos
o Iovor Managomonl mossagos
o UnIocI mossagos
o SIol Iovor mossagos
- Rouling is incorrocl for lransaclion lypo (o.g., lransaclions roquiring rouling
lo Rool CompIox doloclod moving avay from Rool CompIox).
SpIit Transaction Errors
A varioly of faiIuros can occur during a spIil lransaclion. Wlon a lransaclion
roquosl is sonl lo a doslinalion dovico a compIolion lransaclion is oxpoclod in
rosponso (oxcopl for Momory Wrilo and Mossago lransaclions vlicl aro poslod
lransaclions). Tlo various faiIuro modos llal can occur aro discussod in llo foI-
Ioving soclions.
Unsupported Request
Wlon a rocipionl of a lransaclion roquosl dolocls llal il doos nol supporl llis
lransaclion, il rolurns a compIolion lransaclion vill unsupporlod roquosl (UR)
spocifiod in llo compIolion slalus fioId. Tlo spocificalion dofinos a numbor of
spocific condilions llal causo UR lo bo rolurnod in llo compIolion slalus fioId:
- Roquosl lypo nol supporlod.
- Mossago roquosl rocoivod vill unsupporlod or undofinod mossago codo.
PCI Express System Architecture
366
- Roquosl doos nol roforonco addross spaco mappod villin dovico.
- Roquosl conlains an addross llal cannol bo roulod lo any ogross porl of a
bridgo or a svilcl (i.o., addross is nol mappod lo any porls baso and Iimil
rogislors).
- Ioisonod Wrilo Roquosl addrossos an I/O or Momory mappod conlroI
spaco in llo CompIolor. Sucl lransaclions musl bo discardod by llo CompI-
olor and roporlod as a UR.
- ICI Ixpross ondpoinl dovico rocoivos a MRdII (IocI) lransaclion. (RocaII
llal IocI is nol supporlod by ondpoinl dovicos.)
- Tlo dovnslroam porl of llo Rool CompIox or Svilcl rocoivos a configura-
lion roquosl vill a Dovico numbor of 1-31. Tlo porl musl lorminalo llo
lransaclion and nol inilialo a configuralion lransaclion on llo dovnslroam
IinI. Insload a compIolion lransaclion is rolurnod vill UR slalus.
- A configuralion accoss llal largols an un-impIomonlod Bus, Dov, or Iunc-
lion rosuIls in lorminalion of llo lransaclion, and a compIolion lransaclion
is rolurnod vill UR slalus.
- Typo 1 configuralion roquosl rocoivod al ondpoinl.
- A compIolion is rocoivod al llo roquoslor vill a rosorvod compIolion codo.
Tlis musl bo inlorprolod as a UR.
- A funclion is in llo D1 or D2 povor managomonl slalos and a roquosl ollor
llan a configuralion roquosl is rocoivod.
- A configuralion accoss llal largols a bus llal is nol in llo rango of busos
dovnslroam of llal porl according lo llo socondary and subordinalo rogis-
lor vaIuos.
- A configuralion roquosl passing llrougl a ICI Ixpross - ICI Bridgo for
vlicl llo Ixlondod Rogislor Addross fioId is non-zoro llal is diroclod
lovard a ICI bus llal doos nol supporl Ixlondod Configuralion Spaco.
- A lransaclion loadod for a porl vill llo Rojocl Snoop Transaclions fioId sol
in llo VC Rosourco CapabiIily rogislor llal doos nol lavo llo No Snoop bil
sol in llo TII loador.
- A lransaclion is largoling a dovico on a ICI bus bul is Maslor Aborlod aflor
llo roquosl vas accoplod by llo bridgo.
CompIeter Abort
Tloso lypo of orror clocIs aro oplionaI. Tlroo circumslancos can occur llal
couId rosuIl in a CompIolor rolurning an aborl lo llo Roquoslor:
1. A CompIolor rocoivos a roquosl llal il cannol compIolo bocauso llo roquosl
vioIalos llo programming ruIos for llo dovico. As an oxampIo, somo dovicos
may bo dosignod lo pormil accoss lo a singIo Iocalion villin a spocific
DWord, vliIo any allompl lo accoss llo ollor Iocalions villin llo samo
DWord vouId faiI. Sucl roslriclions aro nol vioIalions of llo spocificalion,
Chapter 10: Error Detection and Handling
367
bul rallor IogaI roslriclions associalod vill an impIomonlalion-spocific pro-
gramming inlorfaco for llis funclion. Accossos lo sucl dovicos aro basod
upon llo oxpoclalion llal onIy llo dovico-drivor for llis dovico undor-
slands lov lo accoss ils funclion.
2. A compIolor rocoivos a roquosl llal il cannol procoss bocauso of somo por-
manonl orror condilion associalod vill llo dovico. Ior oxampIo, a ICI
Ixpross viroIoss IAN card llal is nol accopling ICI Ixpross lransaclions
bocauso il viII nol lransmil or rocoivo dala ovor ils radio unIoss lloro is an
approvod anlonna allaclod.
3. A ICI Ixpross lo ICI Bridgo may rocoivo a roquosl llal largols a ICI or ICI-
X bus. Tloso busos supporl a signaIing convonlion llal aIIovs llo largol
dovico lo indicalo llal il las aborlod llo roquosl (largol aborl) bocauso il
cannol compIolo llo roquosl duo lo somo pormanonl condilion or vioIalion
of llo funclions programming ruIos. Tlo bridgo in lurn vouId rolurn a ICI
Ixpross compIolion lransaclion indicaling CA slalus.
A CompIolor llal aborls a roquosl may roporl llo orror lo llo Rool CompIox as a
Non-IalaI Irror mossago. Iurllor, if llo aborlod roquosl roquiros a compIolion,
llo compIolion slalus vouId bo roporlod as CA.
Unexpected CompIetion
A compIolion lransaclion llal arrivos al a Roquoslor usos llo lransaclion
doscriplor (Roquoslor ID and Tag) lo malcl llo roquosl lo vlicl llis compIolion
appIios. In raro circumslancos llo lransaclion doscriplor may nol malcl a
roquosl llal is ponding compIolion. Tlo lypicaI roason for llis unoxpoclod com-
pIolion is llal llo compIolion vas mis-roulod on ils journoy bacI lo llo
inlondod roquoslor. ConsoquonlIy, lvo roquoslors viII bo surprisod:
1. llo roquoslor llal las rocoivod llo unoxpoclod compIolion, and
2. llo roquoslor llal faiIs lo rocoivo llo compIolion (lloroby causing a compIo-
lion limo-oul)
A Non-IalaI Irror mossago can bo sonl by llo dovico llal rocoivos llo unox-
poclod compIolion.
CompIetion Time-out
Tlo provious discussion poinls oul llal a compIolion lransaclion can bo roulod
lo llo vrong dovico. ConsoquonlIy, llo ponding roquosl viII novor rocoivo ils
compIolion. Tlo spocificalion dofinos llo compIolion limo-oul moclanism lo
idonlify llis silualion and roporl llo orror lo roquoslor soflvaro for possibIo
rocovory. Tlo spocificalion cIoarIy dofinos llal llo inlonl of llo compIolion limo-
PCI Express System Architecture
368
oul is lo dolocl vlon a compIolion las no roasonabIo clanco of rolurning and
nol roIalod lo oxpoclod Ialoncios associalod vill spIil lransaclions.
Tlo compIolion limo-oul moclanism musl bo impIomonlod by any dovico llal
inilialos roquosls llal roquiro compIolions lo bo rolurnod. An oxcoplion is
aIIovod for dovicos llal onIy inilialo configuralion lransaclions. Tlo spocifica-
lion dofinos llo pormissibIo rango of llo limo-oul vaIuo as foIIovs:
- Il is slrongIy rocommondod llal a dovico nol limo-oul oarIior llan 10ms
aflor sonding a roquosl, lovovor, if llo dovico roquiros groalor granuIarily a
limo-oul can occur as oarIy as 50s.
- Dovicos musl limo-oul no Ialor llan 50ms.
Nolo llal for Momory Road roquosls a roquosl may roquiro lvo or moro com-
pIolions lo rolurn aII of llo roquoslod dala. AII of llo dala musl bo rolurnod
prior lo llo limo-oul. If somo bul nol aII of llo dala las boon rolurnod vlon llo
limo-oul occurs, llo roquoslor may oillor discardod or Ioop llo dala.
Error CIassifications
Irrors aro calogorizod inlo llroo cIassos llal spocify llo sovorily of an orror as
Iislod boIov. Nolo aIso llo spocificalion dofinos llo onlily llal slouId landIo
llo orror basod on ils sovorily:
- CorroclabIo orrors landIod by lardvaro
- UncorroclabIo orrors-nonfalaI landIod by dovico-spocific soflvaro
- UncorroclabIo orrors-falaI landIod by syslom soflvaro
By dofining orrors inlo lloso cIassos, orror landIing soflvaro can bo parlilionod
inlo soparalo landIors lo porform llo aclions roquirod of a givon pIalform. Tlo
aclions laIon basod on sovorily of an orror migll rango from moniloring llo
offocls of corroclabIo orrors on syslom porformanco lo simpIy rosolling llo sys-
lom in llo ovonl of a falaI orror.
Nolo llal rogardIoss of llo sovorily of a givon orror, soflvaro can oslabIisl a poI-
icy vloroby llo syslom is nolifiod of aII orrors for llo purposo of lracIing and
Iogging oacl calogory.
Chapter 10: Error Detection and Handling
369
CorrectabIe Errors
Tlo spocificalion dofinos corroclabIo orrors as lloso orrors llal aro corroclod
soIoIy by lardvaro. Sucl orrors may lavo an impacl on porformanco (i.o.,
Ialoncy and bandvidll), bul no informalion is Iosl as a rosuIl of llo orror. Tloso
lypos of orror can bo roporlod lo soflvaro, vlicl can laIo a varioly of aclions,
IncIuding:
- Iog llo orror
- updalo caIcuIalions of ICI Ixpross porformanco
- lracI orrors lo projocl possibIo voaInossos villin llo fabric. Tlis can sug-
gosl aroas vloro groalor polonliaI oxisls for falaI orrors in llo fuluro.
UncorrectabIe Non-FataI Errors
Non-falaI orrors moan llal llo inlogrily of llo ICI Ixpross fabric is nol affoclod,
bul llal informalion las boon Iosl. Non-falaI orrors lypicaIIy moan llal a lrans-
aclion las boon corruplod, and llo ICI Ixpross lardvaro cannol corrocl llo
orror. Hovovor, llo ICI Ixpross fabric conlinuos lo funclion corroclIy and ollor
lransaclions aro unaffoclod. Rocovory from a non-falaI orror may or may nol bo
possibIo. Tlo possibiIily of rocovory rosls in llo lands of llo dovico-spocific
soflvaro associalod vill llo roquoslor llal inilialod llo lransaclion.
UncorrectabIe FataI Errors
IalaI orrors indicalo llal a IinI in llo ICI Ixpross fabric is no Iongor roIiabIo.
Dala las boon Iosl and ovory allompl lo rocovor dala undor soflvaro conlroI
viII IiIoIy faiI aIso. Sucl condilions affocl aII lransaclions llal lravorso a givon
IinI. In somo casos, llo orror condilion Ioading lo llo falaI orrors may bo
rosoIvod by rosolling llo IinI. AIlornalivoIy, llo spocificalion invilos impIomon-
lalion-spocific approaclos, in vlicl soflvaro may allompl lo Iimil llo offocls of
llo faiIuro. Tlo spocificalion doos nol dofino any parlicuIar aclions llal slouId
or couId bo laIon by soflvaro.
PCI Express System Architecture
370
How Errors are Reported
ICI Ixpross incIudos lvo mollods of roporling orrors:
- orror mossago lransaclions usod lo roporl orrors lo llo losl
- compIolion slalus usod by llo compIolor lo roporl orrors lo llo roquoslor
Iacl roporling moclanism is doscribod boIov.
Error Messages
As discussod proviousIy, ICI roporls orrors via llo IIRR# and SIRR# signaIs.
Bocauso ICI Ixpross oIiminalos llosos orror-roIalod signaIs, orror mossagos
lavo boon dofinod lo ropIaco lloso signaIs by acling as virluaI viros. Iurllor-
moro, lloso mossagos provido addilionaI informalion llal couId nol bo con-
voyod diroclIy via llo IIRR# and SIRR# signaIs. Tlis incIudos idonlificalion of
llo dovico llal doloclod llo orror and an indicalion of llo sovorily of oacl orror.
Iiguro 10-4 iIIuslralos llo formal of llo orror mossagos. Nolo llal lloso pacIols
aro roulod lo llo Rool CompIox for landIing by syslom soflvaro. Tlo mossago
codo dofinos llo lypo of mossago boing signaIod. As ono migll guoss, llo spoci-
ficalion dofinos llroo basic lypos of orror mossagos slovn in TabIo 10-1.
- ---
Chapter 10: Error Detection and Handling
371
CompIetion Status
ICI Ixpross dofinos a -- fioId villin llo compIolion loador llal
onabIos llo lransaclion compIolor lo roporl orrors bacI lo llo roquoslor. Iiguro
10-5 iIIuslralos llo Iocalion of llo compIolion fioId and TabIo 10-2 dofinos llo
compIolion vaIuos. Nolo llal llo sladod slalus onlrios roprosonl orror condi-
lions llal can bo roporlod via orror mossagos.
-- - -
--
-
30l IRR_COR usod vlon a ICI Ixpross dovico dolocls a cor-
roclabIo orror
31l IRR_NONIATAI usod vlon a dovico dolocls a non-falaI, uncor-
roclabIo orror
33l IRR_IATAI usod vlon a dovico dolocls a falaI, uncorrocl-
abIo orror
-
PCI Express System Architecture
372
BaseIine Error Detection and HandIing
Tlis soclion dofinos llo roquirod supporl for dolocling and roporling ICI
Ixpross orrors. Iacl ICI Ixpross compIianl dovicos musl incIudo:
- ICI-CompalibIo supporl roquirod lo supporl oporaling onvironmonls
llal lavo no InovIodgo of ICI Ixpross.
- ICI Ixpross Irror roporling avaiIabIo lo oporaling onvironmonls llal do
lavo InovIodgo of ICI Ixpross.
PCI-CompatibIe Error Reporting Mechanisms
Iacl ICI Ixpross musl map roquirod ICI Ixpross orror supporl lo llo ICI-
roIalod orror rogislors. Tlis invoIvos onabIing orror roporling and solling slalus
bils llal can bo road by ICI-compIianl soflvaro. To undorsland llo foaluros
avaiIabIo from llo ICI-compalibIo poinl of viov considor llo orror-roIalod bils
of llo Command and Slalus rogislors Iocalod villin llo Configuralion loador.
WliIo llo command and slalus rogislor bils lavo llo ICI namo, somo of llo
fioId dofinilions lavo boon modifiod lo rofIocl llo roIalod ICI Ixpross orror con-
dilions and roporling moclanisms. Tlo ICI Ixpross orrors lracIod by llo ICI-
compalibIo rogislors aro:
- Transaclion Ioisoning/Irror Iorvarding (oplionaI)
- CompIolor Aborl (CA) doloclod by a compIolor
- UnrocognizabIo Roquosl (UR) doloclod by a compIolor
-
- -
000b SuccossfuI CompIolion (SC)
001b Unsupporlod Roquosl (UR)
010b Configuralion Roquosl Rolry Slalus (CRS)
011b CompIolor Aborl (CA)
100b - 111b Rosorvod
Chapter 10: Error Detection and Handling
373
Tlo ICI moclanism for roporling orrors is llo assorlion of IIRR# (dala parily
orrors) and SIRR# (unrocovorabIo orrors). Tlo ICI Ixpross moclanisms for
roporling lloso ovonls aro via llo spIil lransaclion moclanism (lransaclion com-
pIolions) and virluaI SIRR# signaIing via orror mossagos.
Configuration Command and Status Registers
Iiguro 10-6 iIIuslralos llo command rogislor and llo Iocalion of llo orror-roIalod
fioIds. Tloso bils aro sol lo onabIo basoIino orror roporling undor conlroI of ICI-
compalibIo soflvaro. TabIo 10-3 dofinos llo spocific offocls of oacl bil.
-
- -
-
SIRR# InabIo Solling llis bil (1) onabIos llo gonoralion of llo approprialo ICI
Ixpross orror mossagos lo llo Rool CompIox. Irror mossagos aro
sonl by llo dovico llal las doloclod oillor a falaI or non-falaI orror.
PCI Express System Architecture
374
Iiguro 10-7 iIIuslralos llo configuralion slalus rogislor and llo Iocalion of llo
orror-roIalod bil fioIds. TabIo 10-4 on pago 374 dofinos llo circumslancos undor
vlicl oacl bil is sol and llo aclions laIon by llo dovico vlon orror roporling is
onabIod.
Iarily Irror
Rosponso
Tlis bil onabIos poisonod TII roporling. Tlis orror is lypicaIIy
roporlod as an Unsupporlod Roquosl (UR) and may aIso rosuIl in a
non-falaI orror mossago if SIRR# onabIo=1b. Nolo llal roporling in
somo casos is dovico-spocific.
- - -
- - - - -
-
Doloclod Iarily Irror Sol by llo inlorfaco llal rocoivos a Wrilo Roquosl or
Road CompIolion lransaclion vill llo poisonod bil sol.
Tlis aclion porlains lo llo roquoslors, compIolors, and
svilclos. (Tlis bil is updalod rogardIoss of llo slalo of
llo Iarily Irror onabIo bil.)
- -
-
Chapter 10: Error Detection and Handling
375
PCI Express BaseIine Error HandIing
Tlo BasoIino capabiIily aIso roquiros uso of llo ICI Ixpross capabiIily rogislors.
Tloso rogislors incIudo orror doloclion and landIing bil fioIds llal provido finor
granuIarily rogarding llo naluro of an orror llal is suppIiod vill slandard ICI
orror landIing.
Iiguro 10-8 on pago 376 iIIuslralos llo ICI Ixpross capabiIily rogislor sol. Tloso
rogislors provido supporl for:
- InabIing/disabIing orror roporling (Irror Mossago Gonoralion)
- Iroviding orror slalus
- Iroviding slalus for IinI lraining orrors
- Inilialing IinI ro-lraining
SignaIIod Syslom Irror Tlis bil is sol by a dovico llal las doloclod an uncorrocl-
abIo orror and roporlod il via an orror mossago (roquiros
SIRR# onabIo bil lo bo sol in llo Command rogislor lo
sond orror mossago).
Rocoivod Maslor Aborl Sol by a roquoslor llal rocoivos a compIolion lransaclion
vill Unsupporlod Roquosl (UR) in llo compIolion sla-
lus fioId.
Rocoivod Targol Aborl Sol by a roquoslor llal rocoivos a compIolion lransaclion
vill CompIolor Aborl (CA) in llo compIolion slalus
fioId.
SignaIIod Targol Aborl Sol by a compIolor vlon aborling a roquosl llal vioIalos
llo dovicos programming ruIos.
Maslor Dala Iarily Irror Sol by a lransmillor llal inilialos or forvards a lransac-
lion vill llo poisonod bil sol and lo a rocoivor dovico
llal rocoivod a compIolion vill llo poisonod bil sol.
Tlis bil is sol by a dovico llal oillor:
- rocoivos a compIolion pacIol llal las boon poisonod
- lransmils a vrilo pacIol llal las boon poisonod
- - - - -
-
PCI Express System Architecture
376
EnabIing/DisabIing Error Reporting
Tlo Dovico ConlroI and Dovico Slalus rogislors pormil soflvaro lo onabIo gonor-
alion of Irror Mossagos for four orror-roIalod ovonls and lo clocI slalus infor-
malion lo dolormino vlicl lypo of orror las boon doloclod:
- CorroclabIo Irrors
- Non-IalaI Irrors
- IalaI Irrors
- Unsupporlod Roquosl Irrors
Nolo llal llo onIy spocific lypo of orror condilion idonlifiod is llo unsupporlod
roquosl (UR). No granuIarily is providod for dolormining ollor lypos of orror
condilions llal occur. OnIy llo cIassificalion of llo orror is roporlod villin llo
dovico slalus rogislor. TabIo 10-5 on pago 377 Iisls oacl orror lypo and ils associ-
alod orror cIassificalion.
-- -
Chapter 10: Error Detection and Handling
377
- Solling llo
corrosponding bil in llo Dovico ConlroI Rogislor onabIos llo gonoralion of
llo corrosponding Irror Mossago vlicl roporls orrors associalod vill oacl
cIassificalion. (Rofor lo Iiguro 10-9 on pago 378.) Unsupporlod Roquosl
orrors aro spocifiod as Non-IalaI orrors and aro roporlod via a Non-IalaI
Irror Mossago, bul onIy vlon llo bil is sol.
-- -
--
CorroclabIo Rocoivor Irror IlysicaI
CorroclabIo Bad TII IinI
CorroclabIo Bad DIII IinI
CorroclabIo RopIay Timo-oul IinI
CorroclabIo RopIay Numbor RoIIovor IinI
UncorroclabIo - Non IalaI Ioisonod TII Rocoivod Transaclion
UncorroclabIo - Non IalaI ICRC ClocI IaiIod Transaclion
UncorroclabIo - Non IalaI Unsupporlod Roquosl Transaclion
UncorroclabIo - Non IalaI CompIolion Timo-oul Transaclion
UncorroclabIo - Non IalaI CompIolion Aborl Transaclion
UncorroclabIo - Non IalaI Unoxpoclod CompIolion Transaclion
UncorroclabIo - IalaI Training Irror IlysicaI
UncorroclabIo - IalaI DII IrolocoI Irror IinI
UncorroclabIo - IalaI Rocoivor OvorfIov Transaclion
UncorroclabIo - IalaI IIov ConlroI IrolocoI Irror Transaclion
UncorroclabIo - IalaI MaIformod TII Transaclion
PCI Express System Architecture
378
- - - Soo Iiguro 10-10 on pago 379.
An orror slalus bil is sol any limo an orror associalod vill ils cIassificalion is
doloclod. Tloso bils aro sol irrospoclivo of llo solling of llo Irror Roporling
InabIo bils villin llo Dovico ConlroI Rogislor. Bocauso Unsupporlod
Roquosl orrors aro by dofauIl considorod Non-IalaI Irrors, vlon lloso
orrors occur boll llo -- bil and llo - -
slalus bil viII bo sol. Nolo llal lloso bils aro cIoarod by soflvaro vlon vril-
ing a ono (1) lo llo bil fioId.
- -
Chapter 10: Error Detection and Handling
379
Link Errors
Tlo plysicaI IinI connocling lvo dovicos may faiI causing a varioly of orrors.
IinI faiIuros aro lypicaIIy doloclod villin llo plysicaI Iayor and communicalod
lo llo Dala IinI Iayor. Bocauso llo IinI las incurrod orrors, llo orror cannol bo
roporlod lo llo losl via llo faiIod IinI. Tloroforo, IinI orrors musl bo roporlod
via llo upslroam porl of svilclos or by llo Rool Iorl ilsoIf. AIso llo roIalod
fioIds in llo ICI Ixpross IinI ConlroI and Slalus rogislors aro onIy vaIid in
Svilcl and Rool dovnslroam porls (novor villin ondpoinl dovicos or svilcl
upsloam porls). Tlis pormils syslom soflvaro lo accoss IinI-roIalod orror rogis-
lors on llo porl llal is cIososl lo llo losl.
If soflvaro can isoIalo ono or moro orrors lo a givon IinI, ono mollod of
allompling lo cIoar a non-corroclabIo orror is lo rolrain llo IinI. Tlo IinI Con-
lroI Rogislor incIudos a bil llal vlon sol forcos llo Rool or Svilcl porl lo rolrain
llo IinI. If lransaclion (upon compIolion of llo rolraining) can onco again
lravorso llo IinI villoul orrors, llo probIom viII lavo boon soIvod. Iiguro 10-11
iIIuslralos llo IinI ConlroI Rogislor and liglIiglls llo fioId llal
soflvaro sols lo inilialo rolaining.
- - -
PCI Express System Architecture
380
Soflvaro can monilor llo bil in llo IinI Slalus Rogislor lo dolor-
mino vlon rolraining las compIolod. Soflvaro can aIso clocI llo
bil lo vorify llal IinI lraining vas succossfuI. IinI Training orrors aro
roporlod via llo IalaI Irror Mossago. Iiguro 10-12 liglIiglls lloso slalus bils.
- -
- - - -
Chapter 10: Error Detection and Handling
381
Roots Response to Error Message
Wlon a mossago is rocoivod by llo Rool CompIox llo aclion llal il laIos vlon
roporling llo orror mossago lo llo losl syslom is dolorminod in parl by llo Rool
ConlroI Rogislor sollings. Iiguro 10-13 dopicls llis rogislor and liglIiglls llo
llroo bil fioIds llal spocify vlollor an orror slouId bo roporlod as a falaI Sys-
lom Irror (SIRR sol onabIos gonoralion of a syslom orror). In x86 sysloms il is
IiIoIy llal a Non-MasIabIo Inlorrupl (NMI) viII bo signaIod if llo orror is lo bo
roporlod as a SIRR.
Tlo IMI Inlorrupl InabIo bil (3) aIIovs soflvaro lo onabIo and disabIo inlor-
rupl gonoralion upon llo Rool CompIox dolocling a IMI Mossago lransaclion.
Ollor oplions for roporling orror mossagos aro nol configurabIo via slandard
rogislors. Tlo mosl IiIoIy sconario is llal a syslom inlorrupl viII bo signaIod lo
llo procossor llal viII caII an Irror HandIor, vlicl may allompl lo cIoar llo
orror condilion and/or simpIy Iog llo orror.
-
PCI Express System Architecture
382
Advanced Error Reporting Mechanisms
Advancod Irror Roporling roquiros impIomonlalion of llo Advancod Irror
Roporling rogislors iIIuslralod in Iiguro 10-14 on pago 382. (Nolo llal llo Iigllor
fioIds al llo bollom of llo CapabiIily rogislor diagram aro usod onIy for rool
porls, discussod Ialor.) Tloso rogislors provido sovoraI addilionaI orror roporl-
ing foaluros:
- finor granuIarily in dofining llo acluaI lypo of orror llal las occurrod
villin oacl cIassificalion.
- abiIily lo spocify llo sovorily of oacl uncorroclabIo orror lypo lo dolormino
vlollor il slouId bo roporlod as a falaI or non-falaI orror.
- supporl for Iogging orrors.
- onabIo/disabIo Rool CompIox lo roporl orrors lo llo syslom.
- idonlify sourco of llo orror.
- abiIily lo masI roporling individuaI lypos of orrors.
--
Chapter 10: Error Detection and Handling
383
ECRC Generation and Checking
Ind-lo-Ind CRC (ICRC) gonoralion and clocIing can bo onabIod onIy if llo
Advancod Irror Roporling CapabiIily rogislors aro impIomonlod. SpocificaIIy,
llo Advancod Irror CapabiIily and ConlroI rogislor providos conlroI ovor
ICRC gonoralion and clocIing as iIIuslralod in Iiguro 10-15 on pago 383.
Tlis rogislor roporls vlollor llis dovico supporls ICRC gonoralion and clocI-
ing. If so, configuralion soflvaro can onabIo ono or boll foaluros.
In somo casos, muIlipIo uncorroclabIo orrors may bo doloclod prior lo soflvaro
roading and cIoaring llo rogislor. Tlo Iirsl Irror Ioinlor fioId idonlifios llo bil
posilion villin llo Advancod UncorroclabIo Slalus rogislor corrosponding lo
llo orror llal occurrod firsl. (Soo Iiguro 10-18 on pago 387.)
Tlo Iirsl Irror Ioinlor and llo ICRC ClocI and Gonoralion InabIo bils musl
bo impIomonlod as slicIy bils.
HandIing Sticky Bits
SovoraI of llo Advancod Configuralion Irror Rogislors ompIoy slicIy fioIds.
Many of lloso fioIds aro singIo bils. Tlo dosignalions of slicIy fioIds aro as foI-
Iovs:
- ROS Road OnIy/SlicIy
- RWS Road/Wrilo/SlicIy
- RW1CS Road/Wrilo 1 lo CIoar/SlicIy
-
PCI Express System Architecture
384
SlicIy orror rogislor fioIds bolavo difforonlIy in llal a Hol Rosol las no affocl on
llo conlonls of lloso fioIds. Ior aII ollor rogislor fioIds, Hol Rosol forcos dofauIl
vaIuos inlo llo fioIds. SlicIy bils aro imporlanl in orror landIing lo onsuro llal
Irror-roIalod conlroI and slalus informalion is nol Iosl duo lo a Hol Rosol. Sofl-
varo may inilialo a Hol Rosol in an allompl lo cIoar orrors.
Advanced CorrectabIe Error HandIing
Advancod orror roporling providos llo abiIily lo pinpoinl spocific corroclabIo
orrors. Tloso orrors can soIoclivoIy causo llo gonoralion of a CorroclabIo Irror
Mossago boing sonl lo llo losl syslom:
- Rocoivor Irrors (oplionaI) causod vlon llo IlysicaI Iayor dolocls an
orror in llo incoming pacIol (TII or DIII). Tlo IlysicaI Iayor discards
llo pacIol, froos buffor spaco aIIocalod lo llo pacIol, and signaIs llo IinI
Iayor llal a rocoivo orror las occurrod. Tlis orror is roporlod by solling a
slalus bil and musl nol rosuIl in llo IinI Iayor aIso roporling an orror for
llis pacIol (o.g., llo IinI Iayor musl nol roporl a Bad TII or Bad DIII).
- Bad TIIs causod vlon llo IinI Iayor dolocls a pacIol vill a bad CRC
clocI, an incorroclIy nuIIifiod pacIol, or an incorrocl IacIol Soquonco
Numbor (nol a dupIicalo). In oacl caso, llo IinI Iayor discards llo pacIol
and roporls a NAK DIII lo llo lransmillor, vlicl lriggors a lransaclion
rolry.
- Bad DIIIs causod by a CRC clocI faiIuro. Tlis lypo of orror may bo cor-
roclod by a subsoquonl DIII or a limo-oul llal rosuIls uIlimaloIy in DIII
rolry. Tlo oxacl corroclivo aclion doponds on llo lypo of DIII llal las
faiIod and llo circumslancos associalod vill pacIol lransmission.
- RIIIAY_NUM RoIIovor llo RIIIAY_NUM is a counl mainlainod
villin llo lransmilling sido of llo IinI Iayor llal Ioops lracI of llo numbor
of limos llal a lransaclion lad boon rolransmillod villoul succossfuI doIiv-
ory. Wlon llo counl roIIs ovor, lardvaro aulomalicaIIy rolrains llo IinI in
an allompl lo cIoar llo fauIl condilion.
- RopIay Timor Timo-oul llis limor is mainlainod villin llo lransmilling
sido of llo IinI Iayor and is inlondod lo lriggor a rolry vlon forvard
progross in sonding TIIs las sloppod. A limo-oul occurs vlon unacInovI-
odgod TIIs lavo nol rocoivod an acInovIodgomonl villin llo limo-oul
poriod. A limo-oul rosuIls in a rolry of aII unacInovIodgod TIIs.
KnovIodgo of vlicl orror las occurrod can loIp syslom soflvaro lo maIo bol-
lor prodiclions of compononls llal aro IiIoIy lo faiI compIoloIy in llo fuluro.
Soflvaro may aIso clooso lo masI rocognilion of somo corroclabIo orrors vliIo
roporling ollors.
Chapter 10: Error Detection and Handling
385
Advanced CorrectabIe Error Status
Wlon a corroclabIo orror occurs llo corrosponding bil villin llo Advancod
CorroclabIo Irror Slalus rogislor is sol. (Soo Iiguro 10-16.) Tloso bils aro aulo-
malicaIIy sol by lardvaro and aro cIoarod by soflvaro vlon vriling a 1 lo llo
bil posilion. Tloso bils aro sol vlollor or nol llo orror is roporlod via an Irror
Mossago. Iacl slalus bil in llis rogislor is dosignalod RW1CS.
Advanced CorrectabIe Error Reporting
Wlollor a parlicuIar corroclabIo orror is roporlod lo llo losl is spocifiod by llo
CorroclabIo MasI rogislor iIIuslralod in Iiguro 10-17. Tlo dofauIl slalo of llo
masI bils aro cIoarod (0), lloroby causing a CorroclabIo Irror mossago lo bo
doIivorod vlon any of llo corroclabIo orrors aro doloclod. Soflvaro may clooso
lo sol ono or moro bils lo provonl a CorroclabIo Irror Mossago from boing sonl
vlon llo soIoclod orror is doloclod. Iacl bil in llis rogislor is dosignalod RWS.
- -
PCI Express System Architecture
386
Advanced UncorrectabIe Error HandIing
Advancod orror roporling providos llo abiIily lo pinpoinl vlicl uncorroclabIo
orror las occurrod. Iurllormoro soflvaro can spocify llo sovorily of oacl orror
and soIocl vlicl orrors viII rosuIl in an Irror Mossago boing sonl lo llo losl
syslom (Rool CompIox).
- Training Irrors (oplionaI) causod by faiIuro in llo IinI lraining soquonco
al llo IlysicaI Iayor.
- Dala IinI IrolocoI Irrors causod by IinI Iayor prolocoI orrors incIuding
llo ACK/NAK rolry moclanism. - --
- -
- - - -- - -
- -
-
- Ioisonod TII Irrors causod by dala corruplion slorago orror villin
momory or dala buffors.
- IIov ConlroI IrolocoI Irrors (oplionaI) orrors associalod vill faiIuros of
llo fIov conlroI moclanism villin llo lransaclion Iayor.
- CompIolion Timo-oul Irrors causod by oxcossivo doIays in llo rolurn of
llo oxpoclod compIolion. Tlis orror is doloclod by llo Roquoslor.
- CompIolor Aborl Irrors (oplionaI) occurs vlon llo CompIolor cannol
fuIfiII llo lransaclion roquosl duo lo a varioly of possibIo probIoms vill llo
roquosl or faiIuro of llo compIolor dovico.
- Unoxpoclod CompIolion Irrors occurs vlon a roquoslor rocoivos a com-
pIolion lransaclion llal doos nol malcl an roquosl ponding compIolion.
- Rocoivor OvorfIov Irrors (oplionaI) causod by a fIov-conlroI buffor
ovorfIov condilion.
- -
Chapter 10: Error Detection and Handling
387
- MaIformod TIIs causod by procossing orrors associalod vill llo lrans-
aclion loador. Tlis orror is doloclod villin llo Transaclion Iayor of llo
dovico rocoiving llo TII.
- ICRC Irrors (oplionaI) causod by an Ind-lo-Ind CRC (ICRC) clocI
faiIuro villin llo lransaclion Iayor of llo rocoiving dovico.
- Unsupporlod Roquosl Irrors occurs vlon llo CompIolor doos nol sup-
porl llo roquosl. Tlo roquosl is corroclIy formod and las nol incurrod any
doloclod orror during lransporl, lovovor llo lransaclion cannol bo fuIfiIIod
by llo compIolor duo lo a varioly of roasons incIuding iIIogaI accoss and
invaIid command for llis dovico.
Tlo orrors nolod as oplionaI in llo Iisl abovo may nol bo impIomonlod in llo
Advancod UncorroclabIo rogislor sol.
Advanced UncorrectabIe Error Status
Wlon an uncorroclabIo orror occurs llo corrosponding bil villin llo Advancod
UncorroclabIo Irror Slalus rogislor is sol. (Soo Iiguro 10-18 on pago 387.) Tloso
bils aro aulomalicaIIy sol by lardvaro and aro cIoarod by soflvaro vlon vril-
ing a 1 lo llo bil posilion. Tloso bils aro sol vlollor or nol llo orror is
roporlod via an Irror Mossago. Iacl slalus bil in llis rogislor is dosignalod
RW1CS.
- -
PCI Express System Architecture
388
SeIecting the Severity of Each UncorrectabIe Error
Advancod orror landIing pormils soflvaro lo soIocl llo sovorily of oacl orror
villin llo Advancod UncorroclabIo Irror Sovorily rogislor. Tlis givos soflvaro
llo opporlunily lo lroal orrors according lo llo sovorily associalod vill a givon
appIicalion. Ior oxampIo, Ioisonod TII dala associalod vill audio dala boing
sonl lo a spoaIor, vliIo nol corroclabIo las no sorious sido offocls roIalivo lo llo
inlogrily of llo syslom. Hovovor, if roaI-limo slalus informalion is boing
rolriovod llal viII loIp maIo crilicaI docisions, any orrors in llis dala can bo
vory sorious. Iiguro 10-19 iIIuslralos llo Irror Sovorily rogislor. Tlo dofauIl vaI-
uos aro iIIuslralod in llo individuaI bil fioIds. Tloso roprosonl llo dofauIl sovor-
ily IovoIs for oacl lypo of orror (1 = IalaI, 0 = Non-IalaI).
Tloso uncorroclabIo orrors llal aro soIoclod lo bo non falaI viII rosuIl in a Non-
IalaI Irror Mossago boing doIivorod and lloso soIoclod as IalaI orrors viII rosuIl
in a IalaI Irror Mossago doIivorod. Hovovor, vlollor or nol an Irror Mossago
is gonoralod for a givon orror is spocifiod in llo Advancod UncorroclabIo MasI
rogislor.
UncorrectabIe Error Reporting
Soflvaro can masI oul spocific orrors so llal lloy novor causo an Irror Mossago
lo bo gonoralod. Tlo dofauIl condilion is lo gonoralo Irror Mossagos for oacl
lypo of orror (aII bils aro cIoarod). Iiguro 10-20 on pago 389 dopicls llo
Advancod UncorroclabIo Irror MasI rogislor.
-
Chapter 10: Error Detection and Handling
389
Error Logging
A four DWord porlion of llo Advancod Irror Rogislors bIocI is rosorvod for
sloring llo loador of llo lransaclion llal las incurrod a faiIuro. OnIy a soIocl
group of Transaclion Iayor orrors rosuIl in llo lransaclion loador boing Ioggod.
TabIo 10-6 Iisls llo lransaclions llal aro Ioggod.
Tlo formal of llo loador is prosorvod vlon caplurod and pIacod inlo llo rogis-
lor. Tlal is, llo iIIuslralion of loador formal in llis booI is oxaclIy lov llo
loadors viII appoar villin llo Irror Iogging rogislor. Nolo aIso llal llo con-
lonls of llis rogislor aro dosignalod ROS.
- -
- -
--
Ioisonod TII Rocoivod UncorroclabIo - Non IalaI
ICRC ClocI IaiIod UncorroclabIo - Non IalaI
Unsupporlod Roquosl UncorroclabIo - Non IalaI
CompIolion Aborl UncorroclabIo - Non IalaI
Unoxpoclod CompIolion UncorroclabIo - Non IalaI
MaIformod TII UncorroclabIo - IalaI
PCI Express System Architecture
390
Root CompIex Error Tracking and Reporting
Tlo Rool CompIox is llo largol of aII Irror Mossagos issuod by dovicos villin
llo ICI Ixpross fabric. Irrors rocoivod by llo Rool CompIox rosuIl in slalus rog-
islors boing updalod and llo orror boing condilionaIIy roporlod lo llo appropri-
alo soflvaro landIor or landIors.
Root CompIex Error Status Registers
Wlon llo Rool CompIox rocoivos an Irror Mossago, il sols slalus bils villin llo
Rool Irror Slalus rogislor (Iiguro 10-21 on pago 391). Tlis rogislor indicalos llo
lypos of orrors rocoivod and aIso indicalos vlon muIlipIo orrors of llo samo
lypo lavo boon rocoivod. Nolo llal an orror doloclod al llo rool porl is lroalod as
if llo porl sonl ilsoIf an Irror Mossago.
Tlo Advancod Rool Irror Slalus rogislor lracIs llo occurronco of orrors as foI-
Iovs:
-
- Sols llo Rocoivod CorroclabIo Irror bil upon rocoipl of llo firsl IRR_COR
Mossago, or doloclion of a rool porl corroclabIo orror.
- Sols llo MuIlipIo CorroclabIo Irror Mossago Rocoivod bil upon rocoipl of
an IRR_COR Mossago, or doloclion of a rool porl corroclabIo orror vlon
llo Rocoivod CorroclabIo Irror bil is aIroady sol.
U -
- Sols llo Rocoivod UncorroclabIo Irror bil upon rocoipl of llo firsl
IRR_IATAI or IRR_NONIATAI Irror Mossago, or doloclion of a rool porl
uncorroclabIo orror.
- Sol llo MuIlipIo UncorroclabIo Irror Mossago Rocoivod bil upon rocoipl
of an IRR_IATAI or IRR_NONIATAI Mossago, or doloclion of a rool porl
corroclabIo orror vlon llo Rocoivod UncorroclabIo Irror bil is aIroady
sol.
- -- -
If llo syslom vislos lo impIomonl soparalo soflvaro orror landIors for Corrocl-
abIo, Non-IalaI, and IalaI orrors. Tlo Rool Irror Slalus rogislor incIudos bils lo
difforonlialo CorroclabIo from UncorroclabIo Irrors bul noods addilionaI bils lo
aIso dolormino vlollor UncorroclabIo orrors aro falaI or non-falaI:
Chapter 10: Error Detection and Handling
391
- If llo firsl UncorroclabIo Irror Mossago rocoivod is IATAI llo Iirsl Uncor-
roclabIo IalaI bil is aIso sol aIong vill llo IalaI Irror Mossago Rocoivod
bil.
- If llo firsl UncorroclabIo Irror Mossago rocoivod is NONIATAI llo Non-
IalaI Irror Mossago Rocoivod bil is sol. (If a subsoquonl UncorroclabIo
Irror is IalaI, llo IalaI Irror Mossago Rocoivod bil viII bo sol, bul
bocauso llo Iirsl UncorroclabIo IalaI romains cIoarod, soflvaro Inovs
llal llo firsl UncorroclabIo Irror rocoivod vas Non-IalaI.)
Advanced Source ID Register
Soflvaro orror landIors may nood lo road and cIoar orror slalus rogislors villin
llo dovico llal doloclod and roporlod llo orror. Tlo Irror Mossagos conlain llo
ID of llo dovico roporling llo orror. Tlo Sourco ID rogislor capluros llo Irror
Mossago ID associalod vill llo firsl IalaI and firsl Non-IalaI Irror mossago
rocoivod by llo Rool CompIox. Tlo formal of llis rogislor is slovn in Iiguro 10-
22 on pago 391.
- -
-
PCI Express System Architecture
392
Root Error Command Register
Tlo Rool Irror Slalus rogislor sols slalus bils llal dolorminos vlollor a Corrocl-
abIo, IalaI, or Non-IalaI orror las occurrod. In conjunclion vill lloso slalus bils
llo Rool CompIox can aIso gonoralo soparalo inlorrupls llal caII landIors for
oacl of llo orror calogorios. Tlo Rool Irror Command rogislor onabIos inlorrupl
gonoralion for aII llroo calogorios as piclurod in Iiguro 10-23 on pago 392.
Reporting Errors to the Host System
Soflvaro orror landIors viII iniliaIIy road Rool CompIox slalus rogislors lo
dolormino llo naluro of llo orror, and may aIso nood lo road dovico-spocific
orror rogislors of llo dovico llal roporlod llo orror.
Summary of Error Logging and Reporting
Tlo aclions laIon by a funclion vlon an orror is doloclod is govornod by llo
lypo of orror and llo sollings of llo orror-roIalod configuralion rogislors. Tlo
spocificalion incIudos llo fIov clarl in Iiguro 10-24 on pago 393 llal spocifios
llo aclions laIon by a dovico upon dolocling an orror. Tlis fIov clarl prosumos
llal ICI Ixpross compalibIo soflvaro is boing usod and doos nol covor llo caso
of orror landIing vlon onIy Iogacy ICI soflvaro is usod.
-
Chapter 10: Error Detection and Handling
393
Iarl Tlroo
Tlo IlysicaI Iayor
397
-
PAD characters are transmitted to maintain packet framing alignment
Lane
0
Lane
1
Lane
2
Lane
3
Lane
4
Lane
5
Lane
7
STP SequenceSequence
LCRC LCRC LCRC LCRC
END
TLP
COM
SKP
SKP
SKP
COM COM COM COM COM COM COM
SKP
SKP
SKP
SKP
SKP
SKP
SKP
SKP
SKP
SKP
SKP
SKP
SKP
SKP
SKP
SKP
SKP
SKP
SKP
SKP
SKP
STP SequenceSequence
LCRC
LCRC LCRC LCRC PAD PAD PAD PAD END
TLP
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
SDP
END
DLLP
PCI Express System Architecture
416
ScrambIer
Aflor bylo slriping, llo oulbound pacIols aro lransmillod across llo Ianos. As
slovn in Iiguro 11-4 on pago 406, oacl Iano in llo IlysicaI Iayor dosign incor-
poralos a ScrambIor.
Purpose of ScrambIing Outbound Transmission
Tlo ScrambIor oIiminalos gonoralion of ropolilivo pallorns on a lransmillod dala
slroam. As an oxampIo, vlon scrambIod, a slroam of 0s viII rosuIl in a psoudo-
random bil pallorn.
Ropolilivo pallorns rosuIl in Iargo amounl of onorgy conconlralod in discrolo fro-
quoncios vlicl rosuIls in significanl IMI noiso gonoralod. By scrambIing llo
lransmillod dala, ropolilivo pallornssucl as 10101010aro oIiminalod. As a
rosuIl, no singIo froquoncy compononl of llo signaI is lransmillod for significanl
poriods of limo. Tlus llo radialod IMI onorgy of a lransmission is sproad ovor a
rango in llo froquoncy spoclrum. Tlis loclniquo roforrod lo as sproad spoc-
lrum offoclivoIy vlilons llo froquoncy conlonl of a signaI and roducos llo
radialod povor al any parlicuIar froquoncy.
On a baro syslomboard vill llo viros of llo IinI un-slioIdod and ligl fro-
quoncy lransmission of 2.5 Gbils/s, IMI noiso gonoralion is significanl. Scram-
bIing maIos llo radialod povor from llo IinI offoclivoIy IooI IiIo vlilo noiso.
Tlis loIps mool ICC roquiromonls.
AIso, on a muIli-Iano IinI vill viros roulod in cIoso proximily, a scrambIod
lransmission on ono Iano gonoralos vlilo noiso vlicl doos nol inlorforo or cor-
roIalo vill anollor Ianos dala lransmission. Tlis spaliaI froquoncy do-corroIa-
lion or roduclion of crosslaII noiso assisls llo rocoivor on oacl Iano lo
dislinguisl llo dosirod signaI from llo bacIground vlilo noiso.
ScrambIer AIgorithm
Tlo ScrambIor in Iiguro 11-13 on pago 418 is impIomonlod vill a 16-bil Iinoar
IoodbacI Slifl Rogislors (IISR) llal impIomonls llo poIynomiaI:
G(x) = X
16
+ X
5
+ X
4
+ X
3
+1
Tlo IISR is cIocIod al llo bil lransfor ralo. Tlo IISR oulpul is soriaIIy cIocIod
inlo an 8-bil rogislor llal is XORod vill llo 8-bil claraclors lo form llo scram-
bIod dala.
Chapter 11: Physical Layer Logic
417
Tlo IISR bil ralo cIocI is 8 limos llo froquoncy (2GHz) of
llo bylo cIocI (250MHz) llal foods llo ScrambIor oulpul.
Some ScrambIer impIementation ruIes:
- On a muIli-Iano IinI impIomonlalion, ScrambIors associalod vill oacl
Iano musl oporalo in concorl, mainlaining llo samo simuIlanoous vaIuo in
oacl IISR.
- ScrambIing is appIiod lo D claraclors associalod vill TII and DIIIs,
incIuding llo IogicaI IdIo (00l) soquonco. D claraclors villin llo TS1 and
TS2 Ordorod-Sol aro nol scrambIod.
- K claraclors and claraclors villin Ordorod-Solssucl as TS1, TS2, SKII,
ITS and IIoclricaI IdIo Ordorod-Solsaro nol scrambIod. Tloso claraclors
bypass llo scrambIor Iogic.
- CompIianco Iallorn roIalod claraclors aro nol scrambIod.
- Wlon a COM claraclor oxils llo ScrambIor, (COM doos nol gol scrambIod)
il iniliaIizos llo IISR. Tlo iniliaIizod vaIuo of llo 16-bil IISR is IIIIl. Sim-
iIarIy on llo rocoivor sido, vlon a COM claraclor onlors llo Do-ScrambIor,
il is iniliaIizod.
- Will ono oxcoplion, llo IISR soriaIIy advancos oigll limos for ovory clar-
aclor (D or K claraclor) lransmission. Tlo IISR doos NOT advanco on SKI
claraclors associalod vill llo SKII Ordorod-Sol. Tlo roason llo IISR is nol
advancod for SKIs is bocauso a rocoivor of inbound pacIols may add or
doIolo SKI symboIs lo porform cIocI loIoranco componsalion. Clanging llo
numbor of claraclors in llo rocoivor from llo numbor of claraclors lrans-
millod viII causo llo vaIuo in llo rocoivor IISR lo Ioso synclronizalion
vill llo lransmillor IISR vaIuo. Ior a dolaiIod doscriplion, rofor lo Insorl-
ing CIocI Componsalion Zonos on pago 436 and Rocoivor CIocI Compon-
salion Iogic on pago 442.
- By dofauIl, ScrambIing is aIvays onabIod. AIllougl llo spocificalion doos
aIIov llo ScrambIor lo bo disabIod for losl and dobug purposos, il doos nol
provido a slandard soflvaro or configuralion rogislor-roIalod mollod lo
disabIo llo ScrambIor.
PCI Express System Architecture
418
DisabIing ScrambIing
- - - - -
- - - -
- - -
- - - - - -
- - -
- - - -
- -- -
- - - - -
- -
-- - - - -
- - - - -
X
0
X
1
X
2
X
3
X
4
X
12
X
13
X
14
X
15
k+7 k+6 k+5 k+4 k+3 k+2 k+1 k
k+7 k+6 k+5 k+4 k+3 k+2 k+1 k
Byte Clock
Scrambler Output Scr[k+7:k]
Operates at Bit Rate
(2 GHz)
Operates at Byte Rate
(250 MHz)
XOR XOR XOR XOR XOR XOR XOR XOR
H G F E D C B A
H G F E D C B A
XOR
[H,G,F,E,D,C,B,A] =
[H,G,F,E,D,C,B,A] XOR [Scr(k+7:k)]
X
5
XOR XOR
Chapter 11: Physical Layer Logic
419
8b/10b Encoding
GeneraI
Iacl Iano of a dovicos lransmillor impIomonls an 8-bil lo 10-bil Incodor llal
oncodos 8-bil dala or conlroI claraclors inlo 10-bil symboIs. Tlo coding sclomo
vas invonlod by IBM in 1982 and is documonlod in llo ANSI X3.230-1994 docu-
monl, cIauso 11 (and aIso IIII 802.3z, 36.2.4) and US Ialonl Numbor 4,486,739
onlilIod Bylo Orionlod DC BaIancod 8b/10b Iarlilionod BIocI Transmission
Codo. 8b/10b coding is nov vidoIy usod in arclilocluros sucl as Gigabil
Illornol, Iibro ClannoI, SorvorNol, IICON, IIII1394b, InfiniBand, olc.
Purpose of Encoding a Character Stream
Tlo primary purposo of llis sclomo is lo ombod a cIocI inlo llo soriaI bil
slroam lransmillod on aII Ianos. No cIocI is lloroforo lransmillod aIong vill
llo soriaI dala bil slroam. Tlis oIiminalos llo nood for a ligl froquoncy 2.5GHz
cIocI signaI on llo IinI vlicl vouId gonoralo significanl IMI noiso and vouId
bo a claIIongo lo roulo on a slandard IR4 board. IinI viro rouling bolvoon lvo
porls is mucl oasior givon llal lloro is no cIocI lo roulo, romoving llo nood lo
malcl cIocI Iongll lo Iano signaI lraco Ionglls. Tvo dovicos aro connoclod by
simpIy viring lloir Ianos logollor.
BoIov is a summary of llo - of 8b/10b oncoding sclomo:
- Croalos sufficionl 0-lo-1 and 1-lo-0 lransilion donsily
(i.o., signaI clangos) lo faciIilalo ro-croalion of llo rocoivo cIocI on llo
rocoivor ond using a III (by guaranlooing a Iimilod run Iongll of consocu-
livo onos or zoros). Tlo rocovorod rocoivo cIocI is usod lo cIocI inbound 10-
bil symboIs inlo an oIaslic buffor. Iiguro 11-14 on pago 420 iIIuslralos llo
oxampIo caso vloroin 00l is convorlod lo 1101000110b, vloro an 8-bil clar-
aclor vill no lransilions las 5 lransilions vlon convorlod lo a 10b symboI.
Tloso lransilions Ioop llo rocoivor III synclronizod lo llo lransmil circuil
cIocI:
Iimilod run Iongll moans llal llo oncoding sclomo onsuros llo signaI
Iino viII nol romain in a ligl or Iov slalo for an oxlondod poriod of
limo. Tlo run Iongll doos nol oxcood fivo consoculivo 1s or 0s.
1s and 0s aro cIocIod oul on llo rising-odgo of llo lransmil cIocI. Al llo
rocoivor, a III can rocroalo llo cIocI by syncing lo llo Ioading odgos of
1s and 0s.
Iimilod run Iongll onsuros minimum froquoncy drifl in llo rocoivors
III roIalivo lo llo IocaI cIocI in llo lransmil circuil.
PCI Express System Architecture
420
- Koops llo numbor of 1s and 0s lransmillod as cIoso lo oquaI as
possibIo, llus mainlaining DC baIanco on llo lransmillod bil slroam lo an
avorago of laIf llo signaI llrosloId voIlago. Tlis is vory imporlanl in capac-
ilivo- and lransformor-coupIod circuils.
Mainlains a baIanco bolvoon llo numbor of 1s and 0s on llo signaI Iino,
lloroby onsuring llal llo rocoivod signaI is froo of any DC compononl.
Tlis roducos llo possibiIily of inlor-bil inlorforonco. Inlor-bil inlorfor-
onco rosuIls from llo inabiIily of a signaI lo svilcl proporIy from ono
Iogic IovoI lo llo ollor bocauso llo Iano coupIing capacilor or inlrinsic
viro capacilanco is ovor-clargod.
- - Iormils llo oncoding of spociaI
conlroI (K) claraclors sucl as llo Slarl and Ind framing claraclors al llo
slarl and ond of TIIs and DIIIs.
- A socondary bonofil of llo oncoding sclomo is llal il faciI-
ilalos llo doloclion of mosl lransmission orrors. A rocoivor can clocI for
running disparily orrors, or llo rocoplion of invaIid symboIs. Via llo run-
ning disparily moclanism (soo Disparily on pago 423), llo dala bil slroam
lransmillod mainlains a baIanco of 1s and 0s. Tlo rocoivor clocIs llo diffor-
onco bolvoon llo lolaI numbor of 1s and 0s lransmillod sinco IinI iniliaIiza-
lion and onsuros llal il is as cIoso lo zoro as possibIo. If il isnl, a disparily
orror is doloclod and roporlod, impIying llal a lransmission orror occurrod.
Tlo - of 8b/10b oncoding sclomo is llal, duo lo llo oxpansion of
oacl 8-bil claraclor inlo a 10-bil symboI prior lo lransmission, llo acluaI lrans-
mission porformanco is dogradod by 2 or said anollor vay, llo lransmission
ovorload is incroasod by 25 (ovorylling good las a prico lag).
0
1 1 0 1 0 0 0 1 1 0
8b Value
00h
10b Encoded
Value
Chapter 11: Physical Layer Logic
421
Properties of 10-bit (10b) SymboIs
- Ior 10-bil symboI lransmissions, llo avorago numbor of 1s lransmillod ovor
limo is oquaI lo llo numbor of 0s lransmillod, no mallor vlal llo 8-bil clar-
aclor lo bo lransmillod is, i.o., llo symboI lransmission is DC baIancod.
- Tlo bil slroam novor conlains moro llan fivo conlinuous 1s or 0s (Iimilod-
run Iongll).
- Iacl 10-bil symboI conlains:
Iour 0s and six 1s (nol nocossariIy conliguous), or
Six 0s and four 1s (nol nocossariIy conliguous), or
Iivo 0s and fivo 1s (nol nocossariIy conliguous).
- Iacl 10-bil symboI is subdividod inlo lvo sub-bIocIs: llo firsl is six bils
vido and llo socond is four bils vido.
Tlo 6-bil sub-bIocI conlains no moro llan four 1s or four 0s.
Tlo 4-bil sub-bIocI conlains no moro llan llroo 1s or llroo 0s.
- Any symboI vill ollor llan llo abovo proporlios is considorod invaIid and
a rocoivor considor llis an orror.
- An 8-bil claraclor is submillod lo llo 8b/10b oncodor aIong vill a signaI
indicaling vlollor llo claraclor is a Dala (D) or ConlroI (K) claraclor. Tlo
oncodor oulpuls llo oquivaIonl 10-bil symboI aIong vill a curronl running
disparily (CRD) llal roprosonls llo sum of 1s and 0s for llis lransmission
IinI sinco IinI iniliaIizalion. Soo Disparily on pago 423 for moro informa-
lion.
- Tlo ICI Ixpross spocificalion dofinos ConlroI claraclors llal oncodo inlo
llo foIIoving ConlroI symboIs: STI, SDI, IND, IDB, COM, IAD, SKI, ITS,
and IDI (soo ConlroI Claraclor Incoding on pago 430).
PCI Express System Architecture
422
Preparing 8-bit Character Notation
8b/10b convorsion IooIup labIos rofor lo aII 8-bil claraclors using a spociaI
nolalion (roprosonlod by Dxx.y for Dala claraclors and Kxx.y. for ConlroI clar-
aclors). Iiguro 11-15 on pago 422 iIIuslralos llo nolalion oquivaIonl for any 8-bil
D or K claraclor. BoIov aro llo slops lo covorl llo 8-bil numbor lo ils nolalion
oquivaIonl.
In Iiguro 11-15 on pago 422, llo oxampIo claraclor is llo Dala claraclor, 6Al.
1. Tlo bils in llo claraclor aro idonlifiod by llo capilaIizod aIpla dosignalors
A llrougl H.
2. Tlo claraclor is parlilionod inlo lvo sub-bIocIs: ono 3-bils vido and llo
ollor 5-bils vido.
3. Tlo lvo sub-bIocIs aro fIippod.
4. Tlo claraclor laIos llo vrillon form Zxx.y, vloro:
5. Z = D or K for Dala or ConlroI,
6. xx = llo docimaI vaIuo of llo 5-bil fioId,
7. y = llo docimaI vaIuo of llo 3-bil fioId.
8. Tlo oxampIo claraclor is roprosonlod as D10.3 in llo 8b/10b IooIup labIos.
8b Character
8b Designation
Partition into sub-blocks
Flip sub-blocks
Add decimal values of
each sub-block
Final Notation
D/K xx . y
D/Kxx.y
Example Data (6Ah)
D 01101010
D 011 01010
D 10 . 3
D10.3
D 01010 011
H G F E D C B A
H G F E D C B A
7 6 5 4 3 2 1 0
D/
K#
D/
K#
D/
K#
Chapter 11: Physical Layer Logic
423
Disparity
Claraclor disparily rofors lo llo difforonco bolvoon llo num-
bor of 1s and 0s in a 10-bil symboI:
- Wlon a symboI las moro 0s llan 1s, llo symboI las nogalivo () dispar-
ily (o.g., 0101000101b).
- Wlon a symboI las moro 1s llan 0s, llo symboI las posilivo (+) dispar-
ily (o.g., 1001101110b).
- Wlon a symboI las an oquaI numbor of 1s and 0s, llo symboI las nou-
lraI disparily (o.g., 0110100101b).
- Iacl 10-bil symboI conlains ono of llo foIIoving numbors of onos and
zoros (nol nocossariIy conliguous):
- Iour 0s and six 1s (+ disparily).
- Six 0s and four 1s ( disparily).
- Iivo 0s and fivo 1s (noulraI disparily).
- - Tloro aro lvo calogorios of 8-bil
claraclors:
- Tloso llal oncodo inlo 10-bil symboIs vill + or disparily.
- Tloso llal oncodo inlo 10-bil symboIs vill noulraI disparily.
- Tlo CRD rofIocls llo lolaI numbor
of 1s and 0s lransmillod ovor llo IinI sinco IinI iniliaIizalion and las llo
foIIoving claraclorislics:
- Ils curronl slalo indicalos llo baIanco of 1s and 0s lransmillod sinco IinI
iniliaIizalion.
- Tlo CRDs iniliaI slalo (boforo any claraclors aro lransmillod) can bo +
or .
- Tlo CRDs curronl slalo can bo oillor posilivo (if moro 1s llan 0s lavo
boon lransmillod) or nogalivo (if moro 0s llan 1s).
- Iacl claraclor is convorlod via a labIo IooIup vill llo curronl slalo of
llo CRD faclorod in.
- As oacl nov claraclor is oncodod, llo CRD oillor romains llo samo (if
llo novIy gonoralod 10-bil claraclor las noulraI disparily) or il fIips lo
llo opposilo poIarily (if llo novIy gonoralod claraclor las + or dis-
parily).
PCI Express System Architecture
424
8b/10b Encoding Procedure
Rofor lo Iiguro 11-16 on pago 425. Tlo oncodo is accompIislod by porforming
lvo labIo IooIups in paraIIoI (nol slovn soparaloIy in llo iIIuslralion):
- Iirsl TabIo IooIup: Tlroo oIomonls aro submillod lo a 5-bil lo 6-bil labIo for
a IooIup (soo TabIo 11-1 on pago 427 and TabIo 11-2 on pago 429):
Tlo 5-bil porlion of llo 8-bil claraclor (bils A llrougl I).
Tlo Dala/ConlroI (D/K#) indicalor.
Tlo curronl slalo of llo CRD (posilivo or nogalivo).
Tlo labIo IooIup yioIds llo uppor 6-bils of llo 10-bil symboI (bils
).
- Socond TabIo IooIup: Tlroo oIomonls aro submillod lo a 3-bil lo 4-bil labIo
for a IooIup (soo TabIo 11-3 on pago 429 and TabIo 11-4 on pago 430):
Tlo 3-bil porlion of llo 8-bil claraclor (bils I llrougl H).
Tlo samo Dala/ConlroI (D/K#) indicalor.
Tlo curronl slalo of llo CRD (posilivo or nogalivo).
Tlo labIo IooIup yioIds llo Iovor 4-bils of llo 10-bil symboI (bils ).
Tlo 8b/10b oncodor compulos a nov CRD basod on llo rosuIlanl 10-bil symboI
and suppIios llis CRD for llo 8b/10b oncodo of llo noxl claraclor. If llo rosuIl-
anl 10-bil symboI is noulraI (i.o., il las an oquaI numbor of 1s and 0s), llo poIar-
ily of llo CRD romains unclangod. If llo rosuIlanl 10-bil symboI is + or , llo
CRD fIips lo ils opposilo slalo. Il is an orror if llo CRD is curronlIy + or and llo
noxl 10-bil symboI producod las llo samo poIarily as llo CRD (unIoss llo noxl
symboI las noulraI disparily, in vlicl caso llo CRD romains llo samo).
Tlo 8b/10b oncodor foods a IaraIIoI-lo-SoriaI convorlor vlicl cIocIs 10-bil
symboIs oul in llo bil ordor abcdoifglj (slovn in Iiguro 11-16 on pago 425).
- Iiguro 11-17 on pago 426 iIIuslralos somo oxampIo
8-bil lo 10-bil oncodings. Tlo foIIoving is an oxpIanalion of llo convorsion
of llo 8-bil Dala claraclor 6Al:
- Tlo 8-bil claraclor is broIon dovn inlo ils lvo sub-bIocIs: 011b and
01010b.
- Tlo lvo sub-bIocIs aro fIippod and roprosonlod as llo D10.3 claraclor.
Tlo binary-voigllod vaIuo of llo 5-bil bIocI is 10d and llo vaIuo of llo
3-bil fioId is 3d.
- Tlo lvo bIocIs aro submillod lo llo dala claraclor IooIup labIos
(TabIo 11-1 on pago 427 and TabIo 11-3 on pago 429 aro for D IooIups)
aIong vill llo curronl slalo of llo CRD).
Chapter 11: Physical Layer Logic
425
- Tlo Iasl lvo coIumns slov llo 10-bil symboI producod by llo lvo par-
aIIoI labIo IooIups (TabIo 11-1 on pago 427 and TabIo 11-3 on pago 429)
vlon llo CRD is nogalivo or posilivo.
--- Iiguro 11-18 on pago 427 iIIuslralos llo oncodo
and lransmission of llroo claraclors: llo firsl ono is llo conlroI claraclor
BCl (K28.5), llo socond claraclor is aIso BCl (K28.5) and llo llird clarac-
lor is llo dala claraclor 6Al (D10.3):
- If llo iniliaI CRD is nogalivo al llo limo of llo oncodo, llo K28.5 is
oncodod inlo 001111 1010b (posilivo disparily), fIipping llo CRD from
nogalivo lo posilivo.
- If llo CRD is posilivo al llo limo of llo oncodo, llo K28.5 is oncodod
inlo 110000 0101b (nogalivo disparily), fIipping llo CRD from posilivo
lo nogalivo.
PCI Express System Architecture
426
- Tlo D10.3 is oncodod inlo 010101 1100b (noulraI disparily). Tlo CRD
lloroforo romains unclangod (nogalivo) for llo noxl oncoding (nol
slovn).
- Nolico llal llo rosuIlanl symboI slroam is DC baIancod.
-
000101 0111 111010 1000 K23.7 111 10111 F7 Control (K)
110000 0101 001111 1010 K28.5 101 11100 BC Control (K)
000101 1110 111010 0001 D23.7 111 10111 F7 Data (D)
Data (D)
Data (D)
D or K
Character
001001 1011 110110 0100 D27.0 000 11011 1B
010101 0011 010101 1100 D10.3 011 01010 6A
CRD +
abcdei fghj
CRD
abcdei fghj
Byte
Name
Binary Bits
HGF EDCBA
Hex
Byte
000101 0111 111010 1000 K23.7 111 10111 F7 Control (K)
110000 0101 001111 1010 K28.5 101 11100 BC Control (K)
000101 1110 111010 0001 D23.7 111 10111 F7 Data (D)
Data (D)
Data (D)
D or K
Character
001001 1011 110110 0100 D27.0 000 11011 1B
010101 0011 010101 1100 D10.3 011 01010 6A
CRD +
abcdei fghj
CRD
abcdei fghj
Byte
Name
Binary Bits
HGF EDCBA
Hex
Byte
If character encode yields neutral disparity, then CRD remains unchanged, else it flips
This is 8-bit character
Encode to this if CRD is negative
Encode to this if CRD is positive
Chapter 11: Physical Layer Logic
427
The Lookup TabIes
Tlo foIIoving four labIos dofino llo labIo IooIup for llo lvo sub-bIocIs of 8-bil
Dala and ConlroI claraclors.
---
-
-
-
COM K28.5 (BCl) 001111 1010 110000 0101 Iirsl claraclor in any
Ordorod-Sol. Doloclod by
rocoivor and usod lo
acliovo symboI IocI dur-
ing TS1/TS2 Ordorod-Sol
rocoplion al rocoivor
IAD K23.7 (I7l) 111010 1000 000101 0111 IacIol Iadding claraclor
SKI K28.0 (1Cl) 001111 0100 110000 1011 Usod in SKII Ordorod-
Sol. Tlis Ordorod-Sol is
usod for CIocI ToIoranco
Componsalion
STI K27.7 (IBl) 110110 1000 001001 0111 Slarl of TII claraclor
SDI K28.2 (5Cl) 001111 0101 110000 1010 Slarl of DIII claraclor
IND K29.7 (IDl) 101110 1000 010001 0111 Ind of Good IacIol
claraclor
IDB K30.7 (IIl) 011110 1000 100001 0111 Claraclor usod lo marI
llo ond of a nuIIifiod
TII.
Chapter 11: Physical Layer Logic
433
Ordered-Sets
Ordorod-Sols aro IlysicaI Iayor IacIols (IIIs) consisling of a
sorios of claraclors slarling vill llo COM claraclor and consisling a lolaI
of four claraclors. Wlon lransmillod, lloy aro lransmillod on aII Ianos.
Ordorod-Sols aro usod for spociaI funclions sucl as:
- IinI Training. Soo IinI Training and IniliaIizalion on pago 403 for a
dolaiIod doscriplion.
- CIocI ToIoranco Componsalion. Soo Insorling CIocI Componsalion
Zonos on pago 436 and Rocoivor CIocI Componsalion Iogic on
pago 442.
- IIacing llo IinI inlo llo Iov povor I0s slalo (aIso roforrod lo as llo
IIoclricaI IdIo IinI slalo).
- Clanging llo IinI slalo from llo Iov povor I0s slalo (aIso roforrod lo
as IIoclricaI IdIo slalo) lo llo fuII-on I0 slalo.
Tlo ICI Ixpross spocificalion dofinos fivo Ordorod-Sols:
- Training Soquonco 1 (TS1),
- Training Soquonco 2 (TS2),
- SKII,
- Iasl Training Soquonco (ITS)
- and IIoclricaI IDII Ordorod-Sols.
A briof doscriplion of oacl Ordorod-Sol foIIovs.
ITS K28.1 (3Cl) 001111 1001 110000 0110 Usod in ITS Ordorod-Sol.
Tlis Ordorod-Sol usod lo
oxil from I0s Iov povor
slalo lo I0
IDI K28.3 (7Cl) 001111 0011 110000 1100 Usod in IIoclricaI IdIo
Ordorod-Sol. Tlis
Ordorod-Sol usod lo
pIaco IinI in IIoclricaI
IdIo slalo
-
PCI Express System Architecture
434
- Tloso lvo Ordorod-Sols aro usod during
IinI lraining. Tloy aro lransmillod by a porls lransmillor lo llo ollor
porls rocoivor, vloro lloy aro usod lo acliovo bil and symboI IocI. Tloy aro
aIso usod by llo porls al opposilo onds of a IinI lo numbor lloir IinIs and
Ianos. Tloso Ordorod-Sols aro usod during IinI spood and vidll nogolia-
lion.
In a muIli-Iano impIomonlalion, llo SKII Ordorod-Sol
is poriodicaIIy lransmillod on aII Ianos lo aIIov llo rocoivor cIocI loIoranco
componsalion Iogic lo componsalo for cIocI froquoncy varialions bolvoon
llo cIocI usod by llo lransmilling dovico lo cIocI oul llo soriaI bil slroam
and llo rocoivor dovicos IocaI cIocI. Tlo rocoivor adds a SKI symboI lo a
SKII Ordorod-Sol in llo rocoivor oIaslic buffor lo provonl a polonliaI buffor
undorfIov condilion from occurring duo lo llo lransmillor cIocI boing
sIovor llan llo IocaI rocoivor cIocI. AIlornaloIy, llo rocoivor doIolos a SKI
symboI from llo SKII Ordorod-Sol in llo rocoivor oIaslic buffor lo provonl a
polonliaI buffor ovorfIov condilion from occurring duo lo llo lransmillor
cIocI boing faslor llan llo IocaI rocoivor cIocI. Ior a dolaiIod doscriplion,
rofor lo Insorling CIocI Componsalion Zonos on pago 436 and Rocoivor
CIocI Componsalion Iogic on pago 442.
A lransmillor dovico llal vislos lo pIaco
llo IinI in llo IIoclricaI IdIo slalo (aIa llo I0s Iov povor slalo) lransmils
llis Ordorod-Sol lo a rocoivor. Upon rocoipl, llo difforonliaI rocoivors pro-
paro for llis Iov povor slalo during vlicl llo lransmillor drivor can bo in
llo Iov- or ligl-impodanco slalo and pacIol lransmission slops. Tlo diffor-
onliaI rocoivor romains in llo Iov-impodanco slalo vliIo in llis slalo.
ITS Ordorod-Sols aro lransmillod by a dovico lo lransi-
lion a IinI from llo Iov povor I0s slalo bacI lo llo fuII-on I0 slalo. Tlo
rocoivor dolocls llo ITS Ordorod-Sol and usos il lo acliovo bil and symboI
IocI as voII as lo ro-synclronizo ils rocoivor III lo llo lransmillor cIocI
usod lo lransmil llo soriaI bil slroam. Soo llo IinI Training and Iovor
Managomonl claplors for moro dolaiIs on ITS Ordorod-Sol usago.
ParaIIeI-to-SeriaI Converter (SeriaIizer)
Tlo 8b/10b Incodor on oacl Iano foods llo IaraIIoI-lo-SoriaI convorlor associ-
alod vill llal Iano. Tlo IaraIIoI-lo-SoriaI convorlor cIocIs 10-bil symboIs oul in
llo bil ordor abcdoifglj, vill llo Ioasl significanl bil (a) sliflod oul firsl and
llo mosl significanl bil (j) sliflod oul Iasl (as slovn in Iiguro 11-16 on pago
425). Tlo symboIs suppIiod by llo 8b/10b Incodor aro cIocIod inlo llo con-
Chapter 11: Physical Layer Logic
435
vorlor al 250MHz. Tlo soriaI bil slroam is cIocIod oul of llo IaraIIoI-lo-SoriaI
convorlor al 2.5GHz.
DifferentiaI Transmit Driver
Tlo difforonliaI drivor llal acluaIIy drivos llo soriaIizod bil slroam onlo llo
viro (or fibor) usos NRZ oncoding and drivos llo soriaI bil slroam al llo
2.5Gbil/s lransfor ralo. Tlo difforonliaI drivor oulpul por Iano consisls of lvo
signaIs (D+ and D-). A IogicaI ono is signaIod by driving llo D+ signaI ligl and
llo D- signaI Iov, llus croaling a posilivo voIlago difforonco bolvoon llo D+
and D- signaIs. A IogicaI zoro is signaIod by driving llo D+ signaI Iov and llo
D- signaI ligl, llus croaling a nogalivo voIlago difforonco bolvoon llo D+ and
D- signaIs.
DifforonliaI poaI-lo-poaI voIlago drivon by llo lransmillor is bolvoon 800mV
(min.) and 1200mV (max).
- IogicaI 1 is signaIIod vill a posilivo difforonliaI voIlago.
- IogicaI 0 is signaIIod vill a nogalivo difforonliaI voIlago.
During llo IinIs oIoclricaI IdIo slalo, llo lransmillor drivos a difforonliaI poaI
voIlago bolvoon 0mV and 20mV (llo lransmillor may bo in llo Iov- or ligl-
impodanco slalo).
DolaiIs rogarding llo oIoclricaI claraclorislics of llo drivor aro discussod in
Transmillor Drivor Claraclorislics on pago 477
Transmit (Tx) CIock
Tlo soriaI oulpul of llo IaraIIoI-lo-SoriaI convorlor on oacl Iano is cIocIod oul
lo llo difforonliaI drivor by llo Tx CIocI signaI (soo Iiguro 11-16 on pago 425).
Tx cIocI froquoncy is 2.5GHz and il musl bo accuralo lo +/300ppm from a con-
lor froquoncy of 2.5GHz (or 600ppm lolaI). Tlo cIocI can sIov by ono cIocI
ovory 1666 cIocI cycIos. Nolo llal llis Tx CIocI is difforonl from llo IocaI cIocI
of llo IlysicaI Iayor vlicl is a mucl sIovor cIocI. Tlo IlysicaI Iayor rocoivos
a cIocI from an oxlornaI sourco. ICI Ixpross dovicos on poriploraI cards as voII
as syslom boards may uso a 100MHz cIocI suppIiod by llo syslom board. Tlis
cIocI is muIlipIiod by a faclor vill llo aid of a III inlornaI lo llo IlysicaI
Iayor. Tlo rosuIlanl IocaI cIocI, vlicl runs al a mucl sIovor froquoncy llan
2.5GHz, cIocIs IlysicaI Iayor Iogic sucl as llo Bylo Slriping Iogic, llo Scram-
bIor, llo 8b/10b Incodor, llo buffors, olc. Tlo III aIso producos llo 2.5GHz Tx
cIocI usod lo food llo IaraIIoI-lo-SoriaI convorlors.
PCI Express System Architecture
436
Other MisceIIaneous Transmit Logic Topics
LogicaI IdIe Sequence
In ordor lo Ioop llo rocoivors III syncd up (i.o., lo Ioop il from drifling),
somolling musl bo lransmillod during poriods vlon lloro aro no TIIs, DIIIs
or IIIs lo lransmil. Tlo IogicaI IdIo soquonco is lransmillod during lloso limos.
Tlo IdIo soquonco is galod lo llo Mux as doscribod in llo soclion MuIlipIoxor
(Mux) and Mux ConlroI Iogic on pago 404. Somo proporlios of llo IogicaI IdIo
soquonco aro:
- Tlo IogicaI IdIo soquonco consisls of llo 8-bil Dala claraclor vill a vaIuo of
00l.
- Wlon lransmillod, il is simuIlanoousIy lransmillod on aII Ianos. Tlo IinI is
said lo bo in llo IogicaI IdIo slalo (nol lo bo confusod vill oIoclricaI IdIo
llo slalo vlon llo IinI is nol drivon and lloro aro no pacIol lransmissions
and llo rocoivor III Iosos synclronizalion).
- Tlo IogicaI IdIo soquonco is scrambIod. Tlis impIios llal, on llo IinI, llo
IogicaI IdIo soquonco las a psoudo-random vaIuo. A rocoivor can dislin-
guisl llo IogicaI IdIo soquonco from ollor pacIol lransmissions bocauso il
occurs oulsido llo pacIol framing conloxl (i.o., llo IogicaI IdIo soquonco
occurs aflor an IND or IDB ConlroI symboI, bul boforo an STI or SDI Con-
lroI symboI).
- Tlo IogicaI IdIo Soquonco is 8b/10b oncodod.
- During IogicaI IdIo soquonco lransmission, SKII Ordorod-Sols aro aIso
lransmillod poriodicaIIy.
Inserting CIock Compensation Zones
Wlon llo rocoivor Iogic rocoivos a symboI slroam, il somo-
limos noods lo add or romovo a symboI from llo rocoivod symboI slroam lo
componsalo for lransmillor vorsos rocoivor cIocI froquoncy varialions (for
bacIground, rofor lo Rocoivor CIocI Componsalion Iogic on pago 442).
Il slouId bo obvious llal llo rocoivor Iogic canl arbilrariIy picI a symboI lo
add or doIolo. Tlis moans llal, on a poriodic basis, llo lransmil Iogic musl
lransmil a spociaI ConlroI claraclor soquonco llal can bo usod for llis pur-
poso. Tlis soquonco is roforrod lo as llo SKII Ordorod-Sol (soo Iiguro 11-19)
vlicl consisls of a COM claraclor foIIovod by llroo SKI claraclors.
Chapter 11: Physical Layer Logic
437
- - A lransmillor is roquirod lo lrans-
mil SKII Ordorod-Sols on a poriodic basis. Tlo foIIoving ruIos appIy:
- Tlo sol musl bo scloduIod for insorlion al mosl onco ovory 1180 symboI
cIocIs (i.o., symboI limos) and al Ioasl onco ovory 1538 symboI cIocIs.
- Wlon ils limo lo insorl a SKII Ordorod-Sol, il is insorlod al llo noxl
pacIol boundary (nol in llo middIo of a pacIol). SKII Ordorod-Sols aro
insorlod bolvoon pacIols simuIlanoousIy on aII Ianos. If a Iong pacIol
lransmission is aIroady in progross, llo SKII Ordorod-Sols aro accumu-
Ialod and llon insorlod consoculivoIy al llo noxl pacIol boundary.
- In a muIli-Iano onvironmonl, llo SKII Ordorod-Sol musl bo lransmil-
lod on aII Ianos simuIlanoousIy (soo Iiguro 11-11 on pago 414 and Iig-
uro 11-12 on pago 415). Wlon nocossary, llo IinI is paddod so as lo
aIIov aII llo lransmission of llo SKII Ordorod-Sols lo slarl on llo samo
cIocI (soo Iiguro 11-12 on pago 415).
- During aII Iovor povor IinI slalos, any counlor(s) usod lo scloduIo
SKII Ordorod-Sols musl bo rosol.
- SKII Ordorod-Sols musl nol bo lransmillod vliIo llo CompIianco Ial-
lorn is in progross.
Receive Logic DetaiIs
Iiguro 11-20 slovs llo rocoivor Iogic of llo IogicaI IlysicaI Iayor. Tlis soclion
doscribos pacIol procossing from llo limo llo dala is rocoivod soriaIIy on oacl
Iano unliI llo pacIol bylo slroam is cIocIod lo llo Dala IinI Iayor.
COM
SKP
SKP
SKP
Encoding
K28.5
K28.0
K28.0
K28.0
PCI Express System Architecture
438
- -
Receive
To Data Link Layer
Rx Rx
Lane 0 Lane N Lane 1, ..,N-1
Serial-to-Parallel
and Elastic Buffer
Serial-to-Parallel
and Elastic Buffer
Rx
Buffer
De-Scrambler
8b/10b
Decoder
Byte Un-Striping
De-Scrambler
Lane 0 Lane N (N=0,1,3,7,11,15,31)
Lane 1, ..,N-1
8
8
8
8
8
8
Control
10 10
8
Control
START / END / IDLE / PAD Character Removal and
Packet Alignment Check
Error
Detect
8b/10b
Decoder
Error
Detect
Rx Local
PLL
Rx Clk Rx Clk
D/K#
D/K#
D/K#
D/K#
D/K#
Chapter 11: Physical Layer Logic
439
Iiguro 11-21 iIIuslralos llo rocoivor Iogics fronl ond on oacl Iano. Tlis is com-
prisod of:
- Tlo difforonliaI rocoivor.
- Tlo Rx CIocI rocovory Iogic.
- Tlo COM symboI and Ordorod-Sol doloclor.
- Tlo SoriaI-lo-IaraIIoI convorlor (DosoriaIizor).
- Tlo Iano-lo-Iano Do-SIov Iogic (doIay circuil).
- Tlo IIaslic Buffor and CIocI ToIoranco Componsalion Iogic.
DifferentiaI Receiver
Rofor lo Iiguro 11-21. Tlo difforonliaI rocoivor on oacl Iano sonsos difforonliaI
poaI-lo-poaI voIlago difforoncos > 175 mV bul < 1200 mV:
- + difforonco = IogicaI 1.
- difforonco = IogicaI 0.
-
Differential
Receiver
D+
D-
Elastic
Buffer
Serial Bit
Stream
10b
Symbols
To 8b/10b
Decoder
Serial-to-Parallel
Converter
SKIP,TS1,
TS2,FTS
Detection
Lane
De-Skew
Delay
Circuit
Rx Clock
Recovery
PLL
Rx
Clock
10
Control
Local
Clock PLL
Rx
Clock/10
Local
Clock
Symbol
Lock
Serial
Symbol
Stream
PCI Express System Architecture
440
A signaI poaI-lo-poaI difforonco < 65 mV is considorod a signaI absonl condi-
lion and llo IinI is in llo oIoclricaI IdIo slalo. During llis limo, llo rocoivor do-
galos ils inpul lo provonl llo orror circuil from dolocling an orror. A signaI poaI-
lo-poaI difforonliaI voIlago bolvoon 65mV and 175mV sorvos as noiso guard
band.
Rx CIock Recovery
GeneraI
Using a III (Ilaso-IocIod Ioop), llo rocoivor circuil gonoralos llo Rx CIocI
from llo dala bil lransilions in llo inpul dala slroam. Tlis rocovorod cIocI las
llo samo froquoncy (2.5GHz) as llal of llo Tx CIocI usod by llo lransmilling
dovico lo cIocI llo dala bil slroam onlo llo viro (or fibor). Tlo Rx CIocI is usod
lo cIocI llo inbound soriaI symboI slroam inlo llo SoriaI-lo-IaraIIoI convorlor
(DosoriaIizor). Tlo 10-bil symboI slroam producod by llo DosoriaIizor is cIocIod
inlo llo oIaslic buffor vill a divido by 10 vorsion of llo Rx CIocI. Tlo Rx CIocI
is difforonl from llo IocaI CIocI llal is usod lo cIocI symboIs oul of llo IIaslic
Buffor lo llo 10b/8b docodor. Tlo IocaI CIocI musl bo accuralo lo villin +/
300ppm from conlor froquoncy.
Achieving Bit Lock
RocoIIocl llal llo inbound soriaI symboI slroam is guaranlood lo lavo froquonl
1-lo-0 and 0-lo-1 lransilions duo lo llo 8b/10b oncoding sclomo. A lransilion is
guaranlood al Ioasl ovory 5 bil-limos. Tlo rocoivor III usos llo lransilions in
llo rocoivod bil-slroam lo synclronizo llo Rx CIocI vill llo Tx CIocI llal vas
usod al llo lransmillor lo cIocI oul llo soriaIizod bil slroam. Wlon llo rocoivor
III IocIs on lo llo Tx CIocI froquoncy, llo rocoivor is said lo lavo acliovod
.
During IinI lraining, llo lransmillor dovico sonds a Iong sorios of bacI-lo-bacI
TS1 and TS2 Ordorod-Sols lo llo rocoivor and llo rocoivor usos llo bil lransi-
lions in lloso Ordorod-Sols lo acliovo Bil IocI. Onco llo IinI is in llo fuII-on I0
slalo, lransilions on llo IinI occur on a roguIar basis and llo rocoivor III is
abIo lo mainlain Bil IocI.
Chapter 11: Physical Layer Logic
441
Losing Bit Lock
If llo IinI is pul in a Iov povor slalo (sucl as I0s) vloro pacIol lransmission
coasos, llo rocoivors III graduaIIy Iosos synclronizalion. Tlo lransmillor
sonds an oIoclricaI IdIo Ordorod-Sol lo loII llo rocoivor lo do-galo ils inpul lo
provonl llo orror circuil from dolocling an orror.
Regaining Bit Lock
Wlon llo IinI is in llo I0s slalo, llo lransmillor sonds a fov ITS Ordorod-sols
(on llo ordor of four ITSs) lo llo rocoivor and llo rocoivor usos lloso lo rogain
Bil IocI. OnIy a fov ITSs aro noodod by llo rocoivor in ordor lo acliovo Bil
IocI (llus llo vaIo up Ialoncy is of slorl duralion). Bocauso llo IinI is in llo
I0s slalo for a slorl limo, llo rocoivor III doos nol compIoloIy Ioso synclroni-
zalion vill llo Tx CIocI boforo il rocoivos llo ITSs.
SeriaI-to-ParaIIeI converter (DeseriaIizer)
Tlo incoming soriaI dala on oacl Iano is cIocIod inlo llal Ianos DosoriaIizor
(llo soriaI-lo-paraIIoI convorlor) by llo Rx cIocI (soo Iiguro 11-21 on pago 439).
Tlo 10-bil symboIs producod aro cIocIod inlo an IIaslic Buffor using a divido-
by-10 vorsion of llo Rx CIocI.
SymboI Boundary Sensing (SymboI Lock)
Wlon llo rocoivo Iogic slarls rocoiving a bil slroam, il is }ABOB (jusl a buncl of
bils) vill no marIors lo difforonlialo ono symboI from anollor. Tlo rocoivo
Iogic musl lavo somo vay lo dolormino llo slarl and ond of a 10-bil symboI.
Tlo Comma (COM) symboI sorvos llis purposo.
Tlo 10-bil oncoding of llo COM (K28.5) symboI conlains lvo bils of ono poIar-
ily foIIovod by fivo bils of llo opposilo poIarily (0011111010b or 1100000101b).
UnIoss an orror occurs, no ollor claraclor las llis proporly, lloroby maIing il
oasiIy doloclabIo. RocoIIocl llal llo COM ConlroI claraclor, IiIo aII ollor Con-
lroI claraclors, is nol scrambIod by llo lransmillor. Tlis maIos llo COM oasiIy
doloclabIo by llo COM doloclor vlicl IooIs for lvo consoculivo 0s or lvo con-
soculivo 1s foIIovod by a slring of fivo 1s or fivo 0s, rospoclivoIy. Upon doloclion
of llo COM symboI, llo COM Doloclor Inovs llal llo noxl bil rocoivod aflor
llo COM symboI is llo firsl bil of a vaIid 10-bil symboI. Tlo DosoriaIizor is llon
iniliaIizod so llal il can loncoforll gonoralo vaIid 10-bil symboIs. Tlo DosoriaI-
izor is said lo acliovo .
PCI Express System Architecture
442
Tlo COM symboI is uliIizod lo acliovo SymboI IocI undor llo foIIoving cir-
cumslancos:
- During IinI lraining vlon llo IinI is firsl oslabIislod, TS1 and TS2
Ordorod-Sols aro lransmillod (and oacl sol bogins vill a COM symboI).
- During IinI rolraining inilialod duo lo a probIom on llo IinI, TS1 and TS2
Ordorod-Sols aro lransmillod (and oacl sol bogins vill a COM symboI).
- ITS Ordorod-Sols aro sonl by a lransmillor lo inform llo rocoivor lo rogain
Bil IocI and SymboI IocI and clango llo slalo of llo IinI from I0s lo I0.
Receiver CIock Compensation Logic
Background
Considor a lransmillor al ono ond of a IinI and llo rocoivor al llo opposilo ond.
Tlo lransmil cIocI accuracy musl bo 2.5GHz +/ 300 ppm (parls por miIIion).
Onco llo IinI is lrainod, llo rocoivo cIocI (Rx CIocI) in llo rocoivor is llo samo
as llo lransmil cIocI (Tx CIocI) al llo ollor ond of llo IinI (bocauso llo rocoivo
cIocI is dorivod from llo bil slroam llal vas lransmillod al llo romolo onds
lransmil cIocI froquoncy). If llo lransmillors Tx CIocI al ono ond of llo IinI
oporalos al +300 ppm and llo IocaI CIocI (slovn in Iiguro 11-21 on pago 439
nol llo Rx CIocI) al llo rocoivor al llo ollor ond oporalos al 300 ppm, llis
rosuIls in a vorsl-caso 600 ppm difforonco bolvoon llo lvo cIocIs.
In llis sconario, llo lransmillor al ono ond of llo IinI is oporaling al 2.5GHz
+300 ppm, vliIo llo rocoivors IocaI cIocI is oporaling al a froquoncy of 2.5GHz
300ppm. Tlo Tx CIocI of llo lransmillor and IocaI CIocI of llo rocoivor can
lloroforo slifl ono cIocI ovory 1666 cIocIs.
The EIastic Buffers RoIe in the Receiver
Il is a common dosign praclico lo cIocI mosl of llo rocoivo pall Iogic using llo
IlysicaI Iayors IocaI cIocI. To componsalo for llo froquoncy difforonco
bolvoon llo Rx CIocI (vlicl is dorivod from llo romolo porls lransmil fro-
quoncy) and llo IocaI CIocI (vlicl is dorivod from llo IocaI porls lransmil fro-
quoncy), an oIaslic buffor (soo Iiguro 11-21 on pago 439) is incorporalod in llo
vory oarIy slagos of llo rocoivo pall.
Chapter 11: Physical Layer Logic
443
SymboIs arrivo al llo difforonliaI rocoivor as a bil slroam and aro prosonlod lo
llo DosoriaIizor. Tlo rocoivo III rocovors llo cIocI (Rx CIocI) omboddod in llo
bil slroam and llo DosoriaIizor convorls llo incoming bil slroam inlo a sorios of
10-bil symboIs. Tlo symboIs aro cIocIod inlo llo inpul sido of llo IIaslic Buffor
using llo Rx CIocI rocovorod from llo incoming bil slroam and aro cIocIod oul
of llo buffor using llo rocoivors IocaI cIocI. As proviousIy cilod, lloso lvo
cIocIs can bo as mucl as 600ppm oul of sync vill oacl ollor.
Tlo IIaslic Buffor componsalos for llo difforonco bolvoon llo lvo cIocIs by
oillor doIoling a SKI symboI from or insorling a SKI symboI inlo llo symboIs
conlainod in llo IIaslic Buffor:
- If llo lransmil cIocI froquoncy is groalor llan llo rocoivo cIocI froquoncy by
up lo 600ppm, a SKI symboI is doIolod from llo buffor.
- If llo lransmil cIocI froquoncy is Ioss llan llo rocoivo cIocI froquoncy by up
lo 600ppm, a SKI symboI is addod lo llo buffor.
Tlo lransmillor on llo ollor ond poriodicaIIy lransmils a spociaI symboI
soquonco caIIod llo SKII Ordorod-Sol (soo Iiguro 11-19 on pago 437 and Insorl-
ing CIocI Componsalion Zonos on pago 436) from vlicl llo donl caro SKI
symboI can bo doIolod or lo vlicl a donl caro SKI symboI can bo addod. Tlo
SKII Ordorod-Sol consisls of four conlroI symboIs (a COM and llroo SKIs, llo
SIips aro llo donl caro claraclors, lonco llo namo SIip). DoIoling or add-
ing a SKI symboI lo llo SKII Ordorod-Sol in llo IIaslic Buffor provonls a buffor
ovorfIov or undorfIov condilion, rospoclivoIy.
Ioss of symboI(s) causod by IIaslic Buffor ovorfIov or undorfIov lriggors a
Rocoivor Irror indicalion lo llo Dala IinI Iayor and rosuIls in llo aulomalic
inilialion of IinI orror rocovory.
Tlo lransmillor scloduIos a SKII Ordorod-Sol lransmission onco ovory 1180 lo
1538 symboI limos. Hovovor, if llo lransmillor slarls a maximum sizod TII
lransmission rigll al llo 1538 symboI limo boundary vlon a SKII Ordorod-Sol
is scloduIod lo bo lransmillod, llo SKII Ordorod-Sol lransmission is doforrod.
Rocoivors musl bo loIoranl lo rocoivo and procoss SKII Ordorod-Sols llal lavo a
maximum soparalion dopondonl on llo maximum pacIol payIoad sizo a dovico
supporls. Tlo formuIa for llo maximum numbor of SymboIs () bolvoon SKII
Ordorod-Sols is:
= 1538 + (maximum pacIol payIoad sizo + 28)
28 is llo numbor of symboIs associalod vill llo loador (16 bylos), llo oplionaI
ICRC (4 bylos), llo ICRC (4 bylos), llo soquonco numbor (2 bylos) and framing
symboIs STI and IND (2 bylos).
PCI Express System Architecture
444
Lane-to-Lane De-Skew
Not a ProbIem on a SingIe-Lane Link
Tlo probIom of Iano-lo-Iano sIov is obviousIy onIy an issuo on muIli-Iano
IinIs.
FIight Time Varies from Lane-to-Lane
SymboIs aro lransmillod simuIlanoousIy on aII Ianos using llo samo lransmil
cIocI, bul lloy cannol bo oxpoclod lo arrivo al llo rocoivor al llo samo limo (i.o.,
villoul Iano-lo-Iano sIov). A muIli-Iano IinI may lavo many sourcos of
Iano-lo-Iano sIov. Tloso sourcos incIudo bul aro nol Iimilod lo:
- Clip difforonliaI drivors and rocoivors.
- Irinlod viring board impodanco varialions.
- Iano viro Iongll miss-malclos.
- DoIays injoclod by llo soriaIizalion and do-soriaIizalion Iogic.
Wlon llo bylo-slripod soriaI bil slroams associalod vill a pacIol arrivo on aII
Ianos al llo rocoivor, il musl romovo llis Iano-lo-Iano sIov in ordor lo rocoivo
and procoss llo dala corroclIy. Tlis procoss is roforrod lo as IinI dosIov.
Rocoivors uso TS1 or TS2 Ordorod-Sols during IinI lraining or ITS Ordorod-
Sols during I0s oxil lo porform IinI do-sIov funclions.
If Lane Data Is Not AIigned, Byte Unstriping WouIdnt Work
Havoc vouId onsuo if llo symboIs lransmillod on oacl Iano simuIlanoousIy
voro lo arrivo al oacl Iano rocoivor al difforonl limos and voro llon do-soriaI-
izod and fod lo llo Bylo Unslriping Iogic. Gibborisl vouId bo fod lo llo IinI
Iayor as pacIol dala.
TS1/TS2 or FTS Ordered-Sets Used to De-Skew Link
Tlo uniquo slrucluro and Iongll of llo TS1/TS2 and ITS sols, and llo facl llal
lloy aro lransmillod simuIlanoousIy on aII Ianos, aro usod by llo rocoivors Do-
SIov Iogic lo dolormino llo amounl of misaIignmonl bolvoon Ianos. Tlo spoci-
ficalion doosnl dofino llo mollod usod lo acliovo muIli-Iano aIignmonl. As an
oxampIo, llo rocoivor Iogic couId componsalo for llo misaIignmonl by luning an
aulomalic doIay circuil in oacl Ianos rocoivor (soo Iiguro 11-21 on pago 439 and
Iiguro 11-22 on pago 445).
Chapter 11: Physical Layer Logic
445
Tlo rocoivor musl bo capabIo of do-sIoving up lo 20ns of Iano-lo-Iano sIov as
dofinod by llo I
RX-SKIW
paramolor slovn in TabIo 12-2 on pago 480.
De-Skew During Link Training, Retraining and L0s Exit
TS1 and TS2 Ordorod-Sols aro onIy lransmillod during iniliaI IinI lraining or
during IinI rolraining (i.o., rocovory). ITS Ordorod-Sols aro lransmillod during
I0s oxil. Do-sIov is lloroforo onIy porformod by llo rocoivor al lloso limos and
is nol dono on a poriodic basis.
Lane-to-Lane De-Skew CapabiIity of Receiver
Tlo Iano-lo-Iano do-sIov paramolor I
RX-SKIW
slovn in TabIo 12-2 on
pago 480 roquiros llal llo rocoivor bo capabIo of do-sIoving Iano doIays of up
lo 20ns. Tlo lransmillor is aIIovod lo inlroduco a minimaI Iano-lo-Iano sIov al
llo oulpul pad dofinod by llo I
TX-SKIW
paramolor (soo TabIo 12-1 on pago 477)
of 1.3ns.
-
Lane 0
Lane 1
Lane 2
Lane 3
Rx
Rx
Rx
Rx
TS1/TS2
TS1/TS2
TS1/TS2
TS1/TS2
TS1/TS2
TS1/TS2
TS1/TS2
TS1/TS2
FTS
FTS
FTS
FTS
FTS
FTS
FTS
FTS
PCI Express System Architecture
446
8b/10b Decoder
GeneraI
Rofor lo Iiguro 11-23 on pago 447. Iacl rocoivor Iano incorporalos a 10b/8b
Docodor vlicl is fod from llo IIaslic Buffor. Tlo 8b/10b Docodor usos lvo
IooIup labIos (llo D and K labIos) lo docodo llo 10-bil symboI slroam inlo 8-bil
Dala (D) or ConlroI (K) claraclors pIus llo D/K# signaI. Tlo slalo of llo D/K#
signaI indicalos llal llo rocoivod symboI is:
- A Dala (D) claraclor if a malcl for llo rocoivod symboI is discovorod in llo
D labIo. D/K# is drivon Higl.
- A ConlroI (K) claraclor if a malcl for llo rocoivod symboI is discovorod in
llo K labIo. D/K# is drivon Iov.
Disparity CaIcuIator
Tlo docodor dolorminos llo iniliaI disparily vaIuo basod on llo disparily of llo
firsl symboI rocoivod. Aflor llo firsl symboI, onco llo disparily is iniliaIizod in
llo docodor, il oxpocls llo caIcuIalod disparily for oacl subsoquonl symboI
rocoivod lo loggIo bolvoon + and - unIoss llo symboI rocoivod las noulraI dis-
parily in vlicl caso llo disparily romains llo samo vaIuo.
Code VioIation and Disparity Error Detection
Tlo orror doloclion Iogic of llo 8b/10b Docodor dolocls orrors in
llo rocoivod symboI slroam. Il slouId bo nolod llal il doosnl calcl aII pos-
sibIo lransmission orrors. Tlo spocificalion roquiros llal lloso orrors bo
doloclod and roporlod as a Rocoivor Irror indicalion lo llo Dala IinI Iayor.
Tlo lvo lypos of orrors doloclod aro:
- Codo vioIalion orrors (i.o., a 10-bil symboI couId nol bo docodod inlo a
vaIid 8-bil Dala or ConlroI claraclor).
- Disparily orrors.
Tloro is no aulomalic lardvaro orror corroclion for lloso orrors al llo Ilys-
icaI Iayor.
- Tlo foIIoving condilions roprosonl codo vioIalions:
- Any 6-bil sub-bIocI conlaining moro llan four 1s or four 0s is in orror.
- Any 4-bil sub-bIocI conlaining moro llan llroo 1s or llroo 0s is in orror.
Chapter 11: Physical Layer Logic
447
- Any 10-bil symboI conlaining moro llan six 1s or six 0s is in orror.
- Any 10-bil symboI conlaining moro llan fivo consoculivo 1s or fivo con-
soculivo 0s is in orror.
- Any 10-bil symboI llal doosnl docodo inlo an 8-bil claraclor is in orror.
Disparity Errors
A claraclor llal oncodos inlo a 10-bil symboI vill disparily ollor llan noulraI
is oncodod inlo a 10-bil symboI vill poIarily opposilo lo llal of llo CRD.
If llo noxl symboI doos nol lavo noulraI disparily and ils disparily is llo samo
as llo CRD, a disparily orror is doloclod.
- Somo disparily orrors may nol bo doloclabIo unliI llo subsoquonl symboI is
procossod (soo Iiguro 11-24 on pago 448).
- If lvo bils in a symboI fIip in orror, llo orror may nol bo doloclod (and llo
symboI may docodo inlo a vaIid 8-bil claraclor). Tlo orror goos undoloclod
al llo IlysicaI Iayor.
8b Character
CRD Calculator
Bytes to De-Scrambler
D/
K#
D/K#
7 6 5 4 3 2 1 0
H G F A B C D E
j h g f i e d c b a
From Elastic Buffer
To Error Reporting
Current
Running
Disparity
(CRD)
8b/10b Look-Up Table For K Characters
8b/10b Look-Up Table For D Characters
10b Symbol
PCI Express System Architecture
448
De-ScrambIer
Tlo Do-ScrambIor is fod by llo 8b/10b Docodor bIocI. Tlo Do-ScrambIor onIy
do-scrambIos Dala (D) claraclors associalod vill a TII or DIII (D/K# is
ligl). Il doos nol do-scrambIo ConlroI (K) claraclors or Ordorod-Sols. K clarac-
lors and Ordorod-Sols sourcod from llo 8b/10b docodor aro vaIid as is.
Some De-ScrambIer ImpIementation RuIes:
- On a muIli-Iano IinI, Do-ScrambIors associalod vill oacl Iano musl opor-
alo in concorl, mainlaining llo samo simuIlanoous vaIuo in oacl IISR.
- Do-scrambIing is appIiod lo D claraclors associalod vill TII and DIIIs
incIuding llo IogicaI IdIo (00l) soquonco. D claraclors villin llo TS1 and
TS2 Ordorod-Sol aro nol do-scrambIod.
- K claraclors and Ordorod-Sol claraclors aro nol do-scrambIod. Tloso clar-
aclors bypass llo do-scrambIor Iogic.
- CompIianco Iallorn roIalod claraclors aro nol do-scrambIod.
- Wlon a COM claraclor onlors llo Do- ScrambIor, il iniliaIizos llo IISR. Tlo
iniliaIizod vaIuo of llo 16-bil IISR is IIIIl.
- Will ono oxcoplion, llo IISR soriaIIy advancos oigll limos for ovory clar-
aclor (D or K claraclor) rocoivod. Tlo IISR doos NOT advanco on SKI
claraclors associalod vill llo SKII Ordorod-Sols rocoivod. Tlo roason llo
-
+ Invalid + D10.2 + D21.0 - Decoded
Character Stream
+ 111010 1010 + 010101 0101 + 101010 1011 - Bit Stream After
Error
+ 111010 1010 - 010101 0101 - 101010 1001 - Transmitted Bit
Stream
+ D23.5 - D10.2 - D21.1 - Transmitted
Character Stream
CRD Character CRD Character CRD Character CRD
+ Invalid + D10.2 + D21.0 - Decoded
Character Stream
+ 111010 1010 + 010101 0101 + 101010 1011 - Bit Stream After
Error
+ 111010 1010 - 010101 0101 - 101010 1001 - Transmitted Bit
Stream
+ D23.5 - D10.2 - D21.1 - Transmitted
Character Stream
CRD Character CRD Character CRD Character CRD
Error occurs here
Error detected here
Chapter 11: Physical Layer Logic
449
IISR is nol advancod on dolocling SKIs is bocauso lloro may bo a diffor-
onco bolvoon llo numbor of SKI claraclors lransmillod and llo SKI clar-
aclors oxiling llo IIaslic Buffor (as discussod in Rocoivor CIocI
Componsalion Iogic on pago 442).
- By dofauIl, llo Do-ScrambIor is aIvays onabIod. Tlo spocificalion doos
aIIov llo Do-ScrambIor lo bo disabIod for losl and dobug purposos. Hov-
ovor llo spocificalion doos nol provido a slandard soflvaro mollod or con-
figuralion rogislor-roIalod mollod for disabIing llo Do-ScrambIor.
DisabIing De-ScrambIing
If llo rocoivor Do-ScrambIor rocoivos al Ioasl lvo TS1/TS2 Ordorod-Sols vill
llo disabIo scrambIing bil sol from llo romolo dovico on aII of ils configurod
Ianos, il disabIos ils Do-ScrambIor.
Byte Un-Striping
Iiguro 11-25 on pago 449 iIIuslralos an oxampIo of oigll docodod 8-bil claraclor
slroams from llo oigll Do-ScrambIors of a x8 IinI boing un-slripod inlo a singIo
bylo slroam vlicl is fod lo llo IiIlor Iogic (soo llo noxl soclion).
Packet byte stream from Multiplexer block
De-Scrambler De-Scrambler De-Scrambler
Character 0
Character 1
Character 2
Character 3
Character 4
Character 5
Character 6
Character 7
Character 1
Character 9
Character 17
From Lane 1
Byte Un-Striping
Character 0
Character 8
Character 16
From Lane 0
Character 7
Character 15
Character 23
From Lane 7
Data Stream D/K#
PCI Express System Architecture
450
FiIter and Packet AIignment Check
Tlo soriaI bylo slroam suppIiod by llo bylo un-slriping Iogic conlains TIIs,
DIIIs, IogicaI IdIo soquoncos, ConlroI claraclors sucl as STI, SDI, IND, IDB,
and IADs, as voII as llo lypos of Ordorod-Sols. Of lloso claraclors, llo IogicaI
IdIo soquonco, llo conlroI claraclors and Ordorod-Sols aro doloclod and oIimi-
nalod. Wlal romains aro TIIs and DIIIs vlicl aro sonl lo llo Rx Buffor aIong
vill boundary claraclors indicaling llo slarl and ond of oacl TII and DIII.
Receive Buffer (Rx Buffer)
Tlo Rx Buffor loIds rocoivod TIIs and DIIIs aflor llo slarl and ond claraclors
lavo boon oIiminalod. Tlo rocoivod pacIols aro roady lo sond lo llo Dala IinI
Iayor.
Tlo inlorfaco bolvoon llo IlysicaI Iayor and Dala IinI Iayor is unspocifiod.
Honco, llo dosignor is froo lo docido vlal dala bus vidll inlorfaco lo impIo-
monl. As an oxampIo, vo can assumo llo inlorfaco cIocI lo bo 250MHz. In llal
caso, llo vidll of llo dala bus connocling llo Dala IinI Iayor lo llo IlysicaI
Iayor inlorfaco can = llo numbor of Ianos supporlod by llo dovico x oigll bils.
PhysicaI Layer Error HandIing
Wlon llo IlysicaI Iayor Iogic dolocls an orror, il sonds a Rocoivor Irror indica-
lion lo llo Dala IinI Iayor. Tlo spocificalion Iisls a fov of lloso orrors, bul il is
far from boing an oxlauslivo orror Iisl. Il is up lo llo dosignor lo dolormino vlal
IlysicaI Iayor orrors lo dolocl and roporl.
Somo of lloso orrors incIudo:
- 8b/10b Docodor-roIalod disparily orrors (doscribod in Disparily Irrors on
pago 447). Tlis clocI is roquirod.
- 8b/10b Docodor-roIalod codo vioIalion orrors (doscribod in Codo VioIa-
lions on pago 446). Tlis clocI is roquirod.
- IIaslic Buffor ovorfIov or undorfIov causod by Ioss of symboI(s) (doscribod
in Tlo IIaslic Buffors RoIo in llo Rocoivor on pago 442).
- Tlo pacIol rocoivod is nol consislonl vill llo pacIol formal ruIos doscribod
in GonoraI IacIol Iormal RuIos on pago 411. Tlis condilion is oplionaIIy
clocIod.
Chapter 11: Physical Layer Logic
451
- Ioss of SymboI IocI (soo SymboI Boundary Sonsing (SymboI IocI) on
pago 441).
- Ioss of Iano-lo-Iano do-sIov (soo Iano-lo-Iano Do-SIov on pago 444).
Response of Data Link Layer to Receiver Error Indication
If llo IlysicaI Iayor indicalos a Rocoivor Irror lo llo Dala IinI Iayor, llo Dala
IinI Iayor discards llo TII curronlIy boing rocoivod and froos any slorago aIIo-
calod for llo TII. Tlo Dala IinI Iayor scloduIos a NAK DIII for lransmission
bacI lo llo lransmillor of llo TII. Doing so aulomalicaIIy causos llo lransmillor
dovico lo ropIay TIIs from llo RopIay Buffor, rosuIling in possibIo aulo-corroc-
lion of llo orror. Tlo Dala IinI Iayor may aIso dirocl llo IlysicaI Iayor lo ini-
lialo IinI ro-lraining (i.o., IinI rocovory).
Doloclod IinI orrors may aIso rosuIl in llo IlysicaI Iayor inilialing llo IinI
rolraining (rocovory) procoss.
In addilion, llo dovico llal dolocls a Rocoivor Irror sols llo Rocoivor Irror Sla-
lus bil in llo CorroclabIo Irror Slalus rogislor (soo Iiguro 24-20 on pago 936) of
llo ICI Ixpross Ixlondod Advancod Irror CapabiIilios rogislor sol. If onabIod lo
do so, llo dovico sonds an IRR_COR (corroclabIo orror) mossago lo llo Rool
CompIox (Soo Advancod UncorroclabIo Irror HandIing on pago 386 for
dolaiIs on orror Iogging and roporling).
453
-
The Previous Chapter
Tlo provious claplor doscribod:
- Tlo IogicaI IlysicaI Iayor coro Iogic and lov an oulbound pacIol is pro-
cossod boforo cIocIing llo pacIol oul difforonliaIIy.
- Hov an inbound pacIol arriving from llo IinI is procossod and sonl lo llo
Dala IinI Iayor.
- Sub-bIocI funclions of llo IlysicaI Iayor sucl as Bylo Slriping and un-
slriping Iogic, ScrambIor and Do-ScrambIor, 8b/10b Incodor and docodor,
IIaslic Buffors and moro.
This Chapter
Tlis claplor doscribos llo IlysicaI Iayors oIoclricaI inlorfaco lo llo IinI. Il
doscribos llo anaIog claraclorislics of llo difforonliaI drivors and rocoivors llal
connocl a ICI Ixpross dovico lo llo IinI. Timing and drivor/rocoivor paramo-
lors aro documonlod loro.
The Next Chapter
Tlo noxl claplor doscribos llo llroo lypos of rosol, namoIy: coId rosol, varm
rosol and lol rosol. Il aIso doscribos llo usago of a sido-band rosol signaI caIIod
IIRST#. Tlo offocl of rosol on dovicos and llo syslom is doscribod.
EIectricaI PhysicaI Layer Overview
Tlo oIoclricaI sub-bIocI associalod vill oacl Iano (soo Iiguro 12-1 on pago 454)
providos llo plysicaI inlorfaco lo llo IinI. Tlis sub-bIocI conlains difforonliaI
drivors (lransmillors) and difforonliaI rocoivors (rocoivors). Tlo lransmillor sori-
aIizos oulbound symboIs on oacl Iano and convorls llo bil slroam lo oIoclricaI
PCI Express System Architecture
454
signaIs llal lavo an omboddod cIocI. Tlo rocoivor dolocls oIoclricaI signaIing on
oacl Iano and gonoralos a soriaI bil slroam llal il do-soriaIizos inlo symboIs,
and suppIios llo symboI slroam lo llo IogicaI IlysicaI Iayor aIong vill llo
cIocI rocovorod from llo inbound soriaI bil slroam.
In llo fuluro, llis sub-bIocI couId bo rodosignod lo supporl a cabIo inlorfaco or
an oplicaI (i.o., fibor) inlorfaco.
In addilion, llo oIoclricaI IlysicaI Iayor conlains a Ilaso IocI Ioop (III) llal
drivos llo SoriaIizor in llo lransmillor and a rocoivor III llal is syncd lo llo
lransilions in llo incoming soriaI symboI slroam.
Wlon llo IinI is in llo I0 fuII-on slalo, llo difforonliaI drivors drivo llo diffor-
onliaI voIlago associalod vill a IogicaI 1 and IogicaI 0 vliIo driving llo corrocl
DC common modo voIlago. Tlo rocoivors sonso difforonliaI voIlagos llal indi-
calo a IogicaI 1 or 0 and, inaddilion, can sonso llo oIoclricaI idIo slalo of llo IinI.
An oyo diagram cIoarIy iIIuslralos llo oIoclricaI claraclorislics of a drivor and
rocoivor and addrossos signaIing voIlago IovoIs, sIov and jillor issuos.
-
Logical
Electrical
Physical Layer
Logical
Electrical
Physical Layer
Link
C
TX
C
TX
Tx
Tx
Tx
Tx
Rx
Rx
Rx
Rx
Tx+ Tx+ Tx- Tx- Rx+ Rx- Rx- Rx+
Chapter 12: Electrical Physical Layer
455
Tlo oIoclricaI IlysicaI Iayor is rosponsibIo for pIacing llo difforonliaI drivors,
difforonliaI rocoivors, and llo IinI in llo corrocl slalo vlon llo IinI is pIacod in
a Iov povor slalo sucl as I0s, I1, or I2. WliIo in llo I2 Iov povor slalo, a
dovico can signaI a vaIo-up ovonl upslroam via a Boacon signaIing moclanism.
Tlo difforonliaI drivors supporl signaI do-omplasis (or pro-omplasis, soo Do-
Implasis (or Iro-Implasis) on pago 466) lo loIp roduco llo bil orror ralo
(BIR)ospociaIIy on a Iossy IinI.
Tlo drivors and rocoivors aro slorl-circuil loIoranl, maIing llom idoaIIy suilod
for lol insorlion and romovaI ovonls. Tlo IinI connocling lvo dovicos is AC
coupIod. A capacilor al llo lransmillor sido of llo IinI DC do-coupIos il from
llo rocoivor. As a rosuIl, lvo dovicos al opposilo onds of a IinI can lavo lloir
ovn ground and povor pIanos. Soo Iiguro 12-1 on pago 454 for llo capacilor
(C
TX
) pIacomonl on llo IinI.
High Speed EIectricaI SignaIing
Rofor lo Iiguro 12-2. Higl-spood IVDS (Iov-VoIlago DifforonliaI SignaIing)
oIoclricaI signaIing is usod in drivor and rocoivor impIomonlalions. Drivors and
rocoivors from difforonl manufaclurors musl bo inlor-oporabIo and may bo
dosignod lo bo lol-pIuggabIo. A slandard IR4 board can bo usod lo roulo llo
IinI viros. Tlo foIIoving soclions doscribo llo oIoclricaI claraclorislics of llo
drivor, rocoivor, and llo IinI roprosonlod in llo Iiguro.
-
+
-
Receiver Transmitter
C
TX
C
TX
Z
TX
Z
RX
Z
RX
Z
TX
Z
TX
Z
TX
Lane in
one
direction
Clock
Source
Clock
Source
V
CM
V
TX-CM
= 0 - 3.6 V
Z
TX
= Z
RX
= 50 Ohms
C
TX
= 75 200 nF
Detect
V
RX-CM
= 0 V
D+
D-
D+
D-
PCI Express System Architecture
456
CIock Requirements
GeneraI
Tlo lransmillor cIocIs dala oul al 2.5Gbils/s. Tlo cIocI usod lo do so musl bo
accuralo lo +/- 300 ppm of llo conlor froquoncy. Il is aIIovod lo sIov a maxi-
mum of 1 cIocI ovory 1666 cIocIs. Tlo lvo dovicos al llo opposilo onds of a
IinI couId lavo lloir lransmil cIocIs oul of plaso by as mucl as 600 ppm.
A dovico may dorivo ils cIocI from an oxlornaI cIocI sourco. Tlo syslom board
suppIios a 100 MHz cIocI llal is mado avaiIabIo lo dovicos on llo syslom board
as voII as lo add-in cards via llo connoclor. Will llo aid of IIIs, a dovico may
gonoralo ils roquirod cIocIs from llis 100 MHz cIocI.
Spread Spectrum CIocking (SSC)
Sproad spoclrum cIocIing is a loclniquo usod lo moduIalo llo cIocI froquoncy
sIovIy so as lo roduco IMI radialod noiso al llo conlor froquoncy of llo cIocI.
Will SSC, llo radialod onorgy doos nol produco a noiso spiIo al 2.5GHz
bocauso llo radialod onorgy is sproad ovor a smaII froquoncy rango around
2.5GHz.
SCC is nol roquirod by llo spocificalion. Hovovor, if supporlod, llo foIIoving
ruIos appIy:
- Tlo cIocI can bo moduIalod by +0 lo -0.5 from nominaI a froquoncy of
2.5GHz.
- Tlo moduIalion ralo musl bo bolvoon 30KHz and 33KHz.
- Tlo +/- 300 ppm roquiromonl for cIocI froquoncy accuracy sliII loIds. Iur-
llor, llo maximum of 600 ppm froquoncy varialion bolvoon llo lvo
dovicos al opposilo onds of a IinI aIso romains lruo. Tlis aImosl corlainIy
imposos a roquiromonl llal llo lvo dovicos al opposilo onds of llo IinI bo
drivon from llo samo cIocI sourco vlon llo cIocI is moduIalod vill SSC.
Impedance and Termination
Tlo claraclorislic impodanco of llo IinI is 100 Olms difforonliaI (nominaI),
vliIo singIo-ondod DC common modo impodanco is 50 Olms. Tlis impodanco
is malclod lo llo lransmillor and rocoivor impodancos.
Chapter 12: Electrical Physical Layer
457
Transmitter Impedance Requirements
Transmillors musl mool llo Z
TX-DIII-DC
(soo TabIo 12-1 on pago 477) paramolors
anylimo difforonliaI signaIs aro lransmillod during llo fuII-on I0 povor slalo.
Wlon a difforonliaI signaI is nol drivon (o.g., in llo Iovor povor slalos), llo
lransmillor may Ioop ils oulpul impodanco al a minimum Z
TX-DC
(soo TabIo 12-
1 on pago 477) of 40 Olms, bul may aIso pIaco llo drivor in a ligl impodanco
slalo. IIacing a drivor in llo ligl impodanco slalo may bo loIpfuI vliIo in I0s
or I1 Iov povor slalos lo loIp roduco povor drain in lloso slalos.
Receiver Impedance Requirements
Tlo rocoivor is roquirod lo mool llo Z
RX-DIII-DC
(soo TabIo 12-2 on pago 480)
paramolor of 100 Olms anylimo difforonliaI signaIs aro lransmillod during llo
fuII-on I0 povor slalo, as voII as in aII ollor Iovor povor slalos vloroin ado-
qualo povor is providod lo llo dovico. A rocoivor is oxcIudod from llis impod-
anco roquiromonl vlon llo dovico is povorod dovn (o.g., in llo I2 and I3
povor slalos and during IundamonlaI Rosol).
Wlon a rocoivor is povorod dovn lo llo I2 or I3 slalo, or during IundamonlaI
Rosol, ils rocoivor goos lo llo ligl impodanco slalo and musl mool llo Z
RX-
HIGH-IMI-DC
paramolor of 200 KOlms minimum (soo TabIo 12-2 on pago 480).
DC Common Mode VoItages
Transmitter DC Common Mode VoItage
Onco drivon aflor povor-on and during llo Dolocl slalo of IinI lraining, llo
lransmillor DC common modo voIlago V
TX-DC-CM
(soo TabIo 12-1 on pago 477)
musl romain al llo samo voIlago. Tlo common modo voIlago is lurnod off onIy
vlon llo lransmillor is pIacod in llo I2 or I3 Iov povor slalo, during vlicl
main povor lo llo dovico is romovod. A dosignor can clooso any common
modo voIlago in llo rango of 0V lo 3.6V.
Receiver DC Common Mode VoItage
Tlo rocoivor is DC do-coupIod from llo lransmillor by a capacilor. Tlis aIIovs
llo rocoivor lo lavo ils ovn DC common modo voIlago. Tlis voIlago is spocifiod
al 0V. Tlo spocificalion is uncIoar aboul llo moaning of llis 0V rocoivor DC
common modo voIlago roquiromonl and doos nol roquiro llo common modo
voIlago lo bo 0V al llo inpul lo llo rocoivor difforonliaI ampIifior. Rallor, a sim-
pIo bias voIlago nolvorI aIIovs llo rocoivor lo oporalo al oplimaI common
modo. Soo Iiguro 12-3 on pago 458.
PCI Express System Architecture
458
ESD and Short Circuit Requirements
-- - - -
- - -
- - -
-
- - -
- - -- - - --
- - - -
- -- - -
-
- -
+
-
Receiver Transmitter
C
TX
C
TX
Z
TX
Z
RX
Z
RX
Z
TX
Z
TX
Z
TX
Lane in
one
direction
Clock
Source
Clock
Source
V
CM
V
TX-CM
= 0 - 3.6 V
Z
TX
= Z
RX
= 50 Ohms
C
TX
= 75 200 nF
Detect
V
RX-CM
= 0 V
Big
Big
Big
Big
Ratio of resistors
sets DC common
mode voltage
Small
Small
Big
Big
Chapter 12: Electrical Physical Layer
459
Receiver Detection
GeneraI
Tlo Dolocl bIocI in llo lransmillor slovn in Iiguro 12-2 on pago 455 is roquirod
lo dolocl llo prosonco or absonco of a rocoivor al llo ollor ond of llo IinI aflor
coming oul of rosol or povor-on. Tlo Dolocl slalo of llo IinI Training slalo
maclino is rosponsibIo for maIing llis dolorminalion.
Doloclion is accompIislod vlon llo lransmillor clangos llo DC common modo
voIlago from ono vaIuo lo anollor. By dosign, llo lransmillor dolocl Iogic las
InovIodgo of llo ralo al vlicl llo Iinos clargo vill or villoul a rocoivor.
With a Receiver Attached
Will a rocoivor allaclod al llo ollor ond of llo IinI, llo clargo limo (RC limo
conslanl) is roIalivoIy Iong duo lo llo Iargo coupIing capacilor (C
TX
). Soo llo
Iovor laIf of Iiguro 12-4 on pago 460.
Timo Conslanl lo Clargo -= Z
TX
(C
TX
+ C
inlorconnocl
+ C
pad
) => Iargo vaIuo
Without a Receiver Attached
Willoul a rocoivor allaclod al llo ollor ond of llo IinI, llo clargo limo (RC
limo conslanl) is roIalivoIy slorl bocauso llo Iargo coupIing capacilor (C
TX
) doos
NOT como inlo pIay. Soo llo uppor laIf of Iiguro 12-4 on pago 460.
Timo Conslanl lo Clargo -= Z
TX
(C
inlorconnocl
+ C
pad
) => SmaII vaIuo
Procedure To Detect Presence or Absence of Receiver
1. Aflor rosol or povor-up, llo lransmillor drivos a slabIo voIlago on llo D+
and D- lorminaIs. Tlis can bo V
DD
(3.6 V), Ground or any common modo
voIlago in-bolvoon V
DD
and Ground.
2. Transmillor clangos llo common modo voIlago:
If llo iniliaI common modo voIlago is V
DD
, llon il drivos llo voIlago
lovards Ground.
If llo iniliaI common modo voIlago is Ground, llon il drivos llo voIlago
lovards V
DD
.
If llo iniliaI common modo voIlago is bolvoon V
DD
and Ground, llo
lransmillor drivos llo voIlago in llo opposilo diroclion (llo diroclion il
musl bo drivon lo allain lo llo iniliaI common modo voIlago).
PCI Express System Architecture
460
3. Tlo lransmillor dolocls llo prosonco of a rocoivor by dolormining llo clargo
limo:
A Rocoivor is prosonl if llo clargo limo is Iong.
A Rocoivor is absonl if llo clargo limo is slorl.
-
+
-
Receiver Transmitter
C
TX
C
TX
Z
TX-LINE
Z
RX
Z
RX
Z
TX-LINE
Z
TX
Z
TX
Lane in
one
direction
V
CM
Detect
V
RX-CM
= 0 V
C
pad
C
pad
C
interconnect
C
interconnect
Charge Time Constant ~= Z
TX
* (C
pad
+ C
interconnect
) Small Time
+
-
Receiver Transmitter
C
TX
C
TX
Z
RX
Z
RX
Z
TX
Z
TX
Lane in
one
direction
V
CM
Detect
V
RX-CM
= 0 V
C
pad
C
pad
C
interconnect
C
interconnect
Charge Time Constant ~= Z
TX
* (C
TX
+ C
pad
+ C
interconnect
) Large Time
C
TX
= 75 200 nF >> C
pad
+ C
interconnect
Receiver Absent
Receiver Present
Z
TX-LINE
Z
TX-LINE
Chapter 12: Electrical Physical Layer
461
DifferentiaI Drivers and Receivers
DifforonliaI signaIing (as opposod lo llo singIo-ondod signaIing ompIoyod in
ICI and ICI-X) is idoaI for ligl froquoncy signaIing.
Advantages of DifferentiaI SignaIing
Somo of llo advanlagos of difforonliaI signaIing (vorsus singIo-ondod signaIing)
aro:
- Can acliovo liglor froquoncy lransmission ralo bocauso llo signaI sving is
smaIIor.
- Ioss IMI noiso omillod duo lo noiso cancoIIalion of D+ signaI omission vill
D- signaI omission.
- Noiso immunily, bocauso any noiso llal coupIos inlo ono signaI viII aIso
coupIo inlo llo ollor signaI.
- Can signaI llroo signaI slalos: IogicaI 1, IogicaI 0 and oIoclricaI IdIo.
- SmaIIor signaI sving moans Ioss povor consumplion on llo IinI.
DifferentiaI VoItages
Tlo difforonliaI drivor usos NRZ oncoding lo drivo llo soriaI bil slroam. Tlo dif-
foronliaI drivor oulpul consisls of lvo signaIs, D+ and D-. A IogicaI ono is sig-
naIod by driving llo D+ signaI ligl and llo D- signaI Iov, croaling a posilivo
voIlago difforonco bolvoon llo D+ and D- signaIs. A IogicaI Zoro is signaIod by
driving llo D+ signaI Iov and llo D- signaI ligl, croaling a nogalivo voIlago
difforonco bolvoon llo D+ and D- signaIs.
Tlo difforonliaI poaI-lo-poaI voIlago drivon by llo lransmillor V
TX-DIIIp-p
(soo
TabIo 12-1 on pago 477) is bolvoon 800 mV (minimum) and 1200 mV (max).
- IogicaI 1 is signaIod vill a posilivo difforonliaI voIlago.
- IogicaI 0 is signaIod vill a nogalivo difforonliaI voIlago.
During llo IinI oIoclricaI IdIo slalo, llo lransmillor drivos a difforonliaI poaI
voIlago V
TX-IDII-DIIIp
(soo TabIo 12-1 on pago 477) of bolvoon 0 mV and 20 mV.
In llis slalo, llo lransmillor may bo in llo Iov- or ligl-impodanco slalo.
Tlo rocoivor is abIo lo sonso a IogicaI 1, a IogicaI 0, as voII as llo oIoclricaI idIo
slalo of llo IinI by dolocling llo voIlago on llo IinI via a difforonliaI rocoivor
ampIifior. Duo lo signaI Ioss aIong llo IinI al ligl froquoncy, llo rocoivor musl
bo dosignod lo sonso an allonualod vorsion of llo difforonliaI signaI drivon by
PCI Express System Architecture
462
llo lransmillor. Tlo rocoivor sonsilivily is dofinod by llo difforonliaI poaI-lo-
poaI voIlago V
RX-DIIIp-p
(soo TabIo 12-2 on pago 480) of bolvoon 175 mV and
1200 mV.
DifferentiaI VoItage Notation
A difforonliaI signaI voIlago is dofinod by laIing llo difforonco in
llo voIlago on llo lvo conduclors, D+ and D-. Tlo voIlago vill rospocl lo
ground on oacl conduclor is V
D+
and V
D-
. Tlo difforonliaI voIlago is V
DIII
= V
D+
- V
D-
. Tlo Common Modo voIlago, V
CM
, is dofinod as llo moan voIl-
ago of D+ and D-. V
CM
= (V
D+
+ V
D-
) / 2.
In dofining difforonliaI voIlagos, llo spocificalion usos lvo paramolors: 1)
Tlo difforonliaI poaI-lo-poaI voIlago, and 2) llo DifforonliaI poaI voIlago.
Tloso voIlagos aro dofinod by llo foIIoving oqualions and aro iIIuslralod in
Iiguro 12-5 on pago 463.
- DifforonliaI IoaI VoIlago => V
DIIIp
= (max |V
D+
- V
D-
|). Assumo sym-
molric signaI sving.
- DifforonliaI IoaI-lo-IoaI VoIlago => V
DIIIp-p
= (2 max |V
D+
- V
D-
|).
Assumo symmolric signaI sving.
- IoaI Common Modo VoIlago => V
CMp
= (max |V
D+
+ V
D-
| / 2).
Tlo difforonliaI poaI voIlago is oasiIy ropro-
sonlod in a diagram as llo difforonliaI voIlago associalod vill signaIing a
IogicaI 1 or IogicaI 0.
Tlo difforonliaI poaI-lo-poaI voIl-
ago is nol oasiIy roprosonlod in a diagram. Ono can llinI of llo difforonliaI
poaI-lo-poaI voIlago as llo sum lolaI of llo difforonliaI voIlago for signaI-
ing a IogicaI 1 and for signaIing a IogicaI 0. Ono can llinI of llis voIlago as
llo lolaI voIlago sving a rocoivor oxporioncos bolvoon rocoiving a IogicaI 1
and rocoiving a IogicaI 0.
Tlo common modo voIlago is llo conlor voIl-
ago vill rospocl lo ground vlon llo D+ and D- signaIs cross-ovor ono
anollor, assuming lloso lvo signaIs aro symmolric. Wlon a difforonliaI
drivor doos nol drivo a difforonliaI voIlago, il drivos a common modo voIl-
ago vill boll D+ and D- signaIs al llo samo voIlago (llo signaIs do nol
sving).
Chapter 12: Electrical Physical Layer
463
- -
D+
D-
V
D+
V
D-
V
DIFFp
= max | V
D+
- V
D-
|
V
CM
= max | V
D+
- V
D-
| / 2
0 V
0 V
D-
0 V
V
DIFFp
V
CMp
D+
(Logical 1)
V
DIFFp
(Logical 0)
V
DIFFp-p
= 2 * max | V
D+
- V
D-
| = V
DIFFp (Logical 1)
+ V
DIFFp (Logical 0)
+
PCI Express System Architecture
464
EIectricaI IdIe
Tlo oIoclricaI idIo slalo of llo IinI is llo slalo vloroin llo lransmillor D+ and
D- voIlagos aro loId al a sloady, conslanl voIlago (llo common modo voIlago).
Tlis slalo is usod in povor savings slalos sucl as I0s and I1, as voII as llo IinI
Inaclivo or IinI DisabIo slalos.
Transmitter ResponsibiIity
A lransmillor llal vislos lo pIaco a IinI in llo oIoclricaI IdIo slalo musl firsl
lransmil llo oIoclricaI IdIo Ordorod-Sol slovn in Iiguro 12-6. Aflor doing so, llo
lransmillor musl go lo llo oIoclricaI IdIo slalo villin T
TX-IDII-SIT-TO-IDII
limo
(soo TabIo 12-1 on pago 477) vlicl is Ioss llal 20 UI (Unil InlorvaIs = 400ps, 20
UI = 8 ns). Tlo difforonliaI poaI voIlago drivon by llo lransmillor in llo oIoclri-
caI IdIo slalo is V
TX-IDII-DIIIp
(soo TabIo 12-1 on pago 477) vlicl is Ioss llan a
20mV poaI.
Tlo lransmillor can llon romain in llo Iov impodanco slalo or go lo llo ligl
impodanco slalo. Onco in llo oIoclricaI IdIo slalo, llo lransmillor musl romain in
llis slalo for a minimum of T
TX-IDII-MIN
(soo TabIo 12-1 on pago 477) vlicl is
50 UI (20ns).
To oxil oIoclricaI IdIo and rolurn llo IinI lo llo fuII-on I0 slalo vlon lransmis-
sion rosumos, llo lransmillor musl do so villin T
TX-IDII-TO-DIII-DATA
(soo
TabIo 12-1 on pago 477) vlicl is Ioss llal 20 UI (8ns). Tlo lransmillor sonds ITS
Ordorod-Sols or TS1/TS2 Ordorod sols lo lransilion llo IinI slalo from llo I0s
or I1 slalo, rospoclivoIy, bacI lo I0 fuII-on slalo.
COM
IDL
IDL
IDL
Encoding
K28.5
K28.3
K28.3
K28.3
Chapter 12: Electrical Physical Layer
465
Receiver ResponsibiIity
A rocoivor dolorminos llal llo IinI is going lo onlor oIoclricaI IdIo slalo vlon il
soos lvo oul of llo llroo IDIs of llo Ordorod-Sol. Tlo rocoivor do-galos llo
orror roporling Iogic lo provonl roporling orrors duo lo unroIiabIo aclivily on llo
IinI and aIso immodialoIy arms ils oIoclricaI IdIo Ixil doloclor.
A rocoivor is abIo lo dolocl an oxil from llo oIoclricaI IdIo slalo vlon il dolocls a
difforonliaI poaI-lo-poaI voIlago on llo IinI of groalor llan V
RX-IDII-DIT-DIIIpp
(soo TabIo 12-2 on pago 480) of 65mV. In llo oIoclricaI IdIo slalo, llo rocoivor III
viII ovor limo, Ioso cIocI synclronizalion bocauso llo rocoivor inpul is al a
sloady slalo voIlago. To oxil llo oIoclricaI IdIo slalo, a lransmillor sonds ITS or
TS1/TS2 Ordorod-Sols llal llo rocoivor usos lo acliovo Bil IocI and SymboI
IocI and lo rosync llo rocoivor III vill llo lransmillor.
Power Consumed When Link Is in EIectricaI IdIe State
In llo oIoclricaI IdIo slalo, llo IinI consumos Ioss povor bocauso lloro aro no
IinI voIlago lransilions llal occur and llo lransmillor can do-galo ils oulpul
slago. Tlo IinI is in oillor llo I0s, I1, or llo DisabIod slalo vliIo il romains in
llo oIoclricaI IdIo slalo. Tlo rocommondod povor consumod in I0s is Ioss llan
20mW/Iano, vliIo il is Ioss llan 5mW/Iano in llo I1 slalo. Tlo rocommondod
povor consumod por Iano in I0 is on llo ordor of 80mW.
EIectricaI IdIe Exit
A rocoivor dolocls oIoclricaI IdIo oxil vlon il rocoivos a vaIid difforonliaI voIlago
villin llo V
RX-DIIIp-p
of 175 mV - 1200 mV. A lransmillor lypicaIIy sonds TS1
Ordorod-Sols lo signaI oIoclricaI IdIo oxil lo a rocoivor.
Transmission Line Loss on Link
Tlo lransmillor drivos a minimum difforonliaI poaI-lo-poaI voIlago V
TX-DIIIp-p
of 800mV. Tlo rocoivor sonsilivily is dosignod for a minimum difforonliaI poaI-
lo-poaI voIlago (V
RX-DIIIp-p
) of 175 mV. Tlis lransIalos lo a 13.2dB Ioss budgol
llal a IinI is dosignod for. AIllougl a board dosignor can dolormino llo allon-
ualion Ioss budgol of a IinI pIollod againsl various froquoncios, llo lransmillor
and rocoivor oyo diagram moasuromonl aro llo uIlimalo dolorminanl of Ioss
budgol for a IinI. Iyo diagrams aro doscribod in IVDS Iyo Diagram on
pago 470. A lransmillor llal drivos up lo llo maximum aIIovod difforonliaI
poaI-lo-poaI voIlago of 1200mV can componsalo for a Iossy IinI llal las
vorsl-caso allonualion claraclorislics.
PCI Express System Architecture
466
AC CoupIing
ICI Ixpross roquiros AC coupIing capacilors bo pIacod in cIoso proximily lo llo
lransmillor on oacl Ianos difforonliaI signaI pair. Tlo AC coupIing capacilor,
C
TX
(soo TabIo 12-2 on pago 480), is of a vaIuo bolvoon 75nI and 200nI. Tlo
capacilors can bo inlogralod onlo llo syslom board, or inlogralod inlo llo dovico
ilsoIf. An add-in card vill a ICI Ixpross dovico on il musl oillor pIaco llo
capacilors on llo card in cIoso proximily lo llo lransmillor, or inlogralo llo
capacilors inlo llo ICI Ixpross siIicon.
Tlo AC coupIing capacilors oIiminalo DC common modo voIlago slaring
bolvoon lvo dovicos al opposilo onds of llo IinI. Tlis simpIifios llo dovico
dosign by aIIoving oacl dovico lo oporalo vill ils ovn lransmillor DC common
voIlago. Iacl dovico can oporalo vill ils ovn povor and ground pIano, indo-
pondonl of llo romolo dovico al llo opposilo ond of llo IinI.
De-Emphasis (or Pre-Emphasis)
ICI Ixpross ompIoys llo concopl of -- lo loIp roduco llo offocl of llo
inlor-symboI inlorforonco llal may occur, ospociaIIy on moro Iossy IinI lrans-
mission Iinos. Supporling llis mandalory foaluro roducos llo Bil Irror Ralo
(BIR).
What is De-Emphasis?
A lransmillod difforonliaI signaI is do-omplasizod vlon muIlipIo bils of llo
samo poIarily aro lransmillod bacI-lo-bacI as slovn in Iiguro 12-7 on pago 467.
Tlo Iiguro slov a lransmission of 1000010000. Somo ruIos roIalod lo signaI do-
omplasis aro:
- An individuaI bil (llal las llo opposilo poIarily of llo procoding bil) is nol
do-omplasizod. Il lransmillod al llo poaI-lo-poaI difforonliaI voIlago as
spocifiod by V
TX-DIIIp-p
(soo TabIo 12-1 on pago 477).
- Tlo firsl bil of a sorios of samo poIarily bils is aIso nol do-omplasizod.
- OnIy subsoquonl bils of llo samo poIarily aflor llo firsl bil (of llo samo
poIarily) aro do-omplasizod.
- Tlo do-omplasizod voIlago is 3.5dB nominaI (acluaIIy, llo 3dB - 4dB rango
is fino) Ioss llan llo pro-omplasizod voIlago V
TX-DIIIp-p-MIN
(soo TabIo 12-1
on pago 477). Tlo do-omplasizod voIlago lransIalos lo aboul 300mV diffor-
onliaI poaI-lo-poaI Ioss llan 800mV.
566mV (3dB) >= V
TX-DIIMIH-DIIIp-p-MIN
>= 505 mV (4 dB) (soo TabIo 12-1
on pago 477).
Chapter 12: Electrical Physical Layer
467
- Tlo Boacon signaI is do-omplasizod according lo a sIigllIy difforonl ruIo.
Soo Boacon SignaIing on pago 469.
What is the ProbIem Addressed By De-emphasis?
As bil lransmission froquoncios incroaso, llo bil-limo or Unil InlorvaI (UI)
docroasos. Al llo 2.5GBil/s lransmission ralo, llo Unil InlorvaI is a vory smaII
(400ps). Tlo capacilivo offocls on llo IinI lransmission Iino bocomo moro
apparonl. Tlo Iino capacilors (C
pad
+ C
inlorconnocl
+ C
TX
) sloro clargo. Wlon a
signaI las boon loId al a conslanl difforonliaI voIlago (as in lransmission of suc-
cossivo bils of llo samo poIarily), llo Iino capacilors clargo up. Tlo Iino doos
nol oasiIy clango voIlago vlon llo signaI poIarily las lo fIip immodialoIy lo llo
opposilo vaIuo. Tlis rosuIls in vlal is roforrod lo as - .
Considor llo oxampIo in Iiguro 12-8 on pago 468 vloroin a lransmillor sonds
llo bil pallorn 111101111. Tlo slring of llo firsl four IogicaI 1s clargos llo Iino
capacilors. Wlon llo lransmillor foIIovs llis slring vill a IogicaI 0, llo capaci-
lors cannol disclargo fasl onougl and llon clargo lo llo opposilo poIarily, so
llal llo rocoivor viII rogislor llo IogicaI 0. Tlo rosuIl is inlor-symboI inlorfor-
onco al llo rocoivor. A rocoivor oyo diagram vouId slov llo IonoIy IogicaI 0
vill a narrovor oyo.
--- --
1 0 0 0 0 1 0 0 0 0
=1 V
1.3V
0.7 V
3.5 dB
3.5 dB
1.225
0.775
=600mV =450mV
V
TX-DIFFp
De-emphasized Voltage Level
D-
D+
1 UI = 400 ps
De-emphasized
V
TX-DIFFp
V
TX-CMp
PCI Express System Architecture
468
SoIution
Rallor llan llinIing llal oacl subsoquonl bil lransmillod aflor llo firsl bil of
llo samo poIarily musl bo do-omplasizod by 3.5dB (llo ICI Ixpross spocifica-
lion profors lo uso llo lorm do-omplasis), llinI of llo firsl bil of a slring of samo
poIarily bils as boing pro-omplasizod by 3.5dB.
Considor llo soIulion in Iiguro 12-9. By pro-omplasizing llo IonoIy IogicaI 0
bil, llo lransmillor is givon sufficionl addilionaI drivo slrongll lo ovorcomo llo
capacilivo offocl of llo provious slring of IogicaI 1s.
- --
1 1 1 0? 1 1 1 1
Received Signal
Inter-Symbol Interference results in lost bit
D-
D+
1
?
1 1 1 0 1 1 1 1
D-
D+
1
Transmitted Signal
1 1 1 0 1 1 1 1
D-
D+
1 1 1 1 0 1 1 1 1
D-
D+
1
Transmitted Signal
De-emphasized (or Pre-emphasized)
Received Signal
Pre-emphasis of single 0 compensates for
line capacitance effect
Chapter 12: Electrical Physical Layer
469
ICI Ixpross dovico rocoivors aro dosignod lo dolocl difforonliaI signaIs llal aro
allonualod by llo IinI lransmission Iino by as mucl as 11-13.2dB from llo
lransmillod vaIuo. Tlo do-omplasis roquiromonl for llo lransmillod signaI is
dosignod lo accommodalo sysloms vill IinI lransmission Iinos llal lavo llis
vorsl-caso Ioss budgol. Of courso, for Iovor Ioss sysloms, lloro is moro voIlago
margin al a rocoivor llal rocoivos a do-omplasizod signaI.
Beacon SignaIing
GeneraI
A ICI Ixpross dovico llal is in llo I2 Iov povor slalo can gonoralo a vaIo up
ovonl lo inform llo syslom llal il vislos lo movo lo llo fuII-on I0 slalo. Tlo
Boacon signaIing moclanism is ono of lvo mollods a dovico may ompIoy lo
accompIisl llis. Tlo ollor mollod (soo WAKI# on pago 696) is via llo assor-
lion of llo WAKI# signaI (if il is supporlod by llo dovico).
WliIo a dovico is in llo I2 povor slalo, ils main povor sourco and cIocI aro
lurnod off (as doscribod in on pago 484). Hovovor, an auxiIiary povor sourco
(V
aux
) Ioops a Iimilod porlion of llo dovico povorod, incIuding llo vaIo up
signaIing Iogic.
Wlon in llo I2 Iov povor slalo, a dovnslroam dovico signaIs a vaIo
up signaI upslroam lo slarl llo I2 oxil soquonco. If a svilcl or bridgo rocoivos
llo Boacon signaI on ils dovnslroam porl, il musl forvard llo vaIo up ovonl lo
ils upslroam porl. Tlis can bo dono by oillor forvarding llo Boacon signaI lo
llo upslroam porl or by using WAKI# assorlion lo llo povor managomonl
Iogic. Soo WAKI# (AUX Iovor) on pago 643.
Wlon a dovicos IinI povor slalo is I2, ovon llougl llo main povor lo llo
dovico is povorod off, a Iimilod porlion of llo dovico is povorod by V
aux
. Tlo
povorod porlion of llo dovico aIIovs llo dovico lo signaI llo vaIo up ovonl via
llo Boacon. An upslroam dovico sucl as a svilcl, bridgo or Rool CompIox llal
is aIso in I2 povor slalo is abIo lo sonso llo Boacon bocauso llo rocoivor Boacon
signaI doloclion Iogic is aIso povorod by V
aux
.
Properties of the Beacon SignaI
- Il is a roIalivoIy Iov froquoncy, DC baIancod difforonliaI signaI consisling of
poriodic arbilrary dala vloroin llo puIso vidll of llo signaI is al Ioasl 2ns
bul no groalor llan 16s. A Iov froquoncy difforonliaI sino vavo may suf-
fico.
- Tlo maximum limo bolvoon puIsos can bo no Iargor llan 16s.
PCI Express System Architecture
470
- Tlo lransmillod Boacon signaI musl mool llo oIoclricaI voIlago spocifica-
lions documonlod in TabIo 12-1 on pago 477.
- Tlo signaI musl bo DC baIancod villin a maximum limo of 32s.
- Boacon signaIing, IiIo normaI difforonliaI signaIing, musl bo dono vill llo
lransmillor in llo Iov impodanco modo (50 Olm singIo-ondod, 100 Olms
difforonliaI impodanco).
- Wlon signaIod, llo Boacon signaI musl bo lransmillod on Iano 0, bul doos
nol lavo lo bo lransmillod on ollor Ianos.
- Will ono oxcoplion, llo lransmillod Boacon signaI musl bo do-omplasizod
according lo llo ruIos dofinod in llo provious soclion. Ior Boacon puIsos
groalor llan 500ns, llo Boacon signaI voIlago musl bo 6db do-omplasizod
from llo V
TX-DIIIp-p
spocificalion. Tlo Boacon signaI voIlago may bo do-
omplasizod by up lo 3.5dB for Boacon puIsos smaIIor llan 500ns.
LVDS Eye Diagram
Jitter, Noise, and SignaI Attenuation
As llo bil slroam lravoIs from llo lransmillor on ono ond of a IinI lo llo rocoivor
on llo ollor ond, il is subjocl lo llo foIIoving disruplivo infIuoncos:
- Dolorminislic (i.o., prodiclabIo) jillor inducod by llo IinI lransmission Iino.
- Dala-dopondonl jillor inducod by llo dynamic dala pallorns on llo IinI.
- Noiso inducod inlo llo signaI pair.
- SignaI allonlualion duo lo llo impodanco offocl of llo lransmission Iino.
The Eye Test
Rofor lo Iiguro 12-10 on pago 472. In ordor lo onsuro llal llo difforonliaI
rocoivor rocoivos an in-spocificalion signaI, an oyo losl is porformod. Tlo foIIov-
ing doscriplion of llo oyo diagram vas providod by }amos Idvards from an
arlicIo lo aullorod for . Tlo aullor of llis booI las addod somo
addilionaI commonls |in bracIols].
Tlo mosl common limo domain moasuromonl for a lransmission syslom is
llo oyo diagram. Tlo oyo diagram is a pIol of dala poinls ropolilivoIy sam-
pIod from a psoudo-random bil soquonco and dispIayod by an osciIIoscopo.
Tlo limo vindov of obsorvalion is lvo dala poriods vido. Ior a |ICI
Ixpross IinI running al 2.5Gbils/s], llo poriod is 400ps, and llo limo vin-
Chapter 12: Electrical Physical Layer
471
dov is sol lo 800ps. Tlo osciIIoscopo svoop is lriggorod by ovory dala cIocI
puIso. An oyo diagram aIIovs llo usor lo obsorvo syslom porformanco on a
singIo pIol.
To obsorvo ovory possibIo dala combinalion, llo osciIIoscopo musl oporalo
IiIo a muIlipIo-oxposuro camora. Tlo digilaI osciIIoscopo's dispIay porsis-
lonco is sol lo infinilo. Will oacl cIocI lriggor, a nov vavoform is moasurod
and ovorIaid upon aII provious moasurod vavoforms. To onlanco llo inlor-
prolalion of llo composilo imago, digilaI osciIIoscopos can assign difforonl
coIors lo convoy informalion on llo numbor of occurroncos of llo vavo-
forms llal occupy llo samo pixoI on llo dispIay, a procoss Inovn as coIor-
grading. Modorn digilaI sampIing osciIIoscopos incIudo llo abiIily lo maIo
a Iargo numbor of aulomalod moasuromonls lo fuIIy claraclorizo llo vari-
ous oyo paramolors.
Tlo osciIIoscopo is sol for infinilo-porsislonco and a pallorn gonoralor is sol up
lo gonoralo a psoudo-random dala pallorn.
OptimaI Eye
Tlo mosl idoaI roading vouId painl an oyo pallorn sucl as llal slovn in llo
conlor of Iiguro 12-10 on pago 472 (IaboIIod OplimaI Iyo Oponing). Il slouId
bo nolod, lovovor, llal as Iong as llo pallorn painlod rosidos lolaIIy villin llo
rogion nolod as NormaI, llo lransmillor and IinI aro villin loIoranco. Nolo
llal in lloso oyo diagrams, llo difforonliaI voIlago paramolors and vaIuos
slovn aro poaI difforonliaI voIlagos as opposod lo poaI-lo-poaI voIlagos docu-
monlod in llo spocificalion. Tlis is dono bocauso poaI difforonliaI voIlagos can
bo roprosonlod in an oyo diagram vloroas poaI-lo-poaI difforonliaI voIlagos
cannol bo roprosonlod in an oyo diagram. Soo Iiguro 12-13 on pago 475 for an
oxampIo osciIIoscopo scroon capluro of an oplimaI oyo.
Jitter Widens or Narrows the Eye Sideways
Rofor lo Iiguro 12-11 on pago 473. }illor viII causo a cIocI puIso lo occur oillor
boforo or aflor llo OplimaI Iyo Oponing rosuIling in an oyo oponing vidor or
narrovor lorizonlaIIy llan llo oplimaI vidll. Onco again, as Iong as llo
amounl of jillor doosnl causo llo vindov lo vidon boyond llo normaI zono, il
is sliII villin loIoranco. Tlo jillor spocificalion }
T
(soo TabIo 12-1 on pago 477) is
a maximum of 3 UIs. Soo Iiguro 12-14 on pago 476 for an oxampIo osciIIoscopo
scroon capluro of an Iyo Diagram sloving lov oul-of-spoc jillor causos lori-
zonlaI vidoning or narroving of llo oyo.
PCI Express System Architecture
472
Noise and SignaI Attenuation Heighten the Eye
Rofor lo Iiguro 12-12 on pago 474. Noiso or signaI allonualion viII causo llo sig-
naIs voIlago IovoI lo ovorslool or undorslool llo OplimaI Iyo Oponing
zono. As Iong as llo amounl of undorslool or ovorslool doosnl causo llo vin-
dov loigll lo dip boIov or oxlond abovo llo normaI zono, il is sliII villin loIor-
anco. Soo Iiguro 12-14 on pago 476 for an oxampIo osciIIoscopo scroon capluro of
an oyo diagram sloving lov significanl noiso or signaI allonualion causos llo
vorlicaI vidoning or narroving of llo oyo.
-
Overshoot
Undershoot
Eye Opening
Time
UI = 400ps, UI = Unit Interval
Normal
Normal
De-emphasized Eye
T
TX-EYE
J
T/2
J
T/2
3.5 dB
3.5 dB
Minimum Eye
Chapter 12: Electrical Physical Layer
473
-
3.5 dB
3.5 dB
Minimum Eye
Overshoot
Undershoot
Eye Opening
Time
UI = 400ps, UI = Unit Interval
Normal
Normal
De-emphasized Eye
T
TX-EYE
J
T/2
J
T/2
Horizontal eye closure or widening caused by jitter
PCI Express System Architecture
474
- -
3.5 dB
3.5 dB
Minimum Eye
Overshoot
Undershoot
Eye Opening
Time
UI = 400ps, UI = Unit Interval
Normal
Normal
De-emphasized Eye
T
TX-EYE
J
T/2
J
T/2
Vertical eye closure or widening caused by noise or signal attenuation
Chapter 12: Electrical Physical Layer
475
--
PCI Express System Architecture
476
-
--
Chapter 12: Electrical Physical Layer
477
Transmitter Driver Characteristics
GeneraI
TabIo 12-1 on llis pago Iisls llo lransmillor drivor claraclorislics.
--
- -
UI 400.12 399.88 ps Unil InlorvaI = llo bil limo. 400
ps nominaI.
T
TX-IYI
0.7 UI Minimum oyo vidll from
vlicl maximum jillor can bo
dorivod.
}
T
= 1 - T
TX-IYI
}
T
0.3 UI Maximum jillor spoc slovn in
Iiguro 12-11 on pago 473.
T
TX-RISI
T
TX-IAII
0.125 UI Riso and IaII limo for difforon-
liaI signaI moasurod al llo
20/80 voIlago poinl.
V
TX-DIIIp-p
1200 800 mV IoaI-lo-poaI difforonliaI voIl-
ago.
V
TX-DIIIp
600 400 mV HaIf of V
TX-DIIIp-p.
V
TX-DC-CM
3.6 0 V DC common modo voIlago.
V
TX-DIIMIH-DIIIp-p-MIN
566 505 mV Rango of minimum difforonliaI
poaI-lo-poaI voIlagos for do-
omplasizod bils. Tlis is a 3dB -
4dB do-omplasis from pro-
omplasizod V
TX-DIIIp-p-MIN
of
800mV.
I
TX-SHORT
90 mA TolaI curronl lransmillor can
provido vlon slorlod lo
ground.
PCI Express System Architecture
478
V
TX-IDII-DIIIp
20 0 mV IoaI difforonliaI voIlago undor
oIoclricaI IdIo slalo of IinI.
T
TX-IDII-MIN
50 UI Minimum limo a lransmillor
musl bo in oIoclricaI IdIo.
T
TX-IDII-SIT-TO-IDII
20 UI Timo aIIovod for lransmillor lo
mool oIoclricaI IdIo lransmillor
spocificalion aflor sonding oIoc-
lricaI IdIo Ordorod-Sol.
T
TX-IDII-TO-DIII-DATA
20 UI Maximum limo aIIovod for
lransmillor lo mool difforonliaI
lransmission spocificalion aflor
oIoclricaI IdIo oxil.
Z
TX-DIII-DC
120 80 Olms Transmillor difforonliaI modo
Iov impodanco. TypicaI vaIuo
is 100 Olms.
Z
TX-DC
40 Olms Roquiros minimum D+ and D-
Iino impodanco during aII
povor slalos.
C
TX
200 75 nI AC coupIing capacilor on oacl
Iano pIacod in cIoso proximily
lo lransmillor.
I
TX-SKIW
1.3 ns Maximum Iano-lo-Iano sIov
al lransmillor bolvoon any lvo
Ianos.
--
- -
Chapter 12: Electrical Physical Layer
479
Transmit Driver CompIiance Test and Measurement
Load
Tlo AC liming and voIlago paramolors slovn in TabIo 12-1 on pago 477 is moa-
surod villin 0.2 inclos from llo pacIago pins inlo llo losl Ioad slovn in Iiguro
12-15.
A 50 Olm probo, or a rosislor allaclod lo ground, vlon allaclod lo llo lransmil
signaI pair causos llo dovico lo go inlo llo CompIianco slalo of llo IinI Train-
ing and Slalus Slalo Maclino (ITSSM) (soo IoIIing.Configuralion SubSlalo on
pago 517). During llis slalo, llo dovico oulpuls llo compIianco pallorn vlicl
can bo usod for inloroporabiIily losling, IMI noiso losling, Iano-lo-Iano inlor-
foronco losling, Bil Irror Ralo dolorminalion, Transmil and Rocoivo Iyo moa-
suromonls, olc.
--
D+
D-
Transmitter
Silicon
C
TX
C
TX
50 Ohms
50 Ohms
Measurement at
Package Pins
Test Fixture
PCI Express System Architecture
480
Input Receiver Characteristics
TabIo 12-2 on llis pago Iisls llo inpul rocoivor claraclorislics. Tlo rocoivor Iyo
Diagram in Iiguro 12-16 on pago 481 iIIuslralos somo of llo paramolors Iislod in
TabIo 12-2.
--
- -
UI 400.12 399.88 ps Unil InlorvaI =llo bil limo. 400ps nom-
inaI.
T
RX-IYI
0.4 UI Minimum oyo vidll from vlicl max-
imum jillor is dorivod.
}
T
= 1 - T
RX-IYI
}
T
0. UI Maximum jillor spoc.
V
RX-DIIIp-p
1200 175 mV IoaI-lo-poaI difforonliaI voIlago son-
silivily of rocoivor.
V
RX-DIIIp
600 88 mV HaIf of V
RX-DIIIp-p.
V
RX-IDII-DIT-
DIIIp-p
175 65 mV Tlis is llo oIoclricaI IdIo dolocl llrosl-
oId voIlago. Any voIlago Ioss llan
65mV poaI-lo-poaI impIios llal llo
IinI is in oIoclricaI IdIo.
Z
RX-DIII-DC
120 80 Olms Rocoivor DC difforonliaI modo impod-
anco. 100 Olms nominaI.
Z
RX--DC
60 40 Olms Roquiros minimum D+ and D- Iino
impodanco during aII povor slalos.
Z
RX--HIGH-IMI-DC
200I Olms Roquiros minimum D+ and D- Iino
impodanco vlon llo rocoivor lormina-
lions do nol lavo povor (o.g., in llo I2
Iov povor slalo, or during Iundamon-
laI Rosol).
I
RX-SKIW
20 ns Iano-lo-Iano sIov llal a rocoivor
musl bo abIo lo componsalo for.
Chapter 12: Electrical Physical Layer
481
EIectricaI PhysicaI Layer State in Power States
Iiguro 12-17 on pago 482 llrougl Iiguro 12-21 on pago 486 iIIuslralo llo oIoclri-
caI slalo of llo IlysicaI Iayor vliIo llo IinI is in various povor managomonl
slalos.
T
RX-EYE-MIN
= 0.4 UI
V
RX-DIFFp-MIN
= 88 mV
V
RX-CM-DC
= 0 V
PCI Express System Architecture
482
+
-
Receiver
ON
Transmitter
ON
C
TX
C
TX
Z
TX
Z
RX
Z
RX
Z
TX
Z
TX
Z
TX
Lane in
one
direction
Clock
Source
Clock
Source
V
CM
Detect
V
RX-CM
= 0 V
D+
D-
D+
D-
2.5 Gbits/s transmission reception in progress
Recommended Power Budget <= 80 mW per Lane
Only one direction of the Link need be in L0
Transmitter and Receiver clock PLL are ON
Transmitter is On, Receiver is ON
Low impedance termination at transmitter
ON
ON
Low impedance
termination
Low impedance
termination
Chapter 12: Electrical Physical Layer
483
-
+
-
Receiver
ON
Transmitter
ON
C
TX
C
TX
Z
TX
Z
RX
Z
RX
Z
TX
Z
TX
Z
TX
Lane in
one
direction
Clock
Source
Clock
Source
V
CM
Detect
V
RX-CM
= 0 V
D+
D-
D+
D-
Transmitter holds line at Electrical Idle state. V
TX-DIFFp
< 20 mV
Transmitter holds line at DC common mode voltage V
TX-CM-DC
0 3.6 V
Recommended Power Budget <= 20 mWper Lane
Recommended L0s -> L0 exit latency < 50 ns
Only one direction of the Link need be in L0s
Transmitter and Receiver clock PLL are ON but Rx Clock loses sync
Transmitter is On, Receiver is ON
High or Low impedance termination at transmitter
ON
ON
High or Low
impedance termination
Low impedance
termination
Held at 0 - 3.6 V DC common mode voltage
PCI Express System Architecture
484
+
-
Receiver
ON
Transmitter
ON
C
TX
C
TX
Z
TX
Z
RX
Z
RX
Z
TX
Z
TX
Z
TX
Lane in
one
direction
Clock
Source
Clock
Source
V
CM
Detect
V
RX-CM
= 0 V
D+
D-
D+
D-
Transmitter holds line at Electrical Idle state. V
TX-DIFFp
< 20 mV
Transmitter holds line at DC common mode voltage V
TX-CM-DC
0 3.6 V
Recommended Power Budget <= 5 mWper Lane
Recommended L1 -> L0 exit latency < 10 microsecond
Both directions of the Link in L1
Transmitter and Receiver clock PLL may be OFF, but clock to device ON
Transmitter is On, Receiver is ON
High or Low impedance termination at transmitter
May be OFF
High or Low
impedance termination
Low impedance
termination
Held at 0 - 3.6 V DC common mode voltage
May be OFF
Chapter 12: Electrical Physical Layer
485
+
-
Receiver
OFF
Transmitter
OFF
C
TX
C
TX
Z
TX
Z
RX
Z
RX
Z
TX
Z
TX
Z
TX
Lane in
one
direction
Clock
Source
Clock
Source
V
CM
Detect
V
RX-CM
= 0 V
D+
D-
D+
D-
Transmitter holds line at Electrical Idle state. V
TX-DIFFp
< 20 mV
Transmitter not required to hold DC common mode voltage. Most likely OFF
Recommended Power Budget <= 1 mWper Lane
Recommended L2 -> L0 exit latency < 12 - 50 millisecond
Both directions of the Link in L2
Transmitter and Receiver clock PLL OFF, and clock to device OFF
Low frequency clock for Beacon in transmitter ON
Main power to device OFF, but Vaux ON
Transmitter is OFF, Receiver is OFF
High or Low impedance termination at transmitter
High impedance termination at receiver
OFF
Low frequency
for Beacon ON
High or Low
impedance termination
High impedance
termination
DC common mode voltage not required
Most likely OFF
OFF
PCI Express System Architecture
486
+
-
Receiver
OFF
Transmitter
OFF
C
TX
C
TX
Z
TX
Z
RX
Z
RX
Z
TX
Z
TX
Z
TX
Lane in
one
direction
Clock
Source
Clock
Source
V
CM
Detect
V
RX-CM
= 0 V
D+
D-
D+
D-
Transmitter does not hold DC common mode voltage
Recommended Power Budget : 0 mW per Lane
Recommended L3 -> L0 exit latency < 12 - 50 millisecond after power turned ON
No automatic device initiated wake up mechanism
Both directions of the Link in L3
Transmitter and Receiver clock PLL OFF, and clock to device OFF
Low frequency clock for Beacon in transmitter OFF
Main power to device OFF, Vaux OFF
Transmitter is OFF, Receiver is OFF
High impedance termination at transmitter and receiver
OFF
Low frequency
for Beacon OFF
High impedance
termination
High impedance
termination
DC common mode voltage OFF
OFF
- -
The Previous Chapter
Tlo provious claplor doscribos llo IIoclricaI IlysicaI Iayor. Il doscribos llo
anaIog claraclorislics of llo difforonliaI drivors and rocoivors llal connocl a ICI
Ixpross dovico lo llo IinI. Timing and drivor/rocoivor paramolors aro docu-
monlod in llal claplor.
This Chapter
Tlis claplor doscribos 3 lypos of syslom rosol gonoralion capabiIilios: coId rosol,
varm rosol and lol rosol. Tlo claplor aIso doscribos llo usago of a sido-band
rosol signaI caIIod IIRST#. Il doscribos llo usago of llo TS1 Ordorod-Sol lo gon-
oralo an in-band Hol Rosol. Tlo offocl of rosol on a dovico and syslom is
doscribod.
The Next Chapter
Tlo noxl claplor doscribos llo funclion of llo IinI Training and Slalus Slalo
Maclino (ITSSM) of llo IlysicaI Iayor. Tlo claplor doscribos llo iniliaIizalion
procoss of llo IinI from Iovor-On or Rosol, unliI llo fuII-on I0 slalo, vloro
lraffic on llo IinI can bogin. In addilion, llo claplor doscribos llo Iovor povor
managomonl slalos I0s, I1, I2, I3 and briofIy doscribos onlry and oxil proco-
duro lo/from lloso slalos.
Two Categories of System Reset
Tlo ICI Ixpross spocificalion doscribos lvo rosol gonoralion moclanisms. Tlo
firsl moclanism is a syslom gonoralod rosol roforrod lo as -.
Tlo socond moclanism is an In-band Rosol (communicalod dovnslroam via llo
IinI from ono dovico lo anollor) roforrod lo as llo -.
-- -
FundamentaI Reset
IundamonlaI Rosol causos a dovicos slalo maclinos, lardvaro Iogic, porl slalos
and configuralion rogislors (oxcopl slicIy rogislors of a dovico llal can drav
vaIid V
aux
) lo iniliaIizo lo lloir dofauIl condilions.
Tloro aro lvo lypos of IundamonlaI Rosol:
- -. Tlis is a rosol gonoralod as a rosuIl of appIicalion of main
povor lo llo syslom.
- - Triggorod by lardvaro villoul llo romovaI and ro-appIica-
lion of main povor. A Warm Rosol couId bo lriggorod duo lo loggIing of llo
syslom IOWIRGOOD signaI vill llo syslom povor slabIo. Tlo mocla-
nism for gonoraling a Warm Rosol is nol dofinod by spocificalion. Il is up lo
llo syslom dosignor lo oplionaIIy provido a moclanism lo gonoralo a Warm
Rosol.
Wlon IundamonlaI Rosol is assorlod:
- Tlo rocoivor lorminalions aro roquirod lo mool llo Z
RX-HIGH-IMI-DC
param-
olor of 200 IOlms minimum (soo TabIo 12-2 on pago 480).
- Tlo lransmillor lorminalions aro roquirod lo mool llo oulpul impodanco al
minimum Z
TX-DC
(soo TabIo 12-1 on pago 477) of 40 Olms, bul may pIaco
llo drivor in a ligl impodanco slalo.
- Tlo lransmillor loIds a conslanl DC common modo voIlago bolvoon 0 V
and 3.6 V.
Aflor IundamonlaI Rosol Ixil:
- Tlo rocoivor musl ro-onabIo ils rocoivor lorminalions Z
RX-DIII-DC
(soo
TabIo 12-2 on pago 480) of 100 Olms villin 5 ms of IundamonlaI Rosol oxil.
Tlo rocoivor is nov roady lo dolocl oIoclricaI signaIing on llo IinI.
- Aflor IundamonlaI Rosol oxil, llo IinI Training slalo maclino onlors llo
Dolocl slalo and llo lransmillor is roady lo dolocl llo prosonco of a rocoivor
al llo ollor ond of llo IinI.
- Tlo lransmillor loIds a conslanl DC common modo voIlago bolvoon 0 V
and 3.6 V.
- -
Processor
Root Complex
DDR
SDRAM
IO Controller Hub
(ICH)
IEEE
1394
PCI Express
GFX
PCI
PCI Express
Add-In Add-In
GFX
FSB
PCI Express
Link
Switch
PCI Express
to-PCI-X
PCI-X
SCSI
Gigabit
Ethernet
PERST#
PRST#
PRST#
POWERGOOD
- -
pago 544). Tlo Hol Rosol TS1 Ordorod-Sols aro gonoralod conlinuousIy for 2 ms
and llon llo dovico oxils lo llo Dolocl slalo vloro il is roady lo slarl llo IinI
lraining and iniliaIizalion procoss.
Tlo rocoivor (dovnslroam dovico) of llo Hol Rosol TS1 Ordorod-Sols viII onlor
llo Hol Rosol slalo llrougl llo Rocovory slalo. Il oxils lo llo Dolocl slalo if il
rocoivos al Ioasl lvo Hol Rosol TS1 Ordorod-Sols. Boll upslroam and dovn-
slroam dovicos aro iniliaIizod and ond up in llo Dolocl slalo from vlicl lloy aro
roady lo boing IinI lraining and iniliaIizalion. If llo dovnslroam dovico is a
svilcl or bridgo, il passos on llo Hol Rosol lo ils dovnslroam porls or bus.
- - - -
Reserved
Prefetchable Base
Upper 32 Bits
Prefetchable Limit
Upper 32 Bits
Header
Type
Expansion ROM Base Address
Base Address 0
Base Address 1
Vendor
ID
Device
ID
Latency
Timer
00
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
Revision
ID
Class Code
Interrupt
Line
Interrupt
Pin
BIST
Status
Register
Command
Register
Required configuration registers
Doubleword
Number
(in decimal)
I/O Base
Upper 16 Bits
I/O Limit
Upper 16 Bits
Primary
Bus Number
Secondary
Bus Number
Subordinate
Bus Number
Secondary
Latency Timer
I/O
Base
I/O
Limit
Memory
Base
Memory
Limit
Prefetchable
Memory Base
Prefetchable
Memory Limit
Secondary
Status
Bridge
Control
Cache
Line
Size
0 1 2 3
Byte
Capability
Pointer
15 0 1 2 3 4 5 6 7 8
SERR# Enable
Parity Error Response
Fast Back-to-Back Enable
Secondary Bus Reset
Master Abort Mode
VGA Enable
ISA Enable
Primary Discard Timeout
Secondary Discard Timeout
Discard Timer Status
Discard Timer SERR# Enable
12 11 10 9
2.2 2.2 2.2 2.2 Reserved
-- -
- - -
Processor Processor
Root Complex
GFX
DDR
SDRAM
10Gb
Ethernet
PCI Express
to-PCI
PCI
SCSI
IEEE
1394
Gb
Ethernet
Switch A Switch C
Switch B
PCI Express
GFX
FSB
S
IO
COM1
COM2
S
IO
COM1
COM2
Add-In
Slots
1
Secondary Bus Reset
Bit Set
- -
- - - -
Processor Processor
Root Complex
GFX
DDR
SDRAM
10Gb
Ethernet
PCI Express
to-PCI
PCI
SCSI
IEEE
1394
Gb
Ethernet
Switch A Switch C
Switch B
PCI Express
GFX
FSB
S
IO
COM1
COM2
S
IO
COM1
COM2
Add-In
Slots
1
Secondary Bus Reset
Bit is Set
PRST#
-- -
Reset Exit
Aflor oxiling llo rosol slalo, IinI lraining and iniliaIizalion musl bogin villin
80 ms. Dovicos may oxil llo rosol slalo al difforonl limos, sinco rosol signaIing is
asynclronous. Tlis moans llal in facl lvo dovicos on opposilo onds of llo IinI
vlo aro rosol may nol slarl llo IinI lraining procoss al llo samo limo.
Aflor IinI Training and IniliaIizalion oacl dovico procoods llrougl IIov Con-
lroI iniliaIizalion for VC0, maIing il possibIo for TIIs and DIIIs lo bo lrans-
forrod across llo IinI.
To aIIov compononls vlo lavo boon rosol lo porform inlornaI iniliaIizalion,
syslom soflvaro musl vail for al Ioasl 100 ms from llo ond of a rosol (coId/
varm/lol) boforo issuing Configuralion Roquosls lo ICI Ixpross dovicos. To bo
soflvaro visibIo, dovicos musl bo roady lo rocoivo configuralion roquosl aflor
100 ms from llo ond of Rosol. Tlo spocificalion doos nol addross lov soflvaro
moasuros llis vail limo of 100 ms. Il couId bo as simpIo as soflvaro slarls a sofl-
varo Ioop al llo ond of vlicl llo firsl configuralion roquosl is inilialod.
If soflvaro inilialos a configuralion roquosl lo a dovico aflor llo 100 ms vail
limo from llo ond of Rosol and llo dovico is nol dono vill ils inlornaI iniliaIiza-
lion, il musl al Ioasl rolurn a compIolion TII, vill a compIolion slalus of Con-
figuralion Roquosl Rolry Slalus (CRRS). Tlo compIolion is rolurnod lo llo rool
compIox vlo inilialod llo configuralion roquosl on llo bolaIf of llo CIU. Tlo
compIolion TII lorminalos llo configuralion roquosl. Iillor llo rool compIox
may ro-issuo llo configuralion roquosl or lavo llo CIU rolry llo roquosl again.
Tlo Rool CompIox and/or syslom soflvaro musl aIIov 1.0 socond (+50/-0)
aflor a rosol boforo il may dolormino llal a dovico vlicl faiIs lo rolurn a suc-
cossfuI CompIolion slalus for a vaIid Configuralion Roquosl is broIon. Tlis
doIay is anaIogous lo llo Trlfa paramolor spocifiod for ICI/ICI-X, and is
inlondod lo aIIov sufficionl limo for dovicos lo compIolo soIf iniliaIizalion.
- -
-
0 Comma K28.5 Tlis is llo COM (Comma) symboI.
1 0-255 D0.0 - D31.7,
K23.7 (IAD)
IinI Numbor. Usos llo IAD symboI
vlon lloro is no IinI Numbor lo
communicalo.
2 0-31 D0.0 - D31.0,
K23.7 (IAD)
Iano Numbor. Uso llo IAD symboI
vlon no lloro is no Iano Numbor lo
communicalo.
3 0-255 D0.0 - D31.7 N_ITS. Tlis is llo numbor of ITS
Ordorod-Sols roquirod by rocoivor lo
oblain Bil and SymboI IocI during
oxil from llo I0s slalo.
Chapter 14: Link Initialization & Training
507
EIectricaI IdIe Ordered-Set
Tlo IIoclricaI IdIo Ordorod-Sol consisls of four symboIs, slarling vill llo COM
symboI and foIIovod by llroo IDI symboIs. Tlis Ordorod-Sol is lransmillod lo a
rocoivor prior lo llo lransmillor pIacing ils lransmil laIf of llo IinI in llo IIoc-
lricaI IdIo slalo. Tlo rocoivor dolocls llis Ordorod-Sol, do-galos ils orror doloc-
lion Iogic and proparos for llo IinI lo go lo llo IIoclricaI IdIo slalo. SlorlIy aflor
lransmilling llo IIoclricaI IdIo Ordorod-Sol, llo lransmillor drivos a difforonliaI
voIlago of Ioss llan 20mV poaI. Ior moro dolaiIs on IIoclricaI IdIo Ordorod-Sol
usago and llo IIoclricaI IdIo IinI slalo, soo IIoclricaI IdIo on pago 464 .
FTS Ordered-Set
Tlo ITS Ordorod-Sol consisls of four symboIs, slarling vill llo COM symboI
and foIIovod by llroo ITS symboIs. A lransmillor llal vislos lo lransilion llo
slalo of ils IinI from llo I0s Iov povor slalo (IIoclricaI IdIo) lo llo I0 slalo
sonds a dofinod numbor of ITS Ordorod-Sols lo llo rocoivor. Tlo minimum
numbor of ITS Ordorod-Sols llal llo lransmillor musl sond lo llo rocoivor is
sonl lo llo lransmillor by llo rocoivor during IinI lraining and iniliaIizalion.
Soo TS1 and TS2 Ordorod-Sols on pago 505, SymboI 3.
4 2 D2.0 Dala Ralo Idonlifior:
- Bil 0 = Rosorvod.
- Bil 1 = 1, Gonoralion1 (2.5Gbils/s).
- Bils 7:2 = Rosorvod.
5 Bil 0 = 0,1
Bil 1 = 0,1
Bil 2 = 0,1
Bil 3 = 0,1
Bil 4:7 = 0
D0.0, D1.0, D2.0,
D4.0, D8.0
Training ConlroI. 0=Do-assorl, 1 =
Assorl:
- Bil 0 - Hol Rosol,
- Bil 1 - DisabIo IinI
- Bil 2 - InabIo IoopbacI
- Bil 3 - DisabIo ScrambIing
- Bil 4:7 - Rosorvod, Sol lo 0
6-15 D10.2 for TS1 ID
D5.2 for TS2 ID
TS1/TS2 Ordorod-Sol Idonlifior.
-
-
PCI Express System Architecture
508
SKIP Ordered-Set
Tlo SIip Ordorod-Sol consisls of four symboIs, slarling vill llo COM symboI
and foIIovod by llroo SKI symboIs. Il is lransmillod al roguIar inlorvaIs from
llo lransmillor lo llo rocoivor and is usod for CIocI ToIoranco Componsalion as
doscribod in Insorling CIocI Componsalion Zonos on pago 436 and Rocoivor
CIocI Componsalion Iogic on pago 442.
Link Training and Status State Machine (LTSSM)
GeneraI
Iiguro 14-5 on pago 510 iIIuslralos llo lop-IovoI slalos of llo IinI Training and
Slalus Slalo Maclino (ITSSM). Iacl slalo consisls of subslalos llal, laIon
logollor, compriso llal slalo. Tlo firsl ITSSM slalo onlorod aflor oxiling Iunda-
monlaI Rosol (CoId or Warm Rosol) or Hol Rosol is llo Dolocl slalo.
Tlo ITSSM consisls of 11 lop-IovoI slalos: Dolocl, IoIIing, Configuralion, Rocov-
ory, I0, I0s, I1, I2, Hol Rosol, IoopbacI, and DisabIo. Tloso slalos can bo
groupod inlo fivo calogorios:
1. Tlo IinI Training slalos.
2. A IinI Ro-Training Slalo.
3. Tlo Iovor Managomonl slalos.
4. Tlo Aclivo Iovor Managomonl slalos, and
5. Ollor slalos.
Upon any lypo of Rosol oxil, llo fIov of llo ITSSM is llrougl llo foIIoving
--:
Dolocl => IoIIing => Configuralion => I0
Chapter 14: Link Initialization & Training
509
If a IinI orror occurs vliIo in llo I0 slalo and il rondors llo IinI inoporabIo,
llo ITSSM lransilions lo llo - (llo Rocovory slalo). In llis
slalo, llo IinI is rolrainod and rolurnod lo normaI oporalion (i.o., llo I0 slalo).
A IinI llal is pIacod in a Iov povor slalo (sucl as I1 or I2), rolurns lo llo I0
slalo via llo Rocovory slalo.
Willoul any ligl-IovoI soflvaro invoIvomonl, if lloro aro no pacIols lransmil-
lod on llo IinI (i.o., if llo IogicaI IdIo Soquonco is lransmillod) and a limo-oul
occurs, llo dovico may pIaco ils IinI inlo a Iov povor slalo sucl as I0s or I1.
Tloso aro llo slalos.
Iovor managomonl soflvaro may pIaco a dovico inlo ono of llo Iovor dovico
povor slalos sucl as D1, D2, D3
Hol
or D3
CoId
. Doing so causos llo IinI lo lran-
silion from I0 lo ono of llo Iovor -- sucl as I1 or I2.
WliIo in llo Configuralion or llo Rocovory slalo, a IinI can bo diroclod lo onlor
llo DisabIo slalo or llo IoopbacI slalo. WliIo in llo Rocovory slalo, a dovico
llal rocoivos llo IIoclricaI IdIo Ordorod-Sol lransils llrougl llo Hol Rosol slalo
boforo going lo llo Dolocl slalo. Tlo llroo slalosDisabIo, IoopbacI, and Hol
Rosolaro parl of llo -- group.
PCI Express System Architecture
510
-
Chapter 14: Link Initialization & Training
511
Overview of LTSSM States
BoIov is a briof doscriplion of llo 11 ITSSM slalos:
- Tlis is llo iniliaI slalo aflor rosol. WliIo llo spoc slalos llal llo
ITSSM may aIso onlor llo Dolocl slalo as diroclod by llo Dala IinI Iayor, il
doos nol indicalo undor vlal circumslancos llis vouId occur. In llis slalo, a
dovico dolocls llo prosonco or absonco of a dovico connoclod al llo far ond
of llo IinI. Tlo Dolocl slalo may aIso bo onlorod from a numbor of ollor
ITSSM slalos as doscribod Ialor in llis claplor.
- Tlo foIIoving condilions aro oslabIislod during llo IoIIing slalo:
Bil IocI.
SymboI IocI.
Iano IoIarily.
Iano Dala Ralo.
CompIianco losling aIso occurs in llis slalo.
During compIianco losling, llo lransmillor oulpuls a spocifiod compIi-
anco pallorn. Tlis is inlondod lo bo usod vill losl oquipmonl lo vorify
llal aII of llo voIlago, noiso omission and liming spocificalions aro
villin loIoranco. During llo IoIIing slalo, a dovico lransmils TS1 and
TS2 Ordorod-Sols and rosponds lo rocoivod TS1 and TS2 Ordorod-Sols.
Higlor bil ralo supporl is advorlisod via llo oxclango of TS1 and TS2
Ordorod-Sols vill llo Ralo ID fioId = llo liglosl supporlod ralo.
- Tlo foIIoving condilions aro oslabIislod during llo Config-
uralion slalo:
IinI vidll.
IinI Numbor.
Iano rovorsaI.
IoIarily invorsion (if nocossary).
Iano-lo-Iano do-sIov is porformod.
Boll lransmillor and rocoivor aro communicaling al llo nogolialod dala
ralo (as of 6/16/03, llo gonoralion 1 dala ralo of 2.5Gb/s). During llis
slalo, scrambIing can bo disabIod, llo DisabIo and IoopbacI slalos can
bo onlorod, and llo numbor of ITS Ordorod-Sols roquirod lo lransilion
from llo I0s slalo lo llo I0 slalo is oslabIislod.
- Tlis is llo normaI, fuIIy aclivo slalo of a IinI during vlicl TIIs,
DIIIs and IIIs can bo lransmillod and rocoivod.
- Tlis slalo is onlorod from llo I0 slalo duo lo an orror llal rondors
llo IinI inoporabIo. Rocovory is aIso onlorod from llo I1 slalo vlon llo
IinI noods ro-lraining boforo il lransilions lo llo I0 slalo. In Rocovory, Bil
IocI and SymboI IocI aro ro-oslabIislod in a mannor simiIar lo llal usod in
PCI Express System Architecture
512
llo IoIIing slalo. Hovovor, llo limo lo lransilion llrougl llis slalo is mucl
slorlor llan laving lo go llrougl llo IoIIing slalo and llon lransilioning lo
llo I0 slalo. Iano-lo-Iano do-sIov is porformod. Tlo numbor of ITS
Ordorod-Sols roquirod lo lransilion from llo I0s slalo lo llo I0 slalo is ro-
oslabIislod.
- - Tlis is a Iov povor, Aclivo Iovor Managomonl slalo. Il laIos a vory
slorl limo (in llo ordor of 50ns) lo lransil from llo I0s slalo bacI lo llo I0
slalo (bocauso llo ITSSM doos nol lavo lo go llrougl llo Rocovory slalo).
Tlis slalo is onlorod aflor a lransmillor sonds and llo romolo rocoivor
rocoivos IIoclricaI IdIo Ordorod-Sols vliIo in llo I0 slalo. Ixil from llo I0s
slalo lo llo I0 slalo invoIvos sonding and rocoiving ITS Ordorod-Sols.
Wlon lransilioning from I0s oxil lo I0, Iano-lo-Iano do-sIov musl bo por-
formod, and Bil and SymboI IocI musl bo ro-oslabIislod.
- Tlis is an ovon Iovor povor slalo llan I0s. I1 oxil Ialoncy (via Rocov-
ory) is Iongor comparod lo I0s oxil Ialoncy (soo IIoclricaI IlysicaI Iayor
Slalo in Iovor Slalos on pago 481). Inlry inlo I1 can occur in ono of lvo
vays:
Tlo firsl is aulomalic and doos nol invoIvo liglor-IovoI soflvaro. A
dovico vill no scloduIod TIIs or DIIIs lo lransmil can aulomalicaIIy
pIaco ils IinI in llo I1 slalo aflor firsl boing in llo I0 slalo (vliIo llo
dovico romains in llo D0 povor slalo).
Tlo socond is as a rosuIl of commands rocoivod from llo povor man-
agomonl soflvaro pIacing a dovico inlo a Iovor povor dovico slalo (D1,
D2, or D3
Hol
). Tlo dovico aulomalicaIIy pIacos ils IinI in llo I1 slalo.
- Tlis is llo Iovosl povor slalo. Mosl of llo lransmillor and rocoivor Iogic
is povorod dovn (vill llo oxcoplion of llo rocoivor lorminalion, vlicl
musl bo povorod for llo rocoivor lo bo in a Iov impodanco slalo). Main
povor and llo cIocI aro nol guaranlood, llougl V
aux
povor is avaiIabIo.
Wlon Boacon supporl is roquirod by llo associalod syslom or form faclor
spocificalion, an upslroam porl llal supporls llis vaIoup capabiIily musl
bo abIo lo sond llo Boacon signaI and a dovnslroam porl musl bo abIo lo
dolocl llo Boacon signaI (soo Boacon SignaIing on pago 469). Boacon sig-
naIing or llo WAKI# signaI is usod by a dovico in llo D3
CoId
slalo lo lriggor
a syslom vaIoup ovonl (i.o., a roquosl for main povor suppIy ro-aclivalion).
Anollor povor slalo dofinod by llo spocificalion is llo I3 slalo, bul llis
slalo doos nol roIalo lo llo ITSSM slalos. Tlo I3 IinI slalo is llo fuII-off
slalo vloro llo V
aux
povor signaI is nol avaiIabIo. A dovico in I3 cannol
lriggor a vaIoup ovonl unIoss povor is ro-appIiod lo llo dovico llrougl
somo ollor moclanism.
- Tlis slalo is usod as a losl and fauIl isoIalion slalo. OnIy onlry
and oxil of llis slalo is spocifiod. Tlo dolaiIs of vlal occurs in llis slalo aro
unspocifiod. Tosling can occur on a por Iano basis or on llo onliro config-
Chapter 14: Link Initialization & Training
513
urod IinI. Tlo IoopbacI Maslor dovico sonds TS1 Ordorod-Sols lo llo
IoopbacI SIavo vill llo IoopbacI bil sol in llo TS1 Training ConlroI fioId.
Tlo IoopbacI SIavo onlors IoopbacI vlon il rocoivos lvo consoculivo TS1
Ordorod-Sols vill llo IoopbacI bil sol. Hov llo IoopbacI Maslor onlors
inlo llo IoopbacI slalo is dovico spocific. Onco in llo IoopbacI slalo, llo
Maslor can sond any pallorn of symboIs, as Iong as llo 8b/10b oncoding
ruIos aro foIIovod.
- - Tlis slalo aIIovs a configurod IinI lo bo disabIod (o.g., duo lo a
surpriso romovaI of llo romolo dovico). In llis slalo, llo lransmillor drivor
is in llo oIoclricaI ligl impodanco slalo and llo rocoivor is onabIod and in
llo Iov impodanco slalo. Soflvaro commands a dovico lo onlor llo DisabIo
slalo by solling llo DisabIo bil in llo IinI ConlroI rogislor. Tlo dovico llon
lransmils 16 TS1 Ordorod-Sols vill llo DisabIo IinI bil sol in llo TS1 Train-
ing ConlroI fioId. A connoclod rocoivor is DisabIod vlon il rocoivos TS1
Ordorod-Sols vill llo DisabIo IinI bil sol.
- - Tlis slalo is onlorod vlon diroclod lo do so by a dovicos liglor
Iayor, or vlon a dovico rocoivos lvo, consoculivo TS1 Ordorod-Sols vill llo
Hol Rosol bil sol in llo TS1 Training ConlroI fioId (soo In-Band Rosol or
Hol Rosol on pago 491).
DetaiIed Description of LTSSM States
Tlo subsoclions llal foIIov provido a doscriplion of oacl of llo ITSSM slalos.
Mosl of llo 11 ITSSM slalos aro dividod inlo lvo or moro subslalos. SubSlalo
diagrams aro usod in llo dicussions llal foIIov lo iIIuslralo llo subslalos.
Detect State
Tlis slalo is llo iniliaI slalo al povor-on limo aflor a IundamonlaI Rosol or aflor
a Hol Rosol command gonoralod by llo Soflvaro Iayor. Inlry inlo llis slalo
musl occur villin 80ms of Rosol as doscribod in Rosol Ixil on pago 496. Tlo
Dolocl slalo can aIso bo onlorod from llo DisabIo, IoopbacI or I2 slalos. Tlo
Dolocl slalo is onlorod if llo Configuralion, Rocovory or IoIIing slalos do nol
compIolo sucossfuIIy. Iiguro 14-6 slovs llo Dolocl subslalo maclino.
Detect.Quiet SubState
Irom IundamonlaI Rosol or Hol Rosol. AIso from I2, IoopbacI, DisabIo, IoII-
ing, Configuralion and Rocovory slalos.
PCI Express System Architecture
514
- Tlo lransmillor is in llo IIoclricaI IdIo slalo. Tlo IIoclricaI IdIo Ordorod-Sol
doos nol lavo lo bo lransmillod boforo pIacing llo IinI in llo IIoclricaI IdIo
slalo.
- Tlo lransmillor drivos a DC common modo voIlago (il doos nol lavo lo
mool llo 0 - 3.6 V spocificalion).
- 2.5Gbil/s (Gonoralion 1) lransfor ralo is iniliaIizod (bul llis is nol llo ralo
llal viII nocossariIy bo advorlisod via llo TS1 and TS2 Ordorod-Sols).
- Tlo Dala IinI Iayor is sonl IinIUp = 0.
Aflor 12 ms limooul or vlon IinI oxils llo IIoclricaI IdIo slalo.
Detect.Active SubState
Tlis slalo is onlorod aflor 12ms or vlon llo IinI oxils llo IIoclricaI IdIo
slalo.
Tlo lransmillor dovico dolocls if rocoivors aro connoclod on aII Ianos of llo
IinI. Tlo lransmillor slarls al a slabIo DC common modo voIlago on aII
Ianos. Tlis voIlago can bo V
DD
, GND, or somo ollor slabIo voIlago in-
bolvoon. Tlo lransmillor llon drivos a DC common modo voIlago ollor
llan llo ono curronlIy prosonlod. A rocoivor is doloclod basod on llo ralo al
vlicl llo D+ and D- Iinos clargo lo llo nov voIlago. Al dosign limo, llo
dovico is dosignod vill InovIodgo of llo clargo limo lo clango llo voIl-
ago (basod on llo assumod Iino impodanco and lransmillor impodanco
villoul rocoivor lorminalion). Will a rocoivor allaclod al llo ollor ond, llo
clargo limo viII bo Iongor llan if lloro is no connoclod rocoivor. Ior moro
dolaiIs on llo rocoivor doloclion procoss, soo Rocoivor Doloclion on
pago 459.
Occurs if a rocoivor is nol doloclod. Tlo Ioop from Dolocl.Quiol lo
Dolocl.Aclivo is ropoalod ovory 12ms, as Iong as no rocoivor is allaclod. Tlo
noxl slalo is IoIIing if a Rocoivor is doloclod on aII unconfigurod Ianos.
If llo dovico dolocls a rocoivor allaclod. Tlo Dovico musl nov drivo a DC
common voIlago villin llo 0 - 3.6 V V
TX-CM-DC
spocificalion.
-
If aII Ianos of a dovico aro nol connoclod lo a rocoivor. Ior oxampIo, a x4
dovico is connoclod lo a x2 dovico. In llal caso, llo dovico dolocls llal somo
Ianos (lvo Ianos) aro connoclod lo a rocoivor, vliIo ollors aro nol. Tloso
Ianos connoclod lo a rocoivor boIong lo ono ITSSM.Tloro aro lvo cloicos al
llis poinl:
Chapter 14: Link Initialization & Training
515
- Tloso Ianos nol connoclod lo a rocoivor boIong lo anollor ITSSM (if
lloy can oporalo as a soparalo IinIsoo Dosigning Dovicos vill
IinIs llal can bo Morgod on pago 522). Tlo ollor ITSSM conlinuos lo
ropoal llo rocoivor doloclion soquonco doscribod abovo.
- Tloso Ianos llal aro nol connoclod lo a rocoivor and cannol bocomo
parl of anollor IinI and ITSSM musl lransilion llo unconnoclod Ianos
lo llo IIoclricaI IdIo slalo.
PoIIing State
Introduction
Tlis slalo is llo firsl limo in llo IinI lraining and iniliaIizalion procoss llal
IIIs (sucl as TS1 and TS2 Ordorod-Sols) aro oxclangod bolvoon llo lvo con-
noclod dovicos. Iiguro 14-7 slovs llo subslalos of llo IoIIing slalo maclino.
Detect.Quiet Detect.Active
Exit to
Polling
Entry from Reset.
Also from Disabled,
Loopback, L2, Polling,
Configuration or
Recovery
No Electrical
Idle on Link or
12 ms timeout
No Detect
Receiver
Detected
12 ms Charge or
DC common mode
voltage stable
PCI Express System Architecture
516
PoIIing.Active SubState
Transmillors drivo a DC common modo voIlago villin llo spoc Iimils on aII
Ianos on vlicl il doloclod a rocoivor.
If IIoclricaI IdIo oxil is doloclod al llo rocoivor on AII Ianos llal doloclod a
rocoivor during Dolocl, llo Transmillor oxils IoIIing.CompIianco by lrans-
milling 1024 TS1 Ordorod-Sols.
WliIo in IoIIing.Spood, llo Transmillor onlors llo IIoclricaI IdIo slalo for a
minimum of T
TX-IDII-MIN
and no Iongor llan 2ms. An IIoclricaI IdIo
ordorod sol is sonl prior lo onloring llo IIoclricaI IdIo slalo. Tlo DC com-
mon modo voIlago doos nol lavo lo bo villin spocificalion. Tlo Dala ralo is
clangod on aII Ianos lo llo liglosl common dala ralo supporlod on boll
sidos of llo IinI indicalod by llo lraining soquonco.
Bil/SymboI IocI aro oblainod as doscribod in llo noxl buIIol (soo Sym-
boI Boundary Sonsing (SymboI IocI) on pago 441 and Aclioving Bil
IocI on pago 440 for furllor dolaiIs).
Tlo lransmillors of llo lvo connoclod dovicos lransmil a minimum of
1024 consoculivo TS1 Ordorod-Sols on aII connoclod Ianos. Tlo lvo
dovicos como oul of llo Dolocl slalo al difforonl limos, lonco llo TS1
Ordorod-Sol oxclango of llo lvo dovicos aro nol synclronizod vill ono
anollor. Tlo IAD symboI is usod in llo Iano and IinI Numbors fioIds
of llo TS1 Ordorod-Sols. 1024 TS1 Ordorod-Sols amounls lo 64s of limo
lo acliovo Bil and SymboI IocI.
Tlo noxl slalo viII bo IoIIing.Configuralion if ono of llo foIIoving condi-
lions is lruo:
If a dovico rocoivos oigll consoculivo TS1 or TS2 Ordorod-Sols (or lloir
compIomonl duo lo poIarily invorsion) vill Iano and IinI sol lo llo
IAD symboI on AII Ianos and al Ioasl 1024 TS1 Ordorod Sols aro lrans-
millod, or
Aflor a 24ms limooul, if:
- A dovico rocoivos oigll consoculivo TS1 or TS2 Ordorod-Sols (or
lloir compIomonl) vill llo Iano and IinI numbors sol lo IAD
symboI on ANY Ianos llal doloclod a rocoivor during Dolocl, AND
- al Ioasl 1024 TS1 Ordorod-Sols voro lransmillod, AND
- aII Ianos llal doloclod a rocoivor doloclod an oxil from IIoclricaI
IdIo al Ioasl onco sinco onloring IoIIing.Aclivo (llis provonls ono or
moro bad lransmillors or rocoivors from loIding up IinI configura-
lion).
Chapter 14: Link Initialization & Training
517
If al Ioasl ono Iano llal doloclod a rocoivor during Dolocl las novor doloclod
an oxil from IIoclricaI IdIo sinco onloring IoIIing.Aclivo (a passivo losl Ioad
sucl as a rosislor on al Ioasl ono Iano forcos aII Ianos inlo IoIIing.CompIi-
anco).
If no TS1 or TS2 Ordorod-Sols aro rocoivod vill llo IinI and Iano numbor
fioIds sol lo llo IAD symboI on any Iano. AIso, llo liglosl advorlisod
spood musl bo Iovorod lo gonoralion 1 (if nol aIroady advorlisod as sucl).
PoIIing.Configuration SubState
Inlors IoIIing.Configuralion if of llo foIIoving lvo condilions aro
lruo:
If a dovico rocoivos oigll consoculivo TS1 or TS2 Ordorod-Sols (or lloir
compIomonl duo lo poIarily invorsion) vill llo Iano and IinI num-
bors sol lo llo IAD symboI on AII Ianos and al Ioasl 1024 TS1 Ordorod
Sols aro lransmillod,
Aflor a 24ms limooul, if a dovico rocoivos oigll consoculivo TS1 or TS2
Ordorod-Sols (or lloir compIomonl) vill llo Iano and IinI numbors
sol lo llo IAD symboI on ANY Ianos llal doloclod a rocoivor vliIo in
llo Dolocl slalo, and al Ioasl 1024 TS1 Ordorod-Sols voro lransmillod,
AND aII Ianos llal doloclod a rocoivor doloclod an oxil from IIoclricaI
IdIo al Ioasl onco sinco onloring IoIIing.Aclivo (provonls ono or moro
bad lransmillors or rocoivors from loIding up IinI configuralion).
If a rocoivor soos llo compIomonl of llo TS1/TS2 Ordorod-Sols, il las lo
invorl llo poIarily of ils difforonliaI inpul pair lorminaIs. BasicaIIy, if
D21.5 rallor llan D10.2 is rocoivod in llo TS1 Ordorod-Sol, or if D26.5
rallor llan D5.2 is rocoivod for llo TS2 Ordorod-Sol, llon llo rocoivor
(nol llo lransmillor) musl invorl ils signaI poIarily. IoIarily Invorsion is
a mandalory foaluro (soo IinI IniliaIizalion and Training Ovorviov
on pago 500 for oxampIo of IoIarily Invorsion) and musl bo impIo-
monlod on aII Ianos indopondonlIy.
Tlo Transmillor sonds moro llan oigll TS2 Ordorod-Sols.
Assumos llal no spood > 2.5Gbils/s is idonlifiod in llo Dala Ralo Idonlifior
fioId of llo TS2 Ordorod-Sol. Aflor rocoiving oigll consoculivo TS2 Ordorod-
Sols and lransmilling 16 TS2 Ordorod-Sols aflor rocoiving ono TS2 Ordorod-
Sol, oxil lo Configuralion.
PCI Express System Architecture
518
Tlo noxl slalo is IoIIing.Spood aflor oigll consoculivo TS2 Ordorod Sols,
vill IinI and Iano numbors sol lo llo IAD symboI (K23.7), aro rocoivod on
any Ianos llal doloclod a Rocoivor during Dolocl, 16 TS2 Ordorod Sols aro
lransmillod aflor rocoiving ono TS2 ordorod sol, and al Ioasl ono of lloso
samo Ianos is lransmilling and rocoiving a Dala Ralo Idonlifior groalor llan
2.5Gb/s.
If noillor of llo lvo oxil condilions aro mol, oxil lo Dolocl aflor a 48ms limo-
oul.
PoIIing.CompIiance SubState
Tlo noxl subslalo is IoIIing.CompIianco if al Ioasl ono Iano llal doloclod a
rocoivor during Dolocl las novor doloclod an oxil from llo IIoclricaI IdIo
slalo on ils rocoivor sinco onloring IoIIing.Aclivo (a passivo losl Ioad, sucl
as a rosislor, on al Ioaso ono Iano forcos aII Ianos inlo IoIIing.CompIianco).
A losl probo (of 50 Olms impodanco) or a 50 Olm impodanco lo ground
looIod lo llo lransmil pair on any Iano causos llo dovico lo onlor IoII-
ing.CompIianco (soo Transmil Drivor CompIianco Tosl and Moasuromonl
Ioad on pago 479). In llis slalo, llo dovico (a pallorn gonoralor) is
roquirod lo gonoralo llo compIianco pallorn on llo IinI. Tlo compIianco
pallorn soIoclod producos llo vorsl caso inlorforonco bolvoon noiglboring
Ianos and rosuIls in llo vorsl caso IMI . Tosl oquipmonl looIod lo llo IinI
is usod lo losl for IMI noiso, cross-laII, Bil Irror Ralo (BIR), olc.
Tlo Transmillor oulpuls llo compIianco pallorn on aII Ianos llal
doloclod a rocoivor during Dolocl. Tlo pallorn consisls of llo 8b/10b
symboIs K28.5, D21.5, K28.5, and D10.2. Curronl running disparily
(CRD) musl bo sol lo nogalivo boforo sonding llo firsl symboI.
No SIip Ordorod-Sols aro lransmillod during IoIIing.CompIianco.
Tlo compIianco slalo is oxilod vlon an IIoclricaI IdIo oxil is doloclod on aII
llo Ianos llal doloclod a rocoivor during Dolocl. Tlo lransmillor oxils IoII-
ing.CompIianco by lransmilling 1024 TS1 Ordorod-Sols.
PoIIing.Speed SubState
IoIIing.Spood is onlorod if:
Iigll consoculivo TS2 Ordorod-Sols aro rocoivod, and
16 TS2 Ordorod-Sols aro lransmillod aflor rocoiving ono TS2, and
al Ioasl ono of llo Ianos is lransmilling and rocoiving vill a Dala Ralo
Idonlifior in llo TS2 Ordorod-Sol llal is liglor llan 2.5Gb/s.
Chapter 14: Link Initialization & Training
519
Polling.Active
Bit/Symbol Lock
Polling.Configuration
(Polarity Inversion)
Exit to
Configuration
Entry from
Detect
No exit from Electrical
Idle on at least 1 Lane
Polling.Speed
(Electrical Idle,
Change Speed)
8 TS2 Rx. Tx 16 TS2
No Higher Speed ID
exchanged
TS2
Received with
Higher Speed
8 TS1, TS2 (or complement) Rx on ALL
Lanes or 24 ms timeout and ANY
Lane Rx 8 TS1, TS2 and ALL Lanes
detect exit from Electrical Idle
Polling.Compliance
Electrical
Idle Exit
Exchange
1024 TS1s
Exit to
Detect
48 ms
TS1s/TS2s with
Lane# and Link# set
to a value other
than PAD
- - - - - -
- - - -
-
- -
- - - - -
- -
- -
Configuration State
GeneraI
- - - -- -
- - - -
- - -
PCI Express System Architecture
520
An upslroam dovico sonds TS1 Ordorod-Sols on aII dovnslroam Ianos. Tlis
slarls llo IinI numboring and Iano numboring procoss. If llo vidll dolormina-
lion and Iano numboring is compIolod succossfuIIy, llon TS2 Ordorod-Sols aro
lransmillod lo llo noiglboring dovico lo confirm llo IinI Widll, IinI Numbor
and Iano Numbor for oacl IinI connoclod lo a difforonl dovico.
WliIo in llo Configuralion slalo, llo IinI Training bil in llo IinI Slalus rogislor
is sol by lardvaro (soo Iiguro 14-22 on pago 552). Tlis bil is sol on Rool Com-
pIox porls and on dovnslroam Svilcl porls. Il is nol sol in Indpoinls or a
Svilcl upslroam porls.
Config.RcvrCfg
(Lane Width and
Lane Reversal)
Config.Idle
(Idle Symbols
sent/received)
Exit to
L0
Entry from
Polling or Recovery
Link
Configured
2 ms
timeout
Exit to
Detect
8 Idle Rx,
Tx 16 Idle
Full-On Power State
Packet transmission/
reception begins
Exit to
Disable
Exit to
Loopback
Directed
Directed
2 ms timeout or
Rx 2 TS1 with
Link/Lane#=PAD
Chapter 14: Link Initialization & Training
521
Configuration.RcvrCfg SubState
Tlis slalo is onlorod aflor llo normaI compIolion of llo IoIIing slalo (as
doscribod in IoIIing.Configuralion SubSlalo on pago 517). Il is aIso
onlorod if llo Rocovory slalo faiIs lo compIolo succossfuIIy (as doscribod
inRocovory Slalo on pago 532).
Tlo IinI Numbor of oacl IinI connoclod lo a uniquo dovico is nogoli-
alod.
Tlo Ianos of oacl uniquo IinI aro numborod slarling vill Iano 0. If
nocossary, llo Iano Numbors aro rovorsod.
Tloso Ianos llal aro nol parl of a nov IinI aro disabIod and onlor llo
IIoclricaI IdIo slalo. DisabIod Ianos aro ro-onabIod if llo dovico onlors
llo Dolocl slalo again.
Iacl dovico advorlisos ils N_ITS vaIuo in llo TS1/TS2 Ordorod-Sols il
sonds lo llo romolo dovico.
A rocoivor usos llo COM symboI in llo rocoivod TS1 and TS2 Ordorod-
Sols lo do-sIov llo Ianos of llo IinI (soo Iano-lo-Iano Do-SIov on
pago 444).
Rallor llan go llrougl a lodious procoss lo oxpIain llo Configura-
lion.RcvrCfg funclion, llroo oxampIos aro prosonlod in IxampIos Tlal
Domonslralo Configuralion.RcvrCfg Iunclion on pago 524. Tlal soclion
doscribos llo IinI Numboring and Iano Numboring procoduro.
Wlon llo IinI Numboring and Iano Numboring procoss las compIolod
succossfuIIy.
Tlo noxl slalo is Dolocl if, aflor a 2ms limooul, no IinI or Ianos couId bo
configurod, or if aII Ianos rocoivo lvo consoculivo TS1 Ordorod-Sols vill
llo IinI and Iano Numbor fioIds sol lo llo IAD symboI.
-
If diroclod lo onlor llo DisabIo or IoopbacI slalo by liglor Iayors:
Soflvaro can inform a IoopbacI Maslor connoclod lo llo IinI lo onlor
llo IoopbacI slalo in an impIomonlalion spocific mannor. Tlo Ioop-
bacI Maslor dovico conlinuousIy sonds TS1 Ordorod-Sols lo llo Ioop-
bacI SIavo vill llo IoopbacI bil sol in llo TS1 Training ConlroI fioId
unliI llo IoopbacI sIavo rolurns TS1 Ordorod-Sols vill llo IoopbacI
bil sol. Tlo IoopbacI SIavo onlors IoopbacI vlon il rocoivos lvo con-
soculivo TS1 Ordorod-Sols vill llo IoopbacI bil sol.
PCI Express System Architecture
522
SimiIarIy, soflvaro can command a dovico lo onlor llo DisabIo slalo by
solling llo DisabIo bil in llo IinI ConlroI rogislor (soo Iiguro 14-23 on
pago 553). Tlis dovico (a dovnslroam porl) llon lransmils 16 TS1
Ordorod-Sols vill llo DisabIo IinI bil sol in llo TS1 Training ConlroI
fioId. A connoclod rocoivor (on an upslroam porl) is disabIod vlon il
rocoivos TS1 Ordorod-Sols vill llo DisabIo IinI bil sol.
Configuration.IdIe SubState
Wlon llo IinI Numboring and Iano Numboring procoss las compIolod
succossfuIIy.
Tlo IinI is fuIIy configurod. Bil IocI and SymboI IocI lavo boon acliovod.
Tlo IinI dala ralo las boon soIoclod. Tlo IinI and Iano Numbors lavo
boon assignod.
Tlo Transmillor sonds IogicaI IdIo soquoncos (soo IogicaI IdIo
Soquonco on pago 436) on aII configurod Ianos. Al Ioasl 16 IogicaI IdIo
soquoncos aro sonl.
Tlo Rocoivor vails for llo rocoipl of llo IogicaI IdIo dala.
Tlo rocoivors Dala IinI Iayor IinIUp slalus bil is sol lo 1.
Occurs vlon oigll IogicaI IdIo symboIs aro rocoivod on aII configurod
Ianos and 16 IogicaI IdIos aro sonl aflor rocoiving 1 IogicaI IdIo. I0 is llo
fuII-on povor slalo during vlicl normaI pacIol lransmission and rocoplion
can occur. Tlo difforonliaI lransmillors and rocoivors aro onabIod in llo Iov
impodanco slalo.
Occurs vlon, aflor a 2ms limooul, no IogicaI IdIo symboIs lavo boon
oxclangod.
Designing Devices with Links that can be Merged
A dosignor docidos lov many Ianos lo impIomonl on a givon
IinI basod on porformanco roquiromonls for llal IinI. Tlo spocificalion
roquiros llal a dovico llal impIomonls a muIli-Iano IinI musl bo dosignod
lo oporalo as a ono-x1 IinI aIso. Tlis aIIovs sucl a muIli-Iano IinI dovico
lo oporalo vlon and if il connocls lo a x1 IinI dovico (IinI porformanco is
Iovor, lovovor).
An oplionaI foaluro aIIovs lvo or moro dovnslroam IinIs (associalod vill
difforonl porls) of a svilcl lo bo combinod lo form a vidor IinI llal is con-
noclod lo ono dovico. Iiguro 14-9 on pago 524 slovs a Svilcl vill ono
upslroam porl and four dovnslroam porls. Tlo Svilcl supporls oigll
Chapter 14: Link Initialization & Training
523
upslroam Ianos and oigll dovnslroam Ianos. On llo dovnslroam sido, llo
Svilcl supporls four porls. Il is lloroforo four-x2 capabIo. By combining
lvo porls, il is aIso lvo-x4 capabIo. As roquirod by llo spocificalion, oacl
porl musl bo x1 capabIo.
Tlo Svilcl is capabIo of supporling up lo four
dovnslroam porls, vill oacl porl a x2 porl (four-x2 capabIo on llo dovn-
slroam sido) llal connocls lo four dovicos (Iofl sido of Iiguro 14-9 on pago
524). Tlo bridgo inlornaIIy consisls of ono upslroam IogicaI bridgo and four
dovnslroam IogicaI bridgos.
During IinI Training, vliIo in llo Configuralion.RcvrCfg subslalo, llo
ITSSM of oacl svilcl dovnslroam porl oslabIislos llal il is connoclod lo
four dovicos vill x2 IinIs oacl. IssonliaIIy, llo svilcl consisls of four
porls, four ITSSMs, four IlysicaI Iayors, four Dala IinI Iayors and four
Transaclion Iayors.
Tlis svilcl dosign aIso aIIovs ils dovnslroam
Ianos lo bo combinod inlo lvo dovnslroam x4 porls (rigll sido of Iiguro
14-9). In ollor vords, llo oigll dovnslroam Ianos may bo virod lo lvo,
indopondonl x4 dovicos. In lliso caso, llo svilcl consisls of ono upslroam
IogicaI bridgo and lvo dovnslroam IogicaI bridgos.
During IinI Training, vliIo in llo Configuralion.RcvrCfg subslalo, llo
ITSSM of oacl svilcl dovnslroam porl oslabIislos llal il is connoclod lo
lvo dovnslroam dovicos vill x4 IinIs oacl. IssonliaIIy, llo svilcl in llis
configuralion las lvo dovnslroam porls and llo four svilcl ITSSMs aro
morgod inlo lvo ITSSMs. Tlo svilcl las lvo IlysicaI Iayors, lvo Dala
IinI Iayors and lvo Transaclion Iayors on llo dovnslroam sido.
Tlo svilcl is capabIo of four-x2 IinIs on llo dovnslroam sido (Iofl) or lvo-
x4 IinIs (rigll), doponding on lov llo dosignor cloosos lo viro up llo
dovnslroam svilcl Ianos.
During llo Configuralion.RcvrCfg slalo, llo ITSSM discovors lov llo
dovnslroam Ianos aro virod. Iacl IinI llal connocls lo a uniquo dovico is
numborod uniquoIy and oacl Iano of a IinI is aIso numborod. Dosigning a
svilcl vill llis capabiIily is no lriviaI lasI, so llo foaluro llal pormils llo
combining or spIilling of IinIs lo form a vidor or narrovor IinI is
oplionaI.
Il is a roquiromonl llal oacl muIli-Iano porl bo abIo lo oporalo as a x1 porl
vlon connoclod lo a x1 dovico.
PCI Express System Architecture
524
ExampIes That Demonstrate Configuration.RcvrCfg Function
Tlo IinI numboring and Iano numboring procoss is inilialod by an upslroam
dovico during llo Configuralion.RcvrCfg subslalo. A Rool CompIox or a Svilcl
dovnslroam porl vouId inilialo llo Configuralion.RcvrCfg procoss. Indpoinls
and upslroam porls aro dovnslroam dovicos and do nol inilialo llis procoss.
TS1 and TS2 Ordorod-Sols aro lransmillod and rocoivod during llis subslalo.
Upon oxil from llo Configuralion.RcvrCfg subslalo, oacl IinI las boon iniliaI-
izod vill a IinI numbor (llis indiroclIy oslabIislos llo numbor of porls a
dovico supporls). Iacl Iano las aIso boon iniliaIizod vill a Iano numbor (llis
indiroclIy oslabIislos llo IinI vidll).
Tlroo oxampIos aro covorod in llo noxl llroo soclions.
RcvrCfg ExampIe 1
Considor Iiguro 14-10 on pago 527. Dovico A is ono-x4 capabIo, ono-x2 capabIo
and ono-x1 capabIo (Ono-x1 supporl is roquirod by llo spoc). Dovico B is ono-x4
capabIo, ono-x2 capabIo and ono-x1 capabIo (il is roquirod lo supporl llis capa-
biIily by llo spoc). Tlo dovico pins associalod vill oacl Iano aro plysicaIIy
- -
Switch
Virtual
PCI
Bridge 1
Virtual
PCI
Bridge 2
Virtual
PCI
Bridge 3
Virtual
PCI
Bridge 0
Virtual
PCI
Bridge 4
x8
x2 x2 x2 x2
Switch
Virtual
PCI
Bridge 1
Virtual
PCI
Bridge 0
Virtual
PCI
Bridge 2
x8
x4 x4
OR
Chapter 14: Link Initialization & Training
525
numborod 0, 1, 2 and 3 (slovn in llo Iiguro 14-10), llougl llo assignod IogicaI
Iano numbors may lavo boon clangod vliIo in Configuralion.RcvrCfg sub-
slalo (in llis oxampIo, llo IogicaI Iano Numbor romains llo samo as llo plysi-
caI Iano Numbor).
1. -: Upslroam Dovico A lransmils TS1 Ordorod-Sols vill llo
IinI Numbor for oacl group of connoclod Ianos sol lo a dovico-spocific
iniliaI vaIuo. As an oxampIo, a svilcl vill four dovnslroam porls may
iniliaIIy sol llo IinI numbors lo 0, 1, 2, and 3. Tlo Iano Numbor fioId is
iniliaIIy sol lo llo IAD symboI (K23.7).
- : Tlis impIios llal Dovico A sonds four TS1 Ordorod-Sols
on llo four Ianos. Tlo four TS1 Ordorod-Sols oacl conlain a IinI Num-
bor , , and llo Iano Numbor fioIds aro sol lo llo IAD symboI.
Ivon llougl Dovico A is aIso capabIo of Ono-x1 and Ono-x2 oporalion,
Dovico A slarls by assuming llo capabiIily llal maximizos llo uso of aII
connoclod Ianos.
2. -: Dovnslroam Dovico B rolurns TS1 Ordorod-Sols on aII
connoclod Ianos llal rocoivod TS1 Ordorod-Sols vill llo assignod com-
mon IinI Numbor for Ianos il can supporl as ono IinI. Tlo Iano Num-
bors aro inilaiIIy sol lo llo IAD symboI (K23.7).
- : Dovico B rolurns a TS1 Ordorod-Sol on aII four Ianos.
Tlo TS1 Ordorod-Sols on oacl Iano conlains IinI Numbor . Tlo Iano
Numbor fioId conlains llo IAD symboI. Dovico A soos llo TS1
Ordorod-Sol vill IinI numbors of on oacl Iano. Dovico A oslabIislos
llal ils four Ianos aro connoclod lo ono dovnslroam dovico and llal llo
IinI is numborod as . Dovico A las rocoivod confirmalion from Dovico
B llal ils IinI can bo numborod vloro is a numbor bolvoon 0 and
255. Tlo IinI is configurod as a Ono-x4 IinI.
Tlo IinI Numbor of is a IogicaI IinI Numbor llal is nol slorod in a
dofinod configuralion rogislor. Tlis numbor is lard-virod by dosign, and
nol roIalod lo llo Iorl Numbor fioId of llo IinI CapabiIily Rogislor.
AIso, llo Nogolialod IinI Widll fioId in llo IinI Slalus rogislor of boll llo
upslroam and dovnslroam dovicos aro updalod vill 000100, indicaling a
x4 IinI (soo Iiguro 14-22 on pago 552).
PCI Express System Architecture
526
3. -: Upslroam Dovico A sonds TS1 Ordorod-Sols on aII con-
noclod Ianos vill llo configurod IinI Numbor and uniquo Iano Num-
bors slarling vill 0 for oacl Iano. IAD symboIs aro no Iongor sonl in
llo Iano Numbor fioId.
- : Dovico A sonds four TS1 Ordorod-Sols vill IinI Num-
bor of and Iano Numbors of 0, 1, 2 and 3, rospoclivoIy, on oacl con-
noclod Iano.
4. -: Dovnslroam Dovico B rolurns TS1 Ordorod-Sols on aII
connoclod Ianos vill llo samo IinI Numbor as conlainod in llo
rocoivod TS1 Ordorod-Sols and llo samo Iano Numbors for oacl Iano
as indicalod in llo rocoivod TS1 Ordorod-Sols.
If llo dovnslroam dovicos Ianos aro looIod in llo rovorso mannor and
il doos nol supporl llo Iano RovorsaI foaluro, il rolurns llo TS1
Ordorod-Sols vill llo Iano Numbor fioId indicaling llo mannor in
vlicl il vanls llo Ianos lo bo numborod. HopofuIIy, llo upslroam
dovico supporls Iano RovorsaI and accopls llo rovorso ordor in vlicl
llo dovnslroam dovico vanls llo Ianos numborod.
- : Dovico B rolurns four TS1 Ordorod-Sols vill a IinI
Numbor of and Iano Numbors of 0, 1, 2 and 3, rospoclivoIy, on oacl
connoclod Iano.
5. -: Dovico A and B confirm llo IinI Numbor
and Iano Numbors nogolialod by oxclanging TS2 Ordorod-Sols.
- : Dovico A and B oxclango TS2 Ordorod-Sols vill llo
IinI Numbor sol lo and llo Iano Numbors sol lo 0, 1, 2 and 3, rospoc-
livoIy, for oacl of llo four Ianos. In llis oxampIo, llo IogicaI Iano
Numbors of boll dovicos romain llo samo as llo plysicaI Iano Num-
bors.
Chapter 14: Link Initialization & Training
527
RcvrCfg ExampIe 2
Considor Iiguro 14-11 on pago 529. Tlis is an oxampIo in vlicl upslroam
dovico A is capabIo of ono-x4, or lvo-x2, or lvo-x1. Tlo narrovosl IinI capabiI-
ily llal usos AII Ianos is lvo-x2. Tlo lvo porls of Dovico A aro oacl x2 capa-
bIo and llo plysicaI Iin Numbor (Iano numbor) of oacl porl is 0 and 1. Dovico
B and C oacl lavo ono porl llal is x2 capabIo and llo plysicaI Iin Numbor
(Iano numbor) of oacl porl is 0 and 1.
Using a slrapping oplion on Dovico A (or by dofauIl), il slarls llo Configura-
lion.RcvrCfg subslalo by roporling ils lvo-x2 capabiIily vlon lransmilling TS1
Ordorod-Sols lo llo dovnslroam dovicos.
1. - Upslroam Dovico A lransmils TS1 Ordorod-Sols vill an
assumod IinI Numbor vaIuo for oacl group of Ianos capabIo of acling
as uniquo IinIs. Ior nov, llo Iano Numbor is sol lo llo IAD symboI
(K23.7)
PCI Express System Architecture
528
- : Dovico A sonds TS1 Ordorod-Sols on aII four Ianos. Tlo
TS1 Ordorod-Sol on oacl Iano conlains IinI numbor +1, and +1.
Tlo Iano Numbor fioId conlains llo IAD symboI.
2. - Dovnslroam Dovicos B and C rolurn TS1 Ordorod-Sols
conlaining llo IinI numbor for Ianos il can supporl as ono IinI. Tlo
Iano Numbor is iniliaIIy sol lo llo IAD symboI (K23.7).
- : Dovico B and C rolurn TS1 Ordorod-Sols on oacl Iano,
oacl conlaining a IinI Numbor of for Dovico B and a IinI Numbor of
+1 for Dovico C. Tlo Iano Numbor fioId is iniliaIIy sol lo llo IAD
symboI. Dovico A rocoivos TS1 Ordorod-Sols on lvo of llo Ianos vill a
IinI Numbor of and TS1 Ordorod-Sols on llo ollor lvo Ianos vill a
IinI Numbor of +1.
Tlo IinI Numbor of and n+1 is a IogicaI IinI Numbor llal is nol slorod in
a dofinod configuralion rogislor. Tlis numbor is nol roIalod lo llo Iorl
Numbor fioId of llo IinI CapabiIily Rogislor of upslroam Dovico As porl
or Dovico B's or Dovico C's porl.
AIso, llo Nogolialod IinI Widll fioId in llo IinI Slalus rogislor of boll
upslroam porls and dovnslroam porls aro updalod vill 000010, indical-
ing a x2 IinI (soo Iiguro 14-22 on pago 552).
3. - Dovico A roaIizos llal ils Ianos aro dividod inlo lvo IinIs
and sonds TS1 Ordorod-Sols on aII connoclod Ianos vill IinI Numbor
on lvo Ianos and IinI Numbor +1 on llo ollor lvo Ianos. IAD
symboIs aro no Iongor sonl in llo Iano Numbor fioId.
- : Dovico A sonds a TS1 Ordorod-Sol on lvo Ianos vill a
IinI Numbor of in boll of llo TS1s, a Iano Numbor of 0 in ono of llo
TS1s, and a Iano Numbor of 1 in llo ollor TS1. Dovico A aIso sonds a
TS1 on oacl of llo ollor lvo Ianos vill a IinI Numbor of +1 in boll
of llo TS1s, a Iano Numbor of 0 in ono TS1, and a Iano Numbor of 1 in
llo ollor TS1.
4. - Dovnslroam Dovico B and C rolurns TS1s on aII connoclod
Ianos vill llo samo IinI Numbor as conlainod in llo rocoivod TS1
Ordorod-Sols and llo samo Iano Numbors for oacl Iano as in llo
rocoivod TS1 Ordorod-Sols.
If llo dovnslroam dovicos Ianos aro looIod in llo rovorso mannor and
lloy do nol supporl llo Iano RovorsaI foaluro, lloy rolurn llo TS1
Ordorod-Sols vill llo Iano Numbor fioIds rovorsod. HopofuIIy, llo
upslroam dovico supporls Iano RovorsaI and accopls llo rovorso ordor
llal llo dovnslroam dovicos vanl llo Ianos numborod.
Chapter 14: Link Initialization & Training
529
- : Dovico B rolurns TS1s on oacl Iano vill IinI Numbor
of and a Iano Numbor of 0 in ono TS1 Ordorod-Sol and a Iano Num-
bor of 1 in llo ollor. Dovico C rolurns a TS1 on oacl Iano vill a IinI
Numbor of +1 and a Iano Numbor of 0 in ono TS1 Ordorod-Sol and a
Iano Numbor of 1 in llo ollor.
5. - Dovico A and B/C confirm llo IinI Num-
bors and Iano Numbors nogolialod by oxclanging TS2 Ordorod-Sols.
- : Dovico A and B oxclango a TS2 Ordorod-Sol on oacl
Iano vill llo IinI Numbor sol lo and llo Iano Numbors sol lo 0 and
1, rospoclivoIy, for oacl of llo lvo Ianos on llo firsl IinI. Dovico A and
C oxclango a TS2 Ordorod-Sol on oacl Iano vill llo IinI Numbor sol
lo +1 and llo Iano Numbors sol lo 0 and 1, rospoclivoIy, for oacl of llo
lvo Ianos of llo socond IinI. Iacl Iano of llo lvo IinIs in llis oxam-
pIo aro IogicaIIy numborod 0 and 1, malcling llo plysicaI Iin numbor
(Iano numbor) of oacl Iano.
PCI Express System Architecture
530
RcvrCfg ExampIe 3
Considor Iiguro 14-12 on pago 532. Tlis is an oxampIo in vlicl upslroam
dovico A is capabIo of ono-x4, or lvo-x2, or lvo-x1 (llo samo as Dovico A in llo
provious oxampIo). Tlo narrovosl IinI capabiIily llal usos AII Ianos is lvo-
x2. Iacl Iano of Dovico As lvo porls aro plysicaIIy numborod 0 and 1.
Via a slrapping oplion on Dovico A (or by dofauIl), il roporls ils lvo-x2 capabiI-
ily vlon lransmilling TS1 Ordorod-Sols lo llo dovnslroam dovico. In llis
oxampIo, Dovico A iniliaIIy assumos llal il las lvo-x2 dovnslroam IinIs. AIso,
boll of Dovico As IinIs aro connoclod lo dovnslroam Dovico B. Dovico B is x4
capabIo. Ils pins (or Ianos) aro plysicaIIy numborod 3, 2, 1, 0, rospoclivoIy. In
llis oxampIo, assumo llal Dovico B doos supporl Iano RovorsaI, bul Dovico
A doos supporl Iano RovorsaI.
1. - Upslroam Dovico A lransmils TS1 Ordorod-Sols vill an
assumod IinI Numbor fioId for oacl group of Ianos capabIo of boing
uniquo IinIs llal uso up aII llo Ianos. Ior nov, llo Iano Numbor is sol
lo llo IAD symboI (K23.7).
- : Dovico A sonds four TS1 Ordorod-Sols on llo four
Ianos. Iacl TS1 Ordorod-Sol conlains llo rospoclivo IinI numbor (
. Tlo Iano Numbor fioId is iniliaIIy sol lo llo IAD symboI.
2. - Dovnslroam Dovico B rolurns TS1 Ordorod-Sols vill an
assignod common IinI numbor for Ianos il can supporl as ono IinI.
Tlo Iano Numbor is iniliaIIy sol lo llo IAD symboI (K23.7).
- : Dovico B rolurns TS1 Ordorod-Sols on oacl Iano, oacl
conlaining a IinI Numbor of . Tlo Iano Numbor fioId is iniliaIIy sol lo
llo IAD symboI. Dovico A soos TS1 Ordorod-Sols on four Ianos vill a
IinI Numbor of , loIIing Dovico A llal ils four Ianos aro connoclod lo
ono dovnslroam dovico and llal llo IinI slouId bo numborod .
Tlo IinI Numbor of is a IogicaI IinI Numbor llal is nol slorod in a
dofinod configuralion rogislor. Tlis numbor is nol roIalod lo llo Iorl Num-
bor fioId of llo IinI CapabiIily Rogislor.
AIso, llo Nogolialod IinI Widll fioId in llo IinI Slalus rogislor of boll llo
upslroam porl and llo dovnslroam porl aro updalod vill 000100, indi-
caling a x4 IinI (soo Iiguro 14-22 on pago 552).
Chapter 14: Link Initialization & Training
531
3. - Dovico A roaIizos llal ils four Ianos aro combinod inlo ono
IinI (Ono-x4) and sonds TS1 Ordorod-Sols on aII connoclod Ianos vill
ono assumod IinI Numbor, and a uniquo Iano Numbor is assignod
lo oacl Iano of llo IinI. IAD symboIs aro no Iongor sonl in llo Iano
Numbor fioId.
- : Dovico A sonds TS1 Ordorod-Sols on four Ianos vill a
IinI Numbor of n and Iano Numbors 0, 1, 2, and 3, rospoclivoIy, num-
borod Iofl lo rigll.
4. - Dovnslroam Dovico B rolurns a TS1 on aII connoclod
Ianos vill llo samo IinI Numbor as conlainod in llo rocoivod TS1
Ordorod-Sol. Assumo llal llo Ianos aro looIod up in rovorso mannor
as slovn in Iiguro 14-12 on pago 532 and llal Dovico B doos nol sup-
porl llo Iano RovorsaI foaluro.
If llo dovnslroam dovicos Ianos aro rovorsod and il doos nol supporl
Iano RovorsaI, il rolurns llo TS1 Ordorod-Sols vill llo Iano Numbor
fioIds rovorsod. HopofuIIy, llo upslroam dovico supporls Iano RovorsaI
and accopls llo rovorso ordoring of llo Ianos.
- : Dovico B rolurns a TS1 Ordorod-Sol on oacl Iano vill a
IinI Numbor of and Iano Numbors of 3, 2, 1 and 0, rospoclivoIy,
numborod from Iofl lo rigll.
5. - Dovico A and B confirm llo IinI Numbor
and llo Iano Numbors nogolialod by oxclanging of TS2 Ordorod-Sols.
- : Dovico A and B oxclango a TS2 Ordorod-Sol on oacl
Iano vill llo IinI Numbor sol lo and llo Iano Numbors sol lo 3, 2, 1
and 0 (Ianos rovorsod), rospoclivoIy, for oacl of llo four Ianos.
Dovico As plysicaI Iin Numbors (Iano numbors) for llo four Ianos from
Iofl lo rigll aro 0, 1, and 0, 1 (llo samo numbors ropoalodbocauso Dovico
A is lvo-x2 porl capabIo). Hovovor, Dovico A onds up vill IogicaI Iano
Numbors of 3, 2, 1, 0, from Iofl lo rigll. Dovico Bs plysicaI Iin Numbors aro
3, 2, 1 and 0, from Iofl lo rigll. Tlo IogicaI Iano Numbors romain llo samo
as llo plysicaI Iano Numbors: 3, 2, 1 and 0.
Considor vlal vouId lappon if Dovico A did nol supporl Iano RovorsaI
(Iano RovorsaI is an oplionaI foaluro). In Slop 4, Dovico B rolurns four TS1
Ordorod-Sols vill Iano Numbors of 3, 2, 1 and 0. Dovico A vouId nol bo
abIo lo rovorso llo plysicaI Iano numbors of 0, 1, 2 and 3 llal il proposod in
Slop 3. Tlo IinI lraining procoss froozos al llis poinl. Tlis is a IinI lraining
PCI Express System Architecture
532
orror and is roporlod by llo upslroam dovico (Dovico A) via llo IinI Train-
ing Irror bil in llo IinI Slalus rogislor (soo Iiguro 14-22 on pago 552). A
syslom dosignor vouId bo vrong lo looI llo Ianos of lvo dovicos llal do
nol supporl Iano RovorsaI in a rovorsod mannor.
Recovery State
Tlo Rocovory slalo is aIso roforrod lo as llo Ro-Training slalo. Il is nol onlorod
during IinI lraining (vlicl occurs vlon a dovico comos oul of rosol). Tlo
Rocovory slalo is onlorod vlon a rocoivor noods lo rogain Bil and SymboI IocI,
or if an orror occurs vliIo in I0 llal rondors llo IinI inoporabIo. Rallor llan
going llrougl llo IoIIing and Configuralion slalos (vlicl lavo Iongor Ialon-
cios associalod vill llom), llo Rocovory slalo las a mucl slorlor Ialoncy (llo
IIIs aro aIroady oporalionaI and may onIy nood lo bo syncd). Tlo numbor of
Device A (Switch)
(Upstream Device)
One-x4 capable
Two-x2 capable
Two-x1 capable
One-x4 capable
One-x2 capable
One-x1 capable
Device B
(Downstream Device)
0 1 0 1 0 1 0 1
3 2 1 0 3 2 1 0
Physical Lane Numbers
Physical Lane Numbers
Logical Lane Numbers
After Link Training
3 2 3 2 1 0 1 0
3 2 3 2 1 0 1 0
Chapter 14: Link Initialization & Training
533
ITS Ordorod-Sols (N_ITS) roquirod for I0s oxil is ro-oslabIislod in Rocovory
and llo IinI is do-sIovod. Tlo IinI Numbor, Iano Numbors and bil lransfor
ralo (2.5Gbils/s) romain unclangod. If any of lloso llroo variabIos lavo
clangod sinco llo limo llo IinI vas in llo Configuralion slalo, llo ITSSM lran-
silions from llo Rocovory slalo lo llo Configuralion slalo.
Reasons that a Device Enters the Recovery State
- Ixil from I1 (roquiros llal llo rocoivor bo ro-lrainod).
- Ixil from I0s vlon llo rocoivor is unabIo lo acliovo Bil/SymboI IocI duo
lo llo rocoplion of an insufficionl numbor of ITS Ordorod-Sols.
- In caso of an orror llal rondors llo IinI unroIiabIo, soflvaro sols llo Rolrain
IinI bil in llo IinI ConlroI Rogislor (soo Iiguro 14-23 on pago 553).
- An orror condilion llal occurs in llo I0 slalo llal rondors llo IinI unroIi-
abIo may aulomalicaIIy causo llo Dala IinI Iayor or IlysicaI Iayor Iogic lo
inilialo a ro-lrain cycIo.
- Rocoplion of TS1 or TS2 Ordorod-Sols on any configurod Iano from a
romolo lransmillor signaIs llo rocoivor lo rolrain llo IinI.
- A rocoivor dolocls llal llo IinI las lransilionod lo llo IIoclricaI IdIo slalo
on aII configurod Ianos villoul firsl rocoiving llo IIoclricaI IdIo Ordorod-
Sols from llo lransmillor.
Initiating the Recovery Process
Boll dovicos on a IinI go llrougl Rocovory logollor. Ono of llo lvo dovicos
inilialos llo Rocovory procoss, lransmilling TS1 Ordorod-Sols lo ils noiglbor.
Tlo noiglbor goos llrougl Rocovory and rolurns llo favor by rolurning TS1
Ordorod-Sols llal llo inilialors rocoivor usos lo go llrougl Rocovory. In lrans-
milling and rocoiving TS1 Ordorod-Sols, boll llo rocoivor and llo lransmillor of
llo Ordorod-Sols rogains Bil/SymboI IocI, and llon rolurns lo llo I0 slalo.
Rofor lo Iiguro 14-13 on pago 537 for llo dolaiIod slops invoIvod in compIoling
llo Rocovory procoss doscribod boIov.
Recovery.RcvrLock SubState
A dovico onlors Rocovory for llo roasons silod in Roasons llal a Dovico
Inlors llo Rocovory Slalo on pago 533.
Tlo Rocoivor dolocls IIoclricaI IdIo oxil, or vlon diroclod by liglor-IovoI
soflvaro. IIoclricaI IdIo oxil moans llal llo rocoivor doloclod a vaIid diffor-
onliaI voIlago and slarls sooing TS1 Ordorod-Sols.
-
PCI Express System Architecture
534
Tlo Rocoivor onlors inlo Rocovory vlon il dolocls an N_ITS limooul (i.o., if
llo rocoivor is unabIo lo ro-oblain Bil/SymboI IocI aflor rocoiving N_ITS
ITS Ordorod-Sols, or if il rocoivos an insufficionl numbor of ITS Ordorod-
Sols, llon insload of going lo I0, il goos lo Rocovory).
Tlo lransmillor sonds TS1 Ordorod-Sols on aII configurod Ianos (vill
llo samo IinI and Iano Numbors as sol during llo Configuralion
slalo). Tlo spocificalion is uncIoar aboul lov many TS1 Ordorod-Sols
llo lransmillor slouId sond, bul llo aullor vonluros lo guoss llal il
slouId sond TS1 Ordorod-Sols unliI llis subslalo is oxilod.
If llo Ixlondod Sync bil is sol by soflvaro in llo IinI ConlroI rogislor
(soo Iiguro 14-23 on pago 553), llo lransmillor musl sond a minimum of
1024 TS1 Ordorod-Sols lo aIIov an oxlornaI moniloring dovico (i.o., a
looI), if connoclod, lo sync (oblain Bil/SymboI IocI).
Tlo rocoivor usos llo rocoivod TS1 Ordorod-Sols lo oblain Bil/SymboI
IocI.
A dovico advorlisos ils N_ITS vaIuo via llo TS1 Ordorod-Sols il sonds lo
llo romolo dovico. Tlis numbor can clango from vlal il vas during llo
Configuralion slalo.
A rocoivor usos llo COM symboI in llo rocoivod TS1 and TS2 Ordorod-
Sols lo do-sIov llo Ianos of llo IinI (soo Iano-lo-Iano Do-SIov on
pago 444).
A rocoivor movos lo Rocovor.RcvrCfg if oigll consoculivo TS1 or TS2
Ordorod-Sols aro rocoivod villoul IinI and Iano Numbor clangos.
Aflor 24ms, if llo rocoivor dolocls al Ioasl ono TS1 (bul nol oigll consoculivo
TS1 Ordorod-Sols) on ANY configurod Ianos and llo IinI Numbor and
Iano Numbor aro llo samo as llo numbors Transmillod in llo TS1 Ordorod-
Sols, llon il oxils lo Configuralion.
Aflor a 24ms limooul, if llo rocoivor doos nol dolocl TS1 or TS2 Ordorod-
Sols, or il dolocls TS1 or TS2 Ordorod-Sols vill llo IinI or Iano Numbor
difforonl from llo numbors in llo lransmillod TS1 or TS2 Ordorod-Sols,
llon il oxils lo Dolocl.
Recovery.RcvrCfg SubState
A rocoivor movos lo Rocovor.RcvrCfg if oigll consoculivo TS1 or TS2
Ordorod-Sols aro rocoivod villoul IinI and Iano Numbor clangos.
Chapter 14: Link Initialization & Training
535
Tlo Transmillor sonds TS2s on aII configurod Ianos (vill llo samo
IinI and Iano Numbors configurod oarIior). Again, llo spocificalion is
uncIoar aboul lov many TS2 Ordorod-Sols llo lransmillor slouId sond,
bul llo aullor vonluros lo guoss llal il slouId sond TS2 Ordorod-Sols
unliI llis subslalo is oxilod.
If llo N_ITS vaIuo clangos, llo dovico musl nolo llo nov vaIuo.
If llo IinI vas nol do-sIovod in llo Rocovory.RcvrIocI subslalo, a
rocoivor usos llo COM symboI in llo rocoivod TS1 and TS2 Ordorod-
Sols lo do-sIov llo Ianos of llo IinI (soo Iano-lo-Iano Do-SIov on
pago 444).
If oigll consoculivo TS2 Ordorod-Sols aro rocoivod vill no IinI/Iano
Numbor clangos and 16 TS2 Ordorod-Sols aro sonl aflor rocoiving ono TS1
or TS2 Ordorod-Sol, llon oxil lo Rocovory.IdIo.
If oigll consoculivo TS1 Ordorod-Sols aro rocoivod on ANY Iano vill IinI
or Iano Numbors llal do nol malcl vlal is boing lransmillod, llon oxil lo
Configuralion slalo.
Ixil lo Dolocl aflor a 48ms limooul and llo slalo maclino las nol oxilod lo
Rocovory.IdIo or Configuralion slalo.
Recovery.IdIe SubState
Inlor from Rocovory.RcvrCfg if oigll consoculivo TS2 Ordorod-Sols aro
rocoivod vill no IinI/Iano Numbor clangos and 16 TS2 Ordorod-Sols aro
sonl aflor rocoiving ono TS1 or TS2 Ordorod-Sol.
Tlo Transmillor sonds IogicaI IdIo symboIs on aII configurod Ianos
unIoss oxiling lo DisabIo, Hol Rosol, Configuralion, or IoopbacI.
Tlo Rocoivor vails for llo rocoipl of IogicaI IdIo symboIs on aII Ianos.
- -
If diroclod by liglor Iayors lo onlor llo DisabIo, IoopbacI or Hol Rosol
slalo. Tlo dovico lransmils TS1 or TS2 (TS2 nol vaIid for Hol Rosol caso)
vill llo DisabIo, IoopbacI or Hol Rosol bils sol.
If a dovico rocoivos lvo consoculivo TS1s or TS2s (TS2 nol vaIid for Hol
Rosol caso) vill llo DisabIo, IoopbacI or Hol Rosol bil sol, il oxils lo llo
DisabIo, IoopbacI or Hol Rosol slalo rospoclivoIy.
Soflvaro can inform a IoopbacI Maslor connoclod lo llo IinI lo onlor llo
IoopbacI slalo using an impIomonlalion spocific moclanism. Tlo Ioop-
bacI Maslor dovico conlinuousIy sonds TS1 Ordorod-Sols lo llo IoopbacI
PCI Express System Architecture
536
SIavo vill llo IoopbacI bil sol in llo TS1 Training ConlroI fioId unliI llo
IoopbacI sIavo rolurns TS1 Ordorod-Sols vill llo IoopbacI bil sol. Tlo
IoopbacI SIavo onlors IoopbacI vlon il rocoivos lvo consoculivo TS1s
vill llo IoopbacI bil sol.
SimiIarIy, soflvaro can command a dovico lo onlor llo DisabIo slalo by sol-
ling llo DisabIo bil in llo IinI ConlroI rogislor (soo Iiguro 14-23 on pago
553). Tlis dovico (a dovnslroam porl) llon lransmils 16 TS1 Ordorod-Sols
vill llo DisabIo IinI bil sol in llo TS1 Training ConlroI fioId. A connoclod
rocoivor (on llo upslroam porl) is disabIod vlon il rocoivos a TS1 vill llo
DisabIo IinI bil sol.
SimiIarIy, soflvaro can command a dovico lo onlor llo Hol Rosol slalo by
solling llo Socondary Bus Rosol bil in llo Bridgo ConlroI rogislor (soo In-
Band Rosol or Hol Rosol on pago 491). Tlis dovico (a dovnslroam porl)
llon lransmils TS1 Ordorod-Sols conlinuousIy for 2ms vill llo Hol Rosol
bil sol in llo TS1 Training ConlroI fioId. A rocoivor (in llo upslroam porl)
dolocls llo Hol Rosol vlon il rocoivos al Ioasl lvo TS1 Ordorod-Sols vill
llo Hol Rosol bil sol.
Ixils lo llo Configuralion slalo if diroclod by a liglor Iayor lo ro-configuro
llo IinI, or if lvo consoculivo TS1s aro rocoivod vill Iano numbors sol lo
llo IAD symboI.
If oigll IogicaI IdIo symboIs aro rocoivod on aII configurod Ianos.
Ixil lo Dolocl aflor a 2ms limooul if llo ITSSM doos nol oxil lo any of llo
ollor slalos abovo.
Chapter 14: Link Initialization & Training
537
- - - --
-- - - -
- - - --
-- -
-
- - - - -
- -
- - -
---
-- -
-
- -- - --
-
Recovery.RcvrLock
(bit/symbol re-lock)
Recovery.RcvrCfg
Exit to L0
Entry from
L1, L0, L0s
Rx TS2 with
Link/Lane change
Recovery.Idle
(Send idle data)
48 ms
timeout
Exit to
Detect
Exit to
Configuration
Exit to
Detect
2 ms
timeout
or directed
8 Idle
Symbols
24 ms timeout or
TS1/TS2 Rx with
Link/Lane change
8 consecutive
TS1s/TS2s received and
no Link/Lane change
8 consecutive
TS2s received
No Link/Lane
change
Exit to Hot
Reset
Exit to
Configuration
Exit to
Disabled
Exit to
Loopback
Send TS1s
on all lanes
Send TS2s
on all lanes
Directed
Directed
Or 2 TS1s
With Lane#
PAD
Directed
After 24 ms timeout, < 8
TS1/TS2 Rx with
no Link/Lane change on
ANY Lane
Directed
PCI Express System Architecture
538
-
Tlo Transmillor onlors I0s vlon diroclod lo do so by ils liglor Iayors. A
Rocoivor onlors I0s vlon il rocoivos an IIoclricaI IdIo Ordorod-Sol and llo
IinI lransilions lo llo IIoclricaI IdIo slalo.
Soo I1 Slalo on pago 541 for a dolaiIod doscriplion.
Soo I2 Slalo on pago 543 for a dolaiIod doscriplion.
L0s State
Tlis is a Iovor povor slalo llal las llo slorlosl oxil Ialoncy lo I0. Dovicos man-
ago onlry and oxil from llis slalo aulomalicaIIy villoul any liglor IovoI sofl-
varo invoIvomonl.
L0s Transmitter State Machine
Iiguro 14-14 on pago 539 slovs llo lransmillor slalo maclino associalod vill
I0s slalo onlry and oxil.
-
Tlo I0s slalo maclino is onlorod vlon llo dovico is diroclod lo do so by an
uppor Iayor. Tlis may occur via a limooul moclanism lriggorod duo lo pori-
ods of inaclivily (no TII, DIII or III lransmission aclivily) on llo IinI.
-
Tlo Transmillor sonds an IIoclricaI IdIo Ordorod-Sol and llo IinI
onlors llo IIoclricaI IdIo slalo.
Tlo Transmillor drivos a DC common modo voIlago bolvoon 0 - 3.6 V.
-
Ixil lo Tx_I0s.IdIo aflor 50 UI (20ns) vliIo llo lransmillor drivos a slabIo
DC common modo voIlago.
-
-Inlor Tx_I0s.IdIo aflor 50 UI (20 ns) vliIo llo
lransmillor drivos a slabIo DC common modo voIlago.
-
Tlo IinI is in llo IIoclricaI IdIo slalo.
Tlo lransmillors oulpul impodanco couId bo Iov or ligl.
-
Ixil lo Tx_I0s.ITS if diroclod lo do so by a liglor Iayor. Ior oxampIo, vlon
il is limo for a dovico lo rosumo pacIol lransmission, il viII oxil llis slalo.
Chapter 14: Link Initialization & Training
539
-
-
Inlor Tx_I0s.ITS if diroclod lo do so by a liglor Iayor.
-
To oxil llo IIoclricaI IdIo subslalo, llo lransmillor sonds llo numbor of
ITS Ordorod-Sols spocifiod by N_ITS. Tlo N_ITS numbor is dofinod
during IinI Training (Configuralion and Rocovory slalos) during
vlicl oacl dovico advorlisos llo numbor of ITS sols il roquiros lo
acliovo IocI.
If llo Ixlondod Syncl bil is sol (soo Iiguro 14-23 on pago 553), llo lrans-
millor sonds 4096 ITS Ordorod-Sols insload of N_ITS numbor of ITS
Ordorod-Sols.
IoIIov llis by ono SIip Ordorod-Sol. No SKII Ordorod-Sols aro lrans-
millod during llo lransmission of ITS Ordorod-Sols.
Ixil lo I0 slalo aflor llo SIip Ordorod-Sol lransmission.
- -
Tx_L0s.Entry
Tx_L0s.Idle
(Tx in Electrical
Idle low power)
Tx_L0s.FTS
Exit to
L0
Entry
from L0
T
TX-IDLE-MIN
= 50 UI
Directed
Transmitter sends
Electrical IDLE
ordered-set
Transmitter sends
N_FTSs on all Lanes
Transmitter sends
One SKIP ordered set
PCI Express System Architecture
540
L0s Receiver State Machine
Iiguro 14-15 on pago 541 slovs llo rocoivor slalo maclino associalod vill I0s
slalo onlry and oxil.
-
Tlis Iovor povor slalo is onlorod if a rocoivor rocoivos an IIoclricaI IdIo
Ordorod-Sol.
-
Wail in llo slalo for minimum of 50 UI (20ns).
Tlo rocoivors inpul impodanco romains Iov.
-
Ixil lo Rx_I0s.IdIo aflor 50 UI (20ns).
-
-
Inlor Rx_I0s.IdIo aflor 50 UI (20ns).
-
Wail unliI llo rocoivor dolocls an IIoclricaI IdIo oxil (i.o., a vaIid difforonliaI
voIlago is soon on llo rocoivors).
-
Tlo noxl slalo is Rx_I0s.ITS if llo rocoivor dolocls IIoclricaI IdIo oxil on any
configurod Iano.
-
-
Inlor llis slalo from Rx_I0s.IdIo if llo rocoivor dolocls IIoclricaI IdIo oxil on
any configurod Iano.
-
Rocoivor oblains Bil/SymboI IocI if a sufficionl numbor of ITS
Ordorod-Sols aro rocoivod.
Tlo rocoivor musl bo abIo lo rocoivo pacIols aflor llis slalo.
Ixil lo I0 slalo aflor SIip Ordorod-Sol rocoplion and a sufficionl numbor of
ITS Ordorod-Sols aro rocoivod (as advorlisod during llo Configuralion or
Rocovory slalos via llo N_ITS fioId of llo TS1/TS2 Ordorod-Sol).
Rocovory slalo is onlorod if an N_ITS limooul occurs (i.o., if llo rocoivor
rocoivos an insufficionl ITS Ordorod-Sols lo ro-oblain Bil/SymboI IocI).
Chapter 14: Link Initialization & Training
541
L1 State
Tlis is a Iovor povor slalo llan I0s and las a Iongor oxil Ialoncy llan llo I0s
oxil Ialoncy. Dovicos can manago onlry and oxil from llis slalo aulomalicaIIy
villoul any liglor IovoI soflvaro invoIvomonl. In addilion, Iovor manago-
monl soflvaro may dirocl a dovico lo pIaco ils upslroam IinI inlo I1 (boll
diroclions of llo IinI go lo I1) vlon llo dovico is pIacod in a Iovor povor
dovico slalo sucl as D1, D2, or D3.
Iiguro 14-16 on pago 542 slovs llo I1 onlry and Ixil slalo maclino. Tlis slalo
maclino is doscribod in llo subsoclions llal foIIov.
L1.Entry SubState
Tlo I0s slalo maclino is onlorod vlon a dovicos liglor Iayor dirocls llo dovico
lo do so.
- Tlo Transmillor sonds an IIoclricaI IdIo Ordorod-Sol and llo IinI onlors llo
IIoclricaI IdIo slalo.
-
Rx_L0s.Entry
Rx_L0s.Idle
(Rx in Electrical
Idle low power)
Rx_L0s.FTS
Exit to
L0
Entry
from L0
T
TX-IDLE-MIN
= 50 UI
Electrical
Idle Exit
N_FTS
timeout
Exit to
Recovery
Receiver detects
Electrical IDLE
ordered-set
SKIP
Ordered
Set
PCI Express System Architecture
542
- Tlo Transmillor drivos a DC common modo voIlago bolvoon 0 - 3.6 V.
Ixil lo I1.IdIo aflor 50 UI (20ns), vliIo llo lransmillor drivos a slabIo DC com-
mon modo voIlago.
L1.IdIe SubState
Inlor I1.IdIo aflor 50 UI (20ns), vliIo llo lransmillor drivos a slabIo DC com-
mon modo voIlago.
- Tlo IinI is in llo IIoclricaI IdIo slalo.
- Tlo lransmillors oulpul impodanco couId bo Iov or ligl, vliIo llo
rocoivors romains in llo Iov impodanco slalo.
- Romain in llis slalo unliI llo rocoivor dolocls IIoclricaI IdIo oxil (a vaIid dif-
foronliaI voIlago associalod vill llo rocoplion of a TS1 Ordorod-Sol usod lo
signaI I1 oxil).
Ixil lo Rocovory aflor llo rocoivor dolocls llo IIoclricaI IdIo oxil condilion, or if
llo dovico is diroclod lo do so.
L1.Entry
L1.Idle
(Electrical
Idle low power)
Exit to
Recovery
Entry
from L0
Directed or
Electrical Idle Exit
T
TX-IDLE-MIN=
50 UI
Directed and
Electrical Idle
Ordered set
Received and
Transmitted
Tx in Electrical Idle
Remain in
Electrical Idle
Chapter 14: Link Initialization & Training
543
L2 State
Tlis is ovon Iovor povor slalo llan I1 and las a Iongor oxil Ialoncy llan I1 oxil
Ialoncy. Iovor Managomonl soflvaro dirocls a dovico lo pIaco ils upslroam IinI
inlo I2 (boll diroclions of llo IinI go lo I2) vlon llo dovico is pIacod in a
Iovor povor dovico slalo sucl as D3
CoId
.
Iiguro 14-17 on pago 544 slovs llo I2 onlry and Ixil slalo maclino. Tlis slalo
maclino is doscribod noxl.
L2.IdIe SubState
Tlis slalo is onlorod vlon diroclod lo do so by liglor Iayors and an IIoclricaI
IdIo Ordorod-Sol is oxclangod bolvoon noiglbors across a IinI.
- Tlo Rocoivor romains in llo Iov impodanco slalo.
- Tlo Transmillor musl romain in llo IIoclricaI IdIo slalo for a minimum of 50
UI (20ns).
- Tlo Rocoivor slarls IooIing for llo IIoclricaI oxil condilion.
- DC common modo voIlago doosnl lavo lo bo in spoc. May bo lurnod off.
-
Wlon an upslroam porl is diroclod lo sond llo Boacon signaI duo lo a vaIoup
ovonl. AIso, vlon a Boacon is rocoivod on al Ioasl Iano 0 of a svilcl dovn-
slroam porl.
Wlon a Boacon is rocoivod on al Ioasl Iano 0 of a Rool CompIox dovnslroam
porl or if a Rool Iorl is diroclod by a liglor Iayor lo go lo llo Dolocl slalo. AIso,
oxil lo Dolocl if an upslroam Iano dolocls llo IIoclricaI IdIo oxil condilion.
L1.TransmitWake SubState
Inlor inlo I2.TransmilWaIo vlon an upslroam porl is diroclod lo sond llo Boa-
con signaI duo lo a vaIoup ovonl. AIso, oxil lo I2.TransmilWaIo vlon a Boacon
signaI is rocoivod on al Ioasl Iano 0 of a svilcl dovnslroam porl.
-
Transmil llo Boacon signaI on al Ioasl Iano 0 of llo upslroam porl in llo diroc-
lion of llo Rool CompIox.
Go lo Dolocl if an upslroam porl dolocls IIoclricaI IdIo oxil condi-
lion.
PCI Express System Architecture
544
Hot Reset State
Hol Rosol is an in-band signaIod rosol lriggorod by soflvaro as oxpIainod in In-
Band Rosol or Hol Rosol on pago 491. Tlo slalo maclino in Iiguro 14-18 on
pago 545 doscribos onlry lo and oxil from llo Hol Rosol slalo.
IinIs llal aro diroclod lo do so by liglor Iayors onlor Hol Rosol llrougl llo
Rocovory slalo.
-
- On aII Ianos, llo lransmillor (on a dovnslroam porl) conlinuousIy lrans-
mils TS1s vill llo Hol Rosol bil sol and conlaining llo configurod IinI and
Iano Numbors. Tlo Hol Rosol inilialor aIso rosols ilsoIf.
- A rocoivor dolocls Hol Rosol vlon il dolocls al Ioasl lvo TS1s vill llo Hol
Rosol bil sol. Il onlors llo Hol Rosol slalo llrougl rocovory.
- IinIUp = 0.
Ixil lo dolocl aflor a 2ms limooul.
L2.Idle
(Electrical Idle low
power. No DC CMV)
L2.TransmitWake
Exit to
Detect
Entry
from L0
Send Beacon
(Upstream ports only)
Exit from
Electrical Idle
Detected
Directed and
Electrical Idle
Ordered set
Received and
Transmitted
Rx terminations
Enabled
Rx looking for exit
Directed or
Beacon detected
(Downstream Root ports)
Exit from Elec. Idle
(Upstream Lanes)
Beacon detected
(Downstream Switch ports)
Directed to send Beacon
(Upstream ports)
Chapter 14: Link Initialization & Training
545
DisabIe State
A DisabIod IinI is a IinI llal is off and doos nol lavo lo lavo llo DC common
modo voIlago drivon. If, for oxampIo, soflvaro vislos lo lurn off a fauIly IinI, il
can do so by solling llo IinI DisabIo bil (soo Iiguro 14-23 on pago 553) in llo
IinI ConlroI rogislor of a dovico. Tlal dovico lransmils TS1s vill llo IinI Dis-
abIo bil assorlod. Tlo slalo maclino in Iiguro 14-19 on pago 546 doscribos onlry
lo and oxil from llo DisabIo slalo.
AII Ianos lransmil 16 TS1 Ordorod-Sols vill llo IinI DisabIo bil assorlod and
llon lransilion lo IIoclricaI IdIo aflor lransmilling llo IIoclricaI IdIo Ordorod-
Sol. If no IIoclricaI IdIo Ordorod-Sol is lransmillod, llon llo rocoivor lransilions
lo llo Dolocl slalo aflor 2ms. Tlo DC common modo voIlago doos nol lavo lo bo
villin spoc vliIo in Dolocl.
-
- Romain in DisabIo slalo unliI llo DisabIo oxil condilion is doloclod.
- Tlo DC common modo voIlago doos nol lavo lo bo villin spoc.
- IinIUp = 0.
-
Hot Reset
Exit to
Detect
Recovery
Tx for 2 ms TS1s w/ Hot Reset bit 0 of symbol 5 set
Or Rx two TS1s with Hot Reset bit set
Directed
Timeout
2 ms
PCI Express System Architecture
546
Ixil lo dolocl aflor a 2ms limooul vloroin no IIoclricaI IdIo Ordorod-sol is
rocoivod, or DisabIo onlry, or an IIoclricaI IdIo oxil is sonsod, or as diroclod by
liglor Iayors.
-
Disabled
(Electrical Idle)
Exit to
Detect
Entry
From Configuration
Or Recovery
Directed or
Electrical Idle Exit or
No Electrical Idle
ordered set after 2 ms
Tx 16 TS1s w/ Disable bit 1 of Symbol 5 set
And Tx Electrical Idle ordered set
Chapter 14: Link Initialization & Training
547
Loopback State
Tlo IoopbacI foaluro is a losl and dobug foaluro and is nol usod in normaI
oporalion. A IoopbacI maslor dovico (sucl as a loslor) vlon connoclod lo a
dovicos IinI (llo dovico undor losl is llo IoopbacI sIavo vlon in llo Ioop-
bacI slalo) can pIaco llo IinI and IoopbacI sIavo inlo llo IoopbacI slalo by
lransmilling TS1 Ordorod-Sols vill llo IoopbacI bil assorlod. Tlo IoopbacI
maslor can sorvo as llo BIST (BuiIl In SoIf Tosl) ongino.
Onco in llis slalo, llo IoopbacI maslor sonds vaIid 8b/10b oncodod symboIs lo
llo IoopbacI sIavo. Tlo IoopbacI sIavo lurns around and foods bacI llo sym-
boI slroam. Tlo IoopbacI sIavo conlinuos lo porform cIocI loIoranco componsa-
lion, so llo maslor musl onsuro llal il insorls SIip Ordorod-Sols al llo corrocl
inlorvaIs. To porform cIocI loIoranco componsalion, llo IoopbacI sIavo may
lavo lo add or doIolo SKI symboIs lo llo SIip Ordorod-Sol llal il foods bacI
vill llo symboI slroam lo llo IoopbacI maslor. If SKI symboIs aro addod by
llo IoopbacI sIavo, lloy lavo lo bo of llo samo disparily as llo rocoivod SKI
symboIs.
Tlo IoopbacI slalo is oxilod vlon llo IoopbacI maslor lransmils llo IIoclricaI
IdIo Ordorod-Sol and llo rocoivor dolocls llal llo IinI las lransilionod lo llo
IIoclricaI IdIo slalo.
Soo Iiguro 14-20 on pago 549 for a doscriplion of IoopbacI onlry and oxil proco-
duro.
Loopback.Entry SubState
The Previous Chapter
Tlo provious claplor doscribod llo funclion of llo IinI Training and Slalus
Slalo Maclino (ITSSM) of llo IlysicaI Iayor. Il aIso doscribod llo iniliaIizalion
procoss of llo IinI from Iovor-On or Rosol, unliI llo fuII-on I0 slalo, vloro
lraffic on llo IinI can bogin. In addilion, llo claplor doscribod llo Iovor povor
managomonl slalos I0s, I1, I2, I3 and briofIy discussos onlry and oxil proco-
duro lo/from lloso slalos.
This Chapter
Tlis claplor doscribos llo moclanisms llal soflvaro can uso lo dolormino
vlollor llo syslom can supporl an add-in card basod on llo amounl of povor
and cooIing capacily il roquiros.
The Next Chapter
Tlo noxl claplor providos a dolaiIod doscriplion of ICI Ixpross povor manago-
monl, vlicl is compalibIo vill rovision 1.1 of llo -
and llo rovision 2.0 (ACII). In
addilion ICI Ixpross dofinos oxlonsions llal aro orllogonaI lo llo ICI-IM
spocificalion. Tloso oxlonsions focus primariIy on IinI Iovor and IM ovonl
managomonl. Tlis claplor aIso providos an ovoraII conloxl for llo discussion of
povor managomonl, by incIuding a doscriplion of llo OnNov Inilialivo, ACII,
and llo invoIvomonl of llo Windovs OS is aIso providod.
Introduction to Power Budgeting
Tlo primary goaI of llo ICI Ixpross povor budgoling capabiIily is lo aIIocalo
povor for ICI Ixpross lol pIug dovicos, vlicl can bo addod lo llo syslom dur-
ing runlimo. Tlis capabiIily onsuros llal llo syslom can aIIocalo llo propor
amounl of povor and cooIing for lloso dovicos.
-- -
Tlo spocificalion slalos llal povor budgoling capabiIily is oplionaI for ICI
Ixpross dovicos impIomonlod in a form faclor vlicl doos nol roquiro lol pIug,
or llal aro inlogralod on llo syslom board. Nono of llo form faclor spocifica-
lions roIoasod al llo limo of llis vriling roquirod supporl for lol pIug and did
nol roquiro llo povor budgoling capabiIily. Hovovor, form faclor spocificalions
undor dovoIopmonl viII roquiro lol pIug supporl and may aIso roquiro povor
budgoling capabiIily.
Syslom povor budgoling is aIvays roquirod lo supporl aII syslom board dovicos
and add-in cards. Tlo nov povor budgoling capabiIily providos moclanisms
for managing llo budgoling procoss. Iacl form faclor spocificalion dofinos llo
minimum and maximum povor for a givon oxpansion sIol. Ior oxampIo, llo
IIoclromoclanicaI spocificalion Iimils llo amounl of povor an oxpansion card
can consumo prior lo and during configuralion, bul aflor a card is configurod
and onabIod, il can consumo llo maximum amounl of povor spocifiod for llo
sIol. Claplor 18, onlilIod "Add-in Cards and Connoclors," on pago 685. Conso-
quonlIy, in llo absonco of llo povor budgoling capabiIily rogislors, llo syslom
dosignor is rosponsibIo for guaranlooing llal povor las boon budgolod cor-
roclIy and llal sufficionl cooIing is avaiIabIo lo supporl any compIianl card
inslaIIod inlo llo connoclor.
Tlo spocificalion dofinos llo configuralion rogislors llal aro dosignod lo sup-
porl llo povor budgoling procoss, bul doos nol dofino llo povor budgoling
mollods and procossos. Tlo noxl soclion doscribos llo lardvaro and soflvaro
oIomonls llal vouId bo invoIvod in povor budgoling, incIuding llo spocifiod
configuralion rogislors.
The Power Budgeting EIements
Iiguro 15-2 iIIuslralos llo concopl of Iovor Budgoling for lol pIug cards. Tlo
roIo of oacl oIomonl invoIvod in llo povor budgoling, aIIocalion, and roporling
procoss is Iislod and doscribod boIov:
- Syslom Iirmvaro Iovor Managomonl (usod during bool limo)
- Iovor Budgol Managor (usod during run limo)
- Ixpansion Iorls (porls lo vlicl card sIols aro allaclod)
- Add-in Dovicos (Iovor Budgol CapabIo)
- Syslom firmvaro, laving InovIodgo of llo syslom dosign,
is rosponsibIo for roporling syslom povor informalion. Tlo spocificalion rocom-
monds llo foIIoving povor informalion bo roporlod lo llo ICI Ixpross povor
budgol managor, vlicl aIIocalos and vorifios povor consumplion and dissipa-
- - Iiguro 15-2 on pago 561 iIIuslralos a lol pIug porl llal musl
lavo llo SIol Iovor Iimil and SIol Iovor ScaIo fioIds villin llo SIol CapabiIi-
lios rogislor impIomonlod. Tlo firmvaro or povor budgol managor musl Ioad
lloso fioIds vill a vaIuo llal roprosonls llo maximum amounl of povor sup-
porlod by llis porl. Wlon soflvaro vrilos lo lloso fioIds llo porl doIivors llo
Sol_SIol_Iovor_Iimil mossago lo llo dovico. Tloso fioIds aro aIso vrillon vlon
soflvaro configuros a card llal las boon addod during a lol pIug inslaIIalion.
Tlo ICI Ixpross spocificalion roquiros llal:
- Any dovnslroam porl of a Svilcl or a Rool CompIox llal las a sIol
allaclod (i.o., llo SIol ImpIomonlod bil villin ils ICI Ixpross CapabiIilios
rogislor is sol) musl impIomonl llo SIol CapabiIilios rogislor.
- Soflvaro musl iniliaIizo llo SIol Iovor Iimil VaIuo and ScaIo fioIds of llo
SIol CapabiIilios rogislor of llo Svilcl or Rool CompIox Dovnslroam Iorl
llal is connoclod lo an add-in sIol.
- Tlo Upslroam Iorl of an Indpoinl, Svilcl, or a ICI Ixpross-ICI Bridgo
musl impIomonl llo Dovico CapabiIilios rogislor.
- Wlon a card is inslaIIod in a sIol, and soflvaro updalos llo povor Iimil and
scaIo vaIuos in llo Dovnslroam porl of llo Svilcl or Rool CompIox, llal
porl viII aulomalicaIIy lransmil llo Sol_SIol_Iovor_Iimil mossago lo llo
Upslroam Iorl of llo Indpoinl, Svilcl, or a ICI Ixpross-ICI Bridgo on llo
inslaIIod card.
- Tlo rocipionl of llo Mossago musl uso llo vaIuo in llo Mossago dala pay-
Ioad lo Iimil usago of llo povor for llo onliro card/moduIo, unIoss llo
card/moduIo viII novor oxcood llo Iovosl vaIuo spocifiod in llo corro-
sponding oIoclromoclanicaI spocificalion.
-Ixpansion cards llal supporl llo povor budgoling capabiIily
musl incIudo llo:
- SIol Iovor Iimil VaIuo and SIol Iimil ScaIo fioIds villin llo Dovico Capa-
biIilios rogislor.
- Iovor Budgoling CapabiIily rogislor sol for roporling povor-roIalod infor-
malion.
Tloso dovicos musl nol consumo moro povor llan llo Iovosl povor spocifiod
by llo form faclor spocificalion. Onco povor budgoling soflvaro aIIocalos addi-
lionaI povor via llo Sol_SIol_Iovor_Iimil mossago, llo dovico can consumo
llo povor spocifiod, bul nol unliI il las boon configurod and onabIod.
-- -
vlon dolormining llo offocls of oxpansion cards llal aro addod during runlimo
on llo syslom povor budgol and cooIing roquiromonls. Tlrougl llis capabiIily,
a dovico can roporl llo povor il consumos:
- from oacl povor raiI
- in various povor managomonl slalos
- in difforonl oporaling condilions
Tloso rogislors aro nol roquirod for dovicos impIomonlod on llo syslom board
or on oxpansion dovicos llal do nol supporl lol pIug. Iiguro 15-4 on pago 565
iIIuslralos llo povor budgol capabiIilios rogislor sol and slovs llo dala soIocl
and dala fioId llal provido llo mollod for accossing llo povor budgol informa-
lion.
Tlo povor budgol informalion is mainlainod villin a labIo llal consisls of ono
or moro 32-bil onlrios. Iacl labIo onlry conlains povor budgol informalion for
llo difforonl oporaling modos supporlod by llo dovico. Iacl labIo onlry is
soIoclod via llo dala soIocl fioId, and llo soIoclod onlry is llon road from llo
dala fioId. Tlo indox vaIuos slarl al zoro and aro impIomonlod in soquonliaI
ordor. Wlon a soIoclod indox rolurns aII zoros in llo dala fioId, llo ond of llo
povor budgol labIo las boon Iocalod. Iiguro 15-5 on pago 566 iIIuslralos llo for-
mal and lypos of informalion avaiIabIo from llo dala fioId.
--
-- -
Introduction
ICI Ixpross povor managomonl (IM) dofinos lvo major aroas of supporl:
- . ICI Ixpross povor managomonl is
basod upon lardvaro and soflvaro compalibIo vill llo -
Rovision 1.1 (aIso roforrod lo as ICI-IM)
and llo Rovision 2.0
(commonIy Inovn as ACII). Tlis supporl roquiros llal aII ICI Ixpross
funclions incIudo llo ICI Iovor Managomonl CapabiIily rogislors, vlicl
pormils lransilions bolvoon funclion IM slalos.
- -- --. Tloso oxlonsions dofino aulonomous lard-
varo-basod IinI Iovor Managomonl, moclanisms for vaIing llo syslom,
a Mossago lransaclion lo roporl Iovor Managomonl Ivonls (IMI), and Iov
povor lo aclivo slalo Ialoncy roporling and caIcuIalion.
Tlis claplor is sogmonlod inlo fivo major soclions:
1. Tlo firsl soclion is inlondod as a primor for llo discussion of povor man-
agomonl, by rovioving llo roIo of syslom soflvaro in conlroIIing povor
managomonl foaluros. Tlis soclion roslricls llo discussion lo llo
povor-managomonl soflvaro from llo Windovs Oporaling Syslom por-
spoclivo.
2. Tlo socond soclion Iunclion Iovor Managomonl on pago 585 discussos
ICI-IM roquirod by ICI Ixpross for pIacing funclions inlo lloir Iov povor
slalos. Tlis soclion aIso documonls llo ICI-IM capabiIily rogislors usod in
ICI Ixpross. Nolo llal somo of llo rogislor dofinilions aro modifiod or nol
usod by ICI Ixpross funclions.
3. Noxl, IinI Aclivo Slalo Iovor Managomonl on pago 608 doscribos llo
aulonomous IinI povor managomonl llal occurs vlon a dovico is in ils
aclivo slalo (D0). Aclivo Slalo Iovor Managomonl (ASIM) is a lard-
varo-basod IinI povor consorvalion moclanism. Soflvaro onabIos ASIM
and roads Ialoncy vaIuos lo dolormino llo IovoI of ASIM approprialo, bul
doos nol inilialo lransilions inlo ASIM.
4. Tlo llird soclion Soflvaro Inilialod IinI Iovor Managomonl on
pago 629 discussos llo IinI povor managomonl, vlicl is lriggorod by
ICI-IM soflvaro vlon il clangos llo povor slalo of a dovico. ICI Ixpross
dovicos aro roquirod lo aulomalicaIIy consorvo IinI povor vlon soflvaro
pIacos a dovico inlo a Iov povor slalo, incIuding D3coId, (causod by llo rof-
oronco cIocI and main povor boing compIoloIy romovod from a dovico).
5. IinaIIy, IinI WaIo IrolocoI and IMI Gonoralion on pago 638 covors
Iovor Managomonl Ivonls (IMI) and vaIoup signaIing. Dovicos may
roquosl llal soflvaro rolurn llom lo llo aclivo slalo so lloy can landIo an
ovonl llal las occurrod. Tlis is dono by sonding IMI mossagos. Wlon
povor las boon romovod from a dovico, auxiIiary povor is roquirod lo
monilor ovonls and lo signaI WaIoup for roaclivaling llo IinI. Onco a
dovico las boon ro-povorod and llo IinI las boon ro-lrainod llo IMI mos-
sago can bo sonl.
Primer on Configuration Software
Tlo - doscribos lov lo impIomonl llo ICI IM
rogislors llal aro roquirod in ICI Ixpross. Tloso rogislors pormil llo OS lo man-
ago llo povor onvironmonl of boll ICI and ICI Ixpross funclions.
Rallor llan immodialoIy diving inlo a dolaiIod nuls-and-boIls doscriplion of
llo - , ils a good idoa lo bogin by doscribing
vloro il fils villin llo ovoraII conloxl of llo OS and llo syslom. Ollorviso, llis
vouId jusl bo a disconnoclod discussion of rogislors, bils, signaIs, olc. vill no
framo of roforonco.
Basics of PCI PM
Tlo mosl popuIar OSs curronlIy in uso on IC-compalibIo maclinos aro Win-
dovs 98/NT/2000/XI. Tlis soclion providos an ovorviov of lov llo OS inlor-
acls vill ollor major soflvaro and lardvaro oIomonls lo manago llo povor
usago of individuaI dovicos and llo syslom as a vloIo. TabIo 16-1 on pago 569
inlroducos llo major oIomonls invoIvod in llis procoss and providos a vory
basic doscriplion of lov lloy roIalo lo oacl ollor. Il slouId bo nolod llal noillor
llo ICI Iovor Managomonl spoc nor llo ACII spoc (Advancod Configuralion
and Iovor Inlorfaco) diclalo llo poIicios llal llo OS usos lo manago povor. Il
doos, lovovor, dofino llo rogislors (and somo dala slrucluros) llal aro usod lo
conlroI llo povor usago of ICI and ICI Ixpross funclions.
-
--
OS Dirocls llo -- .To accompIisl llis goaI,
llo OS issuos roquosls lo llo ACII Drivor, WDM (Windovs Drivor
ModoI) dovico drivors, and lo llo ICI Ixpross Bus Drivor. AppIicalion
programs llal aro povor consorvalion-avaro inloracl vill llo OS lo
accompIisl dovico povor managomonl.
-- -
GoaIs
Tlo OnNov Dosign Inilialivo roprosonls llo ovoraII guiding spiril bolind llo
sougll-aflor IC dosign. Tlo foIIoving aro llo major goaIs as slalod in an
OnNov documonl:
- Tlo IC is roady for uso immodialoIy vlon llo usor prossos llo On bullon.
- Tlo IC is porcoivod lo bo off vlon nol in uso bul is sliII capabIo of rospond-
ing lo vaIo-up ovonls. WaIo-up ovonls migll bo lriggorod by a dovico
rocoiving inpul sucl as a plono ringing, or by soflvaro llal las roquoslod
llo IC lo vaIo up al somo prodolorminod limo.
- Soflvaro adjusls ils bolavior vlon llo IC's povor slalo clangos. Tlo opor-
aling syslom and appIicalions vorI logollor inloIIigonlIy lo oporalo llo IC
lo doIivor offoclivo povor managomonl in accordanco vill llo usor's cur-
ronl noods and oxpoclalions. Ior oxampIo, appIicalions viII nol inadvorl-
onlIy Ioop llo IC busy vlon il is nol nocossary, and insload viII
proaclivoIy parlicipalo in slulling dovn llo IC lo consorvo onorgy and
roduco noiso.
- AII dovicos parlicipalo in llo dovico povor managomonl sclomo, vlollor
originaIIy inslaIIod in llo IC or addod Ialor by llo usor. Any nov dovico can
lavo ils povor slalo clangod as syslom uso diclalos.
System PM States
TabIo 16-2 on pago 572 dofinos llo possibIo slalos of llo ovoraII syslom vill rof-
oronco lo povor consumplion. Tlo WorIing, SIoop, and Sofl Off slalos
aro dofinod in llo OnNov Dosign Inilialivo documonls.
- - - -
-
WorIing Tlo syslom is compIoloIy usabIo and llo OS is porforming povor
managomonl on a dovico-by-dovico basis. As an oxampIo, llo modom
may bo povorod dovn during poriods vlon il isnl boing usod.
Device PM States
Tlo OnNov Dosign Inilialivo aIso dofinos llo IM slalos al llo dovico IovoI.
Tloy aro Iislod and dofinod in TabIo 16-4 on pago 574. TabIo 16-3 on pago 573
prosonls llo samo informalion in a sIigllIy difforonl form.
SIooping Tlo syslom appoars lo bo off and povor consumplion las boon
roducod. Tlo sIoop IovoIs a syslom may impIomonl is syslom
dosign-spocific. Tlo amounl of limo il laIos lo rolurn lo llo WorI-
ing slalo is invorsoIy proporlionaI lo llo soIoclod IovoI of povor con-
sorvalion. Horo aro somo oxampIos:
- Tlo syslom may Ioop povor appIiod lo main momory, lloroby pro-
sorving llo OS and appIicalion programs in momory. Tlo procos-
sors rogislor sol conlonls may aIso bo prosorvod. In llis caso,
program oxoculion can bo rosumod vory quicIIy.
- Tlo syslom may copy llo compIolo conlonls of main momory and
llo procossors rogislor sol conlonls lo disI, and llon romovo
povor from llo procossor and main momory. In llis caso, llo
roslarl limo viII bo Iongor bocauso momory musl rosloro boll
boforo rosuming program oxoculion.
Sofl Off Tlo syslom appoars lo bo off and povor consumplion las boon
groalIy roducod. Il roquiros a fuII robool lo rolurn lo llo WorIing
slalo (bocauso llo conlonls of momory lavo boon Iosl).
No Iovor Tlis slalo isnl Iislod in llo OnNov Dosign Inilialivo documonls. Tlo
syslom las boon disconnoclod from ils povor sourco.
-
-
D0 - . Slalo in vlicl dovico is on and running. Il is
rocoiving fuII povor from llo syslom and is doIivoring fuII funclionaIily lo
llo usor. Tlis is llo iniliaI slalo onlorod aflor a dovico compIolos rosol.
- - - -
-
-- -
D0 Higlosl NA
D1 < D0 Iaslor llan D2
D2 < D1 Iaslor llan D3
D3 Ior aII inlonls and purposos, ,
aIllougl lloro migll bo somo nogIi-
gibIo consumplion.
SIovosl
-
-
- DispIay
- Inpul
- NolvorI
- IC Card
- Slorago
Tloy aro avaiIabIo on Microsofls Hardvaro DovoIopors vob silo.
Power Management PoIicy Owner
A dovicos IM poIicy ovnor is dofinod as llo soflvaro moduIo
llal maIos docisions rogarding llo IM slalo of a dovico.
- In a Windovs onvironmonl, llo poIicy
ovnor is llo cIass-spocific drivor (i.o., llo WDM) associalod vill dovicos of llal
cIass.
PCI Express Power Management vs. ACPI
PCI Express Bus Driver Accesses PCI Express Configuration
and PM Registers
As indicalod in TabIo 16-1 on pago 569 and Iiguro 16-1 on pago 578, llo ICI
Ixpross Bus Drivor undorslands llo Iocalion, formal and usago of llo IM rogis-
lors dofinod in llo ICI Iovor Managomonl spoc. Il lloroforo is llo soflvaro
onlily llal is caIIod vlonovor llo OS noods lo clango llo povor slalo of a ICI
Ixpross dovico (or lo dolormino ils curronl povor slalo and capabiIilios), or lo
accoss ils configuralion rogislors. IiIoviso,
- Tlo IIII 1394 Bus Drivor undorslands llo Iocalion, formal and usago of llo
IM rogislors dofinod in llo 1394 Iovor Managomonl spoc.
- Tlo USB Bus Drivor undorslands llo Iocalion, formal and usago of llo IM
rogislors dofinod in llo USB Iovor Managomonl spoc.
Nolo llal a discussion of llo 1394 and USB Bus drivors is oulsido llo scopo of
llis booI.
ACPI Driver ControIs Non-Standard Embedded Devices
Tloro aro dovicos omboddod on llo syslom board vloso rogislor sols do nol
adloro lo any parlicuIar induslry slandard spoc. Al bool limo, llo BIOS roporls
lloso dovicos lo llo OS via a sol of labIos (llo -, aIso roforrod lo as
llo -, ACII slands for Advancod Configuralion and Iovor Inlorfaco).
-- -
Wlon llo OS noods lo communicalo vill any of lloso dovicos, il caIIs llo ACII
Drivor. Tlo ACII Drivor oxoculos a landIor (roforrod lo as a )
associalod vill llo dovico. Tlo landIor is found in llo ACII labIos llal voro
passod lo llo OS by llo BIOS al bool limo. Tlo landIor is vrillon by llo syslom
board dosignor in a spociaI inlorprolivo Ianguago roforrod lo as ACII Sourco
Ianguago, or . Tlo formal of ASI is dofinod in llo ACII spoc. Tlo ASI
sourco is llon compiIod inlo ACII Maclino Ianguago, or . Nolo llal AMI
is nol a procossor-spocific maclino Ianguago. Il is a loIonizod (i.o., comprossod)
vorsion of llo ASI sourco codo. Tlo ACII Drivor incorporalos an AMI loIon
inlorprolor llal onabIos il lo oxoculo a ConlroI Mollod.
A discussion of ACII is oulsido llo scopo of llis booI. Il is onIy monlionod
bocauso llo OS usos a combinalion of ACII and Bus Drivor sorvicos (sucl as llo
ICI Ixpross (ICI-XI) Bus Drivor) lo manago llo sysloms povor and configura-
lion.
- - - -- --
- -- -
- --
-- -
- - Iiguro 16-3
on pago 583 iIIuslralos llo basic sorios of aclions roquirod vlon llo OS vislos
lo povor up a ICI Ixpross funclion llal vas pIacod in llo povorod dovn slalo
oarIior.
1. Ils possibIo llal llo OS lad romovod povor lo aII ICI Ixpross dovicos and
lurnod off llo ICI Ixpross roforonco cIocI as in llo provious oxampIo. To
rosloro funclion bacI lo lloir oporaling condilion, llo OS issuos a Iovor
(i.o., Iovor Managomonl) IRI lo llo ACII Drivor roquosling llal llo IinIs
bo lurnod bacI on. In rosponso, llo ACII Drivor vouId oxoculo llo AMI
codo nocossary lo lurn on llo ICI Ixpross roforonco cIocI gonoralor and
ro-appIy povor lo llo dovicos. Il slouId bo obvious llal ICI-XI dovicos
cIososl lo llo Hosl Bridgo/Rool CompIox musl bo povorod up firsl. Wlon
llo ACII Drivor las compIolod llis oporalion, il issuos an IRI compIolion
nolico bacI lo llo OS. If llo roforonco cIocI and povor lad nol boon lurnod
off oarIior, llis slop can bo sIippod.
2. Tlo OS issuos a Iovor IRI lo llo ICI Ixpross dovicos WDM roquosling
llal llo dovico bo roslorod lo llo fuII povor slalo. Tlo WDM passos llo IRI
lo llo ICI Ixpross Bus Drivor.
3. Tlo ICI Ixpross Bus Drivor vrilos lo llo dovicos ICI Ixpross IM rogislors
lo povor up dovico.
4. Tlo ICI Ixpross Bus Drivor rosloros llo conlonls of llo dovicos ICI
Ixpross configuralion Hoador rogislors and any Nov CapabiIily rogislor
sols llal llo dovico impIomonls. Tlis aulomalicaIIy rosloros llo dovicos
ICI Ixpross configuralion Command rogislor onabIo bils lo lloir originaI
slalos.
5. Tlo ICI Ixpross Bus Drivor passos an IRI compIolion nolico bacI lo llo
WDM.
6. Tlo WDM rosloros llo conlonl of llo dovicos dovico-spocific IO or mom-
ory-mappod IO rogislors. Tlis causos llo dovicos inlorrupl onabIo bil lo bo
roslorod, ro-onabIing llo dovicos abiIily lo gonoralo inlorrupl roquosls. Tlo
dovico is nov roady lo rosumo normaI oporalion.
7. Tlo WDM rolurns an IRI compIolion nolico lo llo OS.
- Iig-
uro 16-4 on pago 584 iIIuslralos llo OS proparing a ICI Ixpross dovico so llal il
viII vaIo up llo syslom (sond a IMI mossago) vlon a parlicuIar dovico-spo-
cific ovonl occurs.
1. Tlo OS issuos a Iovor IRI lo llo dovico drivor (WDM) lo onabIo llo dovico
lo vaIo up llo syslom on a spocifiod ovonl.
2. Tlo WDM vrilos lo dovico-spocific rogislors villin llo dovico lo onabIo llo
ovonl llal viII causo llo syslom lo vaIo up.
3. Tlo WDM passos llo IRI lo llo ICI Ixpross Bus drivor.
- --
-- -
4. Tlo ICI Ixpross Bus Drivor vrilos lo llo funclions IM rogislors lo onabIo
ils IMI# Iogic.
5. Tlo ICI Ixpross Bus Drivor rolurns llo IRI compIolion nolico lo llo WDM.
6. Tlo WDM rolurns llo IRI compIolion nolico lo llo OS.
7. Tlo OS issuos a Iovor IRI lo llo ACII drivor roquosling llal llo ICI
Ixpross Iovor Managomonl Ivonl (IMI) moniloring Iogic bo onabIod lo
gonoralo an ACII inlorrupl (roforrod lo as an SCI, or Syslom ConlroI Inlor-
rupl).
8. Tlo ACII drivor onabIos llo clipsols GII Iogic lo gonoralo an SCI vlon
IMI# is doloclod assorlod.
9. Tlo ACII drivor rolurns llo IRI compIolion nolico lo llo OS.
- - -
Device PM States
-- - - -
- -- -
-- -- - -- --
- --
D0 StateFuII On
- - - -
- -- - - - -
--- - -
- - - - --
-- - -
- -
- - - --
- -
- -
-
- - -
-
- -
- -- -
- - - --
- - -
- - - --
-- -- --
- - - --
--
- --
-
--
-
I0 D0 unini-
liaIizod
IMI con-
loxl
< 10W ICI Ixpross
config lransac-
lions.
Nono
I0
I0s (roquirod)
I1 (oplionaI)
D0 aclivo aII fuII Any ICI
Ixpross lrans-
aclion.
Any lransac-
lion, inlorrupl,
or IMI.
I2/I3 D0 aclivo N/A
-- -
--
-
I1
D1
I2-I3 NA
- - - -
- --
-
- --
- -- -- -
- - -- -
- - - -- - -- -
-
-- -
-- - - - -
- -
- -- - -
- -
-- -- - -
- -
- - - -
-- -- --- - -
- -
-
- -
-- - -
-- -
IM slalo.
Tlo foIIoving lvo soclions doscribo llo D3
lol
and D3
coId
IM slalos.
-
--
-
I1
D2
I2/I3 N/A
- - -
-
-
- -
- --
--
- -- -- -
- -- - --
- - - - --
- -- -
-
--
-
-- - - - -
-
-
- -- - -
- -- --
-
- - -
- -- - - - -
-- ---
-
- - -
- -
- -
- --
- -- --
-
- -
- -
-
- - - -
-- -- -
-
-- -
- - --
- - -
- - -
-- -
- -
- - - - -- -
- --
- - -
- - - -
- - -
-
-
-
- -
- -- --
-
-- -
-
-
--
-
--
--
-
-
-
- -
-
-
--
-
I0
D3
coId
I1
I2
AUX
Iovor
Bus rosol onIy
SignaI Boacon
or
WAKI#
I3 Nono Nono
-- -
-- --
- --
-
D0
UniniliaIizod
D0 Aclivo Occurs undor program conlroI vlon funclion las
boon compIoloIy configurod and onabIod by ils
drivor.
D0 Aclivo
D1 Occurs vlon soflvaro vrilos lo llo IovorSlalo
fioId in llo funclions IMCSR rogislor and sols llo
slalo lo D1.
D2 Occurs vlon soflvaro vrilos lo llo IovorSlalo
fioId in llo funclions IMCSR rogislor and sols llo
slalo lo D2.
D3
lol
Occurs vlon soflvaro vrilos lo llo IovorSlalo
fioId in llo funclions IMCSR rogislor and sols llo
slalo lo D3
lol
.
D1
D0 Aclivo Occurs vlon soflvaro vrilos lo llo IovorSlalo
fioId in llo funclions IMCSR rogislor and sols llo
slalo lo D0.
D2 Occurs vlon soflvaro vrilos lo llo IovorSlalo
fioId in llo funclions IMCSR rogislor and sols llo
slalo lo D2.
D3
lol
Occurs vlon soflvaro vrilos lo llo IovorSlalo
fioId in llo funclions IMCSR rogislor and sols llo
slalo lo D3
lol
.
D2
D0 Aclivo Occurs vlon soflvaro vrilos lo llo IovorSlalo
fioId in llo funclions IMCSR rogislor and sols llo
slalo lo D0.
D3
lol
Occurs vlon soflvaro vrilos lo llo IovorSlalo
fioId in llo funclions IMCSR rogislor and sols llo
slalo lo D3
lol
.
D3
lol
D3
coId
Occurs vlon llo Iovor ConlroI Iogic romovos
Iovor from llo funclion.
D0
UniniliaIizod
Occurs vlon soflvaro vrilos lo llo IovorSlalo
fioId in llo funclions IMCSR rogislor and sols llo
slalo lo D0.
D3
coId
D0
UniniliaIizod
WaIo ovonl causos povor (Vcc) lo bo roslorod, Iun-
damonlaI Rosol aIso bocomos aclivo. Tlis causos llo
funclion lo rolurn lo llo D0 UniniliaIizod slalo.
If vaIo nol supporlod, IundamonlaI Rosol causos
llo lransilion lo llo D0 UniniliaIizod slalo.
- --
-
-- -
- -
D0 D1 0
D0 or D1 D2 200ks from nov slalo solling lo firsl accoss lo
funclion (incIuding config accossos).
D0, D1, or D2 D3
lol
10ms from nov slalo solling lo firsl accoss lo
funclion (incIuding config accossos).
D1 D0 0
D2 D0 200ks from nov slalo solling lo firsl accoss lo
funclion (incIuding config accossos).
D3
lol
D0 10ms from nov slalo solling lo firsl accoss lo
funclion (incIuding config accossos).
D3
coId
D0
- --
Iiguro 16-9 on pago 600 and TabIo 16-14 on pago 600 provido a doscriplion of
llo IMCSR bil fioIds. Nolo llal IMI is llo abbrovialion for Iovor Managomonl
Ivonl.
- -
- - ---
-
-
-
31:24
aII
zoros
Road-
onIy
Soo Dala Rogislor on pago 603.
23
zoro Road-
onIy
Nol usod in ICI Ixpross
22
zoro Road-
onIy
Nol usod in ICI Ixpross
21:16
aII
zoros
Road-
onIy
Rosorvod
15
- bil. . OnIy impIomonlod if llo
funclion supporls IMI nolificalion, ollorviso llis bil is
aIvays zoro.
If llo funclion supporls IMI, llis bil rofIocls vlollor llo
funclion las oxporioncod a IMI (ovon if llo IMI_In bil
in llis rogislor las disabIod llo funclions abiIily lo sond
a IMI mossago). If sol lo ono, llo funclion las oxpori-
oncod a IMI. Soflvaro cIoars llis bil by vriling a ono lo
il.
Aflor rosol, llis bil is zoro if llo funclion doosnl supporl
IMI from D3
coId
. If llo funclion supporls IMI from
D3
coId
:
- llis bil is indolorminalo al iniliaI OS bool limo.
- ollorviso, il rofIocls vlollor llo funclion las oxpori-
oncod a IMI.
If llo funclion supporls IMI from D3
coId
, llo slalo of
llis bil musl porsisl (is slicIy) vliIo llo funclion romains
in llo D3
coId
slalo and during llo lransilion from D3
coId
lo llo D0 UniniliaIizod slalo. Tlis impIios llal llo IMI
Iogic musl uso an aux povor sourco lo povor llis Iogic
during lloso condilions (soo AuxiIiary Iovor on
pago 645).
14:13
Dovico-
spocific
Road-
onIy
fioId. . If llo funclion doos nol
impIomonl llo Dala rogislor (soo Dala Rogislor on
pago 603), llis fioId is lardvirod lo rolurn zoros.
If llo Dala rogislor is impIomonlod, llo Dala_ScaIo fioId
is mandalory and musl bo impIomonlod as a road-onIy
fioId. Tlo vaIuo road from llis fioId roprosonls llo scaIing
faclor llal llo vaIuo road from llo Dala rogislor musl bo
muIlipIiod by. Tlo vaIuo and inlorprolalion of llo
Dala_ScaIo fioId doponds on llo dala ilom soIoclod lo bo
viovod llrougl llo Dala rogislor by llo Dala_SoIocl fioId
(soo doscriplion in llo noxl rov of llis labIo).
- - ---
-
-
-
-- -
12:9 0000b
fioId. . If llo funclion doos nol
impIomonl llo Dala rogislor (soo Dala Rogislor on
pago 603), llis fioId is lardvirod lo rolurn zoros.
If llo Dala rogislor is impIomonlod, llo Dala_SoIocl fioId
is mandalory and is impIomonlod as a road/vrilo fioId.
Tlo vaIuo pIacod in llis rogislor soIocls llo dala vaIuo lo
bo viovod llrougl llo Dala rogislor. Tlal vaIuo musl
llon bo muIlipIiod by llo vaIuo road from llo Dala_ScaIo
fioId (soo provious rov in llis labIo).
8
bil. .
1 = onabIo funclions abiIily lo sond IMI mossagos
vlon an ovonl occurs.
0 = disabIo.
If llo funclion doos nol supporl llo gonoralion of IMIs
from any povor slalo, llis bil is lardvirod lo aIvays
rolurn zoro vlon road.
Aflor rosol, llis bil is zoro if llo funclion doosnl supporl
IMI from D3
coId
. If llo funclion supporls IMI from
D3
coId
:
- llis bil is indolorminalo al iniliaI OS bool limo.
- ollorviso, il onabIos or disabIos vlollor llo funclion
can sond a IMI mossago in caso a IMI occurs.
If llo funclion supporls IMI from D3
coId
, llo slalo of
llis bil musl porsisl vliIo llo funclion romains in llo
D3
coId
slalo and during llo lransilion from D3
coId
lo llo
D0 UniniliaIizod slalo. Tlis impIios llal llo IMI Iogic
musl uso an aux povor sourco lo povor llis Iogic during
lloso condilions.
7:2
aII
zoros
Road-
onIy
Rosorvod
- - ---
-
-
Data Register
. Rofor lo Iiguro 16-10 on pago 605. Tlo Dala rogislor is an
oplionaI, 8-bil, road-onIy rogislor. If impIomonlod, llo Dala rogislor providos llo
programmor vill llo foIIoving informalion:
- Iovor consumod in llo soIoclod IM slalo. Tlis informalion is usofuI in
povor budgoling.
- Iovor dissipalod in llo soIoclod IM slalo.Tlis informalion is usofuI in man-
aging llo llormaI onvironmonl.
- Ollor, dovico-spocific informalion rogarding llo funclions oporalionaI
claraclorislics. CurronlIy, llo spoc onIy dofinos povor consumplion and
povor dissipalion informalion lo bo roporlod llrougl llis rogislor.
If llo Dala rogislor is impIomonlod,
- llo Dala_SoIocl and Dala_ScaIo fioIds of llo IMCSR rogislors musl aIso bo
impIomonlod
- llo Aux_Curronl fioId of llo IMC rogislor musl nol bo impIomonlod.
1:0 00b R/W
fioId. . Soflvaro usos llis fioId lo
dolormino llo curronl IM slalo of llo funclion (by road-
ing llis fioId) or lo pIaco il inlo a nov IM slalo (by vril-
ing lo llis fioId). If soflvaro soIocls a IM slalo llal isnl
supporlod by llo funclion, llo vrilos musl compIolo nor-
maIIy, bul llo vrilo dala is discardod and no slalo clango
occurs.
0 0 D0
0 1 D1
1 0 D2
1 1 D3
lol
- - ---
-
-
-
-- -
--
-
-
-
00l
Iovor consumod in D0
slalo
00b = unInovn
01b = muIlipIy by 0.1
10b = muIlipIy by 0.01
11b = muIlipIy by 0.001
Walls
01l
Iovor consumod in D1
slalo
02l
Iovor consumod in D2
slalo
03l
Iovor consumod in D3
slalo
04l
Iovor dissipalod in D0
slalo
05l
Iovor dissipalod in D1
slalo
06l
Iovor dissipalod in D2
slalo
07l
Iovor dissipalod in D3
slalo
08l
In a muIli-funclion ICI
dovico, funclion 0 indi-
calos llo povor consumod
by llo Iogic llal is com-
mon lo aII of llo funclions
rosiding villin llis pacI-
ago.
-- -
Wlon soflvaro pIacos a dovico inlo llo D3 slalo, llo dovico signaIs a
lransilion lo I1 jusl as dono in llo D1 and D2 slalos. Hovovor, bocauso llo
dovico is in llo D3
lol
slalo soflvaro may clooso lo romovo llo roforonco cIocI
and povor from llo dovico caIIod D3
coId
. Irior lo romoving llo cIocI and
povor, soflvaro inilialos a landslaIo procoss llal pIacos a dovico inlo llo I2/
I3 Roady slalo (i.o., povor and cIocI sliII on, bul roady for povor lo bo
romovod)
Tlis slalo indicalos llal llo cIocI and povor lavo boon romovod.
Hovovor, auxiIiary (AUX) Iovor may romain avaiIabIo aflor llo main povor
raiIs aro povorod dovn. In llis caso, llo IinI slalo is roforrod lo as I2. Wlon
main povor is romovod and no AUX povor is avaiIabIo il is roforrod lo as I3.
TabIo 16-17 on pago 608 providos addilionaI informalion rogarding llo IinI
povor slalos.
- -
-- -
Tlo I1 slalo is onlorod duo lo IM soflvaro pIacing a dovico inlo llo D1, D2,
or D3 slalos or oplionaIIy I1 is onlorod aulonomousIy undor lardvaro con-
lroI vlon Aclivo Slalo Iovor Managomonl is supporlod for I1.
Tlo spocificalion doscribos llo I2 slalo as boing soflvaro diroclod. Tlo
ollor I-slalos in llo labIo aro Iislod as soflvaro diroclod bocauso soflvaro
inilialos llo lransilion inlo lloso slalos. Ior oxampIo, vlon soflvaro inilial-
ing a dovico povor slalo clango lo D1, D2, or D3 dovicos musl rospond by
onloring llo I1 slalo. Soflvaro aIso causos llo lransilion lo llo I2/I3 Roady
slalo by inilialing a IMI_Turn_Off mossago. IinaIIy, soflvaro aIso inilialos
llo romovaI of povor from a dovico aflor llo dovico las lransilionod lo llo
I2/I3 Roady slalo. Tlis rosuIls in a lransilion lo oillor llo I2 or I3
psoudo-slalos (so caIIod bocauso povor is romovod from llo dovicos and
acluaI IinI slalo lransilions do nol appIy). Bocauso Vaux povor is avaiIabIo
in I2, a vaIoup ovonl can bo signaIod causing soflvaro lo bo nolifiod.
Link Active State Power Management
ICI Ixpross incIudos a foaluro llal roquiros IinI povor consorvalion ovon
llougl llo dovico las nol boon pIacod in a Iov-povor slalo by soflvaro. Conso-
quonlIy llis foaluro is caII Aclivo Slalo povor managomonl and funclions
onIy vlon llo dovico is in llo DO slalo. Transilions inlo and oul of Aclivo Slalo
Iovor Managomonl (ASIM) aro landIod soIoIy by Hardvaro.
--
L0s State
I0s is a IinI povor slalo llal can bo onlorod by any porl and appIiod lo a singIo
diroclion of llo IinI. Ior oxampIo, a Iargo voIumo of lraffic in convonlionaI
IC-basod sysloms rosuIls from ICI and ICI Ixpross dovicos sonding dala lo
main syslom momory. Tlis moans llal llo upslroam Ianos viII lavo loavy lraf-
fic, vliIo llo dovnslroam Ianos viII carry occasionaI ACK TIIs. Tloso dovn-
slroam Ianos can onlor llo I0s slalo lo consorvo povor during llo slrolclos of
idIo bus limo.
Entry into L0s
A lransmilling porl inilialos llo lransilion from I0 lo I0s aflor dolocling a
poriod of idIo limo on llo lransmil IinI. DolaiIs rogarding llo moaning of idIo,
lov I0s is onlorod, and llo rosuIling lransmillor and rocoivor slalos aflor I0s
las boon onlorod is discussod in llis soclion.
- Inlry inlo I0s is man-
agod for a singIo diroclion of llo IinI basod on dolocling a poriod of IinI idIo
limo. Iorls aro roquirod lo onlor I0s aflor dolocling idIo limo of no groalor
llan 7s. IdIo is dofinod by llo spocificalion difforonlIy for oacl calogory of
dovico. Iacl calogory musl salisfy llo buIIolod iloms Iislod lo bo considorod
in llo idIo slalo:
-- -
- :
o No TIIs aro ponding lransmission or IIov ConlroI crodils for a
ponding TII aro lomporariIy unavaiIabIo.
o No DIIIs aro ponding lransmission.
- - :
o Tlo rocoivo Iano of aII dovnslroam porls aro aIroady in llo I0s
slalo.
o No TIIs aro ponding lransmission, or no IC crodils aro avaiIabIo
for ponding TIIs.
o No DIIIs aro ponding lransmission.
- - :
o Tlo Svilcls Upslroam Iorls Rocoivo Ianos aro in llo I0s slalo
o No TIIs aro ponding lransmission, or no IC crodils aro avaiIabIo
for ponding TIIs.
o No DIIIs aro ponding for lransmission
Tlo Transaclion and Dala IinI Iayors lavo no InovIodgo of vlollor llo
lransmilling sido of llo IlysicaI Iayor las onlorod I0s, lovovor, llo condi-
lions llal lriggor a lransilion lo I0s musl bo conlinuousIy roporlod from llo
Transaclion and IinI Iayors lo llo IlysicaI Iayor.
Nolo llal llo rocoiving sido of a porl musl aIvays supporl onloring I0s
ovon if soflvaro las disabIod ASIM for llis porl. Tlis aIIovs a dovico al llo
ollor ond of llo IinI (llal is onabIod for ASIM) lo sliII lransilion ono sido of
llo IinI lo llo I0s slalo.
- - A ponding TII llal cannol
bo sonl duo lo insufficionl IC crodils salisfios ono of llo roquiromonls for an
idIo condilion for aII dovico calogorios Iislod abovo. ConsoquonlIy, if fIov
conlroI crodils aro rocoivod during I0s llal pormils doIivory of llo ponding
TII, llo lransmilling porl musl inilialo llo rolurn lo I0. AIso, if llo rocoivo
buffor (associalod vill llo lransmil sido llal is in I0s) maIos addilionaI
fIov conlroI crodils avaiIabIo, a lransmillor musl inilialo llo rolurn lo I0
and doIivor llo roIalod IC_Updalo DIII lo llo porl al llo opposilo ond of
llo IinI.
- - - Wlon sufficionl idIo limo las boon
obsorvod on llo lransmil sido of llo IinI, llo lransmillor forcos llo lransi-
lion from I0 lo I0s by laIing llo foIIoving slops. IoIIoving llo soquonco of
ovonls, boll llo lransmillor and rocoivor viII lavo lransilionod lo I0s:
1. Transmillor doIivors an oIoclricaI idIo ordorod sol lo llo rocoivor and
pIacos ils lransmillor inlo llo Hi-Z slalo.
2. Wlon llo rocoivor dolocls llo oIoclricaI idIo ordorod sol, il pIacos ils
rocoivor inlo llo Io-Z slalo.
Tlo lransmillor and rocoivor aro nov in lloir oIoclricaI idIo slalos and lavo
roducod povor consumplion. Synclronizalion bolvoon llo lransmillor and
rocoivor las boon Iosl and rolraining is roquirod. Tlo spocificalion roquiros
llal llo III in llo rocoivor musl romain aclivo lo aIIov quicI ro-synclroni-
zalion and rocovory from I0s bacI lo I0.
Exit from L0s State
If llo lransmillor dolocls llal llo idIo condilion las disappoarod, il musl inilialo
llo soquonco nocossary lo oxil I0s and a rolurn lo I0. Tlo spocificalion oncour-
agos dosignors lo monilor ovonls llal givo an oarIy indicalion llal I0s oxil is
imminonl and lo slarl llo rocovory procoss lo spood up llo lransilion bacI lo I0.
Ior oxampIo, if llo rocoiving sido of llo IinI rocoivos a non-poslod TII, llo
lransmillor sido Inovs llal il viII slorlIy rocoivo a roquosl lo sond a compIolion
lransaclion. ConsoquonlIy, llo lransmillor can slarl llo lransilion bacI lo I0
prior lo rocoiving llo compIolion roquosl.
- - - Wlon llo lransmillor vlollor in llo
upslroam or dovnslroam compononl rocognizos llal il musl lransilion llo
IinI from I0s lo I0, il inilialos a soquonco llal ro-oslabIislos llo connoclion
vill llo rocoivor:
1. Transmillor oxils Hi-Z slalo and issuos ono or moro Iasl Training
Soquonco (ITS) Ordorod Sols noodod by llo rocoivor. Tlo numbor of
ITS Ordorod Sols roquirod by llo rocoivor lo ro-synclronizo (N_ITS)
vas proviousIy communicalod during IinI lraining foIIoving funda-
monlaI rosol.
2. IoIIoving N_ITS ono SIip ordorod sol is doIivorod.
3. Tlo rocoivor rocoivos llo numbor of ITS (N_ITS) Ordorod Sols il noods
lo oslabIisl bil IocI (III), symboI IocI (aIignmonl of 10-bil symboIs),
and Iano-lo-Iano dosIov. Aflor rocoiving llo SIip ordorod sol llo
rocoivor is roady lo rosumo normaI oporalion.
- - - A svilcls rocoiv-
ing porl in llo I0s slalo llal rocoivos llo I0s lo I0 lransilion soquonco musl
aIso lransmil an I0s oxil lo ollor svilcl porls curronlIy in llo I0s slalo. Tvo
spocific casos musl bo considorod:
-- -
- - - - - Tlo
svilcl musl signaI an I0s lo I0 on llo upslroam porl if il is curronlIy in
llo I0s slalo. Tlis proparos llo IinI facing llo Rool CompIox for lrans-
mission of a lransaclion llal viII IiIoIy bo coming from llo ondpoinl or
dovnslroam svilcl llal signaIod llo lransilion.
- - - - - Tlo svilcl
musl signaI an I0s lo I0 lransilion on aII dovnslroam porls curronlIy in
llo I0s slalo.
Any svilcl porl in llo I1 slalo (nol I1 ASIM) las boon pIacod inlo I1 duo
lo soflvaro laving proviousIy lransilionod llo dovico lo a D1 or liglor
povor savings slalo. Tloso porls romains unaffoclod by I0s lo I0 lransi-
lions. Hovovor, onco llo upslroam IinI las compIolod llo lransilion lo I0, a
subsoquonl lransaclion may largol llis porl, causing a lransilion from I1 lo
I0.
L1 ASPM State
Tlo oplionaI I1 ASIM slalo providos povor savings groalor llan I0s, bul vill
llo cosl of mucl groalor rocovory Ialoncy. Tlis slalo aIso rosuIls in boll diroc-
lions of llo IinI boing pIacod inlo llo I1 slalo and rosuIls in IinI and Transac-
lion Iayor doaclivalion villin oacl dovico.
Inlry inlo llis slalo is inilialod onIy by llo dovnslroam compononl (an ond-
poinl or llo upslroam porl of a svilcl). Nolo llal a svilcl may supporl I1
ASIM on any combinalion of ils porls. Tlo porl al llo opposilo ond of llo IinI
can bo a rool porl or llo dovnslroam porl of a svilcl. In oillor caso, llo
upslroam compononl musl agroo lo onlor llo I1 slalo llrougl a nogolialion pro-
coss vill llo dovnslroam compononl. (Soo Iiguro 16-14 on pago 615) Nolo llal
oxiling llo I1 ASIM slalo can bo inilialod by oillor llo dovnslroam or
upslroam porl.
vouId bogin by lransmilling llo TS1 ordorod sol lo llo opposilo porl. Tlo
rocoiving porl, in lurn inilialos rocovory by signaIing llo TS1 ordorod sol
bacI lo llo originaling dovicoss rocoivo porl. Tlo IlysicaI Iayors IinI
Training Slalo Maclino compIolos llo Rocovory slalo aflor vlicl llo IinI
viII bo rolurnod lo I0. Rofor loRocovory Slalo on pago 532 for dolaiIs.
- - Tlis soc-
lions doscribos llo svilcl bolavior vlon a dovnslroam compononl ini-
lialos oxil from I1 (TS1 ordorod sol) lo llo svilcl. As piclurod in Iiguro
16-17 on pago 623, llo Svilcl musl rospond lo I1 oxil signaIing by rolurn-
ing llo TS1 ordorod sol lo llo dovnslroam compononl, and villin 1s
(from signaI I1 Ixil dovnslroam) il musl aIso lransmil llo TS1 ordorod sol
on ils upslroam IinI (bul onIy vlon llo upslroam porl is aIso in llo I1
ASIM slalo).
Tlo oxpoclalion is llal llo dovnslroam compononl, laving inilialod I1
oxil, is proparing lo sond a TII lravoIing in llo upslroam diroclion. Bocauso
I1 oxil Ialoncios aro roIalivoIy Iong, llo spocificalion slalos llal a svilcl
musl nol vail unliI ils Dovnslroam Iorl IinI las fuIIy oxilod lo I0 boforo
inilialing an I1 oxil lransilion on ils Upslroam Iorl IinI. Tlis provonls
accumuIalod Ialoncios llal vouId ollorviso rosuIl if aII I1 lo I0 lransilions
occurrod in a Iinoar faslion.
- - Tlis soclion
doscribos llo svilcl bolavior vlon an upslroam compononl signaIs I1 Ixil
(TS1 ordorod sol) lo a svilcl. In llis caso, llo svilcl musl sond llo TS1
ordorod sol bacI upslroam, and villin 1s il musl aIso signaI llo TS1
ordorod sol lo forco aII dovnslroam porls llal aro in llo I1 ASIM slalo lo
aIso rolurn lo I0. Tlo goaI as in llo provious oxampIo is lo slorlon llo ovor-
aII Ialoncy in rolurning lo llo I0 slalo. Iiguro 16-18 on pago 624 summarizos
lloso roquiromonls. Nolo llal llo IinI allacling Svilcl I and IndIoinl (II)
I is in llo I1 slalo duo lo soflvaro laving proviousIy pIacod II I inlo llo
D1 slalo, vlicl causod llo IinI lo lransilion lo I1. OnIy IinIs in llo I1
ASIM slalo aro lransilionod lo I0 as a rosuIl of llo Rool CompIox (RC) inili-
aling llo oxil from I1 ASIM.
- -
-- -
llal oxcoods llo accoplabIo Ialoncy roporlod by llo ondpoinl, soflvaro can dis-
abIo ASIM lo avoid unaccoplabIo Ialoncy for a givon ondpoinl.
Tlo oxil Ialoncios roporlod by a dovico viII clango doponding on vlollor llo
dovicos on oacl ond of a IinI slaro a common roforonco cIocI or nol. Conso-
quonlIy, llo IinI Slalus rogislor incIudos a bil caIIod llal spocifios
vlollor llo compononl usos an oxlornaI roforonco cIocI providod by llo pIal-
form, or an indopondonl roforonco cIocI (porlaps gonoralod inlornaIIy). Sofl-
varo clocIs lloso bils villin dovicos al boll onds of oacl IinI lo dolormino
vlollor lloy uso a common cIocI. If so, soflvaro sols llo bil lo
roporl llo common cIocI impIomonlalion lo boll dovicos. Iiguro 16-20 on pago
628 iIIuslralos llo rogislors and roIalod bil fioIds invoIvod in managing llo
ASIM oxil Ialoncy.
Reporting a VaIid ASPM Exit Latency
Bocauso llo cIocI configuralion affocls llo oxil Ialoncy llal a dovico viII oxpori-
onco, dovicos musl roporl llo sourco of lloir roforonco cIocI via llo
slalus bil villin llo IinI Slalus rogislor. Tlis bil is iniliaIizod by llo compononl
lo roporl llo sourco of ils roforonco cIocI. If llis bil is sol (1), llo cIocI usos llo
pIalform gonoralod roforonco cIocI and cIoarod (0) if il usos an indopondonl
cIocI.
If syslom firmvaro or soflvaro dolorminos llal llo compononls al oacl ond of
llo IinI uso llo pIalform cIocI llon llo roforonco cIocIs villin boll dovicos viII
bo in plaso. Tlis rosuIls in slorlor oxil Ialoncios from I0s and I1, and is
roporlod in llo fioId of llo IinI ConlroI rogislor. Compononls
musl llon updalo lloir roporlod oxil Ialoncios lo rofIocl llo corrocl vaIuo. Nolo
llal if llo cIocIs aro nol common llon llo dofauIl vaIuos viII bo corrocl and no
furllor aclion is roquirod.
- Ixil Ialoncy for I0s is roporlod in llo IinI
CapabiIily rogislor basod on llo dofauIl assumplion llal a common cIocI
impIomonlalion doos nol oxisl. I0s oxil Ialoncy is aIso roporlod during IinI
lraining (via llo TS1 Ordorod Sols) by spocifying llo numbor of ITS
Ordorod Sols (N_ITS) roquirod lo oxil I0s. ConsoquonlIy, if soflvaro dolocls
a common cIocI impIomonlalion, llo Common CIocI fioId is sol and Sys-
lom firmvaro or soflvaro musl vrilo lo llo bil in llo IinI Con-
lroI rogislor, lo forco rolraining. During rolraining nov N_ITS vaIuos aro
roporlod lo llo lransmillor al llo opposilo ond of llo IinI and nov vaIuos
aro aIso roporlod in - fioId of llo IinI CapabiIily rogislor.
-- -
-- -
-- -
3. Bocauso of llo Iong Ialoncios roquirod lo rolurn llo dovico and IinI lo lloir
aclivo slalos, a dovico musl bo proparod lo sond a maximum-sizod TII
immodialoIy upon rolurn lo llo aclivo slalo. RocaII llal insufficionl IIov
ConlroI crodils rosuIl in TII lransmission boing bIocIod, lloroforo, boforo
onloring I1 llo ondpoinl musl lavo sufficionl crodils lo pormil lransmis-
sion of llo maximum-sizod pacIol supporlod for oacl IIov ConlroI lypo.
4. Wlon llo abovo iloms lavo boon compIolod llo dovico sonds a
IM_Inlor_I1 DIII lo llo upslroam dovico. Tlis DIII acls as a command
lo inslrucl llo upslroam compononl lo pIaco ils lransmil IinI inlo llo I1
slalo. Tlo IM_Inlor_I1 DIII is sonl conlinuousIy on llo IinI unliI a
IM_Roquosl_ACK DIII is rocoivod from llo upslroam dovico.
5. Tlo upslroam compononl upon rocoipl of llo IM_Inlor_I1 DIII, bogins
ils proparalion for onloring I1 by porforming slops 6, 7, and 8. Tlis is llo
samo proparalion as porformod by llo dovnslroam compononl prior lo sig-
naIing llo I1 lransilion.
6. AII nov TII scloduIing is bIocIod.
7. In llo ovonl llal a provious TII las nol yol boon acInovIodgod, llo
upslroam dovico viII vail unliI aII lransaclions in llo RopIay Buffor lavo
boon acInovIodgod boforo procooding.
8. IIov ConlroI crodils musl bo accumuIalod lo onsuro llal llo Iargosl TII
can bo lransmillod for oacl IIov ConlroI lypo boforo onloring I1.
9. Tlo upslroam compononl sonds a IM_Roquosl_ACK DIII lo confirm llal
ils roady lo onlor llo I1 slalo. Tlis DIII is sonl conlinuousIy unliI an IIoc-
lricaI IdIo ordorod sol is rocoivod, indicaling llal llo acInovIodgomonl las
boon accoplod.
10. Tlo dovnslroam compononl upon rocoiving llo acInovIodgomonl DIII
Inovs llal llo upslroam compononl is proparod lo onlor llo I1 slalo.
11. Tlo dovnslroam dovico sonds an IIoclricaI IdIo ordorod sol aflor vlicl il
pIacos ils lransmil Ianos inlo oIoclricaI idIo (lransmillor is in Hi-Z slalo).
12. Tlo upslroam compononl rocognizos llo IIoclricaI IdIo ordorod sol and
pIacos ils lransmil Ianos inlo oIoclricaI idIo. Tlo IinI las nov onlorod llo I1
slalo.
-- -
Tlo slalo lransilions roquirod lo proparo dovicos for romoving povor invoIvo
llo proIiminary slops of onloring I1 and llon via a landslaIo prolocoI rolurn-
ing lo I0 and llon lo llo I2/I3 Roady slalo as iIIuslralod in Iiguro 16-24.
L2/L3 Ready Handshake Sequence
Tlo spocificalion lovovor roquiros a landslaIo soquonco vlon lransilioning lo
llo I2/I3 Roady slalo. Tlis landslaIo las lvo purposos:
- lo onsuro llal aII dovicos aro roady for roforonco cIocI and povor romovaI.
- onsuro llal inband IMI mossagos boing sonl lo llo Rool CompIox aro nol
Iosl vlon povor is romovod.
BoIov is an oxampIo of llo landslaIo soquonco llal is roquirod boforo romov-
ing llo roforonco cIocI and povor from aII ICI Ixpross dovicos in llo fabric.
Tlis oxampIo assumos a syslom-vido povor dovn is boing inilialod. Hovovor
llo soquonco can aIso appIy lo smaIIor sogmonls of llo ICI Ixpross fabric or
individuaI dovicos. Tlo roquirod slops aro summarizod boIov and in Iiguro
16-25 on pago 636 (vlicl iIIuslralos a singIo Rool Iorl). Tlo ovoraII soquonco is
roprosonlod in lvo parls IaboIod A and B. Tlo IinI lransilions invoIvod in llo
compIolo soquonco incIudo:
- I0 --> I1 (causod by soflvaro pIacing a dovico inlo D3)
- I1 --> I0 (causod by soflvaro inilialing a IMI_Turn_Off mossago)
- I0 --> I2/I3 Roady (causod by compIolion of IMI_Turn_Off mossago
landslaIo soquonco, vlicl cuIminalos in a IM_Inlor_I23 DIII boing
sonl by llo dovico and llo IinI going lo oIoclricaI idIo)
- -- -- -
- -
- - - - -
-
--
-- - - -
-- - - --
-
- -
--
PCI-XP
Endpoint
-- -
Tlo IMI mossago is a Transaclion Iayor IacIol llal las llo foIIoving clarac-
lorislics:
- TC and VC vaIuos aro zoro (000b)
- Roulod impIicilIy lo llo Rool CompIox
- HandIod as Ioslod Transaclion
- RoIaxod Ordoring is nol pormillod, forcing aII lransaclions in llo fabric
bolvoon llo signaIing dovico and llo Rool CompIox lo bo doIivorod lo llo
Rool CompIox aload of llo IMI mossago
The PME Sequence
Dovicos may supporl IMI in any of llo Iov povor slalos as spocifiod in llo IM
CapabiIilios rogislor. Tlis rogislor aIso spocifios llo amounl of AUX curronl
roquirod by llo dovico if il supporls vaIoup in llo D3
coId
slalo. Tlo basic
soquonco of ovonls associalod vill signaIing a IMI lo soflvaro is spocifiod
boIov and prosumos llal llo dovico and syslom aro onabIod lo gonoralo IMI
(Soo SconarioSolup a Iunclion-Spocific Syslom WaIoUp Ivonl on
pago 583.) and llo IinI las aIroady boon lransilionod lo llo I0 slalo:
1. Tlo dovico issuos llo IMI mossago on ils upslroam porl.
2. IMI mossagos aro impIicilIy roulod lo llo Rool CompIox. Any svilclos in
llo pall lransilion lloir upslroam porls lo I0 (if nocossary) and sond llo
pacIol upslroam.
3. A rool porl rocoivos llo IMI and forvards il lo llo Iovor Managomonl
ConlroIIor.
4. Tlo conlroIIor caIIs povor managomonl soflvaro (lypicaIIy via an inlor-
rupl). Soflvaro usos llo Roquoslor ID conlainod villin llo mossago lo
road and cIoar llo IMI_Slalus bil in llo IMCSR and rolurn llo dovico lo
llo D0 slalo. Doponding on llo dogroo of povor consorvalion, llo ICI
Ixpross drivor may aIso nood lo rosloro llo dovicos configuralion rogislors.
5. IM Soflvaro may aIso caII llo dovicos soflvaro drivor in llo ovonl llal
dovico conloxl vas Iosl as a rosuIl of llo dovico boing pIacod in a Iov povor
slalo. In llis caso, dovico soflvaro rosloros informalion villin llo dovico.
PME Message Back Pressure DeadIock Avoidance
Tlo spocificalion doscribos a polonliaI doadIocI sconario llal is soIvod by spoci-
fying a ICI Ixpross ruIo. Tlo probIom and soIulion aro doscribod boIov:
Background
Tlo Rool CompIox lypicaIIy sloros llo IMI mossagos il rocoivos in a quouo, and
caIIs IM soflvaro lo landIo oacl IMI. A IMI is loId in llis quouo unliI IM
soflvaro roads llo IMI_Slalus bil from llo roquosling dovicos IMCSR rogislor.
Onco llo configuralion road lransaclion compIolos, llis IMI mossago can bo
romovod from llo inlornaI quouo.
The ProbIem
DoadIocI can occur if llo foIIoving sconario dovoIops:
1. Incoming IMI Mossagos lavo fiIIod llo IMI mossago quouo. AddilionaI
IMI mossagos lavo boon issuod by ollor dovicos llal aro in llo samo lior-
arcly (dovnslroam from llo samo rool porl) as llo oIdosl mossago in llo
quouo.
2. IM soflvaro, inilialos a configuralion road roquosl from llo Rool CompIox
lo road IMI_Slalus from llo oIdosl IMI roquoslors IMCSR.
3. Tlo corrosponding spIil compIolion musl pusl aII proviousIy poslod
IM_IMI mossagos aload of il (basod on ordoring ruIos).
4. Tlo Rool CompIox cannol accopl llo incoming IMI mossagos bocauso llo
quouo is fuII, and llo road compIolion boing bolind llo IMI mossagos can-
nol roacl llo Rool CompIox lo cIoar an onlry from llo quouo.
5. No progross can bo mado, llus doadIocI occurs.
The SoIution
Tlo doadIocI is avoidod if llo Rool CompIox accopls any arriving IMI mos-
sagos, ovon vlon lloso mossago vouId ovorfIov llo quouo. Hovovor, llo Rool
CompIox in llis caso simpIy discards llo incoming IMI mossago, bocauso lloro
is no pIaco lo sloro il. ConsoquonlIy, llo IMI mossago is Iosl. Nolo llal accop-
lanco of a IMI mossago sliII roquiros sufficionl fIov conlroI crodils.
To provonl a discardod IMI mossago from boing Iosl pormanonlIy, llo dovico
llal sonds a IMI mossago is roquirod lo ro-sond il foIIoving a limo-oul inlorvaI,
caIIod llo IMI Sorvico Timo-oul. If aflor sonding a IMI mossago, llo dovicos
IMI_Slalus bil is nol cIoarod vill 100 ms (+ 50/- 5), il musl ro-issuo llo
mossago.
-- -
Beacon
ICI Ixpross incIudos a signaIing moclanism dosignod lo oporalo on AUX
povor llal doos nol roquiro llo difforonliaI drivors and rocoivors lo bo usod.
Tlo boacon is simpIy a vay of nolifying llo upslroam compononl llal soflvaro
slouId bo nolifiod of llo vaIoup roquosl. Svilclos upon rocoiving boacon on
ono of lloir dovnslroam porls signaI boacon on llo upslroam porl. UIlimaloIy,
llo boacon signaI roaclos llo rool compIox, causing an inlorrupl llal caIIs IM
soflvaro.
Somo form-faclor lypos roquiro supporl for llo boacon signaIIing for vaIing llo
syslom, vliIo ollors do nol. Tlo spocificalion roquiros compIianco vill llo spo-
cific form-faclor spocificalions, and doos nol roquiro boacon supporl for dovicos
usod in form-faclors nol roquiring llis supporl. Hovovor, for univorsaI ICI
Ixpross compononls (lloso dosignod for uso in a varioly of form-faclors) boacon
supporl is roquirod.
Soo Boacon SignaIing on pago 469 for dolaiIs.
WAKE# (AUX Power)
ICI Ixpross aIso providos a sidoband signaI caIIod WAKI#, as a aIlornalivo lo
boacon signaIing. Tlis signaI may bo roulod diroclIy lo llo Rool CompIox or
ollor mollorboard Iogic, lloroby causing an inlorrupl llal viII caII IM sofl-
varo. Ils aIso possibIo llal a lybrid impIomonlalion can bo usod. In llis caso,
WAKI# is sonl lo a svilcl, vlicl in lurn signaI boacon on ils upslroam porl.
Tlo oplions aro iIIuslralod in Iiguro 16-28 on pago 644 A and B. Nolo llal vlon
assorlod, llo WAKI# signaI romains Iov unliI llo IMI_Slalus bil is cIoarod by
soflvaro.
Tlis signaI musl bo impIomonlod by ATX or ATX-basod form faclor and by llo
minis. mollorboard connoclors and cards as voII as for llo mini-card form fac-
lor. No roquiromonl is spocifiod for omboddod dovicos lo uso llo WAKI# signaI.
-- -
AuxiIiary Power
Dovicos llal supporl IMI in llo D3
coId
slalo musl supporl llo vaIoup
soquonco (via boacon signaIing or llo sidoband WaIo# pin) and aro aIIovod lo
consumo llo maximum auxiIiary curronl of 375 mA (20mA maximum ollor-
viso). Tlo amounl of curronl llal lloy nood is roporlod via llo
fioId villin llo IM CapabiIily rogislors. AuxiIiary povor is onabIod vlon llo
bil is sol villin llo IMCSR rogislor. ICI-IM Iimils llo uso of Aux-
iIiary Curronl as spocifiod abovo.
ICI Ixpross oxlonds llo uso of auxiIiary povor boyond llo Iimilalions spocifiod
by ICI-IM. Nov dovicos llal lavo IMI disabIod or llal do nol supporl IMI
can aIso consumo llo maximum amounl of auxiIiary curronl aIIovod. Tlis nov
capabiIily is onabIod via soflvaro by solling llo bil in llo
Dovico ConlroI rogislor, iIIuslralod in Iiguro 16-29 on pago 645. Tlis capabiIily
pormils dovicos llo opporlunily lo supporl ollor funclions sucl as SM Bus
funclionaIily vliIo in a Iov povor slalo. As in ICI-IM llo amounl of curronl
consumod by a dovico is roporlod in llo fioId in llo IMC rogislor.
- -
Iarl Iivo
OplionaI Topics
649
The Previous Chapter
Tlo provious claplor providod a dolaiIod doscriplion of ICI Ixpross povor
managomonl, vlicl is compalibIo vill rovision 1.1 of llo -
and llo rovision 2.0
(ACII). In addilion ICI Ixpross dofinos oxlonsions llal aro orllogonaI lo llo
ICI-IM spocificalion. Tloso oxlonsions focus primariIy on IinI Iovor and IM
ovonl managomonl. Tlis claplor aIso providos an ovoraII conloxl for llo discus-
sion of povor managomonl, by incIuding a doscriplion of llo OnNov Inilialivo,
ACII, and llo invoIvomonl of llo Windovs OS is aIso providod.
This Chapter
ICI Ixpross incIudos nalivo supporl for lol pIug impIomonlalions. Tlis claplor
discussos lol pIug and lol romovaI of ICI Ixpross dovicos. Tlo spocificalion
dofinos a slandard usago modoI for aII dovico and pIalform form faclors llal
supporl lol pIug capabiIily. Tlo usago modoI dofinos, as an oxampIo, lov pusl
bullons and indicalors (IIDs) bolavo, if impIomonlod on llo classis, add-in
card or moduIo. Tlo dofinilions assignod lo llo indicalors and pusl bullons,
doscribod in llis claplor, appIy lo aII modoIs of lol pIug impIomonlalions.
The Next Chapter
Tlo noxl claplor providos an inlroduclion lo llo ICI Ixpross add-in card oIoc-
lromoclanicaI spocificalions. Il doscribos llo card form faclor, llo connoclor
dolaiIs, and llo auxiIiary signaIs vill a doscriplion of lloir funclion. Ollor card
form faclors aro aIso briofIy doscribod.
PCI Express System Architecture
650
Background
Somo sysloms llal ompIoy llo uso of ICI and ICI-X roquiro ligl avaiIabiIily or
non-slop oporalion. Ior oxampIo, many cuslomors roquiro compulor sysloms
llal oxporionco dovnlimos of jusl a fov minulos a yoar, or Ioss. CIoarIy, manu-
faclurors musl focus on oquipmonl roIiabiIily, and aIso provido a mollod of
idonlifying and ropairing oquipmonl faiIuros quicIIy. An imporlanl foaluro in
supporling lloso goaIs is llo Hol IIug/Hol Svap soIulions llal provido llroo
imporlanl capabiIilios:
1. a mollod of ropIacing faiIod oxpansion cards villoul lurning llo syslom off
2. Iooping llo O/S and ollor sorvicos running during llo ropair
3. slulling dovn and roslarling soflvaro associalod vill llo faiIod dovico
Irior lo llo vidosproad accoplanco of ICI many propriolary Hol IIug soIulions
voro avaiIabIo lo supporl llis lypo of romovaI and ropIacomonl of oxpansion
cards. Hovovor llo originaI ICI impIomonlalion vas nol dosignod lo supporl
lol romovaI and insorlion of cards, bul a slandardizod soIulion for supporling
llis capabiIily in ICI vas noodod. ConsoquonlIy, lvo major approaclos lo lol
ropIacomonl of ICI oxpansion dovicos lavo boon dovoIopod. Tloso approaclos
aro:
- Hol IIug ICI Card usod in IC Sorvor mollorboard and oxpansion clas-
sis impIomonlalions
- Hol Svap usod in CompaclICI sysloms basod on a passivo ICI bacI-
pIano impIomonlalion.
In boll soIulions, conlroI Iogic is impIomonlod lo isoIalo llo card Iogic from llo
ICI bus via oIoclronic svilclos. In conjunclion vill isoIalion Iogic, povor, rosol,
and cIocI aro conlroIIod lo onsuro an ordorIy povor dovn and povor up of
cards vlon lloy aro romovod and ropIacod. AIso, slalus and povor IIDs pro-
vido indicalions lo llo usor llal il is safo lo romovo or inslaII llo card.
Tlo nood lo oxlond lol pIug supporl lo ICI Ixpross cards is cIoar. Dosignors of
ICI Ixpross lavo incorporalod Hol romovaI and ropIacomonl of cards as a
nalivo foaluro. Tlo spocificalion dofinos configuralion rogislors, Hol IIug
Mossagos, and procoduros lo supporl Hol IIug soIulions.
Chapter 17: Hot Plug
651
Hot PIug in the PCI Express Environment
ICI Ixpross Hol IIug is dorivod from llo 1.0 rovision of llo Slandard Hol IIug
ConlroIIor spocificalion (SHIC 1.0) for ICI. Tlo goaIs of ICI Ixpross Hol IIug
aro lo:
- supporl llo samo Slandardizod Usago ModoI as dofinod by llo Slandard
Hol IIug ConlroIIor spocificalion. Tlis onsuros llal llo ICI Ixpross lol
pIug is idonlicaI from llo usor porspoclivo lo oxisling impIomonlalions
basod on llo SHIC 1.0 spocificalion
- supporl llo samo soflvaro modoI impIomonlod by oxisling oporaling sys-
loms. Hovovor, if llo OS incIudos a SHIC 1.0 compIianl drivor, il viII nol
vorI vill ICI Ixpross Hol IIug conlroIIors, vlicl lavo a difforonl pro-
gramming inlorfaco.
ICI Ixpross dofinos llo rogislors nocossary lo supporl llo inlogralion of a Hol
IIug ConlroIIor villin individuaI rool and svilcl porls. Undor Hol IIug sofl-
varo conlroI, lloso Hol IIug conlroIIors and llo associalod porl inlorfaco villin
llo rool or svilcl porl musl conlroI llo card inlorfaco signaIs lo onsuro ordorIy
povor dovn and povor up as cards aro romovod and ropIacod. Hol IIug con-
lroIIors musl:
- assorl and doassorl llo IIRST# signaI lo llo ICI Ixpross card connoclor
- romovo or appIy povor lo llo card connoclor.
- SoIoclivoIy lurn on or lurn off llo Iovor and Allonlion Indicalors associ-
alod vill a spocific card connoclor lo drav llo usors allonlion lo llo con-
noclor and advorliso vlollor povor is appIiod lo llo sIol.
- Monilor sIol ovonls (o.g. card romovaI) and roporl lloso ovonls lo soflvaro
via inlorrupls.
ICI Ixpross Hol-IIug (IiIo ICI) is dosignod as a no surprisos Hol-IIug moll-
odoIogy. In ollor vords, llo usor is nol pormillod lo inslaII or romovo a ICI
Ixpross card villoul firsl nolifying soflvaro. Syslom soflvaro llon proparos
boll llo card and sIol for llo cards romovaI and ropIacomonl, and finaIIy indi-
calos lo llo ond usor (via visuaI indicalors) slalus of llo lol pIug procoss and
nolificalion llal inslaIIalion or romovaI may bo porformod.
PCI Express System Architecture
652
Surprise RemovaI Notification
ICI Ixpross cards (unIiIo ICI) musl impIomonl llo odgo conlacls vill card
prosonco dolocl pins (IRSNT1# and IRSNT2#) llal broaI conlacl firsl (vlon llo
card is romovod from llo sIol). Tlis givos advancod nolico lo soflvaro of a sur-
priso romovaI and onougl limo lo romovo povor prior lo llo signaIs broaIing
conlacl.
Differences between PCI and PCI Express Hot PIug
Tlo oIomonls noodod lo supporl lol pIug aro ossonliaIIy llo samo bolvoon ICI
and ICI Ixpross lol pIug soIulions. Iiguro 17-1 on pago 653 dopicls llo ICI
lardvaro and soflvaro oIomonls roquirod lo supporl lol pIug. ICI soIulions
impIomonl a singIo slandardizod lol pIug conlroIIor on llo syslom board llal
pormils aII lol pIug sIols on llo bus lo bo conlroIIod by a singIo conlroIIor. AIso,
isoIalion Iogic is noodod in llo ICI onvironmonl lo oIoclricaIIy disconnocl a sin-
gIo card sIol from llo bus prior lo card romovaI.
ICI Ixpross Hol IIug diffors from llo ICI impIomonlalion duo lo poinl-lo-
poinl connoclions. (Soo Iiguro 17-2 on pago 654) Ioinl-lo-poinl connoclions
oIiminalo llo nood for isoIalion Iogic and pormil llo lol pIug conlroIIor lo bo
dislribulod lo oacl porl inlorfaco lo vlicl a connoclor is allaclod. A slandard-
izod soflvaro inlorfaco dofinod for oacl rool and svilcl porl pormils a slan-
dardizod soflvaro inlorfaco lo conlroI lol pIug oporalions. Nolo llal llo
programming inlorfaco for llo ICI Ixpross and ICI Hol IIug ConlroIIors vary
and roquiro difforonl soflvaro drivors.
Chapter 17: Hot Plug
653
-
PCI Express System Architecture
654
-- -
Chapter 17: Hot Plug
655
EIements Required to Support Hot PIug
Tlis soclion doscribos llo lardvaro and soflvaro oIomonls roquirod lo supporl
llo Hol IIug onvironmonl. Rofor lo Iiguro 17-2 on pago 654 during llis discus-
sion.
Software EIements
TabIo 17-1 on pago 655 doscribos llo major soflvaro oIomonls llal musl bo mod-
ifiod lo supporl Hol-IIug capabiIily. AIso rofor lo Iiguro 17-2 on pago 654.
-
-
Usor Inlorfaco OS vondor An OS-suppIiod uliIily llal pormils llo
ond-usor lo roquosl llal a card connoclor
bo lurnod off in ordor lo romovo a card
or lurnod on lo uso a card llal las jusl
boon inslaIIod.
Hol-IIug Sorvico OS vondor A sorvico llal procossos roquosls
(roforrod lo as Hol-IIug Irimilivos)
issuod by llo OS. Tlis incIudos roquosls
lo:
- provido sIol idonlifiors
- lurn card On or Off
- lurn Allonlion Indicalor On or Off
- rolurn curronl slalo of sIol (On or Off)
Tlo Hol-IIug Sorvico inloracls vill llo
Hol-IIug Syslom Drivor lo salisfy llo
roquosls. Tlo inlorfaco (i.o., AII) vill
llo Hol-IIug Syslom Drivor is dofinod
by llo OS vondor.
Slandardizod Hol-
IIug Syslom Drivor
Syslom Board
vondor or OS
Rocoivos roquosls (aIa Hol-IIug Irimi-
livos) from llo Hol-IIug Sorvico villin
llo OS. Inloracls vill llo lardvaro Hol-
IIug ConlroIIors lo accompIisl roquosls.
PCI Express System Architecture
656
A Hol-IIug-capabIo syslom may bo Ioadod vill an OS llal doosnl supporl
Hol-IIug capabiIily. In llis caso, aIllougl llo syslom BIOS vouId conlain Hol-
IIug-roIalod soflvaro, llo Hol-IIug Sorvico vouId nol bo prosonl. Assuming
llal llo usor doosnl allompl lol insorlion or romovaI of a card, llo syslom viII
oporalo as a slandard, non-Hol-IIug syslom.
- Tlo syslom slarlup firmvaro musl onsuro llal aII Allonlion Indicalors aro
Off.
- Tlo spoc aIso slalos: llo Hol-IIug sIols musl bo in a slalo llal vouId bo
approprialo for Ioading non-Hol-IIug syslom soflvaro.
Hardware EIements
TabIo 17-2 on pago 656 and Iiguro 17-2 on pago 654 iIIuslralo llo major lard-
varo oIomonls nocossary lo supporl ICI Ixpross Hol-IIug oporalion.
Dovico Drivor Adaplor card
vondor
Somo spociaI, Hol-IIug-spocific capabiIi-
lios musl bo incorporalod in a Hol-IIug
capabIo dovico drivor. Tlis incIudos:
- supporl for llo - command.
- oplionaI impIomonlalion of llo -
command.
- Supporl for command or
oplionaI - command.
-
-
Hol-IIug ConlroIIor Rocoivos and procossos commands issuod by llo
Hol-IIug - . Ono ConlroIIor is associ-
alod vill oacl rool or svilcl porl llal supporls
lol pIug oporalion. Tlo ICI Ixpross Spocificalion
dofinos a slandard soflvaro inlorfaco for llo Hol-
IIug ConlroIIor.
-
-
Chapter 17: Hot Plug
657
- - - -
-
- - - -- --
- - -
-
- - -
-
--
-
- - -
-- -
-
- - - --
- -
- - - --
-- -
- -
- - -
- - - -
--
-
-- --
-
- - -
- - - -
-
-
-
-
PCI Express System Architecture
658
Card RemovaI and Insertion Procedures
Tlo doscriplions of lypicaI card romovaI and insorlion llal foIIov aro inlondod
lo bo inlroduclory in naluro. AddilionaI dolaiI can bo found Ialor in llis claplor.
Il slouId bo nolod llal llo procoduros doscribod in llo foIIoving soclions
assumo llal llo OS, rallor llan llo Hol-IIug Syslom Drivor, is rosponsibIo for
configuring a novIy-inslaIIod dovico. If llo Hol-IIug Syslom Drivor las llis
rosponsibiIily, llo Hol-IIug Sorvico viII caII llo Hol-IIug Syslom Drivor and
inslrucl il lo configuro llo novIy-inslaIIod dovico.
On and Off States
Definition of On and Off
A sIol in llo On slalo las llo foIIoving claraclorislics:
- Iovor is appIiod lo llo sIol.
- RIICIK is on.
- Tlo IinI is aclivo or in llo slandby (I0s or I1 ) Iov povor slalo duo lo
Aclivo Slalo Iovor Managomonl.
- Tlo IIRST# signaI is doassorlod.
A sIol in llo Off slalo las llo foIIoving claraclorislics:
- Iovor lo llo sIol is lurnod off.
- RIICIK is off.
- Tlo IinI is inaclivo. (Drivor al llo rool of svilcl porl is in Hi Z slalo)
- Tlo IIRST# signaI is assorlod.
Turning SIot Off
Slops roquirod lo lurn off a sIol llal is curronlIy in llo On slalo:
1. Doaclivalo llo IinI. Tlis may invoIvo issuing a IIoclricaI IdIo ordorod sol (a
soquonco inilialod al llo IlysicaI Iayor llal forcos llo Cards drivor lo
onlor llo Hi Z slalo.
2. Assorl llo IIRST# signaI lo llo sIol.
3. Turn off RIICIK lo llo sIol.
4. Romovo povor from llo sIol.
Chapter 17: Hot Plug
659
Turning SIot On
Slops lo lurn on a sIol llal is curronlIy in llo off slalo:
1. AppIy povor lo llo sIol.
2. Turn on RIICIK lo llo sIol
3. Doassorl llo IIRST# signaI lo llo sIol. Tlo syslom musl mool llo solup and
loId liming roquiromonls (spocifiod in llo ICI Ixpross spoc) roIalivo lo llo
rising odgo of IIRST#.
Onco povor and cIocI lavo boon roslorod and IIRST# romovod, llo plysicaI
Iayors al boll porls viII porform IinI lraining and iniliaIizalion. Wlon llo IinI
is aclivo, llo dovicos viII iniliaIizo VC0 (incIuding fIov conlroI), maIing llo
IinI roady lo lransfor TIIs.
Card RemovaI Procedure
Wlon a card musl bo romovod, a numbor of slops musl occur lo nol onIy pro-
paro soflvaro and lardvaro for safo romovaI of llo card, bul aIso lo conlroI
indicalors llal provido visuaI ovidonco of llo roquosl lo romovo llo card boing
procossod. Tlo condilion of llo indicalors during normaI oporalion aro:
- Allonlion Indicalor (Ambor or YoIIov) Off during normaI oporalion.
- Iovor Indicalor (Groon) On during normaI oporalion
Soflvaro issuos Roquosls lo llo Hol IIug ConlroIIor via configuralion vrilo
lransaclions llal largol llo SIol ConlroI Rogislors impIomonlod by Hol-IIug
capabIo porls. Tloso roquosls conlroI povor lo llo sIol and llo slalo of llo indi-
calors.
Tlo oxacl soquonco of ovonls llal occur vlon porforming a Hol IIug card
romovaI vary sIigllIy doponding on vlollor llo Hol IIug oporalion is inilialod
by prossing llo Allonlion Bullon or via llo Usor Inlorfaco soflvaro uliIily. Iacl
soquonco is doscribod boIov.
Attention Button Used to Initiate Hot PIug RemovaI
Tlo soquonco of ovonls is as foIIovs:
1. Tlo oporalor inilialos llo card romovaI roquosl by doprossing llo sIols
allonlion bullon. Tlo Hol-IIug ConlroIIor dolocls llis ovonl and doIivors
an inlorrupl lo llo rool compIox. As a rosuIl of llo inlorrupl llo Hol IIug
PCI Express System Architecture
660
sorvico caIIs llo Hol IIug Syslom Drivor, vlicl roads sIol slalus informa-
lion and dolocls llo Allonlion Bullon roquosl.
2. Noxl, llo Hol-IIug Sorvico issuos a roquosl lo llo Hol-IIug Syslom Drivor
commanding llo Hol IIug ConlroIIor lo bIinI llo sIols Iovor Indicalor.
Tlo oporalor is granlod a 5 socond aborl inlorvaI, from llo limo llal llo
indicalors slarls lo bIinI, during vlicl llo oporalor may pross llo bullon a
socond limo lo aborl llo roquosl.
3. Tlo Iovor Indicalor conlinuos lo bIinI vliIo llo Hol IIug soflvaro vaIi-
dalos llo roquosl. Nolo llal soflvaro may faiI lo vaIidalo llo roquosl (o.g.,
llo card may curronlIy bo usod for somo crilicaI syslom oporalion).
4. If llo roquosl is vaIidalod, llo Hol-IIug Sorvico uliIily commands llo cards
dovico drivor lo quiosco. Tlal is, llo drivor musl slop issuing roquosls lo llo
card and compIolo or lorminalo aII oulslanding roquosls as voII as disabIo
ils abiIily lo gonoralo lransaclions (incIuding inlorrupl mossagos).
5. Soflvaro llon issuos a command lo disabIo llo cards IinI via llo IinI Con-
lroI rogislor villin llo rool or svilcl porl lo vlicl llo sIol is allaclod. Tlis
causos porls al boll onds of llo IinI lo bo disabIod.
6. Noxl, soflvaro commands llo Hol IIug ConlroIIor lo lurn llo sIol off.
7. IoIIoving succossfuI povor dovn soflvaro issuos llo Iovor Indicalor Off
Roquosl. Tlo oporalor Inovs llal llo card may bo romovod safoIy from llo
sIol vlon llo Iovor Indicalor is Off.
8. Tlo oporalor roIoasos llo MoclanicaI Rolonlion Ialcl, causing llo Hol IIug
ConlroIIor lo romovo aII svilclod signaIs from llo sIol (o.g., SMBus and
}TAG signaIs). Tlo card can nov bo romovod.
9. Tlo OS doaIIocalos llo momory spaco, IO spaco, inlorrupl Iino, olc. llal lad
boon assignod lo llo dovico and maIos lloso rosourcos avaiIabIo for assign-
monl lo ollor dovicos in llo fuluro.
If llo roquosl is nol vaIidalod, soflvaro viII dony llo roquosl and issuo a
command lo llo Hol IIug conlroIIor lo lurn llo Iovor Indicalor bacI ON.
Tlo spocificalion aIso rocommonds llal soflvaro nolify llo oporalor via a
mossago or by Iogging an onlry indicaling llo causo of llo roquosl doniaI.
Hot PIug RemovaI Request Issued via User Interface
Tlo soquonco of ovonls is as foIIovs:
1. Tlo oporalor inilialos llo card romovaI roquosl by soIocling llo IlysicaI
SIol numbor associalod vill llo card lo bo romovod. Soflvaro opons a vin-
dov or prosonls a mossago roquosling llo oporalor confirm llo roquosl.
Nolo llal llo Iovor Indicalor romains on during llis procoss.
2. Wlon llo oporalor confirms llo roquosl, llo Hol-IIug Sorvico issuos a
roquosl lo llo Hol-IIug Syslom Drivor commanding llo Hol IIug ConlroI-
Ior lo bIinI llo sIols Iovor Indicalor. During llis limo, soflvaro vaIidalos
Chapter 17: Hot Plug
661
llo Hol IIug roquosl. Nolo llal soflvaro may faiI lo vaIidalo llo roquosl
(o.g., llo card may curronlIy boing usod for somo crilicaI syslom opora-
lion).
3. If llo roquosl is vaIidalod, llo Hol-IIug Sorvico uliIily commands llo cards
dovico drivor lo quiosco. Tlal is, llo drivor musl slop issuing roquosls lo llo
card and compIolo or lorminalo aII oulslanding roquosls as voII as disabIo
ils abiIily lo gonoralo lransaclions (incIuding inlorrupl mossagos).
4. Soflvaro llon issuos a command lo disabIo llo cards IinI via llo IinI Con-
lroI rogislor Iocalod in llo rool or svilcl porl lo vlicl llo sIol connocls.
Tlis causos porls al boll onds of llo IinI lo bo disabIod.
5. Noxl, soflvaro commands llo Hol IIug ConlroIIor lo disabIo llo sIol.
6. IoIIoving succossfuI povor dovn soflvaro issuos llo Iovor Indicalor Off
Roquosl. Tlo oporalor Inovs llal llo card may bo romovod safoIy from llo
sIol vlon llo Iovor Indicalor is Off.
7. Tlo oporalor roIoasos llo ManuaI Rolonlion Ialcl (MRI), causing llo Hol
IIug ConlroIIor lo romovo aII svilclod signaIs from llo sIol (o.g., SMBus
and V
aux
signaIs). Tlo card can nov bo romovod.
8. Tlo OS doaIIocalos llo momory spaco, IO spaco, inlorrupl Iino, olc. llal lad
boon assignod lo llo dovico and maIos lloso rosourcos avaiIabIo for assign-
monl lo ollor dovicos in llo fuluro.
If llo roquosl is nol vaIidalod, soflvaro viII dony llo roquosl and issuo a
command lo llo Hol IIug conlroIIor lo lurn llo Iovor Indicalor bacI ON.
Tlo spocificalion aIso rocommonds llal soflvaro nolify llo oporalor via a
mossago or by Iogging an onlry indicaling llo causo of llo roquosl doniaI.
Card Insertion Procedure
Tlo procoduro for inslaIIing a nov card basicaIIy rovorsos llo slops Iislod for
card romovaI. Tlo foIIoving slops assumo llal llo card sIol vas Iofl in llo samo
slalo llal il vas in immodialoIy aflor a card vas romovod from llo connoclor (in
ollor vords, llo Iovor Indicalor is in llo Off slalo, indicaling llo sIol is roady
for card insorlion). Varialions bolvoon llo lvo mollods of inilialion aro
doscribod boIov.
Card Insertion Initiated by Pressing Attention Button
Tlo slops laIon lo Insorl and onabIo a card aro as foIIovs:
1. Tlo oporalor inslaIIs llo card and socuros llo MRI. If impIomonlod, llo
MRI sonsor viII signaI llo Hol-IIug ConlroIIor llal llo Ialcl is cIosod,
causing svilclod auxiIIary signaIs and V
aux
lo bo connoclod lo llo sIol.
PCI Express System Architecture
662
2. Noxl, llo oporalor nolifios llo Hol-IIug Sorvico llal llo card las boon
inslaIIod by prossing llo Allonlion Bullon. Tlis signaIs llo Hol IIug con-
lroIIor of llo ovonl, rosuIling in slalus rogislor bils boing sol and causing a
syslom inlorrupl lo bo sonl lo llo Rool CompIox. SubsoquonlIy, Hol IIug
soflvaro roads sIol slalus from llo porl and rocognizos llo roquosl.
3. Tlo Hol-IIug Sorvico issuos a roquosl lo llo Hol-IIug Syslom Drivor com-
manding llo Hol IIug ConlroIIor lo bIinI llo sIols Iovor Indicalor lo
inform llo oporalor llal llo card musl nol bo romovod. Tlo oporalor is
granlod a 5 socond aborl inlorvaI, from llo limo llal llo indicalors slarls lo
bIinI, lo aborl llo roquosl by prossing llo bullon a socond limo.
4. Tlo Iovor Indicalor conlinuos lo bIinI vliIo Hol IIug soflvaro vaIidalos
llo roquosl. Nolo llal soflvaro may faiI lo vaIidalo llo roquosl (o.g., llo
socurily poIicy sollings may prolibil llo sIol boing onabIod).
5. Tlo Hol-IIug Sorvico issuos a roquosl lo llo Hol-IIug Syslom Drivor com-
manding llo Hol IIug ConlroIIor lo lurn llo sIol on.
6. Onco povor is appIiod, soflvaro issuos a command lo lurn llo Iovor Indi-
calor ON.
7. Onco IinI lraining is compIolo, llo OS commands llo IIalform Configura-
lion Roulino lo configuro llo card funclion(s) by assigning llo nocossary
rosourcos.
8. Tlo OS Iocalos llo approprialo drivor(s) (using llo Vondor ID and Dovico
ID, or llo CIass Codo, or llo Subsyslom Vondor ID and Subsyslom ID con-
figuralion rogislor vaIuos as soarcl criloria) for llo funclion(s) villin llo
ICI Ixpross dovico and Ioads il (or llom) inlo momory.
9. Tlo OS llon caIIs llo drivors iniliaIizalion codo onlry poinl, causing llo
procossor lo oxoculo llo drivors iniliaIizalion codo. Tlis codo finislos llo
solup of llo dovico and llon sols llo approprialo bils in llo dovicos ICI
configuralion Command rogislor lo onabIo llo dovico.
If llo roquosl is nol vaIidalod, soflvaro viII dony llo roquosl and issuo a
command lo llo Hol IIug conlroIIor lo lurn llo Iovor Indicalor bacI OII.
Tlo spocificalion aIso rocommonds llal soflvaro nolify llo oporalor via a
mossago or by Iogging an onlry indicaling llo causo of llo roquosl doniaI.
Card Insertion Initiated by User Interface
Tlo slops laIon lo Ro-onabIo llo card aro as foIIovs:
1. Tlo oporalor inslaIIs llo card and socuros llo MRI. Tlo MRI sonsor signaIs
llo Hol IIug ConlroIIor lo connocl llo svilclod signaIs lo llo sIol.
2. Noxl, llo oporalor informs llo Hol-IIug Sorvico (via llo Hol IIug UliIily
program) llal llo card las boon inslaIIod and is roady lo bo ro-onabIod.
Soflvaro llon prompls llo usor lo vorify llal il is safo lo ro-onabIo llo sIol.
Chapter 17: Hot Plug
663
3. Aflor llo oporalor roquosls card insorlion, llo Hol-IIug Sorvico issuos a
roquosl lo llo Hol-IIug Syslom Drivor commanding llo Hol IIug ConlroI-
Ior lo bIinI llo sIols Iovor Indicalor lo inform llo oporalor llal llo card
musl nol bo romovod.
4. Tlo Iovor Indicalor conlinuos lo bIinI vliIo Hol IIug soflvaro vaIidalos
llo roquosl. Nolo llal soflvaro may faiI lo vaIidalo llo roquosl (o.g., llo
socurily poIicy sollings may bo prolibil llo sIol boing onabIod).
5. Tlo Hol-IIug Sorvico issuos a roquosl lo llo Hol-IIug Syslom Drivor com-
manding llo Hol IIug ConlroIIor lo roappIy povor lo llo sIol.
6. Onco povor is appIiod, soflvaro issuos a command lo lurn llo Iovor Indi-
calor ON.
7. Onco IinI lraining is compIolo, llo OS commands llo IIalform Configura-
lion Roulino lo configuro llo card funclion(s) by assigning llo nocossary
rosourcos.
8. Tlo OS Iocalos llo approprialo drivor(s) (using llo Vondor ID and Dovico
ID, or llo CIass Codo, or llo Subsyslom Vondor ID and Subsyslom ID con-
figuralion rogislor vaIuos as soarcl criloria) for llo funclion(s) villin llo
ICI Ixpross dovico and Ioads il (or llom) inlo momory.
9. Tlo OS llon caIIs llo drivors iniliaIizalion codo onlry poinl, causing llo
procossor lo oxoculo llo drivors iniliaIizalion codo. Tlis codo finislos llo
solup of llo dovico and llon sols llo approprialo bils in llo dovicos ICI
configuralion Command rogislor lo onabIo llo dovico.
If llo roquosl is nol vaIidalod, soflvaro viII dony llo roquosl and issuo a
command lo llo Hol IIug conlroIIor lo lurn llo Iovor Indicalor bacI OII.
Tlo spocificalion aIso rocommonds llal soflvaro nolify llo oporalor via a
mossago or by Iogging an onlry indicaling llo causo of llo roquosl doniaI.
Standardized Usage ModeI
Background
Sysloms basod on llo originaI 1.0 vorsion of llo ICI Hol IIug spocificalion
impIomonlod lardvaro and soflvaro dosigns llal variod vidoIy bocauso llo
spocificalion did nol dofino slandardizod rogislors or usor inlorfacos. Conso-
quonlIy, cuslomors vlo purclasod Hol IIug capabIo sysloms from difforonl
vondors voro confronlod vill a vido varialion in usor inlorfacos llal roquirod
rolraining oporalors vlon nov sysloms voro purclasod. Iurllormoro, ovory
board dosignor vas roquirod lo vrilo soflvaro lo manago lloir impIomonlalion-
spocific lol pIug conlroIIor. Tlo 1.0 rovision of llo ICI Hol-IIug ConlroIIor
(HIC) spocificalion dofinos:
PCI Express System Architecture
664
- a slandard usor inlorfaco llal oIiminalos rolraining of oporalors
- a slandard programming inlorfaco for llo lol pIug conlroIIor, vlicl por-
mils a slandardizod lol pIug drivor lo bo incorporalod inlo llo oporaling
syslom. ICI Ixpross impIomonls rogislors nol dofinod by llo HIC spocifica-
lion, lonco llo slandard Hol IIug ConlroIIor drivor impIomonlalions for
ICI and ICI Ixpross aro sIigllIy difforonl.
Tlo foIIoving soclions discuss llo slandard usor inlorfaco.
Standard User Interface
Tlo usor inlorfaco incIudos llo foIIoving foaluros:
- Allonlion Indicalor slovs llo allonlion slalo of llo sIol. Tlo indicalors
aro spocifiod lo bo on, off, or bIinIing. Tlo spocificalion dofinos llo bIinIing
froquoncy as 1 lo 2 Hz and 50 (+/- 5) duly cycIo. Tlo slalo of llis indica-
lor is slriclIy undor soflvaro conlroI.
- Iovor Indicalor (caIIod SIol Slalo Indicalor in ICI HI 1.1) slovs llo
povor slalus of llo sIol. Iovor indicalor slalos aro on, off, or bIinIing. Tlo
spocificalion dofinos llo bIinIing froquoncy as 1 lo 2 Hz and 50 (+/- 5)
duly cycIo. Tlis indicalor is conlroIIod by soflvaro, lovovor, llo spocifica-
lion pormils an oxcoplion in llo ovonl of a povor fauIl condilion.
- ManuaIIy Oporalod Rolonlion Ialcl and OplionaI Sonsor socuros card
villin sIol and nolifios llo syslom vlon llo Ialcl is roIoasod
- IIoclromoclanicaI InlorIocI (oplionaI) provonls card boing romovod
from a sIol vliIo povor is appIiod.
- Soflvaro Usor Inlorfaco aIIovs oporalor lo roquosl lol pIug oporalion
- Allonlion Bullon (oplionaI) aIIovs oporalor lo manuaIIy roquosl lol pIug
oporalion.
- SIol Numboring Idonlificalion providos visuaI idonlificalion of sIol on
llo board.
Attention Indicator
As monlionod in llo provious soclion, llo spocificalion roquiros llo syslom von-
dor lo incIudo an Allonlion Indicalor associalod vill oacl Hol-IIug sIol. Tlis
indicalor musl bo Iocalod in cIoso proximily lo llo corrosponding sIol and is
yoIIov or ambor in coIor. Tlis Indicalor dravs llo allonlion of llo ond usor lo
llo sIol duo lo llo lol pIug roquosl laving faiIod duo lo an oporalionaI probIom.
Tlo spocificalion maIos a cIoar dislinclion bolvoon oporalionaI and vaIidalion
orror and doos nol pormil llo allonlion indicalor lo roporl vaIidalion orrors. VaI-
idalion orrors aro probIoms doloclod and roporlod by soflvaro prior lo bogin-
Chapter 17: Hot Plug
665
ning llo lol pIug oporalion. Tlo bolavior of llo Allonlion Indicalor is Iislod in
TabIo 17-3 on pago 665.
Power Indicator
Tlo povor indicalor simpIy rofIocls llo slalo of main povor al llo sIol, and is
conlroIIod by Hol IIug soflvaro. Tlo coIor of llis indicalor is groon and is iIIu-
minalod vlon povor lo llo sIol is on.
Tlo spocificalion spocificaIIy prolibils Rool or svilcl porl lardvaro lo clango
llo povor indicalor slalo aulonomousIy as a rosuIl of povor fauIl or ollor
ovonls. A singIo oxcoplion lo llis ruIo aIIovs a pIalform impIomonlalion llal is
capabIo of dolocling slucI-on povor fauIls. A slucI-on fauIl is simpIy a condi-
lion in vlicl commands issuod lo romovo sIol povor aro inoffoclivo. If llo sys-
lom is dosignod lo dolocl llis condilion llo syslom may ovorrido llo rool or
svilcl porls command lo lurn llo povor indicalor off and forco il lo llo on
slalo. Tlis nolifios llo oporalor llal llo card slouId nol bo romovod from llo
sIol ovon llougl llo oporalor las roquoslod llo sIol lo bo povorod dovn. Tlo
spocificalion furllor slalos llal supporling slucI-on fauIls is oplionaI and if
landIod via syslom soflvaro llo pIalform vondor musl onsuro llal llis
oplionaI foaluro of llo Slandard Usago ModoI is addrossod via ollor soflvaro,
pIalform documonlalion, or by ollor moans.
Tlo bolavior of llo povor indicalor and llo roIalod povor slalos aro Iislod in
TabIo 17-4 on pago 666. Nolo llal V
aux
romains on and svilcl signaIs aro sliII
connoclod unliI llo rolonlion Ialcl is roIoasod or vlon llo card is romovod as
doloclod by llo Irsnl1# and Irsnl2# signaIs.
Off NormaI NormaI Oporalion
On Allonlion Hol IIug Oporalion IaiIod duo lo an opor-
alionaI probIom (o.g., probIoms vill oxlornaI cabIing,
add-in cards, soflvaro drivors, and povor fauIls)
BIinIing Iocalo SIol is boing idonlifiod al oporalors roquosl
PCI Express System Architecture
666
ManuaIIy Operated Retention Latch and Sensor
Tlo ManuaI Rolonlion Ialcl (MRI) is roquirod and il loIds ICI Ixpross cards
rigidIy in llo sIol. Iacl MRI can impIomonl an oplionaI sonsor llal nolifios llo
Hol-IIug ConlroIIor llal llo Ialcl las boon cIosod or oponod. Tlo spocificalion
aIso aIIovs a singIo Ialcl llal can loId dovn muIlipIo cards. Sucl impIomonla-
lions do nol supporl llo MRI sonsor.
An MRI Sonsor is a Svilcl, oplicaI dovico, or ollor lypo of sonsor. Tlo sonsor
roporls onIy lvo condilions: fuIIy cIosod and opon. If an unoxpoclod Ialcl
roIoaso is doloclod, llo porl aulomalicaIIy disabIos llo sIol and nolifios syslom
soflvaro. Nolo lovovor, llal llo spocificalion prolibils porls from clanging llo
slalo of llo Iovor or Allonlion indicalors aulonomousIy.
Tlo svilclod signaIs and auxiIIary povor (Vaux) musl bo aulomalicaIIy
romovod from llo sIol vlon llo MRI Sonsor indicalos llal llo MRI is opon and
musl bo roslorod lo llo sIol vlon llo MRI Sonsor indicalos llal llo Ialcl is ro-
oslabIislod. Tlo svilclod signaIs aro:
- V
aux
- SMBCIK
- SMBDAT
Tlo spocificalion aIso doscribos an aIlornalo mollod for romoving V
aux
and
SMBus povor vlon an MRI sonsor is nol prosonl. In llis caso, llo IRSNT#1
and IRSNT#2 pins, vlicl indicalo vlollor a card is inslaIIod inlo llo sIol, can
bo usod lo lriggor llo porl lo romovo llo svilclod signaIs.
Off Iovor Off il is safo lo romovo or insorl a card. AII povor
las boon romovod as roquirod for lol pIug oporalion. Vaux is
onIy romovod vlon llo ManuaI Rolonlion Ialcl is roIoasod.
On Iovor On romovaI or insorlion of a card is nol aIIovod.
Iovor is curronlIy appIiod lo llo sIol.
BIinIing Iovor Transilion card romovaI or insorlion is nol aIIovod.
Tlis slalo nolifios llo oporalor llal soflvaro is curronlIy
romoving or appIying sIol povor in rosponso lo a lol pIug
roquosl.
Chapter 17: Hot Plug
667
EIectromechanicaI InterIock (optionaI)
Tlo oplionaI oIoclromoclanicaI card inlorIocI moclanism providos a moro
soplislicalod mollod of onsuring llal a card is nol romovod vlon povor is sliII
appIiod lo llo sIol. Tlo spocificalion doos nol dofino llo spocific naluro of llo
inlorIocI, bul slalos llal il can plysicaIIy IocI llo add-in card or IocI llo MRI
in pIaco.
Tlo IocI moclanism is conlroIIod via soflvaro, lovovor, lloro is no spocific
programming inlorfaco dofinod lo conlroI llo oIoclromoclanicaI inlorIocI.
Insload an inlorIocI is conlroIIod by llo samo porl oulpul signaI llal onabIos
main povor lo llo sIol.
Software User Interface
An oporalor may uso a soflvaro inlorfaco lo roquosl card romovaI or insorlion.
Tlis inlorfaco is providod by syslom soflvaro, vlicl aIso monilors sIols and
roporls slalus informalion lo llo oporalor. Tlo spocificalion slalos llal llo usor
inlorfaco is impIomonlod by llo Oporaling Syslom and consoquonlIy is boyond
llo scopo of llo spocificalion.
Tlo oporalor musl bo abIo lo inilialo oporalions al oacl sIol indopondonl of aII
ollor sIols. ConsoquonlIy, llo oporalor may inilialo a lol-pIug oporalion on ono
sIol using llo soflvaro usor inlorfaco or allonlion bullon vliIo a lol-pIug opor-
alion on anollor sIol is in procoss. Tlis can bo dono rogardIoss of vlicl inlor-
faco llo oporalor usod lo slarl llo firsl Hol-IIug oporalion.
Attention Button
Tlo Allonlion Bullon is a momonlary-conlacl pusl-bullon svilcl, Iocalod noar
llo corrosponding Hol-IIug sIol or on a moduIo. Tlo oporalor prossos llis bul-
lon lo inilialo a lol-pIug oporalion for llis sIol (o.g., card romovaI or insorlion).
Onco llo Allonlion Bullon is doprossod, llo Iovor Indicalor slarls lo bIinI.
Irom llo limo llo bIinIing bogins llo oporalor las 5 soconds lo aborl llo Hol
IIug oporalion by doprossing llo bullon a socond limo.
Tlo spocificalion rocommonds llal if an oporalion inilialod by an Allonlion Bul-
lon faiIs, llo syslom soflvaro slouId nolify llo oporalor of llo faiIuro. Ior
oxampIo, a mossago oxpIaining llo naluro of llo faiIuro can bo roporlod or
Ioggod.
PCI Express System Architecture
668
SIot Numbering Identification
Soflvaro and oporalors musl bo abIo lo idonlify a plysicaI sIol basod on ils sIol
numbor. Iacl lol-pIug capabIo porl musl impIomonl rogislors llal soflvaro
usos lo idonlify llo plysicaI sIol numbor. Tlo rogislors incIudo a IlysicaI SIol
numbor and a classis numbor. Tlo main classis is aIvays IaboIod classis 0. Tlo
classis numbor for ollor classis musl bo a non-zoro vaIuo and aro assignod via
llo ICI-lo-ICI bridgos Classis Numbor rogislor (Inlroduclion To Classis/
SIol Numboring Rogislors on pago 859).
Standard Hot PIug ControIIer SignaIing Interface
Iiguro 17-3 on pago 669 roprosonls a moro dolaiIod viov of llo Iogic villin rool
and svilcl porls, aIong vill llo signaIs roulod bolvoon llo sIol and porl. Tlo
imporlanco of llo slandardizod Hol IIug ConlroIIor is llo common soflvaro
inlorfaco llal aIIovs llo dovico drivor lo bo inlogralod inlo oporaling sysloms.
Tlo ICI Ixpross spocificalion in conjunclion vill llo Card IIoclroMoclanicaI
(CIM) spocificalion dofino llo sIol signaIs and llo supporl roquirod for Hol
IIug ICI Ixpross. IoIIoving is a Iisl of roquirod and oplionaI porl inlorfaco sig-
naIs noodod lo supporl llo Slandard Usago ModoI:
- IWRIID# (roquirod) porl oulpul llal conlroIs slalo of Iovor Indicalor
- ATNIID# (roquirod) porl oulpul conlroIs slalo of Allonlion Indicalor
- IWRIN (roquirod, if roforonco cIocI is impIomonlod) porl oulpul llal
conlroIs main povor lo sIol
- RIICIKIN# (roquirod) porl oulpul llal conlroIs doIivory of roforonco
cIocI lo llo sIol
- IIRST# (roquirod) porl oulpul llal conlroIs IIRST# al sIol
- IRSNT1# (roquirod) Groundod al llo connoclor
- and IRSNT2# (roquirod) porl inpul indicalos prosonco of card in sIol.
AIso puIIod up on syslom board
- IWRIIT# (roquirod) porl inpul llal nolifios llo Hol-IIug conlroIIor of a
povor fauIl condilion doloclod by oxlornaI Iogic
- AUXIN#(roquirod, if AUX povor is impIomonlod) porl oulpul llal con-
lroIs svilclod AUX signaIs and AUX povor lo sIol vlon MRI is oponod
and cIosod. Tlo MRI# signaI is roquirod vill AUX povor is prosonl.
- MRI# (roquirod if MRI Sonsor is impIomonlod, ollorviso ils oplionaI)
porl inpul from llo MRI sonsor
- BUTTON# (roquirod if Allonlion Bullon is impIomonlod, ollorviso ils
oplionaI) porl inpul indicaling oporalor vislos lo porform a Hol-IIug
oporalion
Chapter 17: Hot Plug
669
-
PCI Express System Architecture
670
The Hot-PIug ControIIer Programming Interface
Tlo slandard programming inlorfaco lo llo Hol-IIug ConlroIIor is providod via
llo ICI Ixpross CapabiIily rogislor bIocI. Iiguro 17-4 on pago 670 iIIuslralos
lloso rogislors and liglIiglls llo rogislors llal aro impIomonlod by llo difforonl
lypos of dovicos. Hol IIug foaluros aro primariIy providod via SIol Rogislors
llal aro dofinod for rool and svilcl porls. Tlo Dovico CapabiIily rogislor is aIso
usod in somo impIomonlalions as doscribod Ialor in llis claplor.
SIot CapabiIities
Iiguro 17-5 on pago 671 iIIuslralos llo sIol capabiIily rogislor and bil fioIds.
Hardvaro musl iniliaIizo llo capabiIily rogislor fioIds lo rofIocl llo foaluros
impIomonlod by llis porl. Tlis rogislor appIios lo boll card sIols and racI
mounl impIomonlalions, oxcopl for llo indicalors and allonlion bullon. Sofl-
varo musl road from llo dovico capabiIily rogislor villin llo moduIo lo dolor-
mino if indicalors and allonlion bullons aro impIomonlod. TabIo 17-5 on
pago 671 Iisls and dofinos llo sIol capabiIily fioIds.
-- -- -
Chapter 17: Hot Plug
671
- - -
- - --
- - -
0 - vlon sol, indicalos llal an allonlion bullon is
Iocalod on llo classis adjaconl lo llo sIol.
1 - vlon sol, indicalos llal a povor conlroIIor is
impIomonlod for llis sIol.
2 - - vlon sol, indicalos llal a MRI Sonsor is Iocalod
on llo sIol.
3 - vlon sol, indicalos llal an allonlion indi-
calor is Iocalod on llo classis adjaconl lo llo sIol.
4 - vlon sol, indicalos llal a povor indicalor is
Iocalod on llo classis adjaconl lo llo sIol.
PCI Express System Architecture
672
SIot Power Limit ControI
Tlo spocificalion providos a mollod for soflvaro lo Iimil llo amounl of povor
consumod by a card inslaIIod inlo an oxpansion sIol or bacIpIano impIomonla-
lion. Tlo rogislors noodod lo supporl llis foaluro aro incIudod in llo lol pIug
capabIo porl villin llo SIol CapabiIily rogislor and villin llo oxpansion card
or moduIo villin llo dovico capabiIily rogislor.
SIot ControI
Soflvaro conlroIs llo Hol IIug ovonls via llo SIol ConlroI rogislor. Tlis rogislor
pormils soflvaro lo onabIo various Hol IIug foaluros and lo conlroI lol pIug
oporalions. Iiguro 17-6 on pago 673 dopicls llo sIol conlroI rogislor and bil
fioIds. TabIo 17-6 on pago 673 Iisls and doscribos oacl fioId. Tlis rogislor acls as
llo programming inlorfaco lo conlroI various Hol-IIug foaluros and lo onabIo
inlorrupl gonoralion as voII as onabIing llo sourcos of Hol-IIug ovonls llal can
rosuIl in inlorrupl gonoralion.
5 - vlon sol, indicalos llal il is possibIo llal llo usor
can romovo llo card from llo syslom villoul nolificalion.
6 vlon sol, indicalos llal llis sIol supporls lol pIug
oporalion.
14:7 spocifios llo maximum povor llal can bo sup-
pIiod by llis sIol. Tlis Iimil vaIuo is muIlipIiod by llo scaIo spocifiod in llo
noxl fioId.
16:15 spocifios llo scaIing faclor for llo SIol Iovor
Iimil VaIuo.
31:19 I- Indicalos llo plysicaI sIol numbor associalod
vill llis porl.
- - --
- - -
Chapter 17: Hot Plug
673
- -
- - --
- - -
0 -- Wlon sol, llis bil onabIos llo gonora-
lion of a lol-pIug inlorrupl (if onabIod) or assorlion of llo WaIo# mos-
sago, vlon llo allonlion bullon is prossod.
1 Wlon sol, onabIos gonoralion of a lol-pIug
inlorrupl (if onabIod) or WaIo# mossago upon doloclion of a povor fauIl.
2 - Wlon sol, onabIos gonoralion of a lol-
pIug inlorrupl or WaIo# (if onabIod) mossago upon doloclion of a MRI
sonsor clangod ovonl.
3 - Wlon sol llis bil onabIos llo gonora-
lion of llo lol-pIug inlorrupl or a WaIo mossago vlon llo prosonco
dolocl clangod bil in llo SIol Slalus rogislor is sol.
PCI Express System Architecture
674
SIot Status and Events Management
Tlo Hol IIug ConlroIIor monilors a varioly of ovonls and roporls lloso ovonls lo
llo Hol IIug Syslom Drivor. Soflvaro can uso llo doloclod bils lo dolormino
vlicl ovonl las occurrod, vliIo llo slalus bil idonlifios llal naluro of llo
clango. Tlo clangod bils musl bo cIoarod by soflvaro in ordor lo dolocl a subso-
quonl clango. Nolo llal vlollor lloso ovonls gol roporlod lo llo syslom (via a
syslom inlorrupl) is dolorminod by llo roIalod onabIo bils in llo SIol ConlroI
Rogislor.
4 Wlon sol, onabIos a Hol- IIug
inlorrupl lo bo gonoralod llal informs soflvaro llal llo lol-pIug conlroI-
Ior is roady lo rocoivo llo noxl command.
5 Wlon sol, onabIos llo gonoralion of Hol-IIug
inlorrupls.
6 Wrilos lo llo fioId conlroI llo slalo of llo
allonlion indicalor and roads rolurn llo curronl slalo, as foIIovs:
- 00b = Rosorvod
- 01b = On
- 10b = BIinI
- 11b = Off
7 Wrilos lo llo fioId conlroI llo slalo of llo povor
indicalor and roads rolurn llo curronl slalo, as foIIovs:
- 00b = Rosorvod
- 01b = On
- 10b = BIinI
- 11b = Off
8 Wrilos lo llo fioId svilcl main povor lo llo
sIol and roads rolurn llo curronl slalo, as foIIovs:
- 0b = Iovor On
- 1b = Iovor Off
- - --
- - -
Chapter 17: Hot Plug
675
- - -
- - - --
- -
0 -- sol vlon llo Allonlion Bullon is
prossod. Nolificalion of llo allonlion bullon boing puslod doponds
on llo form-faclor impIomonlod:
- slandard card sIols uso a signaI lraco lo roporl llo ovonl
- racI and bacIpIano impIomonlalions may roIy on llo
Allonlion_Bullon_Irossod mossago.
- rofor lo ollor form-faclor spocs for dolaiIs rogarding lloso
impIomonlalions.
1 sol vlon llo Iovor ConlroIIor dolocls a
povor fauIl al llis porl.
2 - sol vlon a MRI Sonsor slalo clango is
doloclod.
PCI Express System Architecture
676
Card SIot vs Server IO ModuIe ImpIementations
ICI Ixpross supporls lvo form faclors llal dolormino llo Iocalion of llo Hol-
IIug indicalors and allonlion bullon (Soo Iiguro 17-8 on pago 677):
- Slandard Cards llal rosido in ICI-IiIo sIols mollorboard or oxpansion
classis impIomonlalions pIaco Hol IIug indicalors, llo allonlion bullon,
and MRI sonsor adjaconl lo oacl sIol on llo board.
- Sorvor IO ModuIos (SIOMs) llal inslaII inlo racIs vlon moduIos aro
inslaIIod inlo a racI-mounlod syslom llo lol-pIug indicalors and allonlion
bullon may bo Iocalod moro convonionlIy on llo ICI Ixpross moduIos as
opposod lo a RacI. Hovovor llo spocificalion doos nol procIudo llo possi-
biIily of indicalors and bullons boing Iocalod on moduIo bays.
3 - sol vlon a clango las boon doloclod in
llo slalo of llo Irsnl1# or Irsnl2# signaIs.
4 sol vlon llo Hol IIug ConlroIIor com-
pIolos a soflvaro command.
5 - vlon sol, indicalos llo curronl slalo of llo
MRI sonsor, if impIomonlod.
0b = MRI CIosod
1b = MRI Opon
6 - llis bil rofIocls vlollor a card is inslaIIod
inlo a sIol or nol (sol if card prosonl, cIoar if card nol prosonl). Il is
roquirod for aII rool and svilcl porls llal lavo a sIol allaclod lo llo
IinI. Tlo spocificalion aIso slalos llal if a sIol is nol allaclod lo llo
IinI, llon llis bil slouId bo lardvirod lo 1.
- - - --
- -
Chapter 17: Hot Plug
677
In addilion lo Sorvor IO ModuIos, cards (or bIados) llal inslaII inlo bacIpIanos
may aIso lavo indicalors and llo allonlion bullon Iocalod on llo card. Tloso
impIomonlalions voro nol dofinod al llo limo of llis vriling. Hovovor, pro-
poslod SIOM impIomonlalions roulo llo allonlion bullon and allonlion indica-
lor signaIs llrougl llo connoclor.
Tlo spocificalion aIso dofinos mossagos llal acl as virluaI viros for conlroIIing
llo allonlion indicalors and for roporling vlon llo allonlion bullon las boon
prossod. Tlo approacl oIiminalos llo nood lo roulo signaIs bolvoon llo porl
and connoclor for llo allonlion indicalors and allonlion bullon, as dono vill
card sIols as iIIuslralod in Iiguro 17-3 on pago 669. Soo Hol IIug Mossagos on
pago 678.
-
PCI Express System Architecture
678
Detecting ModuIe and BIade CapabiIities
Hol-IIug porls llal allacl lo racI and bacIpIano connoclors may nol Inov
vlollor a givon moduIo or bIado incIudos indicalors or an allonlion bullon.
ConsoquonlIy, llo spocificalion incIudos llis informalion villin llo Dovico
CapabiIilios rogislor. Soo Iiguro 17-9 on pago 678.
Hot PIug Messages
Wlon llo Hol-IIug indicalors and allonlion bullon aro Iocalod on a moduIo or
bIado, mossagos can bo usod as virluaI viros lo conlroI llo indicalors and lo
roporl llal llo bullon las boon prossod.
--- As discussod in
TabIo 17-6 on pago 673, llo allonlion and povor indicalors oacl lavo llroo
slalos: on, off, and bIinIing. Tlo mossago lransaclions acl as virluaI viros lo
signaI llo allonlion indicalor slalo. Iiguro 17-10 on pago 680 iIIuslralos llo
Hol IIug Mossago formal and Iisls llo vaIuos associalod vill oacl of llo
mossagos.
- -
Chapter 17: Hot Plug
679
- Tlis mossago is issuod by llo Hol IIug Con-
lroIIor vlon soflvaro vrilos a vaIuo of 01b inlo llo Allonlion Indicalor
ConlroI fioId of llo SIol ConlroI Rogislor indicaling llal llo Allonlion
Indicalor is lo bo lurnod on. Tlo ondpoinl dovico llal rocoivos llo mos-
sago lorminalos il and causos llo cards allonlion indicalor lo lurn on.
- Tlis mossago is issuod by llo Hol IIug
ConlroIIor vlon soflvaro vrilos a vaIuo of 10b inlo llo Allonlion Indi-
calor ConlroI fioId of llo SIol ConlroI Rogislor indicaling llal llo Allon-
lion Indicalor is lo bIinI on and off. Tlo ondpoinl dovico llal rocoivos
llo mossago lorminalos il and causos llo card's allonlion indicalor lo
slarl bIinIing.
- . Tlis mossago is issuod by llo Hol IIug Con-
lroIIor vlon soflvaro vrilos a vaIuo of 11b inlo llo Allonlion Indicalor
ConlroI fioId of llo SIol ConlroI Rogislor indicaling llal llo Allonlion
Indicalor is lo bo lurnod off. Tlo ondpoinl dovico llal rocoivos llo mos-
sago lorminalos il and causos llo cards indicalor lo lurn off.
- . Tlis mossago is issuod by llo Hol IIug ConlroI-
Ior vlon soflvaro vrilos a vaIuo of 01b inlo llo Iovor Indicalor Con-
lroI fioId of llo SIol ConlroI Rogislor indicaling llal llo Iovor Indicalor
is lo bo lurnod on. Tlo ondpoinl dovico llal rocoivos llo mossago lor-
minalos il and causos llo cards povor indicalor lo lurn on.
- Tlis mossago is issuod by llo Hol IIug Con-
lroIIor vlon soflvaro vrilos a vaIuo of 10b inlo llo Iovor Indicalor
ConlroI fioId of llo SIol ConlroI Rogislor indicaling llal llo Iovor Indi-
calor is lo bIinI on and off. Tlo ondpoinl dovico llal rocoivos llo mos-
sago lorminalos il and causos llo povor indicalor lo bIinI.
- . Tlis mossago is issuod by llo Hol IIug ConlroI-
Ior vlon soflvaro vrilos a vaIuo of 11b inlo llo Iovor Indicalor Con-
lroI fioId of llo SIol ConlroI Rogislor indicaling llal llo Iovor Indicalor
is lo bo lurnod off. Tlo ondpoinl dovico llal rocoivos llo mossago lormi-
nalos il and causos llo cards povor indicalor lo lurn off.
-- -- A moduIo or bIado llal ompIoys an
allonlion bullon musl signaI llo Hol IIug ConlroIIor llal llo bullon las
boon prossod. Tlo moduIo gonoralos an Allonlion_Bullon_Irossod mossago
(Iiguro 17-10 on pago 680) llal largols llo upslroam dovico (rool or svilcl
porl). Tlo mossago rosuIls in an Allonlion Bullon Irossod Ivonl llal causos
llo -- slalus bil in llo SIol Slalus rogislor bil lo bo sol,
and may aIso rosuIl in an inlorrupl if onabIod.
- --- Nolo llal lloso foaluros func-
lion onIy vlon llo card is inslaIIod and oporalionaI. Tlus, indicalors can bo
conlroIIod prior lo card romovaI and simiIarIy llo card can roporl llal llo
PCI Express System Architecture
680
allonlion bullon las boon prossod (o.g., lo signaI a roquosl for card
romovaI). Hovovor, vlon a nov card is inslaIIod, llo allonlion bullon mos-
sago cannol bo sonl from llo card and allonlion indicalor mossagos cannol
bo rocoivod unliI llo card is ro-povorod, roconfigurod, and onabIod. Tlis
moans llal soflvaro viII lavo lo bo nolifiod llal a card is roady lo bo ro-
inslaIIod.
--
Chapter 17: Hot Plug
681
SIot Numbering
PhysicaI SIot ID
An oporalor vlo vislos lo proparo a sIol for card romovaI or insorlion musl
spocify llo IlysicaI SIol ID. Tlo plysicaI sIol numbor is dosignalod by llo sys-
lom dosignor and llis assignmonl musl bo communicalod lo llo Rool or Svilcl
porl. Tlis is roquirod bocauso lardvaro musl iniliaIizo llo IlysicaI SIol ID sla-
lus bil villin llo SIol Slalus Rogislor. Wlon configuralion accossos aro mado lo
road llo plysicaI sIol ID soflvaro maIos an associalion bolvoon llo IogicaI SIol
ID (Bus# and Dovico #) and plysicaI SIol ID.
Quiescing Card and Driver
GeneraI
Irior lo romoving a card from llo syslom, lvo llings musl occur:
1. Tlo dovicos drivor musl coaso accossing llo card.
2. Tlo card musl coaso gonoralion lransaclion and inlorrupls.
Hov llis is accompIislod is OS-spocific, bul llo foIIoving musl laIo pIaco:
- Tlo OS musl slop issuing nov roquosls lo llo dovicos drivor or musl
inslrucl llo drivor lo slop accopling nov roquosls.
- Tlo drivor musl lorminalo or compIolo aII oulslanding roquosls.
- Tlo card musl bo disabIod from gonoraling inlorrupls or lransaclions.
Wlon llo OS commands llo drivor lo quiosco ilsoIf and ils dovico, llo OS musl
nol oxpocl llo dovico lo romain in llo syslom (in ollor vords, il couId bo
romovod and nol ropIacod vill a simiIar card).
Pausing a Driver (OptionaI)
OplionaIIy, an OS couId impIomonl a Iauso capabiIily lo lomporariIy slop
drivor aclivily in llo oxpoclalion llal llo samo card or a simiIar card viII bo
roinsorlod. If llo card is nol roinslaIIod villin a roasonabIo amounl of limo,
lovovor, llo drivor musl bo quioscod and llon romovod from momory.
PCI Express System Architecture
682
A card may bo romovod and an idonlicaI card inslaIIod in ils pIaco. As an oxam-
pIo, llis couId bo bocauso llo curronlIy-inslaIIod card is bad or is boing ropIacod
vill a Ialor rovision as an upgrado. If il is inlondod llal llo oporalion appoar
soamIoss from a soflvaro and oporalionaI porspoclivo, llo drivor vouId lavo lo
quiosco, savo llo curronl dovicos conloxl (i.o., llo conlonls of aII of ils rogislors,
olc.). Tlo nov card vouId llon bo inslaIIod, llo conloxl roslorod, and normaI
oporalion vouId rosumo. Il slouId bo nolod llal if llo oId card lad faiIod, il
may or may nol bo possibIo lo lavo llo oporalion appoar soamIoss.
Quiescing a Driver That ControIs MuItipIe Devices
If a drivor conlroIs muIlipIo cards and il rocoivos a command from llo OS lo
quiosco ils aclivily vill rospocl lo a spocific card, il musl onIy quiosco ils acliv-
ily vill llal card as voII as quioscing llo card ilsoIf.
Quiescing a FaiIed Card
If a card las faiIod, il may nol bo possibIo for llo drivor lo compIolo roquosls
proviousIy issuod lo llo card. In llis caso, llo drivor musl dolocl llo orror and
musl lorminalo llo roquosls villoul compIolion and allompl lo rosol llo card.
The Primitives
Tlis soclion discussos llo lol-pIug soflvaro oIomonls and llo informalion
passod bolvoon llom. Ior a roviov of llo soflvaro oIomonls and lloir roIalion-
slips lo oacl ollor, rofor lo TabIo 17-1 on pago 655. Communicalions bolvoon
llo Hol-IIug Sorvico villin llo OS and llo Hol-IIug Syslom Drivor is in llo
form of roquosls. Tlo spoc doosnl dofino llo oxacl formal of lloso roquosls, bul
doos dofino llo basic roquosl lypos and lloir conlonl. Iacl roquosl lypo issuod
lo llo Hol-IIug Syslom Drivor by llo Hol-IIug Sorvico is roforrod lo as a
. Tloy aro Iislod and doscribod in TabIo 17-8 on pago 682.
-
- -
Quory Hol-IIug
Syslom Drivor
: Nono Roquosls llal llo Hol-IIug Syslom
Drivor rolurn a sol of IogicaI SIol
IDs for llo sIols il conlroIs.
: Sol of IogicaI SIol
IDs for sIols conlroIIod by
llis drivor.
Chapter 17: Hot Plug
683
Sol SIol Slalus -:
- IogicaI SIol ID
- Nov sIol slalo (on or
off).
- Nov Allonlion Indica-
lor slalo.
- Nov Iovor Indicalor
slalo.
Tlis roquosl is usod lo conlroI llo
sIols and llo Allonlion Indicalor
associalod vill oacl sIol. Good
compIolion of a roquosl is indicalod
by rolurning llo Slalus Clango Suc-
cossfuI paramolor. If a fauIl is
incurrod during an allomplod slalus
clango, llo Hol-IIug Syslom Drivor
slouId rolurn llo approprialo fauIl
mossago (soo middIo coIumn).
UnIoss ollorviso spocifiod, llo card
slouId bo Iofl in llo off slalo.
: Roquosl compIo-
lion slalus:
- slalus clango succossfuI
- fauIlvrong froquoncy
- fauIlinsufficionl
povor
- fauIlinsufficionl con-
figuralion rosourcos
- fauIlpovor faiI
- fauIlgonoraI faiIuro
Quory SIol
Slalus
: IogicaI SIol ID Tlis roquosl rolurns llo slalo of llo
indicalod sIol (if a card is prosonl).
Tlo Hol-IIug Syslom Drivor musl
rolurn llo SIol Iovor slalus infor-
malion.
:
- SIol slalo (on or off)
- Card povor roquiro-
monls.
Async Nolico of
SIol Slalus
Clango
: IogicaI SIol ID Tlis is llo onIy primilivo (dofinod
by llo spoc) llal is issuod lo llo
Hol-IIug Sorvico by llo Hol-IIug
Syslom Drivor. Il is sonl vlon llo
Drivor dolocls an unsoIicilod
clango in llo slalo of a sIol. Ixam-
pIos vouId bo a run-limo povor
fauIl or card inslaIIod in a provi-
ousIy-omply sIol vill no varning.
: nono
-
- -
685
-
-
The Previous Chapter
ICI Ixpross incIudos nalivo supporl for lol pIug impIomonlalions. Tlo provi-
ous claplor discussod lol pIug and lol romovaI of ICI Ixpross dovicos. Tlo
spocificalion dofinos a slandard usago modoI for aII dovico and pIalform form
faclors llal supporl lol pIug capabiIily. Tlo usago modoI dofinos, as an oxam-
pIo, lov pusl bullons and indicalors (IIDs) bolavo, if impIomonlod on llo
classis, add-in card or moduIo. Tlo dofinilions assignod lo llo indicalors and
pusl bullons, doscribod in llis claplor, appIy lo aII modoIs of lol pIug impIo-
monlalions.
This Chapter
Tlis claplor providos an inlroduclion lo llo ICI Ixpross add-in card oIoclromo-
clanicaI spocificalions. Il doscribos llo card form faclor, llo connoclor dolaiIs,
and llo auxiIiary signaIs vill a doscriplion of lloir funclion. Ollor card form
faclors aro aIso briofIy doscribod, bul il slouId bo slrossod llal somo of llom
lavo nol yol boon approvod by llo SIG as of llis vriling.
The Next Chapter
Tlo noxl claplor providos an inlroduclion lo configuralion in llo ICI Ixpross
onvionmonl. Il inlroducos llo configuralion spaco in vlicl a funclions config-
uralion rogislors aro impIomonlod, lov a funclion is discovorod, lov configu-
ralion lransaclions aro roulod, ICI-compalibIo spaco, ICI Ixpross oxlondod
configuralion spaco, and lov lo difforonlialo bolvoon a normaI funclion and a
bridgo.
PCI Express System Architecture
686
Introduction
Ono goaI of llo ICI Ixpross add-in card oIoclromoclanicaI spoc vas lo oncour-
ago migralion from llo ICI arclilocluro found in many dosIlop and mobiIo
dovicos loday by maIing llo migralion pall slraigllforvard and minimizing
llo roquirod lardvaro clangos. Tovards llis ond, ICI Ixpross add-in cards aro
dofinod lo bo vory simiIar lo llo curronl ICI add-in card form faclor, aIIoving
llom lo roadiIy cooxisl vill ICI sIols in syslom boards dosignod lo llo ATX or
micro-ATX slandard. ICI Ixpross foaluros IiIo aulomalic poIarily invorsion and
Iano rovorsaI aIso loIp roduco Iayoul issuos on syslom boards, so lloy can sliII
bo dosignod using llo four-Iayor IR4 board conslruclion commonIy usod loday.
As a rosuIl, mucl of an oxisling syslom board dosign can romain llo samo vlon
il is modifiod lo uso llo nov arclilocluro, and no clangos aro roquirod for oxisl-
ing classis dosigns.
Add-in Connector
Tlo ICI Ixpross add-in card connoclor (soo Iiguro 18-1 on pago 687 and Iiguro
18-2 on pago 688) is plysicaIIy vory simiIar lo llo Iogacy ICI connoclor, bul usos
a difforonl pinoul and doos nol suppIy -12V or 5V povor. Tlo plysicaI dimon-
sions of a card aro llo samo as llo ICI add-in cards and llo samo IO bracIol is
usod. TabIo 18-1 on pago 689 slovs llo pinoul for a connoclor llal supporls ICI
Ixpross cards up lo x16 (16 Ianos vido). SovoraI signaIs aro roforrod lo as auxiI-
iary signaIs in llo spoc, and lloso aro liglIigllod and doscribod in moro dolaiI
in llo soclion llal foIIovs llo labIo.
Nolo llal cards vill fovor Ianos can bo pIuggod inlo Iargor connoclors llal viII
accommodalo moro Ianos. Tlis is roforrod lo as . Tlo opposilo caso,
inslaIIing a Iargor card inlo a smaIIor sIol is caIIod and, unIiIo
ICI, is plysicaIIy provonlod in ICI Ixpross by llo connoclor Ioying.) Conso-
quonlIy, llo connoclor doscribod by llo labIo viII accommodalo a card llal is x1,
x4, x8, or x16. Tlis fIoxibiIily in llo connoclor is liglIigllod by nolos in llo labIo
llal indicalo oacl group of signaIs. Ior oxampIo, a x4 card pIuggod inlo llis sIol
vouId onIy maIo uso of pins 1 llrougl 32, and so llo nolo indicaling llo ond of
llo x4 group of signaIs appoars aflor pin 32. Tloso sogmonl indicalors do nol
roprosonl plysicaI spacos or Ioys, lovovor, bocauso lloro is onIy ono moclani-
caI Ioy on llo connoclor, Iocalod bolvoon pins 11 and 12.
Chapter 18: Add-in Cards and Connectors
687
--
PCI Express System Architecture
688
-- - -
Chapter 18: Add-in Cards and Connectors
689
--
- -
1 +12V 12V Iovor IRSNT1# Hol-IIug prosonco
dolocl
2 +12V 12V Iovor +12V 12V Iovor
3 RSVD Rosorvod +12V 12V Iovor
4 GND Ground GND Ground
5 SMCIK SMBus (Syslom Manago-
monl Bus) CIocI
}TAG2 TCK (Tosl CIocI),
cIocI inpul for }TAG
inlorfaco
6 SMDAT SMBus (Syslom Manago-
monl Bus) dala
}TAG3 TDI (Tosl Dala Inpul)
7 GND Ground }TAG4 TDO (Tosl Dala oul-
pul)
8 +3.3V 3.3 V Iovor }TAG5 TMS (Tosl Modo
SoIocl)
9 }TAG1 TRST# (Tosl Rosol) rosols
llo }TAG inlorfaco
+3.3V 3.3 V Iovor
10 3.3V
AUX
3.3 V AuxiIiary Iovor +3.3V 3.3 V Iovor
11 WAKI# SignaI for IinI roacliva-
lion
IIRST# IundamonlaI rosol
MoclanicaI Koy
12 RSVD Rosorvod GND Ground
13 GND Ground RIICIK+ Roforonco CIocI
(difforonliaI pair)
14 IITp0 Transmillor difforonliaI
pair, Iano 0
RIICIK-
15 IITn0 GND Ground
PCI Express System Architecture
690
16 GND Ground IIRp0 Rocoivor difforonliaI
pair, Iano 0
17 IRSNT2# Hol-IIug prosonco dolocl IIRn0
18 GND Ground GND Ground
Ind of llo x1 connoclor
19 IITp1 Transmillor difforonliaI
pair, Iano 1
RSVD Rosorvod
20 IITn1 GND Ground
21 GND Ground IIRp1 Rocoivor difforonliaI
pair, Iano 1
22 GND Ground IIRn1
23 IITp2 Transmillor difforonliaI
pair, Iano 2
GND Ground
24 IITn2 GND Ground
25 GND Ground IIRp2 Rocoivor difforonliaI
pair, Iano 2
26 GND Ground IIRn2
27 IITp3 Transmillor difforonliaI
pair, Iano 3
GND Ground
28 IITn3 GND Ground
29 GND Ground IIRp3 Rocoivor difforonliaI
pair, Iano 3
30 RSVD Rosorvod IIRn3
31 IRSNT2# Hol-IIug prosonco dolocl GND Ground
32 GND Ground RSVD Rosorvod
Ind of llo x4 connoclor
33 IITp4 Transmillor difforonliaI
pair, Iano 4
RSVD Rosorvod
34 IITn4 GND Ground
--
- -
Chapter 18: Add-in Cards and Connectors
691
35 GND Ground IIRp4 Rocoivor difforonliaI
pair, Iano 4
36 GND Ground IIRn4
37 IITp5 Transmillor difforonliaI
pair, Iano 5
GND Ground
38 IITn5 GND Ground
39 GND Ground IIRp5 Rocoivor difforonliaI
pair, Iano 5
40 GND Ground IIRn5
41 IITp6 Transmillor difforonliaI
pair, Iano 6
GND Ground
42 IITn6 GND Ground
43 GND Ground IIRp6 Rocoivor difforonliaI
pair, Iano 6
44 GND Ground IIRn6
45 IITp7 Transmillor difforonliaI
pair, Iano 7
GND Ground
46 IITn7 GND Ground
47 GND Ground IIRp7 Rocoivor difforonliaI
pair, Iano 7
48 IRSNT2# Hol-IIug prosonco dolocl IIRn7
49 GND Ground GND Ground
Ind of llo x8 connoclor
50 IITp8 Transmillor difforonliaI
pair, Iano 8
RSVD Rosorvod
51 IITn8 GND Ground
52 GND Ground IIRp8 Rocoivor difforonliaI
pair, Iano 8
53 GND Ground IIRn8
54 IITp9 Transmillor difforonliaI
pair, Iano 9
GND Ground
55 IITn9 GND Ground
--
- -
PCI Express System Architecture
692
56 GND Ground IIRp9 Rocoivor difforonliaI
pair, Iano 9
57 GND Ground IIRn9
58 IITp10 Transmillor difforonliaI
pair, Iano 10
GND Ground
59 IITn10 GND Ground
60 GND Ground IIRp10 Rocoivor difforonliaI
pair, Iano 10
61 GND Ground IIRn10
62 IITp11 Transmillor difforonliaI
pair, Iano 11
GND Ground
63 IITn11 GND Ground
64 GND Ground IIRp11 Rocoivor difforonliaI
pair, Iano 11
65 GND Ground IIRn11
66 IITp12 Transmillor difforonliaI
pair, Iano 12
GND Ground
67 IITn12 GND Ground
68 GND Ground IIRp12 Rocoivor difforonliaI
pair, Iano 12
69 GND Ground IIRn12
70 IITp13 Transmillor difforonliaI
pair, Iano 13
GND Ground
71 IITn13 GND Ground
72 GND Ground IIRp13 Rocoivor difforonliaI
pair, Iano 13
73 GND Ground IIRn13
74 IITp14 Transmillor difforonliaI
pair, Iano 14
GND Ground
75 IITn14 GND Ground
76 GND Ground IIRp14 Rocoivor difforonliaI
pair, Iano 14
77 GND Ground IIRn14
--
- -
Chapter 18: Add-in Cards and Connectors
693
AuxiIiary SignaIs
GeneraI
SovoraI signaIs liglIigllod in TabIo 18-1 as auxiIiary signaIs aro doscribod loro
in moro dolaiI. Tloso signaIs aro providod lo assisl vill corlain syslom IovoI
funclions and aro nol roquirod by llo gonoraI ICI Ixpross arclilocluro,
aIllougl somo aro roquirod for add-in cards. Ior roforonco, lloso signaIs aro
summarizod in TabIo 18-2.
78 IITp15 Transmillor difforonliaI
pair, Iano 15
GND Ground
79 IITn15 GND Ground
80 GND Ground IIRp15 Rocoivor difforonliaI
pair, Iano 15
81 IRSNT2# Hol-IIug prosonco dolocl IIRn15
82 RSVD Rosorvod GND Ground
-- -
RIICIK+ Roquirod Iov-voIlago
difforonliaI
cIocI
100MHz (+/- 300ppm) Rofor-
onco cIocI usod lo synclronizo
dovicos on boll onds of a IinI.
RIICIK-
IIRST# Roquirod Iov spood Indicalos vlon main povor is
villin loIoranco and slabIo.
IIRST# goos inaclivo aflor a
doIay of T
IVIIRI
onco povor is
slabIo.
--
- -
PCI Express System Architecture
694
Reference CIock
Tlis difforonliaI cIocI musl bo providod by llo syslom board (aIllougl ils uso is
oplionaI for add-in cards). Ils purposo is lo aIIov boll llo lransmillor and llo
rocoivor on a IinI lo dorivo lloir inlornaI cIocIs from llo samo sourco cIocI.
WliIo using llo roforonco cIocI is nol roquirod, il doos simpIify llo lasI of Ioop-
ing llo inlornaI cIocIs bolvoon dovicos on oillor ond of a IinI villin llo spoci-
fiod 600ppm of oacl ollor, sinco any lvo roforonco cIocIs aro roquirod lo bo
villin +/- 300ppm of lloir nominaI 100MHz froquoncy. In addilion, llo baso
spoc slalos llal minimizing llo I0s oxil Ialoncy (i.o., llo limo roquirod for llo
IinI lo lransilion from llo Iovor povor I0s slalo bacI lo I0) roquiros using a
common roforonco cIocI. IinaIIy, if Sproad Spoclrum CIocIing (SSC) is lo bo
usod, il gonoraIIy roquiros llal boll lransmillors and rocoivors on a IinI musl
uso llo samo roforonco cIocI. SSC aIIovs llo cIocI lo bo dovn-moduIalod, or
roducod in froquoncy, by as mucl as 0.5 and llon brougll bacI up lo ils nom-
inaI froquoncy al a ralo nol liglor llan 33KHz. Trying lo moduIalo llo cIocI fro-
quoncy among dovicos llal voro nol using llo samo roforonco cIocI vouId
cIoarIy bo vory difficuIl.
WAKI# Roquirod if
vaIoup
funclionaI-
ily is sup-
porlod.
Opon-drain Drivon Iov by a funclion lo
roquosl llal llo main povor and
roforonco cIocI bo roaclivalod.
SMBCIK OplionaI Opon-drain SMBus cIocI signaI.
SMBDAT OplionaI Opon-drain SMBus addross/dala signaI.
}TAG Group OplionaI Iov spood Tlis group of signaIs (TCIK,
TDI, TDO, TMS, and TRST#) can
oplionaIIy bo usod lo supporl llo
IIII 1149.1 boundary scan spoc.
IRSNT1# Roquirod Tloso signaIs aro usod lo indicalo
llal a card is inslaIIod inlo llo
connoclor.
IRSNT2#
-- -
Chapter 18: Add-in Cards and Connectors
695
PERST#
Tlis signaI, simiIar in funclion lo an invorlod vorsion of llo IOWIRGOOD sig-
naI in a lypicaI IC, is doassorlod 100ms aflor llo povor suppIy is slabIo and
villin loIoranco (soo Iiguro 18-3 on pago 695). IIRST# is aIso avaro of povor
managomonl aclivily and so can aIso bo usod lo givo ICI Ixpross dovicos somo
advanco nolico llal povor is aboul lo bo romovod as a rosuIl of a povor man-
agomonl oporalion (soo Iiguro 18-4 on pago 696). As Iong as IIRST# romains
assorlod, aII ICI Ixpross funclions aro loId in rosol.
PCI Express System Architecture
696
WAKE#
Tlis opon-drain signaI is drivon by a ICI Ixpross dovico llal supporls llo
vaIoup funclion lo roquosl roaclivalion of llo main povor and roforonco cIocI.
If an add-in card supporls llo vaIoup procoss, il musl impIomonl llis pin, and
a syslom board musl supporl llo funclion if il connocls lo llo WAKI# pin on
llo sIol. Tloro aro acluaIIy lvo dofinod vaIoup moclanisms, llo sido-band
WAKI# signaI and an in-band indicalor caIIod llo Boacon. Tlo Boacon is
roquirod for aII compononls vill llo oxcoplion of corlain form faclors, of vlicl
llo ICI Ixpross add-in card is ono oxampIo. Sysloms llal supporl vaIoup for
lloso form faclors aro roquirod lo supporl llo WAKI# signaI for llom aIllougl
-
Chapter 18: Add-in Cards and Connectors
697
lloy aro aIso oncouragod lo supporl llo Boacon. Add-in cards llal can gonoralo
a vaIoup ovonl aro aIso roquirod lo supporl llo Boacon oporalion. Il is nol cIoar
vly lvo moclanisms lavo boon dofinod. Ono omplasis in ICI Ixpross las
boon lo roduco sido-band signaIs, vlicl vouId arguo againsl adding a sido-
band vaIoup signaI. On llo ollor land, llo uso of llo WAKI# signaI may sorvo
lo roduco llo Ialoncy invoIvod in vaIing up llo syslom onougl lo juslify ils uso
for add-in cards.
If a sIol supporls WAKI#, llo signaI is roulod lo llo pIalform povor manago-
monl conlroIIor, vlicl migll rosido, for oxampIo, insido llo Rool CompIox. Tlo
WAKI# signaIs from aII llo sIols can bo bussod logollor inlo a singIo inpul or
lloy can oacl bo usod as soparalo inpuls lo llo conlroIIor. WAKI# musl lavo a
syslom board puIIup lo a roforonco voIlago llal viII bo prosonl vlon llo main
povor raiIs aro lurnod off, and llo puIIup musl bo a vaIuo llal viII aIIov il lo
puII WAKI# ligl in no moro llan 100ns. Nolo llal Hol pIug roquiros WAKI#
lo bo isoIalod (bolvoon connoclors) and drivon inaclivo during lol-add or lol-
romovo oporalions.
WAKI# funclions in a vay llal is simiIar lo IMI# in a convonlionaI ICI sys-
lom, bul il is nol llo samo and musl nol bo connoclod diroclIy lo llo IMI# sig-
naI. Tlo spoc aIso maIos il cIoar llal WAKI# musl nol diroclIy causo an
inlorrupl. As vas lruo of llo IMI# signaI in ICI, caro musl bo laIon lo onsuro
llal llo gonoralion of WAKI# in ono dovico doos nol damago llo WAKI# gon-
oralion circuilry in anollor dovico. Tlis couId prosonl a probIom if ono dovico
las 3.3V
AUX
suppIiod vliIo anollor doos nol, pormilling llo oulpul buffors of
llo dovico villoul povor lo bo rovorso-biasod by llo assorlion of WAKI# and
possibIy damagod. Ono soIulion lo llis probIom is lo add a circuil IiIo llo ono
slovn in Iiguro 18-5. As vouId bo oxpoclod, a card can onIy inilialo a vaIoup
ovonl if 3.3V
AUX
is suppIiod lo il, sinco llo ollor povor raiIs may bo lurnod off
vlon llo IinI is pul inlo a sIoop slalo.
PCI Express System Architecture
698
SMBus
Tlis oplionaI 2-viro bus providos a simpIo, inoxponsivo bus for syslom conlroI
and povor managomonl, roducing pin counl and improving fIoxibiIily. Ono
purposo for llis bus is lo roduco llo numbor of conlroI Iinos noodod for llo ICI
Ixpross bus, sinco il can bo usod lo sond SMBus mossagos bolvoon syslom
dovicos. Tloso mossagos can roporl manufacluror informalion, savo slalo for a
suspondod ovonl, roporl orrors, accopl conlroI paramolors, or suppIy slalus. Tlo
Chapter 18: Add-in Cards and Connectors
699
oporalion and roquiromonls of llo SMBus aro doscribod in dolaiI in llo -
- - .
JTAG
Tlis oplionaI inlorfaco providos a Tosl Accoss Iorl (TAI) lo faciIilalo losling of a
card llal impIomonls il. Tlo TAI pins oporalo al 3.3V, as do llo ollor singIo-
ondod IO signaIs of llo ICI Ixpross connoclor. }TAG slands for }oinl Tosl Aclion
Group and is commonIy usod lo rofor lo llo - --
.
PRSNT Pins
Rofor lo Iiguro 18-6 on pago 700. Tloso pins aro usod by llo syslom lo indicalo
vlollor a card las boon pIuggod inlo a connoclor. On llo add-in card, llo
IRSNT1# pin is virod lo llo farllosl avaiIabIo IRSNT2# pin on llo connoclor.
Ior oxampIo, a x4 card vouId viro pins 1A (IRSNT1#) and 31B (IRSNT2#)
logollor on llo card. On llo syslom board llo IRSNT1# pin on llo sIol is
groundod, vliIo aII llo IRSNT2# pins of llo sIol aro bussod logollor and
puIIod ligl, so llo syslom is abIo lo dolocl llal a card las boon inslaIIod in llo
sIol by obsorving llal llo IRSNT2# signaI las boon puIIod Iov.
Dolocling llal a card las boon addod is usofuI in a syslom llal impIomonls
oillor lol-pIug or lol-svap moclanisms, sinco a sIol couId bo Iofl povorod off
vlon no card is doloclod. Upon insorlion of a nov card, llo lardvaro couId
dolocl llo clango and bogin llo procoss of proparing llo syslom lo bring llo
nov card onIino. Wlon llo nov card goos aclivo, llo IinI viII aulomalicaIIy
dolocl llal a dovico is prosonl and bogin llo procoss of lraining llo IinI.
As an asido, llo facl llal an add-in card is roquirod lo connocl IRSNT1# lo llo
farllosl possibIo IRSNT2# pin may moan llal llo spoc dosignors considorod
using llo prosonco dolocl pins lo indicalo informalion sucl as llo IinI vidll on
an add-in card. Hovovor, if llo syslom board simpIy connocls aII llo IRSNT2#
pins logollor, llis indicalion is nol avaiIabIo. VisibiIily of llo IinI vidll may
lavo prosonlod no roaI advanlago anyvay, sinco llo IinI viII aulomalicaIIy
oslabIisl llo usabIo IinI vidll during lraining.
PCI Express System Architecture
700
EIectricaI Requirements
Power SuppIy Requirements
TabIo 18-3 doscribos llo povor suppIiod lo an add-in card. Nolo llal llo curronl
providod by llo +3.3V and +3.3V
AUX
suppIios doos nol clango as a funclion of
llo IinI vidll, vliIo il doos for llo +12V suppIy, indicaling llal llo +12V sup-
pIy providos llo povor noodod for add-in cards llal lavo liglor vallago
roquiromonls. Boll llo +3.3V and +12V povor suppIios aro roquirod for an add-
in connoclor, vliIo +3.3V
AUX
is oplionaI. Tlo curronl Iimils slovn in llo labIo
for +3.3V
AUX
indicalo llal llo liglor aIIovanco is onIy for dovicos llal supporl
vaIoup. Tlis rosombIos llo povor Iimils in ICI assignod for 3.3V
AUX
, in vlicl
llo Iimil is basod on vlollor a card is IMI onabIod, bul lloro is an oxcoplion lo
llo ruIo impIiod by llis labIo in ICI Ixpross. Tlo configuralion bil caIIod AuxiI-
-
Chapter 18: Add-in Cards and Connectors
701
iary Iovor IM InabIo found in llo Dovico ConlroI Rogislor (soo Dovico Con-
lroI Rogislor on pago 905), vlon sol, indicalos llal a dovico las pormission lo
uso llo fuII 375mA of auxiIiary povor rogardIoss of vlollor il supporls llo
vaIoup funclion.
Power Dissipation Limits
Tlo povor consumplion Iimils for difforonl IinI vidlls and card lypos aro
Iislod in TabIo 18-4. Tlo labIo indicalos, for oxampIo, llal a x1 card cannol
oxcood 10W unIoss il is a ligl povor dovico inlondod for sorvor appIicalions, in
vlicl caso llo maximum is 25W. Al llo ligl ond, a x16 graplics card is
aIIovod lo consumo up lo 60W (incroasing llis vaIuo lo 75W is undor curronlIy
undor considoralion).
-
VoIlago ToIoranco
SuppIy Curronl
Capacilivo Ioad
+/- 9 (max)
3.0A (max)
1000 uI (max)
VoIlago ToIoranco
SuppIy Curronl
Capacilivo Ioad
+/- 8
0.5A
300 uI (max)
+/- 8
2.1A
300 uI (max)
+/- 8
4.4A
300 uI (max)
VoIlago ToIoranco
SuppIy Curronl
WaIoup onabIod
Non-WaIoup
onabIod
Capacilivo Ioad
+/- 9 (max)
375 mA (max)
20 mA (max)
150 uI (max)
PCI Express System Architecture
702
Tlo difforonco bolvoon llo lypos of cards is doscribod in moro dolaiI in llo oIoc-
lromoclanicaI spoc, bul basicaIIy, llo slandard loigll cards inlondod for dosI-
lop appIicalions aro Iimilod lo laIf-Iongll add-in cards vill Iovor vallagos,
vliIo cards inlondod for sorvor appIicalions musl bo from al Ioasl 7.0 inclos
Iong up lo a fuII-Iongll card and aro aIIovod lo uso liglor vallagos. Iov-pro-
fiIo cards aro Iimilod lo laIf-Iongll and Iovor vallagos.
Nolo llal dovicos dosignalod as ligl povor aro conslrainod lo slarl up using
llo Iov povor Iimils unliI lloy lavo boon configurod as ligl povor dovicos. As
a rosuIl, aII x1 cards aro iniliaIIy Iimilod lo 10W, and cards inlondod for graplics
appIicalions aro Iimilod lo 25W al iniliaI povor up unliI configurod as a ligl
povor dovico, al vlicl limo lloy can uso up lo 60W (llis may bo incroasod lo
75W in llo fuluro). Soo soclion SIol Iovor Iimil ConlroI on pago 562 for moro
informalion on povor configuralion.
Add-in Card InteroperabiIity
As monlionod oarIior, il is possibIo for a ICI Ixpross add-in card lo bo pIuggod
inlo a sIol llal vas inlondod for a vidor card. Tlis is iIIuslralod in TabIo 18-5,
vlicl aIso poinls oul llal aII llo sIol vidlls musl supporl llo basic x1 card.
Tloro aro basicaIIy llroo sizo-mismalcl sconarios lo considor:
1. . Insorling a smaIIor IinI card inlo a Iargor IinI sIol is fuIIy
aIIovod.
2. . Insorling a Iargor IinI card inlo a smaIIor IinI sIol is nol
aIIovod and is plysicaIIy provonlod.
3. -. InslaIIing a card inlo a sIol llal is nol fuIIy roulod for aII of
llo Ianos. Tlis is nol aIIovod oxcopl for llo caso of a x8 connoclor for vlicl
llo syslom dosignor may clooso lo roulo onIy llo firsl four Ianos. A x8 card
funclions as a x4 card in llis silualion.
--
Slandard Hoigll 10W (max)
DosIlop
appIica-
lion
25W (max)
Sorvor
appIica-
lion
25W (max) 25W (max)
Sorvor
appIica-
lion
60W (max)
Graplics
appIica-
lion
Iov IrofiIo card 10W (max) 10W (max) 25W (max)
Chapter 18: Add-in Cards and Connectors
703
Form Factors Under DeveIopment
GeneraI
In addilion lo llo cards and sIols llal aro dofinod vill llo ICI Ixpross Card
IIoclromoclanicaI spoc, lloro aro ollor form faclors curronlIy undor dovoIop-
monl by various groups. Tloso form faclors aro usuaIIy dosignod for a parlicu-
Iar cIass of appIicalions and llus lavo difforonl conslrainls. A card dosignod for
a sorvor appIicalion for oxampIo, viII lypicaIIy lavo a biggor povor budgol and
moro spaco avaiIabIo llan ono dosignod for a mobiIo appIicalion. Tlo spocs for
lloso form faclors voro sliII undor dovoIopmonl al llo limo of llis pubIicalion
and aro lloroforo subjocl lo clango.
Server IO ModuIe (SIOM)
Tlo ICI SIG is curronlIy dovoIoping a moduIo for llo sorvor onvironmonl caIIod
llo Sorvor IO ModuIo (SIOM). Il las four form faclors: a baso vorsion and a fuII
vorsion, boll of vlicl can uso a singIo- or doubIo-vidll card. Tlo buiIl in lol
svap capabiIily of ICI Ixpross loIps maIo llis moduIo allraclivo lo llo sorvor
marIol bocauso il aIIovs clangos lo bo roadiIy mado lo llo syslom on llo fIy.
Roquirod Roquirod Roquirod Roquirod
No Roquirod AIIovod AIIovod
No No Roquirod AIIovod
No No No Roquirod
PCI Express System Architecture
704
Riser Card
Iiguro 18-7 on pago 704 iIIuslralos an oxampIo of a ICI Ixpross risor card.
Mini PCI Express Card
Rofor lo Iiguro 18-8 on pago 705, Iiguro 18-9 on pago 706 and Iiguro 18-10 on
pago 706. Tlo Mini ICI Ixpross add-in card is simiIar lo llo convonlionaI Mini
ICI card, bul is aboul laIf llo sizo, usos smaIIor connoclors and is oplimizod for
-- -
Chapter 18: Add-in Cards and Connectors
705
mobiIo compuling pIalforms and communicalions appIicalions. Il is dosignod
vill an inlorfaco llal incIudos a x1 ICI Ixpross connoclor, a USB 2.0 connoclor,
and sovoraI IID indicalors. WliIo llis form faclor is dosignod for adding func-
lionaIily inlornaI lo llo syslom and lloroforo doos nol aIIov llo usor lo roadiIy
maIo clangos lo llo syslom, il doos faciIilalo buiId-lo-ordor or configuro-lo-
ordor manufacluro by maIing il oasy lo cuslomizo llo funclionaIily of a
maclino simpIy by cloosing vlicl cards lo add or Ioavo oul of a producl dur-
ing assombIy. Tlis spoc is boing dovoIopod by llo ICI SIG.
-- -
PCI Express System Architecture
706
--
--
Chapter 18: Add-in Cards and Connectors
707
NEWCARD form factor
NIWCARD is a slandard llal is simiIar lo llo Mini ICI Ixpross in funclionaIily
bul is dosignod for llo usor lo roadiIy inslaII or romovo. Tlis spoc is boing
dovoIopod by llo ICMCIA group (IorsonaI Compulor Momory Card Inlorna-
lionaI Associalion) for uso in dosIlop and mobiIo dovicos, and is oxpoclod lo
uIlimaloIy ropIaco llo oxisling CardBus IC card soIulion for lloso compulors.
IiIo llo Mini ICI Ixpross slandard, llo NIWCARD inlorfaco is dofinod lo con-
lain a x1 ICI Ixpross connoclor, a USB 2.0 connoclor, and sovoraI IID indica-
lors.
Ior dosIlop maclinos, NIWCARD viII offor llo lol pIug and lol svap capa-
biIilios of ICI Ixpross and USB, and aIIov a usor lo upgrado or oxpand llo
maclino villoul laving lo opon il. Sinco llo card viII bo abIo lo fil inlo mobiIo
compulors, il viII aIso bo possibIo for llo usor lo slaro a NIWCARD dovico
bolvoon dosIlop and mobiIo compulors.
Ior a communicalions-spocific card, llo IO inlorfaco sido of llo card migll
incIudo virod connoclions sucl as a modom or Illornol inlorfaco, or a viroIoss
porl sucl as a coIIuIar or BIuolooll connoclion.
Iarl Six
ICI Ixpross
Configuralion
-
-- -
--
-- -
--
The Previous Chapter
Tlo provious claplor providos a dolaiIod doscriplion of llo discovory procoss
and bus numboring. Il doscribod:
- Inumoraling a syslom vill a singIo Rool CompIox
- Inumoraling a syslom vill muIlipIo Rool CompIoxos
- A muIlifunclion dovico villin a Rool CompIox or a Svilcl
- An Indpoinl omboddod in a Svilcl or Rool CompIox
- Aulomalic Roquoslor ID assignmonl.
- Rool CompIox Rogislor BIocIs (RCRBs)
This Chapter
Tlis claplor providos a dolaiIod doscriplion of llo configuralion rogislors rosid-
ing a funclions ICI-compalibIo configuralion spaco. Tlis incIudos llo rogislors
for boll non-bridgo and bridgo funclions.
The Next Chapter
Tlo noxl claplor providos a dolaiIod doscriplion of dovico ROMs associalod
vill ICI, ICI Ixpross, and ICI-X funclions. Tlis incIudos llo foIIoving lopics:
- dovico ROM doloclion.
- inlornaI codo/dala formal.
- sladoving.
PCI Express System Architecture
770
- iniliaIizalion codo oxoculion.
- inlorrupl looIing.
Header Type 0
GeneraI
Iiguro 22-1 on pago 771 iIIuslralos llo formal of a funclions Hoador rogion (for
funclions ollor llan ICI-lo-ICI bridgos and CardBus bridgos). Tlo rogislors
marIod in bIacI aro aIvays mandalory. Nolo llal aIllougl many of llo config-
uralion rogislors in llo figuro aro nol marIod mandalory, a rogislor may bo
mandalory for a parlicuIar lypo of dovico. Tlo subsoquonl soclions dofino oacl
rogislor and any circumslancos vloroin il may bo mandalory.
As nolod oarIior, llis formal is dofinod as Hoador Typo 0. Tlo rogislors villin
llo Hoador aro usod lo idonlify llo dovico, lo conlroI ils funclionaIily and lo
sonso ils slalus in a gonoric mannor. Tlo usago of llo dovicos romaining 48
dvords of ICI-compalibIo configuralion spaco is inlondod for dovico-spocific
rogislors, bul, vill llo advonl of llo 2.2 ICI spoc, is aIso usod as an ovorfIov
aroa for somo nov rogislors dofinod in llo ICI spoc (for moro informalion, rofor
lo CapabiIilios Ioinlor Rogislor on pago 779).
Chapter 22: PCI Compatible Configuration Registers
771
PCI Express System Architecture
772
Header Type 0 Registers CompatibIe With PCI
Tlo Hoador Typo 0 ICI configuralion rogislors llal aro impIomonlod and usod
idonlicaIIy in ICI and ICI Ixpross aro:
- Vondor ID rogislor.
- Dovico ID rogislor.
- Rovision ID rogislor.
- CIass Codo rogislor.
- Subsyslom Vondor ID rogislor.
- Subsyslom ID rogislor.
- Hoador Typo rogislor.
- BIST rogislor.
- CapabiIilios Ioinlor rogislor.
- CardBus CIS Ioinlor rogislor.
- Ixpansion ROM Baso Addross rogislor.
Tlo soclions llal foIIov provido a doscriplion of oacl of lloso rogislors.
Header Type 0 Registers IncompatibIe With PCI
In a non-bridgo ICI Ixpross funclion, llo dofinilions of llo foIIoving configura-
lion rogislors in llo funclions ICI-compalibIo configuralion spaco diffor from
llo ICI spocs dofinilion of llo rospoclivo rogislor dofinilions:
- Command Rogislor
- Slalus Rogislor
- Caclo Iino Sizo Rogislor
- Maslor Ialoncy Timor Rogislor
- Inlorrupl Iino Rogislor
- Inlorrupl Iin Rogislor
- Baso Addross Rogislors
- Min_Gnl/Max_Ial Rogislors
Tlo soclions llal foIIov dofino llo impIomonlalion/usago difforoncos of lloso
rogislors. Ior a fuII doscriplion of lloir impIomonlalion in a ICI funclion, rofor
lo llo MindSlaro booI onlilIod - (pub-
Iislod by Addison-WosIoy). Ior a fuII doscriplion of lloir impIomonlalion in a
ICI-X funclion, rofor lo llo MindSlaro booI onlilIod - ,
Iirsl Idilion (pubIislod by Addison-WosIoy).
Chapter 22: PCI Compatible Configuration Registers
773
Registers Used to Identify Devices Driver
Tlo OS usos somo combinalion of llo foIIoving mandalory rogislors lo dolor-
mino vlicl drivor lo Ioad for a dovico:
- Vondor ID.
- Dovico ID.
- Rovision ID.
- CIass Codo.
- SubSyslom Vondor ID.
- SubSyslom ID.
Vendor ID Register
- - . Tlis 16-bil rogislor idonlifios llo man-
ufacluror of llo funclion. Tlo vaIuo lardvirod in llis road-onIy rogislor is
assignod by a conlraI aullorily (llo ICI SIG) llal conlroIs issuanco of llo num-
bors. Tlo vaIuo IIIIl is rosorvod and musl bo rolurnod by llo Hosl/ICI bridgo
vlon an allompl is mado lo porform a configuralion road from a configuralion
rogislor in a non-oxislonl funclion. In ICI or ICI-X, llo road allompl rosuIls in a
Maslor Aborl, vliIo in ICI Ixpross il rosuIls in llo rolurn of UR (Unsupporlod
Roquosl) compIolion slalus. In oillor caso, llo bridgo musl rolurn a Vondor ID
of IIIIl. Tlo orror slalus rolurnod is nol considorod lo bo an orror, bul llo spoc-
ificalion says llal llo bridgo musl nonolloIoss sol ils Rocoivod Maslor Aborl bil
in ils configuralion Slalus rogislor.
Device ID Register
- - . Tlis 16-bil vaIuo is assignod by llo
funclion manufacluror and idonlifios llo lypo of funclion. In conjunclion vill
llo Vondor ID and possibIy llo Rovision ID, llo Dovico ID can bo usod lo Iocalo
a funclion-spocific (and porlaps rovision-spocific) drivor for llo funclion.
Revision ID Register
- - . Tlis 8-bil vaIuo is assignod by llo
funclion manufacluror and idonlifios llo rovision numbor of llo funclion. If llo
vondor las suppIiod a rovision-spocific drivor, llis is landy in onsuring llal llo
corrocl drivor is Ioadod by llo OS.
PCI Express System Architecture
774
CIass Code Register
- - . Tlo CIass Codo rogislor
is piclurod in Iiguro 22-2 on pago 775. Il is a 24-bil, road-onIy rogislor
dividod inlo llroo fioIds: baso CIass, Sub CIass, and Irogramming Inlorfaco.
Il idonlifios llo basic funclion of llo funclion (o.g., a mass slorago conlroI-
Ior), a moro spocific funclion sub-cIass (o.g., IDI mass slorago conlroIIor),
and, in somo casos, a rogislor-spocific programming inlorfaco (sucl as a spo-
cific fIavor of llo IDI rogislor sol).
- Tlo uppor bylo dofinos llo baso CIass of llo funclion,
- llo middIo bylo dofinos a sub-cIass villin llo baso CIass,
- and llo Iovor bylo dofinos llo Irogramming Inlorfaco.
Tlo curronlIy-dofinod baso CIass codos aro Iislod in TabIo 22-1 on pago 775.
TabIo 2 on pago 1020 llrougl TabIo 19 on pago 1031 dofino llo SubcIassos
villin oacl baso CIass. Ior many CIass/SubCIass calogorios, llo Irogram-
ming Inlorfaco bylo is lardvirod lo rolurn zoros (in ollor vords, il las no
moaning). Ior somo, sucl as VGA-compalibIo funclions and IDI conlroI-
Iors, il doos lavo moaning.
Tlis rogislor is usofuI vlon llo OS is allompling lo Iocalo a funclion llal a
CIass drivor can vorI vill. As an oxampIo, assumo llal a parlicuIar dovico
drivor las boon vrillon lo vorI vill any dispIay adaplor llal is 100 XGA
rogislor sol-compalibIo. If llo OS can Iocalo a funclion vill a CIass of 03l
(soo TabIo 22-1 on pago 775) and a Sub CIass of 01l (soo TabIo 5 on
pago 1022), llo drivor viII vorI vill llal funclion. A CIass drivor is moro
fIoxibIo llan a drivor llal las boon vrillon lo vorI onIy vill a spocific
funclion from a spocific vondor.
Ior somo funclions (sucl as llo XGA
dispIay adaplor usod as an oxampIo in llo provious soclion) llo combina-
lion of llo CIass Codo and Sub CIass Codo is sufficionl lo fuIIy-dofino ils
IovoI of rogislor sol compalibiIily. Tlo rogislor sol Iayoul for somo funclion
lypos, lovovor, can vary from ono impIomonlalion lo anollor. As an oxam-
pIo, from a programming inlorfaco porspoclivo lloro aro a numbor of fIavors
of IDI mass slorago conlroIIors, so ils nol sufficionl lo idonlify yoursoIf as
an IDI mass slorago conlroIIor. Tlo Irogramming Inlorfaco bylo vaIuo (soo
TabIo 20 on pago 1031) providos llo finaI IovoI of granuIarily llal idonlifios
llo oxacl rogislor sol Iayoul of llo funclion.
Chapter 22: PCI Compatible Configuration Registers
775
-- - A dolaiIod doscriplion of llo cur-
ronlIy-dofinod CIassos, SubCIassos, and Irogramming Inlorfaco Bylo vaIuos
can bo found in Appondix D.
-- -
-- -
-- -
00l Iunclion buiIl boforo cIass codos voro dofinod (in ollor vords:
boforo rov 2.0 of llo ICI spoc).
01l Mass slorago conlroIIor.
02l NolvorI conlroIIor.
03l DispIay conlroIIor.
04l MuIlimodia dovico.
05l Momory conlroIIor.
06l Bridgo dovico.
07l SimpIo communicalions conlroIIors.
08l Baso syslom poriploraIs.
09l Inpul dovicos.
0Al DocIing slalions.
0Bl Irocossors.
0Cl SoriaI bus conlroIIors.
0Dl WiroIoss conlroIIors.
0Il InloIIigonl IO conlroIIors.
PCI Express System Architecture
776
Subsystem Vendor ID and Subsystem ID Registers
- . Tlis rogislor pair vas addod in
rovision 2.1 of llo ICI spoc and vas oplionaI. Tlo 2.2 ICI spoc and llo ICI-
X spoc slalo llal lloy aro mandalory oxcopl for lloso funclions llal lavo a
baso CIass of 06l (a Bridgo) vill a Sub CIass of 00l-04l (rofor lo TabIo 8 on
pago 1023), or a baso CIass of 08l (Baso Syslom IoriploraIs) vill a Sub
CIass of 00l-03l (soo TabIo 10 on pago 1026). Tlis oxcIudos bridgos of llo
foIIoving lypos:
- Hosl/ICI
- ICI-lo-IISA
- ICI-lo-ISA
- ICI-lo-Micro ClannoI
- ICI-lo-ICI
Il aIso oxcIudos llo foIIoving gonoric syslom poriploraIs:
- Inlorrupl ConlroIIor
- DMA ConlroIIor
- IrogrammabIo Timors
- RTC ConlroIIor
Tlo Subsyslom Vondor ID is oblainod from llo SIG, vliIo llo vondor sup-
pIios ils ovn Subsyslom ID (llo fuII namo of llis rogislor is roaIIy "Sub-
syslom Dovico ID", bul llo dovico is siIonl). A vaIuo of zoro in lloso
rogislors indicalos lloro isnl a Subsyslom Vondor and Subsyslom ID associ-
alod vill llo funclion.
- - A funclion may rosido on
a card or villin an omboddod dovico. Iunclions dosignod around llo samo
0Il SaloIIilo communicalions conlroIIors.
10l Incryplion/Docryplion conlroIIors.
11l Dala acquisilion and signaI procossing conlroIIors.
12l-IIl Rosorvod.
IIl Dovico doos nol fil any of llo dofinod cIass codos.
-- -
-- -
Chapter 22: PCI Compatible Configuration Registers
777
ICI/ICI-X, or ICI Ixpross coro Iogic (producod by a llird-parly) may lavo
llo samo Vondor and Dovico IDs (if llo coro Iogic vondor lardvirod lloir
ovn IDs inlo lloso rogislors). If llis is llo caso, llo OS vouId lavo a prob-
Iom idonlifying llo corrocl drivor lo Ioad inlo momory for llo funclion.
Tloso lvo mandalory rogislors (Subsyslom Vondor ID and Subsyslom ID)
aro usod lo uniquoIy idonlify llo add-in card or subsyslom llal llo funclion
rosidos villin. Using lloso lvo rogislors, llo OS can dislinguisl llo diffor-
onco bolvoon cards or subsysloms manufaclurod by difforonl vondors bul
dosignod around llo samo llird-parly coro Iogic. Tlis pormils llo IIug-
and-IIay OS lo Iocalo llo corrocl drivor lo Ioad inlo momory.
- - -- Tloso lvo rogislors
musl conlain lloir assignod vaIuos boforo llo syslom firsl accossos llom. If
soflvaro allompls lo accoss llom boforo lloy lavo boon iniliaIizod, llo
dovico musl issuo:
- a Rolry lo llo maslor (in ICI).
- a CompIolion vill CRS (Configuralion Roquosl Rolry CompIolion Sla-
lus) in ICI Ixpross.
Tlo vaIuos in lloso rogislors couId bo lardvirod, Ioadod from a soriaI
IIIROM, dolorminod from lardvaro slrapping pins, olc.
Header Type Register
- - . Iiguro 22-3 on pago 778 iIIuslralos llo
formal of llo Hoador Typo rogislor. Bils |6:0] of llis ono bylo rogislor dofino llo
formal of dvords 4-llrougl-15 of llo funclions configuralion Hoador (soo Iig-
uro 22-1 on pago 771 and Iiguro 22-13 on pago 803). In addilion, bil sovon
dofinos llo dovico as a singIo- (bil 7 = 0) or muIlifunclion (bil 7 = 1) dovico. Dur-
ing configuralion, llo programmor dolorminos if lloro aro any ollor funclions
in llis dovico llal roquiro configuralion by losling llo slalo of bil sovon.
CurronlIy, llo onIy Hoador formals dofinod ollor llan llal piclurod in Iiguro
22-1 on pago 771 ( ) aro:
- (ICI-lo-ICI bridgo Hoador formal, doscriplion can bo
found in Hoador Typo 1 on pago 802).
- and (CardBus bridgo, dolaiI can bo found in llo IC Card
spocificalion and in llo MindSlaro booI onlilIod - -
(pubIislod by Addison-WosIoy).
Iuluro vorsions of llo spocificalion may dofino ollor formals.
PCI Express System Architecture
778
BIST Register
- . Tlis rogislor may bo impIomonlod by boll
Roquoslor and CompIolor funclions. If a funclion impIomonls a BuiIl-In SoIf-Tosl
(BIST), il musl impIomonl llis rogislor as iIIuslralod in Iiguro 22-4 on pago 778.
TabIo 22-2 on pago 779 doscribos oacl bil's funclion. If llo funclion doosn'l sup-
porl a BIST, llis rogislor musl rolurn zoros vlon road. Tlo funclions BIST is
invoIod by solling bil six lo ono. Tlo funclion rosols bil six upon compIolion of
llo BIST. Configuralion soflvaro musl faiI llo funclion if il doosn'l rosol bil six
villin lvo soconds. Al llo concIusion of llo BIST, llo losl rosuIl is indicalod in
llo Iovor four bils of llo rogislor. A compIolion codo of zoro indicalos succossfuI
compIolion. A non-zoro vaIuo roprosonls a funclion-spocific orror codo.
Tlo limo Iimil of lvo soconds may nol bo sufficionl limo lo losl a vory compIox
funclion or ono vill an oxlromoIy Iargo buffor llal noods lo bo loslod. In llal
caso, llo romaindor of llo losl couId bo compIolod in llo iniliaIizalion porlion of
llo funclions dovico drivor vlon llo OS Ioads il inlo momory and caIIs il.
- --
- --
Chapter 22: PCI Compatible Configuration Registers
779
CapabiIities Pointer Register
-
--
Configuration Header Space Not Large Enough
Tlo 2.1 ICI spoc dofinod llo firsl 16 dvords of a funclions ICI-compalibIo con-
figuralion spaco as ils configuralion Hoador spaco. Il vas originaIIy inlondod
llal aII of llo funclions ICI spoc-dofinod configuralion rogislors vouId rosido
villin llis rogion and llal aII of ils funclion-spocific configuralion rogislors
vouId rosido villin llo Iovor 48 dvords of ils ICI-compalibIo configuralion
spaco. UnforlunaloIy, lloy ran oul of spaco vlon dofining nov configuralion
rogislors in llo 2.2 ICI spoc. Ior llis roason, llo 2.2 and 2.3 ICI spocs pormil
somo spoc-dofinod rogislors lo bo impIomonlod in llo Iovor 48 dvords of a
funclions ICI-compalibIo configuralion spaco.
Discovering That CapabiIities Exist
If llo CapabiIilios Iisl bil in llo Slalus rogislor (soo Iiguro 22-5 on pago 780) is
sol lo ono, llo funclion impIomonls llo CapabiIilios Ioinlor rogislor in bylo zoro
of dvord 13 in ils ICI-compalibIo configuralion spaco (soo Iiguro 22-1 on pago
771). Tlis impIios llal llo poinlor conlains llo dvord-aIignod slarl addross of
llo CapabiIilios Iisl villin llo funclions Iovor 48 dvords of ICI-compalibIo
configuralion spaco. Il is a ruIo llal llo lvo Ioasl-significanl bils musl bo lard-
virod lo zoro and musl bo ignorod (i.o., masIod) by soflvaro vlon roading llo
- --
3:0 . A vaIuo of zoro indicalos succossfuI compIolion, vliIo
a non-zoro rosuIl indicalos a funclion-spocific orror.
5:4 Rosorvod.
6 . Wriling a ono inlo llis bil slarls llo funclions BIST. Tlo func-
lion rosols llis bil aulomalicaIIy upon compIolion. Soflvaro slouId faiI
llo funclion if llo BIST doos nol compIolo villin lvo soconds.
7 . SlouId rolurn a ono if llo funclion impIomonls a BIST, a
zoro if il doosn'l.
PCI Express System Architecture
780
rogislor. Tlo uppor six bils roprosonls llo uppor six bils of llo 8-bil, dvord-
aIignod slarl addross of llo nov rogislors impIomonlod in llo Iovor 48 dvords
of llo funclions ICI-compalibIo spaco. Tlo lvo Ioasl-significanl bils aro
assumod lo bo zoro.
What the CapabiIities List Looks Like
Tlo configuralion Iocalion poinlod lo by llo CapabiIilios Ioinlor rogislor is llo
firsl onlry in a IinIod sorios of ono or moro configuralion rogislor sols, oacl of
vlicl supporls a foaluro. Iacl onlry las llo gonoraI formal iIIuslralod in Iiguro
22-6 on pago 782. Tlo firsl bylo is roforrod lo as llo CapabiIily ID (assignod by
llo ICI SIG) and idonlifios llo foaluro associalod vill llis rogislor sol (o.g., 2 =
AGI), vliIo llo socond bylo oillor poinls lo anollor foaluros rogislor sol, or
indicalos llal lloro aro no addilionaI rogislor sols (vill a poinlor vaIuo of zoro)
associalod vill llis funclion. In oillor caso, llo Ioasl-significanl lvo bils musl
rolurn zoro. If a poinlor lo llo noxl foaluros rogislor sol is prosonl in llo socond
bylo, il poinls lo a dvord villin llo funclions Iovor 48 dvords of ICI-compal-
ibIo configuralion spaco (il can poinl oillor forvard or bacIvard in llo func-
lions configuralion spaco). Tlo rospoclivo foaluros rogislor sol aIvays
immodialoIy foIIovs llo firsl lvo bylos of llo onlry, and ils Iongll and formal
aro dofinod by vlal lypo of foaluro il is. Tlo CapabiIilios curronlIy dofinod in
llo 2.3 ICI spoc aro lloso Iislod in TabIo 22-3 on pago 781.
- -
Chapter 22: PCI Compatible Configuration Registers
781
-- -
-
00l Rosorvod.
01l . Rofor lo Tlo IM CapabiIily Rogislor
Sol on pago 585.
02l . Rofor lo AGI CapabiIily on pago 845. AIso rofor lo llo MindSlaro
booI onlilIod - (pubIislod by Addi-
son-WosIoy).
03l . Rofor lo VilaI Iroducl Dala (VID) CapabiIily on pago 848.
04l . Tlis capabiIily idonlifios a bridgo llal providos
oxlornaI oxpansion capabiIilios (i.o., an oxpansion classis conlaining add-
in card sIols). IuII documonlalion of llis foaluro can bo found in llo rovi-
sion 1.1 . Ior a dolaiIod, Ixpross-
orionlod doscriplion, rofor lo Inlroduclion To Classis/SIol Numboring
Rogislors on pago 859 and Classis and SIol Numbor Assignmonl on
pago 861.
05l -- -. Rofor lo Tlo MSI CapabiIily Rogislor Sol
on pago 332.
06l . Rofor lo llo claplor onlilIod
in llo MindSlaro booI onlilIod -
(pubIislod by Addison-WosIoy).
07l . Ior a dolaiIod doscriplion, rofor lo llo MindSlaro booI onli-
lIod - (pubIislod by Addison-WosIoy).
08l - .
09l - -. Tlo Iayoul of llo
rogislor sol is vondor spocific, oxcopl llal llo bylo immodialoIy
foIIoving llo Noxl poinlor indicalos llo numbor of bylos in llo
capabiIily slrucluro (incIuding llo ID and Noxl poinlor bylos). An
oxampIo vondor spocific usago is a funclion llal is configurod in llo finaI
manufacluring slops as oillor a 32-bil or 64-bil ICI agonl and llo
Vondor Spocific capabiIily slrucluro loIIs llo dovico drivor vlicl
foaluros llo dovico supporls.
0Al .
0Bl - . A fuII dofinilion of llis capabiIily
can bo found in llo IICMG 2.13 Spocificalion (lllp://vvv.picmg.com).
PCI Express System Architecture
782
CardBus CIS Pointer Register
- . Tlis oplionaI rogislor is impIomonlod by func-
lions llal slaro siIicon bolvoon a Cardbus dovico and a ICI or ICI Ixpross
funclion. Tlis fioId poinls lo llo Card Informalion Slrucluro (CIS) on llo Card-
Bus card. Tlo rogislor is road-onIy and indicalos llal llo CIS can bo accossod
from llo indicalod offsol villin ono of llo foIIoving addross spacos:
- Offsol villin llo funclions funclion-spocific ICI-compalibIo configuralion
spaco (aflor dvord 15d in llo funclions ICI-compalibIo configuralion
spaco).
- Offsol from llo slarl addross indicalod in ono of llo funclions Momory
Baso Addross Rogislors (soo Iiguro 22-10 on pago 796 and Iiguro 22-11 on
pago 797).
- Offsol villin a codo imago in llo funclions oxpansion ROM (soo Ixpan-
sion ROM Baso Addross Rogislor on pago 783 and Ixpansion ROMs on
pago 871).
0Cl . Tlis ID indicalos llal llo associalod dovico conforms
lo llo Slandard Hol-IIug ConlroIIor modoI.
0Dl-
0Il
Rosorvod.
10l -- - - (aIa ICI Ixpross CapabiIily Slruc-
luro). Ior a dolaiIod oxpIanalion, rofor lo ICI Ixpross CapabiIily Rogislor
Sol on pago 896.
11l-IIl Rosorvod.
- -
-- -
-
Chapter 22: PCI Compatible Configuration Registers
783
Tlo formal of llo CardBus CIS Ioinlor rogislor is dofinod in llo rovision 3.0 IC
Card spocificalion. A dolaiIod doscriplion of llo CIS can bo found in llo Mind-
Slaro arclilocluro sorios booI onlilIod - - (pubIislod
by Addison-WosIoy).
Expansion ROM Base Address Register
- - . Many ICI
funclions incorporalo a dovico ROM (llo spoc rofors lo il as an oxpansion ROM)
llal conlains a dovico drivor for llo funclion. Tlo oxpansion ROM slarl mom-
ory addross and sizo is spocifiod in llo Ixpansion ROM Baso Addross Rogislor
al configuralion dvord 12d in llo configuralion Hoador rogion. As doscribod in
llo soclion onlilIod Baso Addross Rogislors on pago 792, on povor-up llo sys-
lom musl bo aulomalicaIIy configurod so llal oacl funclions IO and momory
docodors rocognizo muluaIIy-oxcIusivo addross rangos. Tlo configuralion sofl-
varo musl bo abIo lo dolocl lov mucl momory spaco an oxpansion ROM
roquiros. In addilion, llo syslom musl lavo llo capabiIily of programming a
ROM's addross docodor in ordor lo Iocalo ils ROM in a non-confIicling addross
rango.
Wlon llo slarl-up configuralion program dolocls llal a funclion las an Ixpan-
sion ROM Baso Addross Rogislor impIomonlod (by vriling aII onos lo il and
roading il bacI), il musl llon clocI llo firsl lvo Iocalions in llo ROM for an
Ixpansion ROM signaluro lo dolormino if a ROM is acluaIIy inslaIIod (i.o., lloro
may bo an omply ROM socIol). If inslaIIod, llo configuralion program musl
sladov llo ROM and oxoculo ils iniliaIizalion codo. Tlis procoss is doscribod in
Ixpansion ROMs on pago 871.
Tlo formal of llo oxpansion ROM Baso Addross Rogislor is iIIuslralod in Iiguro
22-7 on pago 785:
- A ono in bil zoro onabIos llo funclions ROM addross docodor (assuming
llal llo Momory Spaco bil in llo Command rogislor is aIso sol lo ono).
- Bils |10:1] aro rosorvod.
- Bils |31:11] aro usod lo spocify llo ROM's slarl addross (slarling on an
addross divisibIo by llo ROMs sizo).
PCI Express System Architecture
784
As an oxampIo, assumo llal llo programmor vrilos IIIIIIIIl lo llo ROMs
Baso Addross Rogislor (bil 0, llo Ixpansion ROM InabIo bil, is cIoarod so as nol
lo onabIo llo ROM addross docodor unliI a slarl momory addross las boon
assignod). A subsoquonl road from llo rogislor in llo oxampIo yioIds
IIII0000l. Tlis indicalos llo foIIoving:
- Bil 0 is a zoro, indicaling llal llo ROM addross docodor is curronlIy dis-
abIod.
- Bils |10:1] aro rosorvod.
- In llo Baso Addross fioId (bils |31:11]), bil 17 is llo Ioasl-significanl bil llal
llo programmor vas abIo lo sol lo ono. Il las a binary-voigllod vaIuo of
128K, indicaling llal llo ROM docodor roquiros 128KB of momory spaco bo
assignod lo llo ROM. Tlo programmor llon vrilos a 32-bil slarl addross
inlo llo rogislor lo assign llo ROM slarl addross on a 128K addross bound-
ary.
Tlo ICI 2.3 spoc rocommonds llal llo dosignor of llo Ixpansion ROM Baso
Addross Rogislor slouId roquosl a momory bIocI sIigllIy Iargor llan llal
roquirod by llo curronl rovision ROM lo bo inslaIIod. Tlis pormils llo inslaIIa-
lion of subsoquonl ROM rovisions llal occupy moro spaco villoul roquiring a
rodosign of llo Iogic associalod vill llo funclions Ixpansion ROM Baso
Addross Rogislor. Tlo spoc sols a Iimil of 16MB as llo maximum oxpansion
ROM sizo.
Tlo Momory Spaco bil in llo Command rogislor las procodonco ovor llo
Ixpansion ROM InabIo bil. Tlo funclions oxpansion ROM slouId rospond lo
momory accossos onIy if boll ils Momory Spaco bil (in ils Command rogislor)
and llo Ixpansion ROM InabIo bil (in ils oxpansion ROM Baso Addross rogis-
lor) aro boll sol lo ono.
In ordor lo minimizo llo numbor of addross docodors llal a funclion musl
impIomonl, ono addross docodor can bo slarod bolvoon llo Ixpansion ROM
Baso Addross Rogislor and ono of llo funclions Momory Baso Addross Rogis-
lors. Tlo lvo Baso Addross Rogislors musl bo abIo lo loId difforonl vaIuos al llo
samo limo, bul llo addross docodor viII nol docodo ROM accossos unIoss llo
Ixpansion ROM InabIo bil is sol in llo Ixpansion ROM Baso Addross Rogislor.
A moro dolaiIod doscriplion of oxpansion ROM doloclion, sladoving and
usago can bo found in Ixpansion ROMs on pago 871.
Chapter 22: PCI Compatible Configuration Registers
785
Command Register
- - . Rofor lo Iiguro 22-8 on pago 785. TabIo 22 - 4
on pago 786 providos a doscriplion of oacl bil in llo Command rogislor of a
non-bridgo funclion (i.o., ono vill a Typo 0 Hoador formal).
- - -- - --
-
PCI Express System Architecture
786
-
-
--
-
- - -- -
- - --
- -- -
--
- -
- - --
- - -
--
- --
-
- -
-
-- --
-- - -- ---
- -- --
---
-- --
-
-
--
- --
-
--
- - - -
--
- -
- -
- --
--
- -
- -- -
Chapter 22: PCI Compatible Configuration Registers
787
4 RO . Doos nol appIy lo ICI Ixpross and
musl bo 0.
5 RO . Doos nol appIy lo ICI Ixpross and musl bo 0.
6 RW --. In llo Slalus rogislor (soo Iiguro 22-5 on pago
780), llo Maslor Dala Iarily Irror bil is sol by a Roquoslor if ils Iarily
Irror Rosponso bil is sol and oillor of llo foIIoving lvo condilions
occurs:
- If llo Roquoslor rocoivos a poisonod CompIolion.
- If llo Roquoslor poisons a vrilo roquosl.
If llo Iarily Irror Rosponso bil is cIoarod, llo Maslor Dala Iarily Irror
slalus bil is novor sol.
Tlo dofauIl vaIuo of llis bil is 0.
7 RO . Doos nol appIy lo ICI Ixpross
and musl bo 0.
8 RW . Wlon sol, llis bil onabIos llo non-falaI and falaI orrors
doloclod by llo funclion lo bo roporlod lo llo Rool CompIox. Tlo func-
lion roporls sucl orrors lo llo Rool CompIox if il is onabIod lo do so
oillor llrougl llis bil or llrougl llo ICI Ixpross spocific bils in llo
Dovico ConlroI rogislor (soo Dovico ConlroI Rogislor on pago 905).
Tlo dofauIl vaIuo of llis bil is 0.
9 RO - . Doos nol appIy lo ICI Ixpross and musl bo
0.
-
-
PCI Express System Architecture
788
Status Register
- - . TabIo 22 - 5 on pago 789 providos a doscrip-
lion of oacl bil in llo Slalus rogislor (aIso rofor lo Iiguro 22-9 on pago 788). Tlo
bil fioIds vill llo RW1C allribulo lavo llo foIIoving claraclorislics:
- Rogislor bils rolurn slalus vlon road, and a slalus bil may bo cIoarod by
vriling a ono lo il. Wriling a 0 lo RW1C bils las no offocl.
10 RW -. ConlroIs llo abiIily of a ICI Ixpross funclion lo gon-
oralo INTx inlorrupl mossagos.
- 0 = Iunclion onabIod lo gonoralo INTx inlorrupl mossagos.
- 1 = Iunclions abiIily lo gonoralo INTx inlorrupl mossagos is dis-
abIod.
If llo funclion lad aIroady lransmillod any Assorl_INTx omuIalion
inlorrupl mossagos and llis bil is llon sol, il musl lransmil a corro-
sponding Doassorl_INTx mossago for oacl assorl mossago lransmillod
oarIior.
Nolo llal INTx omuIalion inlorrupl mossagos forvardod by Rool and
Svilcl Iorls from dovicos dovnslroam of llo Rool or Svilcl Iorl aro
nol affoclod by llis bil. Tlo dofauIl vaIuo of llis bil is 0.
- -
-
-
Chapter 22: PCI Compatible Configuration Registers
789
- -
- -
3 RO -. Indicalos llal llo funclion las an inlorrupl
roquosl oulslanding (llal is, llo funclion lransmillod an inlor-
rupl mossago oarIior in limo and is availing sorvicing).
Nolo llal INTx omuIalion inlorrupls forvardod by Rool and
Svilcl Iorls from dovicos dovnslroam of llo Rool or Svilcl
Iorl aro nol rofIoclod in llis bil. Tlo dofauIl slalo of llis bil is
0. : llis bil is onIy associalod vill INTx mossagos, and
las no moaning if llo dovico is using Mossago SignaIod Inlor-
rupls.
4 RO - -. Indicalos llo prosonco of ono or moro
oxlondod capabiIily rogislor sols in llo Iovor 48 dvords of llo
funclions ICI-compalibIo configuralion spaco. Sinco, al a
minimum, aII ICI Ixpross funclions aro roquirod lo impIo-
monl llo ICI Ixpross capabiIily slrucluro, llis bil musl bo sol
lo 1.
5 RO . Doos nol appIy lo ICI Ixpross and musl bo
0.
7 RO - . Doos nol appIy lo ICI Ixpross
and musl bo 0.
8 RW1C - . Tlo Maslor Dala Iarily Irror bil is
sol by a Roquoslor if llo Iarily Irror InabIo bil is sol in ils
Command rogislor and oillor of llo foIIoving lvo condilions
occurs:
- If llo Roquoslor rocoivos a poisonod CompIolion.
- If llo Roquoslor poisons a vrilo roquosl.
If llo Iarily Irror InabIo bil is cIoarod, llo Maslor Dala Iarily
Irror slalus bil is novor sol.
Tlo dofauIl vaIuo of llis bil is 0.
10:9 RO . Doos nol appIy lo ICI Ixpross and musl bo
0.
PCI Express System Architecture
790
Cache Line Size Register
- - .
Tlis fioId is impIomonlod by ICI Ixpross dovicos as a road-vrilo fioId for Iogacy
compalibiIily purposos bul las no impacl on any ICI Ixpross dovico funclion-
aIily.
Master Latency Timer Register
- - .
Tlis rogislor doos nol appIy lo ICI Ixpross and musl bo lardvirod lo 0.
11 RW1C . Tlis bil is sol vlon a funclion acling
as a CompIolor lorminalos a roquosl by issuing CompIolor
Aborl CompIolion Slalus lo llo Roquoslor.
Tlo dofauIl vaIuo of llis bil is 0.
12 RW1C . Tlis bil is sol vlon a Roquoslor
rocoivos a CompIolion vill CompIolor Aborl CompIolion Sla-
lus.
Tlo dofauIl vaIuo of llis bil is 0.
13 RW1C - . Tlis bil is sol vlon a Roquoslor
rocoivos a CompIolion vill Unsupporlod Roquosl CompIo-
lion Slalus.
Tlo dofauIl vaIuo of llis bil is 0.
14 RW1C - . Tlis bil is sol vlon a funclion sonds
an IRR_IATAI or IRR_NONIATAI mossago, and llo SIRR
InabIo bil in llo Command rogislor is sol lo ono.
Tlo dofauIl vaIuo of llis bil is 0.
15 RW1C . RogardIoss of llo slalo llo Iarily Irror
InabIo bil in llo funclions Command rogislor, llis bil is sol if
llo funclion rocoivos a Ioisonod TII.
Tlo dofauIl vaIuo of llis bil is 0.
- -
- -
Chapter 22: PCI Compatible Configuration Registers
791
Interrupt Line Register
- - .
Usage In a PCI Function
Roquirod if a ICI funclion is capabIo of gonoraling inlorrupl roquosls via an
INTx# pin (i.o., INTA#, INTB#, INTC#, or INTD#). Tlo ICI spoc aIIovs a func-
lion lo gonoralo inlorrupls oillor using an inlorrupl pin, or using MSI-capabiIily
(for moro informalion, soo Mossago SignaIod Inlorrupls on pago 331).
Tlo road/vrilabIo Inlorrupl Iino rogislor is usod lo idonlify vlicl inpul on llo
inlorrupl conlroIIor llo funclion's ICI inlorrupl roquosl pin (as spocifiod in ils
Inlorrupl Iin rogislor, soo Inlorrupl Iin Rogislor on pago 792) is roulod lo. Ior
oxampIo, in a IC onvironmonl llo vaIuos 00l-llrougl-0Il in llis rogislor corro-
spond lo llo IRQ0-llrougl-IRQ15 inpuls on llo inlorrupl conlroIIor. Tlo vaIuo
255d (IIl) indicalos unInovn or no connoclion. Tlo vaIuos from 10l-
llrougl-IIl, incIusivo, aro rosorvod. AIllougl il doosnl slalo llis in llo ICI
spoc, il is llo aullors opinion llal RST# slouId iniliaIizo llo Inlorrupl Iino rog-
islor lo a vaIuo of IIl, lloroby indicaling llal inlorrupl rouling las nol yol boon
assignod lo llo funclion.
Tlo OS or dovico drivor can oxamino a dovico's Inlorrupl Iino rogislor lo dolor-
mino vlicl syslom inlorrupl roquosl Iino llo dovico usos lo issuo roquosls for
sorvico (and, lloroforo, vlicl onlry in llo inlorrupl labIo lo looI).
In a non-IC onvironmonl, llo vaIuo vrillon lo llis rogislor is arclilocluro-spo-
cific and lloroforo oulsido llo scopo of llo spocificalion.
Usage In a PCI Express Function
A ICI Ixpross funclion may gonoralo inlorrupls in llo Iogacy ICI/ICI-X man-
nor. As an oxampIo, vlon a ICI Ixpross-lo-ICI or ICI-X bridgo dolocls llo
assorlion or doassorlion of ono of ils INTA#, INTB#, INTC#, or INTD# inpuls on
llo Iogacy sido of llo bridgo, il sonds an INTx Assorl or Doassorl mossago
upslroam lovards llo Rool CompIox (spocificaIIy, lo llo inlorrupl conlroIIor
villin llo Rool CompIox).
As in ICI, llo Inlorrupl Iino rogislor communicalos inlorrupl Iino rouling infor-
malion. Tlo rogislor is road/vrilo and musl bo impIomonlod by any funclion
llal conlains a vaIid non-zoro vaIuo in ils Inlorrupl Iin configuralion rogislor
(doscribod in llo noxl soclion). Tlo OS or dovico drivor can oxamino a dovico's
PCI Express System Architecture
792
Inlorrupl Iino rogislor lo dolormino vlicl syslom inlorrupl roquosl Iino llo
dovico usos lo issuo roquosls for sorvico (and, lloroforo, vlicl onlry in llo inlor-
rupl labIo lo looI).
In a non-IC onvironmonl, llo vaIuo vrillon lo llis rogislor is arclilocluro-spo-
cific and lloroforo oulsido llo scopo of llo spocificalion.
Interrupt Pin Register
- - .
Usage In a PCI Function
Roquirod if a ICI funclion is capabIo of gonoraling inlorrupl roquosls via an
INTx# pin. Tlo ICI spoc aIIovs a funclion lo gonoralo inlorrupls oillor using an
inlorrupl pin, or using MSI-capabiIily (for moro informalion, soo Tvo Mollods
of Inlorrupl DoIivory on pago 330).
Tlo road-onIy Inlorrupl Iin rogislor dofinos vlicl of llo four ICI inlorrupl
roquosl pins, INTA#-llrougl-INTD#, a ICI funclion is connoclod (i.o., bondod)
lo. Tlo vaIuos 01l-llrougl-04l corrospond lo ICI inlorrupl roquosl pins
INTA#-llrougl-INTD#. A rolurn vaIuo of zoro indicalos llal llo dovico doosn'l
gonoralo inlorrupls. AII ollor vaIuos (05l-IIl) aro rosorvod.
Usage In a PCI Express Function
Tlis road-onIy rogislor idonlifios llo Iogacy INTx inlorrupl Mossago (INTA,
INTB, INTC, or INTD) llo funclion lransmils upslroam lo gonoralo an inlorrupl.
Tlo vaIuos 01l-llrougl-04l corrospond lo Iogacy INTx inlorrupl Mossagos
INTA-llrougl-INTD. A rolurn vaIuo of zoro indicalos llal llo dovico doosn'l
gonoralo inlorrupls using llo Iogacy mollod. AII ollor vaIuos (05l-IIl) aro
rosorvod. Nolo llal, aIllougl llo funclion may nol gonoralo inlorrupls via llo
Iogacy mollod, il may gonoralo llom via llo MSI mollod (soo Dolormining if a
Iunclion Usos INTx# Iins on pago 343 for moro informalion).
Base Address Registers
-. -
-.
Chapter 22: PCI Compatible Configuration Registers
793
Introduction
VirluaIIy aII funclions impIomonl somo momory, and/or a funclion-spocific rog-
islor sol lo conlroI llo funclion and sonso ils slalus. Somo oxampIos aro:
- A paraIIoI porl's Slalus, Command and Dala rogislors couId rosido in IO or
momory-mappod IO spaco.
- A nolvorI inlorfaco's conlroI rogislors (Command/Slalus, olc.) couId rosido
in IO or momory-mappod IO spaco.
- Tlo nolvorI inlorfaco may aIso incorporalo a RAM momory buffor llal
musl bo mappod inlo llo syslom's momory spaco.
- In addilion, a ROM conlaining llo funclions BIOS and inlorrupl sorvico
roulino may bo prosonl in a funclion.
On povor-up, llo syslom musl bo aulomalicaIIy configurod so llal oacl func-
lions IO and momory funclions occupy muluaIIy-oxcIusivo addross rangos. In
ordor lo accompIisl llis, llo syslom musl bo abIo lo dolocl lov many momory
and IO addross rangos a funclion roquiros and llo sizo of oacl. ObviousIy, llo
syslom musl llon bo abIo lo program llo funclions addross docodors in ordor
lo assign non-confIicling addross rangos lo llom.
Tlo Baso Addross Rogislors (BARs), Iocalod in dvords 4-llrougl-9 of llo func-
lions configuralion Hoador spaco (soo Iiguro 22-1 on pago 771), aro usod lo
impIomonl a funclions programmabIo momory and/or IO docodors. Iacl rog-
islor is 32-bils vido (or 64-bils vido if ils a momory docodor and ils associalod
momory bIocI can bo Iocalod abovo llo 4GB addross boundary). Iiguro 22-10
on pago 796, Iiguro 22-11 on pago 797, and Iiguro 22-12 on pago 798 iIIuslralo
llo llroo possibIo formals of a Baso Addross Rogislor. Bil 0 is a road-onIy bil and
indicalos vlollor ils a momory or an IO docodor:
- If bil 0 = 0, llo rogislor is a momory addross docodor.
- If bil 0 = 1, llo rogislor is an IO addross docodor.
Docodors may bo impIomonlod in any of llo Baso Addross Rogislor posilions. If
moro llan ono docodor is impIomonlod, lloro may bo loIos. During configura-
lion, llo configuralion soflvaro musl lloroforo IooI al aII six of llo possibIo
Baso Addross Rogislor posilions in a funclions Hoador lo dolormino vlicl rog-
islors aro acluaIIy impIomonlod.
IO Space Usage
In a IC onvironmonl, IO spaco is donsoIy popuIalod and viII onIy bocomo moro
so in llo fuluro. Ior llis roason and bocauso somo procossors aro onIy capabIo of
porforming momory lransaclions, llo foIIoving ruIos roIalod lo IO spaco usago
PCI Express System Architecture
794
aro dofinod in llo ICI Ixpross spoc:
- -- (as indicalod by a vaIuo of 0000b in
llo Dovico/Iorl Typo fioId in llo funclions ICI Ixpross CapabiIilios Rogis-
lor, soo Iiguro 22-31 on pago 865). Somo oporaling sysloms and/or procos-
sors may nol supporl IO accossos (i.o., accossos using IO rallor llan
momory addrossos). Tlis boing llo caso, llo dosignor of a nalivo ICI
Ixpross funclion slouId avoid llo uso of IO BARs.
Hovovor, llo largol syslom llal a funclion is dosignod for may uso llo
funclion as ono of llo bool dovicos (i.o., llo bool inpul dovico, oulpul dis-
pIay dovico, or bool mass slorago dovico) and may uliIizo a Iogacy dovico
drivor for llo funclion al slarlup limo. Tlo Iogacy drivor may assumo llal
llo funclions dovico-spocific rogislor sol rosidos in IO spaco. In llis caso,
llo funclion dosignor vouId suppIy an IO BAR lo vlicl llo configuralion
soflvaro viII assign an IO addross rango. Wlon llo OS bool las compIolod
and llo OS las Ioadod a nalivo ICI Ixpross drivor for llo funclion, lov-
ovor, llo OS may doaIIocalo aII Iogacy IO addross rangos proviousIy
assignod lo llo soIoclod bool dovicos. Irom llal poinl forvard and for llo
duralion of llo povor-up sossion, llo nalivo drivor viII uliIizo momory
accossos lo communicalo vill ils associalod funclion llrougl llo funclions
momory BARs.
- -- (as indicalod by a vaIuo of 0001b in
llo Dovico/Iorl Typo fioId in llo funclions ICI Ixpross CapabiIilios Rogis-
lor, soo Iiguro 22-31 on pago 865). A Iogacy ICI Ixpross Indpoinl funclion
consisls of a Iogacy ICI or ICI-X funclion suppIiod vill a ICI Ixpross fronl
ond lo inlorfaco il lo llo ICI Ixpross fabric. As many Iogacy funclions
impIomonlod IO BARs, IO BARs aro loIoralod in llis lypo of funclion.
Memory Base Address Register
Tlis soclion providos a dolaiIod doscriplion of llo bil fioIds villin a Momory
BAR. Tlo soclion onlilIod Iinding BIocI Sizo and Assigning Addross Rango
on pago 799 doscribos lov llo rogislor is probod lo dolormino ils oxislonco, llo
sizo of llo momory associalod vill llo docodor, and llo assignmonl of llo baso
addross lo llo docodor.
In a Momory Baso Addross Rogislor, bils |2:1]
dofino vlollor llo docodor is 32- or 64-bils vido:
- If 00b = ils a - (soo Iiguro 22-10 on pago 796. Tlo configu-
ralion soflvaro lloroforo viII vrilo a 32-bil slarl momory addross inlo il
spocifying any addross in llo firsl 4GB of momory addross spaco.
- If 10b = ils a - (soo Iiguro 22-11 on pago 797. Tlo configu-
Chapter 22: PCI Compatible Configuration Registers
795
ralion soflvaro lloroforo vrilos a 64-bil slarl momory addross inlo il
llal spocifios a slarl addross in a 2
64
momory addross spaco. Tlis moans
llal llis - -- - -- - - of
llo configuralion Hoador spaco. Tlo firsl dvord is usod lo sol llo Iovor
32-bils of llo slarl addross and llo socond dvord is usod lo spocify llo
uppor 32-bils of llo slarl addross.
Bil llroo dofinos llo bIocI of momory as
IrofolclabIo or nol. A bIocI of momory spaco may bo marIod as Irofolcl-
abIo onIy if il can guaranloo llal:
- lloro aro - - - (o.g., llo road doosnl aIlor llo con-
lonls of llo Iocalion or aIlor llo slalo of llo funclion in somo mannor).
Ils pormissibIo for a bridgo llal rosidos bolvoon a Roquoslor and a
momory largol lo profolcl road dala from momory llal las llis clarac-
lorislic. If llo Roquoslor doosnl ond up asIing for aII of llo dala llal
llo bridgo road inlo a road-aload buffor, llo bridgo musl discard llo
dala (soo Bridgo Musl Discard Unconsumod Irofolclod Dala on
pago 801). Tlo dala romains unclangod in llo largols momory Ioca-
lions.
- on a road, il - - - irrospoclivo of llo bylo onabIo sol-
lings.
- llo momory dovico - a bridgo llal
rosidos bolvoon llo Roquoslor and llo momory largol porforms
(for moro informalion, rofor lo Bylo Morging on pago 801) in
ils poslod momory vrilo buffor vlon momory vrilos aro
villin llo momory largols rango.
In a nulsloII, roguIar momory is profolclabIo vliIo momory-mappod IO (or
any ollor badIy-bolavod momory rogion) is nol. Tlo configuralion sofl-
varo can dolormino llal a momory largol is profolclabIo or nol by clocIing
llo IrofolclabIo bil in llo momory largols Baso Addross Rogislor (BAR).
AII momory BAR rogislors in ICI Ixpross Indpoinl funclions vill llo
IrofolclabIo bil sol lo ono musl bo impIomonlod as 64-bil momory BARs.
Momory BARs llal do nol lavo llo profolclabIo bil sol lo ono may bo
impIomonlod as 32-bil BARs.
As an oxampIo, llo addross docodor for a bIocI of momory-mappod IO
porls may lardviro llo IrofolclabIo bil lo zoro, vliIo llo addross docodor
for voII-bolavod momory vouId lardviro il lo ono. Ior porformanco roa-
sons, llo spoc urgos llal, vlorovor possibIo, momory-mappod IO rangos bo
marIod as profolclabIo momory.
PCI Express System Architecture
796
Tlo configuralion soflvaro clocIs llis bil lo dolormino a momory largols
oporalionaI claraclorislics, assigns a momory rango lo ils docodor (i.o., ils
Momory BAR), and llon bacIlracIs lo aII upslroam bridgos bolvoon llo
momory largol and llo procossor and configuros llo bridgos lo lroal llo
assignod momory rango in llo approprialo mannor:
- If ils IrofolclabIo momory, ils pormissibIo for a bridgo lo porform road
profolcling lo yioId bollor porformanco, and ils aIso pormissibIo for llo
bridgo lo porform bylo morging in ils poslod momory vrilo buffor for
vrilos porformod lo llo momory.
- If ils non-IrofolclabIo momory, bridgo road profolcling and bylo morg-
ing aro nol aIIovod villin llo assignod rogion of momory spaco. Tlis
viII nol aIIov bridgos lo oplimizo accossos lo llo funclion, bul youro
assurod llo funclion viII vorI corroclIy (and llals prolly imporlanl!).
- -- Tlis fioId consisls of bils |31:7] for a 32-bil momory
docodor and bils |63:7] for a 64-bil momory docodor. Il is usod:
- lo dolormino llo sizo of llo momory associalod vill llis docodor, and
- lo assign a slarl (i.o., baso) addross lo llo docodor.
Irogramming of an oxampIo Momory Baso Addross Rogislor is providod in
Iinding BIocI Sizo and Assigning Addross Rango on pago 799.
Tlo minimum momory rango roquoslod by a BAR is 128 bylos.
- -- - --
Chapter 22: PCI Compatible Configuration Registers
797
IO Base Address Register
Tlis soclion providos a dolaiIod doscriplion of llo bil fioIds
villin an IO Baso Addross Rogislor. Tlo soclion onlilIod Iinding BIocI
Sizo and Assigning Addross Rango on pago 799 doscribos:
- lov llo rogislor is probod lo dolormino ils oxislonco,
- lov lo dolormino llo sizo of llo IO rogislor sol associalod vill llo
docodor and lloroforo llo amounl of IO spaco llal musl bo assignod lo
il, and
- lov lo assign llo baso addross lo llo docodor.
- Rofor lo Iiguro 22-12 on pago 798. Bil zoro rolurns a
ono, indicaling llal llis is an IO, rallor llan a momory, docodor. Bil ono is
rosorvod and musl aIvays rolurn zoro. Bils |31:2] comprisos llo Baso
Addross fioId and is usod lo:
- dolormino llo sizo of llo IO bIocI roquirod and
- lo sol ils slarl addross.
Tlo ICI spoc roquiros llal a dovico llal maps ils conlroI rogislor sol inlo IO
spaco musl nol roquosl moro llan 256 Iocalions por IO Baso Addross Rogis-
lor.
Tlo uppor 16-bils of llo IO BAR may bo
lardvirod lo zoro vlon a funclion is dosignod spocificaIIy for a IC-compal-
ibIo, x86-basod maclino (bocauso InloI x86 procossors aro incapabIo of gon-
- -- - --
PCI Express System Architecture
798
oraling IO addrossos ovor 64KB). Tlo funclion musl sliII porform a fuII 32-
bil docodo of llo IO addross, lovovor.
- Iogacy IC-compalibIo dovicos sucl as VGA and
IDI conlroIIors froquonlIy oxpocl lo bo Iocalod villin fixod Iogacy IO
rangos. Sucl funclions do nol impIomonl Baso Addross Rogislors. Insload,
llo configuralion soflvaro idonlifios llom as Iogacy funclions via lloir
rospoclivo CIass Codo and llon onabIos lloir IO docodor(s) by solling llo IO
Spaco bil in ils Command rogislor lo ono.
A Iogacy IO funclion may or may nol ovn aII of llo bylo Iocalions villin a
dvord of IO spaco:
- A Iogacy IO funclion llal doos ovn aII of llo bylos villin llo curronlIy-
addrossod dvord can porform ils docodo using llo dvord-aIignod
addross suppIiod by A|31:2].
- A Iogacy IO funclion llal doos nol ovn aII of llo bylo Iocalions villin a
dvord musl docodo llo bylo onabIos lo dolormino if il ovns llo bylo-
spocific Iocalion boing addrossod. Il musl oxamino llo bylo onabIos lo
dolormino if llo Roquoslor is addrossing addilionaI, liglor bylo Ioca-
lions villin llo largol IO dvord (idonlifiod via A|31:2]). If il ovns aII of
llo addrossod IO porls, llo funclion can lonor llo roquosl. Hovovor, if
il doosnl ovn llom aII il musl issuo a CompIolor Aborl lo llo
Roquoslor.
- -- - --
Chapter 22: PCI Compatible Configuration Registers
799
Finding BIock Size and Assigning Address Range
- Tlo configuralion program musl probo oacl of a func-
lions possibIo Baso Addross Rogislors lo dolormino:
- Is llo Baso Addross Rogislor impIomonlod`
- Is il a momory or an IO addross docodor`
- If ils a momory docodor, is il a 32- or 64-bil Baso Addross Rogislor`
- If ils a momory docodor, is llo momory associalod vill llo rogislor
IrofolclabIo or non-IrofolclabIo`
- Hov mucl momory or addross spaco doos il roquiro and vill vlal
aIignmonl`
AII of llis informalion can bo ascorlainod simpIy by vriling aII onos lo llo
Baso Addross Rogislor and llon roading il bacI. A rolurn vaIuo of zoro indi-
calos llal llo Baso Addross Rogislor isnl impIomonlod. Assuming llal llo
vaIuo road is non-zoro, scanning llo rolurnod vaIuo (assuming ils non-zoro)
upvards slarling al llo Ioasl-significanl bil of llo Baso Addross fioId, llo
programmor dolorminos llo sizo of llo roquirod momory or llo IO spaco by
finding llo Ioasl-significanl bil llal vas succossfuIIy sol lo ono. Bil zoro of
llo rogislor las a binary-voigllod vaIuo of ono, bil ono a vaIuo of lvo, bil
lvo a vaIuo of four, olc. Tlo binary-voigllod vaIuo of llo Ioasl-significanl
bil sol lo ono in llo Baso Addross fioId indicalos llo roquirod amounl of
spaco. Tlis is aIso llo firsl road/vrilabIo bil in llo rogislor and aII of llo bils
abovo il aro by dofinilion road/vrilabIo. Aflor discovoring llis informalion,
llo program llon vrilos a baso 32- or 64-bil momory addross, or llo baso
32-bil IO addross inlo llo Baso Addross Rogislor.
As an oxampIo, assumo llal IIIIIIIIl is vrillon
lo llo Baso Addross Rogislor al configuralion dvord 04d and llo vaIuo road
bacI is III00000l. Tlo facl llal any bils couId bo clangod lo ono indicalos
llal llo Baso Addross Rogislor is impIomonlod.
- Bil 0 = 0, indicaling llal llis is a momory addross docodor.
- Bils |2:1] = 00b, indicaling llal ils a 32-bil momory docodor.
- Bil 3 = 0, indicaling llal ils nol IrofolclabIo momory.
- Bil 20 is llo firsl ono bil found in llo Baso Addross fioId. Tlo binary-
voigllod vaIuo of llis bil is 1,048,576, indicaling llal llis is an addross
docodor for 1MB of momory.
Tlo programmor llon vrilos a 32-bil baso addross inlo llo rogislor. Hov-
ovor, onIy bils |31:20] aro vrilabIo. Tlo docodor accopls bils |31:20] and
assumos llal bils |19:0] of llo assignod baso addross aro zoro. Tlis moans
PCI Express System Architecture
800
llal llo baso addross is divisibIo by 1MB, llo sizo of llo roquoslod momory
rango. Il is a claraclorislic of ICI, ICI-X, and ICI Ixpross docodors llal llo
assignod slarl addross is aIvays divisibIo by llo sizo of roquoslod rango.
As an oxampIo, il is possibIo lo program llo oxampIo momory addross
docodor for a 1MB bIocI of momory lo slarl on llo ono, lvo, or llroo mog
boundary, bul il is nol possibIo lo sol ils slarl addross al llo 1.5, 2.3, or 3.7
mog boundary.
As a socond oxampIo, assumo llal IIIIIIIIl is vrillon
lo a funclion's Baso Addross Rogislor al configuralion dvord addross 05d
and llo vaIuo road bacI is IIIIII01l. Bil 0 is a ono, indicaling llal llis is
an IO addross docodor. Scanning upvards slarling al bil 2 (llo Ioasl-signifi-
canl bil of llo Baso Addross fioId), bil 8 is llo firsl bil llal vas succossfuIIy
clangod lo ono. Tlo binary-voigllod vaIuo of llis bil is 256, indicaling llal
llis is an IO addross docodor roquosling 256 bylos of IO spaco.
Tlo programmor llon vrilos a 32-bil baso IO addross inlo llo rogislor.
Hovovor, onIy bils |31:8] aro vrilabIo. Tlo docodor accopls bils |31:8] and
assumos llal bils |7:0] of llo assignod baso addross aro zoro. Tlis moans
llal llo baso addross is divisibIo by 256, llo sizo of llo roquoslod IO rango.
SmaIIest/Largest Decoder Sizes
-- - Tlo smaIIosl momory addross
docodor is impIomonlod as a Baso Addross Rogislor llal pormils bils |31:7]
lo bo vrillon. Sinco llo binary-voigllod vaIuo of bil sovon is 128, 128 bylos
is llo smaIIosl momory bIocI a momory docodor can bo dosignod for.
If a 32-bil momory BAR onIy pormils bil 31 lo bo vrillon, il is roquosling
2GB of momory spaco.
A 64-bil momory BAR couId roquosl moro llan 2GB of momory addross
spaco, rosuIling in nono of llo Iovor 32 bils in llo BAR boing vrilabIo. If
llis is llo caso, llo programmor musl aIso vrilo aII onos in llo ligl dvord
of llo BAR lo dolormino lov big a momory spaco llo docodor roquiros.
-- - Tlo smaIIosl IO docodor vouId bo
impIomonlod as a Baso Addross Rogislor llal pormillod bils |31:2] lo bo pro-
grammod. Sinco llo binary-voigllod vaIuo of bil lvo is 4, 4 bylos (a dvord)
is llo smaIIosl IO bIocI an IO docodor can bo dosignod for.
Chapter 22: PCI Compatible Configuration Registers
801
Tlo Iargosl IO docodor vouId pormil bils |31:8] lo bo vrillon. Tlo binary-
voigllod vaIuo of bil 8 is 256 and llis is lloroforo llo Iargosl rango llal an
IO docodor can roquosl.
Byte Merging
A bridgo may combino vrilos lo a singIo dvord villin ono onlry in llo poslod-
vrilo buffor. Tlis foaluro is rocommondod lo improvo porformanco and is onIy
pormillod in momory addross rangos llal aro dosignalod as profolclabIo.
As an oxampIo, assumo llal a Roquoslor porforms lvo momory vrilos:
- llo firsl vrilos lo Iocalions 00000100l and 00000101l and
- llo socond vrilos lo Iocalions 00000102l and 00000103l.
Tloso four Iocalions rosido villin llo samo dvord. Tlo bridgo couId absorb llo
firsl lvo-bylo vrilo inlo a dvord buffor onlry and llon absorb llo socond lvo
bylo vrilo inlo llo samo dvord buffor onlry. Wlon llo bridgo porforms llo
momory vrilo, il can compIolo il as a singIo accoss. Il is a vioIalion of llo spoc,
lovovor, for a bridgo lo combino soparalo bylo vrilos lo llo samo Iocalion inlo
a singIo vrilo. As an oxampIo, assumo llal a Roquoslor porforms four soparalo
momory vrilos lo llo samo dvord: llo firsl vrilos lo Iocalion zoro in llo dvord,
llo socond lo Iocalion zoro again, llo llird lo Iocalion ono and llo fourll lo
Iocalion lvo. Wlon llo bridgo porforms llo poslod vrilos, il las lo porform a
singIo momory vrilo lransaclion lo vrilo llo firsl bylo lo Iocalion zoro. Il llon
porforms a socond momory vrilo lransaclion lo vrilo lo Iocalions zoro (llo soc-
ond bylo vrillon lo il by llo Roquoslor), ono and lvo.
Bridge Must Discard Unconsumed Prefetched Data
A bridgo llal las profolclod momory road dala for a Roquoslor musl discard
any profolclod road dala llal llo Roquoslor doosnl acluaIIy ond up roading.
Tlo foIIoving is an oxampIo sconario llal domonslralos a probIom llal viII
rosuIl if a bridgo doosnl discard profolclod dala llal vasnl consumod:
1. Tlo procossor las lvo buffors in main momory llal occupy adjaconl mom-
ory rogions. Tlo momory is dosignalod as profolclabIo momory.
2. Tlo procossor vrilos dala inlo llo firsl momory buffor and llon inslrucls a
ICI Ixpross Roquoslor lo road and procoss llo dala.
3. Tlo Roquoslor slarls ils momory road and llo bridgo bolvoon llo Roquoslor
and llo largol momory porforms road aloads from llo momory bocauso il is
profolclabIo, voII-bolavod momory. Tlo bridgo onds up profolcling pasl
llo ond of llo firsl momory buffor inlo llo socond ono, bul llo Roquoslor
PCI Express System Architecture
802
onIy acluaIIy roads llo dala from llo firsl buffor aroa.
4. Tlo bridgo doos nol discard llo unusod dala llal vas profolclod from llo
socond buffor.
5. Tlo procossor vrilos dala inlo llo socond momory buffor and llon inslrucls
a Roquoslor (llo samo Roquoslor or a difforonl ono) boyond llo samo bridgo
lo road and procoss llo dala.
6. Tlo Roquoslor slarls ils momory road al llo slarl addross of llo socond
buffor. Tlo bridgo doIivors llo dala llal il profolclod from llo boginning of
llo socond buffor oarIior. - - - - -
-
Min_Gnt/Max_Lat Registers
- - .
Tloso rogislors do nol appIy lo ICI Ixpross. Tloy musl bo road-onIy and lard-
virod lo 0.
Header Type 1
GeneraI
Iiguro 22-13 on pago 803 iIIuslralos llo Iayoul of a ICI-lo-ICI bridgos configu-
ralion loador spaco.
Chapter 22: PCI Compatible Configuration Registers
803
Header Type 1 Registers CompatibIe With PCI
Tlo Hoador Typo 1 ICI configuralion rogislors llal aro impIomonlod and usod
idonlicaIIy in boll ICI and ICI Ixpross aro:
- Vondor ID rogislor.
- Dovico ID rogislor.
PCI Express System Architecture
804
- Rovision ID rogislor.
- CIass Codo rogislor.
- Hoador Typo rogislor.
- BIST rogislor.
- CapabiIilios Ioinlor rogislor.
- Subordinalo Bus Numbor rogislor.
- Socondary Bus Numbor rogislor.
- Irimary Bus Numbor rogislor.
- IO Baso, Iimil and Uppor rogislors.
- Momory Baso and Iimil rogislors.
- Ixpansion ROM Baso Addross rogislor.
Tlo soclions llal foIIov provido a doscriplion of oacl of lloso rogislors.
Header Type 1 Registers IncompatibIe With PCI
In a Hoador Typo 1 bridgo ICI Ixpross funclion, llo dofinilions of llo foIIoving
configuralion rogislors in llo funclions ICI-compalibIo configuralion spaco dif-
for from llo ICI spocs dofinilion of llo rospoclivo rogislor dofinilions:
- Command Rogislor
- Slalus Rogislor
- Caclo Iino Sizo Rogislor
- Maslor Ialoncy Timor Rogislor
- Inlorrupl Iino Rogislor
- Inlorrupl Iin Rogislor
- Baso Addross Rogislors
- Socondary Ialoncy Timor rogislor.
- Socondary Slalus rogislor.
- IrofolclabIo Momory Baso, Iimil, and Uppor rogislors.
- Bridgo ConlroI rogislor.
Tlo soclions llal foIIov dofino llo impIomonlalion/usago difforoncos of lloso
rogislors. Ior a fuII doscriplion of lloir impIomonlalion in a ICI-lo-ICI bridgo
funclion, rofor lo llo MindSlaro booI onlilIod - , Iourll
Idilion (pubIislod by Addison-WosIoy). Ior a fuII doscriplion lloir impIomon-
lalion in a ICI-X lo ICI-X bridgo funclion, rofor lo llo MindSlaro booI onlilIod
- , Iirsl Idilion (pubIislod by Addison-WosIoy).
Chapter 22: PCI Compatible Configuration Registers
805
TerminoIogy
Boforo procooding, ils imporlanl lo dofino somo basic lorms associalod vill an
acluaI or a virluaI ICI-lo-ICI bridgo. Iacl ICI-lo-ICI bridgo is connoclod lo
lvo busos, roforrod lo as ils primary and socondary busos:
- -. Wlon a lransaclion is inilialod and is passod llrougl ono or
moro ICI-lo-ICI bridgos fIoving avay from llo losl procossor, il is said lo
bo moving dovnslroam.
- -. Wlon a lransaclion is inilialod and is passod llrougl ono or
moro ICI-lo-ICI bridgos fIoving lovards llo losl procossor, il is said lo bo
moving upslroam.
- -. ICI bus llal is diroclIy connoclod lo llo upslroam sido of a
bridgo.
- -. ICI bus llal is diroclIy connoclod lo llo dovnslroam inlor-
faco of a ICI-lo-ICI bridgo.
- -. Higlosl-numborod ICI bus on llo dovnslroam sido of
llo bridgo.
Bus Number Registers
-- .
Introduction
Iacl ICI-lo-ICI bridgo musl impIomonl llroo mandalory bus numbor rogislors.
AII of llom aro road/vrilabIo and aro cIoarod lo zoro by rosol. During configu-
ralion, llo configuralion soflvaro iniliaIizos lloso llroo rogislors lo assign bus
numbors. Tloso rogislors aro:
- llo Irimary Bus Numbor rogislor.
- llo Socondary Bus Numbor rogislor.
- llo Subordinalo Bus Numbor rogislor.
Tlo combinalion of llo Socondary and llo Subordinalo Bus Numbor rogislor
vaIuos dofinos llo rango of busos llal oxisls on llo dovnslroam sido of llo
bridgo. Tlo informalion suppIiod by lloso llroo rogislors is usod by llo bridgo
lo dolormino vlollor or nol lo pass a pacIol llrougl lo llo opposilo inlorfaco.
PCI Express System Architecture
806
Primary Bus Number Register
- . Iocalod in Hoador bylo zoro of dvord six.
Tlo Irimary Bus Numbor rogislor is iniliaIizod by soflvaro vill llo numbor of
llo bus llal is diroclIy connoclod lo llo bridgos primary inlorfaco. Tlis rogislor
oxisls for llroo roasons:
- -.
- -- -- - .
- - - -. A bridgo
llal connocls a ICI Ixpross IinI lo a ICI or ICI-X bus rocoivos a SpociaI
CycIo Roquosl (as dofinod in llo ICI spoc) on ils socondary inlorfaco. A Spo-
ciaI CycIo Roquosl is a roquosl lo porform a SpociaI CycIo lransaclion on llo
doslinalion ICI or ICI-X bus. Tlo roquosl laIos llo form of a Typo 1 Config-
uralion vrilo roquosl pacIol (soo Iiguro 20-8 on pago 734) vloroin llo dos-
linalion ID las llo foIIoving claraclorislics:
AII onos in llo Dovico Numbor and Iunclion Numbor fioIds, and
AII zoros in llo Rogislor Numbor and Ixlondod Rogislor Numbor fioIds.
If llo doslinalion bus numbor in llo roquosl pacIol malclos llo vaIuo in llo
Irimary Bus Numbor rogislor and llo ollor fioIds aro as slalod abovo, llo
roquosl is convorlod inlo a SpociaI CycIo lransaclion on llo primary bus and
llo vrilo dala is doIivorod as llo mossago in llo lransaclions Dala Ilaso.
If il doosnl malcl llo bridgos Irimary Bus Numbor rogislor and ils oul-
sido llo rango of busos dofinod by llo bridgos Socondary Bus Numbor and
Subordinalo Bus Numbor rogislors, llo bridgo accopls llo pacIol (llo largol
bus is nol on llo dovnslroam sido of llo bridgo and lloroforo il musl bo
passod upslroam). Tlo bridgo accopls llo pacIol and passos il lo ils oppo-
silo inlorfaco.
Secondary Bus Number Register
- . Iocalod in Hoador bylo ono of dvord six. Tlo
Socondary Bus Numbor rogislor is iniliaIizod by soflvaro vill llo numbor of
llo bus llal is diroclIy connoclod lo llo bridgos socondary inlorfaco. Tlis rogis-
lor oxisls for llroo roasons:
- Wlon a SpociaI CycIo Roquosl is Ialclod on llo primary sido, llo bridgo
usos llis rogislor (and, possibIy, llo Subordinalo Bus Numbor rogislor) lo
dolormino if il slouId bo passod lo llo bridgos socondary inlorfaco as oillor
a ICI SpociaI CycIo lransaclion (if llo bus connoclod lo llo socondary inlor-
faco is llo doslinalion ICI or ICI-X bus) or as is (i.o., as a Typo 1 configura-
lion vrilo roquosl pacIol).
Chapter 22: PCI Compatible Configuration Registers
807
- Wlon a Typo 1 Configuralion lransaclion (road or vrilo and nol a ICI Spo-
ciaI CycIo Roquosl) is Ialclod on llo primary sido, llo bridgo usos llis rogis-
lor (and, possibIy, llo Subordinalo Bus Numbor rogislor) lo dolormino if il
slouId bo passod lo llo bridgos socondary inlorfaco as oillor a Typo 0 con-
figuralion lransaclion (if llo bus connoclod lo llo socondary inlorfaco is llo
doslinalion ICI or ICI-X bus) or as is (i.o., as a Typo 1 configuralion vrilo
roquosl pacIol).
- Wlon a CompIolion pacIol is Ialclod on llo primary sido, llo bridgo usos
llis rogislor (and, possibIy, llo Subordinalo Bus Numbor rogislor) lo dolor-
mino if il slouId bo passod lo llo bridgos socondary inlorfaco.
Subordinate Bus Number Register
- . Iocalod in Hoador bylo lvo of dvord six.
Tlo Subordinalo Bus Numbor rogislor is iniliaIizod by soflvaro vill llo num-
bor of llo liglosl-numborod bus llal oxisls on llo dovnslroam sido of llo
bridgo. If lloro aro no ICI-lo-ICI bridgos on llo socondary bus, llo Subordinalo
Bus Numbor rogislor is iniliaIizod vill llo samo vaIuo as llo Socondary Bus
Numbor rogislor.
Bridge Routes ID Addressed Packets Using Bus Number
Registers
Wlon ono of llo bridgos inlorfacos Ialclos a CompIolion pacIol, an ID-roulod
Vondor-dofinod mossago, or a ICI SpociaI CycIo roquosl, il usos ils inlornaI bus
numbor rogislors lo docido vlollor or nol lo accopl llo pacIol and pass il lo llo
opposilo bridgo inlorfaco:
- Tlo rouling of ICI SpociaI CycIo roquosls vas doscribod in llo provious soc-
lions.
- Wlon llo bridgo Ialclos a CompIolion pacIol or an ID-roulod Vondor-
dofinod mossago on ils primary inlorfaco, il comparos llo Bus Numbor por-
lion of doslinalion ID lo ils Socondary Bus Numbor and Subordinalo Bus
Numbor rogislor vaIuos. If llo largol bus numbor faIIs villin llo rango of
busos dofinod by llo bridgos Socondary Bus Numbor and Subordinalo Bus
Numbor rogislors, llo bridgo accopls llo pacIol and passos il lo ils opposilo
inlorfaco.
- Wlon llo bridgo Ialclos a CompIolion pacIol or an ID-roulod Vondor-
dofinod mossago on ils socondary inlorfaco, il comparos llo Bus Numbor
porlion of llo doslinalion ID lo ils Irimary Bus Numbor rogislor.
If il malclos, llo bridgo accopls llo pacIol and passos il lo llo primary
inlorfaco.
If il doosnl malcl llo bridgos Irimary Bus Numbor rogislor and ils
oulsido llo rango of busos dofinod by llo bridgos Socondary Bus Num-
PCI Express System Architecture
808
bor and Subordinalo Bus Numbor rogislors, llo bridgo accopls llo
pacIol (llo largol bus is nol on llo dovnslroam sido of llo bridgo and
lloroforo il musl bo passod upslroam) and passos il lo ils primary inlor-
faco.
If llo doslinalion bus faIIs villin llo rango of busos dofinod by llo
bridgos Socondary Bus Numbor and Subordinalo Bus Numbor rogis-
lors, llon llo largol bus is on llo dovnslroam sido of llo bridgo. Tlo
bridgo lloroforo doos nol accopl llo pacIol.
- Tloso rogislors aro aIso usod lo roulo Typo 1 configuralion pacIols.
Vendor ID Register
- . Soo Vondor ID Rogislor on pago 773.
Device ID Register
- . Soo Dovico ID Rogislor on pago 773.
Revision ID Register
- . Soo Rovision ID Rogislor on pago 773.
CIass Code Register
- . Rofor lo Iiguro 22-2 on pago 775. Tlo CIass
fioId in llo CIass Codo rogislor of a VirluaI ICI-lo-ICI bridgo, or a ICI Ixpross
bridgo lo a ICI or ICI-X bus viII conlain llo vaIuo 06l (soo TabIo 22-1 on
pago 775), llo SubCIass fioId viII conlain llo vaIuo 04l (soo TabIo 8 on
pago 1023), and llo Irogramming Inlorfaco Bylo viII conlain 00l.
Header Type Register
- . Rofor lo Hoador Typo Rogislor on pago 777.
Tlo Hoador Typo fioId in llo Hoador Typo rogislor of a VirluaI ICI-lo-ICI
bridgo, or a ICI Ixpross bridgo lo a ICI or ICI-X bus viII bo 01l, lloroby indi-
caling llo rogislor Iayoul slovn in Iiguro 22-13 on pago 803.
Chapter 22: PCI Compatible Configuration Registers
809
BIST Register
- .Rofor lo BIST Rogislor on pago 778.
CapabiIities Pointer Register
- . Rofor lo CapabiIilios Ioinlor Rogislor on
pago 779.
Basic Transaction FiItering Mechanism
ICI dovicos llal rosido on llo dovnslroam sido of a ICI-lo-ICI bridgo may
incorporalo inlornaI momory (mappod inlo momory spaco) and/or an inlornaI,
dovico-spocific rogislor sol mappod inlo oillor IO or momory-mappod IO spaco.
Tlo configuralion program aulomalicaIIy dolocls llo prosonco, lypo and
addross spaco roquiromonls of lloso dovicos and aIIocalos spaco lo llom by pro-
gramming lloir addross docodors lo rocognizo llo addross rangos il assigns lo
llom.
Tlo configuralion program assigns aII IO dovicos llal rosido bolind a ICI-lo-
ICI bridgo muluaIIy-oxcIusivo addross rangos llal aro bIocIod logollor villin
a common ovoraII rango of IO Iocalions. Tlo ICI-lo-ICI bridgo is llon pro-
grammod lo pass any IO lransaclions doloclod on llo primary sido of llo bridgo
lo llo socondary sido if llo largol addross is villin llo rango associalod vill
llo communily of IO dovicos llal rosido bolind llo bridgo. ConvorsoIy, any IO
lransaclions doloclod on llo socondary sido of llo bridgo aro passod lo llo pri-
mary sido if llo largol addross is oulsido llo rango associalod vill llo commu-
nily of IO dovicos llal rosido on llo socondary sido (bocauso llo largol dovico
doosnl rosido on llo socondary sido, bul may rosido on llo primary sido).
AII momory-mappod IO dovicos (i.o., non-profolclabIo momory) llal rosido
bolind a ICI-lo-ICI bridgo aro assignod muluaIIy-oxcIusivo momory addross
rangos villin a common bIocI of momory Iocalions. Tlo ICI-lo-ICI bridgo is
llon programmod lo pass any momory-mappod IO lransaclions doloclod on llo
primary sido of llo bridgo lo llo socondary sido if llo largol addross is villin
llo rango associalod vill llo communily of momory-mappod IO dovicos llal
rosido bolind llo bridgo. ConvorsoIy, any momory-mappod IO lransaclions
doloclod on llo socondary sido of llo bridgo aro passod lo llo primary sido if
llo largol addross is oulsido llo rango associalod vill llo communily of mom-
PCI Express System Architecture
810
ory-mappod IO dovicos llal rosido on llo socondary sido (bocauso llo largol
dovico doosnl rosido on llo socondary sido, bul may rosido on llo primary
sido).
AII momory dovicos (i.o., roguIar momory, nol momory-mappod IO) llal rosido
bolind a ICI-lo-ICI bridgo aro assignod muluaIIy-oxcIusivo momory addross
rangos villin a common ovoraII rango of momory Iocalions. Tlo ICI-lo-ICI
bridgo is llon programmod lo pass any momory lransaclions doloclod on llo
primary sido of llo bridgo lo llo socondary sido if llo largol addross is villin
llo rango associalod vill llo communily of momory dovicos llal rosido bolind
llo bridgo. ConvorsoIy, any momory lransaclions doloclod on llo socondary
sido of llo bridgo aro passod lo llo primary sido if llo largol addross is oulsido
llo rango associalod vill llo communily of momory dovicos llal rosido on llo
socondary sido (bocauso llo largol dovico doosnl rosido on llo socondary sido,
bul may rosido on llo primary sido).
Tlo bridgo ilsoIf may incorporalo:
- a momory buffor.
- an IO rogislor sol llal is usod lo conlroI llo bridgo
- a dovico ROM llal conlains a dovico drivor for llo bridgo.
Tlo bridgo musl incorporalo programmabIo addross docodors for lloso dovicos.
Bridges Memory, Register Set and Device ROM
Introduction
A ICI-lo-ICI bridgo dosignor may clooso lo incorporalo llo foIIoving onlilios
villin llo bridgo:
- A sol of inlornaI, dovico-spocific rogislors llal aro usod lo conlroI llo
bridgos oporalionaI claraclorislics or clocI ils slalus. Tloso rogislors aro
oulsido llo scopo of llo ICI spocificalion.
- A momory buffor villin llo bridgo.
- A dovico ROM llal conlains a dovico drivor for llo bridgo.
Tlo rogislor sol musl bo mappod inlo momory or IO addross spaco (or boll).
Tlo dosignor impIomonls ono or lvo Baso Addross Rogislors (programmabIo
addross docodors) for llis purposo.
Chapter 22: PCI Compatible Configuration Registers
811
If lloro is a dovico ROM villin llo bridgo, llo dosignor musl impIomonl an
Ixpansion ROM baso addross rogislor usod by configuralion soflvaro lo map
llo ROM inlo momory spaco.
IiIoviso, if llo bridgo incorporalos a momory buffor, llo dosign musl incIudo a
Baso Addross Rogislor usod lo assign a baso addross lo llo momory.
Base Address Registers
- . -- - -
- - .
Iocalod in Hoador dvords four and fivo. If llo dosignor doosnl impIomonl any
inlornaI, dovico-spocific rogislor sol or momory, llon lloso addross docodors
aronl nocossary. Tloso Baso Addross Rogislors aro usod in llo samo mannor as
lloso doscribod for a non-bridgo ICI funclion (soo Baso Addross Rogislors on
pago 792). If impIomonlod, boll may bo impIomonlod as momory docodors,
boll as IO docodors, ono as momory and ono as IO, or onIy ono may bo impIo-
monlod as oillor IO or momory.
If a BAR is impIomonlod as a momory BAR vill llo profolclabIo bil sol lo ono,
il musl bo impIomonlod as a 64-bil momory BAR and vouId lloroforo consumo
boll dvords four and fivo.
Expansion ROM Base Address Register
- . -- -
- Iocalod in Hoador dvord 14. Tlis rogislor is oplionaI
(bocauso lloro may nol bo a dovico ROM incorporalod villin llo bridgo). Tlo
formal and usago of llis rogislor is procisoIy llo samo as llal doscribod for a
non-bridgo ICI funclion (soo Ixpansion ROM Baso Addross Rogislor on
pago 783).
Bridges IO FiIter
-- .
Introduction
- - - - -
. Ior llis roason, impIomonlalion of llo IO docodo-roIalod con-
figuralion rogislors is oplionaI.
PCI Express System Architecture
812
Wlon llo bridgo dolocls an IO lransaclion inilialod on oillor of ils bus inlor-
facos, il musl dolormino vlicl of llo foIIoving aclions lo laIo:
1. - bocauso llo largol IO addross isnl Iocalod on llo
ollor sido of llo bridgo, nor is il largoling an IO Iocalion omboddod villin
llo bridgo ilsoIf.
2. Wlon llo -- - - --, llo
Roquoslor is pormillod lo accoss llo largolod inlornaI rogislor and llo -
- -- .
3. llo largol IO Iocalion is Iocalod on llo ollor sido of llo bridgo, llo
- - -- and is inilialod on llo opposilo
bus.
Tlo oplionaI configuralion rogislors villin llo bridgo llal supporl llis fiIlor-
ing capabiIily aro:
- - -- --. If prosonl, llo Baso Addross Rogislor or rogislors
can bo dosignod as IO or momory docodors for an inlornaI rogislor sol or
momory.
- - --. If llo bridgo supporls IO spaco on llo
dovnslroam sido of llo bridgo, llo IO Baso rogislor dofinos llo slarl addross
and llo IO Iimil rogislor dofinos llo ond addross of llo rango lo rocognizo
and pass llrougl lo llo socondary bus.
- - -- (IO Baso Uppor 16-Bils and IO Iimil Uppor 16-Bils
rogislors). If llo bridgo supporls a 4GB (rallor llan a 64KB) IO addross
spaco on llo dovnslroam sido of llo bridgo (as indicalod in llo IO Baso and
IO Iimil rogislors), llo combinalion of llo IO Baso and llo IO Baso Uppor
16 Bils rogislors dofino llo slarl addross, and llo combinalion of llo IO
Iimil and llo IO Iimil Uppor 16-Bils rogislors dofino llo ond addross of llo
rango lo rocognizo and pass lo llo socondary sido.
Tlo soclions llal foIIov doscribo oacl of lloso sconarios.
Bridge Doesnt Support Any IO Space Behind Bridge
Assumo llal a bridgo doosnl supporl any dovicos llal rosido in IO spaco on llo
dovnslroam sido of llo bridgo. In ollor vords, il doosnl rocognizo any IO
addrossos as boing impIomonlod bolind llo bridgo and lloroforo ignoros aII IO
lransaclions doloclod on ils primary bus. In llis caso, llo bridgo dosignor doos
nol impIomonl llo oplionaI IO Baso, IO Iimil, or IO Ixlonsion rogislors (i.o., IO
Baso Uppor 16-bils and IO Iimil Uppor 16-Bils rogislors).
Tlo bridgo ignoros aII IO roquosl pacIols doloclod on llo primary bus (ollor
llan lransaclions llal may largol an oplionaI sol of bridgo-spocific rogislors con-
lainod villin llo bridgo ilsoIf).
Chapter 22: PCI Compatible Configuration Registers
813
Any IO lransaclions doloclod on llo bridgos socondary bus vouId bo cIaimod
and passod llrougl lo llo primary bus in caso llo largol IO dovico is impIo-
monlod somovloro upslroam of llo bridgo.
Bridge Supports 64KB IO Space Behind Bridge
Assumo llal a bridgo is dosignod lo supporl IO lransaclions inilialod on llo pri-
mary bus llal may largol Iocalions villin llo firsl 64KB of IO spaco (IO Ioca-
lions 00000000l llrougl 0000IIIIl) on llo socondary sido of llo bridgo. Il
ignoros any primary sido IO accossos ovor llo 64KB addross boundary. In ollor
vords, llo bridgo supporls a 64KB IO spaco, bul nol a 4GB IO spaco on llo soc-
ondary sido of llo bridgo.
In llis caso, llo bridgo dosignor musl impIomonl llo IO Baso and llo IO Iimil
rogislors, bul doos nol impIomonl llo IO Ixlonsion rogislors (i.o., llo IO Baso
Uppor 16-Bils and llo IO Iimil Uppor 16-Bils rogislors).
Tlo IO Baso and IO Iimil rogislor pair compriso llo gIobaI IO addross docodor
for aII IO largols llal rosido on llo socondary sido of llo bridgo:
1. Boforo llo rogislors aro iniliaIizod by llo configuralion soflvaro, lloy aro
firsl road from lo dolormino vlollor lloy supporl 64KB or a 4GB of IO
spaco on llo socondary sido of llo bridgo. In llis sconario, assumo llal llo
rogislors aro lardvirod lo indicalo llal llo bridgo onIy supporls a 64KB IO
spaco.
2. Tlo configuralion soflvaro llon vaIIs llo socondary bus (and any subordi-
nalo busos il discovors) and assigns lo oacl IO docodor il discovors an
oxcIusivo IO addross rango villin llo firsl 64KB of IO spaco. Tlo sub-
rangos assignod lo llo dovicos aro assignod in soquonliaI bIocIs lo maIo
officionl uso of IO spaco.
3. Tlo IO Baso and Iimil rogislor pair aro llon iniliaIizod by llo slarlup con-
figuralion soflvaro vill llo slarl and ond addross of llo IO rango llal aII
IO dovicos llal voro discovorod bolind llo bridgo (on llo socondary and
on any subordinalo busos) lavo boon programmod lo rosido villin. In llis
caso, sinco llo bridgo onIy supporls llo firsl 64KB of IO spaco, llo dofinod
rango viII bo a subsol of llo firsl 64KB of IO spaco.
4. Aflor lloy lavo boon iniliaIizod, lloso lvo rogislors provido llo bridgo vill
llo slarl and llo ond addross of llo IO addross rango lo rocognizo. Aflor
lloy lavo boon iniliaIizod, lloso lvo rogislors provido llo bridgo vill llo
slarl and llo ond addross of llo IO addross rango lo rocognizo for passing
IO lransaclions llrougl llo bridgo.
PCI Express System Architecture
814
Tlo bridgo onIy supporls llo Iovor 64KB of IO spaco, bul llo IO addross
docodor comprisod of llo IO Baso and Iimil rogislors musl porform a fuII IO
addross docodo of addross bils |31:2] lo dolormino vlollor or nol lo accopl an
IO accoss on llo primary bus and pass il lo llo socondary bus.
Tlo formal of llo IO Baso and IO Iimil rogislors aro iIIuslralod in Iiguro 22-14
on pago 815 and Iiguro 22-15 on pago 815. Boll rogislors lavo llo samo formal:
- llo uppor lox digil, bils |7:4], dofinos llo mosl-significanl lox digil of a 16-
bil IO addross,
- llo Iovor lox digil, bils |3:0], dofinos vlollor llo bridgo porforms a 16-bil
or 32-bil IO addross docodo.
In llo sconario undor discussion, llo Iovor lox digil of boll rogislors is lard-
virod vill llo vaIuo 0l, indicaling llal il porforms a 16-bil IO addross docodo
and lloroforo onIy supporls addrossos villin llo firsl 64KB of IO spaco.
Assumo llal llo configuralion soflvaro programs llo uppor digil of llo IO Baso
rogislor vill llo vaIuo 2l and llo uppor digil of llo IO Iimil rogislor vill llo
vaIuo 3l. Tlis indicalos llal llo slarl of llo IO rango lo rocognizo is 2000l and
llo ond addross is 3IIIlan 8KB bIocI. As anollor oxampIo, assumo llal llo
uppor digil in llo baso and Iimil rogislors aro boll sol lo 3l. Tlo IO addross
rango lo rocognizo is llon 3000l llrougl 3IIIla 4KB bIocI. In ollor vords,
llis rogislor pair dofinos llo slarl addross aIignod on a 4KB addross boundary,
and llo sizo, aIso roforrod lo as llo granuIarily, of llo dofinod bIocI is in incro-
monls of 4KB.
Il slouId bo nolod llal, if lloro aronl any IO dovicos on llo bridgos socondary
sido, llo IO Iimil rogislor can bo programmod vill a numoricaIIy Iovor IO
addross llan llo IO Baso rogislor. Tlo bridgo viII nol pass any IO lransaclions
Ialclod on llo primary sido llrougl lo llo socondary sido, bul viII pass any IO
lransaclions Ialclod on llo socondary sido llrougl lo llo primary sido.
Chapter 22: PCI Compatible Configuration Registers
815
- -
-
PCI Express System Architecture
816
. Assumo llal llo IO baso is sol lo 2l and llo IO Iimil is sol lo 3l. Tlo
bridgo is nov primod lo rocognizo any IO lransaclion on llo primary bus llal largols
an IO addross villin llo rango consisling of 2000l llrougl 3IIIl. Rofor lo Iiguro 22-
16 on pago 817.
Anylimo llal llo bridgo dolocls an IO lransaclion on llo primary bus vill an addross
insido llo 2000l llrougl 3IIIl rango, il accopls llo lransaclion and passos il llrougl
(bocauso ils villin llo rango dofinod by llo IO Baso and Iimil rogislors and may
lloroforo bo for an IO dovico llal rosidos bolind llo bridgo).
Anylimo llal llo bridgo dolocls an IO lransaclion on llo primary bus vill an addross
oulsido llo 2000l llrougl 3IIIl rango, il ignoros llo lransaclion (bocauso llo largol
IO addross is oulsido llo rango of addrossos assignod lo IO dovicos llal rosido bolind
llo bridgo).
Anylimo llal llo bridgo dolocls an IO lransaclion on llo socondary bus vill an
addross insido llo 2000l llrougl 3IIIl rango, il ignoros llo lransaclion (bocauso llo
largol addross faIIs villin llo rango assignod lo IO dovicos llal rosido on llo socond-
ary sido of llo bridgo).
Anylimo llal llo bridgo dolocls an IO lransaclion on llo socondary bus vill an
addross oulsido llo 2000l llrougl 3IIIl rango, il accopls llo lransaclion and passos
il llrougl lo llo primary sido (bocauso llo largol addross faIIs oulsido llo rango
assignod lo IO dovicos llal rosido on llo socondary sido of llo bridgo, bul il may bo
for an IO dovico on llo primary sido).
Chapter 22: PCI Compatible Configuration Registers
817
Bridge Supports 4GB IO Space Behind Bridge
Assumo a bridgo is dosignod lo rocognizo IO lransaclions inilialod on llo pri-
mary bus llal largol Iocalions anyvloro villin 4GB of IO spaco (IO Iocalions
00000000l llrougl IIIIIIIIl) on llo dovnslroam sido of llo bridgo.
In llis caso, in addilion lo llo IO Baso and llo IO Iimil rogislors, llo bridgo
dosignor musl aIso impIomonl llo IO Ixlonsion rogislorsIO Baso Uppor 16-
bils and llo IO Iimil Uppor 16-bils rogislors:
-
PCI Express System Architecture
818
- Tlo IO Baso rogislor is iniliaIizod vill llo fourll digil of llo 32-bil slarl IO
addross.
- Tlo IO Baso Uppor 16 bils rogislor is iniliaIizod vill llo fifll llrougl llo
oigll digils of llo 32-bil slarl addross of llo rango.
- Tlo IO Iimil rogislor is iniliaIizod vill llo fourll digil of llo 32-bil ond IO
addross.
- Tlo IO Iimil Uppor 16 bils rogislor is iniliaIizod vill llo fifll llrougl
oiglll digils of llo 32-bil ond addross of llo rango.
Tlo IO Baso and IO Iimil rogislor pair compriso an IO addross docodor. Tloy
aro usod as foIIovs:
1. Boforo llo rogislors aro iniliaIizod by llo configuralion soflvaro, lloy aro
road from lo dolormino if lloy aro capabIo of supporling a 64KB or a 4GB IO
addross spaco bolind llo bridgo. In llis sconario, llo Addross Docodo Typo
fioId (soo Iiguro 22-14 on pago 815) villin oacl of llo rogislors is lardvirod
(vill a vaIuo of 1l) lo indicalo llal a 4GB IO spaco is supporlod on llo soc-
ondary sido.
2. Tlo configuralion soflvaro llan vaIIs llo socondary bus (and any subordi-
nalo busos il discovors bonoall llo socondary bus) and assigns oacl IO
dovico llal il discovors an oxcIusivo IO addross rango villin llo 4GB IO
spaco. Tlo sub-rangos assignod lo llo dovicos aro assignod in soquonliaI
bIocIs lo maIo officionl uso of IO spaco.
3. Tlo IO Baso and IO Baso Ixlonsion (i.o., llo IO Baso Uppor 16-bils) rogislor
pair is llon iniliaIizod by llo slarlup configuralion soflvaro vill llo uppor
fivo digils of llo 4KB-aIignod, 32-bil slarl addross of llo IO rango llal aII IO
dovicos llal voro discovorod bolind llo bridgo (on llo socondary and on
any subordinalo busos) lavo boon programmod lo rosido villin.
4. Tlo IO Iimil and IO Iimil Ixlonsion (i.o., llo IO Iimil Uppor 16 bils) rogis-
lor pair is iniliaIizod vill llo 4KB-aIignod ond addross of llo rango llal llo
dovicos occupy.
In llo sconario undor discussion, sinco llo bridgo supporls llo onliro 4GB IO
spaco, llo dofinod rango is a subsol of llo ovoraII 4GB IO spaco. Aflor lloy lavo
boon iniliaIizod, lloso four rogislors provido llo bridgo vill llo slarl and llo
ond addross of llo IO addross rango lo rocognizo.
Sinco llo bridgo supporls llo onliro 4GB IO spaco, llo IO addross docodor com-
prisod of llo four rogislors (Baso and Iimil rogislors pIus lloir Ixlonsion rogis-
lors) porforms an IO addross docodo villin addross bils |31:12] lo dolormino
vlollor or nol lo pass an IO accoss doloclod on llo primary bus llrougl lo llo
socondary bus and vico vorsa.
Chapter 22: PCI Compatible Configuration Registers
819
Tlo formal of llo IO Baso and IO Iimil rogislors vas iIIuslralod oarIior in Iiguro
22-14 on pago 815 and Iiguro 22-15 on pago 815. In llo sconario undor discus-
sion, llo Iovor lox digil of llo Baso and Iimil rogislors is lardvirod vill llo
vaIuo 1l, indicaling a 32-bil IO addross docodo, supporling addross rocognilion
villin llo onliro 4GB IO spaco. SimpIy pul, llo IO Baso and IO Iimil Uppor 16-
bils rogislors aro usod lo loId llo uppor four digils of llo slarl and ond IO
addross boundarios, rospoclivoIy.
Assumo llal llo configuralion soflvaro programs llo rogislors as foIIovs:
- Uppor digil of llo IO Baso = 2l.
- IO Baso Uppor 16-bils rogislor = 1234l.
- Uppor digil of llo IO Iimil rogislor = 3l.
- IO Iimil Uppor 16-bils rogislor = 1235l.
Tlis indicalos a 72KB rango consisling of:
- slarl of IO rango = 12342000l
- ond addross = 12353IIIl.
As anollor oxampIo, assumo llo foIIoving:
- Uppor digil of llo IO Baso = 3l.
- IO Baso Uppor 16-bils rogislor = 1234l.
- Uppor digil of llo IO Iimil rogislor = 3l.
- IO Iimil Uppor 16-bils rogislor = 1234l.
Tlis indicalos a 4KB rango consisling of:
- slarl of IO rango = 12343000l
- ond addross = 12343IIIl.
In ollor vords, llo four rogislors dofino llo slarl addross aIignod on a 4KB
addross boundary, and llo sizo of llo dofinod bIocI is an incromonl of 4KB.
Bridges PrefetchabIe Memory FiIter
- .
-- - - -
- - -
- - - -- -
PCI Express System Architecture
820
- - -
Wlon a ICI bus maslor inilialos a momory road lransaclion, il
issuos llo slarl momory addross bul doos nol indicalo lov mucl dala is lo
bo road. Tlo onIy oxcoplion is a singIo Dala Ilaso momory road. In llal
caso, llo lolaI amounl of dala lo bo road is roprosonlod by llo Bylo InabIos
llal aro prosonlod in llal Dala Ilaso.
Wlon llo dovico acling as llo largol on llo inilialing bus rocoivos llo lrans-
aclion roquosl, llo mannor in vlicl llo roquosl is landIod doponds on llo
dovico lypo (bridgo or uIlimalo momory largol), as voII as llo lransaclion
lypo usod by llo bus maslor:
- - - :
- , llon llo
largol may porform inlornaI profolclos (i.o., road-aloads) and
quouo up dala lo bo suppIiod lo llo roquoslor if llo lransaclion
onds up asIing for llo dala. Tlis is lo onlanco porformanco. If llo
lransaclion onds villoul aII of llo profolclod dala boing asIod for,
llo romaining dala in llo largols road-aload buffor slouId bo dis-
cardod (unIoss llo largol can guaranloo llo conlinuod froslnoss of
llo dala).
- (o.g., ils a momory-
mappod IO rogislor sol), llon llo momory largol musl vail unliI llo
Bylo InabIos aro prosonlod in oacl Dala Ilaso and onIy road and
suppIy llo roquoslod bylos. No profolcling is pormillod.
- - - ,
llo bridgo Ialclos llo roquosl and issuos a Rolry lo llo inilialing maslor:
- - , lloro aro lvo possibiIi-
lios:
If llo momory addross is -
, llo bridgo may lurn llo road inlo a bursl road
vlon il inilialos llo roquosl on llo ollor sido of llo bridgo and
profolcl dala inlo a bridgo buffor. Wlon llo originaI maslor
llon rolrios llo lransaclion, llo bridgo sourcos dala from llo
fasl road-aload buffor yioIding bollor porformanco. If llo mas-
lor uIlimaloIy doosnl consumo aII of llo dala, il is discardod by
llo bridgo.
- (o.g., ils a mom-
ory-mappod IO rogislor sol), llon no profolcling by llo bridgo
is pormillod vlon il ro-inilialos llo road on llo opposilo sido of
llo bridgo.
Chapter 22: PCI Compatible Configuration Registers
821
- - llis loIIs
llo bridgo llal llo maslor las spocific InovIodgo llal llo momory
rango from llo lransaclions slarl addross up lo llo ond of llo
addrossod Iino of momory spaco is profolclabIo momory. Ivon if
llo bridgos profolclabIo momory rango rogislors indicalo llis is
nol profolclabIo momory, llo bridgo may lurn llo road inlo a bursl
road vlon il inilialos llo roquosl on llo ollor sido of llo bridgo and
profolcl dala up lo llo ond of llo curronl Iino inlo a bridgo buffor.
Wlon llo originaI maslor llon rolrios llo lransaclion, llo bridgo
sourcos dala from llo fasl road-aload buffor yioIding bollor porfor-
manco. If llo maslor uIlimaloIy doosnl consumo aII of llo dala, il is
discardod by llo bridgo.
- - llis
loIIs llo bridgo llal llo maslor las spocific InovIodgo llal llo
momory rango from llo lransaclions slarl addross and up lo llo
ond of llo Iino immodialoIy foIIoving llo addrossod Iino of mom-
ory spaco is profolclabIo momory. Ivon if llo bridgos profolclabIo
momory rango rogislors indicalo llis is nol profolclabIo momory,
llo bridgo may lurn llo road inlo a bursl road vlon il inilialos llo
roquosl on llo ollor sido of llo bridgo and profolcl dala across
caclo Iino boundarios inlo a bridgo buffor. Wlon llo originaI mas-
lor llon rolrios llo lransaclion, llo bridgo sourcos dala from llo fasl
road-aload buffor yioIding bollor porformanco. If llo maslor uIli-
maloIy doosnl consumo aII of llo dala, il is discardod by llo
bridgo.
-- Wlon a ICI Ixpross Roquoslor issuos a momory road
roquosl, il indicalos llo oxacl amounl of dala il vislos lo road:
- Tlo Iirsl DW Bylo InabIo fioId in llo roquosl pacIol loador indicalos
llo bylo(s) lo bo road from llo firsl dvord.
- Tlo Iongll fioId in llo roquosl pacIol loador indicalos llo ovoraII num-
bor of dvords in llo lransfor.
- Tlo Iasl DW Bylo InabIo fioId in llo roquosl pacIol loador indicalos
llo bylo(s) lo bo road from llo Iasl dvord.
Sinco llo oxacl amounl of roquoslod dala is Inovn al llo onsol of a momory
road roquosl, lloro is no roason for profolcling lo acliovo bollor porfor-
manco (as lloro is in ICI).
PCI Express System Architecture
822
- Tlo foIIoving Ixpross
spoc 1.0a roforoncos roprosonl aII of ils roforoncos lo profolcling:
- Iago 33, Iino 5: A ICI Ixpross Indpoinl roquosling momory rosourcos
llrougl a BAR musl sol llo BARs IrofolclabIo bil unIoss llo rango
conlains Iocalions vill road sido-offocls or Iocalions in vlicl llo
dovico doos nol loIoralo vrilo morging.
- Iago 33, Iino 8: Ior a ICI Ixpross Indpoinl, 64-bil addrossing musl bo
supporlod for aII BARs llal lavo llo profolclabIo bil sol. 32-bil addross-
ing is pormillod for aII BARs llal do nol lavo llo profolclabIo bil sol.
- Iago 52, Iino 13: Ior oacl bil of llo Bylo InabIos fioIds: a vaIuo of 0b
indicalos llal llo corrosponding bylo of dala musl nol bo vrillon or, if
non profolclabIo, musl nol bo road al llo CompIolor.
- Iago 54, Iino 9: Tlis is roaIIy jusl a spocific caso of llo ruIo llal in a
non-profolclabIo spaco, non-onabIod bylos musl nol bo road al llo
CompIolor.
- Iago 265, Iino 26: Ior oxampIo, if a Road is issuod lo profolclabIo mom-
ory spaco and llo CompIolion rolurns vill a Unsupporlod Roquosl
CompIolion Slalus, porlaps duo lo a lomporary condilion, llo inilialor
may clooso lo roissuo llo Road Roquosl villoul sido offocls.
- Iago 326, Iino 5: A ICI Ixpross Indpoinl roquosling momory
rosourcos llrougl a BAR musl sol llo BAR's IrofolclabIo bil unIoss llo
rango conlains Iocalions vill road sido-offocls or Iocalions in vlicl llo
dovico doos nol loIoralo vrilo morging. Il is slrongIy oncouragod llal
momory-mappod rosourcos bo dosignod as profolclabIo vlonovor pos-
sibIo. ICI Ixpross dovicos ollor llan Iogacy Indpoinls musl supporl
64-bil addrossing for any Baso Addross rogislor llal roquosls profolcl-
abIo momory rosourcos.
- Iago 328, Iino 1: A ICI Ixpross Indpoinl roquosling momory
rosourcos llrougl a BAR musl sol llo BAR's IrofolclabIo bil unIoss llo
rango conlains Iocalions vill road sido-offocls or Iocalions in vlicl llo
dovico doos nol loIoralo vrilo morging. Il is slrongIy oncouragod llal
momory-mappod rosourcos bo dosignod as profolclabIo vlonovor pos-
sibIo. ICI Ixpross dovicos ollor llan Iogacy Indpoinls musl supporl
64-bil addrossing for any Baso Addross rogislor llal roquosls profolcl-
abIo momory rosourcos.
- Iago 329: Tlo IrofolclabIo Momory Baso and IrofolclabIo Momory
Iimil rogislors musl indicalo llal 64-bil addrossos aro supporlod, as
dofinod in ICI Bridgo 1.1. - - -
- -- - -
- -- --
- --
Chapter 22: PCI Compatible Configuration Registers
823
Characteristics of PrefetchabIe Memory Devices
- -- -
- --
-- - -
- - - Tlo ICI-lo-ICI bridgo spocificalion rocognizos
llo facl llal vliIo boll groups aro mappod inlo momory addross spaco, mom-
ory dovicos and momory-mappod IO dovicos can lavo dislinclIy difforonl opor-
alionaI claraclorislics.
An oplionaI sol of rogislors aro providod in llo bridgos configuralion spaco llal
pormil llo configuralion soflvaro lo dofino llo slarl and ond addross of llo
profolclabIo momory spaco llal is occupiod by voII-bolavod momory dovicos
bolind llo bridgo. A mandalory rogislor pair pormils llo configuralion sofl-
varo lo dofino llo slarl and ond addross of llo momory-mappod IO spaco llal
is occupiod by voII-bolavod momory dovicos bolind llo bridgo.
- A voII-bolavod momory dovico
aIvays rolurns llo samo dala from a Iocalion no mallor lov many limos llo
Iocalion is road from. In ollor vords, roading from a momory dovico
doosnl in any vay aIlor llo conlonls of momory. Tlis is ono of llo clarac-
lorislics of a profolclabIo momory largol.
- A bridgo incor-
poralos a poslod-vrilo buffor llal quicIIy absorbs dala lo bo vrillon lo a
momory dovico on llo ollor sido of llo bridgo. Sinco llo inilialing
Roquoslor is abIo lo immodialoIy compIolo a momory vrilo and doosnl
lavo lo doIay unliI llo vrilo lo llo momory dovico las acluaIIy boon com-
pIolod, posling yioIds bollor porformanco during momory vrilo oporalions.
Tlo bridgo vouId onsuro llal, boforo any subsoquonl momory road is por-
millod lo propagalo llrougl llo bridgo, llo bridgo vouId fIusl ils poslod-
vrilo buffor lo llo momory dovico. Bylo morging is pormillod in a bridgos
poslod momory vrilo buffor vlon landIing vrilos lo profolclabIo momory
(for moro informalion, rofor lo Bylo Morging on pago 801).
Characteristics of Memory-Mapped IO Devices
Momory-mappod IO dovicos oxlibil a difforonl sol of oporalionaI claracloris-
lics.
PCI Express System Architecture
824
-- Iorforming a momory road from a momory-
mappod IO Iocalion oflon las llo offocl of aIloring llo conlonls of llo Ioca-
lion. As oxampIos, ono of llo foIIoving may bo lruo:
- Tlo Iocalion may bo occupiod by a momory-mappod IO slalus porl.
Roading from llo Iocalion causos llo IO dovico lo doassorl any slalus
bils llal voro sol in llo rogislor (on llo assumplion llal lloyvo boon
road and viII lloroforo bo doaIl vill by llo dovico drivor). If llo road
vas causod by a profolcl and llo profolclod dala is novor acluaIIy road
by llo dovico drivor, llon slalus informalion las jusl boon discardod.
- Tlo Iocalion may bo llo fronl-ond of a IIIO dala buffor. Iorforming a
road from llo Iocalion causos llo doIivory of ils curronl conlonls and
llo noxl dala ilom is llon aulomalicaIIy pIacod in llo Iocalion by llo IO
dovico. Tlo dovico assumos llal llo firsl dala ilom las jusl boon road by
llo dovico drivor and sols up llo noxl dala ilom in llo IIIO Iocalion. If
llo road vas causod by a profolcl and llo profolclod dala is novor aclu-
aIIy road by llo dovico drivor, llon llo dala las jusl boon discardod.
Roads villin an aroa of momory spaco occupiod by momory-mappod IO
dovicos musl novor rosuIl in profolcling by a bridgo. A mandalory sol of
rogislors aro providod llal pormil llo configuralion soflvaro lo dofino llo
slarl and ond addross of llo momory spaco llal is occupiod by momory-
mappod IO dovicos llal rosido on llo bridgos socondary sido.
-- Soo Bylo Morging on pago 801.
Determining If Memory Is PrefetchabIe or Not
Tlo configuralion soflvaro dolorminos llal a momory largol supporls profolcl-
ing by losling llo slalo of llo allribulo bil in llo momory largols
Baso Addross Rogislor (soo Baso Addross Rogislors on pago 792 and
IrofolclabIo Allribulo Bil on pago 795).
- IrofolclabIo = 1 indicalos llal llo momory is profolclabIo. Tlo momory lar-
gol musl bo mappod inlo IrofolclabIo momory spaco using llo bridgos
IrofolclabIo Baso and Iimil configuralion rogislors ( if lloy aro impIo-
monlod).
- IrofolclabIo = 0 indicalos llal ils nol. In llis caso, llo momory largol musl
bo mappod inlo momory-mappod IO spaco using llo Momory Baso and
Iimil rogislors.
Chapter 22: PCI Compatible Configuration Registers
825
Bridge Support For Downstream PrefetchabIe Memory Is
OptionaI
If llo bridgo doos nol supporl IrofolclabIo momory on ils socondary sido, llo
IrofolclabIo Momory Baso and Iimil rogislors musl bo impIomonlod as road-
onIy rogislors llal rolurn zoro vlon road, and llo IrofolclabIo Momory Baso
and IrofolclabIo Momory Iimil rogislors aro nol impIomonlod.
Must Support > 4GB PrefetchabIe Memory On Secondary Side
Wlollor or nol a bridgo supporls profolclabIo momory on llo bridgos dovn-
slroam sido is oplionaI. If llo dosignor cloosos lo supporl llis capabiIily, llon
llo foIIoving rogislors musl bo impIomonlod lo dofino llo slarl and ond addross
of llo momory rango occupiod by profolclabIo momory dovicos on llo dovn-
slroam sido of llo bridgo:
- IrofolclabIo Momory Baso rogislor.
- IrofolclabIo Momory Iimil rogislor.
Tloso lvo rogislors aro usod lo dofino llo slarl (baso) and ond (Iimil) addross of
llo momory rango and aro iIIuslralod in Iiguro 22-17 on pago 827 and Iiguro 22-
18 on pago 828. Any addross villin llo Iovor 4GB can bo spocifiod. Tlo slarl
addross is 1MB-aIignod and llo sizo of llo rango is spocifiod in 1MB incromonls.
Tlo Ixpross spoc slalos llal aII momory BARs for profolclabIo momory musl bo
impIomonlod as 64-bil rogislors (soo Iiguro 22-11 on pago 797). To supporl llis,
llo oxlonsions lo Baso and Iimil rogislors musl aIso bo impIomonlod:
- IrofolclabIo Momory Baso Uppor 32-bils rogislor.
- IrofolclabIo Momory Iimil Uppor 32-bils rogislor.
Tlo 4-bil Addross Docodo Typo fioId in llo Baso and Iimil rogislors is lard-
virod lo indicalo llal llo oxlonsion rogislors aro prosonl.
Tlo configuralion soflvaro vaIIs llo socondary bus and any busos subordinalo
lo llo bridgo and assigns oacl IrofolclabIo momory largol a sub-rango in a gIo-
baI ovoraII rango villin llo 2
64
momory spaco. Aflor compIoling llo addross
assignmonl procoss, llo soflvaro llon vrilos llo uppor oigll lox digils of llo
rangos 64-bil slarl addross inlo llo IrofolclabIo Momory Baso Uppor rogislor
and llo noxl llroo lox digils inlo llo uppor llroo digils of llo Baso rogislor. Tlo
uppor oigll lox digils of llo rangos 64-bil ond addross is vrillon inlo llo
IrofolclabIo Momory Iimil Uppor rogislor and llo noxl llroo lox digils inlo llo
uppor llroo digils of llo Iimil rogislor.
PCI Express System Architecture
826
As an oxampIo, assumo llal lloso four rogislors aro sol as foIIovs:
- II00000l is vrillon inlo llo IrofolclabIo Momory Baso Uppor 32-bils rogis-
lor.
- 123l is vrillon inlo llo uppor llroo digils of llo Baso rogislor.
- II000000l is vrillon inlo IrofolclabIo Momory Iimil Uppor 32-bils rogislor.
- 124l is vrillon inlo llo uppor llroo digils of llo Iimil rogislor.
Tlis dofinos llo IrofolclabIo momory addross rango as llo 2MB rango from
II00000012300000l llrougl II000000124IIIIIl. As anollor oxampIo, assumo
lloy aro programmod as foIIovs:
- 00000230l is vrillon inlo llo IrofolclabIo Momory Baso Uppor 32-bils rog-
islor.
- 222l vrillon inlo llo uppor llroo digils of llo Baso rogislor.
- 00000230l is vrillon inlo IrofolclabIo Momory Iimil Uppor 32-bils rogislor.
- 222l vrillon inlo llo uppor llroo digils of llo Iimil rogislor.
Tlis dofinos llo IrofolclabIo momory addross rango as llo 1MB rango from
0000023022200000l llrougl 00000230222IIIIIl.
Chapter 22: PCI Compatible Configuration Registers
827
- -
PCI Express System Architecture
828
-
Chapter 22: PCI Compatible Configuration Registers
829
RuIes for Bridge PrefetchabIe Memory Accesses
Tlo foIIoving ruIos appIy lo IrofolclabIo momory:
1. Bridgo supporl for IrofolclabIo momory on ils socondary sido is oplionaI.
2. If llo bridgo doos nol supporl IrofolclabIo momory on ils socondary sido,
llo IrofolclabIo Momory Baso and Iimil rogislors musl bo impIomonlod as
road-onIy rogislors llal rolurn zoro vlon road.
3. If llo bridgo doos supporl profolclabIo momory on ils dovnslroam sido, il
musl impIomonl llo IrofolclabIo Momory Baso and Iimil rogislors, as voII
as llo IrofolclabIo Momory Baso and Iimil Uppor 32-bils rogislors (as indi-
calod by lardviring llo firsl digil in llo Baso and Iimil rogislors lo a vaIuo
of 1l).
4. Momory lransaclions aro forvardod from llo primary lo llo socondary bus
if llo addross is villin llo rango dofinod by llo IrofolclabIo Momory Baso
and Iimil rogislors or llal dofinod by llo Momory Baso and Iimil rogislors
(for momory-mappod IO).
5. Momory lransaclions aro forvardod from llo socondary lo llo primary bus
vlon llo addross is oulsido llo rangos dofinod by llo oxlondod Irofolcl-
abIo Momory Baso and Iimil rogislors and llo Momory Baso and Iimil rog-
islors (for momory-mappod IO).
6. Wlon 2
64
momory is supporlod on llo dovnslroam sido of llo bridgo,
lransaclions largoling addrossos villin llo addross rango spocifiod by llo
IrofolclabIo Momory Baso and Iimil rogislors (and lloir oxlonsions) aro
pormillod lo cross llo 4GB boundary.
7. Tlo bridgo dosignor musl supporl momory accoss roquosls abovo llo 4GB
addross boundary rocoivod by ils dovnslroam inlorfaco. Irior lo llo 1.1
ICI-lo-ICI bridgo spoc, il vas oplionaI on boll sidos. Tlis vas clangod lo
onsuro llal Roquoslors on llo socondary sido can accoss main momory
abovo llo 4GB addross boundary.
8. Assumo llal llo bridgo supporls IrofolclabIo momory anyvloro in 2
64
momory spaco on llo dovnslroam sido, bul llo configuralion soflvaro
maps aII IrofolclabIo momory bolind llo bridgo boIov llo 4GB boundary.
In llis caso, llo uppor oxlonsions of llo IrofolclabIo Baso and Iimil rogis-
lors musl bo sol lo zoro and llo bridgo doos nol rospond lo momory accoss
roquosls abovo llo 4GB addross boundary rocoivod on llo upslroam inlor-
faco. Tloso rocoivod by llo bridgos dovnslroam inlorfaco vouId bo passod
lo llo upslroam inlorfaco (in caso llo Roquoslor is addrossing main momory
abovo llo 4GB boundary).
9. Assumo llal llo bridgo supporls IrofolclabIo momory anyvloro in 2
64
momory spaco on llo dovnslroam sido and llal llo configuralion soflvaro
maps aII IrofolclabIo momory on llo dovnslroam sido abovo llo 4GB
PCI Express System Architecture
830
boundary. In llis caso, llo uppor oxlonsions of llo IrofolclabIo Baso and
Iimil rogislors conlain non-zoro vaIuos and llo bridgo rosponds onIy lo
profolclabIo momory accoss roquosls rocoivod on ils upslroam inlorfaco llal
aro abovo llo 4GB addross boundary and villin llo dofinod profolclabIo
momory addross rango.
10. Assumo llal llo bridgo supporls IrofolclabIo momory anyvloro in 2
64
momory spaco bolind llo bridgo and llal llo configuralion soflvaro maps
llo IrofolclabIo momory on llo bridgos dovnslroam sido inlo a spaco llal
slraddIos llo 4GB boundary. In llis caso, llo oxlonsion lo llo IrofolclabIo
Baso rogislor is sol lo zoro and llo oxlonsion lo llo Iimil rogislor conlains a
non-zoro vaIuo. Wlon a momory roquosl vill an addross boIov llo 4GB
boundary is doloclod on oillor inlorfaco, llo bridgo comparos llo addross
onIy lo llo IrofolclabIo Momory Baso rogislor. If llo addross is llo slarl
addross spocifiod in llo rogislor, llo addross is in rango. Wlon a momory
roquosl vill an addross abovo llo 4GB boundary is doloclod on oillor inlor-
faco, llo bridgo comparos llo Iovor 32-bils of llo addross lo llo Iimil rogis-
lor and llo Uppor 32-bils of llo addross lo llo Iimil Uppor 32-bils rogislor.
If llo addross is llo ond addross spocifiod in llo lvo rogislors, llo addross
is in rango.
11. Tlo bridgo may bo dosignod lo assumo llal aII momory accossos rocoivod
by ils dovnslroam inlorfaco llal aro passod lo llo primary bus aro profolcl-
abIo. Tlis assumos llal llo doslinalion of aII momory roads lravoIing
upslroam is syslom momory (vlicl is profolclabIo). If a bridgo maIos llis
assumplion, il musl impIomonl a dovico-spocific bil in ils configuralion
spaco llal aIIovs llis abiIily lo bo disabIod.
12. Momory vrilos rocoivod by oillor of llo bridgos inlorfacos aro accoplod
inlo llo bridgos dovnslroam or upslroam poslod momory vrilo buffor. As
doscribod in Bylo Morging on pago 801, llo bridgo is pormillod lo por-
form bylo morging in llo buffor for vrilos lo profolclabIo momory, bul nol
lo momory-mappod IO.
Bridges Memory-Mapped IO FiIter
-- . Tlo bridgo dosignor is roquirod lo impIo-
monl llo Momory Baso and Iimil rogislors usod lo dofino a momory-mappod
IO rango. Tloso lvo rogislors aro usod lo dofino a rango of momory occupiod by
momory-mappod IO dovicos llal rosido on llo dovnslroam sido of llo bridgo.
Iiguro 22-19 on pago 831 and Iiguro 22-20 on pago 831 iIIuslralo llo Momory
Baso and Iimil rogislors. Tlo Iovor digil of oacl rogislor is lardvirod lo zoro
and llo uppor llroo digils aro usod lo dofino llo uppor llroo lox digils of llo
oigll-digil slarl and ond addrossos, rospoclivoIy. UnIiIo llo IrofolclabIo Baso
Chapter 22: PCI Compatible Configuration Registers
831
and Iimil and IO Baso and Iimil rogislor pairs, lloro aro no Ixlonsion rogislors
associalod vill llo Momory Baso and Iimil rogislor pair. Tlis moans llal aII
momory-mappod IO dovicos in llo syslom musl rosido in llo Iovor 4GB of
momory addross spaco.
As an oxampIo, assumo llal llo configuralion soflvaro las vrillon llo foIIov-
ing vaIuos lo llo Momory Baso and Iimil rogislors:
- Tlo uppor llroo digils of llo Momory Baso rogislor conlain 555l.
- Tlo uppor llroo digils of llo Momory Iimil rogislor conlain 678l.
Tlis dofinos a 292MB momory-mappod IO rogion on llo dovnslroam sido of
llo bridgo slarling al 55500000l and onding al 678IIIIIl.
- -
-
PCI Express System Architecture
832
Bridge Command Registers
- .
Introduction
Tlo bridgo dosignor musl impIomonl lvo roquirod command rogislors in llo
bridgos configuralion Hoador rogion:
- Tlo Command rogislor is llo slandard configuralion Command rogislor
dofinod by llo spoc for any funclion. Il is associalod vill llo bridgos pri-
mary bus inlorfaco.
- Tlo Bridgo ConlroI rogislor is an oxlonsion lo llo slandard Command rogis-
lor and is associalod vill llo oporalion of boll of llo bridgos bus inlor-
facos.
Tloso lvo rogislors aro doscribod in llo noxl lvo soclions.
Bridge Command Register
- . Tlo Command rogislor formal, piclurod in Iiguro
22-21 on pago 832, is llo samo as llal for a non-bridgo funclion. Somo of llo
bils, lovovor, lavo difforonl offocls. Iacl of llo bils is doscribod in TabIo 22-6
on pago 833.
-
Chapter 22: PCI Compatible Configuration Registers
833
- --
- -
--
-- - -
-
- -
- --
-- - -
-
- -
--
-
- - --
- --
- - --
- --
-
-- - -
-- - -
- -
- - - --
-- - -
- - -
-
-
- -
- -
-- -
- - -
- - -
- - - -- --
-
- - -
- -
-- -
-
- -
PCI Express System Architecture
834
3 RO -. Doos nol appIy lo ICI Ixpross and musl bo lard-
virod lo 0.
4 RO . Doos nol appIy lo ICI
Ixpross and musl bo lardvirod lo 0.
5 RO . Doos nol appIy lo ICI Ixpross and musl bo
lardvirod lo 0.
6 RW --.
Wlon forvarding a Ioisonod TII from Irimary lo Socondary:
- Tlo primary sido musl sol llo Doloclod Iarily Irror bil in llo
bridgo Slalus rogislor.
- If llo Iarily Irror Rosponso bil in llo Bridgo ConlroI rogislor is
sol, llo socondary sido musl sol llo Maslor Dala Iarily Irror
bil in llo Socondary Slalus rogislor.
Wlon forvarding a Ioisonod TII from Socondary lo Irimary:
- Tlo socondary sido musl sol llo Doloclod Iarily Irror bil in llo
Socondary Slalus rogislor.
- If llo Iarily Irror Rosponso bil in llo Bridgo ConlroI rogislor is
sol, llo primary sido musl sol llo Maslor Dala Iarily Irror bil
in llo bridgo Slalus rogislor.
If llo Iarily Irror Rosponso bil is cIoarod, llo Maslor Dala Iarily
Irror slalus bil in llo bridgo Slalus rogislor is novor sol.
Tlo dofauIl vaIuo of llis bil is 0.
7 RO . Doos nol appIy lo ICI Ixpross. Musl bo lard-
virod lo 0.
8 RW . Wlon sol, llis bil onabIos llo non-falaI and falaI
orrors doloclod by llo bridgos primary inlorfaco lo bo roporlod lo
llo Rool CompIox. Tlo funclion roporls sucl orrors lo llo Rool
CompIox if il is onabIod lo do so oillor llrougl llis bil or llrougl
llo ICI Ixpross spocific bils in llo Dovico ConlroI rogislor (soo
Dovico ConlroI Rogislor on pago 905). Tlo dofauIl vaIuo of llis
bil is 0.
9 RO - Doos nol appIy lo ICI Ixpross and
musl bo lardvirod lo 0.
- --
- -
Chapter 22: PCI Compatible Configuration Registers
835
Bridge ControI Register
- - - -
- - - --
- - -
- - - - - -- -
- -
- -
---
- ---
- --- -
-
- --
--- - - - - -
- -- -- -- --
-
---
- - -
- - -
- -
-
- --
- -
PCI Express System Architecture
836
- --
- -
--
-
- - -
- -
-- - -
- - - - - -
- -
-
- - - -
- -
-- - -
- - - - -
- -
-- - -
-- - - - -
- -
- -
- -
- - -
-
- -
-
- - -- -
- - - - -
-- -
-- - -
--
- -
- - -- -
Chapter 22: PCI Compatible Configuration Registers
837
Bridge Status Registers
Introduction
Tlo bridgo conlains lvo roquirod slalus rogislors, oacl of vlicl is associalod
vill ono of llo lvo inlorfacos.
Bridge Status Register (Primary Bus)
- . Rofor lo Iiguro 22-23 on pago 838 and TabIo 22 - 8 on
pago 838. Tlis roquirod rogislor is compIoloIy compalibIo vill llo Slalus rogis-
lor dofinilion for a non-bridgo funclion (soo Slalus Rogislor on pago 788) and
onIy rofIocls llo slalus of llo bridgos primary inlorfaco.
If llo CapabiIilios Iisl bil (bil 4) is sol lo ono, llis indicalos llal llo bridgo
impIomonls llo CapabiIily Ioinlor rogislor in bylo 0 of dvord 13 in ils configu-
ralion Hoador (soo Iiguro 22-13 on pago 803). Ior a gonoraI doscriplion of llo
Nov CapabiIilios, rofor lo CapabiIilios Ioinlor Rogislor on pago 779. In subso-
quonlIy lravorsing llo Nov CapabiIilios Iisl, soflvaro may discovor llal llo
bridgo impIomonls llo SIol Numboring rogislors. Ior a doscriplion of llis foa-
luro, rofor lo Inlroduclion To Classis/SIol Numboring Rogislors on pago 859
and Classis and SIol Numbor Assignmonl on pago 861.
8 RO - . Nol usod in Ixpross and musl bo lard-
virod lo zoro.
9 RO - . Nol usod in Ixpross and musl bo
lardvirod lo zoro.
10 RO - -. Nol usod in Ixpross and musl bo lard-
virod lo zoro.
11 RO - . Nol usod in Ixpross and musl bo
lardvirod lo zoro.
- --
- -
PCI Express System Architecture
838
- -
- -
- -
3 RO -. Indicalos llal llo bridgo ilsoIf lad provi-
ousIy lransmillod an inlorrupl roquosl lo ils drivor (llal is,
llo funclion lransmillod an inlorrupl mossago oarIior in limo
and is availing sorvicing).
Nolo llal INTx omuIalion inlorrupls forvardod by Rool and
Svilcl Iorls from dovicos dovnslroam of llo Rool or Svilcl
Iorl aro nol rofIoclod in llis bil. Tlo dofauIl slalo of llis bil is
0.
4 RO - -. Indicalos llo prosonco of ono or moro
oxlondod capabiIily rogislor sols in llo Iovor 48 dvords of llo
funclions ICI-compalibIo configuralion spaco. Sinco, al a
minimum, aII ICI Ixpross funclions aro roquirod lo impIo-
monl llo ICI Ixpross capabiIily slrucluro, llis bil musl bo sol
lo 1.
5 RO . Doos nol appIy lo ICI Ixpross and musl bo
0.
Chapter 22: PCI Compatible Configuration Registers
839
7 RO - . Doos nol appIy lo ICI Ixpross
and musl bo 0.
8 RW1C - .
Wlon forvarding a Ioisonod TII from Irimary lo Socond-
ary:
- Tlo primary sido musl sol llo Doloclod Iarily Irror bil in
llo bridgo Slalus rogislor.
- If llo Iarily Irror Rosponso bil in llo Bridgo ConlroI rogis-
lor is sol, llo socondary sido musl sol llo Maslor Dala Iar-
ily Irror bil in llo Socondary Slalus rogislor.
Wlon forvarding a Ioisonod TII from Socondary lo Iri-
mary:
- Tlo socondary sido musl sol llo Doloclod Iarily Irror bil in
llo Socondary Slalus rogislor.
- If llo Iarily Irror Rosponso bil in llo Bridgo ConlroI rogis-
lor is sol, llo primary sido musl sol llo Maslor Dala Iarily
Irror bil in llo bridgo Slalus rogislor.
If llo Iarily Irror Rosponso bil in llo Bridgo Command rogis-
lor is cIoarod, llo Maslor Dala Iarily Irror slalus bil in llo
Socondary Slalus rogislor is novor sol.
Tlo dofauIl vaIuo of llis bil is 0.
10:9 RO . Doos nol appIy lo ICI Ixpross and musl bo
0.
11 RW1C . Tlis bil is sol vlon llo bridgos pri-
mary inlorfaco compIolos a rocoivod roquosl by issuing a
CompIolor Aborl CompIolion Slalus.
DofauIl vaIuo of llis fioId is 0.
12 RW1C . Tlis bil is sol vlon llo bridgos pri-
mary inlorfaco rocoivos a CompIolion vill CompIolor Aborl
CompIolion Slalus.
DofauIl vaIuo of llis fioId is 0.
13 RW1C - . Tlis bil is sol vlon llo bridgos pri-
mary inlorfaco rocoivos a CompIolion vill Unsupporlod
Roquosl CompIolion Slalus.
DofauIl vaIuo of llis fioId is 0.
- -
- -
PCI Express System Architecture
840
Bridge Secondary Status Register
- . Rofor lo Iiguro 22-24 on pago 841. Will llo oxcop-
lion of llo Rocoivod Syslom Irror bil, llis roquirod rogislor is compIoloIy com-
palibIo vill llo Slalus rogislor dofinilion for a non-bridgo funclion (soo Slalus
Rogislor on pago 788) and onIy rofIocls llo slalus of llo socondary sido. Il
slouId bo nolod llal llo CapabiIilios Iisl bil (bil 4) is novor impIomonlod in llis
rogislor.
WliIo bil 14 is llo SignaIod Syslom Irror bil in llo primary sido Slalus rogislor,
il is llo Rocoivod Syslom Irror bil in llo Socondary Slalus rogislor. Wlon sol,
llis bil indicalos llal SIRR# vas doloclod assorlod on llo socondary sido. Wril-
ing a ono lo il cIoars llo bil, vliIo a zoro doosnl affocl il. Rosol cIoars llis bil.
14 RW1C - . Tlis bil is sol vlon llo bridgos pri-
mary inlorfaco sonds an IRR_IATAI (falaI orror) or
IRR_NONIATAI (non-falaI orror) mossago (if llo SIRR
InabIo bil in llo bridgo Command rogislor is sol lo ono).
Tlo dofauIl vaIuo of llis bil is 0.
15 RW1C . Tlis bil is sol by llo bridgos primary
inlorfaco vlonovor il rocoivos a Ioisonod TII, rogardIoss of
llo slalo llo Iarily Irror InabIo bil in llo bridgo Command
rogislor. DofauIl vaIuo of llis bil is 0.
- -
- -
Chapter 22: PCI Compatible Configuration Registers
841
- -
- -
- -
5 RO . Doos nol appIy lo Ixpross and musl bo 0.
7 RO - . Doos nol appIy lo ICI Ixpross
and musl bo 0.
PCI Express System Architecture
842
8 RW1C - .
Wlon forvarding a Ioisonod TII from Irimary lo Socond-
ary:
- Tlo primary sido musl sol llo Doloclod Iarily Irror bil in
llo bridgo Slalus rogislor.
- If llo Iarily Irror Rosponso bil in llo Bridgo ConlroI rogis-
lor is sol, llo socondary sido musl sol llo Maslor Dala Iar-
ily Irror bil in llo Socondary Slalus rogislor.
Wlon forvarding a Ioisonod TII from Socondary lo Iri-
mary:
- Tlo socondary sido musl sol llo Doloclod Iarily Irror bil in
llo Socondary Slalus rogislor.
- If llo Iarily Irror Rosponso bil in llo Bridgo ConlroI rogis-
lor is sol, llo primary sido musl sol llo Maslor Dala Iarily
Irror bil in llo bridgo Slalus rogislor.
If llo Iarily Irror Rosponso bil in llo Bridgo ConlroI rogislor
is cIoarod, llo Maslor Dala Iarily Irror slalus bil in llo Soc-
ondary Slalus rogislor is novor sol. Tlo dofauIl vaIuo of llis
bil is 0.
10:9 RO . Doos nol appIy lo Ixpross and musl bo 0.
11 RW1C . Tlis bil is sol vlon llo bridgos soc-
ondary inlorfaco compIolos a rocoivod roquosl by issuing a
CompIolor Aborl CompIolion Slalus. DofauIl vaIuo of llis
fioId is 0.
12 RW1C . Tlis bil is sol vlon llo bridgos soc-
ondary inlorfaco rocoivos a CompIolion vill CompIolor
Aborl CompIolion Slalus. DofauIl vaIuo of llis fioId is 0.
13 RW1C - . Tlis bil is sol vlon llo bridgos soc-
ondary inlorfaco rocoivos a CompIolion vill Unsupporlod
Roquosl CompIolion Slalus. DofauIl vaIuo of llis fioId is 0.
14 RW1C - . Tlis bil is sol vlon llo bridgos soc-
ondary inlorfaco sonds an IRR_IATAI (falaI orror) or
IRR_NONIATAI (non-falaI orror) mossago (if llo SIRR
InabIo bil in llo Bridgo ConlroI rogislor is sol lo ono. Tlo
dofauIl vaIuo of llis bil is 0.
- -
- -
Chapter 22: PCI Compatible Configuration Registers
843
Bridge Cache Line Size Register
-
Tlis fioId is impIomonlod by ICI Ixpross dovicos as a road-vrilo fioId for Iogacy
compalibiIily purposos bul las no impacl on any ICI Ixpross dovico funclion-
aIily.
Bridge Latency Timer Registers
- .
Bridge Latency Timer Register (Primary Bus)
- . Tlis rogislor doos nol appIy lo ICI Ixpross and
musl bo road-onIy and lardvirod lo 0.
Bridge Secondary Latency Timer Register
- . Tlis rogislor doos nol appIy lo ICI Ixpross and
musl bo road-onIy and lardvirod lo 0.
15 RW1C . Tlis bil is sol by llo bridgos socond-
ary inlorfaco vlonovor il rocoivos a Ioisonod TII, rogardIoss
of llo slalo llo Iarily Irror InabIo bil in llo Bridgo ConlroI
rogislor. DofauIl vaIuo of llis bil is 0.
- -
- -
PCI Express System Architecture
844
Bridge Interrupt-ReIated Registers
- . - - -.
Interrupt Line Register
A bridgo may gonoralo inlorrupls in llo Iogacy ICI/ICI-X mannor duo lo an
inlornaI, bridgo-spocific ovonl. Tlo inlorrupl landIor is villin llo bridgos
dovico drivor. Wlon llo bridgo dolocls sucl an inlornaI ovonl, il sonds an INTx
Assorl mossago upslroam lovards llo Rool CompIox (spocificaIIy, lo llo inlor-
rupl conlroIIor villin llo Rool CompIox).
As in ICI, llo Inlorrupl Iino rogislor communicalos inlorrupl Iino rouling infor-
malion. Tlo rogislor is road/vrilo and musl bo impIomonlod if llo bridgo con-
lains a vaIid non-zoro vaIuo in ils Inlorrupl Iin configuralion rogislor (doscribod
in llo noxl soclion). Tlo OS or dovico drivor can oxamino llo bridgos Inlorrupl
Iino rogislor lo dolormino vlicl syslom inlorrupl roquosl Iino llo bridgo usos
lo issuo roquosls for sorvico (and, lloroforo, vlicl onlry in llo inlorrupl labIo lo
looI).
In a non-IC onvironmonl, llo vaIuo vrillon lo llis rogislor is arclilocluro-spo-
cific and lloroforo oulsido llo scopo of llo spocificalion.
Interrupt Pin Register
Tlis road-onIy rogislor idonlifios llo Iogacy INTx inlorrupl Mossago (INTA,
INTB, INTC, or INTD) llo bridgo lransmils upslroam lo gonoralo an inlorrupl.
Tlo vaIuos 01l-llrougl-04l corrospond lo Iogacy INTx inlorrupl Mossagos
INTA-llrougl-INTD. A rolurn vaIuo of zoro indicalos llal llo bridgo doosn'l
gonoralo inlorrupls using llo Iogacy mollod. AII ollor vaIuos (05l-IIl) aro
rosorvod. Nolo llal, aIllougl llo bridgo may nol gonoralo inlorrupls via llo
Iogacy mollod, il may gonoralo llom via llo MSI mollod (soo Dolormining if a
Iunclion Usos INTx# Iins on pago 343 for moro informalion).
Chapter 22: PCI Compatible Configuration Registers
845
PCI-CompatibIe CapabiIities
AGP CapabiIity
Tlo 2.2 spoc assigns llo CapabiIily ID of 02l lo AGI. Tlo romaindor of llis soc-
lion is onIy incIudod as an oxampIo of a Nov CapabiIily.
Rofor lo Iiguro 22-25 on pago 845.
- Tlo AGIs CapabiIily ID is 02l.
- Tlo socond bylo is llo rogislor llal poinls lo llo rogislor sol associalod vill
llo noxl Nov CapabiIily (if lloro is ono).
- IoIIoving llo poinlor rogislor aro lvo, 4-bil road-onIy fioIds dosignaling llo
major and minor rov of llo AGI spoc llal llo AGI dovico is buiIl lo (al llo
limo of llis vriling, llo major rov is 2l and llo minor is 0l).
- Tlo Iasl bylo of llo firsl dvord is rosorvod and musl rolurn zoro vlon road.
- Tlo noxl lvo dvords conlain llo AGI dovicos AGI Slalus and AGI Com-
mand rogislors.
Tlo soclions llal foIIov dofino lloso rogislors and llo bils villin llom.
Ior a dolaiIod doscriplion of AGI, rofor lo llo MindSlaro booI onlilIod
- (pubIislod by Addison-WosIoy).
AGP Status Register
Tlo AGI Slalus rogislor is dofinod in TabIo 22-10 on pago 846. Tlis is a road-
onIy rogislor. Wrilos lavo no offocl. Rosorvod or unimpIomonlod fioIds or bils
aIvays rolurn zoros vlon road.
-
PCI Express System Architecture
846
AGP Command Register
Tlo AGI Command rogislor is dofinod in TabIo 22-11 on pago 847. Tlis is a
road/vrilabIo rogislor, vill rosorvod fioIds lard-virod lo zoros. AII bils in llo
AGI Command rogislor aro cIoarod lo zoro aflor rosol. Tlis rogislor is pro-
grammod during configuralion. Will ono oxcoplion, llo bolavior of a dovico if
llis rogislor is modifiod during runlimo is nol spocifiod. If llo AGI_InabIo bil
is cIoarod, llo AGI maslor is nol aIIovod lo inilialo a nov roquosl.
- - -
- -
31:24 RQ Tlo RQ fioId conlains llo maximum dopll of llo AGI roquosl
quouo. Tloroforo, llis numbor is llo maximum numbor of
lransaclion roquosls llis dovico can manago. A 0 is inlor-
prolod as a dopll of ono, vliIo IIl is inlorprolod as a dopll of
256.
23:10 Rosorvod Wrilos lavo no offocl. Roads rolurn zoros.
9 SBA If sol, llis dovico supporls Sidoband Addrossing.
8:6 Rosorvod Wrilos lavo no offocl. Roads rolurn zoros.
5 4G If sol, llis dovico supporls addrossos groalor llan 4GB.
4 IW If sol, llis dovico supporls Iasl Wrilo lransaclions.
3 Rosorvod Wrilos lavo no offocl. Roads rolurn a zoro
2:0 RATI Tlo RATI fioId is a bil map llal indicalos llo dala lransfor
ralos supporlod by llis dovico. AGI dovicos musl roporl aII
llal appIy. Tlo RATI fioId appIios lo AD, C/BI#, and SBA
busos.
-
0 1X
1 2X
2 4X
Chapter 22: PCI Compatible Configuration Registers
847
- -
- -
31:24 RQ_Dopll -: Tlo RQ_DIITH fioId musl bo programmod vill
llo maximum numbor of lransaclion roquosls llo maslor is
aIIovod lo onquouo inlo llo largol. Tlo vaIuo pro-
grammod inlo llis fioId musl bo oquaI lo or Ioss llan llo
vaIuo roporlod by llo largol in llo RQ fioId of ils AGI Sla-
lus Rogislor. A 0 vaIuo indicalos a roquosl quouo dopll
of ono onlry, vliIo a vaIuo of IIl indicalos a roquosl quouo
dopll of 256.
: Tlo RQ_DIITH fioId is rosorvod.
23:10 Rosorvod Wrilos lavo no offocl. Roads rolurn zoros.
9 SBA_InabIo Wlon sol, llo Sidoband Addross moclanism is onabIod in
llis dovico.
8 AGI_InabIo -: Solling llo AGI_InabIo bil aIIovs llo maslor lo
inilialo AGI oporalions. Wlon cIoarod, llo maslor cannol
inilialo AGI oporalions. AIso vlon cIoarod, llo maslor is
aIIovod lo slop driving llo SBA porl. If bils 1 or 2 aro sol,
llo maslor musl porform a ro-syncl cycIo boforo inilialing
a nov roquosl.
: Solling llo AGI_InabIo bil aIIovs llo largol lo
accopl AGI oporalions. Wlon cIoarod, llo largol ignoros
incoming AGI oporalions. Tlo largol musl bo compIoloIy
configurod and onabIod boforo llo maslor is onabIod.
Tlo AGI_InabIo bil is llo Iasl lo bo sol. Rosol cIoars llis
bil.
7:6 Rosorvod Wrilos lavo no offocl. Roads rolurn zoros.
PCI Express System Architecture
848
VitaI Product Data (VPD) CapabiIity
Introduction
Tlo 2.1 spoc dofinod llo oplionaI VilaI Iroducl Dala as rosiding in a ICI func-
lions oxpansion ROM.
Tlo 2.2 spoc las doIolod llis informalion from llo ROM and insload pIacos llo
VID (if prosonl) in a funclions ICI configuralion rogislor spaco (soo CapabiIi-
lios Ioinlor Rogislor on pago 779). Tlis soclion doscribos llo 2.2 impIomonla-
lion of llo VID and providos an oxampIo from llo 2.2 spoc.
5 4G -: Solling llo 4G bil aIIovs llo maslor lo inilialo
AGI roquosls lo addrossos al or abovo llo 4GB addross
boundary. Wlon cIoarod, llo maslor is onIy aIIovod lo
accoss addrossos in llo Iovor 4 GB of addrossabIo spaco.
: Solling llo 4G bil onabIos llo largol lo accopl AGI
DAC (DuaI-Addross Commands) commands, vlon bil 9 is
cIoarod. Wlon bils 5 and 9 aro sol, llo largol can accopl a
Typo 4 SBA command and uliIizo A|35:32] of llo Typo 3
SBA command.
4 IW_InabIo Wlon llis bil is sol, momory vrilo lransaclions inilialod by
llo coro Iogic viII foIIov llo fasl vrilo prolocoI. Wlon llis
bil is cIoarod, momory vrilo lransaclions inilialod by llo
coro Iogic viII foIIov llo ICI prolocoI.
3 Rosorvod Wrilos lavo no offocl. Roads rolurn zoros.
2:0 Dala_Ralo No moro llan ono bil in llo Dala_Ralo fioId musl bo sol lo
indicalo llo maximum dala lransfor ralo supporlod. Tlo
samo bil musl bo sol in boll llo maslor and llo largol.
-
0 1X
1 2X
2 4X
- -
- -
Chapter 22: PCI Compatible Configuration Registers
849
Its Not ReaIIy VitaI
Ils aIvays brougll a smiIo lo my faco llal dospilo ils namo, llo VID las novor
boon vilaI. Ils aIvays boon namod VilaI in llo spoc, bul ils vas
. Tlon in llo 2.1 spoc, aIllougl , il vas dofinod as rosiding in a
funclions ROM, bul ils incIusion vas . Tlo 2.2 spoc las nov movod il
from llo ROM lo llo configuralion spaco, bul ils sliII .
What Is VPD?
Tlo configuralion rogislors prosonl in a ICI funclions configuralion Hoador
rogion (llo firsl 16 dvords of ils configuralion spaco) provido llo configuralion
soflvaro vill quilo a bil of informalion aboul llo funclion. Hovovor, addilionaI
usofuI informalion sucl as
- a boards parl numbor
- llo IC (Inginooring Clango) IovoI of a funclion
- llo dovicos soriaI numbor
- an assol lag idonlifior
couId bo quilo usofuI in a ropair, locl supporl or assol managomonl onviron-
monls. If prosonl, llo VID Iisl providos llis lypo of informalion.
Where Is the VPD ReaIIy Stored?
Il is inlondod llal llo VID vouId rosido in a dovico sucl as a soriaI IIIROM
associalod vill llo ICI funclion. Tlo configuralion accoss moclanism
doscribod in llo noxl soclion dofinos lov llis informalion vouId bo accossod
via llo ICI funclions VID foaluro rogislors.
VPD On Cards vs. Embedded PCI Devices
Iacl add-in card may oplionaIIy conlain VID. If ils a muIlifunclion card, onIy
ono funclion may conlain VID or oacl funclion may impIomonl il. Imboddod
funclions may or may nol conlain VID.
How Is VPD Accessed?
Iiguro 22-26 on pago 851 iIIuslralos llo configuralion rogislors llal indicalo llo
prosonco of VID informalion and pormil llo programmor lo accoss il. Tlo
CapabiIily ID of llo VID rogislors is 03l, vliIo llo rogislors usod lo accoss lo
llo VID dala consisls of llo VID Addross and Dala rogislors in conjunclion
vill llo ono-bil IIag rogislor. Tlo programmor accossos llo VID informalion
using llo procoduros doscribod in llo foIIoving lvo soclions.
PCI Express System Architecture
850
Uso llo foIIoving procoduro lo road VID dala:
1. Using a ICI configuralion vrilo, vrilo llo dvord-aIignod VID addross inlo
llo Addross rogislor and simuIlanoousIy sol llo IIag bil lo zoro.
2. Hardvaro llon roads llo indicalod dvord from VID slorago and pIacos llo
four bylos inlo llo Dala rogislor. Upon compIolion of llo oporalion, llo
lardvaro sols llo IIag bil lo ono.
3. Wlon soflvaro soos llo IIag bil sol lo ono by llo lardvaro, il can llon por-
form a ICI configuralion road lo road llo four VID bylos from llo Dala rog-
islor.
If oillor llo Addross or Dala rogislors aro vrillon lo prior lo lardvaro solling
llo IIag bil lo ono, llo rosuIls of llo road aro unprodiclabIo.
Uso llo foIIoving procoduro lo vrilo VID dala. IIoaso
nolo llal onIy Road/Wrilo VID Dala iloms may bo vrillon lo.
1. Wrilo four bylos of dala inlo llo Dala rogislor.
2. Wrilo llo dvord-aIignod VID addross inlo llo Addross rogislor and simuI-
lanoousIy sol llo IIag bil lo ono.
3. Wlon soflvaro dolocls llal llo IIag bil las boon cIoarod lo zoro by lard-
varo, llo VID vrilo las boon compIolod.
If oillor llo Addross or Dala rogislors aro vrillon lo prior lo lardvaro cIoaring
llo IIag bil lo zoro, llo rosuIls of llo VID vrilo aro unprodiclabIo.
- - Tlo foIIoving ruIos
appIy lo boll VID dala roads and vrilos:
1. Onco a VID road or vrilo las boon inilialod, vriling lo oillor llo Addross
or Dala rogislors prior lo llo poinl al vlicl llo lardvaro clangos llo slalo
of llo IIag bil yioIds unprodiclabIo rosuIls.
2. Iacl VID dala road or vrilo aIvays oncompassos aII four bylos villin llo
VID dvord indicalod in llo Addross rogislor.
3. Tlo Ioasl-significanl bylo in llo Dala rogislor corrosponds lo llo Ioasl-signif-
icanl bylo in llo indicalod VID dvord.
4. Tlo iniliaI vaIuos in llo Addross and Dala rogislors aflor rosol aro indolor-
minalo.
5. Roading or vriling dala oulsido llo scopo of llo ovoraII VID dala slrucluro
is nol aIIovod. Tlo spoc doosnl say vlal llo rosuIl viII bo if you do il, so il
is lardvaro dosign-spocific.
6. Tlo vaIuos conlainod in llo VID aro onIy slorod informalion and lavo no
offocl upon llo dovico.
Chapter 22: PCI Compatible Configuration Registers
851
7. Tlo lvo Ioasl-significanl bils in llo Addross rogislor musl aIvays bo zoro
(i.o., il is iIIogaI lo spocify an addross llal is nol aIignod on a dvord addross
boundary).
VPD Data Structure Made Up of Descriptors and Keywords
As monlionod oarIior, llo VID acluaIIy consisls of a dala slrucluro accossod
using llo VID Addross and Dala rogislors. Tlo individuaI dala iloms llal com-
priso llo VID dala slrucluro aro llomsoIvos smaII dala slrucluros Inovn as
doscriplors. Tlo basic formal of lvo of llo doscriplors usod in llo VID vas firsl
dofinod in llo vorsion 1.0a spoc. Ior moro informalion aboul
llis spoc, rofor lo llo MindSlaro booI onlilIod -
(pubIislod by Addison-WosIoy). Tlo lvo ISA-IiIo doscriplor lypos aro:
- -. Tlis doscriplor conlains llo aIplanumoric
namo of llo card or omboddod dovico. If llo VID is impIomonlod, llis
doscriplor is mandalory and is aIvays llo firsl ono in llo VID. Il is iIIus-
lralod in TabIo 22-13 on pago 853.
- -. If llo VID is impIomonlod, llis doscriplor is manda-
lory and is usod lo idonlify llo ond of VID dala slrucluro. Ils vaIuo is
aIvays 78l.
In addilion lo lloso lvo doscriplors, llo 2.2 spoc las dofinod lvo nov doscrip-
lor lypos roforrod lo as:
- -. Tlis doscriplor lypo idonlifios llo - ovoraII
a -- ono or moro - villin llo VID dala
slrucluro. Tlo Iasl Ioyvord in llo Iisl of road-onIy Ioyvords musl bo llo
ClocIsum Ioyvord. Tlis clocIsum oncompassos llo VID from ils firsl
Iocalion lo llo ond of llo road-onIy aroa. A dolaiIod doscriplion of llis
doscriplor can bo found in VID Road-OnIy Doscriplor (VID-R) and Koy-
vords on pago 853.
--
PCI Express System Architecture
852
- -. If usod, llis oplionaI doscriplor lypo is usod lo idonlify
llo - ovoraII llo doscriplors villin llo VID
dala slrucluro. A dolaiIod doscriplion of llis doscriplor can bo found in
VID Road/Wrilo Doscriplor (VID-W) and Koyvords on pago 856.
Tlo basic formal of llo ovoraII VID dala slrucluro is iIIuslralod in TabIo 22-12
on pago 852. Il las llo foIIoving claraclorislics:
1. Tlo VID aIvays -- an -, foIIovod by an
oplionaI Iisl of ono or moro road-onIy VID Ioyvords.
2. Tlo - - aIvays bogins vill llo VID-R doscriplor
and onds vill llo ClocIsum Ioyvord.
3. ImmodialoIy foIIoving llo Iisl of road-onIy Ioyvords is an -
-. If prosonl, llo road-vrilo Ioyvord Iisl is profacod
vill llo VID-W doscriplor. Bocauso llo VID road-vrilo Ioyvords can bo
aIlorod, lloro is no clocIsum al llo ond of llo road/vrilo Ioyvords.
4. Tlo ovoraII dala slrucluro is - a spociaI doscrip-
lor Inovn as llo . Ils vaIuo is aIvays 78l.
-
- - -
Slring Idonlifior Doscriplor AIvays llo firsl onlry.
Road-OnIy Doscriplor Hoads llo Iisl of road-onIy Ioyvords.
Road-OnIy Koyvord
Iisl of Road-OnIy Ioyvords.
Road-OnIy Koyvord
Road-OnIy Koyvord
ClocIsum Koyvord
Road/Wrilo Doscriplor Hoads llo Iisl of road-vrilo Ioyvords.
Road/Wrilo Koyvord
Iisl of Road/Wrilo Ioyvords.
Road/Wrilo Koyvord
Ind Tag doscriplor AIvays usod lo indicalo llo ond of llo
VID. Ils vaIuo is aIvays 78l.
Chapter 22: PCI Compatible Configuration Registers
853
VPD Read-OnIy Descriptor (VPD-R) and Keywords
TabIo 22-14 on pago 853 iIIuslralos llo formal of llo VID-R doscriplor. As mon-
lionod oarIior, llis doscriplor bogins llo Iisl of ono or moro road-onIy Ioyvords
and indicalos llo Iongll of llo Iisl. Iacl Ioyvord is a minimum of four bylos in
Iongll and las llo formal iIIuslralod in TabIo 22-15 on pago 854. Tlo road-onIy
Ioyvords curronlIy-dofinod aro Iislod in TabIo 22-16 on pago 854.
-
0 Musl bo 82l.
1 Ioasl-significanl bylo of idonlifior slring Iongll (llo Iongll oncom-
passos bylos 3-llrougl-n).
2 Mosl-significanl bylo of idonlifior slring Iongll (llo Iongll oncom-
passos bylos 3-llrougl-n).
3-llrougl-n ASCII namo of funclion.
-
-
0 Musl bo 90l.
1 Ioasl-significanl bylo of road-onIy Ioyvord Iisl Iongll (llo Iongll
oncompassos bylos 3-llrougl-n).
2 Mosl-significanl bylo of road-onIy Ioyvord Iisl Iongll (llo Iongll
oncompassos bylos 3-llrougl-n).
3-llrougl-n Iisl of Road-OnIy Ioyvords.
PCI Express System Architecture
854
- -
0 and 1 ASCII Koyvord (soo TabIo 22-16 on pago 854 and TabIo 22-20
on pago 856).
2 Iongll of Koyvord fioId (oncompassing bylos 3-llrougl-n).
3-llrougl-n Koyvord dala fioId.
- -
-
IN Dovico Iarl Numbor in ASCII.
IC Inginooring Clango IovoI (aIplanumoric) of dovico in ASCII.
MN Manufacluror ID in ASCII.
SN SoriaI Numbor (aIplanumoric) in ASCII.
Vx Vondor-Spocific fioId (aIplanumoric) in ASCII. "x" can bo any vaIuo
0-llrougl-Z.
CI Ixlondod CapabiIily. If prosonl, llis Ioyvord indicalos llal llo
funclion impIomonls an addilionaI Nov CapabiIily villin ils IO or
momory spaco. Soo TabIo 22-17 on pago 855 for a compIolo doscrip-
lion.
RV ClocIsum. Soo TabIo 22-18 on pago 855 for compIolo doscriplion.
Chapter 22: PCI Compatible Configuration Registers
855
Is Read-OnIy Checksum Keyword Mandatory?
Tlo spoc doosnl say if llo ClocIsum is mandalory, bul il is llo aullors opin-
ion llal il is. In ollor vords, ovon if llo VID conlainod no ollor road-onIy Ioy-
vords, il musl conlain llo VID-R doscriplor foIIovod by llo ClocIsum
Ioyvord. Tlis providos llo programmor vill llo clocIsum for llo porlion of
llo VID llal oncompassos llo Slring Idonlifior doscriplor, llo VID-R doscriplor
and llo ClocIsum Ioyvord ilsoIf. In ollor vords, il providos llo clocIsum for
ovorylling ollor llan llo road-vrilo porlion of llo VID. Il slands lo roason llo
porlion of llo VID llal can bo vrillon lo slouId nol bo incIudod villin llo
clocIsummod aroa.
-
0 Nov CapabiIily ID.
1 Indox of Baso Addross Rogislor (vaIuo bolvoon 0 and 5) llal poinls lo
spaco conlaining llis capabiIily.
2 Ioasl-significanl bylo of offsol villin BARs rango vloro llis Nov
CapabiIilys rogislor sol bogins.
3 Mosl-significanl bylo of offsol villin BARs rango vloro llis Nov
CapabiIilys rogislor sol bogins.
-
-
0 ClocIsum from slarl of VID up lo and incIuding llis bylo. ClocIsum
is corrocl if sum of aII bylos oquaIs zoro.
1 Rosorvod.
2 Rosorvod.
3-llrougl-n Rosorvod road-onIy spaco (as mucl as dosirod).
PCI Express System Architecture
856
VPD Read/Write Descriptor (VPD-W) and Keywords
Tlo VID may oplionaIIy conlain a Iisl of ono or moro road/vrilo Ioyvord
fioIds. If prosonl, llis Iisl bogins vill llo VID-W doscriplor vlicl indicalos llo
slarl and Iongll of llo road/vrilo Ioyvord Iisl. Tloro is no clocIsum slorod al
llo ond of llo road-vrilo Ioyvord Iisl.
TabIo 22-19 on pago 856 iIIuslralos llo formal of llo VID-W doscriplor and
TabIo 22-20 on pago 856 providos a Iisl of llo curronlIy-dofinod road/vrilo Ioy-
vord fioIds.
-
- -
0 Musl bo 91l
1 Ioasl-significanl bylo of road/vrilo Ioyvord Iisl Iongll (llo Iongll
oncompassos bylos 3-llrougl-n).
2 Mosl-significanl bylo of road/vrilo Ioyvord Iisl Iongll (llo Iongll
oncompassos bylos 3-llrougl-n).
3-llrougl-n Iisl of Road/Wrilo Ioyvords.
- -
-
Vx Vondor-Spocific (aIplanumoric in ASCII). "x" may bo any claraclor
from 0-llrougl-Z.
YA Assol Tag Idonlifior. ASCII aIplanumoric codo suppIiod by syslom
ovnor.
Yx Syslom-spocific aIplanumoric ASCII ilom. "x" may bo any claraclor
from 0-llrougl-9 and B-llrougl-Z.
RW Romaining road/vrilo aroa. Idonlifios llo unusod porlion of llo r/v
spaco. Tlo doscriplion in llo spoc is vory confusing and dofios inlor-
prolalion by llo aullor (maybo Im jusl boing llicI-loadod).
Chapter 22: PCI Compatible Configuration Registers
857
ExampIe VPD List
TabIo 22-21 on pago 857 conlains llo sampIo VID dala slrucluro providod in llo
spoc. Tlo aullor las mado a fov minor corroclions, so il doosnl malcl llo ono
in llo spoc oxaclIy. In llo drafl vorsion of llo spoc, llo 3rd rov, Iasl coIumn con-
lainod "ABC Supor..." olc. and llo offsol in VID-R Tag rov vas vrong. I fixod il
by adjusling llo offsols in llo 1sl coIumn. Il vas fixod in llo finaI vorsion of llo
2.2 spoc by clanging llo Iroducl Namo lo "ABCD Supor...".
-
-
0 Slring ID Tag 82l
1-2 Slring Iongll (32d) 0020l (32d)
3-34 Iroducl namo in ASCII "ABC Supor-Iasl Wid-
gol ConlroIIor"
Slarl of VID Road-OnIy Koyvord Aroa
35 VID-R Tag. Idonlifios slarl and Iongll of road-
onIy Ioyvord aroa villin VID.
90l
36-37 Iongll of road-onIy Ioyvord aroa. 5Al (90d)
38-39 Road-onIy Iarl Numbor Ioyvord. "IN"
40 Iongll of Iarl Numbor dala fioId. 08l (8d)
41-48 Iarl Numbor in ASCII. "6181682A"
49-50 Road-OnIy Inginooring Clango (IC) IovoI Ioy-
vord.
"IC"
51 Iongll of IC dala fioId. 0Al (10d)
52-61 IC dala fioId. "4950262536"
62-63 Road-onIy SoriaI Numbor Ioyvord. "SN"
64 SoriaI Numbor Iongll fioId. 08l (8d)
65-72 SoriaI Numbor dala fioId. "00000194"
PCI Express System Architecture
858
73-74 Road-onIy Manufacluror ID Ioyvord. "MN"
75 Manufacluror ID Iongll fioId. 04l (4d)
76-79 Manufacluror ID "1037"
80-81 Road-onIy ClocIsum Ioyvord. "RV"
82 Iongll of rosorvod road-onIy VID aroa. 2Cl (44d)
83 ClocIsum for bylos 0-llrougl-83. ClocIsum.
84-127 Rosorvod road-onIy aroa.
Slarl of VID Road/Wrilo Koyvord Aroa
128 VID-W Tag 91l
129-130 Iongll of road/vrilo Ioyvord aroa. 007Il (126d)
131-132 Road/Wrilo Vondor-Spocific Koyvord. "V1"
133 Vondor-spocific dala fioId Iongll. 05l (5d)
134-138 Vondor-spocific dala fioId. "65A01"
139-140 Syslom-spocific Ioyvord. "Y1"
141 Syslom-spocific dala fioId Iongll. 0Dl (13d)
142-154 Syslom-spocific dala fioId. "Irror Codo 26"
155-156 Romaining Road/Wrilo aroa Ioyvord. "RW"
157 Iongll of romaining road/vrilo aroa. 61l (97d)
158-254 Romaindor of road/vrilo aroa. rosorvod.
255 Ind Tag 78l
-
-
Chapter 22: PCI Compatible Configuration Registers
859
Introduction To Chassis/SIot Numbering Registers
Assuming llal llo CapabiIilios Iisl bil is sol in llo bridgos primary Slalus rog-
islor, llo bridgo impIomonls llo CapabiIilios Ioinlor rogislor (soo CapabiIilios
Ioinlor Rogislor on pago 779). Wlon soflvaro lravorsos llo IinIod Iisl of Nov
CapabiIily rogislor sols for a bridgo associalod vill a Rool Iorl or a svilcl
dovnslroam porl, il may oncounlor llo SIol Numboring rogislors (if llis is llo
bridgo lo an oxpansion classis).
Iiguro 22-27 on pago 859 picluros llo SIol Numboring rogislor sol. Il consisls of
llo rogislors doscribod in TabIo 22-22 on pago 859. Ior addilionaI informalion,
rofor lo Classis and SIol Numbor Assignmonl on pago 861.
--- --
-
- -
CapabiIily ID . idonlifios llis as llo SIol Numboring rogislor
sol.
Noxl CapabiIily
Ioinlor
- -
The Previous Chapter
Tlo provious claplor providod a dolaiIod doscriplion of llo configuralion rogis-
lors rosiding a funclions ICI-compalibIo configuralion spaco. Tlis incIudod llo
rogislors for boll non-bridgo and bridgo funclions.
This Chapter
Tlis claplor providos a dolaiIod doscriplion of dovico ROMs associalod vill
ICI, ICI Ixpross, and ICI-X funclions. Tlis incIudos llo foIIoving lopics:
- dovico ROM doloclion.
- inlornaI codo/dala formal.
- sladoving.
- iniliaIizalion codo oxoculion.
- inlorrupl looIing.
The Next Chapter
Tlo noxl claplor providos a doscriplion of:
- Tlo ICI Ixpross CapabiIily rogislor sol in a funclions ICI-compalibIo con-
figuralion spaco.
- Tlo oplionaI ICI Ixpross Ixlondod CapabiIilios rogislor sols in a funclions
oxlondod configuralion spaco:
Tlo Advancod Irror Roporling CapabiIily rogislor sol.
VirluaI ClannoI CapabiIily rogislor sol.
Dovico SoriaI Numbor CapabiIily rogislor sol.
Iovor Budgoling CapabiIily rogislor sol.
- RCRBs.
-- -
-
- -
suilod lo llo syslom procossor lypo. Tlo ROM migll conlain drivors for various
lypos of dovicos mado by llis dovicos vondor. Tlo codo imago copiod inlo main
momory slouId malcl up vill llo funclions ID. To llis ond, oacl codo imago
aIso conlains:
- llo Vondor ID and Dovico ID. Tlis is usofuI for malcling up llo drivor vill
a funclion llal las a vondor/dovico malcl.
- llo CIass Codo. Tlis is usofuI if llo drivor is a CIass drivor llal can vorI
vill any compalibIo dovico villin a CIass/SubCIass. Ior moro informa-
lion, soo CIass Codo Rogislor on pago 774.
Iiguro 23-3 on pago 877 iIIuslralos llo concopl of muIlipIo codo imagos ombod-
dod villin a dovico ROM. Iacl imago musl slarl on an addross ovonIy-divisibIo
by 512. Iacl imago consisls of lvo dala slrucluros, as voII as a run-limo codo
imago and an iniliaIizalion codo imago. Tlo configuralion soflvaro inlorrogalos
llo dala slrucluros in ordor lo dolormino if llis is llo imago il viII copy lo main
momory and uso. If il is, llo configuralion soflvaro:
1. Copios llo imago lo main momory,
2. DisabIos llo oxpansion ROMs addross docodor,
3. Ixoculos llo iniliaIizalion codo,
4. If llo iniliaIizalion codo slorlons llo Iongll indicalor in llo dala slrucluro,
llo configuralion soflvaro doaIIocalos llo aroa of main momory llal loId
llo iniliaIizalion porlion of llo drivor (in Iiguro 23-4 on pago 879, nolico
llal llo iniliaIizalion porlion of llo drivor is aIvays al llo ond of llo
imago).
5. Tlo aroa of main momory conlaining llo imago is llon vrilo-proloclod.
Tlo soclions llal foIIov provido a dolaiIod discussion of llo codo imago formal
and llo iniliaIizalion procoss.
- -
-
-- -
-
-
- -
00l 1d 55l ROM signaluro bylo ono. Tlo firsl lvo bylos
musl conlain AA55l, idonlifying llis as a
dovico ROM. Tlis las aIvays boon llo signa-
luro usod for a dovico ROM in any IC-compal-
ibIo maclino.
01l 1d AAl ROM signaluro bylo lvo.
02l - 17l 22d n
Rosorvod for procossor arclilocluro uniquo
dala. Soo TabIo 23-2 on pago 881. Tlis bIocI of
22d Iocalions is rosorvod for procossor/arcli-
locluro uniquo dala. Ior IC-compalibIo onvi-
ronmonls and imagos llal idonlify llo codo as
InloI x86-compalibIo in llo Codo Typo fioId (soo
Codo Typo on pago 885) of llo ROM dala
slrucluro, llo ICI spoc dofinos llo slrucluro of
llo procossor/arclilocluro uniquo dala aroa in
llo imago Hoador. Ior non-IC compalibIo
onvironmonls, llo conlonl of llis slrucluro is
arclilocluro-spocific. TabIo 23-2 on pago 881
dofinos llo fioIds llal musl bo suppIiod for IC-
compalibiIily. Tlo offsol spocifiod in llo labIo is
llo offsol from llo firsl Iocalion of llis ROM
codo imago.
18l - 19l 2d n
Ioinlor lo ICI Dala Slrucluro. Sinco llis is a 16-
bil poinlor, llo dala slrucluro can bo anyvloro
villin 64K forvard of llo firsl Iocalion in llis
codo imago. Tlis is llo 16-bil offsol (in IillIo-
ondian formal) lo llo ROM dala slrucluro
villin llis codo imago. Il is an offsol from llo
slarl addross of llis codo imago. Bocauso llis is
onIy a 16-bil offsol from llo firsl Iocalion of llis
codo imago, llo dala slrucluro musl rosido
villin 64KB forvard of llo firsl Iocalion of llis
codo imago.
- -
- -
02l
1
OvoraII sizo of llo imago (in 512 bylo incromonls). Tlo
lolaI sizo of llo runlimo codo pIus llo iniliaIizalion codo
(runlimo codo + iniliaIizalion codo = iniliaIizalion sizo).
Tlis sum is nol nocossariIy llo "ovoraII sizo of llo
imago." Tlo ovoraII sizo of llo imago (Imago Iongll)
couId bo groalor llan llo iniliaIizalion sizo. Tlo Imago
Iongll or Imago sizo is vlal spocifios vloro llo noxl
imago in llo ROM slarls, vliIo llo IniliaIizalion sizo (a
bollor namo for llis fioId) is llo acluaI codo sizo llal is
copiod inlo RAM.
03l-05l 3
Inlry poinl for llo iniliaIizalion codo. Conlains a llroo-
bylo, x86 slorl jump lo llo iniliaIizalion codo onlry
poinl. Tlo IOST porforms a far caII lo llis Iocalion lo
iniliaIizo llo dovico.
06l-17l 18d
Rosorvod (for appIicalion-uniquo dala, sucl as llo
copyrigll nolico).
-- -
-
- -
00l 4
consisling of llo ASCII slring "ICIR" (ICI
ROM).
04l 2
. Tlis is a dupIicalion of llo Vondor ID found in
llo funclions configuralion Vondor ID rogislor (soo Von-
dor ID Rogislor on pago 773). Tlo ROM may conlain muI-
lipIo codo imagos of llo dosirod Codo Typo (o.g., x86 codo),
bul lloy may bo for difforonl dovicos producod by llo samo
(or a difforonl) vondor.
In ordor lo onsuro llal il Ioads llo corrocl ono, llo configu-
ralion soflvaro comparos llo Vondor ID, Dovico ID, and
CIass Codo vaIuos conlainod in llis Dala Slrucluro lo lloso
found in llo funclions Vondor ID, Dovico ID, and CIass
Codo configuralion rogislors.
06l 2
. Tlis is a dupIicalion of llo Dovico ID found in
llo funclions configuralion Dovico ID rogislor (soo Dovico
ID Rogislor on pago 773). Soo oxpIanalion of Vondor ID
fioId in llis labIo.
08l 2
- - . Tlo
poinlor lo llo oplionaI VID is providod as an offsol from
llo slarl Iocalion of llo codo imago. Tlo 2.2 ICI spoc rodo-
finod llis as a Rosorvod bil fioId and llo oplionaI VID (if
prosonl) vas movod lo llo dovicos configuralion rogislors.
Rofor lo VilaI Iroducl Dala (VID) CapabiIily on
pago 848.
0Al 2 ICI in bylos, IillIo-ondian formal.
0Cl 1
ICI -. Tlo Dala Slrucluro formal
slovn in llis labIo is rovision zoro.
0Dl 3
-- . Tlis is a dupIicalion of llo CIass Codo found
in llo funclions configuralion CIass Codo rogislor (soo
CIass Codo Rogislor on pago 774). Soo oxpIanalion of
Vondor ID fioId in llis labIo.
- -
Aflor llo ROM is discovorod, llo configuralion soflvaro copiod a codo imago
from llo ROM inlo RAM momory. Aflor llo approprialo codo imago las boon
copiod inlo syslom momory, llo dovico ROMs addross docodor is disabIod. Tlo
configuralion soflvaro musl Ioop llo aroa of RAM (llo imago rosidos in) road/
vrilabIo. Tlo soquonco llal foIIovs assumos llal llo soIoclod ROM imagos
Codo Typo fioId is 00l and llal llo dovico rosidos on a IC compalibIo pIalform.
Tlo configuralion soflvaro llon oxoculos llo foIIoving soquonco:
1. Rofor lo Iiguro 23-5 on pago 888. Tlo soflvaro caIIs llo iniliaIizalion mod-
uIo villin llo imago (llrougl Iocalion 3l in llo imago), suppIying il vill
llroo paramolors in llo AX rogislor: llo bus numbor, dovico numbor and
funclion numbor of llo funclion associalod vill llo ROM:
Tlo 8-bil bus numbor is suppIiod in AH,
llo dovico numbor is suppIiod in llo uppor fivo bils of AI,
and llo funclion numbor in llo Iovor llroo bils of AI.
Ils nocossary lo suppIy llo iniliaIizalion codo vill llis informalion so llal
il can dolormino lov llo funclion las boon configurod. Ior oxampIo, vlal
IO and/or momory addross rango llo configuralion soflvaro las aIIocalod
lo llo funclion (via ils baso addross rogislors), vlal inpul on llo inlorrupl
conlroIIor llo funclions inlorrupl pin las boon roulod lo, olc.
2. Tlo iniliaIizalion codo llon issuos a caII lo llo ICI BIOS, suppIying llo bus
numbor, dovico numbor, and funclion numbor as inpul paramolors and
roquosling llo conlonls of llo funclions Baso Addross Rogislors. Armod
vill llis informalion, llo iniliaIizalion codo can nov communicalo vill
llo funclions IO rogislor sol lo iniliaIizo llo dovico and proparo il for nor-
maI oporalion.
3. If llo ROM imago las a dovico-spocific Inlorrupl Sorvico Roulino omboddod
villin llo run-limo moduIo, il roads from llo dovicos Inlorrupl Iino con-
figuralion rogislor lo dolormino vlicl syslom inlorrupl roquosl inpul on
llo inlorrupl conlroIIor llo funclions ICI inlorrupl pin las boon roulod lo
by llo configuralion soflvaro. Using llis rouling informalion, llo iniliaIiza-
lion codo Inovs vlicl onlry in llo inlorrupl labIo in momory musl bo
looIod. Il firsl roads llo poinlor curronlIy slorod in llal inlorrupl labIo
onlry and savos il villin llo body of llo run-limo porlion of llo imago. Il
llon sloros llo poinlor lo llo inlorrupl sorvico roulino omboddod villin llo
run-limo moduIo of llo codo imago inlo llal inlorrupl labIo onlry. In llis
vay, il mainlains llo inlogrily of llo inlorrupl clain. Sinco llo aroa of sys-
lom momory il las boon copiod inlo musl bo Iopl road/vrilabIo unliI llo
iniliaIizalion codo compIolos oxoculion, llo iniliaIizalion codo las no prob-
Iom saving llo poinlor llal il road from llo inlorrupl labIo onlry boforo
looIing il lo ils ovn sorvico roulino.
- -
4. Tlo ROM imago may aIso lavo a funclion-spocific BIOS roulino omboddod
villin llo run-limo moduIo of llo codo imago. In llis caso, il noods lo looI
anollor inlorrupl labIo onlry lo llis BIOS roulino. Onco again, il roads and
savos llo poinlor curronlIy slorod in llal inlorrupl labIo onlry and llon
sloros llo poinlor lo llo BIOS roulino omboddod villin llo run-limo mod-
uIo of llo codo imago. In llis vay, il mainlains llo inlogrily of llo inlorrupl
clain. -- - -
- - ---
- -- -- -- -
- -
-
-
5. Sinco llo aroa of syslom momory il rosidos in musl bo Iopl road/vrilabIo
unliI llo iniliaIizalion codo compIolos oxoculion, llo iniliaIizalion codo can
adjusl llo codo imago Iongll (in Iocalion 2l of llo imago). Vory lypicaIIy, al
llo compIolion of iniliaIizalion codo oxoculion llo programmor viII adjusl
llo imago Iongll fioId lo oncompass llo aroa from llo imagos slarl llrougl
llo ond of llo run-limo codo. Tlo iniliaIizalion codo is lypicaIIy onIy oxo-
culod onco and is llon discardod. Il musl aIso rocompulo a nov ClocIsum
and sloro il al llo ond of llo run-limo codo. If il sols llo imago Iongll lo
zoro, il doosnl nood lo rocompulo llo imago clocIsum and updalo il. Wlon
il rolurns conlroI lo llo configuralion soflvaro, a Iongll of zoro vouId indi-
calo llal llo drivor viII nol bo usod for somo roason (porlaps a probIom
vas doloclod during llo solup of llo dovico) and aII of llo momory il occu-
pios can bo doaIIocalod and rousod for somolling oIso.
6. Onco llo iniliaIizalion codo las compIolod oxoculion, il oxoculos a rolurn lo
llo syslom soflvaro llal caIIod il.
Tlo configuralion soflvaro llon porforms lvo finaI aclions:
1. Il inlorrogalos llo imago sizo (al offsol 2l in llo imago) lo dolormino if il
vas aIlorod. If il las, llo configuralion soflvaro adjusls llo amounl of
momory aIIocalod lo llo imago lo maIo moro officionl uso of momory. Tlo
imago is lypicaIIy slorlor llan il vas.
2. Il compulos a nov clocIsum for llo imago and sloros il al llo ond of llo
imago.
3. Wrilo-prolocls llo aroa of main momory llo imago rosidos in. Tlis viII Ioop
llo OS from using llo aroa aflor il laIos conlroI of llo maclino.
Tlo spoc rofors lo llo ICI mollod of vriling dovico ROM
codo and landIing ils doloclion, sladoving, and iniliaIizalion, as llo
. Tlal spoc slrossos llal llis is llo modoI llal
aII dovico ROMs for ollor busos (i.o., ollor llan ICI) slouId adloro lo.
-- -
Wlon llo syslom BIOS las caIIod oacl of llo Bus Inumoralors for llo difforonl
onvironmonls, il nov las a Iisl of poinlors lo llo various, bus-spocific dala
slrucluros llal Iisl aII of llo dovicos llal il las lo vorI vill.
BIOS SeIects Boot Devices and Finds Drivers For Them
Tlo syslom BIOS vouId llon scan llo dala slrucluros lo Iocalo an Inpul dovico,
an Oulpul dovico, and an III dovico lo uso in booling llo OS inlo momory. In
ordor lo uso oacl of lloso dovicos during llo bool procoss, il vouId aIso roquiro
a dovico drivor for oacl of llom. Tlo drivors vouId oillor bo omboddod villin
llo BIOS ilsoIf or villin dovico ROMs discovorod vill oacl of llo dovicos.
Ior oacl of llo llroo bool dovicos, llo BIOS vouId llon:
- caII llo iniliaIizalion codo villin llo dovico drivor. Tlo iniliaIizalion codo
vouId llon compIolo llo proparalion of llo dovico for uso.
- Tlo BIOS vouId llon sol llo approprialo bils in ils configuralion Command
rogislor (o.g., Bus Maslor InabIo, olc.) lo onabIo llo dovico and bring il on-
Iino.
BIOS Boots PIug-and-PIay OS and Passes Pointer To It
Tlo syslom BIOS llon usos llo llroo dovicos lo bool llo OS inlo momory and
passos conlroI lo llo OS. Il aIso passos llo OS a poinlor llal poinls lo llo load of
llo Iisl of dala slrucluros llal idonlify aII of llo dovicos llal llo OS las lo vorI
vill.
OS Locates and Loads Drivers and CaIIs Init Code In Each
Nolo llal rofors lo llo IniliaIizalion codo porlion of llo drivor. Tlo OS
llon Iocalos llo disI-basod drivors for oacl dovico and Ioads llom inlo momory
ono-by-ono. As il Ioads oacl drivor, il llon caIIs ils iniliaIizalion codo onlry
poinl and llo drivor compIolos llo dovico-spocific solup of llo dovico and
brings llo dovico on-Iino. Tlo maclino is nov up and running and llo OS man-
agos llo syslom dovicos from llis poinl forvard.
893
--
--
The Previous Chapter
Tlo provious claplor providod a dolaiIod doscriplion of dovico ROMs associ-
alod vill ICI, ICI Ixpross, and ICI-X funclions. Tlis incIudod llo foIIoving
lopics:
- dovico ROM doloclion.
- inlornaI codo/dala formal.
- sladoving.
- iniliaIizalion codo oxoculion.
- inlorrupl looIing.
This Chapter
Tlis claplor providos a doscriplion of:
- Tlo ICI Ixpross CapabiIily rogislor sol in a funclions ICI-compalibIo con-
figuralion spaco.
- Tlo oplionaI ICI Ixpross Ixlondod CapabiIilios rogislor sols in a funclions
oxlondod configuralion spaco:
Tlo Advancod Irror Roporling CapabiIily rogislor sol.
VirluaI ClannoI CapabiIily rogislor sol.
Dovico SoriaI Numbor CapabiIily rogislor sol.
Iovor Budgoling CapabiIily rogislor sol.
- RCRBs.
PCI Express System Architecture
894
Introduction
Rofor lo Iiguro 24-1 on pago 895. As doscribod oarIior in Iacl Iunclion ImpIo-
monls a Sol of Configuralion Rogislors on pago 715, oacl ICI Ixpross funclion
las a dodicalod 4KB momory addross rango villin vlicl ils configuralion rog-
islors aro impIomonlod. Iacl Ixpross funclion musl impIomonl llo ICI Ixpross
CapabiIily rogislor sol somovloro in llo Iovor 48 dvords of llo ICI-compalibIo
rogislor spaco (i.o., villin llo Iovor 48 dvord rogion of llo firsl 64 dvords of
configuralion spaco). In addilion, llo funclion may oplionaIIy impIomonl any of
llo ICI Ixpross Ixlondod CapabiIily rogislor sols. Tlo soclions llal foIIov pro-
vido a dolaiIod doscriplion of oacl of lloso Ixpross-spocific rogislor sols.
Chapter 24: Express-Specific Configuration Registers
895
-
PCI Express System Architecture
896
PCI Express CapabiIity Register Set
Introduction
Rofor lo Iiguro 24-2 on pago 897. Ollorviso roforrod lo as llo ICI Ixpross Capa-
biIily Slrucluro, impIomonlalion of llo ICI Ixpross CapabiIily rogislor sol is
mandalory for oacl funclion. Il is impIomonlod as parl of llo IinIod Iisl of
CapabiIily rogislor sols llal rosido in llo Iovor 48 dvords of a funclions ICI-
compalibIo rogislor aroa. Il slouId bo nolod lovovor, llal somo porlions of llis
rogislor sol aro oplionaI.
Rogislor impIomonlalion roquiromonls:
- Ivory Ixpross funclion musl impIomonl llo rogislors llal rosido in dvords
0-llrougl-4.
- Tlo bridgo associalod vill oacl Rool Iorl musl impIomonl llo rogislors
llal rosido in dvords sovon and oigll.
- Iacl bridgo associalod vill a Rool Iorl or a dovnslroam Svilcl Iorl llal is
connoclod lo a sIol (i.o., an add-in card sIol) musl impIomonl llo rogislors
llal rosido in dvords fivo and six.
Tlo soclions llal foIIov provido a dolaiIod doscriplion of oacl of lloso rogislors.
Chapter 24: Express-Specific Configuration Registers
897
Required Registers
GeneraI
Tlo soclions llal foIIov doscribo oacl of llo roquirod rogislors villin llo ICI
Ixpross CapabiIily rogislor sol. Tlo foIIoving rogislors musl bo impIomonlod by
aII Ixpross funclions:
- ICI Ixpross CapabiIily ID Rogislor
- Noxl CapabiIily Ioinlor Rogislor
- ICI Ixpross CapabiIilios Rogislor
- Dovico CapabiIilios Rogislor
- Dovico ConlroI Rogislor
- Dovico Slalus Rogislor
- IinI CapabiIilios Rogislor
- IinI ConlroI Rogislor
- IinI Slalus Rogislor
-- -
PCI Express System Architecture
898
PCI Express CapabiIity ID Register
Tlis road-onIy fioId musl conlain llo vaIuo 10l, indicaling llis is llo slarl of llo
ICI Ixpross CapabiIily rogislor sol.
Next CapabiIity Pointer Register
Tlis road-onIy fioId conlains ono of llo foIIoving:
- Tlo dvord-aIignod, non-zoro offsol lo llo noxl capabiIily rogislor sol in llo
Iovor 48 dvords of llo funclions ICI-compalibIo configuralion spaco.
- 00l, if llo ICI Ixpross CapabiIily rogislor sol is llo finaI rogislor sol in llo
IinIod Iisl of capabiIily rogislor sols in llo funclions ICI-compalibIo config-
uralion spaco.
PCI Express CapabiIities Register
Iiguro 24-3 on pago 898 iIIuslralos llis rogislor and TabIo 24 - 1 on pago 899 pro-
vidos a doscriplion of oacl bil fioId in llis rogislor.
-- - -
Chapter 24: Express-Specific Configuration Registers
899
-- - -
- -
3:0 RO -. SIG-dofinod ICI Ixpross capabiIily slrucluro
vorsion numbor (musl bo 1l).
7:4 RO . Ixpross IogicaI dovico lypo:
- 0000b: -- . Somo OSs and/or procossors
may nol supporl IO accossos (i.o., accossos using IO rallor llan
momory addrossos). Tlis boing llo caso, llo dosignor of a nalivo
ICI Ixpross funclion slouId avoid llo uso of IO BARs.
Hovovor, llo largol syslom llal a funclion is dosignod for may
uso llo funclion as ono of llo bool dovicos (i.o., llo bool inpul
dovico (o.g., Ioyboard), oulpul dispIay dovico, or bool mass
slorago dovico) and may uliIizo a Iogacy dovico drivor for llo
funclion al slarlup limo. Tlo Iogacy drivor may assumo llal llo
funclions dovico-spocific rogislor sol rosidos in IO spaco. In llis
caso, llo funclion dosignor vouId suppIy an IO BAR lo vlicl
llo configuralion soflvaro viII assign an IO addross rango.
Wlon llo OS bool las compIolod and llo OS las Ioadod a
nalivo ICI Ixpross drivor for llo funclion, lovovor, llo OS may
doaIIocalo aII Iogacy IO addross rangos proviousIy assignod lo
llo soIoclod bool dovicos. Irom llal poinl forvard and for llo
duralion of llo povor-up sossion, llo nalivo drivor viII uliIizo
momory accossos lo communicalo vill ils associalod funclion
llrougl llo funclions momory BARs.
- 0001b: -- . A funclion llal roquiros
IO spaco assignmonl llrougl BARs for run-limo oporalions.
Ixlondod configuralion spaco capabiIilios, if impIomonlod on
Iogacy ICI Ixpross Indpoinl dovicos, may bo ignorod by sofl-
varo.
- 0100b: of ICI Ixpross Rool CompIox.
- 0101b: - .
- 0110b: - .
- 0111b: -- .
- 1000b: -- .
- AII ollor oncodings aro rosorvod.
OnIy vaIid for funclions vill a Typo 1 configuralion rogislor
Iayoul.
PCI Express System Architecture
900
Device CapabiIities Register
Iiguro 24-4 on pago 901 and TabIo 24 - 2 on pago 901 provido a doscriplion of
oacl bil fioId in llis rogislor. Tlis rogislor dofinos oporalionaI claraclorislics llal
aro gIobaIIy appIicabIo lo llo dovico (and aII funclions llal rosido villin il).
8 HWInil . Wlon sol, indicalos llal llis Rool Iorl or
Svilcl dovnslroam porl is connoclod lo an add-in card sIol (rallor
llan lo an inlogralod compononl or boing disabIod). Soo Classis
and SIol Numbor Assignmonl on pago 861 for moro informalion.
13:9 RO -- . If llis funclion is aIIocalod moro
llan ono MSI inlorrupl mossago vaIuo (soo Mossago Dala Rogis-
lor on pago 335), llis rogislor conlains llo MSI Dala vaIuo llal is
vrillon lo llo MSI doslinalion addross vlon any slalus bil in
oillor llo SIol Slalus rogislor (soo SIol Slalus Rogislor on
pago 925) or llo Rool Slalus rogislor (soo Rool Slalus Rogislor on
pago 928) of llis funclion aro sol. If syslom soflvaro slouId aIlor
llo numbor of mossago dala vaIuos assignod lo llo funclion, llo
funclions lardvaro musl updalo llis fioId lo rofIocl llo clango.
-- - -
- -
Chapter 24: Express-Specific Configuration Registers
901
- -
- -
- -
2:0 . Max dala payIoad sizo llal llo funclion sup-
porls for TIIs:
- 000b = 128 bylos max payIoad sizo
- 001b = 256 bylos max payIoad sizo
- 010b = 512 bylos max payIoad sizo
- 011b = 1KB max payIoad sizo
- 100b = 2KB max payIoad sizo
- 101b = 4KB max payIoad sizo
- 110b = Rosorvod
- 111b = Rosorvod
PCI Express System Architecture
902
4:3 - .
: NormaIIy, oacl Ixpross funclion (vlon acling as a Roquoslor)
is Iimilod lo no moro llan 32 oulslanding roquosls curronlIy availing com-
pIolion (as indicalod by llo Iovor fivo bils of llo lransaclion Tag, llo uppor
llroo bils of llo Tag musl bo zoro). Hovovor, a funclion may roquiro moro
llan llis. If llo Ixlondod Tag IioId is supporlod (soo bil 5 in llis labIo) and
if llo Ixlondod Tag IioId InabIo bil in llo Dovico ConlroI rogislor is sol (soo
Dovico ConlroI Rogislor on pago 905), llo max is incroasod lo 256 and aII
oigll bils of llo Roquoslor ID Tag fioId aro usod vlon a funclion villin llo
dovico issuos a roquosl pacIol. If a funclion roquiros a groalor Iimil llan
256, il may do llis via Ilanlom Iunclions.
-: Wlon llo dovico villin vlicl a funclion rosidos doos nol
impIomonl aII oigll funclions, a non-zoro vaIuo in llis fioId indicalos llal
llis is so. Assuming aII funclions aro nol impIomonlod and llal llo pro-
grammor las sol llo Ilanlom Iunclion InabIo bil in llo Dovico ConlroI
rogislor (soo Dovico ConlroI Rogislor on pago 905), a funclion may issuo
roquosl pacIols using ils ovn funclion numbor as voII as ono or moro addi-
lionaI funclion numbors.
Tlis fioId indicalos llo numbor of msbs of llo funclion numbor porlion of
Roquoslor ID llal aro IogicaIIy combinod vill llo Tag idonlifior.
- 00b. Tlo - villin llis dovico.
- 01b. Tlo msb of llo funclion numbor in llo Roquoslor ID is usod for
Ilanlom Iunclions. Tlo dovico dosignor may impIomonl funclions 0-3.
Wlon issuing roquosl pacIols, - - -
- - - -
.
- 10b. Tlo lvo msbs of llo funclion numbor in llo Roquoslor ID aro usod
for Ilanlom Iunclions. Tlo dovico dosignor may impIomonl funclions 0
and 1. Wlon issuing roquosl pacIols, - -
- - - . -
- - - - .
- 11b. AII llroo bils of llo funclion numbor in llo Roquoslor ID aro usod for
Ilanlom Iunclions. Tlo dovico dosignor musl onIy impIomonl
(and il - - - ).
- -
- -
Chapter 24: Express-Specific Configuration Registers
903
5 . Max supporlod sizo of llo Tag fioId vlon
llis funclion acls as a Roquoslor.
- 0 = - (max of 32 oulslanding roquosl por
Roquoslor).
- 1 = - (max of 256 oulslanding roquosl por
Roquoslor).
If 8-bil Tags aro supporlod and viII bo usod, llis foaluro is onabIod by sol-
ling llo Ixlondod Tag IioId InabIo bil in llo Dovico ConlroI rogislor (soo
Dovico ConlroI Rogislor on pago 905) lo ono.
8:6 - . AccoplabIo lolaI Ialoncy llal an Ind-
poinl can villsland duo lo llo lransilion from llo I0s slalo lo llo I0 slalo
(soo I0s Ixil Ialoncy Updalo on pago 625). Tlis vaIuo is an indirocl indi-
calion of llo amounl of llo Indpoinls inlornaI bufforing. Iovor manago-
monl soflvaro usos llis vaIuo lo comparo againsl llo I0s oxil Ialoncios
roporlod by aII compononls in llo pall bolvoon llis Indpoinl and ils par-
onl Rool Iorl lo dolormino vlollor ASIM I0s onlry can bo usod vill no
Ioss of porformanco.
- 000b = Ioss llan 64ns
- 001b = 64ns lo Ioss llan 128ns
- 010b = 128ns lo Ioss llan 256ns
- 011b = 256ns lo Ioss llan 51 ns
- 100b = 512ns lo Ioss llan 1s
- 101b = 1s lo Ioss llan 2s
- 110b = 2s-4s
- 111b = Moro llan 4s
- -
- -
PCI Express System Architecture
904
11:9 . AccoplabIo Ialoncy llal an Indpoinl can
villsland duo lo llo lransilion from I1 slalo lo llo I0 slalo (soo I1 Ixil
Ialoncy Updalo on pago 626). Tlis vaIuo is an indirocl indicalion of llo
amounl of llo Indpoinls inlornaI bufforing. Iovor managomonl soflvaro
usos llis vaIuo lo comparo againsl llo I1 Ixil Ialoncios roporlod by aII
compononls in llo pall bolvoon llis Indpoinl and ils paronl Rool Iorl lo
dolormino vlollor ASIM I1 onlry can bo usod vill no Ioss of porfor-
manco.
- 000b = Ioss llan 1s
- 001b = 1s lo Ioss llan 2s
- 010b = 2s lo Ioss llan 4s
- 011b = 4s lo Ioss llan 8s
- 100b = 8s lo Ioss llan 16s
- 101b = 16s lo Ioss llan 32s
- 110b = 32s-64s
- 111b = Moro llan 64s
12 -. Wlon sol lo ono, indicalos an Allonlion Bullon is
impIomonlod on llo card or moduIo. VaIid for llo foIIoving ICI Ixpross
dovico Typos:
- Ixpross Indpoinl dovico
- Iogacy Ixpross Indpoinl dovico
- Svilcl upslroam porl
- Ixpross-lo-ICI/ICI-X bridgo
13 -. Wlon sol lo ono, indicalos an Allonlion Indi-
calor is impIomonlod on llo card or moduIo. VaIid for llo foIIoving ICI
Ixpross dovico Typos:
- Ixpross Indpoinl dovico
- Iogacy Ixpross Indpoinl dovico
- Svilcl upslroam porl
- Ixpross-lo-ICI/ICI-X bridgo
- -
- -
Chapter 24: Express-Specific Configuration Registers
905
Device ControI Register
Iiguro 24-5 on pago 906 and TabIo 24 - 3 on pago 906 provido a doscriplion of
oacl bil fioId in llis rogislor.
14 -. Wlon sol lo ono, indicalos a Iovor Indicalor is
impIomonlod on llo card or moduIo. VaIid for llo foIIoving ICI Ixpross
dovico Typos:
- Ixpross Indpoinl dovico
- Iogacy Ixpross Indpoinl dovico
- Svilcl upslroam porl
- Ixpross-lo-ICI/ICI-X bridgo
25:18 (upslroam porls onIy). In combinalion
vill llo SIol Iovor Iimil ScaIo vaIuo (soo llo noxl rov in llis labIo), spoci-
fios llo uppor Iimil on povor suppIiod by sIol:
Iovor Iimil (in Walls) = SIol Iovor Iimil vaIuo x SIol Iovor Iimil ScaIo
vaIuo
Tlis vaIuo is oillor aulomalicaIIy sol by llo rocoipl of a Sol SIol Iovor Iimil
Mossago rocoivod from llo porl on llo dovnslroam ond of llo IinI, or is
lardvirod lo zoro.
Rofor lo SIol Iovor Iimil ConlroI on pago 562 for a dolaiIod doscriplion.
27:26 (upslroam porls onIy). Spocifios llo scaIo
usod for llo caIcuIalion of llo Iovor Iimil (soo llo provious rov in llis
labIo):
- 00b = 1.0x
- 01b = 0.1x
- 10b = 0.01x
- 11b = 0.001x
Tlis vaIuo is oillor aulomalicaIIy sol by llo rocoipl of a Sol SIol Iovor Iimil
Mossago rocoivod from llo porl on llo dovnslroam ond of llo IinI, or is
lardvirod lo zoro.
- -
- -
PCI Express System Architecture
906
-
-
- -
0 . Ior a muIlifunclion dovico, llis bil
conlroIs orror roporling for aII funclions. Ior a Rool Iorl, llo roporling of
corroclabIo orrors occurs inlornaIIy villin llo Rool CompIox. No oxlornaI
IRR_COR Mossago is gonoralod.
DofauIl vaIuo of llis fioId is 0.
1 Tlis bil conlroIs llo roporling of non-
falaI orrors. Ior a muIlifunclion dovico, il conlroIs orror roporling for aII
funclions. Ior a Rool Iorl, llo roporling of non-falaI orrors occurs inlor-
naIIy villin llo Rool CompIox. No oxlornaI IRR_NONIATAI Mossago is
gonoralod.
DofauIl vaIuo of llis fioId is 0.
Chapter 24: Express-Specific Configuration Registers
907
2 Tlis bil conlroIs llo roporling of falaI orrors.
Ior a muIlifunclion dovico, il conlroIs orror roporling for aII funclions
villin llo dovico. Ior a Rool Iorl, llo roporling of falaI orrors occurs inlor-
naIIy villin llo Rool CompIox. No oxlornaI IRR_IATAI Mossago is gonor-
alod.
DofauIl vaIuo of llis bil is 0.
3 - - Wlon sol lo ono, llis bil
onabIos llo roporling of Unsupporlod Roquosls. Ior a muIlifunclion dovico,
il conlroIs UR roporling for aII funclions. Tlo roporling of orror mossagos
(IRR_COR, IRR_NONIATAI, IRR_IATAI) rocoivod by a Rool Iorl is
conlroIIod oxcIusivoIy by llo Rool ConlroI rogislor (soo Rool ConlroI Rog-
islor on pago 926).
DofauIl vaIuo of llis bil is 0.
4 Wlon sol lo ono, llo dovico is pormillod lo sol
llo RoIaxod Ordoring bil (rofor lo RoIaxod Ordoring on pago 319) in llo
Allribulos fioId of roquosls il inilialos llal do nol roquiro slrong vrilo
ordoring.
DofauIl vaIuo of llis bil is 1, bul il may bo lardvirod lo 0 if a dovico novor
sols llo RoIaxod Ordoring allribulo in roquosls il inilialos as a Roquoslor.
7:5 Sols llo max TII dala payIoad sizo for llo dovico. As a
Rocoivor, llo dovico musl landIo TIIs as Iargo as llo sol vaIuo, as a Trans-
millor, llo dovico musl nol gonoralo TIIs oxcooding llo sol vaIuo. Iormissi-
bIo vaIuos llal can bo programmod aro indicalod by llo Max IayIoad Sizo
Supporlod in llo Dovico CapabiIilios rogislor (soo Dovico CapabiIilios Rog-
islor on pago 900).
- 000b = 128 bylo max payIoad sizo
- 001b = 256 bylo max payIoad sizo
- 010b = 512 bylo max payIoad sizo
- 011b = 1024 bylo max payIoad sizo
- 100b = 2048 bylo max payIoad sizo
- 101b = 4096 bylo max payIoad sizo
- 110b = Rosorvod
- 111b = Rosorvod
DofauIl vaIuo of llis fioId is 000b.
-
- -
PCI Express System Architecture
908
8 Wlon sol lo ono, onabIos a dovico lo uso an 8-
bil Tag fioId as a roquoslor. If cIoarod lo zoro, llo dovico is roslriclod lo a 5-
bil Tag fioId. AIso rofor lo llo doscriplion of llo Ilanlom Iunclions Sup-
porlod fioId in TabIo 24 - 2 on pago 901.
Tlo dofauIl vaIuo of llis bil is 0. Dovicos llal do nol impIomonl llis capa-
biIily lardviro llis bil lo 0.
9 - . Soo llo doscriplion of llo Ilanlom Iunclions
Supporlod fioId in TabIo 24 - 2 on pago 901.
DofauIl vaIuo of llis bil is 0. Dovicos llal do nol impIomonl llis capabiIily
lardviro llis bil lo 0.
10 Wlon sol lo ono, llis bil onabIos
a dovico lo drav Aux povor indopondonl of IMI Aux povor. In a Iogacy
OS onvironmonl, dovicos llal roquiro Aux povor slouId conlinuo lo indi-
calo IMI Aux povor roquiromonls. Aux povor is aIIocalod as roquoslod in
llo Aux Curronl fioId of llo Iovor Managomonl CapabiIilios rogislor
(IMC, soo AuxiIiary Iovor on pago 645), indopondonl of llo IMI InabIo
bil in llo Iovor Managomonl ConlroI/Slalus rogislor (IMCSR, soo IM
ConlroI/Slalus (IMCSR) Rogislor on pago 599). Ior muIlifunclion
dovicos, a compononl is aIIovod lo drav Aux povor if al Ioasl ono of llo
funclions las llis bil sol.
- : Dovicos llal consumo Aux povor musl prosorvo llo vaIuo in llis
fioId vlon Aux povor is avaiIabIo. In sucl dovicos, llis rogislor vaIuo is
nol modifiod by lol, varm, or coId rosol.
- Dovicos llal do nol impIomonl llis capabiIily lardviro llis bil lo 0.
-
- -
Chapter 24: Express-Specific Configuration Registers
909
Device Status Register
Iiguro 24-6 on pago 910 and TabIo 24 - 4 on pago 910 provido a doscriplion of
oacl bil fioId in llis rogislor.
11 Soflvaro sols llis bil lo ono if llo aroa of momory llis
Roquoslor viII accoss is nol caclod by llo procossor(s). Wlon a roquosl
pacIol llal largols syslom momory is rocoivod by llo Rool CompIox (i.o.,
llo momory llal llo procossors caclo from), llo Rool CompIox doos nol
lavo lo doIay llo accoss lo momory lo porform a snoop lransaclion on llo
procossor bus if llo No Snoop allribulo bil is sol. Tlis spoods up llo mom-
ory accoss.
- Nolo llal solling llis bil lo ono slouId nol causo a funclion lo unoquivo-
caIIy sol llo No Snoop allribulo on ovory momory roquosls llal il ini-
lialos. Tlo funclion may onIy sol llo bil vlon il Inovs llal llo
procossor(s) aro nol cacling from llo aroa of momory boing accossod.
- DofauIl vaIuo of llis bil is 1 and il may bo lardvirod lo 0 if a dovico
novor sols llo No Snoop allribulo in Roquosl lransaclions llal il inilialos.
14:12 - Max road roquosl sizo for llo dovico vlon acl-
ing as llo Roquoslor. Tlo dovico musl nol gonoralo road roquosls vill a sizo
> llis vaIuo.
- 000b = 128 bylo max road roquosl sizo
- 001b = 256 bylo max road roquosl sizo
- 010b = 512 bylo max road roquosl sizo
- 011b = 1KB max road roquosl sizo
- 100b = 2KB max road roquosl sizo
- 101b = 4KB max road roquosl sizo
- 110b = Rosorvod
- 111b = Rosorvod
Dovicos llal do nol gonoralo road roquosls Iargor llan 128 bylos aro pormil-
lod lo impIomonl llis fioId as Road OnIy (RO) vill a vaIuo of 000b.
DofauIl vaIuo of llis fioId is 010b.
-
- -
PCI Express System Architecture
910
- -
- -
- -
0 RW1C . A ono indicalos llal ono or moro cor-
roclabIo orrors voro doloclod sinco llo Iasl limo llis bil vas cIoarod
by soflvaro. CorroclabIo orrors aro rofIoclod by llis bil rogardIoss of
vlollor orror roporling is onabIod or nol in llo Dovico ConlroI rog-
islor (soo Dovico ConlroI Rogislor on pago 905). In a muIlifunc-
lion dovico, oacl funclion indicalos vlollor or nol llal funclion
las doloclod any corroclabIo orrors using llis bil.
Ior dovicos supporling Advancod Irror HandIing (soo Advancod
Irror Roporling Moclanisms on pago 382), orrors aro Ioggod in
llis rogislor rogardIoss of llo sollings of llo CorroclabIo Irror MasI
rogislor.
DofauIl vaIuo of llis bil is 0.
Chapter 24: Express-Specific Configuration Registers
911
1 RW1C . A ono indicalos llal ono or moro non-
falaI orrors voro doloclod sinco llo Iasl limo llis bil vas cIoarod by
soflvaro. Non-falaI orrors aro rofIoclod in llis bil rogardIoss of
vlollor orror roporling is onabIod or nol in llo Dovico ConlroI rog-
islor (soo Dovico ConlroI Rogislor on pago 905). In a muIlifunc-
lion dovico, oacl funclion indicalos vlollor or nol llal funclion
las doloclod any non-falaI orrors using llis bil.
Ior dovicos supporling Advancod Irror HandIing, orrors aro
Ioggod in llis rogislor rogardIoss of llo sollings of llo Uncorrocl-
abIo Irror MasI rogislor ( - --
- - - - - ).
DofauIl vaIuo of llis bil is 0.
2 RW1C . A ono indicalos llal ono or moro falaI orrors
voro doloclod sinco llo Iasl limo llis bil vas cIoarod by soflvaro.
IalaI orrors aro rofIoclod in llis bil rogardIoss of vlollor orror
roporling is onabIod or nol in llo Dovico ConlroI rogislor (soo
Dovico ConlroI Rogislor on pago 905). In a muIlifunclion dovico,
oacl funclion indicalos vlollor or nol llal funclion las doloclod
any falaI orrors using llis bil.
Ior dovicos supporling Advancod Irror HandIing (soo Advancod
Irror Roporling CapabiIily on pago 930), orrors aro Ioggod in llis
rogislor rogardIoss of llo sollings of llo UncorroclabIo Irror MasI
rogislor ( - - --
- -)
DofauIl vaIuo of llis bil is 0.
3 RW1C - - . Wlon sol lo ono, indicalos
llal llo funclion rocoivod an Unsupporlod Roquosl. Irrors aro
rofIoclod in llis bil rogardIoss of vlollor orror roporling is onabIod
or nol in llo Dovico ConlroI rogislor (soo Dovico ConlroI Rogislor
on pago 905). In a muIlifunclion dovico, oacl funclion indicalos
vlollor or nol llal funclion las doloclod any UR orrors using llis
bil.
DofauIl vaIuo of llis fioId is 0.
4 RO . Dovicos llal roquiro Aux povor sol llis bil lo
ono if Aux povor is doloclod by llo dovico.
- -
- -
PCI Express System Architecture
912
Link Registers (Required)
Tloro aro llroo IinI-roIalod rogislors:
- Tlo IinI CapabiIilios Rogislor.
- Tlo IinI ConlroI Rogislor.
- Tlo IinI Slalus Rogislor.
- - Iiguro 24-7 on pago 913 and TabIo 24 - 5 on
pago 913 provido a doscriplion of oacl bil fioId in llis rogislor.
5 RO -- . Wlon sol lo ono, indicalos llal llis funclion
las issuod non-poslod roquosl pacIols vlicl lavo nol yol boon
compIolod (oillor by llo rocoipl of a corrosponding CompIolion, or
by llo CompIolion Timooul moclanism). A funclion roporls llis bil
cIoarod onIy vlon aII oulslanding non-poslod roquosls lavo com-
pIolod or lavo boon lorminalod by llo CompIolion Timooul mocla-
nism.
- -: Rool and Svilcl Iorls adloring soIoIy lo
llo 1.0a Ixpross spoc novor issuo non-poslod roquosls on lloir
ovn bolaIf. Sucl Rool and Svilcl Iorls lardviro llis bil lo 0b.
- -
- -
Chapter 24: Express-Specific Configuration Registers
913
- -
- -
- -
3:0 RO .
- 0001b = 2.5 Gb/s
- AII ollor oncodings aro rosorvod.
9:4 RO .
- 000000b = Rosorvod
- 000001b = x1
- 000010b = x2
- 000100b = x4
- 001000b = x8
- 001100b = x12
- 010000b = x16
- 100000b = x32
- AII ollor vaIuos aro rosorvod.
PCI Express System Architecture
914
11:10 RO . Indicalos llo
IovoI of ASIM supporlod on llis IinI.
- 00b = Rosorvod
- 01b = I0s Inlry Supporlod
- 10b = Rosorvod
- 11b = I0s and I1 Supporlod
Rofor lo IinI Aclivo Slalo Iovor Managomonl on pago 608 for
moro informalion.
14:12 RO - . Indicalos llo I0s oxil Ialoncy for llo IinI (i.o., llo
Iongll of limo llis Iorl roquiros lo compIolo a lransilion from I0s
lo I0).
- 000b = Ioss llan 64ns
- 001b = 64ns lo Ioss llan 128ns
- 010b = 128ns lo Ioss llan 256ns
- 011b = 256ns lo Ioss llan 512ns
- 100b = 512ns lo Ioss llan 1s
- 101b = 1s lo Ioss llan 2s
- 110b = 2s-4s
- 111b = Moro llan 4s
: Ixil Ialoncios may bo infIuoncod by a porls roforonco cIocI
configuralion (i.o., vlollor llo porl usos llo roforonco cIocI sup-
pIiod by llo porl al llo romolo ond of llo IinI or il providos il ovn
IocaI roforonco cIocI).
Rofor lo ASIM Ixil Ialoncy on pago 624 for moro informalion.
- -
- -
Chapter 24: Express-Specific Configuration Registers
915
- Iiguro 24-8 on pago 916 and TabIo 24 - 6 on
pago 916 provido a doscriplion of oacl bil fioId in llis rogislor.
17:15 RO . Indicalos llo I1 oxil Ialoncy for llo IinI (i.o., llo
Iongll of limo llis Iorl roquiros lo compIolo a lransilion from I1 lo
I0).
- 000b = Ioss llan 1s
- 001b = 1s lo Ioss llan 2s
- 010b = 2s lo Ioss llan 4s
- 011b = 4s lo Ioss llan 8s
- 100b = 8s lo Ioss llan 16s
- 101b = 16s lo Ioss llan 32s
- 110b = 32s-64s
- 111b = Moro llan 64s
: Ixil Ialoncios may bo infIuoncod by a porls roforonco cIocI
configuralion (i.o., vlollor llo porl usos llo roforonco cIocI sup-
pIiod by llo porl al llo romolo ond of llo IinI or il providos il ovn
IocaI roforonco cIocI). Rofor lo ASIM Ixil Ialoncy on pago 624
for moro informalion.
31:24 HWInil . Indicalos llo Iorl numbor associalod vill llis IinI.
Tlo porl numbor is assignod by llo lardvaro dosignor.
- -
- -
PCI Express System Architecture
916
-
-
- -
1:0 RW . ConlroIs llo
IovoI of ASIM supporlod on llo IinI.
- 00b = -
- 01b = - . Indicalos llo Transmillor onloring I0s
is supporlod. Tlo Rocoivor musl bo capabIo of onloring I0s ovon
vlon llis fioId is disabIod (00b).
- 10b =
- 11b = -
DofauIl vaIuo of llis fioId is 00b or 01b doponding on form faclor.
Al llo limo of vriling, onIy llo IIoclromoclanicaI spocifiod lad
boon roIoasod. Tlis spocificalion maIos no monlion of llo dofauIl
slalo of llo ASIM bils.
Chapter 24: Express-Specific Configuration Registers
917
3
for
Rool
and
Svilcl
Iorls
for
Ind-
poinls
- -: Hardvirod. Indicalos llo RCB vaIuo for llo Rool
Iorl. Il is a lardvirod, road-onIy vaIuo indicaling llo RCB sup-
porl capabiIilios:
0b = 64 bylo
1b = 128 bylo
- -: Sol by configuralion soflvaro lo indicalo llo RCB
vaIuo of llo Rool Iorl upslroam from llo Indpoinl. Dovicos llal
do nol impIomonl llis foaluro musl lardviro llo fioId lo 0b.
0b = 64 bylo
1b = 128 bylo
- -: Rosorvod and lardvirod lo 0b.
4 RW -. 1 = disabIo llo IinI. Rosorvod on Indpoinl dovicos
and Svilcl upslroam porls. Tlo vaIuo vrillon can bo road bacI
immodialoIy, boforo llo IinI las acluaIIy clangod slalo.
DofauIl vaIuo of llis bil is 0b.
5 RW .
- 1 = inilialo IinI rolraining by clanging llo IlysicaI Iayor
ITSSM lo llo Rocovory slalo.
- Roads of llis bil aIvays rolurn 0b.
- Rosorvod on Indpoinl dovicos and Svilcl upslroam porls.
Soo IinI Irrors on pago 379 for moro informalion.
6 RW .
- 1 indicalos llal llis compononl and llo compononl al llo oppo-
silo ond of llis IinI aro using a common roforonco cIocI.
- 0 indicalos llal llis compononl and llo compononl al llo oppo-
silo ond of llis IinI aro using soparalo roforonco cIocIs.
- A compononl faclors llis bil solling inlo ils caIcuIalion of llo I0s
and I1 Ixil Ialoncios (soo TabIo 24 - 5 on pago 913) llal il roporls
in llo IinI CapabiIilios rogislor.
- Aflor clanging llis bil in a compononl on oillor ond of a IinI,
soflvaro musl lriggor llo IinI lo rolrain by solling llo Rolrain
IinI bil lo ono in llis rogislor.
- DofauIl vaIuo of llis fioId is 0b.
Soo ASIM Ixil Ialoncy on pago 624 for moro informalion.
-
- -
PCI Express System Architecture
918
- - Iiguro 24-9 on pago 918 and TabIo 24 - 7 on
pago 919 provido a doscriplion of oacl bil fioId in llis rogislor.
7 RW . Wlon sol lo ono, llis bil forcos llo lransmission of:
- 4096 ITS Ordorod Sols during llo I0s slalo
- foIIovod by a singIo SKI ordorod sol prior lo onloring llo I0
slalo,
- as voII as llo lransmission of 1024 TS1 Ordorod Sols in llo I1
slalo prior lo onloring llo Rocovory slalo.
Tlis modo givos oxlornaI dovicos (o.g., Iogic anaIyzors) llal may bo
moniloring IinI aclivily limo lo acliovo bil and symboI IocI boforo
llo IinI onlors llo I0 or Rocovory slalo and rosumos communica-
lion. DofauIl vaIuo for llis bil is 0b.
Soo I0s Slalo on pago 611 for moro informalion.
- -
-
- -
Chapter 24: Express-Specific Configuration Registers
919
- -
- -
3:0 RO . Tlo nogolialod IinI spood.
- 0001b = 2.5 Gb/s
AII ollor oncodings aro rosorvod.
9:4 RO . Tlo nogolialod IinI vidll.
- 000001b = x1
- 000010b = x2
- 000100b = x4
- 001000b = x8
- 001100b = x12
- 010000b = x16
- 100000b = x32
- AII ollor oncodings aro rosorvod.
Soo Nogolialo IinI Widll|9:4] on pago 551 for moro informalion.
10 RO . 1 = indicalos llal a IinI lraining orror occurrod.
Rosorvod on Indpoinl dovicos and Svilcl upslroam porls. CIoarod
by lardvaro upon succossfuI lraining of llo IinI lo llo I0 IinI
slalo.
Soo IinI Irrors on pago 379 for moro informalion.
11 RO . Wlon sol lo ono, indicalos llal IinI lraining is in
progross (IlysicaI Iayor ITSSM is in llo Configuralion or Rocov-
ory slalo) or llal llo Rolrain IinI bil vas sol lo ono bul IinI lrain-
ing las nol yol bogun.
- Hardvaro cIoars llis bil onco IinI lraining is compIolo.
- Tlis bil is nol appIicabIo and rosorvod on Indpoinl dovicos and
llo Upslroam Iorls of Svilclos.
Soo IinI Irrors on pago 379 for moro informalion.
12 HWInil . Tlis bil indicalos llal llo compononl
usos llo samo plysicaI roforonco cIocI llal llo pIalform providos
on llo connoclor. If llo dovico usos an indopondonl cIocI irrospoc-
livo of llo prosonco of a roforonco on llo connoclor, llis bil musl bo
cIoar.
Soo Config. Rogislors Usod for ASIM Ixil Ialoncy Managomonl
and Roporling on pago 628 for moro informalion.
PCI Express System Architecture
920
SIot Registers
Introduction
Tlo sIol-spocific rogislor sol musl bo impIomonlod for Rool Iorl bridgos and
Svilcl dovnslroam porl bridgos llal aro connoclod lo add-in sIol connoclors.
Tlo rogislors aro:
- SIol CapabiIilios Rogislor
- SIol ConlroI Rogislor
- SIol Slalus Rogislor
Tloy aro doscribod in llo soclions llal foIIov.
SIot CapabiIities Register
Iiguro 24-10 on pago 921 and TabIo 24 - 8 on pago 921 provido a doscriplion of
oacl bil fioId in llis rogislor.
Chapter 24: Express-Specific Configuration Registers
921
- -
- - -
- -
0 -. 1 = Allonlion Bullon is impIomonlod on llo classis
for llis sIol.
1 -. 1 = A Iovor ConlroIIor is impIomonlod for llis
sIol.
2 - -. 1 = An MRI
Sonsor is impIomonlod on llo classis for llis sIol.
3 -. 1 = An Allonlion Indicalor is impIomonlod on
llo classis for llis sIol.
PCI Express System Architecture
922
4 -. 1 = A Iovor Indicalor is impIomonlod on llo clas-
sis for llis sIol.
5 -. 1 = A dovico inslaIIod in llis sIol may bo romovod from
llo syslom villoul any prior nolificalion.
6 . 1 = Tlis sIol supporls Hol-IIug oporalions.
14:7 . In combinalion vill llo SIol Iovor Iimil ScaIo
vaIuo (soo llo noxl rov in llis labIo), spocifios llo max povor (in Walls) avaiI-
abIo lo llo dovico inslaIIod in llis sIol.
-
.
- Tlis fioId musl bo impIomonlod if llo SIol ImpIomonlod bil is sol lo ono in
llo ICI Ixpross CapabiIilios Rogislor (soo ICI Ixpross CapabiIilios Rogis-
lor on pago 898).
- A vrilo lo llis fioId causos llo Iorl lo sond llo Sol SIol Iovor Iimil Mos-
sago upslroam lo llo porl al llo ollor ond of llo IinI.
- Tlo dofauIl vaIuo prior lo lardvaro/firmvaro iniliaIizalion is 0000 0000b.
Soo Tlo Iovor Budgol CapabiIilios Rogislor Sol on pago 564 for moro infor-
malion.
16:15 . Soo llo doscriplion in llo provious rov of llis labIo.
- IossibIo vaIuos:
00b = 1.0x
01b = 0.1x
10b = 0.01x
11b = 0.001x
- Tlis fioId musl bo impIomonlod if llo SIol ImpIomonlod bil is sol lo ono in
llo ICI Ixpross CapabiIilios Rogislor (soo ICI Ixpross CapabiIilios Rogis-
lor on pago 898).
- A vrilo lo llis fioId causos llo Iorl lo sond llo Sol SIol Iovor Iimil Mos-
sago upslroam lo llo porl al llo ollor ond of llo IinI.
- Tlo dofauIl vaIuo prior lo lardvaro/firmvaro iniliaIizalion is 00b.
- - -
- -
Chapter 24: Express-Specific Configuration Registers
923
SIot ControI Register
Iiguro 24-11 on pago 923 and TabIo 24 - 9 on pago 924 provido a doscriplion of
oacl bil fioId in llis rogislor.
31:19 - . Indicalos llo plysicaI sIol numbor allaclod lo llis
Iorl. Musl bo lardvaro iniliaIizod lo a vaIuo llal assigns a sIol numbor llal is
gIobaIIy uniquo villin llo classis. Musl bo iniliaIizod lo 0 for Iorls con-
noclod lo dovicos llal aro oillor inlogralod on llo syslom board or inlogralod
villin llo samo siIicon as llo Svilcl dovnslroam porl or llo Rool Iorl.
Soo Classis and SIol Numbor Assignmonl on pago 861 for moro informa-
lion.
-
- - -
- -
PCI Express System Architecture
924
- -
- -
0 -- . Wlon sol lo ono, onabIos llo gonoralion of
a Hol-IIug inlorrupl or a vaIoup ovonl vlon llo allonlion bullon is prossod.
DofauIl vaIuo of llis fioId is 0. Soo Allonlion Bullon on pago 667 for moro
informalion.
1 . Wlon sol lo ono, onabIos llo gonoralion of a
Hol-IIug inlorrupl or a vaIoup ovonl on a povor fauIl ovonl. DofauIl vaIuo
of llis fioId is 0.
2 - . Wlon sol lo ono, onabIos llo gonoralion of a
Hol-IIug inlorrupl or a vaIoup ovonl on an MRI sonsor clangod ovonl.
DofauIl vaIuo of llis fioId is 0.
Soo IIoclromoclanicaI InlorIocI (oplionaI) on pago 667 for moro informa-
lion.
3 - . Wlon sol lo ono, onabIos llo gonoralion of
a Hol-IIug inlorrupl or a vaIoup ovonl on a prosonco dolocl clangod ovonl.
DofauIl vaIuo of llis fioId is 0.
Soo SIol Slalus and Ivonls Managomonl on pago 674 for moro informalion.
4 . Wlon sol lo ono, onabIos llo gonor-
alion of a Hol-IIug inlorrupl vlon a command is compIolod by llo Hol-IIug
ConlroIIor.
DofauIl vaIuo of llis fioId is 0.
5 . Wlon sol lo ono, onabIos llo gonoralion of a Hol-
IIug inlorrupl on onabIod Hol-IIug ovonls.
DofauIl vaIuo of llis fioId is 0.
7:6 . A road from llis fioId rolurns llo curronl slalo of
llo Allonlion Indicalor, vliIo a vrilo sols llo Allonlion Indicalor lo llo slalo
indicalod boIov:
- 00b = Rosorvod
- 01b = On
- 10b = BIinI
- 11b = Off
Wrilos lo llis fioId aIso causo llo Iorl lo sond llo rospoclivo Allonlion Indica-
lor mossago.
Chapter 24: Express-Specific Configuration Registers
925
SIot Status Register
Iiguro 24-12 on pago 925 and TabIo 24 - 10 on pago 926 provido a doscriplion of
oacl bil fioId in llis rogislor.
9:8 . A road from llis fioId rolurns llo curronl slalo of
llo Iovor Indicalor, vliIo a vrilo sols llo Iovor Indicalor lo llo slalo indi-
calod boIov:
- 00b = Rosorvod
- 01b = On
- 10b = BIinI
- 11b = Off
Wrilos lo llis fioId aIso causo llo Iorl lo sond llo rospoclivo Iovor Indicalor
mossago.
10 . A road from llis fioId rolurns llo curronl slalo of
llo povor appIiod lo llo sIol, vliIo a vrilo sols llo povor slalo of llo sIol lo
llo slalo indicalod boIov:
- 0b = Iovor On
- 1b = Iovor Off
- -
- -
- -
PCI Express System Architecture
926
Root Port Registers
Introduction
AII Rool Iorls musl impIomonl llo Rool ConlroI and Rool Slalus rogislors. Tlo
foIIoving lvo soclions provido a dolaiIod doscriplion of lloso lvo rogislors.
Root ControI Register
Iiguro 24-13 on pago 927 and TabIo 24 - 11 on pago 927 provido a doscriplion of
oacl bil fioId in llis rogislor.
- -
- -
0 RW1C --. 1 = allonlion bullon prossod.
1 RW1C . 1 = Iovor ConlroIIor doloclod a povor fauIl
al llis sIol.
2 RW1C - . 1 = MRI Sonsor slalo clango doloclod.
3 RW1C - . 1 = Irosonco Dolocl clango doloclod.
4 RW1C . 1 = Hol-IIug ConlroIIor compIolod a com-
mand.
5 RO - . MRI sonsor slalus (if MRI impIomonlod).
- 0b = MRI CIosod
- 1b = MRI Opon
6 RO - . Wlon sol lo ono, a card is prosonl in llo sIol
(as indicalod oillor by an in-band moclanism or via llo Irosonco
Dolocl pins as dofinod in llo ICI Ixpross Card IIoclromoclanicaI
Spocificalion).
- 0b = SIol Imply
- 1b = Card Irosonl in sIol
Tlis fioId musl bo impIomonlod on aII Svilcl dovnslroam porls
and on Rool Iorls llal aro allaclod lo an add-in connoclor. Il is
lardvirod lo ono if llo porl is nol connoclod lo an add-in sIol con-
noclor.
Chapter 24: Express-Specific Configuration Registers
927
-
- -
- -
0 - . Wlon sol lo ono, a Syslom Irror is
gonoralod if a corroclabIo orror (IRR_COR) is roporlod by any of llo cliId
(i.o., dovnslroam) dovicos associalod vill llis Rool Iorl, or by llo Rool Iorl
ilsoIf. Tlo moclanism for signaIing a Syslom Irror lo llo syslom is syslom-
spocific (o.g., in an x86-basod syslom, a Non-MasIabIo InlorruplNMI
couId bo gonoralod lo llo procossor).
DofauIl vaIuo of llis bil is 0.
Soo Roporling Irrors lo llo Hosl Syslom on pago 392 for moro informalion.
1 - . Wlon sol lo ono, a Syslom Irror is
gonoralod if a non-falaI orror (IRR_NONIATAI) is roporlod by any of llo
cliId (i.o., dovnslroam) dovicos associalod vill llis Rool Iorl, or by llo Rool
Iorl ilsoIf. Tlo moclanism for signaIing a Syslom Irror lo llo syslom is sys-
lom-spocific (o.g., in an x86-basod syslom, a Non-MasIabIo InlorruplNMI
couId bo gonoralod lo llo procossor).
DofauIl vaIuo of llis bil is 0.
Soo Roporling Irrors lo llo Hosl Syslom on pago 392 for moro informalion.
PCI Express System Architecture
928
Root Status Register
Iiguro 24-14 on pago 928 and TabIo 24 - 12 on pago 929 provido a doscriplion of
oacl bil fioId in llis rogislor.
2 - . Wlon sol lo ono, a Syslom Irror is gonor-
alod if a IalaI orror (IRR_IATAI) is roporlod by any of llo cliId (i.o., dovn-
slroam) dovicos associalod vill llis Rool Iorl, or by llo Rool Iorl ilsoIf. Tlo
moclanism for signaIing a Syslom Irror lo llo syslom is syslom-spocific (o.g.,
in an x86-basod syslom, a Non-MasIabIo InlorruplNMIcouId bo gonor-
alod lo llo procossor).
DofauIl vaIuo of llis fioId is 0.
Soo Roporling Irrors lo llo Hosl Syslom on pago 392 for moro informalion.
3 . Wlon sol lo ono, onabIos inlorrupl gonoralion on
rocoipl of a IMI Mossago from a cliId (i.o., dovnslroam) dovico (vlicl sols
llo IMI Slalus bil in llo Rool Slalus rogislorsoo Rool Slalus Rogislor on
pago 928lo ono).
A IMI inlorrupl is aIso gonoralod vlon soflvaro sols llis bil lo ono (assum-
ing il vas originaIIy cIoarod lo zoro) vlon llo IMI Slalus bil in llo Rool Sla-
lus rogislor is sol lo ono.
DofauIl vaIuo of llis fioId is 0.
Soo Tlo IMI Soquonco on pago 640 for moro informalion.
- -
- -
- -
Chapter 24: Express-Specific Configuration Registers
929
PCI Express Extended CapabiIities
GeneraI
A ICI Ixpross funclion may oplionaIIy impIomonl any, aII, or nono of llo foI-
Ioving Ixlondod CapabiIily rogislor sols:
- Advancod Irror Roporling CapabiIily rogislor sol.
- VirluaI ClannoI (VC) CapabiIily rogislor sol.
- Dovico SoriaI Numbor CapabiIily rogislor sol.
- Iovor Budgoling CapabiIily rogislor sol.
Rofor lo Iiguro 24-1 on pago 895. Tlo firsl oxlondod capabiIily rogislor sol musl
bo impIomonlod al offsol 100l in a funclions 4KB configuralion spaco and ils
Inlancod CapabiIily Hoador rogislor (soo Iiguro 24-15 on pago 930) conlains a
poinlor (llo Noxl CapabiIily Offsol fioId, llis 12-bil fioId musl conlain oillor llo
dvord-aIignod slarl addross of llo noxl capabiIily rogislor sol, or a vaIuo of zoro
if llis is llo Iasl of llo oxlondod capabiIily rogislor sols) lo llo noxl oxlondod
capabiIily rogislor sol in llo Iisl. Tlo rospoclivo capabiIily IDs of oacl rogislor sol
aro:
- Advancod Irror Roporling CapabiIily rogislor sol. ID = 0001l.
- VirluaI ClannoI (VC) CapabiIily rogislor sol. ID = 0002l.
- -
- -
15:0 RO - . Conlains llo Roquoslor ID of llo Iasl cliId (i.o.,
dovnslroam) dovico lo issuo a IMI.
16 RW1C -. Wlon sol lo ono, indicalos llal IMI vas assorlod by
llo Roquoslor indicalod in llo IMI Roquoslor ID fioId. Subsoquonl
IMIs romain ponding unliI llis bil is cIoarod by soflvaro by vril-
ing a 1 lo il.
17 RO . Wlon sol lo ono and llo IMI Slalus bil is sol, indi-
calos llal anollor IMI is ponding. Wlon llo IMI Slalus bil is
cIoarod by soflvaro, llo Rool Iorl lardvaro indicalos llo doIivory
of llo noxl IMI by solling llo IMI Slalus bil again and updaling
llo Roquoslor ID fioId approprialoIy. Tlo IMI Ionding bil is
cIoarod by lardvaro vlon no moro IMIs aro ponding.
PCI Express System Architecture
930
- Dovico SoriaI Numbor CapabiIily rogislor sol. ID = 0003l.
- Iovor Budgoling CapabiIily rogislor sol. ID = 0004l.
Tlo CapabiIily Vorsion fioId is assignod by llo SIG and dofinos llo Iayoul of llo
rogislor sol. Il musl bo 1l for aII of llo oxlondod capabiIilios curronlIy dofinod.
Advanced Error Reporting CapabiIity
GeneraI
Iiguro 24-16 on pago 931 iIIuslralos llo oplionaI Advancod Irror Roporling
capabiIily rogislor sol. Nolo llal llo rogislors in llo Iasl llroo dvords of llis rog-
islor sol may onIy bo impIomonlod for a Rool Iorl funclion (ono llal las a vaIuo
of 0100b in llo Dovico/Iorl Typo fioId of llo ICI Ixpross CapabiIilios rogislor in
llo funclion's ICI-compalibIo configuralion spaco). Tlis capabiIily rogislor sol
consisls of llo rogislors piclurod in Iiguro 24-16 on pago 931 and doscribod in
TabIo 24 - 13 on pago 932.
DetaiIed Description
Ior a dolaiIod doscriplion of llo Advancod Irror Roporling capabiIily rogislor
sol, rofor lo Advancod Irror Roporling Moclanisms on pago 382.
-
Chapter 24: Express-Specific Configuration Registers
931
-
PCI Express System Architecture
932
-
- - -
NA Inlancod
CapabiIily
Hoador
CapabiIily ID = 0001l. Tlo CapabiIily Vorsion fioId
in llis rogislor is assignod by llo SIG and dofinos
llo Iayoul of llo rogislor sol. Il musl bo 1l for aII of
llo oxlondod capabiIilios curronlIy dofinod. Soo
Iiguro 24-17 on pago 935.
NA CapabiIilios
and ConlroI
Rogislor
Conlains llo foIIoving bils fioIds:
- - . Road-onIy. Idonlifios llo bil
posilion of llo firsl orror roporlod in llo Uncor-
roclabIo Irror Slalus rogislor (soo Iiguro 24-23 on
pago 937).
- . Road-onIy. 1 indi-
calos llal llo funclion is capabIo of gonoraling
ICRC (Ind-lo-Ind CRC, rofor lo ICRC Gonor-
alion and ClocIing on pago 361).
- . Road/vrilo slicIy
bil. Wlon sol lo ono, onabIos ICRC gonoralion.
DofauIl = 0.
- . Road-onIy. 1 indicalos
llal llo funclion is capabIo of clocIing ICRC.
- . Road/vrilo slicIy bil.
Wlon sol lo ono, onabIos ICRC clocIing.
DofauIl = 0.
Soo Iiguro 24-18 on pago 935.
CorroclabIo
Irror Rogislors
CorroclabIo
Irror MasI
Rogislor
ConlroIs llo roporling of individuaI corroclabIo
orrors by llo funclion lo llo Rool CompIox via a
ICI Ixpross orror mossago. A masIod orror
(rospoclivo bil sol lo ono) is nol roporlod lo llo
Rool CompIox by llo funclion. Tlis rogislor con-
lains a masI bil for oacl corrosponding orror bil in
llo CorroclabIo Irror Slalus rogislor (soo llo noxl
rov in llis labIo and Iiguro 24-19 on pago 935).
CorroclabIo
Irror Slalus
Rogislor
Roporls llo orror slalus of llo funclions corrocl-
abIo orror sourcos. Soflvaro cIoars a sol bil by vril-
ing a 1 lo llo rospoclivo bil. Soo Iiguro 24-20 on
pago 936.
Chapter 24: Express-Specific Configuration Registers
933
UncorroclabIo
Irror Rogislors
UncorroclabIo
Irror MasI
Rogislor
ConlroIs llo funclions roporling of orrors lo llo
Rool CompIox via a ICI Ixpross orror mossago. A
masIod orror (rospoclivo bil sol lo 1b):
- is nol Ioggod in llo Hoador Iog rogislor (soo Iig-
uro 24-16 on pago 931),
- doos nol updalo llo Iirsl Irror Ioinlor (soo llo
doscriplion of llo CapabiIilios and ConlroI Rog-
islor in llis labIo), and
- is nol roporlod lo llo Rool CompIox.
Tlis rogislor (soo Iiguro 24-21 on pago 936)conlains
a masI bil for oacl corrosponding orror bil in llo
UncorroclabIo Irror Slalus rogislor.
UncorroclabIo
Irror Sovorily
Rogislor
Iacl rospoclivo bil conlroIs vlollor an orror is
roporlod lo llo Rool CompIox via a non-falaI or
falaI orror mossago. An orror is roporlod as falaI if
llo corrosponding bil is sol lo ono. Soo Iiguro 24-22
on pago 937.
UncorroclabIo
Irror Slalus
Rogislor
Roporls llo orror slalus of llo funclions uncorrocl-
abIo orror sourcos. Soo Iiguro 24-23 on pago 937.
-
- - -
PCI Express System Architecture
934
Rool Irror
Rogislors
Rool Irror
Command
Rogislor
ConlroIs llo Rool CompIoxs abiIily lo gonoralo an
inlorrupl lo llo procossor upon rocoipl of:
- a corroclabIo orror mossago,
- a non-falaI orror mossago, or
- a falaI orror mossago
from a cliId funclion dovnslroam of llo Rool Iorl.
Soo Iiguro 24-24 on pago 938.
Rool Irror Sla-
lus Rogislor
TracIs llo Rool Iorls rocoipl of orror mossagos
rocoivod by llo Rool CompIox from a cliId func-
lion dovnslroam of llo Rool Iorl, and of orrors
doloclod by llo Rool Iorl ilsoIf. Non-falaI and falaI
orror mossagos aro groupod logollor as uncorrocl-
abIo. Tloro is a firsl orror bil and a noxl orror bil
associalod vill corroclabIo and uncorroclabIo
orrors, rospoclivoIy. Wlon an orror is rocoivod by a
Rool Iorl, llo rospoclivo firsl orror bil is sol and llo
Roquoslor ID is Ioggod in llo Irror Sourco Idonlifi-
calion rogislor. If soflvaro doos nol cIoar llo firsl
roporlod orror boforo anollor orror mossago is
rocoivod of llo samo calogory (corroclabIo or
uncorroclabIo), llo corrosponding noxl orror slalus
bil viII bo sol, bul llo Roquoslor ID of llo subso-
quonl orror mossago is discardod. Updalod rogard-
Ioss of llo sollings in llo Rool ConlroI and llo Rool
Irror Command rogislors. Soo Iiguro 24-25 on pago
938.
UncorroclabIo
Irror Sourco
ID Rogislor
Idonlifios llo sourco (Roquoslor ID) of llo firsl
uncorroclabIo (non-falaI/falaI) orror roporlod in
llo Rool Irror Slalus rogislor. Updalod rogardIoss
of llo sollings in llo Rool ConlroI and llo Rool
Irror Command rogislors. Soo Iiguro 24-26 on pago
938.
CorroclabIo
Irror Sourco
ID Rogislor
Idonlifios llo sourco (Roquoslor ID) of llo firsl cor-
roclabIo orror roporlod in llo Rool Irror Slalus rog-
islor. Updalod rogardIoss of llo sollings in llo Rool
ConlroI and llo Rool Irror Command rogislors.
Soo Iiguro 24-26 on pago 938.
-
- - -
Chapter 24: Express-Specific Configuration Registers
935
- -
- -
PCI Express System Architecture
936
- -
- -
Chapter 24: Express-Specific Configuration Registers
937
-
- -
PCI Express System Architecture
938
-
- -
--
Chapter 24: Express-Specific Configuration Registers
939
VirtuaI ChanneI CapabiIity
The VC Register Sets Purpose
Tlis rogislor sol sorvos sovoraI purposos:
- In a porl llal impIomonls muIlipIo VC buffors, il pormils llo configuralion
of llo TC-lo-VC mapping.
- Soo Iiguro 24-27 on pago 939. In an ogross porl llal impIomonls muIlipIo
VC buffors, il pormils llo configuralion of llo arbilralion sclomo llal
dofinos llo ordor in vlicl oacl VC accopls pacIols from llo various sourco
ingross porls villin llo dovico. Tlis is roforrod lo as llo VCs porl arbilra-
lion sclomo.
- Soo Iiguro 24-27 on pago 939. In an ogross porl llal impIomonls muIlipIo
VC buffors, il pormils llo configuralion of llo arbilralion sclomo llal
dofinos llo ordor in vlicl llo ogross porl accopls pacIols from ils VC buff-
ors for lransmil onlo llo IinI. Tlis is roforrod lo as llo porls VC arbilralion
sclomo.
- In a porl llal onIy impIomonls a singIo VC (VC0), llo configuralion sofl-
varo may spocify llal onIy pacIols vill corlain TCs bo accoplod inlo llo
VC0 buffor for lransfor. Tlis is roforrod lo as TC fiIloring.
PCI Express System Architecture
940
Who Must ImpIement This Register Set?
Tlo foIIoving funclions musl impIomonl llis oplionaI rogislor sol:
- A funclion (i.o., a porl) llal onIy impIomonls VC0 bul pormils llo configu-
ralion soflvaro lo spocify llal onIy pacIols vill corlain TCs may bo pIacod
in llo VC0 buffor for lransfor.
- A funclion llal impIomonls VCs in addilion lo VC0.
Tlis appIios lo Indpoinl dovicos, upslroam and dovnslroam Svilcl porls, Rool
Iorls, and RCRBs.
MuItifunction Upstream Port Restriction
Tlo spoc conlains llo foIIoving slalomonl:
Tlo ICI Ixpross VirluaI ClannoI CapabiIily slrucluro can bo prosonl in llo
Ixlondod Configuralion Spaco of aII dovicos or in RCRB vill llo roslriclion llal
il is onIy prosonl in llo Ixlondod Configuralion Spaco of Iunclion 0 for muIli-
funclion dovicos al lloir Upslroam Iorls.
Tlo aullors laIo llis lo moan llal if llo upslroam porl of a dovico is impIo-
monlod as a muIlifunclion dovico (soo Iiguro 21-11 on pago 761) and llal porl
mools llo criloria spocifiod in Wlo Musl ImpIomonl Tlis Rogislor Sol` on
pago 940, llis capabiIily rogislor sol is onIy impIomonlod in llo Ixlondod Con-
figuralion Spaco of funclion 0 of llal dovico.
The Register Set
Iiguro 24-28 on pago 941 iIIuslralos llo VC CapabiIily rogislor sol and Iiguro 24-
29 on pago 941 iIIuslralos llo dolaiI of ils Inlancod CapabiIily Hoador rogislor.
DetaiIed Description of VCs
Ior a dolaiIod doscriplion of VCs, rofor lo Claplor 6, onlilIod "QoS/TCs/VCs
and Arbilralion," on pago 251.
Chapter 24: Express-Specific Configuration Registers
941
Port VC CapabiIity Register 1
Tlo rogislor is iIIuslralod in Iiguro 24-30 on pago 942 and oacl bil fioId is
doscribod in TabIo 24 - 14 on pago 942.
-
PCI Express System Architecture
942
-
-
- -
2:0 . Tlo numbor of addilionaI VCs supporlod by llo
dovico.
- 0 = jusl VC0 is supporlod.
- Tlo maximum vaIuo is 7.
6:4 . Indicalos llo numbor of VCs (slarling
vill VC0) llal compriso llo Iov-Iriorily VC (IIVC) group.
- . Tloro is and llo soquonco in vlicl llo porls VC buff-
ors lransfor is govornod by llo fixod-priorily sclomo vloroin VC0 las
llo Iovosl priorily and llo liglosl-numborod VC llal is impIomonlod
las llo liglosl priorily.
- VCs 0-llrougl- aro mombors of llo IIVC group.
Tlo vaIuo spocifiod cannol bo groalor llan llal spocifiod in llo Ixlondod
VC Counl fioId of llis rogislor.
Tlo VCs abovo aro mombors of llo ligl-priorily group vloro
VC+1 las llo Iovosl priorily and llo liglosl VC las llo liglosl pri-
orily.
ConlroI passos lo llo IIVC group onIy vlon llo VCs in llo uppor
group lavo no pacIols lo lransfor. Tlo priorily sclomo usod among
llo VCs llal aro mombors of llo Iovor group is govornod by llo VC
Arbilralion CapabiIily fioId in Iorl VC CapabiIily Rogislor 2 (soo
Iorl VC CapabiIily Rogislor 2 on pago 943).
Chapter 24: Express-Specific Configuration Registers
943
Port VC CapabiIity Register 2
Tlo rogislor is iIIuslralod in Iiguro 24-31 on pago 943 and oacl bil fioId is
doscribod in TabIo 24 - 15 on pago 944.
9:8 . Tlo roforonco cIocI for VCs llal supporl limo-basod
WRR Iorl Arbilralion. Tlis fioId is vaIid for RCRB and for Svilcl Iorls and
is nol vaIid for Rool Iorls and Indpoinl dovicos (musl bo lardvirod lo 0).
- 00b = 100ns roforonco cIocI.
- 01b 11b aro rosorvod.
11:10 . Indicalos llo sizo (in bils) of oacl onlry
in llo dovicos Iorl Arbilralion labIo. Tlis fioId is vaIid onIy for an RCRB
and for any Svilcl Iorl. Il is lardvirod lo 0 for Indpoinl dovicos and Rool
Iorls.
- 00b Tlo sizo of oacl Iorl Arbilralion labIo onlry is 1 bil.
- 01b Tlo sizo of oacl Iorl Arbilralion labIo onlry is 2 bils.
- 10b Tlo sizo of oacl Iorl Arbilralion labIo onlry is 4 bils.
- 11b Tlo sizo of oacl Iorl Arbilralion labIo onlry is 8 bils.
-
-
- -
PCI Express System Architecture
944
Port VC ControI Register
Tlo rogislor is iIIuslralod in Iiguro 24-32 on pago 944 and oacl bil fioId is
doscribod in TabIo 24 - 16 on pago 945.
-
- -
7:0 . Tlis bil masI indicalos llo arbilralion
sclomo(s) supporlod by llo dovico for llo IIVC group. Il is vaIid for aII
dovicos llal roporl a Iov Iriorily Ixlondod VC Counl groalor llan 0 (soo
llo doscriplion in TabIo 24 - 14 on pago 942). Iacl bil corrosponds lo an
arbilralion sclomo dofinod boIov. Wlon moro llan ono bil is sol, il indi-
calos llal llo Iorl can bo configurod lo provido difforonl VC arbilralion sor-
vicos.
- Bil 0: Hardvirod, fixod arbilralion sclomo (o.g., Round Robin).
- Bil 1: Woigllod Round Robin (WRR) arbilralion vill 32 plasos.
- Bil 2: WRR arbilralion vill 64 plasos.
- Bil 3: WRR arbilralion vill 128 plasos.
- Bils 4-7: Rosorvod.
Tlo dosirod arbilralion sclomo is soIoclod via llo VC Arbilralion SoIocl
fioId in llo Iorl VC ConlroI Rogislor (soo TabIo 24 - 16 on pago 945).
31:24 -. Indicalos llo Iocalion of llo VC Arbilralion
TabIo vill roforonco lo llo slarl of llo VC capabiIily rogislor sol (spocifiod
in incromonls of dqvords16 bylos). A vaIuo of 0 indicalos llal llo labIo is
nol prosonl.
-
Chapter 24: Express-Specific Configuration Registers
945
Port VC Status Register
Tlo rogislor is iIIuslralod in Iiguro 24-33 on pago 946 and oacl bil fioId is
doscribod in TabIo 24 - 17 on pago 946.
-
- -
0 . In ordor lo aclivalo a porls VC Arbilralion
TabIo, llo configuralion soflvaro laIos llo foIIoving slops:
1. Wlon soflvaro iniliaIIy programs llo VC Arbilralion TabIo, or vlon any
clango is subsoquonlIy mado lo any onlry in llo labIo, llo VC Arbilra-
lion TabIo Slalus bil in llo Iorl VC Slalus rogislor is aulomalicaIIy sol lo
ono by lardvaro.
2. Soflvaro llon sols llo Ioad VC Arbilralion TabIo bil lo ono, causing llo
porl lo road llo VC Arbilralion TabIo from llo capabiIily rogislor sol and
appIy il.
3. Wlon llo porl lardvaro las compIolod roading and appIying llo
updalod labIo, il aulomalicaIIy cIoars llo VC Arbilralion TabIo Slalus bil
in llo Iorl VC Slalus rogislor.
4. Soflvaro can dolormino if llo updalod labIo las boon appIiod by roading
llo slalo of llo VC Arbilralion TabIo Slalus bil in llo Iorl VC Slalus rog-
islor.
0 indicalos llo updalod labIo las boon road and appIiod.
1 indicalos llal llo updalo is nol yol compIolo.
Tlis bil is vaIid for a dovico vlon llo soIoclod VC Arbilralion lypo (soo llo
noxl rov in llis labIo) usos llo VC Arbilralion TabIo. CIoaring llis bil las
no offocl. Tlis bil aIvays rolurns 0 vlon road.
3:1 Tlo configuralion soflvaro soIocls ono of llo sup-
porlod IIVC arbilralion sclomos by solling il lo llo BCD vaIuo of llo bil
corrosponding lo llo dosirod sclomo (soo llo doscriplion of bils 7:0 in
TabIo 24 - 15 on pago 944). Tlo configuralion soflvaro musl soIocl llo arbi-
lralion sclomo prior lo onabIing moro llan ono VC in llo IIVC group.
PCI Express System Architecture
946
VC Resource Registers
Al a minimum, oacl porl impIomonls a singIo VC, VC0, and il
may oplionaIIy impIomonl up lo oigll VCs, VC0-llrougl-VC7. Ior oacl VC
il supporls, llo porl impIomonls llo foIIoving llroo rogislors:
VC Rosourco CapabiIily rogislor.
VC Rosourco ConlroI rogislor.
VC Rosourco Slalus rogislor.
Tlo foIIoving llroo soclions provido a doscriplion of oacl of lloso rogislors.
Iacl VC impIomonls:
A mandalory TC/VC bil map llal dofinos llo TCs llal slouId bo
accoplod inlo llis VC.
An oplionaI Iorl Arbilralion TabIo llal dofinos llo ordor in vlicl llo
VC accopls pacIols from llo dovico ingross porls llal sourco pacIols lo
il for lransmission.
- - Tlo rogislor is iIIuslralod in Iiguro
24-34 on pago 947 and oacl bil fioId is doscribod in TabIo 24 - 18 on
pago 947.
- -
- -
- -
0 -. Soo llo doscriplion of llo Ioad VC Arbilra-
lion TabIo bil in TabIo 24 - 16 on pago 945.
Chapter 24: Express-Specific Configuration Registers
947
- -
- -
- -
7:0 RO . Tlis bil masI indicalos llo lypos of
Iorl arbilralion (ono or moro) supporlod by llo VC. Il is vaIid for
aII Svilcl Iorls and an RCRB, bul nol for ICI Ixpross Indpoinl
dovicos or Rool Iorls.
Soflvaro soIocls ono of lloso arbilralion sclomos by vriling lo llo
Iorl Arbilralion SoIocl fioId in llo VC Rosourco ConlroI rogislor
(soo VC Rosourco ConlroI Rogislor on pago 948).
- Bil 0. Hardvirod, fixod arbilralion sclomo (o.g., Round Robin).
- Bil 1. Woigllod Round Robin (WRR) arbilralion vill 32 plasos.
- Bil 2. WRR arbilralion vill 64 plasos.
- Bil 3. WRR arbilralion vill 128 plasos.
- Bil 4. Timo-basod WRR vill 128 plasos.
- Bil 5. WRR arbilralion vill 256 plasos.
- Bils 6-7. Rosorvod.
14 RO .
- 1 = Tlis VC onIy supporls lransaclions oplimizod for
Advancod IacIol Svilcling (AS). Tlis bil is vaIid for aII ICI
Ixpross Iorls and RCRB.
- 0 = Tlo VC is capabIo of supporling aII lransaclions dofinod by
llo spoc (incIuding AS lransporl pacIols).
PCI Express System Architecture
948
- - Tlo rogislor is iIIuslralod in Iiguro 24-
35 on pago 948 and oacl bil fioId is doscribod in TabIo 24 - 19 on pago 949.
15 HvInil --.
- 0 = Transaclions vill or villoul llo No Snoop bil sol aro
aIIovod on llis VC.
- 1 = Transaclions vill No Snoop = 0 aro rojoclod as an Unsup-
porlod Roquosl. Tlis bil is vaIid for Rool Iorls and RCRB, bul
nol for Indpoinl dovicos or Svilcl porls.
22:16 HvInil -. Max limo sIols (minus ono) llal llo VC
supporls vlon configurod for limo-basod WRR porl arbilralion.
Tlis fioId is vaIid for aII Svilcl porls, Rool Iorls and an RCRB,
bul nol for Indpoinl dovicos. OnIy vaIid vlon llo Iorl Arbilra-
lion CapabiIily fioId in llis rogislor indicalos llal llo VC supporls
limo-basod WRR porl arbilralion.
31:24 RO -. Indicalos llo Iocalion of llo Iorl
Arbilralion TabIo associalod vill llis VC vill roforonco lo llo
slarl of llo VC capabiIily rogislor sol (spocifiod in incromonls of
dqvords16 bylos). A vaIuo of 0 indicalos llal llo labIo is nol
prosonl. Tlis fioId is vaIid for aII Svilcl porls and an RCRB, bul
nol for Indpoinl dovicos or Rool Iorls.
- -
- -
- -
Chapter 24: Express-Specific Configuration Registers
949
- -
- -
7:0 . TC-lo-VC mapping bil map. Iacl bil villin llis fioId corro-
sponds lo a TC llal is mappod lo llis VC. MuIlipIo bils may bo sol lo ono.
7 1 = TC7 is mappod lo llis VC.
6 1 = TC6 is mappod lo llis VC.
5 1 = TC5 is mappod lo llis VC.
4 1 = TC4 is mappod lo llis VC.
3 1 = TC3 is mappod lo llis VC.
2 1 = TC2 is mappod lo llis VC.
1 1 = TC1 is mappod lo llis VC.
0 1 = TC0 is mappod lo llis VC. Tlis bil is road-onIy. 1 for VC0 and 0 for
aII ollor onabIod VCs.
Boforo romoving ono or moro TCs from llo TC/VC Map of an onabIod VC,
soflvaro musl onsuro llal no nov or oulslanding lransaclions vill lloso TC
IaboIs aro largolod al llo givon IinI.
Tlo dofauIl vaIuo = IIl for VC0 and = 00l for ollor VCs.
16 . In ordor lo aclivalo a VCs Iorl Arbilralion TabIo,
llo configuralion soflvaro laIos llo foIIoving slops:
1. Wlon soflvaro iniliaIIy programs llo VCs Iorl Arbilralion TabIo, or vlon
any clango is subsoquonlIy mado lo any onlry in llo labIo, llo Iorl Arbilra-
lion TabIo Slalus bil in llo VCs VC Rosourco Slalus rogislor (soo VC
Rosourco Slalus Rogislor on pago 950) is aulomalicaIIy sol lo ono.
2. Soflvaro llon sols llo Ioad Iorl Arbilralion TabIo bil lo ono, causing llo VC
lo road llo updalod Iorl Arbilralion TabIo from llo capabiIily rogislor sol
and appIy il.
3. Wlon llo VC lardvaro las compIolod roading and appIying llo updalod
labIo, il aulomalicaIIy cIoars llo Iorl Arbilralion TabIo Slalus bil in ils VC
Rosourco Slalus rogislor.
4. Soflvaro can dolormino if llo updalod labIo las boon appIiod by roading llo
slalo of llo Iorl Arbilralion TabIo Slalus bil in llo VCs VC Slalus rogislor.
0 indicalos llo updalod labIo las boon road and appIiod.
1 indicalos llal llo updalo is nol yol compIolo.
Tlis bil is vaIid for a dovico vlon llo soIoclod Iorl Arbilralion lypo (llo noxl
rov in llis labIo) usos llo Iorl Arbilralion TabIo. CIoaring llis bil las no offocl.
Tlis bil aIvays rolurns 0 vlon road. Tlis bil is vaIid for aII Svilcl Iorls and
an RCRB, bul nol for Indpoinl dovicos or Rool Iorls. Tlis bil aIvays rolurns 0
vlon road and llo dofauIl vaIuo of llis bil is 0.
PCI Express System Architecture
950
- - - Tlo rogislor is iIIuslralod in Iiguro 24-36
on pago 951 and oacl bil fioId is doscribod in TabIo 24 - 20 on pago 951.
19:17 . Tlo configuralion soflvaro soIocls ono of llo sup-
porlod porl arbilralion sclomos by solling il lo llo BCD vaIuo of llo bil corro-
sponding lo llo dosirod sclomo (soo llo doscriplion of bils 7:0 in TabIo 24 - 18
on pago 947). Tlo configuralion soflvaro musl soIocl llo arbilralion sclomo
prior lo onabIing moro llan ono VC in llo IIVC group.
26:24 . Tlis fioId assigns a VC ID (bolvoon 0 and 7) lo llo VC (for VC0, il is
lardvirod lo zoro). Il cannol bo modifiod if llo VC las aIroady boon onabIod.
31 .
- 1 = VC onabIod.
- 0 = VC disabIod.
Tlo slalo of llis bil is quaIifiod by llo slalo of llo VC Nogolialion Ionding bil
(in llo VCs VC Rosourco Slalus rogislor, soo VC Rosourco Slalus Rogislor on
pago 950).
- 0 = nogolialion las boon compIolod (IIov ConlroI iniliaIizalion is com-
pIolod for llo ICI Ixpross Iorl) and llo VC InabIo bil indicalos llo slalo of
llo VC.
- 1 = llo nogolialion procoss las nol yol compIolod and llo slalo of llo VC
InabIo bil lloroforo romains indolorminalo.
Tlis bil is lardvirod lo 1 for VC0. Il is road/vrilo for llo ollor VCs and ils
dofauIl is 0.
To onabIo a VC, ils VC InabIo bil musl bo sol lo ono in llo porls al boll onds of
llo IinI.
To disabIo a VC, ils VC InabIo bil musl bo cIoarod lo zoro in llo porls al boll
onds of llo IinI.
Boforo disabIing a VC, soflvaro musl onsuro llal no lraffic is using llo VC.
Irior lo ro-onabIing a VC, soflvaro musl firsl fuIIy disabIo llo VC in boll com-
pononls on llo IinI.
- -
- -
Chapter 24: Express-Specific Configuration Registers
951
VC Arbitration TabIe
A porl impIomonls a VC Arbilralion TabIo if boll of llo foIIoving aro lruo:
- Tlo Iorl supporls moro llan ono VC.
- Tlo Iorl impIomonls a WRR arbilralion sclomo.
Tlo labIo consisls of a sol of road/vrilo rogislors and is onIy usod if llo configu-
ralion soflvaro soIocls (via llo VC Arbilralion SoIocl fioId in TabIo 24 - 15 on
pago 944) ono of llo impIomonlod WRR VC arbilralion sclomos (soo VC Arbi-
lralion CapabiIily in TabIo 24 - 15 on pago 944).
- - -
- - -
- -
0 -. Soo llo doscriplion of llo Ioad Iorl Arbilra-
lion TabIo bil in TabIo 24 - 19 on pago 949. Tlo dofauIl vaIuo of llis bil is 0.
1 . Indicalos vlollor llo VC nogolialion procoss
(iniliaIizalion or disabIing) is in llo ponding slalo. Wlon llis bil is sol by
lardvaro, il indicalos llal llo VC is sliII in llo procoss of nogolialion. Il is
cIoarod by lardvaro aflor llo VC nogolialion compIolos. Ior VCs ollor llan
VC0, soflvaro usos llis bil lo onabIo or disabIo llo VC. Ior VC0, llis bil
indicalos llo slalus of llo IIov ConlroI iniliaIizalion procoss. Boforo using a
VC, soflvaro musl clocI vlollor llo VC Nogolialion Ionding bil is cIoarod
in llo compononls al boll onds of llo IinI.
PCI Express System Architecture
952
Tlo configuralion soflvaro configuros llo labIo vill llo arbilralion sclomo llal
llo ogross porl Iogic usos lo sorvico llo VC lransmil buffors associalod vill llo
porl. Soo llo doscriplion of llo Ioad VC Arbilralion TabIo bil in TabIo 24 - 16 on
pago 945 for a doscriplion of lov llo labIo is upIoadod inlo llo porls Iogic. Ior
a dolaiIod doscriplion of llo VC Arbilralion TabIo, rofor lo Ioading llo VirluaI
ClannoI Arbilralion TabIo on pago 270.
Port Arbitration TabIes
A VC impIomonls a Iorl Arbilralion TabIo if boll of llo foIIoving aro lruo:
- Tlo Iorl supporls moro llan ono VC.
- Tlo VC impIomonls a WRR arbilralion sclomo.
Tlo labIo consisls of a sol of road/vrilo rogislors and is onIy usod if llo configu-
ralion soflvaro soIocls (via llo Iorl Arbilralion SoIocl fioId in TabIo 24 - 19 on
pago 949) ono of llo impIomonlod WRR Iorl arbilralion sclomos (soo Iorl Arbi-
lralion CapabiIily in TabIo 24 - 18 on pago 947).
Tlo configuralion soflvaro configuros llo labIo vill llo arbilralion sclomo llal
dofinos in vlal ordor llo VC accopls pacIols boing sourcod from llo ingross
porls llal lavo pacIols lo bo passod lo llis VC buffor on llo ogross porl. Soo llo
doscriplion of llo Ioad VC Arbilralion TabIo bil in TabIo 24 - 16 on pago 945 for
a doscriplion of lov llo labIo is upIoadod inlo llo porls Iogic.
Tlis rogislor array is vaIid for aII Svilcl Iorls and RCRBs, bul nol for Indpoinl
dovicos or Rool Iorls. Ior a dolaiIod doscriplion of llo Iorl Arbilralion TabIos,
rofor lo Tlo Iorl Arbilralion Moclanisms on pago 277.
Device SeriaI Number CapabiIity
Tlis oplionaI rogislor sol can bo impIomonlod on any ICI Ixpross dovico in
accordanco vill llo foIIoving ruIos:
- Il consisls of llo Inlancod CapabiIily Hoador piclurod in Iiguro 24-37 on
pago 953 and llo 64-bil SoriaI Numbor rogislor piclurod in Iiguro 24-38 on
pago 953.
- Tlo dovico soriaI numbor is a uniquo, road-onIy 64-bil vaIuo assignod lo llo
dovico vlon il is manufaclurod.
- A muIlifunclion dovico vill llis foaluro onIy impIomonls il on funclion 0
and ollor funclions villin llo dovico musl rolurn llo samo soriaI numbor
vaIuo as llal roporlod by funclion 0.
- Any compononl (o.g., a Svilcl) llal conlains muIlipIo dovicos musl rolurn
Chapter 24: Express-Specific Configuration Registers
953
llo samo soriaI numbor for oacl dovico villin llo compononl.
Tlo soriaI numbor is aIso Inovn as llo IUI-64. Rofor lo Iiguro 24-39 on pago
954. A porlion of llo Ixlondod Uniquo Idonlifior (IUI)-64 is assignod by a rogis-
lralion aullorily oporaling undor llo auspicos of llo IIII organizalion. Tlo
IUI-64 consisls of:
- vaIuo assignod by IIII. Bil 6, llo UnivorsaI/IocaI
scopo bil, is aIvays sol lo ono (UnivorsaI scopo ID, nol assignod lo anylling
oIso in llo univorso) in llo vaIuo assignod by llo IIII.
- - assignod by llo company llal ovns llo assignod
company ID. Tlo inlorprolalion of llo company-assignod oxlonsion is oul-
sido llo scopo of llo spoc. As an oxampIo, il may roprosonl llo dovico ID
and manufacluror-assignod soriaI numbor.
-
PCI Express System Architecture
954
Power Budgeting CapabiIity
GeneraI
Rofor lo Claplor 15, onlilIod "Iovor Budgoling," on pago 557 for a dolaiIod
doscriplion of llo Iovor Budgoling capabiIily.
Tlis oplionaI capabiIily pormils llo pIalform lo proporIy aIIocalo povor lo a
dovico llal is lol-pIuggod inlo llo syslom during runlimo. Using llis rogislor
sol, llo dovico roporls llo foIIoving lo llo pIalform:
- Tlo povor il consumos on a varioly of povor raiIs.
- Tlo povor il consumos in difforonl povor managomonl slalos.
- Tlo povor il consumos undor difforonl oporaling condilions.
Tlo pIalform (i.o., llo syslom and llo OS) usos llis informalion lo onsuro llal
llo syslom can provido llo propor povor and cooIing IovoIs lo llo dovico.
ImpIomonlalion of llis capabiIily rogislor sol (soo Iiguro 24-40 on pago 955) is
oplionaI for dovicos llal aro impIomonlod oillor in a form faclor vlicl doos nol
roquiro lol-pIug supporl, or llal aro inlogralod on llo syslom board. AIllougl
llo spoc slalos llal ICI Ixpross form faclor spocificalions may roquiro supporl
for povor budgoling, il doos nol indicalo any spocific casos vloro llis is
roquirod.
Iiguro 24-40 on pago 955 iIIuslralos llo rogislor sol and Iiguro 24-41 on pago 955
iIIuslralos ils Inlancod CapabiIily Hoador rogislor.
Chapter 24: Express-Specific Configuration Registers
955
How It Works
Tlo povor budgoling dala for llo funclion consisls of a labIo of onlrios slarl-
ing vill onlry 0. Iacl onlry is road by pIacing an indox vaIuo in llo Iovor Bud-
goling Dala SoIocl rogislor (Iiguro 24-40 on pago 955) and llon roading llo
vaIuo rolurnod in llo Iovor Budgoling Dala rogislor (Iiguro 24-42 on pago
956).Tlo ond of labIo is indicalod by a rolurn vaIuo of aII 0's in llo Dala rogislor.
In llo Iovor Budgoling CapabiIily rogislor (soo Iiguro 24-43 on pago 956), llo
Syslom AIIocalod bil is aulomalicaIIy sol lo ono if llo dovico is inlogralod onlo
llo syslom board and ils povor roquiromonls aro lloroforo aIroady laIon inlo
accounl in llo sysloms povor suppIy budgol. In llal caso, llo dovicos povor
roquiromonls slouId bo ignorod by soflvaro in maIing povor budgoling doci-
sions.
-
PCI Express System Architecture
956
-
-
Chapter 24: Express-Specific Configuration Registers
957
RCRB
GeneraI
As monlionod in Rool CompIox Rogislor BIocIs (RCRBs) on pago 765, a Rool
Iorl may oplionaIIy impIomonl a Rool CompIox Rogislor BIocI (RCRB) as a 4KB
bIocI of momory-mappod IO rogislors llal can incIudo ono or moro of llo
oplionaI ICI Ixpross oxlondod capabiIilios and ollor impIomonlalion spocific
rogislors llal appIy lo llo Rool CompIox. An RCRB musl nol rosido in llo samo
momory-mappod IO addross spaco as llal dofinod for normaI ICI Ixpross func-
lions. MuIlipIo Rool Iorls or inlornaI dovicos may bo associalod vill llo samo
RCRB (soo Iiguro 24-44 on pago 958 for an oxampIo).
Firmware Gives OS Base Address of Each RCRB
Tlo spoc roquiros llal llo pIalform firmvaro musl communicalo llo baso
addross of llo RCRB for oacl Rool Iorl or inlornaI dovico in llo Rool CompIox
lo llo OS. Hov llis is accompIislod is oulsido llo scopo of llo spoc.
MisaIigned or Locked Accesses To an RCRB
A Rool CompIox is nol roquirod lo supporl momory accoss roquosls lo an RCRB
llal cross dvord addross boundarios or llal aro accompIislod using a IocIod
lransaclion sorios. Soflvaro slouId lloroforo nol allompl an accoss of oillor
lypo lo an RCRB unIoss il is las dovico-spocific InovIodgo llal llo Rool Com-
pIox supporls llis accoss lypo.
Extended CapabiIities in an RCRB
Any Ixlondod CapabiIily rogislor sols in an RCRB musl aIvays bogin al offsol
0l villin llo RCRBs 4KB momory-mappod IO addross spaco. If llo RCRB doos
nol impIomonl any of llo oplionaI oxlondod capabiIily rogislor sols, llis is indi-
calod by an Inlancod CapabiIily loador vill a CapabiIily ID of IIIIl and a
Noxl CapabiIily Offsol of 0l.
PCI Express System Architecture
958
The RCRB Missing Link
Tlo 1.0a vorsion of llo spoc doos nol idonlify any mollod for discovoring llo
oxislonco of RCRBs llal may rosido villin a Rool CompIox, nor doos il idonlify
any mollod for associaling an RCRB vill ono or moro Rool Iorls. As of llo
limo of llis vriling (6/6/03), lloro is a drafl ICN (Inginooring Clango Nolico)
lo llo 1.0a spoc llal las nol yol boon approvod llal addrossos llis issuo. As
soon as il is approvod, MindSlaro viII immodialoIy incIudo llis informalion in
cIassos laugll by MindSlaro and, of courso, llis informalion viII bo providod in
llo Socond Idilion of llis booI. Il is nol incIudod in llis odilion bocauso drafl
clangos lavo a labil of mulaling boforo lloy roacl lloir finaIizod, approvod
form.
-
- --- -
by Nader SaIeh, CataIyst Enterprises, Inc.
Scope
IO inlorfaco bus loclnoIogios Ioop golling faslor and moro compIox in ordor lo
provido moro bandvidll.
Tlo lrond for IC bus loclnoIogios las boon from a roIalivoIy sIov asynclro-
nous, paraIIoI bus (ISA bus oporaling al 12 MHz and 16 bils) lo synclronous
and faslor paraIIoI bussos (ICI oporaling al 66MHz and 64-bils and ICI-X al
133MHz and 64 bils).
IaraIIoI bus loclnoIogios lavo oxporioncod an oxpononliaIIy incroasing band-
vidll, bul llis loclnoIogy is roacling ils praclicaI Iimilalion for offoring moro
bandvidll. Tloroforo, llo lrond in IC bus loclnoIogios is a movo lovards nov,
ligl-spood soriaI busos.
ICI Ixpross is an omorging soriaI bus loclnoIogy llal is oxpoclod lo dominalo
llo dosIlop and sorvor marIol by 2005. Tloro aro sovoraI issuos llal maIo
dovoIopmonl for ICI Ixpross radicaIIy difforonl llan dovoIopmonl for paraIIoI
busos. Tloso difforoncos croalo a sorios of nov claIIongos vlicl dosignors and
dovoIopors nood lo considor vlon onloring inlo llis nov loclnoIogy. Somo of
lloso aro covorod in llis arlicIo.
-- -
1. Tlo dala is lransforrod soriaIIy in a difforonliaI pair and llo roquosl for dala
lransfor, llo lypo of lransfor, addross and cIocI aro aII omboddod on llo
samo signaI Iino in a soriaIizod soquonco rallor llan laving dodicalod,
indopondonl signaIs.
2. Tlo idIo slalo of llo bus cannol simpIy bo quiol sinco aclivilios aro roquirod
lo Ioop llo cIocI rocovory circuil aclivo and onabIod. Tloso conslanl signaI
aclivilios maIo il difficuIl lo rocognizo llo slarl and ond poinls of lransfors.
Tloso addod aclivilios aro aIso scrambIod lo minimizo llo IMI offocls.
3. SoriaI bus prolocoIs roquiro addilionaI loadors and foolors, sucl as CRC, lo
maIo llo dala lransfor moro socuro and orror froo. Tloso addilionaI bils aro
aIso addod lo llo dala pacIols and roquiro inlorprolalion.
4. ICI Ixpross arclilocluro las dofinod prolocoIs llal communicalo in sovoraI
difforonl Iayors. IlysicaI Iayor prolocoI is usod for oslabIisling and main-
laining llo IinIs, llo Dala IinI Iayor IacIols prolocoI is usod for land-
slaIing and Transfor Iayor prolocoIs usod for lransforring llo dala. To
inlorprol bus condilions adoqualoIy, usors musl bo abIo lo convorl rav bils
inlo lloso Iayors.
Convorling binary bils inlo a moaningfuI inlorprolalion of aII lloso Iayors
roquiros an advancod and dodicalod looI, boyond llo capabiIily of many Iov
IovoI moniloring dovoIopmonl looIs.
Iiguro A-2 indicalos a dala capluro of a ICI Ixpross bus lransaclion on a scopo
in ils mosl primilivo form. Comparing lo llo ICI bus, il vouId bo impossibIo lo
inlorprol vlal is occurring on llis soriaI bus.
-- -
Il slouId bo nolod llal llo ICI Ixpross lransmil/rocoivo signaIs oacl consisl of
a difforonliaI signaI pair and llo sampIo slovn loro dispIay llo oulpul of sucl
a difforonliaI signaI pair.
DuaI-SimpIex
Tlo ICI Ixpross soriaI bus is a duaI-simpIox bus (soo Iiguro A-3 on pago 965),
unIiIo llo paraIIoI-basod ICI bus vloro llo slarl and ond of a lransfor can bo
soon on llo samo bus as slovn in Iiguro A-1 on pago 962.
Tlis arclilocluro roquiros llo roquoslor lo lransmil a Roquosl for dala lransfor
on ono lransmil pair, vliIo il rocoivos llo CompIolion rosponso on llo rocoivo
signaI pair. Considoring llal llo rosponso limo can vidoIy vary, dovoIopors
nood lo bo abIo lo sol llo anaIyzor lo fiIlor llo rocoivod and llo lransmillod dala
indopondonl of oacl ollor.
--
- -
AIso llo agonls on llo lvo onds of llo ICI oxpross IinI may bo oquaIIy capabIo
of boing roquoslors and compIolors. Tlis aIIovs a lransaclion lypo lo bo gonor-
alod in oillor diroclion on llo IinI al difforonl limos. Tloroforo, boing abIo lo
spocify llo lriggor and dala capluro on boll busos indopondonlIy is vory impor-
lanl, and usors musl spocify llo diroclion in ordor lo lriggor on llo propor lrans-
for lloy inlond lo viov.
Tlo lvo signaI pairs from llo losl lo llo dovico aro roforrod lo as Upslroam
(lovards llo losl procossor) and Dovnslroam (avay from llo losl procossor).
Tlo anaIyzor slouId bo abIo lo sampIo boll signaI pairs and lriggor on occur-
roncos of pallorns on oillor pair or jusl ono, por usor dofinod sollings.
-- -
-- -
- -
-- -
- -
-- -
- -
-- -
- -
-
-- -
AII bus aclivilios may bo viovod in llo SymboI Iisling form vlicl roprosonls
llo bus dala in rav form. In llis Iisling, llo SKI (1C) symboI aflor llo COM
(BC) idonlifios llo SKII lypo ordorod sol.
- -
- -
Suggoslod signaI assignmonls for llo probo aro nol dofinod in llo spocificalions.
Iiguro A-16 is a proposod suggoslion llal looI vondors aro considoring. Sinco
lloro is an offocl on llo signaIs, llo probo vondor musl provido spocificalions of
llo probo Ioading offocls and llo dovoIopors musl aIso considor lloso offocls.
-
- -
Tlo probIom vill llis common loclniquo is llal lloro is no assuranco llal aII or
ovon a smaII porconlago of llo possibIo oxpoclod condilions lavo boon loslod
for. In mosl losl casos, configuralions cannol roprosonl llo condilions oxpori-
oncod vlon llo syslom oncounlors ligl dala lraffic, orrors or various lormina-
lion rosponsos.
Tlo Bus Ixorcisor roprosonls a promior looI llal aIIovs dovoIopors lo losl lloir
nov producl boyond llo lypicaI Iimilalions. Ixorcisors can gonoralo orrors, gon-
oralo ligl llrouglpul lraffic, and ovon gonoralo various difforonl rosponsos lo
lransaclion roquosls lo vorify llal a nov dosign can accommodalo aII oxpoclod
condilions and llal llo syslom can proporIy rocovor.
A ICI Ixpross bus Ixorcisor llal can accommodalo mosl of lloso roquiromonls
llla las an oasy programming inlorfaco for aII Iayors, and llal aIIovs usors lo
fuIIy manipuIalo llo dala vouId provo lo bo a usofuI looI for vorifying and losl-
ing ICI Ixpross producls.
SampIos laIon from llo IX-4, a CalaIysl ICI Ixpross bus Ixorcisor, aro pro-
sonlod and oxpIainod loro lo indicalo lov llis lypo of looI may bo appIiod dur-
ing losl, dobug and vorificalion plasos.
Tlo Ixorcisor can aIso bo usod lo vorify various compIianco roquiromonls, as
dofinod by llo spocificalions.
To roviov llo compIolo monus and foaluros, you may dovnIoad and lry llo
soflvaro from calaIysl vob silo www.getcatalyst.com
- -
Tlo IX-4 Ixorcisor inlorfaco indicalos aII possibIo commands and Ordorod Sols
in plysicaI Iayor, dala IinI Iayor and lransaclions Iayor pacIols.
- -- -
-- -
- - -
- -
- -
-- -
Commands associalod vill difforonl Iayors may bo mixod, and oacl may bo sol
vill a difforonl oplion and a numbor of Ioops. Tlo commands may bo issuod
immodialoIy aflor oacl ollor or aflor a dofinod doIay.
Tloso pacIols and commands may aIso bo sonl as a pallorn gonoralor villoul
considoring llo rosponso and propor landslaIo. In llis caso llo usor may gon-
oralo and ropoal a pallorn lo moasuro llo rosponso of llo dovico rogardIoss of
inlogrily of llo rosponso. In a moro lypicaI syslom, unIoss llo rosponso is accu-
ralo, llo inilialor may nol ropoal or conlinuo.
SignaI Integrity, Design and Measurement
GeneraI
Tlo ICI Ixpross bus runs al 2.5Gb/s and il slouId bo nolod llal, villoul a
propor ICB dosign, dovoIopors viII nol bo abIo lo produco a funclionaI producl.
Al lloso froquoncios llo Iossos impacl llo quaIily of llo signaI llal passos
llrougl llo lransmission modium. AddilionaI sourcos of probIoms may aIso bo
allribulod lo crosslaII. In slorl, moro oxlonsivo rosoarcl on ligl-spood dosign
guidoIinos and simuIalion by syslom modoIing aro slrongIy rocommondod.
Horo aro a fov iloms llal firsl limo dosignors of Gigalorlz loclnoIogy slouId bo
avaro of and pursuo.
High Speed PCB Design Requirements
Tlo dosignor musl bo avaro of:
1.
Tloro aro roquiromonls for rouling sucl as llal ligl spood signaIs musl bo
roulod as a symmolricaI pair vill a difforonco of Ioss llan 20 miI bolvoon
llo lvo lracos. Tloso lracos aIso nood lo bo impodanco conlroIIod lo 100
Olm difforonliaI, or 50 Olm singIo ondod.
Tlo ligl spood signaIs slouId aIso avoid slarp bonds sucl as 90 dogroos.
Tlo ICI Ixpross signaI inlogrily is basod on conlroIIing Ioss llrougl llo
inlorconnocl modia as mucl as ollor faclors.
3.
Slilcling is rocommondod lo Ioop llo numbor of vias for ligl spood signaIs
lo a minimum (sucl as lvo for add-in cards). Il is somolimos a praclico lo
- -
add a ground via noxl lo llo signaI via lo Ioop a uniform conlinualion for
llo rolurn pall (roforrod lo as via slilcling).
4.
Ono of llo mosl common issuos in signaI inlogrily is conlroIIing llo jillor. A
froquonl sourco of jillor in a soriaI dala slroam is llo roforonco cIocI. }illor
gonoraIIy occurs duo lo oxcossivo noiso on llo V
CC
suppIy for cIocI dislri-
bulion circuils and ICI Ixpross lranscoivors. Iropor fiIloring and docou-
pIing for llo povor suppIy and around llo cIocI osciIIalors and buffors
musl bo impIomonlod lo Ioop llo DC noiso lo a fov miIIivoIls in ordor lo
Ioop llo jillor, and lloroforo llo Iyo pallorn, of llo oulpul signaIs lo an
accoplabIo IovoI. AIso, cIocI sourcos (on board osciIIalors) musl bo of a ligl
slabiIily and Iov jillor.
Iiguro A-20 on pago 986 is a scroonslol of a moasuromonl mado on a cIocI
lo slov llo accoplabIo jillor, and Iiguro A-21 on pago 987 roprosonls unac-
coplabIo jillor.
-- -
Tlis moasuromonl indicalos a cIocI jillor of 39ps I-I and a slabIo cIocI al llo
dosirod froquoncy.
-- - - -
- -
Tlis moasuromonl indicalos a ligl cIocI jillor aIong vill an unslabIo froquoncy.
Tlo absoIulo jillor and slabiIily is liglIy dopondonl on dovico spocificalion
roquiromonls. DovoIopors nood lo Inov llo accoplabIo Iimils of lloir dovicos
and uso llo moasuromonl rosuIls accordingIy.
-- - - -
- -
--
By Iarry Clisvin, AIbor Kazmi, and Danny Cli (IIX ToclnoIogy, Inc.)
Introduction
Sinco ils dofinilion in llo oarIy 1990s, ICI las bocomo ono of llo mosl succoss-
fuI inlorconnocl loclnoIogios ovor usod in compulors. OriginaIIy inlondod for
porsonaI compulor sysloms, llo ICI arclilocluro las ponolralod inlo virluaIIy
ovory compuling pIalform calogory, incIuding sorvors, slorago, communica-
lions, and a vido rango of omboddod conlroI appIicalions. Irom ils oarIy incar-
nalion as a 32-bil 33MHz inlorconnocl, il las boon oxpandod lo offor liglor
spoods (curronlIy in vidosproad uso al 64-bil 133MHz, vill faslor vorsions on
llo vay). Mosl imporlanlIy, oacl advancomonl in ICI bus spood and vidll pro-
vidod bacIvard soflvaro compalibiIily, aIIoving dosignors lo Iovorago llo
broad codo baso.
As succossfuI as llo ICI arclilocluro las bocomo, lloro is a Iimil lo vlal can bo
accompIislod vill a muIli-drop, paraIIoI slarod bus inlorconnocl loclnoIogy.
Issuos sucl as cIocI sIov, ligl pin counl, lraco rouling roslriclions in prinlod
circuil boards (ICB), bandvidll and Ialoncy roquiromonls, plysicaI scaIabiIily,
and llo nood lo supporl QuaIily of Sorvico (QoS) villin a syslom for a vido
varioly of appIicalions Ioad lo llo dofinilion of llo ICI Ixpross arclilocluro.
ICI Ixpross is llo naluraI succossor lo ICI, and vas dovoIopod lo provido llo
advanlagos of a slalo-of-llo-arl, ligl-spood soriaI inlorconnocl loclnoIogy and
pacIol basod Iayorod arclilocluro, bul mainlain bacIvard compalibiIily vill
llo Iargo ICI soflvaro infraslrucluro. Tlo Ioy goaI vas lo provido an opli-
-- -
mizod and univorsaI inlorconnocl soIulion for a groal varioly of fuluro pIal-
forms, incIuding dosIlop, sorvor, vorIslalion, slorago, communicalions and
omboddod sysloms.
Tlis claplor providos an ovorviov of llo marIols and appIicalions llal ICI
Ixpross is oxpoclod lo sorvo, vill an oxpIanalion of lov llo loclnoIogy viII bo
inlogralod inlo oacl appIicalion, and somo oxpIoralion of llo advanlagos llal
ICI Ixpross brings lo oacl usago.
Iols roviov llo Ioy bonofils of llo ICI Ixpross arclilocluro boforo vo discuss
ils appIicalion in difforonl marIols. Somo of llo Ioy foaluros of llo arclilocluro
vo roviovod in llis booI aro:
- IacIol-basod Iayorod arclilocluro
- SoriaI inlorconnoclion al 2.5 GHz (5 GHz boing considorod)
- IinI-lo-IinI and ond-lo-ond orror doloclion (CRC clocI)
- Ioinl-lo-poinl dala fIov
- DifforonliaI Iov voIlago signaIs for noiso immunily
--
-- --
fan oul svilcl is lo muIlipIy llo numbor of ICI Ixpross Ianos from an upslroam
losl porl lo a liglor numbor of dovnslroam ICI Ixpross dovicos. Iiguro 3
boIov, slovs a ICI Ixpross svilcl usod in llo syslom for llis purposo.
Embedded ControI
Ono of llo many aroas llal ICI las ponolralod is omboddod-conlroI sysloms.
Tlis doscribos a vido rango of appIicalions llal moasuro, losl, monilor, or dis-
pIay dala, and incIudos appIicalions sucl as induslriaI conlroI, offico auloma-
lion, losl oquipmonl, and imaging.
In lloso appIicalions, syslom dosignors lypicaIIy uliIizo omboddod procossors.
In many inslancos, Ioading-odgo companios viII difforonlialo lloir producls by
uliIizing somo cuslom Iogic in llo form of an ASIC or IIGA. A bridgo is oflon
usod lo lransIalo llo simpIo cuslom inlorfaco and connocl il lo llo bus.
Il is oxpoclod llal llo omboddod-conlroI marIol viII quicIIy migralo lo ICI
Ixpross, vill a lypicaI oxampIo slovn in Iiguro B-4 on pago 994. AppIicalions
sucl as imaging and vidoo slroaming aro aIvays lungry for bandvidll, and
llo addilionaI llrouglpul of x4 or x8 ICI Ixpross IinIs viII lransIalo inlo
-- -
-- -
liglor vidoo rosoIulion, or llo landIing of moro vidoo slroams by llo syslom.
Ollors viII impIomonl ICI Ixpross bocauso of llo noiso rosislanco ils IVDS
lracos provido, or bocauso of ils officionl rouling and ils abiIily lo looI logollor
subsysloms llrougl a slandard cabIo. SliII ollors viII clooso ICI Ixpross sim-
pIy bocauso of ils ubiquily.
Storage Systems
ICI las bocomo a common bacIpIano loclnoIogy for mainslroam slorago sys-
loms. AIllougl il providos a good mix of foaluros, Iov cosl, and llrouglpul,
llo bus las bocomo a porformanco bollIonocI. Iiguro B-5 on pago 995 slovs
llo uso of ICI Ixpross in a slorago syslom. Sysloms simiIar lo llo ono slovn in
Iiguro B-5 on pago 995 can bo buiIl on a mollorboard, or as parl of a bacIpIano.
Tlo discussion in llis soclion appIios lo boll form faclors.
Wo lavo liglIigllod incroasod bandvidll as ono of llo advanlagos of moving
lo ICI Ixpross, and novloro is il moro bonoficiaI and obvious llan in slorago.
Tlo bandvidll domandod by I/O connoclions sucl as Illornol, Iibro ClannoI,
SCSI, and InfiniBand, is incroasing rapidIy. And llo abiIily lo movo dala
bolvoon I/O moduIos and llo losl procossor is crilicaI lo ovoraII syslom porfor-
manco.
-- -
-- --
Communications Systems
Tlo Iasl appIicalion llal vo viII oxpIoro is llo uso of ICI Ixpross in communi-
calions sysloms. As vill provious usago modoIs, ICI loclnoIogy las in llo pasl
mado significanl inroads inlo communicalion sysloms, bul ovor limo il las
bocomo Ioss dosirabIo duo lo llo inloronl Iimilalions of a slarod bus. In gon-
oraI, soriaI inlorconnocls sucl as ICI Ixpross lavo bocomo allraclivo lo bacI-
pIano syslom dosignors by providing svilcl-basod lopoIogios llal onabIo
liglor roIiabiIily, scaIabiIily, and robuslnoss.
Higl ond communicalions sysloms aro basod on ono or moro racIs, vill a mid-
pIano or bacIpIano classis usod lo inlorconnocl oacl subsyslom. Many sysloms
uso llo CompaclICI arclilocluro for lloir bacIpIano impIomonlalions, and in
somo casos propriolary bus soIulions aro usod lo inlorconnocl Iino cards, llo
svilcl fabric and llo conlroI moduIos. Somo vondors aro moving lovard llo
AdvancodTCA (ATCA) arclilocluro llal supporls a varioly of difforonl fab-
rics basod upon a slandard classis for communicalion appIicalions. ATCA las a
rango of bonofils, bul llo ICI Ixpross vorsion of ATCA providos a smooll
migralion lo liglor spoods and a sol of foaluros llal fil voII vill llo communi-
calions paradigm.
Ono foaluro common lo many communicalions sysloms is llo abiIily lo assign
priorilios lo difforonl dala slroams basod on QuaIily of Sorvico (QoS). ICI
Ixpross offors Traffic CIassos (TC) llal can bo usod lo difforonlialo lypos of dala.
Tloso TCs aro llon mappod onlo VirluaI ClannoIs (VC) villin llo lardvaro.
Iacl VC las ils ovn sol of quouos in llo subsyslom, providing a soparalo pall
llrougl llo svilcl or bridgo. Tlis moclanism can bo usod lo provido soparalo
clannoIs for difforonl lypos of lraffic (I/O, dala, spociaI mossagos).
Iiguro B-6 on pago 997 slovs a lypicaI communicalion svilcl or roulor. OnIy 6
sIols aro slovn for iIIuslralion purposos, bul acluaI sysloms lypicaIIy lavo 10+
sIols. As slovn in llo figuro, ICI Ixpross loclnoIogy can bo usod lo supporl
rodundanl svilcl fabrics and conlroI moduIos, aIIoving communicalions
oquipmonl vondors lo buiId ligl avaiIabiIily sysloms vill a faslor limo lo mar-
Iol.
-- --
Summary
ICI Ixpross loclnoIogy offors an improvomonl in porformanco and llo promiso
of foaluros boyond ICI, bul doos so in a vay llal prosorvos invoslmonl mado in
ICI soflvaro ovor llo Iasl lon yoars. Tlo combinalion of incroasod bandvidll,
roducod cosl, and oxlondod capabiIilios vill an oasy migralion pall is IiIoIy lo
maIo llo ICI Ixpross arclilocluro llo noxl ubiquilous inlorconnoclion loclnoI-
ogy for a vido varioly of appIicalions.
-- - --
999
ImpIementing InteIIigent Adapters and MuIti-Host
Systems With PCI Express TechnoIogy
By Jack ReguIa, Danny Chi and Tim Canepa (PLX TechnoIogy, Inc. )
Introduction
InloIIigonl adaplors, losl faiIovor moclanisms and muIliprocossor sysloms aro
llroo usago modoIs llal aro common loday, and oxpoclod lo bocomo moro prov-
aIonl as marIol roquiromonls for noxl gonoralion sysloms. Dospilo llo facl llal
oacl of lloso vas dovoIopod in rosponso lo compIoloIy difforonl marIol
domands, aII slaro llo common roquiromonl llal sysloms llal uliIizo llom
roquiro muIlipIo procossors lo co-oxisl villin llo syslom. Tlis appondix oul-
Iinos lov ICI Ixpross can addross lloso noods llrougl non-lransparonl bridg-
ing.
Bocauso of llo vidosproad popuIarily of sysloms using inloIIigonl adaplors,
losl faiIovor and muIlilosl loclnoIogios, ICI Ixpross siIicon vondors musl pro-
vido a moans lo supporl llom. Tlis is acluaIIy a roIalivoIy Iov risI ondoavor,
givon llal ICI Ixpross is soflvaro compalibIo vill ICI, and ICI sysloms lavo
Iong impIomonlod dislribulod procossing. Tlo mosl obvious approacl, and llo
ono llal IIX ospousos, is lo omuIalo llo mosl popuIar impIomonlalion usod in
llo ICI spaco for ICI Ixpross. Tlis slralogy aIIovs syslom dosignors lo uso nol
onIy a famiIiar impIomonlalion bul ono llal is a provon mollodoIogy, and ono
llal can provido significanl soflvaro rouso as lloy migralo from ICI lo ICI
Ixpross.
Tlis papor oulIinos lov muIliprocossor ICI Ixpross sysloms viII bo impIo-
monlod using induslry slandard praclicos oslabIislod in llo ICI paradigm. Wo
firsl, lovovor, viII dofino llo difforonl usago modoIs, and roviov llo succossfuI
offorls in llo ICI communily lo dovoIop moclanisms lo accommodalo lloso
roquiromonls. IinaIIy, vo viII covor lov ICI Ixpross sysloms viII uliIizo non-
lransparonl bridging lo provido llo funclionaIily noodod for lloso lypos of sys-
loms.
PCI Express System Architecture
1000
Usage ModeIs
InteIIigent Adapters
InloIIigonl adaplors aro lypicaIIy poriploraI dovicos llal uso a IocaI procossor lo
offIoad lasIs from llo losl. IxampIos of inloIIigonl adaplors incIudo RAID con-
lroIIors, modom cards, and conlonl procossing bIados llal porform lasIs sucl as
socurily and fIov procossing. GonoraIIy, lloso lasIs aro oillor compulalionaIIy
onorous or roquiro significanl I/O bandvidll if porformod by llo losl. By add-
ing a IocaI procossor lo llo ondpoinl, syslom dosignors can onjoy significanl
incromonlaI porformanco. In llo RAID marIol, a significanl numbor of producls
uliIizo IocaI inloIIigonco for lloir I/O procossing.
Anollor oxampIo of inloIIigonl adaplors is an ocommorco bIado. Bocauso gon-
oraI purposo losl procossors aro nol oplimizod for llo oxpononliaI mallomalics
nocossary for SSI, uliIizing a losl procossor lo porform an SSI landslaIo lypi-
caIIy roducos syslom porformanco by ovor 90. Iurllormoro, ono of llo roquiro-
monls for llo SSI landslaIo oporalion is a lruo random numbor gonoralor.
Many gonoraI purposo procossors do nol lavo llis foaluro, so il is acluaIIy diffi-
cuIl lo porform SSI landslaIos villoul dodicalod lardvaro. SimiIar oxampIos
abound llrougloul llo inloIIigonl adaplor marIolpIaco, in facl, llis usago
modoI is so provaIonl llal for many appIicalions il las bocomo llo do faclo slan-
dard impIomonlalion.
Host FaiIover
Hosl faiIovor capabiIilios aro dosignod inlo sysloms llal roquiro ligl avaiIabiI-
ily. Higl avaiIabiIily las bocomo an incroasingIy imporlanl roquiromonl, ospo-
ciaIIy in slorago and communicalion pIalforms. Tlo onIy praclicaI vay lo
onsuro llal llo ovoraII syslom romains oporalionaI is lo provido rodundancy for
aII compononls. Hosl faiIovor sysloms lypicaIIy incIudo a losl basod syslom
allaclod lo sovoraI ondpoinls. In addilion, a bacIup losl is allaclod lo llo sys-
lom and is configurod lo monilor llo syslom slalus. Wlon llo primary losl
faiIs, llo bacIup losl procossor musl nol onIy rocognizo llo faiIuro, bul llon
laIo slops lo assumo primary conlroI, romovo llo faiIod losl lo provonl addi-
lionaI disruplions, roconslilulo llo syslom slalo, and conlinuo llo oporalion of
llo syslom villoul Iosing any dala.
Appendix D: Intelligent Adapters & Multi-Host Systems
1001
MuItiprocessor Systems
MuIliprocossor sysloms provido groalor procossing bandvidll by aIIoving
muIlipIo compulalionaI onginos lo simuIlanoousIy vorI on soclions of a com-
pIox probIom. UnIiIo sysloms uliIizing losl faiIovor, vloro llo bacIup procos-
sor is ossonliaIIy idIo, muIliprocossor sysloms uliIizo aII llo onginos lo boosl
compulalionaI llrouglpul. Tlis onabIos a syslom lo roacl porformanco IovoIs
nol possibIo by using onIy a singIo losl procossor. MuIliprocossor sysloms lypi-
caIIy consisl of lvo or moro compIolo sub-sysloms llal can pass dala bolvoon
llomsoIvos via a spociaI inlorconnocl. A good oxampIo of a muIlilosl syslom is
a bIado sorvor classis. Iacl bIado is a compIolo subsyslom, oflon ropIolo vill ils
ovn CIU, Dirocl Allaclod Slorago, and I/O.
The History MuIti-Processor ImpIementations Using PCI
To bollor undorsland llo impIomonlalion proposod for ICI Ixpross, ono noods
lo firsl undorsland llo ICI impIomonlalion.
ICI vas originaIIy dofinod in 1992 for porsonaI compulors. Bocauso of llo
naluro of ICs al llal limo, llo prolocoI arclilocls did nol anlicipalo llo nood for
muIliprocossors. Tloroforo, lloy dosignod llo syslom assuming llal llo losl
procossor vouId onumoralo llo onliro momory spaco. ObviousIy, if anollor pro-
cossor is addod, llo syslom oporalion vouId faiI as boll procossors vouId
allompl lo sorvico llo syslom roquosls.
1SovoraI mollodoIogios voro subsoquonlIy invonlod lo accommodalo llo
roquiromonl for muIliprocossor capabiIilios using ICI. Tlo mosl popuIar impIo-
monlalion, and llo ono discussod in llis papor for ICI Ixpross, is llo uso of
non-lransparonl bridging bolvoon llo procossing subsysloms lo isoIalo lloir
momory spacos.
1
Bocauso llo losl doos nol Inov llo syslom lopoIogy vlon il is firsl povorod up
or rosol, il musl porform discovory lo Ioarn vlal dovicos aro prosonl and llon
map llom inlo llo momory spaco. To supporl slandard discovory and configu-
ralion soflvaro, llo ICI spocificalion dofinos a slandard formal for ConlroI and
Slalus Rogislors (CSRs) of compIianl dovicos. Tlo slandard ICI-lo-ICI bridgo
CSR loador, caIIod a Typo 1 loador, incIudos primary, socondary and subordi-
1. Unless explicitly noted, the architecture Ior multiprocessor systems using PCI and
PCI Express are similar and may be used interchangeably.
PCI Express System Architecture
1002
nalo bus numbor rogislors llal, vlon vrillon by llo losl, dofino llo CSR
addrossos of dovicos on llo ollor sido of llo bridgo. Bridgos llal ompIoy a Typo
1 CSR loador aro caIIod lransparonl bridgos.
A Typo 0 loador is usod for ondpoinls. A Typo 0 CSR loador incIudos baso
addross rogislors (BARs) usod lo roquosl momory or I/O aporluros from llo
losl. Boll Typo 1 and Typo 0 loadors incIudo a cIass codo rogislor llal indicalos
vlal Iind of bridgo or ondpoinl is roprosonlod, vill furllor informalion avaiI-
abIo in a subcIass fioId and in dovico ID and vondor ID rogislors. Tlo CSR
loador formal and addrossing ruIos aIIov llo procossor lo soarcl aII llo
branclos of a ICI liorarcly, from llo losl bridgo dovn lo oacl of ils Ioavos,
roading llo cIass codo rogislors of oacl dovico il finds as il procoods, and assign-
ing bus numbors as approprialo as il discovors ICI-lo-ICI bridgos aIong llo
vay. Al llo compIolion of discovory, llo losl Inovs vlicl dovicos aro prosonl
and llo momory and I/O spaco oacl dovico roquiros lo funclion. Tloso concopls
aro iIIuslralod in Iiguro C - 1.
- - -
Appendix D: Intelligent Adapters & Multi-Host Systems
1003
ImpIementing MuIti-host/InteIIigent Adapters in PCI
Express Base Systems
Up lo llis poinl, our discussions lavo boon Iimilod lo ono procossor vill ono
momory spaco. As loclnoIogy progrossod, syslom dosignors bogan dovoIoping
ond poinls vill lloir ovn nalivo procossors buiIl in. Tlo probIom llal llis
causod vas llal boll llo losl procossor and llo inloIIigonl adaplor vouId,
upon povor up or rosol, allompl lo onumoralo llo onliro syslom, causing sys-
lom confIicl and uIlimaloIy a non-funclionaI syslom.
2
To gol around llis, arclilocls dosignod non-lransparonl bridgos. A non-lrans-
paronl ICI-lo-ICI Bridgo, or ICI Ixpross-lo-ICI Ixpross Bridgo, is a bridgo llal
oxposos a Typo 0 CSR loador on boll sidos and forvards lransaclions from ono
sido lo llo ollor vill addross lransIalion, llrougl aporluros croalod by llo
BARs of lloso CSR loadors. Bocauso il oxposos a Typo 0 CSR loador, llo bridgo
appoars lo bo an ondpoinl lo discovory and configuralion soflvaro, oIiminaling
polonliaI discovory soflvaro confIicls. Iacl BAR on oacl sido of llo bridgo cro-
alos a lunnoI or vindov inlo llo momory spaco on llo ollor sido of llo bridgo.
To faciIilalo communicalion bolvoon llo procossing domains on oacl sido, llo
non-lransparonl bridgo aIso lypicaIIy incIudos doorboII rogislors lo sond inlor-
rupls from oacl sido of llo bridgo lo llo ollor, and scralclpad rogislors accossi-
bIo from boll sidos.
A non-lransparonl bridgo is funclionaIIy simiIar lo a lransparonl bridgo in llal
boll provido a pall bolvoon lvo indopondonl ICI busos (or ICI Ixpross IinIs).
Tlo Ioy difforonco is llal vlon a non-lransparonl bridgo is usod, dovicos on llo
dovnslroam sido of llo bridgo (roIalivo lo llo syslom losl) aro nol visibIo from
llo upslroam sido. Tlis aIIovs an inloIIigonl conlroIIor on llo dovnslroam sido
lo manago llo dovicos in ils IocaI domain, vliIo al llo samo limo maIing llom
appoar as a singIo dovico lo llo upslroam conlroIIor. Tlo pall bolvoon llo lvo
busos aIIovs llo dovicos on llo dovnslroam sido lo lransfor dala diroclIy lo llo
upslroam sido of llo bus villoul diroclIy invoIving llo inloIIigonl conlroIIor in
llo dala movomonl. Tlus lransaclions aro forvardod across llo bus unfollorod
jusl as in a ICI-lo-ICI Bridgo, bul llo rosourcos rosponsibIo aro liddon from llo
losl, vlicl soos a singIo dovico.
2. WliIo vo aro using an inloIIigonl ondpoinl as llo oxampIos, vo slouId nolo
llal a simiIar probIom oxisls for muIli-losl sysloms.
PCI Express System Architecture
1004
Bocauso vo nov lavo lvo momory spacos, llo ICI Ixpross syslom noods lo
lransIalo addrossos of lransaclions llal cross from ono momory spaco lo llo
ollor. Tlis is accompIislod via TransIalion and Iimil Rogislors associalod vill
llo BAR. Soo Addross TransIalion on pago 1013 for a dolaiIod doscriplion,
Iiguro C-2 on pago 1004 providos a concopluaI rondoring of Dirocl Addross
TransIalion. Addross lransIalion can bo dono by Dirocl Addross TransIalion
(ossonliaIIy ropIacomonl of llo dala undor a masI), labIo IooIup, or by adding
an offsol lo an addross. Iiguro C-3 on pago 1005 slovs TabIo IooIup TransIa-
lion usod lo croalo muIlipIo vindovs sproad across syslom momory spaco for
pacIol originalod in a IocaI I/O procossors domain, as voII as Dirocl Addross
TransIalion usod lo croalo a singIo vindov in llo opposilo diroclion.
-- -
Appendix D: Intelligent Adapters & Multi-Host Systems
1005
ExampIe: ImpIementing InteIIigent Adapters in a PCI
Express Base System
InloIIigonl adaplors viII bo porvasivo in ICI Ixpross sysloms, and viII IiIoIy bo
llo mosl vidoIy usod oxampIo of sysloms vill muIlipIo procossors.
Iiguro C-4 on pago 1006 iIIuslralos lov ICI Ixpross sysloms viII impIomonl
inloIIigonl adaplors. Tlo syslom diagram consisls of a syslom losl, a rool com-
pIox (llo ICI Ixpross vorsion of a Norllbridgo), a llroo porl svilcl, an oxampIo
ondpoinl, and an inloIIigonl add-in card. SimiIar lo llo syslom arclilocluro, llo
add-in card conlains a IocaI losl, a rool compIox, a llroo porl svilcl, and an
oxampIo ondpoinl. Hovovor vo slouId nolo lvo significanl difforoncos: llo
- - -
PCI Express System Architecture
1006
inloIIigonl add-in card conlains an IIIROM, and ono porl of llo svilcl con-
lains a bacI lo bacI non-lransparonl bridgo.
Upon povor up, llo syslom losl viII bogin onumoraling lo dolormino llo lopoI-
ogy. Il viII pass llrougl llo Rool CompIox and onlor llo firsl svilcl (Svilcl A).
Upon onloring llo lopmosl porl, il viII soo a lransparonl bridgo, so il viII Inov
lo conlinuo lo onumoralo. Tlo losl viII llon poII llo Ioflmosl porl and, upon
finding a Typo 0 CSR loador, viII considor il an ondpoinl and oxpIoro no doopor
aIong llal brancl of llo ICI liorarcly. Tlo losl viII llon uso llo informalion in
llo ondpoinls CSR loador lo configuro baso and Iimil rogislors in bridgos and
BARs in ondpoinls lo compIolo llo momory map for llis brancl of llo syslom.
- -- --
Appendix D: Intelligent Adapters & Multi-Host Systems
1007
Tlo losl viII llon oxpIoro llo rigllmosl porl of Svilcl A and road llo CSR
loador rogislors associalod vill llo lop porl of Svilcl B. Bocauso llis porl is a
non-lransparonl bridgo, llo losl finds a Typo 0 CSR loador. Tlo losl procossor
lloroforo boIiovos llal llis is an ondpoinl and oxpIoros no doopor aIong llal
brancl of llo ICI liorarcly. Tlo losl roads llo BARs of llo lop porl of Svilcl B
lo dolormino llo momory roquiromonls for vindovs inlo llo momory spaco on
llo ollor sido of llo bridgo. Tlo momory spaco roquiromonls can bo proIoadod
from an IIIROM inlo llo BAR Solup Rogislors of Svilcl Bs non-lransparonl
porl or can bo configurod by llo procossor llal is IocaI lo Svilcl B prior lo
aIIoving llo syslom losl lo compIolo discovory.
SimiIar lo llo losl procossor povor up soquonco, llo IocaI losl viII aIso bogin
onumoraling ils ovn syslom. IiIo llo syslom losl procossor, il viII aIIocalo
momory for ond poinls and conlinuo lo onumoralo vlon il oncounlors a lrans-
paronl bridgo. Wlon llo losl roaclos llo lopmosl porl of Svilcl B, il soos a
non-lransparonl bridgo vill a Typo 0 CSR loador. AccordingIy, il roads llo
BARs of llo CSR loador lo dolormino llo momory aporluro roquiromonls, llon
lorminalos discovory aIong llis brancl of ils ICI lroo. Again, llo momory apor-
luro informalion can bo suppIiod by an IIIROM, or by llo syslom losl.
Communicalion bolvoon llo lvo procossor domains is acliovod via a maiIbox
syslom and doorboII inlorrupls. Tlo doorboII faciIily aIIovs oacl procossor lo
sond inlorrupls lo llo ollor. Tlo maiIbox faciIily is a sol of duaI porlod rogislors
llal aro boll roadabIo and vrilabIo by boll procossors. Slarod momory
mappod moclanisms via llo BARs may aIso bo usod for inlor-procossor com-
municalion.
ExampIe: ImpIementing Host FaiIover in a PCI
Express System
Iiguro C-5 on pago 1008 iIIuslralos lov mosl ICI Ixpross sysloms viII impIo-
monl losl faiIovor. Tlo primary losl procossor in llis iIIuslralion is on llo Iofl
sido of llo diagram, vill llo bacIup losl on llo rigll sido of llo diagram. IiIo
mosl sysloms vill vlicl vo aro famiIiar, llo losl procossor connocls lo a rool
compIox. In lurn, llo rool compIox roulos ils lraffic lo llo svilcl. In llis oxam-
pIo, llo svilcl las lvo porls lo ond poinls in addilion lo llo upslroam porl for
llo primary losl vo lavo jusl doscribod. Iurllormoro, llis syslom aIso las
anollor procossor, vlicl is connoclod lo llo svilcl via anollor rool compIox.
PCI Express System Architecture
1008
Tlo svilcl porls lo boll procossors nood lo bo configurabIo lo bolavo oillor as
a lransparonl bridgo or a non-lransparonl bridgo. An IIIROM or slrap pins on
llo svilcl can bo usod lo iniliaIIy boolslrap llis configuralion.
Undor normaI oporalion, upon povor up, llo primary losl bogins lo onumoralo
llo syslom. In our oxampIo, as llo primary losl procossor bogins ils discovory
prolocoI llrougl llo fabric, il discovors llo lvo ond poinls, and lloir momory
roquiromonls, by sizing lloir BARs. Wlon il gols lo llo uppor rigll porl, il finds
a Typo 0 CSR loador. Tlis signifios lo llo primary losl procossor llal il slouId
nol allompl discovory on llo far sido of llo associalod svilcl porl. As in llo
provious oxampIo, llo BARs associalod vill llo non-lransparonl svilcl porl
may lavo boon configurod by IIIROM Ioad prior lo discovory or migll bo con-
figurod by soflvaro running on llo IocaI procossor.
- -- --
Appendix D: Intelligent Adapters & Multi-Host Systems
1009
Again, simiIar lo llo provious oxampIo, llo bacIup procossor povors up and
bogins lo onumoralo. In llis oxampIo, llo bacIup procossor clipsol consisls of
llo rool compIox and llo bacIup procossor onIy. Il discovors llo non-lranspar-
onl svilcl porl and lorminalos ils discovory lloro. Il is Ioyod by IIIROM
Ioadod Dovico ID and Vondor ID rogislors lo Ioad an approprialo drivor.
During llo courso of normaI oporalion, llo losl procossor porforms aII of ils
normaI dulios as il aclivoIy managos llo syslom. In addilion, il viII sond mos-
sagos lo llo bacIup procossor caIIod loarlboal mossagos. Hoarlboal mossagos
aro indicalions of llo conlinuod good loaIll of llo originaling procossor. A
loarlboal mossago migll bo as simpIo as a doorboII inlorrupl assorlion, bul lyp-
icaIIy vouId incIudo somo dala lo roduco llo possibiIily of a faIso posilivo.
ClocIpoinl and journaI mossagos aro aIlornalivo approaclos lo providing llo
bacIup procossor vill a slarling poinl, slouId il nood lo laIo ovor. In llo jour-
naI mollodoIogy, llo bacIup is providod vill a Iisl or journaI of compIolod
lransaclions (in llo appIicalion spocific sonso, nol in llo sonso of bus lransac-
lions). In llo clocIpoinl mollodoIogy, llo bacIup is poriodicaIIy providod vill
a compIolo syslom slalo from vlicl il can roslarl if nocossary. Tlo loarlboals
job is lo provido llo moans by vlicl llo bacIup procossor vorifios llal llo losl
procossor is sliII oporalionaI. TypicaIIy llis dala providos llo Ialosl aclivilios
and llo slalo of aII llo poriploraIs.
If llo bacIup procossor faiIs lo rocoivo limoIy loarlboal mossagos, il viII bogin
assuming conlroI. Ono of ils firsl lasIs is lo domolo llo primary porl lo provonl
llo faiIod procossor from inloracling vill llo rosl of llo syslom. Tlis is accom-
pIislod by roprogramming llo CSRs of llo svilcl using a momory mappod
viov of llo svilcls CSRs providod via a BAR in llo non-lransparonl porl. To
laIo ovor, llo bacIup procossor rovorsos llo lransparonl/non-lransparonl
modos al boll ils porl and llo primary procossors porl and laIos dovn llo IinI
lo llo primary procossor. Aflor cIoaning up any lransaclions Iofl in llo quouos
or Iofl in an incompIolo slalo as a rosuIl of llo losl faiIuro, llo bacIup procossor
roconfiguros llo syslom so llal il can sorvo as llo losl. IinaIIy, il usos llo dala in
llo clocIpoinl or journaI mossagos lo roslarl llo syslom.
PCI Express System Architecture
1010
ExampIe: ImpIementing DuaI Host in a PCI Express
Base System
Iiguro C-6 on pago 1010 iIIuslralos lov ICI Ixpross sysloms migll impIomonl
a duaI losl syslom
3
. In llis oxampIo, llo Ioflmosl bIocIs aro a lypicaIIy com-
pIolo syslom, vill llo rigllmosl bIocIs boing a soparalo subsyslom. As provi-
ousIy discussod, connocling llo Ioflmosl and rigllmosl diagram is a sol of non-
lransparonl bridgos.
3. Back to back non-transparent (NT) ports are unnecessary but occur as a result oI the
use oI identical single board computers Ior both hosts. A transparent backplane Iab-
ric would typically be interposed between the two NT ports.
- -- -
Appendix D: Intelligent Adapters & Multi-Host Systems
1011
Upon povor up, boll procossors viII bogin onumoraling. As boforo, llo losls
viII soarcl oul llo ondpoinls by roading llo CSR and llon aIIocalo momory
approprialoIy. Wlon llo losls oncounlor llo non-lransparonl bridgo porl in
oacl of lloir privalo svilclos, lloy viII assumo il is an ondpoinl and, using llo
dala in llo IIIROM, aIIocalo rosourcos. Boll sysloms viII uso llo doorboII and
maiIbox rogislors doscribod abovo lo communicalo vill oacl ollor.
2
Tlo duaI-losl syslom modoI may bo oxlondod lo a fuIIy rodundanl duaI slar
syslom by using addilionaI svilclos lo duaI-porl llo losls and Iino cards inlo a
rodundanl fabric as slovn in Iiguro C-7 on pago 1012. Tlis is parlicuIarIy
allraclivo lo vondors vlo ompIoy classis basod sysloms for lloir fIoxibiIily,
scaIabiIily and roIiabiIily.
Tvo losl cards aro slovn. Hosl A is llo primary losl of Iabric A and llo soc-
ondary losl of Iabric B. SimiIarIy, Hosl B is llo primary losl of Iabric B and llo
socondary losl of Iabric A.
Iacl losl is connoclod lo llo fabric il sorvos via a lransparonl bridgo/svilcl
porl and lo llo fabric for vlicl il providos onIy bacIup via a non-lransparonl
bridgo/svilcl porl. Tloso non-lransparonl porls aro usod for losl-lo-losl com-
municalions and aIso supporl cross-domain poor-lo-poor lransfors vloro
addross maps do nol aIIov a moro dirocl connoclion.
PCI Express System Architecture
1012
Summary
Tlrougl non-lransparonl bridging, ICI Ixpross Baso offors vondors llo abiIily
lo inlogralo inloIIigonl adaplors and muIli-losl sysloms inlo lloir noxl gonora-
lion dosigns. Tlis appondix domonslralod lov lloso foaluros viII bo dopIoyod
using do-faclo slandard loclniquos adoplod in llo ICI onvironmonl and
slovod lov lloy vouId bo uliIizod for various appIicalions. Bocauso of llis,
vo can oxpocl llis mollodoIogy lo bocomo llo induslry slandard in llo ICI
Ixpross paradigm.
Appendix D: Intelligent Adapters & Multi-Host Systems
1013
Address TransIation
Tlis soclion providos an in-dopll doscriplion of lov sysloms llal uso non-
lransparonl bridgos communicalo using addross lransIalion. Wo provido dolaiIs
aboul llo moclanism by vlicl sysloms dolormino nol onIy llo sizo of llo mom-
ory aIIocalod, bul aIso aboul lov momory poinlors aro ompIoyod. ImpIomonla-
lions using boll Dirocl Addross TransIalion as voII as IooIup TabIo Basod
Addross TransIalion aro discussod. By using llo samo slandardizod arcliloc-
luraI impIomonlalion of non lransparonl bridging popuIarizod in llo ICI para-
digm inlo llo ICI Ixpross onvironmonl, inlorconnocl vondors can spood marIol
adoplion of ICI Ixpross inlo marIols roquiring inloIIigonl adaplors, losl
faiIovor and muIlilosl capabiIilios.
Tlo lransparonl bridgo usos baso and Iimil rogislors in I/O spaco, non-profolcl-
abIo momory spaco, and profolclabIo momory spaco lo map lransaclions in llo
dovnslroam diroclion across llo bridgo. AII dovnslroam dovicos aro roquirod
lo bo mappod in conliguous addross rogions sucl llal a singIo aporluro in oacl
spaco is sufficionl. Upslroam mapping is dono via invorso docoding roIalivo lo
llo samo rogislors. A lransparonl bridgo doos nol lransIalo llo addrossos of for-
vardod lransaclions/pacIols.
Tlo non-lransparonl bridgos uso llo slandard sol of BARs in lloir Typo 0 CSR
loador lo dofino aporluros inlo llo momory spaco on llo ollor sido of llo
bridgo. Tloro aro lvo sols of BARs: ono on llo Irimary sido and ono on llo Soc-
ondary. BARs dofino rosourco aporluros llal aIIov llo forvarding of lransac-
lions lo llo opposilo (ollor sido) inlorfaco.
Ior oacl BAR bridgo lloro oxisls a sol of associalod conlroI and solup rogislors
usuaIIy vrilabIo from llo ollor sido of llo bridgo. Iacl BAR las a solup rog-
islor, vlicl dofinos llo sizo and lypo of ils aporluro, and an addross lransIalion
rogislor. Somo bars aIso lavo a Iimil rogislor llal can bo usod lo roslricl ils apor-
luros sizo. Tloso rogislors nood lo bo programmod prior lo aIIoving accoss
from oulsido llo IocaI subsyslom. Tlis is lypicaIIy dono by soflvaro running on
a IocaI procossor or by Ioading llo rogislors from IIIROM.
In ICI Ixpross, llo Transaclion ID fioIds of pacIols passing llrougl lloso apor-
luros aro aIso lransIalod lo supporl Dovico ID rouling. Tloso Dovico IDs aro
usod lo roulo compIolions lo non-poslod roquosls and ID roulod mossagos.
Tlo lransparonl bridgo forvards CSR lransaclions in llo dovnslroam diroclion
according lo llo socondary and subordinalo bus numbor rogislors, convorling
Typo 1 CSRs lo Typo 0 CSRs as roquirod. Tlo non-lransparonl bridgo accopls
onIy lloso CSR lransaclions addrossod lo il and rolurns an unsupporlod roquosl
rosponso lo aII ollors.
PCI Express System Architecture
1014
Direct Address TransIation
Tlo addrossos of aII upslroam and dovnslroam lransaclions aro lransIalod
(oxcopl BARs accossing CSRs). Will llo oxcoplion of llo casos in llo foIIoving
lvo soclions, addrossos llal aro forvardod from ono inlorfaco lo llo ollor aro
lransIalod by adding a Baso Addross lo lloir offsol villin llo BAR llal lloy
Iandod in as soon in Iiguro C-8 on pago 1014. Tlo BAR Baso TransIalion Rogis-
lors aro usod lo sol up lloso baso lransIalions for llo individuaI BARs.
Lookup TabIe Based Address TransIation
IoIIoving llo do faclo slandard adoplod by llo ICI communily, ICI Ixpross
slouId provido sovoraI BARs for llo purposos of aIIocaling rosourcos. AII BARs
conlain llo momory aIIocalion, lovovor, in accordanco vill ICI induslry con-
vonlions, BAR 0 conlains llo CSR informalion vloroas BAR1 conlains I/O
informalion, BAR 2 and BAR 3 aro uliIizod for IooIup TabIo Basod TransIalion.
BAR 4 and BAR 5 aro uliIizod for Dirocl Addross TransIalions.
On llo socondary sido, BAR3 usos a spociaI IooIup labIo basod addross lransIa-
lion for lransaclions llal faII insido ils vindov as soon in Iiguro C-9 on pago
1015. Tlo IooIup labIo providos moro fIoxibiIily in socondary bus IocaI
-- -
Appendix D: Intelligent Adapters & Multi-Host Systems
1015
addrossos lo primary bus addrossos. Tlo Iocalion of llo indox fioId vill llo
addross bus is programmabIo lo adjusl aporluro sizo.
Downstream BAR Limit Registers
Tlo lvo dovnslroam BARs on llo primary sido (BAR2/3 and BAR4/5) aIso
lavo Iimil rogislors, programmabIo from llo IocaI sido, lo furllor roslricl llo
sizo of llo vindov lloy oxposo, as soon in Iiguro C-10 on pago 1016. BARs can
onIy bo assignod momory rosourcos in povor of lvo granuIarily. Tlo Iimil
rogislors provido a moans lo oblain bollor granuIarily by capping llo sizo of
llo BAR villin llo povor of lvo granuIarily. OnIy lransaclions boIov llo
Iimil rogislors aro forvardod lo llo socondary bus. Transaclions abovo llo Iimil
aro discardod or rolurn 0xIIIIIIII, or a maslor aborl oquivaIonl pacIol, on
roads.
- -
PCI Express System Architecture
1016
Forwarding 64bit Address Memory Transactions
Corlain BARs can bo configurod lo vorI in pairs lo provido llo baso addross
and lransIalion for lransaclions conlaining 64-bil addrossos. Transaclions llal
lil villin lloso 64-bil BARs aro forvardod using Dirocl Addross TransIalion.
As in llo caso of 32 bil lransaclions, vlon a momory lransaclion is forvardod
from llo primary lo llo socondary bus, llo primary addross can bo mappod lo
anollor addross in llo socondary bus domain. Tlo mapping is porformod by
subsliluling a nov baso addross for llo baso of llo originaI addross.
- -
Appendix D: Intelligent Adapters & Multi-Host Systems
1017
A 64-bil BAR pair on llo syslom sido of llo bridgo is usod lo lransIalo a vindov
of 64-bil addrossos in pacIols originalod on llo syslom sido of llo bridgo dovn
boIov 232 in IocaI spaco.
PCI Express System Architecture
1018
1019
-- -
Tlis appondix Iisls llo cIass codos, sub-cIass codos, and programming inlorfaco
bylo dofinilions curronlIy providod in llo 2.3 ICI spocificalion.
-- -
-- -
-- -
00l Iunclion buiIl boforo cIass codos voro dofinod (in ollor vords:
boforo rov 2.0 of llo ICI spoc).
01l Mass slorago conlroIIor.
02l NolvorI conlroIIor.
03l DispIay conlroIIor.
04l MuIlimodia dovico.
05l Momory conlroIIor.
06l Bridgo dovico.
PCI Express System Architecture
1020
07l SimpIo communicalions conlroIIors.
08l Baso syslom poriploraIs.
09l Inpul dovicos.
0Al DocIing slalions.
0Bl Irocossors.
0Cl SoriaI bus conlroIIors.
0Dl WiroIoss conlroIIors.
0Il InloIIigonl IO conlroIIors.
0Il SaloIIilo communicalions conlroIIors.
10l Incryplion/Docryplion conlroIIors.
11l Dala acquisilion and signaI procossing conlroIIors.
12l-IIl Rosorvod.
IIl Dovico doos nol fil any of llo dofinod cIass codos.
--
-- -
00l 00l AII dovicos ollor llan VGA.
01l 01l VGA-compalibIo dovico.
-- -- -
-- -
00l 00l SCSI conlroIIor.
01l xxl IDI conlroIIor. Soo TabIo D-20 on pago 1031
for dofinilion of Irogramming Inlorfaco bylo.
-- -
-- -
Appendix D: Class Codes
1021
02l 00l IIoppy disI conlroIIor.
03l 00l III conlroIIor.
04l 00l RAID conlroIIor.
05l
20l ATA conlroIIor vill singIo DMA .
30l ATA conlroIIor vill clainod DMA.
80l 00l Ollor mass slorago conlroIIor.
-- -
-- -
00l 00l Illornol conlroIIor.
01l 00l ToIon ring conlroIIor.
02l 00l IDDI conlroIIor.
03l 00l ATM conlroIIor.
04l 00l ISDN ConlroIIor.
05l 00l WorIdIip conlroIIor.
06l IICMG 2.14 MuIli Compuling. Ior informalion
on llo uso of llo Irogramming Inlorfaco Bylo,
soo llo IICMG 2.14 MuIli Compuling
Spocificalion (lllp://vvv.picmg.com).
80l 00l Ollor nolvorI conlroIIor.
-- -- -
-- -
PCI Express System Architecture
1022
-- - -
-- -
00l 00l VGA-compalibIo conlroIIor, rosponding lo
momory addrossos 000A0000l llrougl
000BIIIIl (Vidoo Iramo Buffor), and IO
addrossos 03B0l llrougl 3BBl, and 03C0l-
llrougl-03DIl and aII aIiasos of lloso
addrossos.
01l 8514-compalibIo conlroIIor, rosponding lo IO
addross 02I8l and ils aIiasos, 02IAl and
02IIl.
01l 00l XGA conlroIIor.
02l 00l 3D ConlroIIor.
80l 00l Ollor dispIay conlroIIor.
-- -
-- -
00l 00l Vidoo dovico.
01l 00l Audio dovico.
02l 00l Compulor ToIoplony dovico.
80l 00l Ollor muIlimodia dovico.
-- -
-- -
00l 00l RAM momory conlroIIor.
01l 00l IIasl momory conlroIIor.
80l 00l Ollor momory conlroIIor.
Appendix D: Class Codes
1023
-- -
-- -
00l 00l Hosl/ICI bridgo.
01l 00l ICI/ISA bridgo.
02l 00l ICI/IISA bridgo.
03l 00l ICI/Micro ClannoI bridgo.
04l 00l ICI/ICI bridgo.
01l Sublraclivo docodo ICI-lo-ICI bridgo. Sup-
porls sublraclivo docodo in addilion lo normaI
ICI-lo-ICI funclions. Ior a dolaiIod discussion
of llis bridgo lypo, rofor lo llo MindSlaro
- booI, Iourll Idilion (pub-
Iislod by Addison-WosIoy).
05l 00l ICI/ICMCIA bridgo.
06l 00l ICI/NuBus bridgo.
07l 00l ICI/CardBus bridgo.
08l xxl RACIvay bridgo. RACIvay is an ANSI slan-
dard (ANSI/VITA 5-1994) svilcling fabric. Bils
7:1 of llo Inlorfaco bils aro rosorvod, road-onIy
and rolurn zoros. Bil 0 is road-onIy and, if 0,
indicalos llal llo bridgo is in Transparonl
modo, vliIo 1 indicalos llal ils in Ind-Ioinl
modo.
09l
40l Somi-lransparonl ICI-lo-ICI bridgo
vill llo primary ICI bus sido facing
llo syslom losl procossor.
80l Somi-lransparonl ICI-lo-ICI bridgo
vill llo socondary ICI bus sido
facing llo syslom losl procossor.
0Al 00l InfiniBand-lo-ICI losl bridgo.
80l 00l Ollor bridgo lypo.
PCI Express System Architecture
1024
-- - -
-- -
00l
00l Gonoric XT-compalibIo soriaI conlroIIor.
01l 16450-compalibIo soriaI conlroIIor.
02l 16550-compalibIo soriaI conlroIIor.
03l 16650-compalibIo soriaI conlroIIor.
04l 16750-compalibIo soriaI conlroIIor.
05l 16850-compalibIo soriaI conlroIIor.
06l 16950-compalibIo soriaI conlroIIor.
01l
00l IaraIIoI porl.
01l Bi-diroclionaI paraIIoI porl.
02l ICI 1.X-compIianl paraIIoI porl.
03l IIII 1284 conlroIIor.
IIl IIII 1284 largol dovico (nol a conlroIIor).
02l 00l MuIliporl soriaI conlroIIor.
Appendix D: Class Codes
1025
03l
00l Gonoric modom.
01l Hayos-compalibIo modom, 16450-compalibIo inlorfaco. BAR
0 maps llo modoms rogislor sol. Tlo rogislor sol can bo
oillor momory- or IO-mappod (as indicalod by llo lypo of
BAR).
02l Hayos-compalibIo modom, 16550-compalibIo inlorfaco. BAR
0 maps llo modoms rogislor sol. Tlo rogislor sol can bo
oillor momory- or IO-mappod (as indicalod by llo lypo of
BAR).
03l Hayos-compalibIo modom, 16650-compalibIo inlorfaco. BAR
0 maps llo modoms rogislor sol. Tlo rogislor sol can bo
oillor momory- or IO-mappod (as indicalod by llo lypo of
BAR).
04l Hayos-compalibIo modom, 16750-compalibIo inlorfaco. BAR
0 maps llo modoms rogislor sol. Tlo rogislor sol can bo
oillor momory- or IO-mappod (as indicalod by llo lypo of
BAR).
04l 00l GIIB (IIII 488.1/2) conlroIIor.
05l 00l Smarl Card.
80l 00l Ollor communicalions dovico.
-- - -
-- -
PCI Express System Architecture
1026
-- - - -
-- -
00l 00l Gonoric 8259 programmabIo inlorrupl conlroI-
Ior (IIC).
01l ISA IIC.
02l IISA IIC.
10l IO AIIC. Baso Addross Rogislor 0 is usod lo
roquosl a minimum of 32 bylos of non-Irofolcl-
abIo momory. Tvo rogislors villin llal spaco
aro Iocalod al Baso + 00l (IO SoIocl Rogislor)
and Baso + 10l (IO Windov Rogislor). Ior a fuII
doscriplion of llo uso of lloso rogislors, rofor lo
llo dala slool for llo InloI 8237IB in llo 82420/
82430 ICIsol IISA Bridgo DalabooI #290483-
003.
20l IO(x) AIIC inlorrupl conlroIIor.
01l 00l Gonoric 8237 DMA conlroIIor.
01l ISA DMA conlroIIor.
02l IISA DMA conlroIIor.
02l 00l Gonoric 8254 limor.
01l ISA syslom limors.
02l IISA syslom limors.
03l 00l Gonoric RTC conlroIIor.
01l ISA RTC conlroIIor.
04l 00l Gonoric ICI Hol-IIug conlroIIor.
80l 00l Ollor syslom poriploraI.
Appendix D: Class Codes
1027
-- -
-- -
00l 00l Koyboard conlroIIor.
01l 00l Digilizor (pon).
02l 00l Mouso conlroIIor.
03l 00l Scannor conlroIIor.
04l 00l Gonoric gamoporl conlroIIor.
10l Gamoporl conlroIIor. A gamoporl conlroIIor
vill a Irogramming Inlorfaco = 10l indicalos
llal any Baso Addross rogislors in llis funclion
llal roquosl/assign IO addross spaco, llo rogis-
lors in llal IO spaco conform lo llo slandard
Iogacy gamo porls. Tlo bylo al offsol 00l in
an IO rogion bolavos as a Iogacy gamoporl
inlorfaco vloro roads lo llo bylo rolurn joy-
slicI/gamopad informalion and vrilos lo llo
bylo slarl llo RC limor. Tlo bylo al offsol 01l is
an aIias of llo bylo al offsol 00l. AII ollor bylos
in an IO rogion aro unspocifiod and can bo usod
in vondor uniquo vays.
80l 00l Ollor inpul conlroIIor.
-- -
-- -
00l 00l Gonoric docIing slalion.
80l 00l Ollor lypo of docIing slalion.
PCI Express System Architecture
1028
-- ---
-- -
00l 00l 386.
01l 00l 486.
02l 00l Ionlium.
10l 00l AIpla.
20l 00l IovorIC.
30l 00l MIIS
40l 00l Co-procossor.
-- - -
-- -
00l 00l Iiroviro (IIII 1394).
10l IIII 1394 using 1394 OponHCI spoc.
01l 00l ACCISS.bus.
02l 00l SSA (SoriaI Slorago Arclilocluro).
03l 00l USB (UnivorsaI SoriaI Bus) conlroIIor using
UnivorsaI Hosl ConlroIIor spoc.
10l USB (UnivorsaI SoriaI Bus) conlroIIor using
Opon Hosl ConlroIIor spoc.
80l USB (UnivorsaI SoriaI Bus) conlroIIor vill no
spocific programming inlorfaco.
IIl USB dovico (nol Hosl ConlroIIor).
04l 00l Iibro ClannoI.
05l 00l SMBus (Syslom Managomonl Bus).
06l 00l InfiniBand.
Appendix D: Class Codes
1029
07l
00l IIMI SMIC Inlorfaco. Tlo rogislor inlorfaco dof-
inilions for llo InloIIigonl IIalform Manago-
monl Inlorfaco Sub-CIass 07l) aro in llo IIMI
spocificalion.
01l IIMI Kybd ConlroIIor SlyIo Inlorfaco
02l IIMI BIocI Transfor Inlorfaco
08l 00l SIRCOS Inlorfaco Slandard (IIC
61491). Tloro is no rogislor IovoI dofinilion for
llo SIRCOS Inlorfaco slandard. Ior moro
informalion soo IIC 61491.
09l 00l CANbus.
80l 00l Ollor lypo of SoriaI Bus ConlroIIor.
-- -- -
--
00 00l iRDA compalibIo conlroIIor
01l 00l Consumor IR conlroIIor
10l 00l RI conlroIIor
11l 00l BIuolooll.
12l 00l Broadband.
80l 00l Ollor lypo of viroIoss conlroIIor
-- - -
-- -
PCI Express System Architecture
1030
-- -
--
00l xxl InloIIigonl IO conlroIIor adloring lo llo I2O
Arclilocluro spoc. Tlo spoc can bo dovn-
Ioadod from flp.inloI.com/pub/IAI/i2o/.
00l Mossago IIIO al offsol 40l.
80l 00l Ollor lypo of InloIIigonl IO ConlroIIor.
-- - -
--
01l 00l TV
02l 00l Audio
03l 00l Voico
04l 00l Dala
80l 00l Ollor lypo of SaloIIilo Communicalions
ConlroIIor.
-- -
--
00l 00l NolvorI and compuling Incrypl/Docrypl.
10l 00l Inlorlainmonl Incrypl/Docrypl.
80l 00l Ollor Incrypl/Docrypl.
Appendix D: Class Codes
1031
: Tlo SIG documonl compIoloIy doscribos
llo Iayoul and moaning of bils 0 llrougl 3 in llo Irogramming Inlorfaco bylo.
Tlo documonl - - -
doscribos llo moaning of bil 7 in llo Irogramming Inlorfaco bylo. WliIo llo ICI
2.1 spoc slalod llal llis documonl couId bo oblainod via IAX by caIIing
(408)741-1600 and roquosling documonl 8038, llal roforonco vas romovod from
llo 2.3 spoc.
-- - -- -
--
00l 00l DIIO moduIos.
01l 00l Iorformanco counlors.
10l 00l Communicalions synclronizalion pIus
limo and froquoncy losl/moasuromonl.
20l 00l Managomonl card.
80l 00l Ollor Dala Acquisilion and SignaI Irocoss-
ing ConlroIIors.
-
- -
0 Oporaling modo (primary).
1 IrogrammabIo indicalor (primary).
2 Oporaling modo (socondary).
3 IrogrammabIo indicalor (socondary).
6:4 Rosorvod. Hardvirod lo zoro.
7 Maslor IDI dovico.
1033
--
-
Introduction
Nalivo ICI Ixpross impIomonlalions do nol supporl IocI. Supporl for IocIod
lransaclion soquoncos oxisl soIoIy for supporling Iogacy dovico soflvaro oxocul-
ing on llo losl procossor llal porforms a IocIod RMW (road-modify-vrilo)
oporalion on a momory somaploro llal may rosido villin llo momory of a Iog-
acy ICI dovico. Tlis claplor dofinos llo prolocoI dofinod by ICI Ixpross for
supporling IocIod accoss soquoncos llal largol Iogacy dovicos. IaiIuro lo sup-
porl IocI may rosuIl in doadIocIs.
Background
ICI Ixpross conlinuos llo ICI 2.3 lradilion of supporling IocIod lransaclion
soquoncos (RMWroady-modify-vrilo) lo supporl Iogacy dovico soflvaro. ICI
Ixpross dovicos and lloir soflvaro drivors aro novor aIIovod lo uso inslruclions
llal causo llo CIU lo gonoralo IocIod oporalions llal largol momory llal
rosidos bonoall llo Roor CompIox IovoI.
IocIod oporalions consisl of llo basic RMW soquonco, llal is:
1. Ono or moro momory roads from llo largol Iocalion lo oblain llo soma-
ploro vaIuo.
2. Tlo modificalion of llo dala villin a procossor rogislor.
3. Ono or moro vrilos lo vrilo llo modifiod somaploro vaIuo bacI lo llo lar-
gol momory Iocalion.
PCI Express System Architecture
1034
Tlis lransaclion soquonco musl bo porformod sucl llal no ollor accossos aro
pormillod lo llo largol Iocalions (or dovico) during llo IocIod soquonco. Tlis
roquiros bIocIing ollor lransaclions during llo oporalion. Tlo rosuIl polonliaIIy
can rosuIl in doadIocIs and poor porformanco.
Tlo dovicos roquirod lo supporl IocIod soquoncos aro:
- Tlo Rool CompIox.
- Any Svilclos in llo pall Ioading lo a Iogacy dovicos llal may bo llo largol
of a IocIod lransaclion sorios.
- A ICI Ixpross - lo - ICI Bridgo.
- A ICI Ixpross-lo-ICI-X Bridgo.
- Any Iogacy dovicos vloso dovico drivors issuo IocIod lransaclions lo mom-
ory rosiding villin llo Iogacy dovico.
No ollor dovicos musl supporl IocIod lransaclions and musl ignoro any IocIod
lransaclions llal lloy rocoivo.
IocI in llo ICI onvironmonl is acliovod, in parl, via llo uso of llo ICI IOCK#
signaI. Tlo oquivaIonl funclionaIily in ICI Ixpross is accompIislod via a lrans-
aclion llal omuIalos llo IOCK signaI funclionaIily.
The PCI Express Lock ProtocoI
Tlo onIy sourco of IocI supporlod by ICI Ixpross is llo syslom procossor, and,
as a consoquonco, llo sourco of aII IocIod oporalions in ICI Ixpross is llo Rool
CompIox (acling as llo procossors surrogalo). A IocIod oporalion is porformod
bolvoon a Rool CompIox dovnslroam porl and llo ICI Ixpross dovnslroam
porl lo vlicl llo largolod Iogacy dovico is allaclod. In mosl sysloms, llo Iogacy
dovico is lypicaIIy a ICI Ixpross-lo-ICI or ICI Ixpross-lo-ICI-X bridgo. OnIy
ono IocIod soquonco al a limo is supporlod for a givon liorarclicaI pall.
ICI Ixpross Iimils IocIod lransaclions lo Traffic CIass 0 and VirluaI ClannoI 0.
AII lransaclions vill TC vaIuos ollor llan zoro llal aro mappod lo a VC ollor
llan zoro aro pormillod lo lravorso llo fabric villoul rogard lo llo IocIod opor-
alion. AII lransaclions llal aro mappod lo VC0 aro subjocl lo llo IocI ruIos
doscribod in llis appondix. Tlo discussion of llo IocIod prolocoI in llis appon-
dix prosumos llal aII lransaclions lavo boon assignod lo TC0 (unIoss ollorviso
indicalod).
Appendix E: Locked Transaction Series
1035
Lock Messages The VirtuaI Lock SignaI
ICI Ixpross dofinos llo foIIoving lransaclions llal, logollor, acl as a virluaI
viro llal ropIacos llo ICI IOCK# signaI.
- - (MRdII) Originalos a IocIod soquonco.
Tlo firsl MRdII lransaclion bIocIs ollor roquosls from roacling llo largol
dovico. Ono or moro of lloso IocIod road roquosls may bo issuod during llo
soquonco.
- (CpIDII) Rolurns dala and
confirms llal llo pall lo llo largol is IocIod. A succossfuI road CompIolion
llal rolurns dala for llo firsl Momory Road IocI roquosl rosuIls in llo pall
bolvoon llo Rool CompIox and llo largol dovico boing IocIod. Tlal is,
lransaclions lravorsing llo samo pall from ollor porls aro bIocIod from
roacling oillor llo rool porl or llo largol porl. Transaclions boing roulod in
buffors for VC1-VC7 aro unaffoclod by llo IocI.
- (CpIIK) A CompIolion
villoul a dala payIoad indicalos llal llo IocI soquonco cannol compIolo
curronlIy and llo pall romains unIocIod.
- -- An unIocI mossago is issuod by llo Rool CompIox
from llo IocIod rool porl. Tlis mossago unIocIs llo pall bolvoon llo rool
porl and llo largol porl.
The Lock ProtocoI Sequence an ExampIe
Tlis soclion oxpIains llo ICI Ixpross IocI prolocoI by oxampIo. Tlo oxampIo
incIudos llo foIIoving dovicos:
- Tlo Rool CompIox llal inilialos llo IocIod lransaclion sorios on bolaIf of
llo losl procossor.
- A Svilcl in llo pall bolvoon llo rool porl and largolod Iogacy ondpoinl.
- A ICI Ixpross-lo-ICI Bridgo in llo pall lo llo largol.
- Tlo largol ICI dovico vlos Dovico Drivor inilialod llo IocIod RMW.
- A ICI Ixpross ondpoinl is incIudod lo doscribo Svilcl bolavior during
IocI.
In llis oxampIo, llo IocIod oporalion compIolos normaIIy. Tlo slops llal occur
during llo oporalion aro doscribod in llo lvo soclions llal foIIov.
PCI Express System Architecture
1036
The Memory Read Lock Operation
Iiguro I-1 on pago 1037 iIIuslralos llo firsl slop in llo IocIod lransaclion sorios
(i.o., llo iniliaI momory road lo oblain llo somaploro):
1. Tlo CIU inilialos llo IocIod soquonco (a IocIod Momory Road) as a rosuIl
of a drivor oxoculing a IocIod RMW inslruclion llal largols a ICI largol.
2. Tlo Rool Iorl issuos a Momory Road IocI Roquosl from porl 2. Tlo Rool
CompIox is aIvays llo sourco of a IocIod soquonco.
3. Tlo Svilcl rocoivos llo IocI roquosl on ils upslroam porl and forvards llo
roquosl lo llo largol ogross porl (3). Tlo svilcl, upon forvarding llo
roquosl lo llo ogross porl, musl bIocI aII roquosls from porls ollor llan llo
ingross porl (1) from boing sonl from llo ogross porl.
4. A subsoquonl poor-lo-poor lransfor from llo iIIuslralod ICI Ixpross ond-
poinl lo llo ICI bus (svilcl porl 2 lo svilcl porl 3) vouId bo bIocIod unliI
llo IocI is cIoarod. Nolo llal llo IocI is nol yol oslabIislod in llo ollor
diroclion. Transaclions from llo ICI Ixpross ondpoinl couId bo sonl lo llo
Rool CompIox.
5. Tlo Momory Road IocI Roquosl is sonl from llo Svilcls ogross porl lo llo
ICI Ixpross-lo-ICI Bridgo. Tlis bridgo viII impIomonl ICI IocI somanlics
(Soo llo MindSlaro booI onlilIod - , for
dolaiIs rogarding ICI IocI).
6. Tlo bridgo porforms llo Momory Road lransaclion on llo ICI bus vill llo
ICI IOCK# signaI assorlod. Tlo largol momory dovico rolurns llo
roquoslod somaploro dala lo llo bridgo.
7. Road dala is rolurnod lo llo Bridgo and is doIivorod bacI lo llo Svilcl via a
Momory Road IocI CompIolion vill Dala (CpIDII).
8. Tlo svilcl usos ID rouling lo rolurn llo pacIol upslroam lovards llo losl
procossor. Wlon llo CpIDII pacIol is forvardod lo llo upslroam porl of
llo Svilcl, il oslabIislos a IocI in llo upslroam diroclion lo provonl lraffic
from ollor porls from boing roulod upslroam. Tlo ICI Ixpross ondpoinl is
compIoloIy bIocIod from sonding any lransaclion lo llo Svilcl porls via
llo pall of llo IocIod oporalion. Nolo llal lransfors bolvoon Svilcl porls
nol invoIvod in llo IocIod oporalion vouId bo pormillod (nol slovn in llis
oxampIo).
9. Upon dolocling llo CpIDII pacIol, llo Rool CompIox Inovs llal llo IocI
las boon oslabIislod aIong llo pall bolvoon il and llo largol dovico, and
llo compIolion dala is sonl lo llo CIU.
Appendix E: Locked Transaction Series
1037
Read Data Modified and Written to Target and Lock Com-
pIetes
Tlo dovico drivor rocoivos llo somaploro vaIuo, aIlors il, and llon inilialos a
momory vrilo lo updalo llo somaploro villin llo momory of llo Iogacy ICI
dovico. Iiguro I-2 on pago 1038 iIIuslralos llo vrilo soquonco foIIovod by llo
Rool CompIoxs lransmission of llo UnIocI mossago llal roIoasos llo IocI:
10. Tlo Rool CompIox issuos llo Momory Wrilo Roquosl across llo IocIod pall
lo llo largol dovico.
11. Tlo Svilcl forvards llo lransaclion lo llo largol ogross porl (3). Tlo mom-
ory addross of llo Momory Wrilo musl bo llo samo as llo iniliaI Momory
Road roquosl.
- -
PCI Express System Architecture
1038
12. Tlo bridgo forvards llo lransaclion lo llo ICI bus.
13. Tlo largol dovico rocoivos llo momory vrilo dala.
14. Onco llo Momory Wrilo lransaclion is sonl from llo Rool CompIox, il sonds
an UnIocI mossago lo inslrucl llo Svilclos and any ICI/ICI-X bridgos in
llo IocIod pall lo roIoaso llo IocI. Nolo llal llo Rool CompIox prosumos
llo oporalion las compIolod normaIIy (bocauso momory vrilos aro poslod
and no CompIolion is rolurnod lo vorify succoss).
15. Tlo Svilcl rocoivos llo UnIocI mossago, unIocIs ils porls and forvards llo
mossago lo llo ogross porl llal vas IocIod lo nolify any ollor Svilclos
and/or bridgos in llo IocIod pall llal llo IocI musl bo cIoarod.
16. Upon dolocling llo UnIocI mossago, llo bridgo musl aIso roIoaso llo IocI
on llo ICI bus.
- --
Appendix E: Locked Transaction Series
1039
Notification of an UnsuccessfuI Lock
A IocIod lransaclion sorios is aborlod vlon llo iniliaI Momory Road IocI
Roquosl rocoivos a CompIolion pacIol vill no dala (CpIII). Tlis moans llal llo
IocIod soquonco musl lorminalo bocauso no dala vas rolurnod. Tlis couId
rosuIl from an orror associalod vill llo momory road lransaclion, or porlaps
llo largol dovico is busy and cannol rospond al llis limo.
Summary of Locking RuIes
IoIIoving is a Iisl of ordoring ruIos llal appIy lo llo Rool CompIox, Svilclos,
and Bridgos.
RuIes ReIated To the Initiation and Propagation of
Locked Transactions
- IocIod Roquosls vlicl aro compIolod vill a slalus ollor llan SuccossfuI
CompIolion do nol oslabIisl IocI.
- RogardIoss of llo slalus of any of llo CompIolions associalod vill a IocIod
soquonco, aII IocIod soquoncos and allomplod IocIod soquoncos musl bo
lorminalod by llo lransmission of an UnIocI Mossago.
- MRdII, CpIDII and UnIocI somanlics aro aIIovod onIy for llo dofauIl
Traffic CIass (TC0).
- OnIy ono IocIod lransaclion soquonco allompl may bo in progross al a givon
limo villin a singIo liorarcly domain.
- Any dovico vlicl is nol invoIvod in llo IocIod soquonco musl ignoro llo
UnIocI Mossago.
Tlo inilialion and propagalion of a IocIod lransaclion soquonco llrougl llo
ICI Ixpross fabric is porformod as foIIovs:
- A IocIod lransaclion soquonco is slarlod vill a MRdII Roquosl:
Any succossivo roads associalod vill llo IocIod lransaclion soquonco
musl aIso uso MRdII Roquosls.
Tlo CompIolions for any succossfuI MRdII Roquosl uso llo CpIDII
CompIolion lypo, or llo CIIII CompIolion lypo for unsuccossfuI
Roquosls.
PCI Express System Architecture
1040
- If any road associalod vill a IocIod soquonco is compIolod unsuccossfuIIy,
llo Roquoslor musl assumo llal llo alomicily of llo IocI is no Iongor
assurod, and llal llo pall bolvoon llo Roquoslor and CompIolor is no
Iongor IocIod.
- AII vrilos associalod vill a IocIod soquonco musl uso MWr Roquosls.
- Tlo UnIocI Mossago is usod lo indicalo llo ond of a IocIod soquonco. A
Svilcl propagalos UnIocI Mossagos llrougl llo IocIod Igross Iorl.
- Upon rocoiving an UnIocI Mossago, a Iogacy Indpoinl or Bridgo musl
unIocI ilsoIf if il is in a IocIod slalo. If il is nol IocIod, or if llo Rocoivor is a
ICI Ixpross Indpoinl or Bridgo vlicl doos nol supporl IocI, llo UnIocI
Mossago is ignorod and discardod.
RuIes ReIated to Switches
Svilclos musl dolocl lransaclions associalod vill IocIod soquoncos from ollor
lransaclions lo provonl ollor lransaclions from inlorforing vill llo IocI and
polonliaIIy causing doadIocI. Tlo foIIoving ruIos covor lov llis is dono. Nolo
llal IocIod accossos aro Iimilod lo TC0, vlicl is aIvays mappod lo VC0.
- Wlon a Svilcl propagalos a MRdII Roquosl from an Ingross Iorl lo llo
Igross Iorl, il musl bIocI aII Roquosls vlicl map lo llo dofauIl VirluaI
ClannoI (VC0) from boing propagalod lo llo Igross Iorl. If a subsoquonl
MRdII Roquosl is rocoivod al llis Ingross Iorl addrossing a difforonl
Igross Iorl, llo bolavior of llo Svilcl is undofinod. Nolo llal llis sorl of
spIil-IocI accoss is nol supporlod by ICI Ixpross and soflvaro musl nol
causo sucl a IocIod accoss. Syslom doadIocI may rosuIl from sucl accossos.
- Wlon llo CpIDII for llo firsl MRdII Roquosl is rolurnod, if llo CompIo-
lion indicalos a SuccossfuI CompIolion slalus, llo Svilcl musl bIocI aII
Roquosls from aII ollor Iorls from boing propagalod lo oillor of llo Iorls
invoIvod in llo IocIod accoss, oxcopl for Roquosls vlicl map lo clannoIs
ollor llan VC0 on llo Igross Iorl.
- Tlo lvo Iorls invoIvod in llo IocIod soquonco musl romain bIocIod unliI
llo Svilcl rocoivos llo UnIocI Mossago (al llo Ingross Iorl vlicl rocoivod
llo iniliaI MRdII Roquosl)
Tlo UnIocI Mossago musl bo forvardod lo llo IocIod Igross Iorl.
Tlo UnIocI Mossago may bo broadcasl lo aII ollor Iorls.
Tlo Ingross Iorl is unbIocIod onco llo UnIocI Mossago arrivos, and llo
Igross Iorl(s) vlicl voro bIocIod aro unbIocIod foIIoving llo lrans-
mission of llo UnIocI Mossago oul of llo Igross Iorl(s). Iorls llal voro
nol invoIvod in llo IocIod accoss aro unaffoclod by llo UnIocI Mossago
Appendix E: Locked Transaction Series
1041
RuIes ReIated To PCI Express/PCI Bridges
Tlo roquiromonls for ICI Ixpross/ICI Bridgos aro simiIar lo lloso for Svilclos,
oxcopl llal, bocauso lloso Bridgos onIy uso TC0 and VC0, aII ollor lraffic is
bIocIod during llo IocIod accoss. Tlo roquiromonls on llo ICI bus sido aro
doscribod in llo MindSlaro booI onlilIod -
(pubIislod by Addison-WosIoy).
RuIes ReIated To the Root CompIex
A Rool CompIox is pormillod lo supporl IocIod lransaclions as a Roquoslor. If
IocIod lransaclions aro supporlod, a Rool CompIox musl foIIov llo ruIos
aIroady doscribod lo porform a IocIod accoss. Tlo moclanism(s) usod by llo
Rool CompIox lo inlorfaco lo llo losl procossors ISB (Ironl-Sido Bus) aro oul-
sido llo scopo of llo spoc.
RuIes ReIated To Legacy Endpoints
Iogacy Indpoinls aro pormillod lo supporl IocIod accossos, aIllougl lloir uso
is discouragod. If IocIod accossos aro supporlod, Iogacy Indpoinls musl landIo
llom as foIIovs:
- Tlo Iogacy Indpoinl bocomos IocIod vlon il lransmils llo firsl CompIolion
for llo firsl road roquosl of llo IocIod lransaclion sorios accoss vill a Suc-
cossfuI CompIolion slalus:
If llo compIolion slalus is nol SuccossfuI CompIolion, llo Iogacy Ind-
poinl doos nol bocomo IocIod.
Onco IocIod, llo Iogacy Indpoinl musl romain IocIod unliI il rocoivos
llo UnIocI Mossago.
- WliIo IocIod, a Iogacy Indpoinl musl nol issuo any Roquosls using Traffic
CIassos vlicl map lo llo dofauIl VirluaI ClannoI (VC0). Nolo llal llis
roquiromonl appIios lo aII possibIo sourcos of Roquosls villin llo Indpoinl,
in llo caso vloro lloro is moro llan ono possibIo sourco of Roquosls.
Roquosls may bo issuod using Traffic CIassos vlicl map lo VCs ollor llan
VC0.
PCI Express System Architecture
1042
RuIes ReIated To PCI Express Endpoints
Nalivo ICI Ixpross Indpoinls do nol supporl IocI. A ICI Ixpross Indpoinl
musl lroal a MRdII Roquosl as an Unsupporlod Roquosl.
-
12x IacIol Iormal 413
1x IacIol Iormal 412
4x IacIol Iormal 412
8b/10b Docodor 402
8b/10b Incodor 400, 424
ACK 211
ACK DIII 91, 92, 202, 219
ACK/NAK Ialoncy 217, 237
ACK/NAK IrolocoI 90, 211, 212, 220
ACKD_SIQ Counl 214
ACKNAK_Ialoncy_Timor 217, 237
ACII 577
ACII Drivor 570, 579
ACII Maclino Ianguago 578, 580
ACII Sourco Ianguago 578, 580
ACII spoc 569
ACII labIos 577
Aclivo Slalo Iovor Managomonl 46, 87, 403, 608
Advancod Configuralion and Iovor Inlorfaco 569,
577
Advancod CorroclabIo Irror Roporling 385
Advancod CorroclabIo Irror Slalus 385
Advancod CorroclabIo Irrors 384
Advancod Irror CapabiIilios and ConlroI Rogislor
935
Advancod Irror CorroclabIo Irror MasI Rogislor
935
Advancod Irror CorroclabIo Irror Slalus Rogislor
936
Advancod Irror Roporling 382
Advancod Irror Roporling CapabiIily Rogislor Sol
931
Advancod Irror Rool Irror Command Rogislor 938
Advancod Irror Rool Irror Slalus Rogislor 938
Advancod Irror UncorroclabIo and UncorroclabIo
Irror Sourco ID Rogislor 938
Advancod Irror UncorroclabIo Irror MasI Rogislor
936
Advancod Irror UncorroclabIo Irror Sovorily Rogis-
lor 937
Advancod Irror UncorroclabIo Irror Slalus Rogislor
937
Advancod Sourco ID Rogislor 391
Advancod UncorroclabIo Irror HandIing 386
Advancod UncorroclabIo Irror Slalus 387
AGI CapabiIily 845
AGI Command Rogislor 846
AGI Command rogislor 846
AGI Slalus and AGI Command rogislors 845
AGI Slalus Rogislor 845
AGI Slalus rogislor 845
AMI 578, 580
AMI loIon inlorprolor 578
AIIC 16, 25, 353
ASI 578, 580
ASIM 568
ASIM Ixil Ialoncy 628
Assorl_INTx mossagos 348
Assigning VC Numbors 260
Async Nolico of SIol Slalus Clango 683
Allonlion Bullon Irossod Mossago 679
Allonlion Indicalor 657, 664
Allonlion_Indicalor_BIinI Mossago 679
Allonlion_Indicalor_Off Mossago 679
Allonlion_Indicalor_On Mossago 679
Aux_Curronl fioId 598
BARs 793
Baso Addross Rogislors 792, 811
Boacon 469, 497, 642, 643
BIR 455, 466
BIOS 577, 656, 886, 890
BIST 778
BIST rogislor 778
Bil Irror Ralo 455
Bil IocI 94, 440, 441, 465
Bridgo ConlroI Rogislor 835
BuiIl-In SoIf-Tosl 778
Bus Inumoralor 890
Bus Maslor 21, 833
Bus Numbor rogislor 726, 805
Bylo Counl Modifiod 188
bylo morging 801
Bylo Slriping 408
Bylo Slriping Iogic 400
D claraclors 405
D0 573, 576, 586
D0 Aclivo 587
D0 UniniliaIizod 586
D1 574, 576, 587
D1_Supporl bil 598
D2 574, 576, 589
D2_Supporl bil 597
D3 574, 576, 590
D3coId 592
D3lol 591
Dala IinI Iayor IacIol 71, 74
Dala Ioisoning 362
Dala Rogislor 603
Dala_ScaIo fioId 601
Dala_SoIocl fioId 602
DDIM 887
Doassorl_INTx mossagos 348
docodors 792
Do-omplasis 455, 466
DofauIl Dovico CIass Iovor Managomonl spoc 576
Dofinilion of On and Off 658
Do-ScrambIor 402
Dovico CapabiIilios Rogislor 900
Dovico CIass Iovor Managomonl spocs 576
Dovico Conloxl 574
Dovico ConlroI Rogislor 905
Dovico Drivor 656, 774, 791, 844, 872, 888,
891, 905
Dovico Drivor IniliaIizalion ModoI 887
Dovico ID 773, 876, 882, 883
Dovico IM Slalos 573, 586
Dovico ROM 783, 872
Dovico SoriaI Numbor CapabiIily 952
Dovico Slalus Rogislor 378, 909
K claraclor 405
Ioyvords 851, 853
SCI 579
ScrambIor 400, 416
SCSI 872
SDI 411
Socondary Bus 805
Socondary Bus Numbor rogislor 806
Socondary Bus Rosol bil 836
Socondary Discard Timooul 837
Socondary Ialoncy Timor Rogislor 843
Socondary Slalus Rogislor 840
Soquonco Numbor 213, 216, 234
SIRR# InabIo 834, 836
Sol SIol Slalus 683
Sovorily of Irror 388
sladov RAM 875
SKII 431, 432, 434
SIol CapabiIilios Rogislor 670, 920
SIol ConlroI 672
SIol ConlroI Rogislor 923
SIol Numbor Assignmonl 861
SIol Numboring Idonlificalion 668
SIol Numboring Rogislors 859, 863
SIol Iovor Iimil ConlroI 672
SIol Iovor Iimil Mossago 196
SIol Slalus Rogislor 925
Sofl Off 573
Soull Bridgo 16, 32
SpociaI CycIo 834
SpIil CompIolion, bridgo cIaiming of 807
Slarl command 656
Slalus Rogislor (Irimary Bus) 837
Slopping ConlroI bil 834
SlicIy Bils 383
STI 411
Slricl Iriorily VC Arbilralion 265
Slring Idonlifior doscriplor 855
Slrong Ordoring 321
Sub CIass 774
Subordinalo bus 805
Subordinalo Bus Numbor rogislor 726, 807
Subsyslom ID 776
Subsyslom Vondor ID 776
Surpriso RomovaI Nolificalion 652
Svilcl 11, 42, 48, 50, 86, 282
SymboI 43, 93, 400, 421, 405
SymboI IocI 94, 405, 441
Syslom ConlroI Inlorrupl 579
Syslom IM Slalos 572
Upslroam Iorl 50
USB Bus Drivor 577
VC 44
VC Arbilralion 44, 50, 84, 85, 86, 264, 267, 270,
765, 939, 944
VC Arbilralion TabIo 951
VC Rosourco CapabiIily Rogislor 946
VC Rosourco ConlroI Rogislor 948
VC Rosourco Slalus Rogislor 950
Vondor ID 773, 876, 882, 883
VGA 774
VGA dovico ROM 875
VGA InabIo bil 836
VGA IaIollo Snoop bil 834
VirluaI ClannoI 44, 83, 256, 260, 263, 270, 286,
288, 323, 324
VilaI Iroducl Dala 848, 882, 884
VID 848, 882, 884
VID ClocIsum 855
VID dala slrucluro 857
VID-R doscriplor 851, 853
VID-W doscriplor 852, 856