GTS AXI Streaming Intel® FPGA IP for PCI Express* User Guide

ID 813754
Date 11/04/2024
Public
Document Table of Contents

4.16.1. SR-IOV Implementation

Accessig VF PCIe* Ifomatio

The PCIe* cofiguatio space fo VFs is ot diectly available to the use applicatio. You applicatios ca use the followig methods to etieve ecessay ifomatio (bus maste eable, MSI-X, ad othes):
  • Moito specific VF egistes usig the Cofiguatio Itecept Iteface (CII) o Cofiguatio Shadow Iteface (CSI)
  • Read/wite specific VF egistes usig the AXI-Lite CSR Iteface

VF IDs ae calculated withi PCIe* Had IP. You applicatio has heade metadata with the TLP to idetify the associated VFs withi the PFs.

BDF Assigmet

Whe SR-IOV is eabled, the ARI capability is always eabled. The PCIe* Had IP automatically calculates the complete/equeste ID o the Tasmit side. You applicatio eeds to povide the VF ad PF ifomatio i the Heade metadata as descibed i the heade fomat sectio.

VF Eo Repotig

The VFs, with o AER suppot, ae equied to geeate No-Fatal eo messages. The IP does ot geeate ay eo message. It is up to you applicatio logic to geeate appopiate messages whe specific eo coditios occu. The Heade metadata makes ecessay sigals available to the use applicatio logic to geeate these messages. The Completio Timeout Iteface ad VF Eo Flag Iteface povide the ecessay ifomatio to geeate No-Fatal eo messages.

VF to PF Mappig

VF to PF mappig always stats fom the lowest possible PF umbe. Fo istace, if the IP has 2 PFs, wheei PF0 has 64 VFs ad PF1 has 16 VFs, VF1 to VF64 ae mapped to PF0, ad VF65 to VF80 ae mapped to PF1.

Cuetly, the IP coe oly suppots the followig PF/VF combiatios.

Table 23.  PF/VF Combiatios Suppoted
Numbe of PFs Numbe of VFs pe PF [PF0/PF1] Total VFs
1 8 8
1 16 16
1 32 32
1 64 64
2 16/16 32
2 32/32 64
2 32/0 32
2 0/32 32
2 64/0 64
2 0/64 64
2 128/128 256
2 64/0 64
2 0/64 64
2 128/0 128
2 0/128 128
2 256/0 256
2 0/256 256
4 128/0/0/0 128
4 0/128/0/0 128
4 256/0/0/0 256
4 0/256/0/0 256

Fo example, the ow that shows the combiatio of 2 PFs, 64 VFs, ad the otatio 64/0 i the Numbe of VFs pe PF colum idicates that all 64 VFs ae mapped to PF0, while o VF is mapped to PF1. The SR-IOV pemutatios allow ay PF to be assiged the iitial VF allocatio.