PCIE ARI技术

目录

1.ARI简介

2.ARI配置过程

3.ARI寄存器

3.1 ARI Capability Header

3.2 ARI Capability Register

3.3 ARI Control Register

3.4 Device Control 2 Register

3.5 Device Capabilities 2 Register


1.ARI简介

ARI(Alternative Routing-ID),备选路由ID。在PCIE中,往往数据包传输通过TLP的形式。这些TLP大致分为Memory Read/Write TLP , Configuration Read/Write TLP ,Completion TLP, Message TLP以及IO TLP。这些TLP从Request端到Completion端的过程叫做路由,而路由又大致分为两类地址路由和ID路由。

所有的ID路由中的ID包括Request端的bus number,device number以及function number。其中ID有16 bits,bus number 8 bits,device number 5 bits,function number 3 bits意味着支持8个function。

对于有些device功能比较复杂或者支持FBP技术的root port或者device,往往8个function不足以满足要求,这个时候就出现了ARI技术。将device number的5 bits也用作function,这样便可以由原来的8个function扩展到256个function。下图所示,为ARI的应用架构。

2.ARI配置过程

1)软件枚举PCI Express层次结构并确定是否支持ARI功能;

a. 对于ARI Downstream Port,通过Device Capabilities 2 register中ARI Forwarding Enable确认;

b. 对于ARI Device,通过Device Capabilities structure确认;

2)软件使能每个组件中的ARI功能;

a. 对于ARI Device 上面的ARI Downstream Port,软件需要使能Device Control 2 register 中的ARI Forwarding Enable bit 。ARI Downstream Port收到的CFG1转CFG0的时候不需要强制device number为0;

b. 对于ARI Device, 还需要使能Extended Functions;

3)对于ARI device它的Device number必须为0。

3.ARI寄存器

3.1 ARI Capability Header

3.2 ARI Capability Register

 

3.3 ARI Control Register

 

3.4 Device Control 2 Register

 

3.5 Device Capabilities 2 Register

 

  • 1
    点赞
  • 34
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

justiess

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值