PCI Express Basics Richard Solomon LSI Corporation

Similar documents
PCI Express Basics Ravi Budruk Senior Staff Engineer and Partner MindShare, Inc.

3 Address Spaces & Transaction Routing. The Previous Chapter. This Chapter. The Next Chapter

PCI Express Overview. And, by the way, they need to do it in less time.

An Introduction to PCI Express

PCI Express Gen 2 Deep Dive on Power Architecture Based Products

PCI Express IO Virtualization Overview

PCI Express Impact on Storage Architectures and Future Data Centers. Ron Emerick, Oracle Corporation

PCI Express Impact on Storage Architectures. Ron Emerick, Sun Microsystems

MSC8156 and MSC8157 PCI Express Performance

PCI Express Base Specification Revision 1.0

Appendix A. by Gordon Getty, Agilent Technologies

PCI Express and Storage. Ron Emerick, Sun Microsystems

PCI Express Impact on Storage Architectures and Future Data Centers

2. THE PCI EXPRESS BUS

How to build a high speed PCI Express bus expansion system using the Max Express product family 1

EDUCATION. PCI Express, InfiniBand and Storage Ron Emerick, Sun Microsystems Paul Millard, Xyratex Corporation

Hardware Level IO Benchmarking of PCI Express*

PCI Express Impact on Storage Architectures and Future Data Centers. Ron Emerick, Oracle Corporation

PEX 8748, PCI Express Gen 3 Switch, 48 Lanes, 12 Ports

Storage Architectures. Ron Emerick, Oracle Corporation

Creating a PCI Express Interconnect AJAY V. BHATT, TECHNOLOGY AND RESEARCH LABS, INTEL CORPORATION

PCI Express* Ethernet Networking

PCI EXPRESS TECHNOLOGY. Jim Brewer, Dell Business and Technology Development Joe Sekel, Dell Server Architecture and Technology

Understanding PCI Bus, PCI-Express and In finiband Architecture

PCI Express: Interconnect of the future

Introduction to PCI Express Positioning Information

Computer Systems Structure Input/Output

Intel PCI and PCI Express*

PCI Express High Performance Reference Design

The Bus (PCI and PCI-Express)

Chapter Introduction. Storage and Other I/O Topics. p. 570( 頁 585) Fig I/O devices can be characterized by. I/O bus connections

Serial ATA technology

The changes in each specification and how they compare is shown in the table below. Following the table is a discussion of each of these changes.

Project 4: Pseudo USB Simulation Introduction to UNIVERSAL SERIAL BUS (USB) STANDARD

Hot and Surprise Plug Recommendations for Enterprise PCIe Switches in the Data Center (Short Form)

PCI EXPRESS: AN OVERVIEW OF PCI EXPRESS, CABLED PCI EXPRESS, AND PXI EXPRESS

How PCI Express Works (by Tracy V. Wilson)

Arria 10 Avalon-MM DMA Interface for PCIe Solutions

The proliferation of the raw processing

Introduction to USB 3.0

PCI Express to 6Gb/s Serial Attached SCSI (SAS) Host Bus Adapters. User Guide

Serial ATA and Serial Attached SCSI technologies

Fibre Channel over Ethernet in the Data Center: An Introduction

Big Picture. IC220 Set #11: Storage and I/O I/O. Outline. Important but neglected

IDE/ATA Interface. Objectives. IDE Interface. IDE Interface

Using FPGAs to Design Gigabit Serial Backplanes. April 17, 2002

NVM Express TM Infrastructure - Exploring Data Center PCIe Topologies

Technology Note. PCI Express

Maximizing Server Storage Performance with PCI Express and Serial Attached SCSI. Article for InfoStor November 2003 Paul Griffith Adaptec, Inc.

Chapter 13 Selected Storage Systems and Interface

ARM Ltd 110 Fulbourn Road, Cambridge, CB1 9NJ, UK.

Successfully negotiating the PCI EXPRESS 2.0 Super Highway Towards Full Compliance

Computer Organization & Architecture Lecture #19

An Analysis of Wireless Device Implementations on Universal Serial Bus

Errata for the PCI Express Base Specification Revision 3.0

Computer buses and interfaces

PCI Express: The Evolution to 8.0 GT/s. Navraj Nandra, Director of Marketing Mixed-Signal and Analog IP, Synopsys

High Speed I/O Server Computing with InfiniBand

PCI-SIG SR-IOV Primer. An Introduction to SR-IOV Technology Intel LAN Access Division

Transitioning to 6Gb/s SAS (Serial-Attached SCSI) A Dell White Paper

PCIe Over Cable Provides Greater Performance for Less Cost for High Performance Computing (HPC) Clusters. from One Stop Systems (OSS)

Are your company s technical training needs being addressed in the most effective manner?

Introduction to Infiniband. Hussein N. Harake, Performance U! Winter School

TCIS007. PCI Express* 3.0 Technology: PHY Implementation Considerations for Intel Platforms

Building High-Performance iscsi SAN Configurations. An Alacritech and McDATA Technical Note

Intel Ethernet Switch Load Balancing System Design Using Advanced Features in Intel Ethernet Switch Family

Wireshark in a Multi-Core Environment Using Hardware Acceleration Presenter: Pete Sanders, Napatech Inc. Sharkfest 2009 Stanford University

Intel architecture. Platform Basics. White Paper Todd Langley Systems Engineer/ Architect Intel Corporation. September 2010

Chapter 5 Cubix XP4 Blade Server

OpenSPARC T1 Processor

PCIeBPMC (PCI/PCI-X Bus Compatible) Bridge based PCIe and PMC Compatible Adapter Carrier Front View shown with 1 installed fans model # PCIeBPMC-FAN2

UMBC. ISA is the oldest of all these and today s computers still have a ISA bus interface. in form of an ISA slot (connection) on the main board.

85MIV2 / 85MIV2-L -- Components Locations

Pericom PCI Express 1.0 & PCI Express 2.0 Advanced Clock Solutions

Overview of Routing between Virtual LANs

Using Multipathing Technology to Achieve a High Availability Solution

Local Area Networks transmission system private speedy and secure kilometres shared transmission medium hardware & software

Knut Omang Ifi/Oracle 19 Oct, 2015

PCI Express Technology

Intel Server Board S5000PALR Intel Server System SR1500ALR

PCI Technology Overview

Introduction to PCI Express

Phoenix SecureCore TM Setup Utility

PCI Express 2.0 SATA III RAID Controller Card with Internal Mini-SAS SFF-8087 Connector

SiS AMD Athlon TM 64FX/PCI-E Solution. Silicon Integrated Systems Corp. Integrated Product Division April. 2004

PCI Express Basic Info *This info also applies to Laptops

Universal Flash Storage: Mobilize Your Data

Universal Serial Bus Implementers Forum EHCI and xhci High-speed Electrical Test Tool Setup Instruction

I/O Virtualization Using Mellanox InfiniBand And Channel I/O Virtualization (CIOV) Technology

Mellanox Cloud and Database Acceleration Solution over Windows Server 2012 SMB Direct

A Comparison of NVMe and AHCI

White Paper Abstract Disclaimer

Integrating PCI Express into the PXI Backplane

Serial ATA in Servers and Networked Storage

Optimizing Large Arrays with StoneFly Storage Concentrators

XMC Modules. XMC-6260-CC 10-Gigabit Ethernet Interface Module with Dual XAUI Ports. Description. Key Features & Benefits

White Paper: M.2 SSDs: Aligned for Speed. Comparing SSD form factors, interfaces, and software support

Transcription:

PCI Express Basics Richard Solomon LSI Corporation Copyright 2012, PCI-SIG, All Rights Reserved 1

Acknowledgements I would like to acknowledge the contributions of Ravi Budruk, Mindshare, Inc. PCI-SIG Developers Conference Copyright 2012, PCI-SIG, All Rights Reserved 2

PCI Express Introduction PCI Express architecture is a high performance, IO interconnect for peripherals in computing/communication platforms Evolved from PCI TM and PCI-X TM architectures Yet PCI Express architecture is significantly different from its predecessors PCI and PCI-X PCI Express is a serial point-to-point interconnect between two devices Implements packet based protocol for information transfer Scalable performance based on number of signal Lanes implemented on the PCI Express interconnect PCI-SIG Developers Conference Copyright 2012, PCI-SIG, All Rights Reserved 3

PCI Express Terminology PCI Express Device A Signal Link Wire Lane PCI Express Device B PCI-SIG Developers Conference Copyright 2012, PCI-SIG, All Rights Reserved 4

PCI Express Throughput Link Width x1 x2 x4 x8 x12 x16 x32 PCIe 1.x BW (GB/s) 0.5 1 2 4 6 8 16 PCIe 2.x BW (GB/s) 1 2 4 8 12 16 32 PCIe 3.0 BW (GB/s) 2 4 8 16 24 32 64 Derivation of these numbers: 2.5 GT/s (PCIe 1.x), 5.0 GT/s (PCIe 2.x), or 8GT/s (PCIe 3.0) signaling in each direction 20% overhead due to 8b/10b encoding in 1.x and 2.x Aggregate bandwidth, implying traffic in both directions PCI-SIG Developers Conference Copyright 2012, PCI-SIG, All Rights Reserved 5

PCI Express Features Point-to-point connection Serial bus means fewer pins Scalable: x1, x2, x4, x8, x12, x16, x32 Dual Simplex connection 2.5, 5.0 and 8.0 GT/s transfer/direction/s Packet based transaction protocol PCIe Device A Packet Link (x1, x2, x4, x8, x12, x16 or x32) Packet PCIe Device B PCI-SIG Developers Conference Copyright 2012, PCI-SIG, All Rights Reserved 6

Differential Signaling Electrical characteristics of PCI Express signal Differential signaling Transmitter Differential Peak voltage = 0.4-0.6 V Transmitter Common mode voltage = 0-3.6 V D- V cm V Diffp D+ Two devices at opposite ends of a Link may support different DC common mode voltages PCI-SIG Developers Conference Copyright 2012, PCI-SIG, All Rights Reserved 7

Additional Features Switches used to interconnect multiple devices Packet based protocol Bandwidth and clocking Same memory, IO and configuration address space as PCI Similar transaction types as PCI with additional message transaction PCI Express Transactions include: memory read/write, memory read lock, IO read/write, configuration read/write, message requests Split transaction model for non-posted PCI-SIG Developers Conference Copyright 2012, PCI-SIG, All Rights Reserved 8

Additional Features Data Integrity and Error Handling RAS capable (Reliable, Available, Serviceable) Data integrity at: 1) Link level, 2) end-to-end Virtual channels (VCs) and traffic classes (TCs) to support differentiated traffic or Quality of Service (QoS) The ability to define levels of performance for packets of different TCs 8 TC s and 8 VC s available PCI-SIG Developers Conference Copyright 2012, PCI-SIG, All Rights Reserved 9

Additional Features Flow Control No retry as in PCI MSI style interrupt handling Also supports legacy PCI interrupt handling in-band Advanced power management Active State PM PCI compatible PM PCI-SIG Developers Conference Copyright 2012, PCI-SIG, All Rights Reserved 10

Additional Features Hot Plug and Hot Swap support Native No sideband signals PCI compatible software model PCI configuration and enumeration software can be used to enumerate PCI Express hardware PCI Express system will boot existing OS PCI Express supports existing device drivers New additional configuration address space requires OS and driver update PCI-SIG Developers Conference Copyright 2012, PCI-SIG, All Rights Reserved 11

PCI Express Topology CPU Root Complex Bus 0 (Internal) Memory PCIe 1 PCIe 6 PCIe 7 PCIe Endpoint PCIe 3 PCIe Endpoint Switch PCIe 4 PCIe 5 Legacy Endpoint PCIe Endpoint PCIe Bridge To PCI/PCI - X PCI/PCI - X Bus 8 Switch Virtual PCI Bridge Virtual PCI Bridge Virtual PCI Bridge Bus 2 Virtual PCI Bridge Legend PCI Express Device Downstream Port PCI Express Device Upstream Port PCI-SIG Developers Conference Copyright 2012, PCI-SIG, All Rights Reserved 12

PCI Express System Processor PCI Express GFX GFX FSB Root Complex DDR SDRAM HDD Serial ATA PCI Express PCI Slots USB 2.0 LPC IO Controller Hub (ICH) IEEE 1394 S IO Slot COM1 COM2 GB Ethernet Add-In Add-In Add-In PCI Express Link PCI Express PCI-SIG Developers Conference Copyright 2012, PCI-SIG, All Rights Reserved 13

Transaction Types, Address Spaces Request are translated to one of four transaction types by the Transaction Layer: 1. Memory Read or Memory Write. Used to transfer data from or to a memory mapped location The protocol also supports a locked memory read transaction variant. 2. I/O Read or I/O Write. Used to transfer data from or to an I/O location These transactions are restricted to supporting legacy endpoint devices. 3. Configuration Read or Configuration Write. Used to discover device capabilities, program features, and check status in the 4KB PCI Express configuration space. 4. Messages. Handled like posted writes. Used for event signaling and general purpose messaging. PCI-SIG Developers Conference Copyright 2012, PCI-SIG, All Rights Reserved 14

PCI Express TLP Types Memory Read Request Description Abbreviated Name MRd Memory Read Request Locked Access Memory Write Request IO Read Request IO Write Request Configuration Read Request Type 0 and Type 1 Configuration Write Request Type 0 and Type 1 Message Request without Data Payload Message Request with Data Payload Completion without Data (used for IO, configuration write completions and read completion with error completion status) Completion with Data (used for memory, IO and configuration read completions) Completion for Locked Memory Read without Data (used for error status) Completion for Locked Memory Read with Data MRdLk MWr IORd IOWr CfgRd0, CfgRd1 CfgWr0, CfgWr1 Msg MsgD Cpl CplD CplLk CplDLk PCI-SIG Developers Conference Copyright 2012, PCI-SIG, All Rights Reserved 15

Three Methods For Packet Routing Each request or completion header is tagged as to its type, and each of the packet types is routed based on one of three schemes: Address Routing ID Routing Implicit Routing Memory and IO requests use address routing. Completions and Configuration cycles use ID routing. Message requests have selectable routing based on a 3-bit code in the message routing sub-field of the header type field. PCI-SIG Developers Conference Copyright 2012, PCI-SIG, All Rights Reserved 16

Programmed I/O Transaction Processor Processor Requester: -Step 1: Root Complex (requester) initiates Memory Read Request (MRd) -Step 4: Root Complex receives CplD MRd MRd Root Complex CplD FSB DDR SDRAM MRd Switch A CplD Switch C Switch B Endpoint Endpoint Endpoint Endpoint MRd Endpoint CplD Completer: -Step 2: Endpoint (completer) receives MRd -Step 3: Endpoint returns Completion with data (CplD) PCI-SIG Developers Conference Copyright 2012, PCI-SIG, All Rights Reserved 17

DMA Transaction Processor Processor Completer: -Step 2: Root Complex (completer) receives MRd -Step 3: Root Complex returns Completion with data (CplD) CplD Root Complex MRd FSB DDR SDRAM CplD Switch A MRd Switch C Switch B Endpoint Endpoint Endpoint Endpoint CplD Endpoint MRd Requester: -Step 1: Endpoint (requester) initiates Memory Read Request (MRd) -Step 4: Endpoint receives CplD PCI-SIG Developers Conference Copyright 2012, PCI-SIG, All Rights Reserved 18

Peer-to-Peer Transaction Processor Processor FSB CplD Root Complex MRd MRd CplD DDR SDRAM CplD Switch A Switch C MRd MRd CplD Switch B Endpoint Endpoint Endpoint Completer: -Step 2: Endpoint (completer) receives MRd CplD MRd -Step 3: Endpoint returns Endpoint Endpoint Completion with data (CplD) Requester: -Step 1: Endpoint (requester) initiates Memory Read Request (MRd) -Step 4: Endpoint receives CplD PCI-SIG Developers Conference Copyright 2012, PCI-SIG, All Rights Reserved 19

PCI Express Device Layers PCI Express Device A Device Core PCI Express Device B Device Core PCI Express Core Logic Interface TX RX Transaction Layer PCI Express Core Logic Interface TX RX Transaction Layer Data Link Layer Data Link Layer Physical Layer Physical Layer Link PCI-SIG Developers Conference Copyright 2012, PCI-SIG, All Rights Reserved 20

TLP Origin and Destination PCI Express Device A PCI Express Device B Device Core Device Core PCI Express Core PCI Express Core Logic Interface Logic Interface TX RX TX RX TLP Transmitted Transaction Layer Data Link Layer Transaction Layer Data Link Layer TLP Received Physical Layer Physical Layer Link PCI-SIG Developers Conference Copyright 2012, PCI-SIG, All Rights Reserved 21

TLP Structure Information in core section of TLP comes from Software Layer / Device Core Bit transmit direction Start Sequence Header Data Payload ECRC LCRC End 1B 2B 3-4 DW 0-1024 DW 1DW 1DW 1B Created by Transaction Layer Appended by Data Link Layer Appended by Physical Layer *Slightly different at 8GT/s* PCI-SIG Developers Conference Copyright 2012, PCI-SIG, All Rights Reserved 22

DLLP Origin and Destination PCI Express Device A PCI Express Device B Device Core Device Core PCI Express Core PCI Express Core Logic Interface Logic Interface TX RX TX RX Transaction Layer Transaction Layer DLLP Transmitted Data Link Layer Data Link Layer DLLP Received Physical Layer Physical Layer Link PCI-SIG Developers Conference Copyright 2012, PCI-SIG, All Rights Reserved 23

DLLP Structure Bit transmit direction Start DLLP CRC End 1B 4B 2B 1B Data Link Layer Appended by Physical Layer *Slightly different at 8GT/s* ACK / NAK Packets Flow Control Packets Power Management Packets Vendor Defined Packets PCI-SIG Developers Conference Copyright 2012, PCI-SIG, All Rights Reserved 24

Ordered-Set Origin and Destination PCI Express Device A PCI Express Device B Device Core Device Core PCI Express Core PCI Express Core Logic Interface Logic Interface TX RX TX RX Transaction Layer Transaction Layer Data Link Layer Data Link Layer Ordered-Set Transmitted Physical Layer Physical Layer Ordered-Set Received Link PCI-SIG Developers Conference Copyright 2012, PCI-SIG, All Rights Reserved 25

Ordered-Set Structure in 2.5GT/s and 5GT/s modes COM Identifier Identifier Identifier Training Sequence One (TS1) 16 character set: 1 COM, 15 TS1 data characters Training Sequence Two (TS2) 16 character set: 1 COM, 15 TS2 data characters SKIP 4 character set: 1 COM followed by 3 SKP identifiers Fast Training Sequence (FTS) 4 characters: 1 COM followed by 3 FTS identifiers Electrical Idle (IDLE) 4 characters: 1 COM followed by 3 IDL identifiers Electrical Idle Exit (EIEOS) (new to 2.0 spec) 16 characters PCI-SIG Developers Conference Copyright 2012, PCI-SIG, All Rights Reserved 26

Quality of Service Processor Processor PCI Express GFX GFX Endpoint Root Complex DDR SDRAM InfiniBand Switch Out-of-Box InfiniBand Endpoint Add-In Switch Switch 10Gb Ethernet Endpoint 10Gb Ethernet Endpoint Switch PCI Express to-pci Endpoint SCSI Endpoint Fiber Channel RAID Disk array Slot PCI PCI Express Link Video Camera SCSI Endpoint COM1 COM2 S IO IEEE 1394 Slots PCI-SIG Developers Conference Copyright 2012, PCI-SIG, All Rights Reserved 27

PCI Express Flow Control Credit-based flow control is point-to-point based, not end-to-end TLP Buffer space available VC Buffer Transmitter Receiver Flow Control DLLP (FCx) Receiver sends Flow Control Packets (FCP) which are a type of DLLP (Data Link Layer Packet) to provide the transmitter with credits so that it can transmit packets to the receiver PCI-SIG Developers Conference Copyright 2012, PCI-SIG, All Rights Reserved 28

ACK/NAK Protocol Overview Transmit Device A Receiver Device B From Transaction Layer Tx TLP Sequence TLP LCRC Data Link Layer DLLP ACK / NAK DLLP ACK / NAK To Transaction Layer Rx Data Link Layer TLP Sequence TLP LCRC Replay Buffer De-mux De-mux Mux Mux Error Check Tx Rx Tx Rx DLLP ACK / NAK Link TLP Sequence TLP LCRC PCI-SIG Developers Conference Copyright 2012, PCI-SIG, All Rights Reserved 29

ACK/NAK Protocol: Point-to-Point 1a. Request 2a. Request 4b. ACK 3b. ACK Requester Switch 1b. ACK 2b. ACK 4a. Completion 3a. Completion Completer ACK returned for good reception of Request or Completion NAK returned for error reception of Request or Completion PCI-SIG Developers Conference Copyright 2012, PCI-SIG, All Rights Reserved 30

Interrupt Model: Three Methods PCI Express supports three interrupt reporting mechanisms: 1. Message Signaled Interrupts (MSI) Legacy endpoints are required to support MSI (or MSI-X) with 32- or 64-bit MSI capability register implementation Native PCI Express endpoints are required to support MSI with 64-bit MSI capability register implementation 2. Message Signaled Interrupts - X (MSI-X) Legacy and native endpoints are required to support MSI-X (or MSI) and implement the associated MSI-X capability register 3. INTx Emulation. Native and Legacy endpoints are required to support Legacy INTx Emulation PCI Express defines in-band messages which emulate the four physical interrupt signals (INTA-INTD) routed between PCI devices and the system interrupt controller Forwarding support required by switches PCI-SIG Developers Conference Copyright 2012, PCI-SIG, All Rights Reserved 31

Native and Legacy Interrupts x PCIe - PCIe PCIe PCI-SIG Developers Conference Copyright 2012, PCI-SIG, All Rights Reserved 32

PCI Express Configuration Space PCI-SIG Developers Conference Copyright 2012, PCI-SIG, All Rights Reserved 33

Thank you for attending the PCI-SIG Developers Conference 2012 For more information please go to www.pcisig.com PCI-SIG Developers Conference Copyright 2012, PCI-SIG, All Rights Reserved 34