PCIE知识点-008:PCIE switch的结构

1、Switch基本结构

Switch结构图如图1-3所示,switch包含一个upstream port和若干个downstream port,upstream port和downstream port是通过virtual PCI-PCI bridge进行连接。

以下是PCIE 5.0原文描述:

• Switches appear to configuration software as two or more logical PCI-to-PCI Bridges.

• A Switch forwards transactions using PCI Bridge mechanisms; e.g., address-based routing except when engaged in a Multicast, as defined in Section 6.14 .

• Except as noted in this document, a Switch must forward all types of Transaction Layer Packets (TLPs) between any set of Ports.

• Locked Requests must be supported as specified in Section 6.5 . Switches are not required to support Downstream Ports as initiating Ports for Locked Requests.

• Each enabled Switch Port must comply with the Flow Control specification within this document.

• A Switch is not allowed to split a packet into smaller packets, e.g., a single packet with a 256-byte payload must not be divided into two packets of 128 bytes payload each.

• Arbitration between Ingress Ports (inbound Link) of a Switch may be implemented using round robin or weighted round robin when contention occurs on the same Virtual Channel. This is described in more detail later within the specification.

• Endpoints (represented by Type 00h Configuration Space headers) must not appear to configuration software on the Switch’s internal bus as peers of the virtual PCI-to-PCI Bridges representing the Switch Downstream Ports.

 

2、Switch中的downstream port数量与device number

以不支持ARI结构的switch作为案例讲解:

2.1 Single-function 类型的switch

常见设计中,Downstream Ports和upstream port都是Single-function ,即单个function。其中所有(数量不大于32)Downstream Ports公用一个总线号,如图1-3所示结果。不同的downstream port仅仅device number(8-bit)不一样,从0~31。

​​​​​​​2.1 Multifunction 类型的switch

当switch中downstream port数量超过32个时,Single-function 类型的switch的旧无法满足需求了。此时downstream port或者upstream port 都需要实现为Multifunction 的设备。

如图21-10 所示,仅仅downstream port实现为Multifunction,所有的downstream port依旧公用一组总线号,,每个function都拥有一个type1 类型的配置空间。

如图21-11 所示,upstream port和downstream port均实现为Multifunction,downstream port分别公用两组总线。

但是非non-ARI 的upstream port只能使用单个device(见PCIE 5.0协议 P680)

3、参考文献

MindShare_PCI_Express_System_Architecture P819 图21-10 和图21-11

PCI Express Base Specification Revision 5.0, Version 1.0  7.3.1 Device Number P680

        With non-ARI Devices, PCI Express components are restricted to implementing a single Device Number on their primary interface (Upstream Port), but are permitted to implement up to eight independent Functions within that Device Number. Each internal Function is selected based on decoded address information that is provided as part of the address portion of Configuration Request packets.

  • 1
    点赞
  • 28
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
sprd指的是Spreadtrum Communications Inc.,是一家位于中国的半导体公司。该公司专注于移动通信和物联网领域,为全球提供芯片解决方案和相关产品。sprd的产品覆盖了从2G到5G的全系列移动通信领域,还包括IoT、车载以及AI等领域,为手机、平板、智能穿戴等各类智能终端设备提供芯片解决方案和系统集成服务。 pcie-startup-syscons 是一个Linux内核模块,主要用于启动PCI Express子系统并初始化PCIe端点。PCIe(startup-syscons)是PCI Express架构的一部分,用于通过PCI Express总线连接设备,支持高速数据传输和低延迟操作。PCIe架构已经成为电脑和服务器上的主流总线架构,因为它的带宽高、响应快,具有良好的可扩展性和兼容性。 在操作系统中,pcie-startup-syscons 模块是自启动的,它会在内核启动时自动加载并初始化硬件设备。该模块的主要作用是启动PCI Express子系统,包括 PCIe端点和 PCIe总线,为用户提供一个稳定的硬件平台。同时,pcie-startup-syscons 还提供了一套API接口,用于管理PCI Express子系统和PCIe总线上接入的设备。 综上所述,sprd是一家专注于移动通信和物联网领域的半导体公司,提供芯片解决方案和相关产品;而pcie-startup-syscons是一个用于启动PCI Express子系统和初始化PCIe端点的Linux内核模块,具有高速数据传输和低延迟操作的优点,在处理器、电脑和服务器中普遍使用。在数字化时代,半导体技术和PCI Express总线架构的重要性越来越凸显,这两个领域的发展也将会给智能终端设备和数字化应用带来更多的机遇和挑战。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值