WO2014059617A1 - Port configuration method and device for high-speed peripheral component interconnect express - Google Patents

Port configuration method and device for high-speed peripheral component interconnect express Download PDF

Info

Publication number
WO2014059617A1
WO2014059617A1 PCT/CN2012/083072 CN2012083072W WO2014059617A1 WO 2014059617 A1 WO2014059617 A1 WO 2014059617A1 CN 2012083072 W CN2012083072 W CN 2012083072W WO 2014059617 A1 WO2014059617 A1 WO 2014059617A1
Authority
WO
WIPO (PCT)
Prior art keywords
pcie
pull
signal line
auxiliary signal
type
Prior art date
Application number
PCT/CN2012/083072
Other languages
French (fr)
Chinese (zh)
Inventor
杨安林
刘华伟
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201280001734.0A priority Critical patent/CN103098039B/en
Priority to PCT/CN2012/083072 priority patent/WO2014059617A1/en
Publication of WO2014059617A1 publication Critical patent/WO2014059617A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0026PCI express

Definitions

  • the pull-up and/or pull-down level values of the PCIE auxiliary signal lines on the PCIE master device are read, and the types of PCIE boards are identified based on the read pull-up and/or pull-down level values, including: The pull-up or pull-down level value of each PCIE reset signal line is read, and the type of the PCIE board is identified according to the pull-up or pull-down level value of the read PCIE reset signal line.
  • a reading unit configured to read a pull-up and/or pull-down level value of the PCIE auxiliary signal line on the PCIE master device, and identify a type of the PCIE card according to the read pull-up and/or pull-down level value, where
  • the PCIE board is connected to the PCIE auxiliary signal line, and performs pull-up and/or pull-down processing on the PCIE auxiliary signal line by using a pull-up and/or pull-down device;
  • a third aspect of the embodiments of the present invention provides a high speed peripheral device interconnect bus PCIE board, the PCIE board being connected to a PCIE auxiliary signal line on a PCIE master device, and being connected by a pull-up and/or pull-down device The PCIE auxiliary signal line is pulled up and/or pulled down.
  • the embodiment uses the PCIE auxiliary signal line to multiplex the PCIE auxiliary signal line to perform type identification on the PCIE board.
  • the multiplexed PCIE auxiliary signal line is connected to the PCIE board.
  • the PCIE auxiliary signal line is pulled up and/or pulled down by the pull-up and/or pull-down devices on the PCIE board, and then the CPU reads the PCIE auxiliary signal line.
  • the pull-up and/or pull-down level values identify the type of PCIE board based on the read pull-up and/or pull-down level values.
  • the multiplexed PCIE auxiliary signal line has its original function. For example, the original function of the PCIE reset signal line is reset, and the original function of the PCIE wake-up signal line is wake-up. Based on this, after the PCIE auxiliary signal line is multiplexed to identify the PCIE board type, the CPU can set the PCIE auxiliary signal line to achieve the original function status. For example, for the PCIE reset signal, the CPU will set it to the input state when it uses the PCIE board type identification, but the state of the reset function should be the output state, so the identification of the PCIE board type is completed. After that, the CPU sets the state of the PCIE reset signal line to the output state, so that the PCIE reset signal line completes the reset function.
  • the PCIE bus is a 16-lane PCIE bus, which can be configured as one x16-channel PCIE port and two x8-channel PCIE ports, while the PCIE board is compatible with one PCIE slave device and supports one xl6 channel.
  • the PCIE master provides a PCIE reset signal line to reset the PCIE slaves on the PCIE board.
  • the CPU resets the unique PCIE slave device through the PCIE reset signal line; if the PCIE board is compatible, the design includes 2 The PCIE slaves support two x8-channel PCIE ports, and the CPU resets the two PCIE slaves through the PCIE reset signal line.
  • the one PCIE reset signal line is defined as being pulled down in the PCIE board to indicate that the PCIE board corresponds to one xl6 channel PCIE port, and The above PCIE reset signal line is pulled up in the PCIE board to indicate that the PCIE board corresponds to two x8 channel PCIE ports; correspondingly, the PCIE board is pulled up according to its own design for the PCIE reset signal line.
  • the CPU sets the PCIE reset signal line to the input state, and reads the level value of the PCIE reset signal line. If the pull-down level value is read, the CPU can recognize The PCIE board is a type corresponding to one xl6 channel PCIE port. If the value of the pull-up level is read, it can be recognized that the PCIE board is of the type corresponding to two x8-channel PCIE ports.
  • the CPU When the PCIE auxiliary signal line used is only one auxiliary signal line, the CPU either reads the pull-up level value or reads the pull-down level value.
  • the PCIE board is interconnected.
  • the PCIE auxiliary signal line used in this embodiment is two PCIE reset signal lines.
  • four PCIE board types can be indicated by pull-up and pull-down combinations.
  • the upper and lower pull-down combinations of the two PCIE reset signal lines are: all pull-ups, all pull-downs, one pull-up and another pull-down, and one pull-down and another pull-up.
  • the same PCIE board should be pulled up or pulled down.
  • the CPU reads the pull-up or pull-down level of each PCIE reset signal line, and identifies the type of the PCIE board according to the pull-up or pull-down level of the read PCIE reset signal line.
  • the CPU sets two PCIE reset signal lines to be output states, so that they can implement their original functions.
  • the usage method is also as follows: The CPU in the processor system first sets the multiplexed PCIE auxiliary signal line to the input state when the PCIE master device in the processor system is powered on or reset, and then reads the multiplexed PCIE auxiliary signal line. Pull-up and/or pull-down level values, identify the type of PCIE board based on the read pull-up and/or pull-down level values, and then configure the PCIE bus to match the port type of the PCIE board type, then If the PCIE master device is required, then the state of the multiplexed PCIE auxiliary signal line is set to a state suitable for its original function (for example, an output state).
  • the multiplexed PCIE auxiliary signal line is a PCIE reset signal line representing a case of multiplexing one PCIE auxiliary signal line
  • the multiplexed PCIE auxiliary signal line is represented by two PCIE reset signal lines.
  • Multiple multiplexed PCIE auxiliary signal lines are multiple reused.
  • the case of the PCIE auxiliary signal line includes not only the case of multiplexing the same type of multiple auxiliary signal lines, but also the case of multiplexing different types of auxiliary signal lines.
  • one PCIE reset signal line and one PCIE wake-up signal line can be multiplexed at the same time, or two PCIE reset signal lines and one PCIE wake-up signal line can be multiplexed.
  • the PCIE port configuration device provided in this embodiment performs type identification on the PCIE board by multiplexing the auxiliary signal lines already existing in the PCIE master device, and then configures the PCIE bus on the PCIE master device to match the PCIE board type. No additional GPIO indicator signal lines are required, which reduces the overhead of identifying PCIE board types compared to the prior art.
  • the pull-up device may be a pull-up resistor
  • the pull-down device may be a pull-down resistor, but is not limited thereto.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Bus Control (AREA)
  • Information Transfer Systems (AREA)

Abstract

Disclosed are a port configuration method and device for a high-speed peripheral component interconnect express. The method comprises: reading a pull-up and/or pull-down level value of a PCIE auxiliary signal line on a PCIE master device, identifying the type of a PCIE board card in accordance with the read pull-up and/or pull-down level value, the PCIE board card being connected to the PCIE auxiliary signal line, and performing pull-up and/or pull-down processing on the PCIE auxiliary signal line by a pull-up and/or pull-down device (101); and configuring the PCIE bus line on the PCIE master device to be a PCIE port matching with the type of the PCIE board card (102). The solution reduces the overhead for identifying the type of the PCIE board card while achieving the purpose of configuring the port type of the PCIE master device in accordance with the PCIE board card type.

Description

高速外围器件互连总线端口配置方法及设备  High-speed peripheral device interconnection bus port configuration method and device
技术领域 Technical field
本发明涉及电路技术, 尤其涉及一种高速外围器件互连总线端口配置方 法及设备。 背景技术  The present invention relates to circuit technology, and more particularly to a high speed peripheral device interconnect bus port configuration method and apparatus. Background technique
在处理器系统中, 高速外围器件互连总线 ( Peripheral Component Interconnect Express , 简称为 PCIE )主设备与一个或多个板卡 PCIE板卡通过 PCIE总线连接, PCIE主设备到 PCIE板卡的 PCIE总线可以根据 PCIE板卡 上 PCIE从设备的个数配置为一个或多个 PCIE端口,例如 16通道( lane )PCIE 总线支持配置为 1个 xl6通道 PCIE端口, 或 2个 x8通道 PCIE端口或 4个 x4通道 PCIE端口等。其中, PCIE板卡上的 PCIE从设备的不同,可能使 PCIE 主设备上与 PCIE板卡连接的 PCIE端口类型不同, 因此, PCIE主设备需要 事先识别 PCIE板卡的类型, 然后才能正确将 PCIE总线配置为与 PCIE板卡 相匹配的 PCIE端口类型。  In the processor system, a high-speed Peripheral Component Interconnect Express (PCIE) master device and one or more board PCIE boards are connected through a PCIE bus, and a PCIE host to a PCIE board PCIE bus can According to the number of PCIE slaves on the PCIE board configured as one or more PCIE ports, for example, 16 lanes (lane) PCIE bus support is configured as one xl6 channel PCIE port, or two x8 channel PCIE ports or four x4 channels PCIE port, etc. The PCIE slave device on the PCIE board may have different PCIE port types on the PCIE master device. Therefore, the PCIE master device needs to identify the type of the PCIE card in advance, and then the PCIE bus can be correctly installed. Configured as a PCIE port type that matches the PCIE board.
现有技术是通过专用的通用输入 /输出 ( General Purpose Input/Output , 简 称为 GPIO )信号线在 PCIE板卡上做电阻上下拉指示来识别 PCIE板卡类型 的 , 例如, 如果 GPIO信号线下拉表示 PCIE板卡为对应 1个 xl6通道 PCIE 端口的类型,如果 GPIO信号线上拉表示 PCIE板卡为对应 2个 x8通道 PCIE 端口的类型,基于此, PCIE主设备通过读取 GPIO信号线的上下拉电平组合, 即可判断出 PCIE板卡的类型。 可见, 现有技术为了识别 PCIE板卡的类型, 需要增加额外的 GPIO信号线作 PCIE板卡类型指示,增加了额外的信号线资 源开销。 发明内容  In the prior art, the PCIE board type is identified by performing a pull-up indication on the PCIE board through a dedicated General Purpose Input/Output (GPIO) signal line, for example, if the GPIO signal line is pulled down. The PCIE board is a type corresponding to one xl6 channel PCIE port. If the GPIO signal line indicates that the PCIE board is the type corresponding to two x8 channel PCIE ports, based on this, the PCIE master reads the up and down of the GPIO signal line. Level combination, you can determine the type of PCIE board. It can be seen that in order to identify the type of PCIE board, the prior art needs to add an additional GPIO signal line as a PCIE board type indication, which adds additional signal line resource overhead. Summary of the invention
本发明实施例提供一种高速外围器件互连总线端口配置方法及设备, 用 以降低识别 PCIE板卡类型的开销。  Embodiments of the present invention provide a high-speed peripheral device interconnection bus port configuration method and device, which are used to reduce the overhead of identifying a PCIE board type.
本发明实施例第一个方面提供一种高速外围器件互连总线 PCIE 端口配 置方法, 包括: A first aspect of the embodiments of the present invention provides a high speed peripheral device interconnect bus PCIE port Method, including:
读取 PCIE主设备上的 PCIE辅助信号线的上拉和 /或下拉电平值,根据读 取的上拉和 /或下拉电平值识别 PCIE板卡的类型, 其中, 所述 PCIE板卡与所 述 PCIE辅助信号线连接,并通过上拉和 /或下拉器件对所述 PCIE辅助信号线 故上拉和 /或下拉处理;  Reading the pull-up and/or pull-down level values of the PCIE auxiliary signal line on the PCIE master device, and identifying the type of the PCIE board according to the read pull-up and/or pull-down level values, wherein the PCIE board is The PCIE auxiliary signal line is connected, and the PCIE auxiliary signal line is pulled up and/or pulled down by a pull-up and/or pull-down device;
将所述 PCIE主设备上的 PCIE总线配置为与所述 PCIE板卡的类型相匹 配的 PCIE端口。  The PCIE bus on the PCIE master is configured as a PCIE port that matches the type of the PCIE board.
在第一方面的第一种可能的实现方式中,所述读取 PCIE主设备上的 PCIE 辅助信号线的上拉和 /或下拉电平值, 根据读取的上拉和 /或下拉电平值识别 PCIE板卡的类型包括:  In a first possible implementation manner of the first aspect, the reading the pull-up and/or pull-down level values of the PCIE auxiliary signal line on the PCIE master device, according to the read pull-up and/or pull-down levels The types of values that identify PCIE boards include:
在所述 PCIE主设备启动或复位时, 设置所述 PCIE辅助信号线为输入状 态, 并读取所述 PCIE辅助信号线的上拉和 /或下拉电平值;  When the PCIE master device is started or reset, setting the PCIE auxiliary signal line to an input state, and reading a pull-up and/or pull-down level value of the PCIE auxiliary signal line;
查询预设的电平值与类型映射关系, 确定与读取的上拉和 /或下拉电平值 对应的类型为所述 PCIE板卡的类型。  The preset level value and the type mapping relationship are queried, and the type corresponding to the read pull-up and/or pull-down level value is determined as the type of the PCIE board.
结合第一方面的第一种可能的实现方式, 在第一方面的第二种可能的实 现方式中, 所述将所述 PCIE主设备上的 PCIE总线配置为与所述 PCIE板卡 的类型相匹配的 PCIE端口之后包括:  In conjunction with the first possible implementation of the first aspect, in a second possible implementation manner of the first aspect, the PCIE bus on the PCIE host device is configured to be the type of the PCIE card After matching PCIE ports, include:
设置所述 PCIE辅助信号线为实现原始功能的状态。  The PCIE auxiliary signal line is set to a state in which the original function is implemented.
结合第一方面或第一方面的第一种可能的实现方式或第一方面的第二种 可能的实现方式,在第一方面的第三种可能的实现方式中,所述 PCIE辅助信 号线为一根 PCIE复位信号线;  With reference to the first aspect or the first possible implementation of the first aspect, or the second possible implementation of the first aspect, in a third possible implementation manner of the first aspect, the PCIE auxiliary signal line is a PCIE reset signal line;
所述读取 PCIE主设备上的 PCIE辅助信号线的上拉和 /或下拉电平值,根 据读取的上拉和 /或下拉电平值识别 PCIE板卡的类型包括:  The value of the pull-up and/or pull-down level of the PCIE auxiliary signal line on the PCIE master device is read, and the type of the PCIE card is identified according to the read pull-up and/or pull-down level values:
读取所述 PCIE复位信号线的上拉或下拉电平值, 根据读取的 PCIE复位 信号线的上拉或下拉电平值识别所述 PCIE板卡的类型。  The pull-up or pull-down level value of the PCIE reset signal line is read, and the type of the PCIE board is identified according to the pull-up or pull-down level value of the read PCIE reset signal line.
结合第一方面或第一方面的第一种可能的实现方式或第一方面的第二种 可能的实现方式,在第一方面的第四种可能的实现方式中,所述 PCIE辅助信 号线为两^ ^艮或两^ ^艮以上的 PCIE复位信号线;  With reference to the first aspect, or the first possible implementation of the first aspect, or the second possible implementation of the first aspect, in a fourth possible implementation manner of the first aspect, the PCIE auxiliary signal line is Two ^ ^ 艮 or two ^ ^ 艮 above the PCIE reset signal line;
读取 PCIE主设备上的 PCIE辅助信号线的上拉和 /或下拉电平值,根据读 取的上拉和 /或下拉电平值识别 PCIE板卡的类型包括: 读取每根 PCIE复位信号线的上拉或下拉电平值, 根据读取的 PCIE复位 信号线的上拉或下拉电平值识别所述 PCIE板卡的类型。 The pull-up and/or pull-down level values of the PCIE auxiliary signal lines on the PCIE master device are read, and the types of PCIE boards are identified based on the read pull-up and/or pull-down level values, including: The pull-up or pull-down level value of each PCIE reset signal line is read, and the type of the PCIE board is identified according to the pull-up or pull-down level value of the read PCIE reset signal line.
结合第一方面或第一方面的第一种可能的实现方式或第一方面的第二种 可能的实现方式,在第一方面的第五种可能的实现方式中,所述 PCIE辅助信 号线为 PCIE复用预留信号线和 /或 PCIE唤醒信号线。  With reference to the first aspect, or the first possible implementation of the first aspect, or the second possible implementation of the first aspect, in a fifth possible implementation manner of the first aspect, the PCIE auxiliary signal line is The PCIE multiplexes the reserved signal line and/or the PCIE wake-up signal line.
本发明实施例第二个方面提供一种高速外围器件互连总线 PCIE 端口配 置设备, 包括:  A second aspect of the embodiments of the present invention provides a high-speed peripheral device interconnection bus PCIE port configuration device, including:
读取单元,用于读取 PCIE主设备上的 PCIE辅助信号线的上拉和 /或下拉 电平值, 根据读取的上拉和 /或下拉电平值识别 PCIE板卡的类型, 其中, 所 述 PCIE板卡与所述 PCIE辅助信号线连接,并通过上拉和 /或下拉器件对所述 PCIE辅助信号线做上拉和 /或下拉处理;  a reading unit, configured to read a pull-up and/or pull-down level value of the PCIE auxiliary signal line on the PCIE master device, and identify a type of the PCIE card according to the read pull-up and/or pull-down level value, where The PCIE board is connected to the PCIE auxiliary signal line, and performs pull-up and/or pull-down processing on the PCIE auxiliary signal line by using a pull-up and/or pull-down device;
配置单元, 用于将所述 PCIE主设备上的 PCIE总线配置为与所述 PCIE 板卡的类型相匹配的 PCIE端口。  And a configuration unit, configured to configure a PCIE bus on the PCIE master device to be a PCIE port that matches a type of the PCIE board.
在第二方面的第一种可能的实现方式中, 所述读取单元具体用于在所述 PCIE主设备启动或复位时, 设置所述 PCIE辅助信号线为输入状态, 读取所 述 PCIE辅助信号线的上拉和 /或下拉电平值, 查询预设的电平值与类型映射 关系, 确定与读取的上拉和 /或下拉电平值对应的类型为所述 PCIE板卡的类 型。  In a first possible implementation manner of the second aspect, the reading unit is specifically configured to: when the PCIE master device is started or reset, set the PCIE auxiliary signal line to an input state, and read the PCIE assist Pull-up and/or pull-down level values of the signal line, query the preset level value and type mapping relationship, and determine the type corresponding to the read pull-up and/or pull-down level value as the type of the PCIE board .
结合第二方面的第一种可能的实现方式, 在第二方面的第二种可能的实 现方式中, 所述配置单元还用于在将所述 PCIE主设备上的 PCIE总线配置为 与所述 PCIE板卡的类型相匹配的 PCIE端口之后, 设置所述 PCIE辅助信号 线为实现原始功能的状态。  With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the configuration unit is further configured to configure the PCIE bus on the PCIE host device to be After the type of the PCIE board matches the PCIE port, the PCIE auxiliary signal line is set to implement the original function state.
结合第二方面或第二方面的第一种可能的实现方式或第二方面的第二种 可能的实现方式,在第二方面的第三种可能的实现方式中,所述 PCIE辅助信 号线为一根 PCIE复位信号线;  With reference to the second aspect or the first possible implementation manner of the second aspect, or the second possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, the PCIE auxiliary signal line is a PCIE reset signal line;
所述读取单元具体用于读取所述 PCIE复位信号线的上拉或下拉电平值, 根据读取的 PCIE复位信号线的上拉或下拉电平值识别所述 PCIE板卡的类 型。  The reading unit is specifically configured to read a pull-up or pull-down level value of the PCIE reset signal line, and identify the type of the PCIE board according to a pull-up or pull-down level value of the read PCIE reset signal line.
结合第二方面或第二方面的第一种可能的实现方式或第二方面的第二种 可能的实现方式,在第二方面的第四种可能的实现方式中,所述 PCIE辅助信 号线为两^ ^艮或两^ ^艮以上的 PCIE复位信号线; In conjunction with the second aspect or the first possible implementation of the second aspect, or the second possible implementation of the second aspect, in a fourth possible implementation of the second aspect, the PCIE auxiliary The number line is a PCIE reset signal line of two ^ ^ 艮 or two ^ ^ ; or more;
所述读取单元具体用于读取每根 PCIE复位信号线的上拉或下拉电平值, 根据读取的 PCIE复位信号线的上拉或下拉电平值识别所述 PCIE板卡的类 型。  The reading unit is specifically configured to read a pull-up or pull-down level value of each PCIE reset signal line, and identify the type of the PCIE board according to a pull-up or pull-down level value of the read PCIE reset signal line.
结合第二方面或第二方面的第一种可能的实现方式或第二方面的第二种 可能的实现方式,在第二方面的第五种可能的实现方式中,所述 PCIE辅助信 号线为 PCIE复用预留信号线和 /或 PCIE唤醒信号线。  With reference to the second aspect or the first possible implementation manner of the second aspect, or the second possible implementation manner of the second aspect, in a fifth possible implementation manner of the second aspect, the PCIE auxiliary signal line is The PCIE multiplexes the reserved signal line and/or the PCIE wake-up signal line.
本发明实施例第三个方面提供一种高速外围器件互连总线 PCIE板卡,所 述 PCIE板卡与 PCIE主设备上的 PCIE辅助信号线连接, 并通过上拉和 /或下 拉器件对所述 PCIE辅助信号线做上拉和 /或下拉处理。  A third aspect of the embodiments of the present invention provides a high speed peripheral device interconnect bus PCIE board, the PCIE board being connected to a PCIE auxiliary signal line on a PCIE master device, and being connected by a pull-up and/or pull-down device The PCIE auxiliary signal line is pulled up and/or pulled down.
本发明实施例提供的高速外围器件互连总线端口配置方法及设备, 通过 复用 PCIE主设备已经存在的辅助信号线对 PCIE板卡进行类型识别, 进而将 PCIE主设备上的 PCIE总线配置成与 PCIE板卡类型相匹配的端口, 不需要 额外的 GPIO指示信号线,与现有技术相比降低了识别 PCIE板卡类型的开销。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下 面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在 不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。 图 1为本发明一实施例提供的 PCIE端口配置方法的流程图;  The high-speed peripheral device interconnection bus port configuration method and device provided by the embodiments of the present invention perform type identification on the PCIE board by multiplexing the auxiliary signal lines already existing in the PCIE master device, and then configuring the PCIE bus on the PCIE master device to be The PCIE board type matches the port, and does not require an additional GPIO indicator signal line, which reduces the overhead of identifying the PCIE board type compared to the prior art. BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. The drawings are some embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without any inventive labor. FIG. 1 is a flowchart of a method for configuring a PCIE port according to an embodiment of the present invention;
图 2为本发明一实施例提供的 PCIE端口配置设备的结构示意图; 图 3为本发明一实施例提供的 PCIE板卡与 PCIE主设备和 PCIE端口配 置设备的连接示意图。 具体实施方式 为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发 明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于 本发明中的实施例, 本领域普通技术人员在没有作出创造性劳动前提下所获 得的所有其他实施例, 都属于本发明保护的范围。 2 is a schematic structural diagram of a PCIE port configuration device according to an embodiment of the present invention; and FIG. 3 is a schematic diagram of a connection between a PCIE card and a PCIE host device and a PCIE port configuration device according to an embodiment of the present invention. The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. The embodiments are a part of the embodiments of the invention, and not all of the embodiments. Based on the embodiments of the present invention, those of ordinary skill in the art obtain the following without creative efforts. All other embodiments obtained are within the scope of the invention.
图 1为本发明一实施例提供的 PCIE端口配置方法的流程图。如图 1所示, 本实施例的方法包括:  FIG. 1 is a flowchart of a method for configuring a PCIE port according to an embodiment of the present invention. As shown in FIG. 1, the method in this embodiment includes:
步骤 101、读取 PCIE主设备上的 PCIE辅助信号线的上拉和 /或下拉电平 值, 根据读取的上拉和 /或下拉电平值识别 PCIE板卡的类型, 其中, PCIE板 卡与上述 PCIE辅助信号线连接,并通过上拉和 /或下拉器件对上述 PCIE辅助 信号线做上拉和 /或下拉处理。  Step 101: Read a pull-up and/or pull-down level value of the PCIE auxiliary signal line on the PCIE master device, and identify a PCIE board type according to the read pull-up and/or pull-down level values, where the PCIE board The PCIE auxiliary signal line is connected to the above, and the PCIE auxiliary signal line is pulled up and/or pulled down by a pull-up and/or pull-down device.
步骤 102、 将 PCIE主设备上的 PCIE总线配置为与 PCIE板卡的类型相 匹配的 PCIE端口。  Step 102: Configure the PCIE bus on the PCIE host device to be a PCIE port that matches the type of the PCIE board.
在处理器系统中, PCIE主设备的 PCIE总线通常会通过扣板连接器或背 板连接器等与 PCIE板卡互连。处理器系统中的中央处理器( Central Processing Unit, 简称为 CPU )可将 PCIE主设备的 PCIE总线配置为一个或多个 PCIE 端口, 并需要与 PCIE板卡的类型相匹配。 其中, PCIE总线可配置成的 PCIE 端口类型包括但不限于: x4通道 PCIE端口、 x8通道 PCIE端口、 xl6通道 PCIE端口。 PCIE板卡的类型主要由 PCIE板卡上 PCIE从设备的个数以及类 型确定, 例如, 一个 PCIE板卡上有 2个 PCIE从设备, 则 PCIE主设备需要 为该 PCIE板卡配置 2个 PCIE端口, 用于分别与该 PCIE板卡上的 2个 PCIE 从设备建立通信连接, 那么该 PCIE板卡对应于 2个 PCIE端口, 假设这 2个 PCIE端口为 x8通道 PCIE端口,则该 PCIE板卡就是对应于 2个 x8通道 PCIE 端口的类型。 对于不同板卡而言, 凡是对应相同个数、 相同类型 (主要是指 包含的通道数相同)的 PCIE端口的都属于同一类型的板卡。 例如, 如果有 2 个 PCIE板卡都对应 2个 x8通道的 PCIE端口,则这 2个 PCIE板卡的类型相 同。  In a processor system, the PCIE bus of the PCIE master device is typically interconnected with the PCIE board through a gusset connector or a backplane connector. The Central Processing Unit (CPU) in the processor system configures the PCIE master's PCIE bus as one or more PCIE ports and needs to match the PCIE board type. Among them, the PCIE bus can be configured as PCIE port types including but not limited to: x4 channel PCIE port, x8 channel PCIE port, xl6 channel PCIE port. The type of PCIE board is mainly determined by the number and type of PCIE slaves on the PCIE board. For example, if there are two PCIE slaves on a PCIE board, the PCIE master needs to configure two PCIE ports for the PCIE board. For establishing a communication connection with two PCIE slaves on the PCIE board, the PCIE board corresponds to two PCIE ports. If the two PCIE ports are x8 channel PCIE ports, the PCIE board is Corresponds to the type of 2 x8 channel PCIE ports. For different boards, the PCIE ports that correspond to the same number and the same type (mainly including the same number of channels) belong to the same type of board. For example, if two PCIE boards correspond to two x8-channel PCIE ports, the two PCIE boards are the same type.
为了满足不同类型的板卡对 PCIE端口的需求, CPU需要先识别 PCIE板 卡的类型, 然后再将 PCIE总线配置为与 PCIE板卡的类型相适应的 PCIE端 口。 这里的相适应主要是指配置出的 PCIE端口的个数以及类型满足 PCIE板 卡的需求。  In order to meet the needs of different types of boards for PCIE ports, the CPU needs to identify the type of PCIE board first, and then configure the PCIE bus to be a PCIE port that is compatible with the type of PCIE board. The adaptation here mainly refers to the number and type of PCIE ports configured to meet the requirements of the PCIE board.
为了能够识别出 PCIE板卡的类型,并保证尽可能低的开销,本实施例釆 用复用已经存在的 PCIE辅助信号线的方式, 通过 PCIE辅助信号线对 PCIE 板卡进行类型识别。 其中, 复用的 PCIE辅助信号线是与 PCIE板卡连接的。 另外, 通过 PCIE板卡与 PCIE主设备配合, 在 PCIE板卡上通过上拉和 /或下 拉器件对 PCIE辅助信号线做上拉和 /或下拉处理, 然后, CPU通过读取 PCIE 辅助信号线的上拉和 /或下拉电平值, 根据读取的上拉和 /或下拉电平值识别 PCIE板卡的类型。 在识别出 PCIE板卡的类型后, CPU将 PCIE总线配置为 与 PCIE板卡类型相匹配的 PCIE端口。 其中, PCIE板卡对 PCIE辅助信号线 做上拉处理使用的上拉器件可以是上拉电阻, 还可以是上拉电流源等其他上 拉器件; 相应的, PCIE板卡对 PCIE辅助信号线做下拉处理使用的下拉器件 可以是下拉电阻, 还可以是下拉电流源等其他下拉器件。 In order to be able to identify the type of the PCIE board and ensure the lowest possible overhead, the embodiment uses the PCIE auxiliary signal line to multiplex the PCIE auxiliary signal line to perform type identification on the PCIE board. The multiplexed PCIE auxiliary signal line is connected to the PCIE board. In addition, through the PCIE board and the PCIE master device, the PCIE auxiliary signal line is pulled up and/or pulled down by the pull-up and/or pull-down devices on the PCIE board, and then the CPU reads the PCIE auxiliary signal line. The pull-up and/or pull-down level values identify the type of PCIE board based on the read pull-up and/or pull-down level values. After identifying the type of PCIE board, the CPU configures the PCIE bus as a PCIE port that matches the PCIE board type. The pull-up device used for the PCIE auxiliary signal line to be pulled up by the PCIE board may be a pull-up resistor, or may be a pull-up current source and other pull-up devices; correspondingly, the PCIE board performs the PCIE auxiliary signal line. The pull-down device used for the pull-down processing can be a pull-down resistor or other pull-down device such as a pull-down current source.
例如 , 以 16通道( lane ) PCIE总线为例 , 则可以定义 PCIE辅助信号线 上拉高电平表示 PCIE板卡是对应于 1个 xl6通道 PCIE端口的类型 , PCIE 辅助信号线下拉低电平表示 PCIE板卡是对应 2个 x8通道 PCIE端口的类型。 假设, PCIE板卡是对应 1个 xl6通道 PCIE端口的类型, 则在 PCIE板卡上 预先对 PCIE辅助信号线做上拉处理。 这样 CPU会从 PCIE辅助信号线上读 取到上拉电平值, 即高电平, 根据预先定义可以识别出该 PCIE板卡是对应 1 个 xl6通道 PCIE端口的类型, 进而将 PCIE总线配置为 1个 xl6通道 PCIE 端口, 满足 PCIE板卡的需求。  For example, taking a 16-lane PCIE bus as an example, it can be defined that the PCIE auxiliary signal line is pulled high to indicate that the PCIE board is corresponding to one xl6 channel PCIE port type, and the PCIE auxiliary signal line is pulled down to indicate low level. The PCIE board is a type that corresponds to two x8 lane PCIE ports. Assume that the PCIE board is of the type corresponding to one xl6 channel PCIE port, and the PCIE auxiliary signal line is pre-pulled on the PCIE board. In this way, the CPU reads the pull-up level value from the PCIE auxiliary signal line, that is, the high level. According to the pre-defined, the PCIE board is identified as a type corresponding to one xl6 channel PCIE port, and then the PCIE bus is configured as One xl6 channel PCIE port meets the requirements of PCIE boards.
其中,可复用的 PCIE辅助信号线可以是但不限于以下任一信号线或其组 合: PCIE复位(PERST )信号线、 PCIE复用预留信号线和 PCIE唤醒(wake ) 信号线等。  The reusable PCIE auxiliary signal line may be, but not limited to, any one of the following signal lines or a combination thereof: a PCIE reset (PERST) signal line, a PCIE multiplexed reserved signal line, and a PCIE wake-up (wake) signal line.
由上述可见, 在本实施例中, CPU通过复用 PCIE主设备已经存在的辅 助信号线对 PCIE板卡进行类型识别, 进而将 PCIE主设备上的 PCIE总线配 置成与 PCIE板卡类型相匹配的端口, 不需要额外的 GPIO指示信号线, 与现 有技术相比降低了识别 PCIE板卡类型的开销。  As can be seen from the above, in the embodiment, the CPU identifies the type of the PCIE card by multiplexing the auxiliary signal line already existing on the PCIE master device, and then configures the PCIE bus on the PCIE master device to match the PCIE board type. The port, which does not require an additional GPIO indicator signal line, reduces the overhead of identifying the PCIE board type compared to the prior art.
在一可选实施方式中, CPU读取 PCIE主设备上的 PCIE辅助信号线的上 拉和 /或下拉电平值, 根据读取的上拉和 /或下拉电平值识别 PCIE板卡的类型 的过程包括: CPU在 PCIE主设备启动或复位时, 设置 PCIE辅助信号线为输 入状态, 并读取 PCIE辅助信号线的上拉和 /或下拉电平值; 然后, CPU查询 预设的电平值与类型映射关系, 确定与读取的上拉和 /或下拉电平值对应的类 型为 PCIE板卡的类型。 在该实施方式中, 处理器系统上预先存储了 PCIE辅 助信号线的电平值与 PCIE板卡类型之间的映射关系, 这样 CPU在读取到 PCIE辅助信号线的上拉和 /或下拉电平值之后,可以直接查找上述电平值与类 型映射关系确定 PCIE板卡的类型, 具有实现简单、 效率高等优势。 In an optional implementation, the CPU reads the pull-up and/or pull-down level values of the PCIE auxiliary signal lines on the PCIE master device, and identifies the type of the PCIE board based on the read pull-up and/or pull-down level values. The process includes: setting, when the PCIE master device is started or reset, the PCIE auxiliary signal line as an input state, and reading the pull-up and/or pull-down level values of the PCIE auxiliary signal line; then, the CPU queries the preset level. The value-to-type mapping relationship determines the type of the PCIE board corresponding to the type of pull-up and/or pull-down level values read. In this embodiment, the mapping relationship between the level value of the PCIE auxiliary signal line and the PCIE board type is pre-stored on the processor system, so that the CPU reads After the pull-up and/or pull-down level values of the PCIE auxiliary signal line, the above-mentioned level value and type mapping relationship can be directly searched to determine the type of the PCIE board, which has the advantages of simple implementation and high efficiency.
由于本实施例是复用 PCIE辅助信号线, 所复用的 PCIE辅助信号线有其 自身的原始功能, 例如 PCIE复位信号线的原始功能是复位, PCIE唤醒信号 线的原始功能是唤醒等。 基于此, 在复用 PCIE辅助信号线完成对 PCIE板卡 类型的识别后, CPU可以设置 PCIE辅助信号线为实现原始功能的状态。 举 例说明, 对 PCIE复位信号来说, CPU用其进行 PCIE板卡类型识别时会将其 设置为输入状态, 但其实现复位功能的状态应为输出状态, 故在完成对 PCIE 板卡类型的识别后, CPU将 PCIE复位信号线的状态设置为输出状态, 以使 PCIE复位信号线完成复位功能。  Since the PCIE auxiliary signal line is multiplexed in this embodiment, the multiplexed PCIE auxiliary signal line has its original function. For example, the original function of the PCIE reset signal line is reset, and the original function of the PCIE wake-up signal line is wake-up. Based on this, after the PCIE auxiliary signal line is multiplexed to identify the PCIE board type, the CPU can set the PCIE auxiliary signal line to achieve the original function status. For example, for the PCIE reset signal, the CPU will set it to the input state when it uses the PCIE board type identification, but the state of the reset function should be the output state, so the identification of the PCIE board type is completed. After that, the CPU sets the state of the PCIE reset signal line to the output state, so that the PCIE reset signal line completes the reset function.
可选的,如果使用的 PCIE辅助信号线在完成原始功能时的状态也为输入 状态, 则 CPU可以不用在重新设置该 PCIE辅助信号线的状态。  Optionally, if the PCIE auxiliary signal line used is also in the input state when the original function is completed, the CPU may not need to reset the state of the PCIE auxiliary signal line.
下面以复用的 PCIE辅助信号线为 PCIE复位信号线为例详细说明 CPU 是如何复用 PCIE辅助信号线识别 PCIE板卡类型并进行端口配置的。  The following uses the multiplexed PCIE auxiliary signal line as the PCIE reset signal line as an example to explain how the CPU multiplexes the PCIE auxiliary signal line to identify the PCIE board type and configure the port.
第一种情况: PCIE主设备的 PCIE总线通过扣板连接器或背板连接器与 The first case: The PCIE bus of the PCIE master device is connected to the PCIE bus through the gusset connector or the backplane connector.
PCIE板卡互连, 本实施例使用的 PCIE辅助信号线为一根 PCIE复位信号线, 这种情况下可以通过上拉或下拉指示两种 PCIE板卡类型。 具体的, CPU读 取 PCIE复位信号线的上拉或下拉电平值, 根据读取的 PCIE复位信号线的上 拉或下拉电平值识别 PCIE板卡的类型。 对于该根 PCIE复位信号线来说, 同 一 PCIE板卡上要么对其进行上拉处理, 要么对其进行下拉处理。 The PCIE board is interconnected. The PCIE auxiliary signal line used in this embodiment is a PCIE reset signal line. In this case, two PCIE board types can be indicated by pull-up or pull-down. Specifically, the CPU reads the pull-up or pull-down level of the PCIE reset signal line, and identifies the type of the PCIE board according to the pull-up or pull-down level of the read PCIE reset signal line. For the root PCIE reset signal line, the same PCIE board is either pulled up or pulled down.
假设, PCIE总线为 16通道( lanes ) PCIE总线, 其可配置为 1个 xl6通 道 PCIE端口、 2个 x8通道 PCIE端口,而 PCIE板卡可兼容设计包含 1个 PCIE 从设备, 支持 1个 xl6通道 PCIE端口, 或者包含 2个 PCIE从设备, 支持 2 个 x8通道 PCIE端口 , PCIE主设备提供一根 PCIE复位信号线对该 PCIE板 卡上的 PCIE从设备进行复位。 如果 PCIE板卡可兼容设计包含 1个 PCIE从 设备并支持 1个 xl6通道 PCIE端口, 则 CPU通过该根 PCIE复位信号线对 上述唯一的 PCIE从设备进行复位;如果 PCIE板卡可兼容设计包含 2个 PCIE 从设备并支持 2个 x8通道 PCIE端口, 则 CPU通过该根 PCIE复位信号线对 上述两个 PCIE从设备进行复位。 在本实施例中, 定义上述一根 PCIE复位信 号线在 PCIE板卡内做下拉表示 PCIE板卡对应 1个 xl6通道 PCIE端口, 而 上述一根 PCIE复位信号线在 PCIE板卡内做上拉表示 PCIE板卡对应 2个 x8 通道 PCIE端口; 相应的 , PCIE板卡才艮据自己的设计对该才艮 PCIE复位信号 线做上拉或下拉处理。 基于此, CPU在 PCIE主设备启动或复位时, 设置该 根 PCIE复位信号线为输入状态, 读取该 PCIE复位信号线的电平值, 如果读 取到的是下拉电平值, 可以识别出 PCIE板卡是对应 1个 xl6通道 PCIE端口 的类型, 如果读取到的是上拉电平值, 可以识别出 PCIE板卡是对应 2个 x8 通道 PCIE端口的类型。 然后, 如果 CPU识别出 PCIE板卡是对应 1个 xl6 通道 PCIE端口的类型, 则将 PCIE总线设置为 1个 xl6通道 PCIE端口; 如 果 CPU识别出 PCIE板卡是对应 2个 x8通道 PCIE端口的类型, 则将 PCIE 总线设置为 2个 x8通道 PCIE端口。 Assume that the PCIE bus is a 16-lane PCIE bus, which can be configured as one x16-channel PCIE port and two x8-channel PCIE ports, while the PCIE board is compatible with one PCIE slave device and supports one xl6 channel. The PCIE port, or two PCIE slaves, supports two x8-channel PCIE ports. The PCIE master provides a PCIE reset signal line to reset the PCIE slaves on the PCIE board. If the PCIE board compatible design includes one PCIE slave device and supports one xl6 channel PCIE port, the CPU resets the unique PCIE slave device through the PCIE reset signal line; if the PCIE board is compatible, the design includes 2 The PCIE slaves support two x8-channel PCIE ports, and the CPU resets the two PCIE slaves through the PCIE reset signal line. In this embodiment, the one PCIE reset signal line is defined as being pulled down in the PCIE board to indicate that the PCIE board corresponds to one xl6 channel PCIE port, and The above PCIE reset signal line is pulled up in the PCIE board to indicate that the PCIE board corresponds to two x8 channel PCIE ports; correspondingly, the PCIE board is pulled up according to its own design for the PCIE reset signal line. Or pull down processing. Based on this, when the PCIE master device is started or reset, the CPU sets the PCIE reset signal line to the input state, and reads the level value of the PCIE reset signal line. If the pull-down level value is read, the CPU can recognize The PCIE board is a type corresponding to one xl6 channel PCIE port. If the value of the pull-up level is read, it can be recognized that the PCIE board is of the type corresponding to two x8-channel PCIE ports. Then, if the CPU recognizes that the PCIE board is of a type corresponding to one xl6 channel PCIE port, the PCIE bus is set to one xl6 channel PCIE port; if the CPU recognizes that the PCIE board is a type corresponding to two x8 channel PCIE ports , set the PCIE bus to two x8 lane PCIE ports.
可选的, 在完成端口配置后, CPU设置该根 PCIE复位信号线为输出状 态, 以使其实现自己的原始功能。  Optionally, after the port configuration is completed, the CPU sets the PCIE reset signal line to an output state to implement its original function.
在使用的 PCIE辅助信号线仅为一根辅助信号线时, CPU要么读取上拉 电平值要么读取下拉电平值。  When the PCIE auxiliary signal line used is only one auxiliary signal line, the CPU either reads the pull-up level value or reads the pull-down level value.
第二种情况, PCIE主设备的 PCIE总线通过扣板连接器或背板连接器与 In the second case, the PCIE bus of the PCIE master device passes through the gusset connector or the backplane connector.
PCIE板卡互连, 本实施例使用的 PCIE辅助信号线为两根 PCIE复位信号线, 这种情况下可以通过上拉、 下拉组合指示四种 PCIE板卡类型。 两根 PCIE复 位信号线的上下拉组合为: 都是上拉、 都是下拉、 一个上拉另一个下拉, ― 个下拉另一个上拉。 但是对于每根 PCIE复位信号线来说, 同一 PCIE板卡要 么对其做上拉处理, 要么对其做下拉处理。 具体的, CPU读取每根 PCIE复 位信号线的上拉或下拉电平值,根据读取的 PCIE复位信号线的上拉或下拉电 平值识别 PCIE板卡的类型。 The PCIE board is interconnected. The PCIE auxiliary signal line used in this embodiment is two PCIE reset signal lines. In this case, four PCIE board types can be indicated by pull-up and pull-down combinations. The upper and lower pull-down combinations of the two PCIE reset signal lines are: all pull-ups, all pull-downs, one pull-up and another pull-down, and one pull-down and another pull-up. However, for each PCIE reset signal line, the same PCIE board should be pulled up or pulled down. Specifically, the CPU reads the pull-up or pull-down level of each PCIE reset signal line, and identifies the type of the PCIE board according to the pull-up or pull-down level of the read PCIE reset signal line.
假设, PCIE总线为 16通道( lanes ) PCIE总线, 其可配置为 1个 xl6通 道 PCIE端口、 2个 x8通道 PCIE端口,而 PCIE板卡可兼容设计包含 1个 PCIE 从设备, 支持 1个 xl6通道 PCIE端口, 或者包含 2个 PCIE从设备, 支持 2 个 x8通道 PCIE端口 , PCIE主设备提供两根 PCIE复位信号线对该 PCIE板 卡上的 PCIE从设备进行复位。其中,可以釆用四种上下拉组合方式中的任意 两种来表示 PCIE板卡对应 1个 xl6通道 PCIE端口和 PCIE板卡对应 2个 x8 通道 PCIE端口这两种情况。 在本实施例中, 殳定义上述两根 PCIE复位信 号线在 PCIE板卡内均做下拉表示 PCIE板卡对应 1个 xl6通道 PCIE端口, 而上述两根 PCIE复位信号线在 PCIE板卡内均做上拉表示 PCIE板卡对应 2 个 x8通道 PCIE端口; 相应的 , PCIE板卡才艮据自己的设计对两才艮 PCIE复位 信号线做上拉或下拉处理。 基于此, CPU在 PCIE主设备启动或复位时, 设 置两根 PCIE复位信号线为输入状态, 读取两根 PCIE复位信号线的电平值, 如果读取到的都是下拉电平值, 可以识别出 PCIE板卡是对应 1个 xl6通道 PCIE端口的类型, 如果读取到的都是上拉电平值, 可以识别出 PCIE板卡是 对应 2个 x8通道 PCIE端口的类型。 然后 , 如果 CPU识别出 PCIE板卡是对 应 1个 xl6通道 PCIE端口的类型 ,则将 PCIE总线设置为 1个 xl6通道 PCIE 端口; 如果 CPU识别出 PCIE板卡是对应 2个 x8通道 PCIE端口的类型 , 则 将 PCIE总线设置为 2个 x8通道 PCIE端口。 Assume that the PCIE bus is a 16-lane PCIE bus, which can be configured as one x16-channel PCIE port and two x8-channel PCIE ports, while the PCIE board is compatible with one PCIE slave device and supports one xl6 channel. The PCIE port, or two PCIE slaves, supports two x8-channel PCIE ports. The PCIE master provides two PCIE reset signal lines to reset the PCIE slaves on the PCIE board. The two types of up-and-down combinations can be used to indicate that the PCIE board corresponds to one xl6 channel PCIE port and the PCIE board corresponds to two x8 channel PCIE ports. In this embodiment, 殳 defining that the two PCIE reset signal lines are pulled down in the PCIE board, indicating that the PCIE board corresponds to one xl6 channel PCIE port. The above two PCIE reset signal lines are pulled up in the PCIE board to indicate that the PCIE board corresponds to two x8 channel PCIE ports; correspondingly, the PCIE board is based on its own design for the two PCIE reset signal lines. Pull up or pull down processing. Based on this, when the PCIE master device is started or reset, the CPU sets two PCIE reset signal lines to the input state, and reads the level values of the two PCIE reset signal lines. If the read-down values are all the pull-down level values, It is recognized that the PCIE board is of the type corresponding to one xl6 channel PCIE port. If the value of the pull-up level is read, it can be recognized that the PCIE board is of the type corresponding to two x8-channel PCIE ports. Then, if the CPU recognizes that the PCIE board is of a type corresponding to one xl6 channel PCIE port, the PCIE bus is set to one xl6 channel PCIE port; if the CPU recognizes that the PCIE board is a type corresponding to two x8 channel PCIE ports , set the PCIE bus to two x8 lane PCIE ports.
可选的, 在完成端口配置后, CPU设置两根 PCIE复位信号线均为输出 状态, 以使其实现自己的原始功能。  Optionally, after completing the port configuration, the CPU sets two PCIE reset signal lines to be output states, so that they can implement their original functions.
在使用的 PCIE辅助信号线为两根辅助信号线时, CPU可能要读取两个 上拉电平值, 或需要读取两个下拉电平, 或者需要读取一个上拉电平一个下 拉电平。  When the PCIE auxiliary signal line used is two auxiliary signal lines, the CPU may have to read two pull-up level values, or need to read two pull-down levels, or need to read one pull-up level and one pull-down level.
上面以复用的 PCIE辅助信号线为 PCIE复位信号线为例进行了说明, 但 不限于此。 复用其他 PCIE辅助信号线的方式与上述 PCIE复位信号线的方式 相类似。 例如, 如果复用的 PCIE辅助信号线为 PCIE复用预留信号线, 则可 以通过在 PCIE板卡上对其做上拉、 下拉或上下拉组合, 也可用作 PCIE板卡 类型指示信号线; 如果复用的 PCIE辅助信号线为 PCIE唤醒信号线等其他辅 助信号线, 同样通过在 PCIE板卡上对其做上拉、 下拉或上下拉组合, 也可用 作 PCIE板卡类型指示信号线。 使用方法同样是: 处理器系统中的 CPU在处 理器系统中的 PCIE主设备上电启动或复位时先设置为复用的 PCIE辅助信号 线为输入状态, 然后读取复用的 PCIE辅助信号线的上拉和 /或下拉电平值, 根据读取的上拉和 /或下拉电平值识别 PCIE板卡的类型,再将 PCIE总线配置 为与 PCIE板卡类型相匹配的端口类型, 然后, 如果需要 PCIE主设备再设置 复用的 PCIE辅助信号线的状态为适应其原始功能的状态 (例如输出状态) 。  The multiplexed PCIE auxiliary signal line is taken as an example of the PCIE reset signal line, but is not limited thereto. The way to multiplex other PCIE auxiliary signal lines is similar to the way the PCIE reset signal lines are described above. For example, if the multiplexed PCIE auxiliary signal line is a PCIE multiplexed reserved signal line, it can be pulled up, pulled down, or pulled up and down on the PCIE board, and can also be used as a PCIE board type indication signal line. If the multiplexed PCIE auxiliary signal line is other auxiliary signal lines such as the PCIE wake-up signal line, it can also be used as a PCIE board type indication signal line by pulling up, pulling down or up-down combinations on the PCIE board. . The usage method is also as follows: The CPU in the processor system first sets the multiplexed PCIE auxiliary signal line to the input state when the PCIE master device in the processor system is powered on or reset, and then reads the multiplexed PCIE auxiliary signal line. Pull-up and/or pull-down level values, identify the type of PCIE board based on the read pull-up and/or pull-down level values, and then configure the PCIE bus to match the port type of the PCIE board type, then If the PCIE master device is required, then the state of the multiplexed PCIE auxiliary signal line is set to a state suitable for its original function (for example, an output state).
在此说明, 在上述举例中以复用的 PCIE辅助信号线为一根 PCIE复位信 号线代表复用一个 PCIE辅助信号线的情况, 以复用的 PCIE辅助信号线为两 根 PCIE复位信号线代表复用多个 PCIE辅助信号线的情况。 其中, 复用多个 PCIE辅助信号线的情况不仅包括复用同一类型的多跟辅助信号线的情况,也 包括复用不同类型的辅助信号线的情况。例如,可以同时复用一根 PCIE复位 信号线和一根 PCIE唤醒信号线,或者复用两根 PCIE复位信号线和一根 PCIE 唤醒信号线等等。 其中, 复用的 PCIE辅助信号线越多所能指示的 PCIE板卡 类型就越丰富,具体复用多少 PCIE辅助信号线视实际应用需求而定。无论复 用多少个 PCIE辅助信号线, 其原理相同, 不再——赘述。 Herein, in the above example, the multiplexed PCIE auxiliary signal line is a PCIE reset signal line representing a case of multiplexing one PCIE auxiliary signal line, and the multiplexed PCIE auxiliary signal line is represented by two PCIE reset signal lines. Multiple multiplexed PCIE auxiliary signal lines. Where multiple reuse The case of the PCIE auxiliary signal line includes not only the case of multiplexing the same type of multiple auxiliary signal lines, but also the case of multiplexing different types of auxiliary signal lines. For example, one PCIE reset signal line and one PCIE wake-up signal line can be multiplexed at the same time, or two PCIE reset signal lines and one PCIE wake-up signal line can be multiplexed. The more PCIE auxiliary signal lines are multiplexed, the more PCIE card types can be indicated. The number of PCIE auxiliary signal lines to be multiplexed depends on the actual application requirements. No matter how many PCIE auxiliary signal lines are multiplexed, the principle is the same, no longer - repeat.
由上述可见, 在本实施例中, CPU通过复用 PCIE主设备已经存在的辅 助信号线对 PCIE板卡进行类型识别, 进而将 PCIE主设备上的 PCIE总线配 置成与 PCIE板卡类型相匹配的端口, 不需要额外的 GPIO指示信号线, 与现 有技术相比降低了识别 PCIE板卡类型的开销。  As can be seen from the above, in the embodiment, the CPU identifies the type of the PCIE card by multiplexing the auxiliary signal line already existing on the PCIE master device, and then configures the PCIE bus on the PCIE master device to match the PCIE board type. The port, which does not require an additional GPIO indicator signal line, reduces the overhead of identifying the PCIE board type compared to the prior art.
图 2为本发明一实施例提供的 PCIE端口配置设备的结构示意图。如图 2 所示, 本实施例的 PCIE端口配置设备包括: 读取单元 21和配置单元 22。  FIG. 2 is a schematic structural diagram of a PCIE port configuration device according to an embodiment of the present invention. As shown in FIG. 2, the PCIE port configuration device of this embodiment includes: a reading unit 21 and a configuration unit 22.
其中,读取单元 21 , 用于读取 PCIE主设备上的 PCIE辅助信号线的上拉 和 /或下拉电平值, 根据读取的上拉和 /或下拉电平值识别 PCIE板卡的类型, 其中,上述 PCIE板卡与上述 PCIE辅助信号线连接, 并通过上拉和 /或下拉器 件对上述 PCIE辅助信号线做上拉和 /或下拉处理。  The reading unit 21 is configured to read the pull-up and/or pull-down level values of the PCIE auxiliary signal line on the PCIE master device, and identify the type of the PCIE board according to the read pull-up and/or pull-down level values. The PCIE board is connected to the PCIE auxiliary signal line, and the PCIE auxiliary signal line is pulled up and/or pulled down by a pull-up and/or pull-down device.
配置单元 22, 与读取单元 21连接, 用于将 PCIE主设备上的 PCIE总线 配置为与读取单元 21识别出的 PCIE板卡的类型相匹配的 PCIE端口。  The configuration unit 22 is connected to the reading unit 21 for configuring the PCIE bus on the PCIE host device to be a PCIE port matching the type of the PCIE board identified by the reading unit 21.
在一可选实施方式中, 读取单元 21具体用于在 PCIE主设备启动或复位 时, 设置上述 PCIE辅助信号线为输入状态, 读取上述 PCIE辅助信号线的上 拉和 /或下拉电平值, 查询预设的电平值与类型映射关系, 确定与读取的上拉 和 /或下拉电平值对应的类型为上述 PCIE板卡的类型。  In an optional implementation, the reading unit 21 is specifically configured to set the PCIE auxiliary signal line to an input state when the PCIE master device is started or reset, and read the pull-up and/or pull-down levels of the PCIE auxiliary signal line. The value is used to query the preset level value and the type mapping relationship, and determine the type corresponding to the read pull-up and/or pull-down level value as the type of the PCIE board.
基于上述实施方式, 可选的, 本实施例的配置单元 22还用于在将 PCIE 主设备上的 PCIE总线配置为与上述 PCIE板卡的类型相匹配的 PCIE端口之 后, 设置上述 PCIE辅助信号线为实现原始功能的状态。  Based on the foregoing embodiment, optionally, the configuration unit 22 of the embodiment is further configured to: after configuring the PCIE bus on the PCIE host device to be a PCIE port matching the type of the PCIE board, setting the PCIE auxiliary signal line. To achieve the state of the original function.
在一可选实施方式中, 上述 PCIE辅助信号线为一根 PCIE复位信号线; 基于此, 读取单元 21具体用于读取上述 PCIE复位信号线的上拉或下拉电平 值, 根据读取的 PCIE复位信号线的上拉或下拉电平值识别上述 PCIE板卡的 类型。  In an optional implementation manner, the PCIE auxiliary signal line is a PCIE reset signal line. Based on the reading unit 21, the reading unit 21 is configured to read the pull-up or pull-down level of the PCIE reset signal line, according to the reading. The pull-up or pull-down level value of the PCIE reset signal line identifies the type of PCIE board described above.
在一可选实施方式中, 上述 PCIE辅助信号线为两根或两根以上的 PCIE 复位信号线; 基于此, 读取单元 21具体用于读取每根 PCIE复位信号线的上 拉或下拉电平值,根据读取的 PCIE复位信号线的上拉或下拉电平值识别上述 PCIE板卡的类型。 In an optional implementation manner, the PCIE auxiliary signal line is two or more PCIEs. Resetting the signal line; based on this, the reading unit 21 is specifically configured to read the pull-up or pull-down level value of each PCIE reset signal line, and identify the PCIE according to the pull-up or pull-down level value of the read PCIE reset signal line. The type of board.
在一可选实施方式中, 上述 PCIE辅助信号线还可以是 PCIE复用预留信 号线和 /或 PCIE唤醒信号线。  In an optional implementation, the PCIE auxiliary signal line may also be a PCIE multiplexed reserved signal line and/or a PCIE wake-up signal line.
在一可选实施方式中,上述 PCIE辅助信号线可以为一个或多个。所述多 个 PCIE辅助信号线可以是同一类型的多根 PCIE辅助信号线, 也可以是不同 类型的多跟 PCIE辅助信号线。  In an optional implementation, the PCIE auxiliary signal lines may be one or more. The plurality of PCIE auxiliary signal lines may be multiple PCIE auxiliary signal lines of the same type, or may be different types of multiple-to-PCIE auxiliary signal lines.
本实施例的提供的 PCIE端口配置设备在实现上可以是处理器系统中的 CPU, 但不限于此。 其中, 本实施例的 PCIE端口配置设备与 PCIE主设备、 PCIE板卡一起可以构成一处理器系统。  The PCIE port configuration device provided in this embodiment may be a CPU in the processor system, but is not limited thereto. The PCIE port configuration device of this embodiment, together with the PCIE master device and the PCIE card, can constitute a processor system.
本实施例提供的 PCIE端口配置设备的各功能单元可用于执行上述 PCIE 端口配置方法实施例中的相应流程, 其具体工作原理可参见上述方法实施例 的描述, 在此不再赘述。  The functional units of the PCIE port configuration device provided in this embodiment may be used to perform the corresponding process in the foregoing embodiment of the method for configuring the PCIE port. For the specific working principle, refer to the description of the foregoing method embodiment, and details are not described herein.
本实施例提供的 PCIE端口配置设备, 通过复用 PCIE主设备已经存在的 辅助信号线对 PCIE板卡进行类型识别, 进而将 PCIE主设备上的 PCIE总线 配置成与 PCIE板卡类型相匹配的端口, 不需要额外的 GPIO指示信号线, 与 现有技术相比降低了识别 PCIE板卡类型的开销。  The PCIE port configuration device provided in this embodiment performs type identification on the PCIE board by multiplexing the auxiliary signal lines already existing in the PCIE master device, and then configures the PCIE bus on the PCIE master device to match the PCIE board type. No additional GPIO indicator signal lines are required, which reduces the overhead of identifying PCIE board types compared to the prior art.
本发明一实施例提供一种 PCIE板卡, 该 PCIE板卡与 PCIE主设备上的 PCIE辅助信号线连接, 并通过上拉和 /或下拉器件对所述 PCIE辅助信号线做 上拉和 /或下拉处理。  An embodiment of the present invention provides a PCIE board, which is connected to a PCIE auxiliary signal line on a PCIE host device, and pulls up and/or pulls the PCIE auxiliary signal line through a pull-up and/or pull-down device. Pull down processing.
可选的, 本实施例的 PCIE板卡可以通过扣板连接器或背板连接器等与 PCIE主设备上的 PCIE辅助信号线连接。 本实施例的 PCIE板卡可以包括一 个或多个 PCIE从设备。 基于上述, 本实施例 PCIE板卡与 PCIE主设备的连 接关系如图 3所示, 如图 3所示, PCIE主设备还与 PCIE端口配置设备连接。 其中, PCIE端口配置设备可以是一 CPU, 则图 3所示可以是由 CPU、 PCIE 主设备和 PCIE板卡构成的处理器系统。  Optionally, the PCIE board of this embodiment may be connected to a PCIE auxiliary signal line on the PCIE host device through a gusset connector or a backplane connector. The PCIE board of this embodiment may include one or more PCIE slaves. Based on the above, the connection relationship between the PCIE board and the PCIE master device in this embodiment is shown in Figure 3. As shown in Figure 3, the PCIE master device is also connected to the PCIE port configuration device. The PCIE port configuration device can be a CPU, and the processor system formed by the CPU, the PCIE host device, and the PCIE board can be shown in FIG.
可选的, 上述上拉器件可以为上拉电阻, 上述下拉器件可以为下拉电阻, 但不限于此。  Optionally, the pull-up device may be a pull-up resistor, and the pull-down device may be a pull-down resistor, but is not limited thereto.
本实施例提供的 PCIE板卡与 PCIE主设备以及上述实施例提供的 PCIE 端口配置设备相配合 , 使得 PCIE端口配置设备可以通过复用 PCIE主设备已 经存在的辅助信号线对 PCIE板卡进行类型识别, 进而将 PCIE主设备上的 PCIE总线配置成与 PCIE板卡类型相匹配的端口, 不需要额外的 GPIO指示 信号线, 为降低识别 PCIE板卡类型的开销提供了条件。 The PCIE board and the PCIE main device provided by this embodiment and the PCIE provided by the foregoing embodiment The port configuration device cooperates with the PCIE port configuration device to identify the type of the PCIE card by multiplexing the existing auxiliary signal lines of the PCIE master device, and then configuring the PCIE bus on the PCIE master device to match the PCIE card type. The port does not require an additional GPIO indicator signal line, which provides a condition for reducing the overhead of identifying PCIE board types.
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步骤 可以通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机可读 取存储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述 的存储介质包括: ROM, RAM, 磁碟或者光盘等各种可以存储程序代码的介 质。  A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The method includes the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
最后应说明的是: 以上各实施例仅用以说明本发明的技术方案, 而非对 其限制; 尽管参照前述各实施例对本发明进行了详细的说明, 本领域的普通 技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分或者全部技术特征进行等同替换; 而这些修改或者替换, 并 不使相应技术方案的本质脱离本发明各实施例技术方案的范围。  Finally, it should be noted that the above embodiments are only for explaining the technical solutions of the present invention, and are not intended to be limiting thereof; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.

Claims

权 利 要求 书 claims
1、 一种高速外围器件互连总线 PCIE端口配置方法, 其特征在于, 包括: 读取 PCIE主设备上的 PCIE辅助信号线的上拉和 /或下拉电平值,根据读 取的上拉和 /或下拉电平值识别 PCIE板卡的类型, 其中, 所述 PCIE板卡与所 述 PCIE辅助信号线连接,并通过上拉和 /或下拉器件对所述 PCIE辅助信号线 #支上拉和 /或下拉处理; 1. A high-speed peripheral device interconnect bus PCIE port configuration method, characterized by: reading the pull-up and/or pull-down level values of the PCIE auxiliary signal line on the PCIE master device, and based on the read pull-up and /or the pull-down level value identifies the type of the PCIE board, wherein the PCIE board is connected to the PCIE auxiliary signal line, and pulls up and down the PCIE auxiliary signal line # through a pull-up and/or pull-down device /or pull-down processing;
将所述 PCIE主设备上的 PCIE总线配置为与所述 PCIE板卡的类型相匹 配的 PCIE端口。 The PCIE bus on the PCIE master device is configured as a PCIE port that matches the type of the PCIE board card.
2、 根据权利要求 1所述的 PCIE端口配置方法, 其特征在于, 所述读取 PCIE主设备上的 PCIE辅助信号线的上拉和 /或下拉电平值, 根据读取的上拉 和 /或下拉电平值识别 PCIE板卡的类型包括: 2. The PCIE port configuration method according to claim 1, wherein the reading of the pull-up and/or pull-down level values of the PCIE auxiliary signal line on the PCIE master device is based on the read pull-up and/or pull-down level values. Or the pull-down level value identifies the type of PCIE board including:
在所述 PCIE主设备启动或复位时, 设置所述 PCIE辅助信号线为输入状 态, 并读取所述 PCIE辅助信号线的上拉和 /或下拉电平值; When the PCIE master device is started or reset, the PCIE auxiliary signal line is set to the input state, and the pull-up and/or pull-down level values of the PCIE auxiliary signal line are read;
查询预设的电平值与类型映射关系, 确定与读取的上拉和 /或下拉电平值 对应的类型为所述 PCIE板卡的类型。 Query the preset mapping relationship between level values and types, and determine that the type corresponding to the read pull-up and/or pull-down level values is the type of the PCIE board card.
3、 根据权利要求 2所述的 PCIE端口配置方法, 其特征在于, 所述将所 述 PCIE主设备上的 PCIE总线配置为与所述 PCIE板卡的类型相匹配的 PCIE 端口之后包括: 3. The PCIE port configuration method according to claim 2, wherein configuring the PCIE bus on the PCIE master device as a PCIE port matching the type of the PCIE board card includes:
设置所述 PCIE辅助信号线为实现原始功能的状态。 Set the PCIE auxiliary signal line to the state of realizing the original function.
4、 根据权利要求 1-3任一项所述的 PCIE端口配置方法, 其特征在于, 所述 PCIE辅助信号线为一根 PCIE复位信号线; 4. The PCIE port configuration method according to any one of claims 1 to 3, characterized in that the PCIE auxiliary signal line is a PCIE reset signal line;
所述读取 PCIE主设备上的 PCIE辅助信号线的上拉和 /或下拉电平值,根 据读取的上拉和 /或下拉电平值识别 PCIE板卡的类型包括: Reading the pull-up and/or pull-down level values of the PCIE auxiliary signal line on the PCIE master device, and identifying the type of PCIE board card based on the read pull-up and/or pull-down level values include:
读取所述 PCIE复位信号线的上拉或下拉电平值, 根据读取的 PCIE复位 信号线的上拉或下拉电平值识别所述 PCIE板卡的类型。 Read the pull-up or pull-down level value of the PCIE reset signal line, and identify the type of the PCIE board card according to the read pull-up or pull-down level value of the PCIE reset signal line.
5、 根据权利要求 1-3任一项所述的 PCIE端口配置方法, 其特征在于, 所述 PCIE辅助信号线为两根或两根以上的 PCIE复位信号线; 5. The PCIE port configuration method according to any one of claims 1-3, characterized in that the PCIE auxiliary signal lines are two or more PCIE reset signal lines;
读取 PCIE主设备上的 PCIE辅助信号线的上拉和 /或下拉电平值,根据读 取的上拉和 /或下拉电平值识别 PCIE板卡的类型包括: Read the pull-up and/or pull-down level values of the PCIE auxiliary signal line on the PCIE master device, and identify the type of PCIE board card based on the read pull-up and/or pull-down level values, including:
读取每根 PCIE复位信号线的上拉或下拉电平值, 根据读取的 PCIE复位 信号线的上拉或下拉电平值识别所述 PCIE板卡的类型。 Read the pull-up or pull-down level value of each PCIE reset signal line, based on the read PCIE reset The pull-up or pull-down level value of the signal line identifies the type of the PCIE board.
6、根据权利要求 1-3任一项所述的 PCIE端口配置方法,所述 PCIE辅助 信号线为 PCIE复用预留信号线和 /或 PCIE唤醒信号线。 6. The PCIE port configuration method according to any one of claims 1-3, wherein the PCIE auxiliary signal line is a PCIE multiplexing reserved signal line and/or a PCIE wake-up signal line.
7、 根据权利要求 1、 2、 3或 6所述的 PCIE端口配置方法, 其特征在于, 所述 PCIE辅助信号线为一个或多个。 7. The PCIE port configuration method according to claim 1, 2, 3 or 6, characterized in that there are one or more PCIE auxiliary signal lines.
8、 根据权利要求 1-7任一项所述的 PCIE端口配置方法, 其特征在于, 所述上拉器件为上拉电阻, 所述下拉器件为下拉电阻。 8. The PCIE port configuration method according to any one of claims 1 to 7, characterized in that the pull-up device is a pull-up resistor, and the pull-down device is a pull-down resistor.
9、 一种高速外围器件互连总线 PCIE端口配置设备, 其特征在于, 包括: 读取单元,用于读取 PCIE主设备上的 PCIE辅助信号线的上拉和 /或下拉 电平值, 根据读取的上拉和 /或下拉电平值识别 PCIE板卡的类型, 其中, 所 述 PCIE板卡与所述 PCIE辅助信号线连接,并通过上拉和 /或下拉器件对所述 PCIE辅助信号线做上拉和 /或下拉处理; 9. A high-speed peripheral device interconnection bus PCIE port configuration device, characterized by including: a reading unit for reading the pull-up and/or pull-down level values of the PCIE auxiliary signal line on the PCIE master device, according to The read pull-up and/or pull-down level values identify the type of PCIE board card, wherein the PCIE board card is connected to the PCIE auxiliary signal line, and the PCIE auxiliary signal is controlled by a pull-up and/or pull-down device. The line is pulled up and/or pulled down;
配置单元, 用于将所述 PCIE主设备上的 PCIE总线配置为与所述 PCIE 板卡的类型相匹配的 PCIE端口。 A configuration unit configured to configure the PCIE bus on the PCIE master device as a PCIE port that matches the type of the PCIE board card.
10、根据权利要求 9所述的 PCIE端口配置设备, 其特征在于, 所述读取 单元具体用于在所述 PCIE主设备启动或复位时, 设置所述 PCIE辅助信号线 为输入状态, 读取所述 PCIE辅助信号线的上拉和 /或下拉电平值, 查询预设 的电平值与类型映射关系, 确定与读取的上拉和 /或下拉电平值对应的类型为 所述 PCIE板卡的类型。 10. The PCIE port configuration device according to claim 9, wherein the reading unit is specifically configured to set the PCIE auxiliary signal line to an input state when the PCIE main device is started or reset, and read For the pull-up and/or pull-down level values of the PCIE auxiliary signal line, query the preset level value and type mapping relationship, and determine that the type corresponding to the read pull-up and/or pull-down level value is the PCIE The type of board.
11、 根据权利要求 10所述的 PCIE端口配置设备, 其特征在于, 所述配 置单元还用于在将所述 PCIE主设备上的 PCIE总线配置为与所述 PCIE板卡 的类型相匹配的 PCIE端口之后, 设置所述 PCIE辅助信号线为实现原始功能 的状态。 11. The PCIE port configuration device according to claim 10, wherein the configuration unit is further configured to configure the PCIE bus on the PCIE master device as a PCIE bus that matches the type of the PCIE board card. After the port, set the PCIE auxiliary signal line to a state to realize the original function.
12、根据权利要求 9-11任一项所述的 PCIE端口配置设备, 其特征在于, 所述 PCIE辅助信号线为一根 PCIE复位信号线; 12. The PCIE port configuration device according to any one of claims 9-11, characterized in that the PCIE auxiliary signal line is a PCIE reset signal line;
所述读取单元具体用于读取所述 PCIE复位信号线的上拉或下拉电平值, 根据读取的 PCIE复位信号线的上拉或下拉电平值识别所述 PCIE板卡的类 型。 The reading unit is specifically configured to read the pull-up or pull-down level value of the PCIE reset signal line, and identify the type of the PCIE board card according to the read pull-up or pull-down level value of the PCIE reset signal line.
13、根据权利要求 9-11任一项所述的 PCIE端口配置设备, 其特征在于, 所述 PCIE辅助信号线为两根或两根以上的 PCIE复位信号线; 所述读取单元具体用于读取每根 PCIE复位信号线的上拉或下拉电平值, 根据读取的 PCIE复位信号线的上拉或下拉电平值识别所述 PCIE板卡的类 型。 13. The PCIE port configuration device according to any one of claims 9 to 11, characterized in that the PCIE auxiliary signal lines are two or more PCIE reset signal lines; The reading unit is specifically used to read the pull-up or pull-down level value of each PCIE reset signal line, and identify the type of the PCIE board card according to the read pull-up or pull-down level value of the PCIE reset signal line.
14、根据权利要求 9-11任一项所述的 PCIE端口配置设备, 其特征在于, 所述 PCIE辅助信号线为 PCIE复用预留信号线和 /或 PCIE唤醒信号线。 14. The PCIE port configuration device according to any one of claims 9 to 11, characterized in that the PCIE auxiliary signal line is a PCIE multiplexing reserved signal line and/or a PCIE wake-up signal line.
15、 根据权利要求 9、 10、 11或 14所述的 PCIE端口配置设备, 其特征 在于, 所述 PCIE辅助信号线为一个或多个。 15. The PCIE port configuration device according to claim 9, 10, 11 or 14, characterized in that there are one or more PCIE auxiliary signal lines.
16、 一种高速外围器件互连总线 PCIE板卡, 其特征在于, 所述 PCIE板 卡与 PCIE主设备上的 PCIE辅助信号线连接,并通过上拉和 /或下拉器件对所 述 PCIE辅助信号线做上拉和 /或下拉处理。 16. A high-speed peripheral device interconnection bus PCIE board, characterized in that the PCIE board is connected to the PCIE auxiliary signal line on the PCIE main device, and the PCIE auxiliary signal is connected to the PCIE auxiliary signal through a pull-up and/or pull-down device. The line is pulled up and/or pulled down.
17、 根据权利要求 16所述的 PCIE板卡, 其特征在于, 所述上拉器件为 上拉电阻, 所述下拉器件为下拉电阻。 17. The PCIE board card according to claim 16, wherein the pull-up device is a pull-up resistor, and the pull-down device is a pull-down resistor.
PCT/CN2012/083072 2012-10-17 2012-10-17 Port configuration method and device for high-speed peripheral component interconnect express WO2014059617A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201280001734.0A CN103098039B (en) 2012-10-17 2012-10-17 High-speed peripheral device interconnection bus port collocation method and equipment
PCT/CN2012/083072 WO2014059617A1 (en) 2012-10-17 2012-10-17 Port configuration method and device for high-speed peripheral component interconnect express

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/083072 WO2014059617A1 (en) 2012-10-17 2012-10-17 Port configuration method and device for high-speed peripheral component interconnect express

Publications (1)

Publication Number Publication Date
WO2014059617A1 true WO2014059617A1 (en) 2014-04-24

Family

ID=48208633

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/083072 WO2014059617A1 (en) 2012-10-17 2012-10-17 Port configuration method and device for high-speed peripheral component interconnect express

Country Status (2)

Country Link
CN (1) CN103098039B (en)
WO (1) WO2014059617A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109918230A (en) * 2019-02-20 2019-06-21 杭州迪普科技股份有限公司 A kind of business board abnormal restoring method and system

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103616937B (en) * 2013-11-27 2016-09-28 华为技术有限公司 A kind of mainboard, PCIE network interface card and server system
CN107992335B (en) * 2016-10-27 2022-01-28 上海华测导航技术股份有限公司 Method for automatically identifying type of board card of receiver
CN107577627A (en) * 2017-07-31 2018-01-12 郑州云海信息技术有限公司 A kind of PCIE adapters and its detection method
CN110162496A (en) * 2019-04-15 2019-08-23 深圳市同泰怡信息技术有限公司 A method of realizing that the port PCIE automatically configures based on central processing unit
CN110515866A (en) * 2019-08-09 2019-11-29 苏州浪潮智能科技有限公司 Board, mainboard, board identification system and method to be identified
CN111309127B (en) * 2020-02-29 2022-05-31 苏州浪潮智能科技有限公司 PCIE (peripheral component interface express) equipment resetting method and device based on CPLD (Complex programmable logic device) and storage medium
CN113448903B (en) * 2021-05-21 2023-02-28 山东英信计算机技术有限公司 PCIe bandwidth adjustment method, device, equipment and storage medium for NVMe expansion card

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7325167B2 (en) * 2004-09-24 2008-01-29 Silicon Laboratories Inc. System and method for using network interface card reset pin as indication of lock loss of a phase locked loop and brownout condition
CN101609442A (en) * 2009-06-17 2009-12-23 成都市华为赛门铁克科技有限公司 A kind of method of interface adaptive and device thereof, system
CN202267962U (en) * 2011-10-11 2012-06-06 联想(北京)有限公司 Bus interface circuit and electronic device
CN102710424A (en) * 2012-05-30 2012-10-03 曙光信息产业(北京)有限公司 Gigabit/10-gigabit multifunctional network card and implementation method for same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7325167B2 (en) * 2004-09-24 2008-01-29 Silicon Laboratories Inc. System and method for using network interface card reset pin as indication of lock loss of a phase locked loop and brownout condition
CN101609442A (en) * 2009-06-17 2009-12-23 成都市华为赛门铁克科技有限公司 A kind of method of interface adaptive and device thereof, system
CN202267962U (en) * 2011-10-11 2012-06-06 联想(北京)有限公司 Bus interface circuit and electronic device
CN102710424A (en) * 2012-05-30 2012-10-03 曙光信息产业(北京)有限公司 Gigabit/10-gigabit multifunctional network card and implementation method for same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109918230A (en) * 2019-02-20 2019-06-21 杭州迪普科技股份有限公司 A kind of business board abnormal restoring method and system

Also Published As

Publication number Publication date
CN103098039A (en) 2013-05-08
CN103098039B (en) 2016-05-25

Similar Documents

Publication Publication Date Title
WO2014059617A1 (en) Port configuration method and device for high-speed peripheral component interconnect express
CN105718408B (en) Hot-swappable computing system, computer implemented method and system
CN110023920B (en) Host computer detects USB concentrator
US8898358B2 (en) Multi-protocol communication on an I2C bus
US10127170B2 (en) High density serial over LAN management system
TW201710921A (en) Dynamic data-link selection over common physical interface
US20120311211A1 (en) Method and system for controlling inter-integrated circuit (i2c) bus
JP2018533120A (en) Bridging and virtualization of input / output signals in multi-node networks
CN106462526B (en) Method and apparatus for multi-master bus protocol
EP3110077A1 (en) Protocol converter and conversion method of cpci bus and isa bus
KR102420530B1 (en) Alternative protocol selection
WO2012068997A1 (en) Usb device and detection method therefor
CN103092175B (en) Controlling method and device for serial clock line (SCL) between inter-integrated circuit (I2C) master equipment and slave equipment
CN203849731U (en) Data processing equipment implemented based on I2C bus
CN105027104A (en) Methods and apparatus for multi-drop digital bus
US20090271557A1 (en) Non-volatile memory storage device with high transmission rate
CN100480923C (en) Controller soft realizing method from I2C bus
CN104834620A (en) SPI (serial peripheral interface) bus circuit, realization method and electronic equipment
WO2018120498A1 (en) Adaptor, device identifying method and device identifying apparatus
CN110232041A (en) A kind of implementation method of the domestic server master board based on Shen prestige chip
CN102253910A (en) Inter-integrated circuit (I2C) transmission method and device
TWI528161B (en) Data transmitting system and data transmitting method
CN202798752U (en) Gigabit/10-gigabit Ethernet composite card
CN103577368B (en) A kind of IIC communication extension method and device based on SPI protocol
CN104899164B (en) Address addressing method for integrated circuit bus, integrated circuit bus device and system

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201280001734.0

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12886898

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12886898

Country of ref document: EP

Kind code of ref document: A1