[go: up one dir, main page]

TWI767392B - SYSTEM AND METHOD FOR AUTOMATIC ALLOCATING PCIe BANDWIDTH - Google Patents

SYSTEM AND METHOD FOR AUTOMATIC ALLOCATING PCIe BANDWIDTH Download PDF

Info

Publication number
TWI767392B
TWI767392B TW109138351A TW109138351A TWI767392B TW I767392 B TWI767392 B TW I767392B TW 109138351 A TW109138351 A TW 109138351A TW 109138351 A TW109138351 A TW 109138351A TW I767392 B TWI767392 B TW I767392B
Authority
TW
Taiwan
Prior art keywords
pcie
bandwidth
identification code
riser card
controller
Prior art date
Application number
TW109138351A
Other languages
Chinese (zh)
Other versions
TW202219759A (en
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 TW109138351A priority Critical patent/TWI767392B/en
Publication of TW202219759A publication Critical patent/TW202219759A/en
Application granted granted Critical
Publication of TWI767392B publication Critical patent/TWI767392B/en

Links

Images

Landscapes

  • Time-Division Multiplex Systems (AREA)
  • Information Transfer Systems (AREA)

Abstract

A system and a method for automatic allocating PCIe bandwidth, the system includes a PCIe riser card, an Intelligent Platform Management Interface, a BIOS, and a CPU. The PCIe riser card is used to connect a PCIe device and generating an identification code accordingly. The intelligent platform management interface is electrically connected to the PCIe riser card and has a baseboard management controller. The BIOS is used to send an identification code query command to the baseboard management controller to obtain the identification code, and determine a bandwidth corresponding to the identification code with an identification code bandwidth comparison table. The CPU is electrically connected to the basic input/output system and the PCIe riser card, and is used to set a port branch according to the bandwidth, and initialize a plurality of root ports of the CPU so that the root ports correspond to the bandwidth of the PCIe device.

Description

PCIe頻寬自動調配系統及方法PCIe bandwidth automatic allocation system and method

本發明係關於一種頻寬自動調配系統及方法,尤其是指一種PCIe頻寬自動調配系統及方法。The present invention relates to an automatic bandwidth allocation system and method, in particular to a PCIe bandwidth automatic allocation system and method.

一般來說,一個伺服器的機型往往會有相當多不同的配置,對於CPU的IIO root port連接出來的PCIe裝置通常是透過Riser Card(轉接卡)來進行組裝並分配相應的頻寬。其中,由於不同的PCIe裝置對頻寬的要求不盡相同,因此BIOS在進行頻寬分配時需要考慮到所有的情況是非常困難的。Generally speaking, a server model often has quite a few different configurations. The PCIe device connected to the IIO root port of the CPU is usually assembled and allocated the corresponding bandwidth through a riser card. Among them, since different PCIe devices have different bandwidth requirements, it is very difficult for the BIOS to take into account all situations when performing bandwidth allocation.

在現有的技術中,為了解決PCIe裝置的頻寬分配問題,主要有三種方式:首先,第一種是透過固定機型的配置,使IIO root port分配固定的頻寬給相對應的PCIe裝置;再來,第二種是透過燒錄在FRU(Field Replace Unit)中的機型資訊來確定PCIe裝置所需的頻寬,進而分配相對應的頻寬給PCIe裝置;最後,第三種是透過預留的GPIO(General-purpose input/output)來區分各種機型配置。In the prior art, in order to solve the problem of bandwidth allocation of PCIe devices, there are mainly three ways: First, the first one is through the configuration of fixed models, so that the IIO root port allocates a fixed bandwidth to the corresponding PCIe devices; Then, the second is to determine the bandwidth required by the PCIe device through the model information burned in the FRU (Field Replace Unit), and then allocate the corresponding bandwidth to the PCIe device; finally, the third is to pass The reserved GPIO (General-purpose input/output) is used to distinguish various model configurations.

承上所述,現有的PCIe裝置之頻寬分配改善方式中,第一種與第三種的方式往往存在有不夠靈活的缺點。例如,在第一種方式中,由於固定的機型配置只能適用於一種頻寬,因此會限制了伺服器所能安裝的PCIe裝置的頻寬種類;而第三種方式則需要在硬體設計時預留足夠多的GPIO pin腳,但實際上GPIO的數量有限,且大部分GPIO還都是具有其專門的用途。As mentioned above, in the existing bandwidth allocation improvement methods for PCIe devices, the first and third methods often have the disadvantage of being inflexible. For example, in the first method, since the fixed model configuration can only be applied to one bandwidth, it will limit the bandwidth types of PCIe devices that can be installed in the server; while the third method requires hardware There are enough GPIO pins reserved in the design, but in fact, the number of GPIOs is limited, and most of the GPIOs have their own special purposes.

然而,雖然第二種方式在使用上較為靈活,但由於第二種方式過度依賴FRU中的資訊正確性,因此當FRU的機型資訊燒錄錯誤時,PCIe頻寬的分配也會發生錯誤,導致PCIe裝置無法正常使用;此外,若採用第二種方式,BIOS還需要預先存有所有機型配置和PCIe頻寬分配的資訊,才能有效的依據各種機型配置去調配PCIe裝置的頻寬分配。However, although the second method is more flexible in use, because the second method relies too much on the correctness of the information in the FRU, when the model information of the FRU is programmed incorrectly, the allocation of PCIe bandwidth will also be wrong. As a result, the PCIe device cannot be used normally; in addition, if the second method is adopted, the BIOS also needs to store all model configurations and PCIe bandwidth allocation information in advance, so as to effectively allocate the bandwidth allocation of PCIe devices according to various model configurations. .

有鑒於在先前技術中,PCIe裝置之頻寬分配的解決辦法中,由於透過固定機型來配置相對應之頻寬的方式,以及透過GPIO來區分頻寬的方式,都存在有不夠靈活的問題,而利用FRU之燒錄資訊來分配頻寬的方式則存在可能會引發人為錯誤的風險,且還需要另外在BIOS內預先儲存各種機型配置與PCIe裝置之頻寬分配的資訊,因此現有的解決方式都非常不便利;緣此,本發明的主要目的在於提供一種PCIe頻寬自動調配系統,可以有效的自動判斷出PCIe裝置所需之頻寬,進而控制CPU進行相對應的設定。In view of the fact that in the prior art solutions for bandwidth allocation of PCIe devices, there are inflexible problems due to the method of configuring the corresponding bandwidth through a fixed model and the method of distinguishing the bandwidth through GPIO , and the use of FRU programming information to allocate bandwidth may lead to the risk of human error, and it is also necessary to pre-store various model configurations and bandwidth allocation information of PCIe devices in the BIOS. Therefore, the existing The solutions are very inconvenient; therefore, the main purpose of the present invention is to provide a PCIe bandwidth automatic allocation system, which can effectively and automatically determine the bandwidth required by the PCIe device, and then control the CPU to perform corresponding settings.

本發明為解決先前技術之問題,所採用的必要技術手段是提供一種PCIe頻寬自動調配系統,包含一PCIe轉接卡、一智慧型平台管理介面(Intelligent Platform Management Interface, IPMI)以及一基本輸入輸出系統(BIOS)。In order to solve the problems of the prior art, the necessary technical means adopted by the present invention is to provide a PCIe bandwidth automatic allocation system, which includes a PCIe riser card, an intelligent platform management interface (IPMI) and a basic input output system (BIOS).

PCIe轉接卡係用以供一PCIe裝置插設,且該PCIe轉接卡係依據所插設之該PCIe裝置產生一識別碼。The PCIe riser card is used for inserting a PCIe device, and the PCIe riser card generates an identification code according to the inserted PCIe device.

智慧型平台管理介面係電性連結於該PCIe轉接卡,並且具有一基板管理控制器(Baseboard Management Controller, BMC),該基板管理控制器係在接收到一識別碼詢問指令時讀取該PCIe轉接卡之該識別碼。The intelligent platform management interface is electrically connected to the PCIe riser card, and has a baseboard management controller (BMC), and the baseboard management controller reads the PCIe when receiving an identification code query command The identification code of the riser card.

基本輸入輸出系統係電性連結於該基板管理控制器,用以發送該識別碼詢問指令至該基板管理控制器而獲取該識別碼,並依據一識別碼頻寬對照表判斷該識別碼所對應之一頻寬。The basic input output system is electrically connected to the baseboard management controller, and is used to send the identification code query command to the baseboard management controller to obtain the identification code, and determine the corresponding identification code according to an identification code bandwidth comparison table one bandwidth.

CPU係電性連結於該基本輸入輸出系統與該PCIe轉接卡,用以依據該頻寬進行一連接埠分支(bifurcation)設定,並初始化該CPU之複數個根埠,使該些根埠對應於該PCIe裝置之頻寬。The CPU is electrically connected to the basic input output system and the PCIe riser card, and is used to perform a bifurcation setting according to the bandwidth, and to initialize a plurality of root ports of the CPU so that the root ports correspond to The bandwidth of the PCIe device.

在上述必要技術手段所衍生之一附屬技術手段中,該智慧型平台管理介面更包含一積體電路間控制器,該積體電路間控制器係設置於該PCIe轉接卡與該基板管理控制器之間,用以電性連結於該PCIe轉接卡與該基板管理控制器。In an auxiliary technical means derived from the above-mentioned necessary technical means, the intelligent platform management interface further includes an integrated circuit controller, and the integrated circuit controller is disposed between the PCIe riser card and the baseboard management control between the devices for electrically connecting to the PCIe riser card and the baseboard management controller.

較佳者,該智慧型平台管理介面更包含一輸入輸出擴充器,該輸入輸出擴充器係設置於該積體電路間控制器與該PCIe轉接卡之間,用以電性連結該積體電路間控制器與該PCIe轉接卡。此外,該輸入輸出擴充器為基於I2C介面的I/O擴充器(I2C IO Expander),且該輸入輸出擴充器係以I2C介面連接於該PCIe轉接卡與該積體電路間控制器。Preferably, the intelligent platform management interface further includes an I/O expander, and the I/O expander is disposed between the IC controller and the PCIe riser card for electrically connecting the IC The inter-circuit controller and the PCIe riser card. In addition, the I/O expander is an I/O expander (I2C IO Expander) based on an I2C interface, and the I/O expander is connected to the PCIe riser card and the integrated circuit controller through an I2C interface.

本發明為解決先前技術之問題,所採用之另一必要技術手段為提供一種PCIe頻寬自動調配方法,包含以下步驟(A)至步驟(E)。In order to solve the problem of the prior art, another necessary technical means adopted by the present invention is to provide a PCIe bandwidth automatic allocation method, which includes the following steps (A) to (E).

首先,步驟(A)是初始化一智慧型平台管理介面,使一基本輸入輸出系統發送一識別碼詢問指令至一基板管理控制器;然後,步驟(B)是該基板管理控制器依據該識別碼詢問指令自一PCIe轉接卡讀取對應於一PCIe裝置之一識別碼;接著,步驟(C)是依據一識別碼頻寬對照表判斷該識別碼所對應之一頻寬;再來,步驟(D)是依據該頻寬進行一CPU之一連接埠分支設定;最後,步驟(E)是初始化該CPU之複數個根埠,使該些根埠對應於該PCIe裝置之該頻寬。First, step (A) is to initialize an intelligent platform management interface, so that a basic input output system sends an identification code query command to a baseboard management controller; then, step (B) is that the baseboard management controller according to the identification code The query command reads an identification code corresponding to a PCIe device from a PCIe riser card; then, step (C) is to determine a bandwidth corresponding to the identification code according to an identification code bandwidth comparison table; and then, step (D) is to perform branch setting of a connection port of a CPU according to the bandwidth; finally, step (E) is to initialize a plurality of root ports of the CPU so that the root ports correspond to the bandwidth of the PCIe device.

在上述必要技術手段所衍生之一附屬技術手段中,步驟(A)之前更包含一步驟(A0),步驟(A0)係將該PCIe裝置插設於該PCIe轉接卡。In an auxiliary technical means derived from the above-mentioned necessary technical means, a step (A0) is further included before the step (A), and the step (A0) is to insert the PCIe device into the PCIe riser card.

如上所述,本發明是利用基本輸入輸出系統驅使基板管理控制器自PCIe轉接卡上讀取到PCIe裝置之識別碼,然後再利用識別碼頻寬對照表比對識別碼,即可獲知對應於PCIe裝置之頻寬,藉此去控制CPU的連接埠分支設定,可以有效的初始化根埠對應地連通PCIe裝置,有效的讓PCIe轉接卡可以供各種頻寬的PCIe裝置進行插接,還能有效的避免人為操作上的錯誤,非常便利。As described above, the present invention uses the basic input output system to drive the baseboard management controller to read the identification code of the PCIe device from the PCIe adapter card, and then uses the identification code bandwidth comparison table to compare the identification code, and then the corresponding identification code can be obtained. Based on the bandwidth of the PCIe device, to control the port branch settings of the CPU, it can effectively initialize the root port to connect to the PCIe device correspondingly, and effectively allow the PCIe riser card to be plugged into PCIe devices of various bandwidths. It can effectively avoid human error in operation, which is very convenient.

本發明所採用的具體實施例,將藉由以下之實施例及圖式作進一步之說明。The specific embodiments adopted by the present invention will be further described by the following embodiments and drawings.

請參閱第一圖,第一圖係顯示本發明較佳實施例所提供之PCIe頻寬自動調配系統之系統示意圖。如圖所示,一種PCIe(Peripheral Component Interconnect Express)頻寬自動調配系統100包含一PCIe轉接卡1、一智慧型平台管理介面(Intelligent Platform Management Interface, IPMI)2、一基本輸入輸出系統(Basic Input/Output System, BIOS)3、一平台路徑控制器4以及一CPU(Central Processing Unit, 中央處理器)5。Please refer to the first figure, which is a system schematic diagram of the PCIe bandwidth automatic allocation system provided by the preferred embodiment of the present invention. As shown in the figure, a PCIe (Peripheral Component Interconnect Express) bandwidth automatic allocation system 100 includes a PCIe riser card 1, an intelligent platform management interface (Intelligent Platform Management Interface, IPMI) 2, and a basic input output system (Basic Input/Output System, BIOS) 3, a platform path controller 4 and a CPU (Central Processing Unit, central processing unit) 5.

PCIe轉接卡1係用以供一PCIe裝置200插設,且PCIe轉接卡1係依據所插設之PCIe裝置200產生一識別碼。在本實施例中,PCIe轉接卡1是基於I 2C(Inter-Integrated Circuit)介面,並具有PCIe插槽之轉接卡(Riser Card)。 The PCIe riser card 1 is used for inserting a PCIe device 200 , and the PCIe riser card 1 generates an identification code according to the inserted PCIe device 200 . In this embodiment, the PCIe riser card 1 is based on an I 2 C (Inter-Integrated Circuit) interface and has a riser card (Riser Card) of a PCIe slot.

智慧型平台管理介面2包含一輸入輸出擴充器21、一積體電路間控制器22以及一基板管理控制器(Baseboard Management Controller, BMC)23。The intelligent platform management interface 2 includes an input/output expander 21 , an IC controller 22 and a baseboard management controller (BMC) 23 .

輸入輸出擴充器21係電性連結於PCIe轉接卡1,積體電路間控制器22係電性連結於輸入輸出擴充器21,而基板管理控制器23係電性連結於在接收到一識別碼詢問指令時讀取PCIe轉接卡1之識別碼。在本實施例中,輸入輸出擴充器21為基於I 2C介面的I/O擴充器(I 2C IO Expander),而積體電路間控制器22即為I 2C控制器,且輸入輸出擴充器21是以I 2C介面連接於PCIe轉接卡1與積體電路間控制器22。基板管理控制器(Baseboard Management Controller, BMC)23。 The I/O expander 21 is electrically connected to the PCIe riser card 1, the IC controller 22 is electrically connected to the I/O expander 21, and the baseboard management controller 23 is electrically connected to receiving an identification Read the identification code of PCIe riser card 1 during the code query command. In this embodiment, the I/O expander 21 is an I/O expander (I 2 C IO Expander) based on the I 2 C interface, and the inter-integrated circuit controller 22 is an I 2 C controller, and the input and output The expander 21 is connected to the PCIe riser card 1 and the IC controller 22 through an I 2 C interface. Baseboard Management Controller (BMC) 23.

基本輸入輸出系統3係電性連結於基板管理控制器23,並內建有一識別碼頻寬對照表31,且基本輸入輸出系統3是用以發送識別碼詢問指令至基板管理控制器23而獲取對應於PCIe裝置200之識別碼,藉以依據識別碼頻寬對照表31判斷識別碼所對應之一頻寬。The basic input output system 3 is electrically connected to the baseboard management controller 23, and has a built-in identification code bandwidth comparison table 31, and the basic input output system 3 is used to send the identification code query command to the baseboard management controller 23 to obtain Corresponding to the identification code of the PCIe device 200 , a bandwidth corresponding to the identification code is determined according to the identification code bandwidth comparison table 31 .

承上所述,在本實施例中,識別碼頻寬對照表31如下表一所示。Based on the above, in this embodiment, the identification code bandwidth comparison table 31 is shown in Table 1 below.

表一: 插槽位置 PCIe[0:7] PCIe[8:15] 針腳與識別碼順序 A8 A30 A29 B12 A8 A30 A29 B12 bit0 bit1 bit2 bit3 bit4 bit5 bit6 bit7 頻寬 識別碼 X16 0 1 1 1 0 0 1 0 X8X8 0 1 1 0 0 1 1 0 X4X4X8 0 1 0 0 0 1 1 0 X8X4X4 0 1 1 0 0 1 0 0 X4X4X4X4 0 1 0 0 0 1 0 0 Table I: slot location PCIe[0:7] PCIe[8:15] Pin and ID order A8 A30 A29 B12 A8 A30 A29 B12 bit0 bit1 bit2 bit3 bit4 bit5 bit6 bit7 bandwidth Identifier X16 0 1 1 1 0 0 1 0 X8X8 0 1 1 0 0 1 1 0 X4X4X8 0 1 0 0 0 1 1 0 X8X4X4 0 1 1 0 0 1 0 0 X4X4X4X4 0 1 0 0 0 1 0 0

如上表一所示,當識別碼為01110010(從bit0至bit7)時,所對應之頻寬為X16;當識別碼為01100110(從bit0至bit7)時,所對應之頻寬為X8X8;當識別碼為01000110(從bit0至bit7)時,所對應之頻寬為X4X4X8;當識別碼為01100100(從bit0至bit7)時,所對應之頻寬為X8X4X4;當識別碼為01000100(從bit0至bit7)時,所對應之頻寬為X4X4X4X4。其中,本實施例是依據不同頻寬之PCIe介面所對應到的針腳來定義出用來識別頻寬之識別碼,但不以本實施例為限,亦可依據PCIe介面在不同頻寬時的識別碼差異來定義出識別碼頻寬對照表31。As shown in Table 1 above, when the identification code is 01110010 (from bit0 to bit7), the corresponding bandwidth is X16; when the identification code is 01100110 (from bit0 to bit7), the corresponding bandwidth is X8X8; When the code is 01000110 (from bit0 to bit7), the corresponding bandwidth is X4X4X8; when the identification code is 01100100 (from bit0 to bit7), the corresponding bandwidth is X8X4X4; when the identification code is 01000100 (from bit0 to bit7) ), the corresponding bandwidth is X4X4X4X4. Wherein, in this embodiment, the identification code used to identify the bandwidth is defined according to the pins corresponding to PCIe interfaces of different bandwidths, but is not limited to this embodiment, and can also be based on the PCIe interface at different bandwidths. The identification code difference is used to define the identification code bandwidth comparison table 31 .

平台路徑控制器4係電性連結於基本輸入輸出系統3;其中,平台路徑控制器4是以串行外設介面(Serial Peripheral Interface Bus,SPI)電性連結於基本輸入輸出系統3。The platform path controller 4 is electrically connected to the BIOS 3 ; wherein, the platform path controller 4 is electrically connected to the BIOS 3 through a Serial Peripheral Interface Bus (SPI).

CPU5是電性連結於平台路徑控制器4與PCIe轉接卡1,藉以透過平台路徑控制器4電性連接於基本輸入輸出系統3,並在基本輸入輸出系統3辨識出PCIe裝置200之頻寬後,依據頻寬進行一連接埠分支(bifurcation)設定,並初始化複數個根埠(圖未標示),藉以使根埠對應於PCIe裝置200之頻寬。其中,CPU5是透過DMI(Direct Media Interface)介面電性連接於平台路徑控制器4。The CPU 5 is electrically connected to the platform path controller 4 and the PCIe riser card 1 , so as to be electrically connected to the BIOS 3 through the platform path controller 4 and to identify the bandwidth of the PCIe device 200 in the BIOS 3 Afterwards, a bifurcation setting is performed according to the bandwidth, and a plurality of root ports (not shown) are initialized, so that the root ports correspond to the bandwidth of the PCIe device 200 . The CPU 5 is electrically connected to the platform routing controller 4 through a DMI (Direct Media Interface) interface.

請繼續參閱第二圖,第二圖係顯示本發明較佳實施例所提供之PCIe頻寬自動調配方法之步驟流程圖。如第一圖與第二圖所示,本發明之PCIe頻寬自動調配方法包含以下步驟:首先,步驟S101是將PCIe裝置200插設於PCIe轉接卡1;然後,步驟S102是初始化智慧型平台管理介面2,使基本輸入輸出系統3發送識別碼詢問指令至基板管理控制器23;接著,步驟S103是基板管理控制器23依據識別碼詢問指令自PCIe轉接卡1讀取對應於PCIe裝置200之識別碼;之後,步驟S104是依據識別碼頻寬對照表判斷識別碼所對應之頻寬;再來,步驟S105是依據頻寬進行CPU之連接埠分支設定;最後,步驟S106是初始化CPU之複數個根埠,使根埠對應於PCIe裝置之頻寬。Please continue to refer to the second figure, which is a flowchart showing the steps of the PCIe bandwidth automatic allocation method provided by the preferred embodiment of the present invention. As shown in the first and second figures, the PCIe bandwidth automatic allocation method of the present invention includes the following steps: first, step S101 is to insert the PCIe device 200 into the PCIe riser card 1; then, step S102 is to initialize the intelligent The platform management interface 2 enables the basic input output system 3 to send an identification code query command to the baseboard management controller 23; then, in step S103, the baseboard management controller 23 reads the corresponding PCIe device from the PCIe riser card 1 according to the identification code query command 200 identification code; then, step S104 is to judge the bandwidth corresponding to the identification code according to the identification code bandwidth comparison table; then, step S105 is to perform the branch setting of the connection port of the CPU according to the bandwidth; finally, step S106 is to initialize the CPU The multiple root ports make the root ports correspond to the bandwidth of the PCIe device.

由以上敘述可知,由於本發明之PCIe頻寬自動調配系統100與PCIe頻寬自動調配方法可以在PCIe裝置200插設於PCIe轉接卡1時,利用基本輸入輸出系統3發送識別碼詢問指令至基板管理控制器23,以使基板管理控制器23自PCIe轉接卡1讀取到對應於PCIe裝置200之識別碼,而基本輸入輸出系統3再進一步利用識別碼頻寬對照表31比對識別碼而獲知PCIe裝置200之頻寬,進而使CPU可以據以進行連接埠分支設定,藉以初始化相對應的根埠來使CPU5可以適合的頻寬與PCIe裝置200建立雙向傳輸的通道。As can be seen from the above description, since the PCIe bandwidth automatic allocation system 100 and the PCIe bandwidth automatic allocation method of the present invention can use the basic input output system 3 to send an identification code query command to the PCIe riser card 1 when the PCIe device 200 is inserted. The baseboard management controller 23, so that the baseboard management controller 23 reads the identification code corresponding to the PCIe device 200 from the PCIe riser card 1, and the basic input output system 3 further uses the identification code bandwidth comparison table 31 to compare and identify The code is used to know the bandwidth of the PCIe device 200 , so that the CPU can perform port branch settings accordingly, so as to initialize the corresponding root port so that the CPU 5 can establish a bidirectional transmission channel with the PCIe device 200 with a suitable bandwidth.

綜上所述,相較於先前技術為了讓PCIe裝置之頻寬對應到CPU,所採用的三種解決方式都存在有不便利的問題;本發明利用基本輸入輸出系統驅使基板管理控制器自PCIe轉接卡上讀取到PCIe裝置之識別碼,然後再利用識別碼頻寬對照表比對識別碼,即可獲知對應於PCIe裝置之頻寬,藉此去控制CPU的連接埠分支設定,可以有效的初始化根埠對應地連通PCIe裝置,有效的讓PCIe轉接卡可以供各種頻寬的PCIe裝置進行插接,還能有效的避免人為操作上的錯誤,非常便利。To sum up, compared with the prior art, in order to make the bandwidth of the PCIe device correspond to the CPU, the three solutions adopted have inconvenient problems; the present invention uses the basic input output system to drive the baseboard management controller to switch from PCIe The identification code of the PCIe device is read on the interface card, and then the identification code is compared with the identification code bandwidth comparison table, and the bandwidth corresponding to the PCIe device can be obtained. The initialized root port of the device is correspondingly connected to the PCIe device, which effectively allows the PCIe riser card to be plugged into PCIe devices of various bandwidths, and also effectively avoids human operation errors, which is very convenient.

藉由以上較佳具體實施例之詳述,係希望能更加清楚描述本發明之特徵與精神,而並非以上述所揭露的較佳具體實施例來對本發明之範疇加以限制。相反地,其目的是希望能涵蓋各種改變及具相等性的安排於本發明所欲申請之專利範圍的範疇內。Through the detailed description of the preferred embodiments above, it is hoped that the features and spirit of the present invention can be described more clearly, and the scope of the present invention is not limited by the preferred embodiments disclosed above. On the contrary, the intention is to cover various modifications and equivalent arrangements within the scope of the claimed scope of the present invention.

100:PCIe頻寬自動調配系統 1:PCIe轉接卡 2:智慧型平台管理介面 21:輸入輸出擴充器 22:積體電路間控制器 23:基板管理控制器 3:基本輸入輸出系統 31:識別碼頻寬對照表 4:平台路徑控制器 5:CPU 200:PCIe裝置 100:PCIe bandwidth automatic allocation system 1: PCIe riser card 2: Intelligent platform management interface 21: Input and output expander 22: Controller between ICs 23: Baseboard Management Controller 3: Basic Input Output System 31: Identification code bandwidth comparison table 4: Platform Path Controller 5: CPU 200: PCIe device

第一圖係顯示本發明較佳實施例所提供之PCIe頻寬自動調配系統之系統示意圖;以及 第二圖係顯示本發明較佳實施例所提供之PCIe頻寬自動調配方法之步驟流程圖。 The first figure shows a system schematic diagram of the PCIe bandwidth automatic allocation system provided by the preferred embodiment of the present invention; and The second figure is a flowchart showing the steps of the PCIe bandwidth automatic allocation method provided by the preferred embodiment of the present invention.

100:PCIe頻寬自動調配系統 1:PCIe轉接卡 2:智慧型平台管理介面 21:輸入輸出擴充器 22:積體電路間控制器 23:基板管理控制器 3:基本輸入輸出系統 31:識別碼頻寬對照表 4:平台路徑控制器 5:CPU 200:PCIe裝置 100:PCIe bandwidth automatic allocation system 1: PCIe riser card 2: Intelligent platform management interface 21: Input and output expander 22: Controller between ICs 23: Baseboard Management Controller 3: Basic Input Output System 31: Identification code bandwidth comparison table 4: Platform Path Controller 5: CPU 200: PCIe device

Claims (6)

一種PCIe頻寬自動調配系統,包含: 一PCIe轉接卡,係用以供一PCIe裝置插設,且該PCIe轉接卡係依據所插設之該PCIe裝置產生一識別碼; 一智慧型平台管理介面(Intelligent Platform Management Interface, IPMI),係電性連結於該PCIe轉接卡,並且具有一基板管理控制器(Baseboard Management Controller, BMC),該基板管理控制器係在接收到一識別碼詢問指令時讀取該PCIe轉接卡之該識別碼; 一基本輸入輸出系統(BIOS),係電性連結於該基板管理控制器,用以發送該識別碼詢問指令至該基板管理控制器而獲取該識別碼,並依據一識別碼頻寬對照表判斷該識別碼所對應之一頻寬;以及 一CPU,係電性連結於該基本輸入輸出系統與該PCIe轉接卡,用以依據該頻寬進行一連接埠分支(bifurcation)設定,並初始化該CPU之複數個根埠,使該些根埠對應於該PCIe裝置之頻寬。 A PCIe bandwidth automatic allocation system, including: a PCIe riser card for inserting a PCIe device, and the PCIe riser card generates an identification code according to the inserted PCIe device; An Intelligent Platform Management Interface (IPMI) is electrically connected to the PCIe riser card and has a Baseboard Management Controller (BMC) that receives Read the identification code of the PCIe riser card during an identification code query command; A basic input output system (BIOS), which is electrically connected to the baseboard management controller, is used for sending the identification code query command to the baseboard management controller to obtain the identification code, and judges according to an identification code bandwidth comparison table a bandwidth corresponding to the identification code; and a CPU, electrically connected to the basic input output system and the PCIe riser card, for performing a bifurcation setting according to the bandwidth, and initializing a plurality of root ports of the CPU, so that the root ports The port corresponds to the bandwidth of the PCIe device. 如請求項1所述之PCIe頻寬自動調配系統,其中,該智慧型平台管理介面更包含一積體電路間控制器,該積體電路間控制器係設置於該PCIe轉接卡與該基板管理控制器之間,用以電性連結於該PCIe轉接卡與該基板管理控制器。The PCIe bandwidth automatic allocation system as claimed in claim 1, wherein the intelligent platform management interface further comprises an IC controller, and the IC controller is disposed between the PCIe riser card and the substrate The management controller is electrically connected to the PCIe riser card and the baseboard management controller. 如請求項2所述之PCIe頻寬自動調配系統,其中,該智慧型平台管理介面更包含一輸入輸出擴充器,該輸入輸出擴充器係設置於該積體電路間控制器與該PCIe轉接卡之間,用以電性連結該積體電路間控制器與該PCIe轉接卡。The PCIe bandwidth automatic allocation system as claimed in claim 2, wherein the intelligent platform management interface further comprises an input/output expander, and the input/output expander is disposed between the IC controller and the PCIe switch The cards are used to electrically connect the inter-integrated circuit controller and the PCIe riser card. 如請求項3所述之PCIe頻寬自動調配系統,其中,該輸入輸出擴充器為基於I 2C介面的I/O擴充器(I 2C IO Expander),且該輸入輸出擴充器係以I 2C介面連接於該PCIe轉接卡與該積體電路間控制器。 The PCIe bandwidth automatic allocation system according to claim 3, wherein the I/O expander is an I/O expander (I 2 C IO Expander) based on an I 2 C interface, and the I/O expander is an I/O expander based on an I 2 C interface. 2 The C interface is connected to the PCIe riser card and the controller between the integrated circuit. 一種PCIe頻寬自動調配方法,包含以下步驟: (A) 初始化一智慧型平台管理介面,使一基本輸入輸出系統發送一識別碼詢問指令至一基板管理控制器; (B) 該基板管理控制器依據該識別碼詢問指令自一PCIe轉接卡讀取對應於一PCIe裝置之一識別碼; (C) 依據一識別碼頻寬對照表判斷該識別碼所對應之一頻寬; (D) 依據該頻寬進行一CPU之一連接埠分支設定;以及 (E) 初始化該CPU之複數個根埠,使該些根埠對應於該PCIe裝置之該頻寬。 A PCIe bandwidth automatic allocation method, comprising the following steps: (A) initialize an intelligent platform management interface, so that a basic input output system sends an identification code query command to a baseboard management controller; (B) the baseboard management controller reads an identification code corresponding to a PCIe device from a PCIe riser card according to the identification code query instruction; (C) Judging a bandwidth corresponding to the identification code according to an identification code bandwidth comparison table; (D) performing a port branch setting of a CPU according to the bandwidth; and (E) Initializing a plurality of root ports of the CPU so that the root ports correspond to the bandwidth of the PCIe device. 如請求項5所述之PCIe頻寬自動調配方法,其中,在步驟(A)之前更包含一步驟(A0),步驟(A0)係將該PCIe裝置插設於該PCIe轉接卡。The PCIe bandwidth automatic allocation method according to claim 5, further comprising a step (A0) before the step (A), and the step (A0) is to insert the PCIe device into the PCIe riser card.
TW109138351A 2020-11-04 2020-11-04 SYSTEM AND METHOD FOR AUTOMATIC ALLOCATING PCIe BANDWIDTH TWI767392B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW109138351A TWI767392B (en) 2020-11-04 2020-11-04 SYSTEM AND METHOD FOR AUTOMATIC ALLOCATING PCIe BANDWIDTH

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW109138351A TWI767392B (en) 2020-11-04 2020-11-04 SYSTEM AND METHOD FOR AUTOMATIC ALLOCATING PCIe BANDWIDTH

Publications (2)

Publication Number Publication Date
TW202219759A TW202219759A (en) 2022-05-16
TWI767392B true TWI767392B (en) 2022-06-11

Family

ID=82558674

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109138351A TWI767392B (en) 2020-11-04 2020-11-04 SYSTEM AND METHOD FOR AUTOMATIC ALLOCATING PCIe BANDWIDTH

Country Status (1)

Country Link
TW (1) TWI767392B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI830352B (en) * 2022-08-30 2024-01-21 神雲科技股份有限公司 Reading method and baseboard management control module for reading information of multiple riser cards with different specifications
CN118708035B (en) * 2024-08-30 2024-11-08 苏州元脑智能科技有限公司 Equipment slot position identification method, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201042448A (en) * 2009-05-27 2010-12-01 Aten Int Co Ltd Server, computer system, and method for monitoring computer system
TWI591483B (en) * 2016-12-07 2017-07-11 英業達股份有限公司 Switch system
TWI618380B (en) * 2015-10-14 2018-03-11 廣達電腦股份有限公司 Management methods, service controller devices and non-stransitory, computer-readable media
US20180143928A1 (en) * 2016-11-24 2018-05-24 Inventec (Pudong) Technology Corporation Switch system and operation method thereof
TW201823978A (en) * 2016-12-21 2018-07-01 廣達電腦股份有限公司 Computer-implemented methods, systems for automatically updating firmware of components of a server system in a datacenter and non-transitory computer-readable storage medium
CN110704350A (en) * 2019-09-12 2020-01-17 苏州浪潮智能科技有限公司 A resource management method, device, electronic device and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201042448A (en) * 2009-05-27 2010-12-01 Aten Int Co Ltd Server, computer system, and method for monitoring computer system
TWI618380B (en) * 2015-10-14 2018-03-11 廣達電腦股份有限公司 Management methods, service controller devices and non-stransitory, computer-readable media
US20180143928A1 (en) * 2016-11-24 2018-05-24 Inventec (Pudong) Technology Corporation Switch system and operation method thereof
TWI591483B (en) * 2016-12-07 2017-07-11 英業達股份有限公司 Switch system
TW201823978A (en) * 2016-12-21 2018-07-01 廣達電腦股份有限公司 Computer-implemented methods, systems for automatically updating firmware of components of a server system in a datacenter and non-transitory computer-readable storage medium
CN110704350A (en) * 2019-09-12 2020-01-17 苏州浪潮智能科技有限公司 A resource management method, device, electronic device and storage medium

Also Published As

Publication number Publication date
TW202219759A (en) 2022-05-16

Similar Documents

Publication Publication Date Title
CN105302755B (en) A kind of PCIE boards and its monitoring method with monitoring function
CN112398684A (en) PCIe bandwidth automatic allocation system and method
WO2021189322A1 (en) Chip testing apparatus and chip testing method
TWI767392B (en) SYSTEM AND METHOD FOR AUTOMATIC ALLOCATING PCIe BANDWIDTH
CN107256198A (en) Server and the method for server hard disc board distribution I2C addresses
CN111966419A (en) A method and device for automatically assigning VPP addresses by signal conditioning equipment
CN118467434B (en) Service system, input and output chassis, equipment chassis and chassis identification method
CN120523525A (en) A PCIe resource dynamic configuration method and device
CN118132458A (en) MMIO address resource allocation method, device, computing device and storage medium
EP3585062B1 (en) Network system for identifying cable connection and method for authenticating cable id
CN115391260A (en) PCIe bandwidth configuration device, method, server and readable storage medium
CN113630294A (en) Switch modularization detection method and device
CN119166560A (en) Bus bandwidth allocation method, device, server, electronic device and storage medium
CN120045504A (en) Port bandwidth allocation circuit and method of PCIe device
CN115454341B (en) Method and server for associating logical drive letters and hard disk slots
JP2014186500A (en) Device for i2c bus communication, i2c bus communication system, and i2c bus communication method
TWI831654B (en) Storage expansion system and resource configuration method thereof
CN102262606A (en) System and method for allocating inter-integrated circuit (I2C) communication address
TWI796015B (en) Method for automatically identifying the pcie configuration of server and a server
CN116662241A (en) Computer backboard interface address matching system and method
TWI793548B (en) Circuit structure and method for automatically adjusting pcie channel configuration
CN118860938A (en) Server, Peripheral Component Interconnect Rapid Resource Management Method, Storage Medium
TWI877951B (en) Testing device for pcie gen5 interface and method thereof
CN118982993B (en) SAS base address determination method, device, equipment, storage medium and program product
CN120103102A (en) PCIe Gen5 interface testing device and method