Documente Academic
Documente Profesional
Documente Cultură
Bu e r o
Ga r d i n e r
The training goal is to give the participants all the information they
need to embrace this exciting and pervasive technology with
confidence.
Page 54 Okt-11 Copyright © Ing. Buero Gardiner 2011. All Rights Reserved.
Introductory Training
Gardiner
One day
PCI 33: 132 MB/s, PCI Express x1: 250 MB/s per direction
Topics covered: 16
14
12
GBytes/s
8
0
PCI 33 / 32 Bit PCI 66 / 64 Bit AGP 8x PCI-X 2.0 / QDR PCIe x1 PCIe x2 PCIe x4 PCIe x8 PCIe x12 PCIe x16 PCIe x32
Protocol (TLP)
Technology
per Direction Full Duplex
• Overview of Data-Link (DLL) and Physical layers (PHY) Page 35 Okt-11 Copyright © Ing. Buero Gardiner 2011. All Rights Reserved.
Advanced Training
10 0 0000 MWr Memory Write Request, 32 Bit Addr.
11 Memory Write Request, 64 Bit Addr.
00 0 0010 IORd I/O Read Request
10 0 0010 IOWr I/O Write Request
00 0 0100 CfgRd0 Configuration Read, Type 0
10 0 0100 CfgWr0 Configuration Write, Type 0
Three days
00 0 0101 CfgRd1 Configuration Read, Type 1
10 0 0101 CfgWr1 Configuration Write, Type 1
01 1 0rrr Msg Message Request, no payload
11 1 0rrr MsgD Message Request, with payload
00 0 1010 Cpl Completion, no payload
Topics covered:
10 0 1010 CplD Completion, with payload
00 0 1011 CplLk Completion for Locked Mem. Rd, error
10 0 1011 CplDLk Completion for Locked Mem. Rd, with payload
• Migration from PCI to PCI Express Page 34 Okt-11 Copyright © Ing. Buero Gardiner 2011. All Rights Reserved.
• Detailed description of Data-Link Layer (DLL). Link-layer ➢ Length does not include ECRC DWord.
Presence of ECRC DWord is indicated by TD Field
bring-up, flow control, credit handling, inherent error ➢ Header Size always 3 DWords if address is within first 4 GBytes of Memory
address space
recovery strategies, DLL transactions for power ➢ Header Size of 4 DWords only if address above 4 GBytes
4 DWord header with third DWord set to zero is illegal
management
Page 30 Okt-11 Copyright © Ing. Buero Gardiner 2011. All Rights Reserved.
and Type 1 configuration headers (endpoints/bridges), A Completer may respond to a Memory Read Request with a single
Completion Packet or with multiple Completion Packets
BAR principles, detailed description of capability In practice often generated by root complex (e.g. Intel chip sets)
➢
➢ May be required from end-point (read request length > Max. Payload Size)
structures, class codes, role of configuration space in Page 42 Okt-11 Copyright © Ing. Buero Gardiner 2011. All Rights Reserved.
power management
• PCI Express power concepts. Summary from TLP, DLL
and PHY layers. Detailed description of layer interaction
• PCI Express Interrupt Concepts. Legacy Interrupts, MSI,
Ing. Buero
MSI-X. Overview of typical latency values , description of
Byte Count Calculation Overview
Gardiner
CplD Length
x4
CplD Sent?
• Tool description for debugging PCI express. Serial data Page 51 Okt-11 Copyright © Ing. Buero Gardiner 2011. All Rights Reserved.
Handshake Mechanism is per Packet
Flow Control is based on advertised Capacity of Receiver to accept a Packet
simulators (Credits)
Page 7 Okt-11 Copyright © Ing. Buero Gardiner 2011. All Rights Reserved.
3 1 Header Credit
➢ Scenario 1 - As posted write (1x PH, 1x PD), as non-posted write (1x NPH,
1x NPD), as completion (1x CPLH, 1x CPLD)
➢ Scenario 2 - As posted write (1x PH, 2x PD), as completion (1x CPLH, 2x
CPLD)
➢ Scenario 3 - As memory read, I/O read, config. read (1x NPH), as
completion (1x CPLH)
➢ Messages handled same as posted write (memory write)
Page 12 Okt-11 Copyright © Ing. Buero Gardiner 2011. All Rights Reserved.
Disabled
Hot Reset
Configuration
L1 L0s
configured
• Software controlled power management. Aux power and
wake-up from external source PCI Express - Transition to L1 State Ing. Buero
Gardiner
• CLKREQ# concept for PCI Express in mobile solutions. Upstream Component Downstream Component
• Summary, migration PCI to PCI express Page 64 Okt-11 Copyright © Ing. Buero Gardiner 2011. All Rights Reserved.
signalling
Bus 6 Bus 7 Bus 8
SR-IOV Cap. BAR0
BAR1
BAR2
PCIe EP PCIe EP PCIe EP BAR3
BAR4
VF VF PF BAR5
Dev ID
+ Dev ID
VF BAR0
VF BAR1
Type 0 Header
(ATS) Page 155 Okt-11. Licensed to Siemens AG for internal use only Copyright © Ing. Buero Gardiner 2011. All Rights Reserved.
➢ VF
Virtual Function
Translation
Agent (TA)
Page 149 Okt-11. Licensed to Siemens AG for internal use only Copyright © Ing. Buero Gardiner 2011. All Rights Reserved.
Topic covered
• Migration from PCI to PCI Express
• PCI SIG Standards overview ➢ PCI Express requires AC coupling capacitors in TX path
TX and Ref. Clock on side A of add-in card (Components on Side B)
75nF – 200nF. 0603 package acceptable but 0402 preferable
Locate close to connector or close to component, never in the middle
bring-up, link-width recognition, lane polarity reversal ➢ MSI Descriptor in Extended PCI Configuration Space
(practical). 8B + K
8B + K
PCIe IP-Core
SERDES
Protocol
Synthesis Application
Block
8B + K Logic
8B + K
Development tools.
PHY
FPGA
Simulation
Compl. List /
Scoreboard
Protocol Block
8B + K
System
Scenarios Memory
Arbiter
8B + K
Verilog
active-hdl simulator and bus-functional model (BFM). Page 58 Okt-11 Copyright © Ing. Buero Gardiner 2011. All Rights Reserved.
Page 73 Okt-11 Copyright © Ing. Buero Gardiner 2011. All Rights Reserved.
hDevInfo = SetupDiGetClassDevs(&LSCC_PCIE_DEMO_007,
NULL, NULL,
DIGCF_DEVICEINTERFACE | DIGCF_PRESENT);
releasing resources
GENERIC_READ|GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL);
. . . . . . .
WriteFile(hDevFile, Buffer, sizeof(Buffer), &nBytes, NULL);
➢ Interrupt concepts
➢ Introduction to scatter/gather DMA
➢ Talking to the driver from application space
➢ Tracing driver operations with a protocol analyser