[go: up one dir, main page]

CN107590089B - Control method of PCI-E channel by basic input and output system - Google Patents

Control method of PCI-E channel by basic input and output system Download PDF

Info

Publication number
CN107590089B
CN107590089B CN201610527589.XA CN201610527589A CN107590089B CN 107590089 B CN107590089 B CN 107590089B CN 201610527589 A CN201610527589 A CN 201610527589A CN 107590089 B CN107590089 B CN 107590089B
Authority
CN
China
Prior art keywords
pci
slot
central processing
processing unit
pin groups
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201610527589.XA
Other languages
Chinese (zh)
Other versions
CN107590089A (en
Inventor
孙培华
张燕云
郑为元
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Giga Byte Technology Co Ltd
Original Assignee
Giga Byte Technology Co Ltd
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 Giga Byte Technology Co Ltd filed Critical Giga Byte Technology Co Ltd
Priority to CN201610527589.XA priority Critical patent/CN107590089B/en
Publication of CN107590089A publication Critical patent/CN107590089A/en
Application granted granted Critical
Publication of CN107590089B publication Critical patent/CN107590089B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

一种基本输入输出系统对PCI‑E通道的控制方法,包括下列步骤:基本输入输出系统取得第一PCI‑E插槽及第二PCI‑E插槽上是否分别有插设第一扩展卡及第二扩展卡的信息;以及若第二PCI‑E插槽上有插设第二扩展卡,基本输入输出系统指示中央处理单元反转与第二PCI‑E插槽之间电性连接的这些PCI‑E通道的顺序。

Figure 201610527589

A method for controlling a PCI-E channel by a basic input and output system comprises the following steps: the basic input and output system obtains information on whether a first expansion card and a second expansion card are respectively inserted into a first PCI-E slot and a second PCI-E slot; and if the second expansion card is inserted into the second PCI-E slot, the basic input and output system instructs a central processing unit to reverse the order of the PCI-E channels electrically connected to the second PCI-E slot.

Figure 201610527589

Description

基本输入输出系统对PCI-E通道的控制方法Control method of PCI-E channel by basic input and output system

技术领域technical field

本发明涉及一种控制方法,且特别涉及一种基本输入输出系统对PCI-E通道的控制方法。The invention relates to a control method, and in particular to a control method of a PCI-E channel by a basic input output system.

背景技术Background technique

PCI-E接口是目前电脑中常用的外接扩充接口卡的接口。这种技术起初是为实现高速传送数据所设计。其中,PCI-E接口提供给每一个设备它自己专用的总线。数据通过被称为通道(lane)的发送和接受信号是以封包(packet)的形式串行传输,在第三代的PCI-E接口的每个通道具有单方向8Gigabits/sec的速度。多个通道可以组合在一起形成x1、x2、x4、x8、x12、x16,甚至是x32的通道频宽。The PCI-E interface is a commonly used interface for external expansion interface cards in computers. This technology was originally designed to transmit data at high speed. Among them, the PCI-E interface provides each device with its own dedicated bus. Data is transmitted serially in the form of packets through the sending and receiving signals called lanes, and each lane of the third-generation PCI-E interface has a unidirectional speed of 8 Gigabits/sec. Multiple channels can be combined to form x1, x2, x4, x8, x12, x16, or even x32 channel bandwidths.

在一般中高阶的电脑通常会设置两个或二个以上PCI-E插槽。电脑中的基本输入输出系统(BIOS)会检测哪个PCI-E插槽插设有PCI-E扩展卡,并依据检测结果来指示中央处理单元(CPU)如何分配PCI-E通道给第一PCI-E插槽(通常为靠近中央处理单元的PCI-E插槽)与第二PCI-E插槽(通常为较远离中央处理单元的PCI-E插槽)。In general, high-end computers usually have two or more PCI-E slots. The basic input output system (BIOS) in the computer will detect which PCI-E slot is inserted with the PCI-E expansion card, and instruct the central processing unit (CPU) how to allocate the PCI-E channel to the first PCI-E according to the detection result. The E slot (usually the PCI-E slot near the central processing unit) and the second PCI-E slot (usually the PCI-E slot farther from the central processing unit).

更明确地说,图1与图2是现有的中央处理单元的PCI-E通道分配于两PCI-E插槽的示意图。请参阅图1与图2,由于PCI-E通道是由各PCI-E插槽内的第一个PCI-E接脚组(也就是图1与图2中第一PCI-E插槽11最左方的第一PCI-E接脚组21以及第二PCI-E插槽12最左方的第二PCI-E接脚组22)开始向右依次分配。在现有的控制方法中,以中央处理单元10支援x16的PCI-E通道(例如是编号为00-15的16个PCI-E通道)而言,编号为00-07的这8个PCI-E通道会形成于中央处理单元10的前8个的处理器接脚组20与第一PCI-E插槽11的前8个第一PCI-E接脚组21之间。编号为08-15的这8个PCI-E通道会视扩展卡的插接状况被切换至第一PCI-E插槽11的后半部第一PCI-E接脚组21或是第二PCI-E插槽12的前半部第二PCI-E接脚组22。More specifically, FIG. 1 and FIG. 2 are schematic diagrams showing that the PCI-E channels of the conventional central processing unit are allocated to two PCI-E slots. Please refer to FIG. 1 and FIG. 2, since the PCI-E channel is formed by the first PCI-E pin group in each PCI-E slot (that is, the first PCI-E slot 11 in FIG. 1 and FIG. 2 is the most The first PCI-E pin group 21 on the left and the second PCI-E pin group 22) on the leftmost side of the second PCI-E slot 12 begin to be allocated to the right. In the existing control method, as far as the central processing unit 10 supports x16 PCI-E channels (for example, 16 PCI-E channels numbered 00-15), the 8 PCI-E channels numbered 00-07 The E channel is formed between the first eight processor pin groups 20 of the central processing unit 10 and the first eight first PCI-E pin groups 21 of the first PCI-E slot 11 . The 8 PCI-E channels numbered 08-15 will be switched to the first PCI-E pin group 21 or the second PCI in the second half of the first PCI-E slot 11 depending on the insertion status of the expansion card - The second PCI-E pin group 22 in the front half of the E slot 12 .

因此,若只有第一PCI-E插槽11插有扩展卡,基本输入输出系统50会指示中央处理单元10,将编号为08-15的这8个PCI-E通道切换到第一PCI-E插槽11的第一PCI-E接脚组21。也就是第一PCI-E插槽11的第1到第16个第一PCI-E接脚组21会被依序分配到编号为00-15的16个PCI-E通道,而如图1所示地提供给第一PCI-E插槽11x16的PCI-E信号。Therefore, if only the first PCI-E slot 11 has an expansion card inserted, the BIOS 50 will instruct the central processing unit 10 to switch the eight PCI-E channels numbered 08-15 to the first PCI-E The first PCI-E pin group 21 of the slot 11 . That is, the 1st to 16th first PCI-E pin groups 21 of the first PCI-E slot 11 will be sequentially assigned to the 16 PCI-E channels numbered 00-15, as shown in FIG. 1 . Display the PCI-E signal provided to the first PCI-E slot 11x16.

若两个PCI-E插槽均插有扩展卡,基本输入输出系统50会指示中央处理单元10,将编号为08-15的这8个PCI-E通道切换到第二PCI-E插槽12的前半部第二PCI-E接脚组22。也就是第一PCI-E插槽11的第1到第8个第一PCI-E接脚组21会被依次分配到编号为00-07的8个PCI-E通道,第二PCI-E插槽12的第1到第8个第二PCI-E接脚组22会被依序分配到编号为08-15的8个PCI-E通道,而如图2所示地分别提供给两个PCI-E插槽x8、x8的PCI-E信号。换句话说,目前,第二PCI-E插槽12最多只能接收到一半数量的PCI-E信号。If two PCI-E slots are inserted with expansion cards, the BIOS 50 will instruct the central processing unit 10 to switch the eight PCI-E channels numbered 08-15 to the second PCI-E slot 12 The first half of the second PCI-E pin group 22. That is, the first to eighth first PCI-E pin groups 21 of the first PCI-E slot 11 will be sequentially assigned to the eight PCI-E channels numbered 00-07, and the second PCI-E The 1st to 8th second PCI-E pin groups 22 of slot 12 will be sequentially assigned to 8 PCI-E channels numbered 08-15, and provided to two PCIs as shown in Figure 2 -PCI-E signal of E slot x8, x8. In other words, currently, the second PCI-E slot 12 can only receive half of the PCI-E signals at most.

然而,由于目前高效能的中央处理单元10的散热器体积很大,在安装完之后可能会与第一PCI-E插槽11发生机构上的干涉,或者,若第一PCI-E插槽11发生损坏时,使用者只能把扩展卡插在第二PCI-E插槽12。然而,目前第二PCI-E插槽12只能接收到一半数量的PCI-E信号,而导致效能降低。However, due to the large size of the heat sink of the current high-performance central processing unit 10, there may be mechanical interference with the first PCI-E slot 11 after installation, or, if the first PCI-E slot 11 When damage occurs, the user can only insert the expansion card into the second PCI-E slot 12 . However, at present, the second PCI-E slot 12 can only receive half the number of PCI-E signals, resulting in lower performance.

发明内容SUMMARY OF THE INVENTION

本发明提供一种基本输入输出系统对PCI-E通道的控制方法,其可使第二PCI-E插槽可接收到完整的PCI-E信号。The present invention provides a method for controlling a PCI-E channel by a basic input and output system, which enables a second PCI-E slot to receive a complete PCI-E signal.

本发明的一种基本输入输出系统对PCI-E通道的控制方法,其适用于一主机板模块。主机板模块包括一只读存储器(ROM)、一中央处理单元(CPU)、电性连接于中央处理单元的一存储器(RAM)、一第一PCI-E插槽及一第二PCI-E插槽,其中只读存储器电性连接于存储器且内储存有一基本输入输出系统(BIOS),基本输入输出系统适于被载入存储器内,中央处理单元、第一PCI-E插槽及第二PCI-E插槽分别支援2N个PCI-E通道,基本输入输出系统对PCI-E通道的控制方法包括:基本输入输出系统取得第一PCI-E插槽及第二PCI-E插槽上是否分别有插设一第一扩展卡及一第二扩展卡的信息;以及若第二PCI-E插槽上有插设第二扩展卡,基本输入输出系统指示中央处理单元,反转与第二PCI-E插槽之间电性连接的这些PCI-E通道的顺序。A method for controlling a PCI-E channel by a basic input and output system of the present invention is suitable for a mainboard module. The motherboard module includes a read only memory (ROM), a central processing unit (CPU), a memory (RAM) electrically connected to the central processing unit, a first PCI-E slot and a second PCI-E slot slot, wherein the read-only memory is electrically connected to the memory and stores a basic input output system (BIOS), the basic input output system is suitable for being loaded into the memory, the central processing unit, the first PCI-E slot and the second PCI The -E slot supports 2N PCI-E channels respectively. The control method of the PCI-E channel by the basic input and output system includes: the basic input and output system obtains whether the first PCI-E slot and the second PCI-E slot are respectively There is information that a first expansion card and a second expansion card are inserted; and if a second expansion card is inserted into the second PCI-E slot, the basic input output system instructs the central processing unit to reverse and the second PCI - The sequence of these PCI-E lanes that are electrically connected between the E slots.

在本发明的一实施例中,上述的基本输入输出系统对PCI-E通道的控制方法还包括:若第一PCI-E插槽上没有插设第一扩展卡,基本输入输出系统指示中央处理单元,提供给第二PCI-E插槽2N个相反排序的这些PCI-E通道。In an embodiment of the present invention, the above-mentioned method for controlling the PCI-E channel by the basic input output system further includes: if the first expansion card is not inserted in the first PCI-E slot, the basic input output system instructs the central processing unit, providing to the second PCI-E slot 2N of these PCI-E lanes in reverse order.

在本发明的一实施例中,上述的基本输入输出系统对PCI-E通道的控制方法还包括:若第一PCI-E插槽上有插设第一扩展卡,基本输入输出系统指示中央处理单元,提供给第一PCI-E插槽a个原始排序的这些PCI-E通道,且提供给第二PCI-E插槽2N-a个相反排序的这些PCI-E通道,其中1<a<2N。In an embodiment of the present invention, the above-mentioned method for controlling a PCI-E channel by the BIOS further includes: if a first expansion card is inserted in the first PCI-E slot, the BIOS instructs the central processing A unit that provides a first PCI-E slot a of these PCI-E channels in the original order, and provides a second PCI-E slot 2N-a these PCI-E channels in an opposite order, where 1<a< 2N.

在本发明的一实施例中,上述的基本输入输出系统对PCI-E通道的控制方法还包括:若第一PCI-E插槽上有插设第一扩展卡且第二PCI-E插槽上没有插设第二扩展卡,基本输入输出系统指示中央处理单元,提供给第一PCI-E插槽2N个原始排序的PCI-E通道。In an embodiment of the present invention, the above-mentioned method for controlling the PCI-E channel by the basic input output system further includes: if a first expansion card is inserted in the first PCI-E slot and the second PCI-E slot is There is no second expansion card inserted thereon, and the BIOS instructs the central processing unit to provide the first PCI-E slot with 2N originally ordered PCI-E channels.

在本发明的一实施例中,上述的中央处理单元的第1~a个处理器接脚组可切换地电性连接于第一PCI-E插槽的第1~a个第一PCI-E接脚组或是第二PCI-E插槽的第(2N-a+1)~2N个第二PCI-E接脚组,以形成第1~a个这些PCI-E通道,中央处理单元的第a+1~2N个处理器接脚组可切换地电性连接于第一PCI-E插槽的第a+1~2N个第一PCI-E接脚组或是第二PCI-E插槽的第1~(2N-a)个第二PCI-E接脚组,以形成第a+1~2N个些PCI-E通道,其中1<a<2N。In an embodiment of the present invention, the first to a first processor pin groups of the central processing unit are switchably connected to the first to a first PCI-E slots of the first PCI-E slot. The pin group or the (2N-a+1) to 2N second PCI-E pin groups of the second PCI-E slot to form the first to a of these PCI-E channels, the central processing unit The a+1-2Nth processor pin groups are switchably connected to the a+1-2Nth first PCI-E pin groups or the second PCI-E sockets of the first PCI-E slot. The 1st to (2N-a) second PCI-E pin groups of the slots are used to form a+1 to 2Nth PCI-E channels, wherein 1<a<2N.

在本发明的一实施例中,上述的a为N。In an embodiment of the present invention, the above-mentioned a is N.

在本发明的一实施例中,上述的基本输入输出系统对PCI-E通道的控制方法还包括:若第一PCI-E插槽上没有插设第一扩展卡且第二PCI-E插槽上有插设第二扩展卡,第1~a个PCI-E通道形成于中央处理单元的第1~a个处理器接脚组与第二PCI-E插槽的第(2N-a+1)~2N个第二PCI-E接脚组之间,第a+1~2N个PCI-E通道形成于中央处理单元的第a+1~2N个处理器接脚组与第二PCI-E插槽的第1~(2N-a)个第二PCI-E接脚组之间。In an embodiment of the present invention, the above-mentioned method for controlling the PCI-E channel by the basic input output system further includes: if the first expansion card is not inserted in the first PCI-E slot and the second PCI-E slot is A second expansion card is inserted thereon, and the 1st to a PCI-E channels are formed on the 1st to a processor pin groups of the central processing unit and the (2N-a+1th) of the second PCI-E slot. )~2N second PCI-E pin groups, the a+1~2Nth PCI-E channels are formed between the a+1~2Nth processor pin groups of the central processing unit and the second PCI-E Between the 1st to (2N-a) second PCI-E pin groups of the slot.

在本发明的一实施例中,上述的基本输入输出系统对PCI-E通道的控制方法还包括:若第一PCI-E插槽上有插设第一扩展卡且第二PCI-E插槽上有插设第二扩展卡,第1~a个PCI-E通道形成于中央处理单元的第1~a个处理器接脚组与第一PCI-E插槽的第1~a个第一PCI-E接脚组之间,第a+1~2N个PCI-E通道形成于中央处理单元的第a+1~2N个处理器接脚组与第二PCI-E插槽的第1~(2N-a)个第二PCI-E接脚组之间。In an embodiment of the present invention, the above-mentioned method for controlling the PCI-E channel by the basic input output system further includes: if a first expansion card is inserted in the first PCI-E slot and the second PCI-E slot is A second expansion card is inserted thereon, and the first to a PCI-E channels are formed in the first to a processor pin groups of the central processing unit and the first to a first of the first PCI-E slots. Between the PCI-E pin groups, the a+1-2Nth PCI-E channels are formed on the a+1-2Nth processor pin groups of the central processing unit and the 1st-2Nth processor pin groups in the second PCI-E slot. Between (2N-a) second PCI-E pin groups.

在本发明的一实施例中,上述的基本输入输出系统对PCI-E通道的控制方法还包括若第一PCI-E插槽上有插设第一扩展卡且第二PCI-E插槽上没有插设第二扩展卡,第1~a个PCI-E通道形成于中央处理单元的第1~a个处理器接脚组与第一PCI-E插槽的第1~a个第一PCI-E接脚组之间,第a+1~2N个PCI-E通道形成于中央处理单元的第a+1~2N个处理器接脚组与第一PCI-E插槽的第a+1~2N个第一PCI-E接脚组之间。In an embodiment of the present invention, the above-mentioned method for controlling the PCI-E channel by the basic input output system further includes if the first expansion card is inserted in the first PCI-E slot and the second PCI-E slot is No second expansion card is inserted, and the first to a PCI-E channels are formed in the first to a processor pin groups of the central processing unit and the first to a first PCI of the first PCI-E slot. Between -E pin groups, the a+1~2Nth PCI-E channels are formed between the a+1~2Nth processor pin groups of the central processing unit and the a+1th of the first PCI-E slot Between ~2N first PCI-E pin groups.

在本发明的一实施例中,上述的2N为16。In an embodiment of the present invention, the above-mentioned 2N is 16.

基于上述,由于PCI-E通道需要由各PCI-E插槽中从第一个第一PCI-E接脚组开始往右依次分配,但是不限制PCI-E通道的编号顺序是由小到大或是由大到小,本发明的基本输入输出系统对PCI-E通道的控制方法通过基本输入输出系统检测到第二PCI-E插槽上有插设第二扩展卡之后,基本输入输出系统指示中央处理单元反转提供给第二PCI-E插槽的PCI-E通道的顺序,来使第二PCI-E插槽的第1、2、3…个第一PCI-E接脚组依序被分配到中央处理单元的第2N、2N-1、2N-2…个PCI-E通道。若第一PCI-E插槽上没有插设第一扩展卡,全部的PCI-E通道会被分配给第二PCI-E插槽,而使第二PCI-E插槽可接收到完整的PCI-E信号。若第一PCI-E插槽上有插设第一扩展卡,部分的PCI-E通道会被分配给第一PCI-E插槽,另一部分的PCI-E通道会被分配给第二PCI-E插槽,而使双扩展卡仍能一起运作。Based on the above, since PCI-E channels need to be allocated from the first PCI-E pin group to the right in each PCI-E slot, but there is no limit to the numbering order of PCI-E channels from small to large Or from large to small, after the basic input output system of the present invention detects that a second expansion card is inserted in the second PCI-E slot, the basic input output system controls the PCI-E channel. Instructs the central processing unit to reverse the order of the PCI-E lanes provided to the second PCI-E slot, so that the 1st, 2nd, 3rd... first PCI-E pin groups of the second PCI-E slot follow The sequence is allocated to the 2Nth, 2N-1, 2N-2... PCI-E lanes of the central processing unit. If the first expansion card is not installed in the first PCI-E slot, all PCI-E channels will be allocated to the second PCI-E slot, so that the second PCI-E slot can receive the complete PCI -E signal. If the first expansion card is inserted into the first PCI-E slot, part of the PCI-E channel will be allocated to the first PCI-E slot, and another part of the PCI-E channel will be allocated to the second PCI- E slot, so that dual expansion cards can still work together.

为让本发明的上述特征和优点能更明显易懂,下文特举实施例,并配合说明书附图作详细说明如下。In order to make the above-mentioned features and advantages of the present invention more obvious and easy to understand, the following specific embodiments are given and described in detail as follows in conjunction with the accompanying drawings.

附图说明Description of drawings

图1与图2是现有的中央处理单元的PCI-E通道分配于两PCI-E插槽的示意图。FIG. 1 and FIG. 2 are schematic diagrams showing that PCI-E channels of a conventional central processing unit are allocated to two PCI-E slots.

图3至图5是依照本发明的一实施例的中央处理单元的PCI-E通道分配于两PCI-E插槽的示意图。FIG. 3 to FIG. 5 are schematic diagrams of allocating PCI-E channels of a central processing unit to two PCI-E slots according to an embodiment of the present invention.

图6是依照本发明的一实施例的一种基本输入输出系统对PCI-E通道的控制方法的示意图。FIG. 6 is a schematic diagram of a method for controlling a PCI-E channel by a basic input output system according to an embodiment of the present invention.

附图标记说明:Description of reference numbers:

10:中央处理单元10: Central processing unit

11:第一PCI-E插槽11: The first PCI-E slot

12:第二PCI-E插槽12: Second PCI-E slot

13:第一开关13: The first switch

14:第一输入端14: The first input terminal

15:第一输出端15: The first output terminal

16:第二开关16: Second switch

17:第二输入端17: The second input terminal

18:第二输出端18: The second output terminal

20:处理器接脚组20: Processor pin group

21:第一PCI-E接脚组21: The first PCI-E pin group

22:第二PCI-E接脚组22: The second PCI-E pin group

50:基本输入输出系统(BIOS)50: Basic Input Output System (BIOS)

100:基本输入输出系统对PCI-E通道的控制方法100: Basic input and output system control method for PCI-E channel

110~140:步骤110 to 140: Steps

具体实施方式Detailed ways

一般而言,当使用者按下电源键以开启电脑系统时,储存在快闪只读存储器(flash ROM)中的基本输入输出系统(BIOS)50便会通过晶片组电性连接于中央处理单元10,并准备开始对电脑系统的硬件元件进行初始化及检查动作。基本输入输出系统50依次对中央处理单元10、晶片组、存储器,以及周边装置进行初始化动作,并确认有哪些周边装置连接到主机板,在确保这些硬件元件在开机动作完成后得以正常运作之后,会将作业系统载入存储器以完成电脑系统的开机动作。Generally speaking, when the user presses the power button to turn on the computer system, the basic input output system (BIOS) 50 stored in the flash ROM will be electrically connected to the central processing unit through the chip set 10, and prepare to start initializing and checking the hardware components of the computer system. The basic input output system 50 sequentially initializes the central processing unit 10, the chipset, the memory, and the peripheral devices, and confirms which peripheral devices are connected to the motherboard. The operating system will be loaded into the memory to complete the booting of the computer system.

以基本输入输出系统50确认有哪些周边装置连接到主机板的阶段来说,由于一般中高阶的主机板通常会设置两个PCI-E插槽(第一PCI-E插槽11、第二PCI-E插槽12),基本输入输出系统50会检测哪个PCI-E插槽插设有PCI-E扩展卡,并依据检测结果来指示中央处理单元10如何提供PCI-E通道给第一PCI-E插槽11(通常为靠近中央处理单元10的PCI-E插槽)或/与第二PCI-E插槽12(通常为较远离中央处理单元10的PCI-E插槽)。In the stage where the basic input output system 50 confirms which peripheral devices are connected to the motherboard, because generally medium and high-end motherboards usually have two PCI-E slots (the first PCI-E slot 11, the second PCI-E slot 11, the second PCI-E slot -E slot 12), the basic input output system 50 will detect which PCI-E slot is inserted with the PCI-E expansion card, and instruct the central processing unit 10 how to provide the PCI-E channel to the first PCI-E according to the detection result. The E slot 11 (usually a PCI-E slot close to the central processing unit 10 ) or/and the second PCI-E slot 12 (usually a PCI-E slot farther from the central processing unit 10 ).

本实施例的基本输入输出系统50对PCI-E通道的控制方法100就是针对基本输入输出系统50在确认哪个或是哪些PCI-E插槽插设有PCI-E扩展卡之后,根据所检测到的结果来指示中央处理单元10要如何将PCI-E通道分配给其中一个或是两个PCI-E插槽。即便是只有第二PCI-E插槽12上插有PCI-E扩展卡,本实施例的基本输入输出系统50对PCI-E通道的控制方法100可将全部的PCI-E通道都分配到第二PCI-E插槽12,以使第二PCI-E插槽12可接收到完整的PCI-E信号。下面将对此进行详细地介绍。The method 100 for controlling a PCI-E channel by the basic input output system 50 in this embodiment is for the basic input output system 50 to determine which PCI-E slot or slots are inserted with the PCI-E expansion card, and then, according to the detected The result indicates how the central processing unit 10 should assign the PCI-E channel to one or both of the PCI-E slots. Even if only the second PCI-E slot 12 is inserted with a PCI-E expansion card, the method 100 for controlling PCI-E channels by the basic input output system 50 of this embodiment can allocate all PCI-E channels to the first PCI-E channel. Two PCI-E slots 12, so that the second PCI-E slot 12 can receive a complete PCI-E signal. This will be described in detail below.

首先要说明的是,本实施例的基本输入输出系统50对PCI-E通道的控制方法100所适用的主机板模块包括了中央处理单元(CPU)10、分别电性连接于中央处理单元10的一基本输入输出系统50(BIOS)50、第一PCI-E插槽11及第二PCI-E插槽12,第一PCI-E插槽11为靠近中央处理单元10的PCI-E插槽,第二PCI-E插槽12为远离中央处理单元10的PCI-E插槽。First of all, it should be noted that the motherboard module to which the PCI-E channel control method 100 of the basic input output system 50 of this embodiment is applicable includes a central processing unit (CPU) 10 , a A basic input output system 50 (BIOS) 50, a first PCI-E slot 11 and a second PCI-E slot 12, the first PCI-E slot 11 is a PCI-E slot close to the central processing unit 10, The second PCI-E slot 12 is a PCI-E slot away from the central processing unit 10 .

图3至图5是依照本发明的一实施例的中央处理单元10的PCI-E通道分配于两PCI-E插槽的示意图。请先参阅图3至图5,中央处理单元10、第一PCI-E插槽11及第二PCI-E插槽12分别支援2N个PCI-E通道,第一PCI-E插槽11及第二PCI-E插槽12分别电性连接于中央处理单元10。在本实施例中,2N以16为例,但2N的数量也可以是4、8或是32等,并不仅以16为限制。FIG. 3 to FIG. 5 are schematic diagrams of allocating PCI-E channels of the central processing unit 10 to two PCI-E slots according to an embodiment of the present invention. Please refer to FIG. 3 to FIG. 5 first. The central processing unit 10 , the first PCI-E slot 11 and the second PCI-E slot 12 respectively support 2N PCI-E channels. The first PCI-E slot 11 and the second PCI-E slot The two PCI-E slots 12 are respectively electrically connected to the central processing unit 10 . In this embodiment, 2N is taken as 16 as an example, but the number of 2N can also be 4, 8, or 32, etc., and it is not limited to 16.

中央处理单元10的第1~a个处理器接脚组20可切换地电性连接于第一PCI-E插槽11的第1~a个第一PCI-E接脚组21或是第二PCI-E插槽12的第(2N-a+1)~2N个第二PCI-E接脚组22,以形成第1~a个PCI-E通道,中央处理单元10的第a+1~2N个处理器接脚组20可切换地电性连接于第一PCI-E插槽11的第a+1~2N个第一PCI-E接脚组21或是第二PCI-E插槽12的第1~(2N-a)个第二PCI-E接脚组22,以形成第a+1~2N个PCI-E通道,其中1<a<2N。在本实施例中,a以N为例,但在其他实施例中,a也可以不是2N的一半,即a不为N。The first to a first processor pin groups 20 of the central processing unit 10 are switchably electrically connected to the first to a first PCI-E pin groups 21 or the second of the first PCI-E slots 11 . (2N-a+1) to 2N second PCI-E pin groups 22 of the PCI-E slot 12 to form the first to a PCI-E channels, and the a+1 to a+1 to the central processing unit 10 The 2N processor pin groups 20 are switchably connected to the a+1-2N first PCI-E pin groups 21 or the second PCI-E slots 12 of the first PCI-E slot 11 . The 1st to (2N-a) second PCI-E pin groups 22 are formed to form a+1 to 2Nth PCI-E channels, wherein 1<a<2N. In this embodiment, a is taken as N as an example, but in other embodiments, a may not be half of 2N, that is, a is not N.

更明确地说,在本实施例中,中央处理单元10、第一PCI-E插槽11及第二PCI-E插槽12分别支援16个PCI-E通道(也就是所谓的x16频宽)。中央处理单元10的16组处理器接脚组20对应于这16个PCI-E通道,这16个PCI-E通道依次以00~15编号,其中,中央处理单元10以图3左方数来的第1~8个处理器接脚组20对应于编号为00~07的PCI-E通道,第1~8个处理器接脚组20连接到第一开关13的第一输入端14,且由第一开关13的第一输出端15可切换地电性连接于第一PCI-E插槽11从图3左方数来的第1~8个第一PCI-E接脚组21或是第二PCI-E插槽12的第9~16个第二PCI-E接脚组22,以形成第1~a个PCI-E通道。More specifically, in this embodiment, the central processing unit 10 , the first PCI-E slot 11 and the second PCI-E slot 12 respectively support 16 PCI-E channels (that is, the so-called x16 bandwidth). . The 16 groups of processor pin groups 20 of the central processing unit 10 correspond to the 16 PCI-E channels, and the 16 PCI-E channels are sequentially numbered from 00 to 15. The central processing unit 10 is numbered from the left of FIG. 3 . The 1st to 8th processor pin groups 20 correspond to the PCI-E channels numbered 00 to 07, the 1st to 8th processor pin groups 20 are connected to the first input end 14 of the first switch 13, and The first output terminal 15 of the first switch 13 is switchably electrically connected to the first PCI-E pin group 21 of the first PCI-E slot 11 from the left of FIG. The ninth to sixteenth second PCI-E pin groups 22 of the second PCI-E slot 12 form the first to a PCI-E channels.

中央处理单元10的第9~16个处理器接脚组20对应于编号为08~15的PCI-E通道,且连接到第二开关16的第二输入端17。第二开关16的第二输出端18可切换地电性连接于第一PCI-E插槽11的第9~16个第一PCI-E接脚组21或是第二PCI-E插槽12的第1~8个第二PCI-E接脚组22,以形成第a+1~2N个PCI-E通道。此处的第一开关13与第二开关16可以是实体开关、软件程序或是其他任何形式的切换模式。若第一开关13与第二开关16是实体开关,第一开关13与第二开关16可各自再有多个小开关(未绘示),以切换多个通道。例如,若一个小开关可以切换2个通道,第一开关13与第二开关16可各自有4个小开关。当然,第一开关13与第二开关16所包括的小开关的数量并不以此为限制。The 9th to 16th processor pin groups 20 of the central processing unit 10 correspond to the PCI-E channels numbered 08 to 15 and are connected to the second input terminal 17 of the second switch 16 . The second output terminal 18 of the second switch 16 is switchably electrically connected to the ninth to sixteenth first PCI-E pin groups 21 of the first PCI-E slot 11 or the second PCI-E slot 12 . The first to eighth second PCI-E pin groups 22 are formed to form a+1 to 2Nth PCI-E channels. The first switch 13 and the second switch 16 here can be physical switches, software programs or any other switching modes. If the first switch 13 and the second switch 16 are physical switches, the first switch 13 and the second switch 16 may each have multiple small switches (not shown) to switch multiple channels. For example, if one small switch can switch two channels, the first switch 13 and the second switch 16 can each have four small switches. Of course, the number of small switches included in the first switch 13 and the second switch 16 is not limited thereto.

值得一提的是,第一PCI-E插槽11的PCI-E通道的排序与第二PCI-E插槽12的PCI-E通道的排序是相反的。这是因为各PCI-E插槽中可运作的PCI-E通道会由各PCI-E插槽内的第一个PCI-E接脚组开始连接且往后(也就是图面上的由左往右排序)依次分配,只要各PCI-E插槽内的第一个PCI-E接脚组与接连的其他数个PCI-E接脚组有被分配到,而且被分配到的PCI-E通道的编号连续即可,并不限制被分配到的PCI-E通道的编号顺序是由小到大或是由大到小。It is worth mentioning that the order of the PCI-E channels of the first PCI-E slot 11 is opposite to the order of the PCI-E channels of the second PCI-E slot 12 . This is because the operable PCI-E channels in each PCI-E slot are connected from the first PCI-E pin group in each PCI-E slot and afterward (that is, from the left on the drawing Sorting to the right) are allocated in order, as long as the first PCI-E pin group in each PCI-E slot and several other PCI-E pin groups in succession are assigned, and the assigned PCI-E The numbering of the channels may be continuous, and there is no restriction on whether the numbering sequence of the allocated PCI-E channels is from small to large or from large to small.

因此,为了可以让只有第一PCI-E插槽11有插第一扩展卡(如图3)、第一PCI-E插槽11与第二PCI-E插槽12同时有插第一扩展卡与第二扩展卡(如图4)、只有第二PCI-E插槽12有插第二扩展卡(如图5)这三种模式均能运作,且在只有第二PCI-E插槽12有插第二扩展卡时,第二PCI-E插槽12还能够被分配到完整的16个PCI-E通道,本实施例的基本输入输出系统50对PCI-E通道的控制方法100特别将第二PCI-E插槽12的通道从左到右分配相反的编号。下面将以实例解释。Therefore, in order to allow only the first PCI-E slot 11 to have the first expansion card inserted (as shown in FIG. 3 ), the first PCI-E slot 11 and the second PCI-E slot 12 can simultaneously have the first expansion card inserted. With the second expansion card (as shown in Figure 4), only the second PCI-E slot 12 has a second expansion card (as shown in Figure 5), these three modes can work, and only the second PCI-E slot 12 When a second expansion card is inserted, the second PCI-E slot 12 can also be assigned to complete 16 PCI-E channels. The lanes of the second PCI-E slot 12 are assigned opposite numbers from left to right. An example will be explained below.

图6是依照本发明的一实施例的一种基本输入输出系统对PCI-E通道的控制方法的示意图。请同时参阅图3到图6,本实施例的基本输入输出系统50对PCI-E通道的控制方法100包括下列步骤。FIG. 6 is a schematic diagram of a method for controlling a PCI-E channel by a basic input output system according to an embodiment of the present invention. Please refer to FIG. 3 to FIG. 6 at the same time, the control method 100 of the PCI-E channel by the basic input output system 50 of this embodiment includes the following steps.

首先,如步骤110,基本输入输出系统50取得第一PCI-E插槽11及第二PCI-E插槽12上是否分别有插设第一扩展卡及第二扩展卡的信息。First, in step 110, the BIOS 50 obtains information about whether the first expansion card and the second expansion card are inserted in the first PCI-E slot 11 and the second PCI-E slot 12, respectively.

实际上会有三种状况,第一,只有第一PCI-E插槽11有插第一扩展卡(如图3与图6的步骤120)。第二,第一PCI-E插槽11与第二PCI-E插槽12同时有插第一扩展卡与第二扩展卡(如图4与图6的步骤130),第三,只有第二PCI-E插槽12有插第二扩展卡(如图5与图6的步骤140)。There are actually three situations. First, only the first PCI-E slot 11 has the first expansion card inserted (step 120 in FIG. 3 and FIG. 6 ). Second, the first PCI-E slot 11 and the second PCI-E slot 12 have both the first expansion card and the second expansion card inserted (step 130 in FIG. 4 and FIG. 6 ). Third, only the second expansion card is inserted. A second expansion card is inserted into the PCI-E slot 12 (step 140 in FIG. 5 and FIG. 6 ).

接下来,若第一PCI-E插槽11上有插设第一扩展卡且第二PCI-E插槽12上没有插设第二扩展卡,也就是图3的状况,第1~a个PCI-E通道形成于中央处理单元10的第1~a个处理器接脚组20与第一PCI-E插槽11的第1~a个第一PCI-E接脚组21之间,第a+1~2N个PCI-E通道形成于中央处理单元10的第a+1~2N个处理器接脚组20与第一PCI-E插槽的第a+1~2N个第一PCI-E接脚组21之间,基本输入输出系统50指示中央处理单元10,提供给第一PCI-E插槽11 2N个原始排序的PCI-E通道(步骤120)。更明确地说,若只有第一PCI-E插槽11上有插设第一扩展卡,基本输入输出系统50会指示中央处理单元10,将16个PCI-E通道以原始排序分配至第一PCI-E插槽11。Next, if the first expansion card is inserted in the first PCI-E slot 11 and the second expansion card is not inserted in the second PCI-E slot 12, that is, the situation in FIG. 3, the first to a The PCI-E channel is formed between the first to a first PCI-E pin groups 20 of the central processing unit 10 and the first to a first PCI-E pin groups 21 of the first PCI-E slot 11 . a+1-2N PCI-E channels are formed in the a+1-2Nth processor pin groups 20 of the central processing unit 10 and the a+1-2Nth first PCI-E slots of the first PCI-E slot. Between the E pin groups 21, the BIOS 50 instructs the central processing unit 10 to provide 2N originally ordered PCI-E channels to the first PCI-E slot 11 (step 120). More specifically, if only the first PCI-E slot 11 has the first expansion card inserted, the BIOS 50 will instruct the central processing unit 10 to allocate the 16 PCI-E channels to the first slot in the original order. PCI-E slot 11.

若第一PCI-E插槽11上有插设第一扩展卡且第二PCI-E插槽12上有插设第二扩展卡,也就是图4的状况,第1~a个PCI-E通道形成于中央处理单元10的第1~a个处理器接脚组20与第一PCI-E插槽11的第1~a个第一PCI-E接脚组21之间,第a+1~2N个PCI-E通道形成于中央处理单元10的第a+1~2N个处理器接脚组20与第二PCI-E插槽12的第1~(2N-a)个第二PCI-E接脚组22之间,基本输入输出系统50指示中央处理单元10,提供给第一PCI-E插槽11a个原始排序的PCI-E通道,且提供给第二PCI-E插槽12 2N-a个相反排序的PCI-E通道(步骤130)。If a first expansion card is inserted into the first PCI-E slot 11 and a second expansion card is inserted into the second PCI-E slot 12, that is, the situation in FIG. 4, the first to a PCI-E The channels are formed between the first to a first PCI-E pin groups 20 of the central processing unit 10 and the first to a first PCI-E pin groups 21 of the first PCI-E slot 11 , the a+1th ~2N PCI-E channels are formed in the a+1~2Nth processor pin groups 20 of the central processing unit 10 and the 1st~(2N-a) second PCI- Between the E pin groups 22, the BIOS 50 instructs the central processing unit 10 to provide the first PCI-E slot 11a with the originally ordered PCI-E lanes, and to the second PCI-E slot 12 2N -a reverse-ordered PCI-E lanes (step 130).

更明确地说,第一PCI-E插槽11与第二PCI-E插槽12同时有插第一扩展卡与第二扩展卡,基本输入输出系统50会指示中央处理单元10,编号00~07的这8个PCI-E通道会分配于第一PCI-E插槽11的前八个第一PCI-E接脚组21,编号08~15的这8个PCI-E通道以反转的方式分配至第二PCI-E插槽12的前八个第二PCI-E接脚组22。对于第一PCI-E插槽11与第二PCI-E插槽12来说,只要是从左方开始算起的这连续8个PCI-E通道有被指派到编号连续的PCI-E通道便可以运作,编号可以是由大到小或是由小到大。在图4的状况下,第一PCI-E插槽11的前八个第一PCI-E接脚组21依次被分配到的PCI-E通道的编号是由小到大(00-07),第二PCI-E插槽12的前八个第二PCI-E接脚组22依次被分配到的PCI-E通道的编号是由大到小(15-08)。在此状况下,第一PCI-E插槽11与第二PCI-E插槽12可以运作频宽为x8、x8的模式。More specifically, when the first PCI-E slot 11 and the second PCI-E slot 12 are simultaneously inserted with the first expansion card and the second expansion card, the basic input output system 50 will instruct the central processing unit 10, numbered 00- The 8 PCI-E channels of 07 will be allocated to the first eight first PCI-E pin groups 21 of the first PCI-E slot 11, and the 8 PCI-E channels numbered 08 to 15 are reversed. are allocated to the first eight second PCI-E pin groups 22 of the second PCI-E slot 12 . For the first PCI-E slot 11 and the second PCI-E slot 12, as long as the 8 consecutive PCI-E channels from the left are assigned to consecutively numbered PCI-E channels It can work, and the numbering can be from large to small or from small to large. In the situation shown in FIG. 4 , the numbers of the PCI-E channels to which the first eight first PCI-E pin groups 21 of the first PCI-E slot 11 are sequentially assigned are from small to large (00-07). The numbers of the PCI-E channels to which the first eight second PCI-E pin groups 22 of the second PCI-E slot 12 are sequentially allocated are in descending order (15-08). In this case, the first PCI-E slot 11 and the second PCI-E slot 12 can operate in a mode with a bandwidth of x8 and x8.

若第一PCI-E插槽11上没有插设第一扩展卡且第二PCI-E插槽12上有插设第二扩展卡,也就是图5的状况,第1~a个PCI-E通道形成于中央处理单元10的第1~a个处理器接脚组20与第二PCI-E插槽12的第(2N-a+1)~2N个第二PCI-E接脚组22之间,第a+1~2N个PCI-E通道形成于中央处理单元10的第a+1~2N个处理器接脚组20与第二PCI-E插槽12的第1~(2N-a)个第二PCI-E接脚组22之间,基本输入输出系统50指示中央处理单元10提供给第二PCI-E插槽12 2N个相反排序的PCI-E通道(步骤140)。If the first expansion card is not inserted in the first PCI-E slot 11 and the second expansion card is inserted in the second PCI-E slot 12, that is, the situation in FIG. 5, the first to a PCI-E Channels are formed between the first to a processor pin groups 20 of the central processing unit 10 and the (2N-a+1) to 2N second PCI-E pin groups 22 of the second PCI-E slot 12 . During the time, the a+1-2Nth PCI-E channels are formed in the a+1-2Nth processor pin groups 20 of the central processing unit 10 and the 1st-(2N-aths of the second PCI-E slot 12 ) between the second PCI-E pin groups 22, the BIOS 50 instructs the central processing unit 10 to provide 2N PCI-E lanes in reverse order to the second PCI-E slot 12 (step 140).

更明确地说,若只有第二PCI-E插槽12上有插设第二扩展卡,基本输入输出系统50会指示中央处理单元10,将16个PCI-E通道都反转地分配至第二PCI-E插槽12,第二PCI-E插槽12的这16个第二PCI-E接脚组22依次被分配到编号为由大到小(15-00)的PCI-E通道,第二PCI-E插槽12可接收到完整的PCI-E信号。More specifically, if only the second expansion card is inserted in the second PCI-E slot 12, the basic input output system 50 will instruct the central processing unit 10 to invert all 16 PCI-E channels to be allocated to the second expansion card. Two PCI-E slots 12, the 16 second PCI-E pin groups 22 of the second PCI-E slot 12 are sequentially assigned to PCI-E channels numbered from large to small (15-00), The second PCI-E slot 12 can receive the complete PCI-E signal.

综上所述,由于PCI-E通道需要由各PCI-E插槽中从第一个第一PCI-E接脚组开始往右依次分配,但是不限制PCI-E通道的编号顺序是由小到大或是由大到小,本发明的基本输入输出系统对PCI-E通道的控制方法通过基本输入输出系统检测到第二PCI-E插槽上有插设第二扩展卡之后,基本输入输出系统指示中央处理单元反转提供给第二PCI-E插槽的PCI-E通道的顺序,来使第二PCI-E插槽的第1、2、3…个第一PCI-E接脚组依次被分配到中央处理单元的第2N、2N-1、2N-2…个PCI-E通道。若第一PCI-E插槽上没有插设第一扩展卡,全部的PCI-E通道会被分配给第二PCI-E插槽,而使第二PCI-E插槽可接收到完整的PCI-E信号。若第一PCI-E插槽上有插设第一扩展卡,部分的PCI-E通道会被分配给第一PCI-E插槽,另一部分的PCI-E通道会被分配给第二PCI-E插槽,而使双扩展卡仍能一起运作。To sum up, since PCI-E channels need to be allocated from the first PCI-E pin group to the right in each PCI-E slot, there is no limit to the numbering order of PCI-E channels from small to small. From big to big or from big to small, the basic input output system of the present invention controls the PCI-E channel after the basic input output system detects that there is a second expansion card inserted in the second PCI-E slot, the basic input output The output system instructs the central processing unit to reverse the order of the PCI-E lanes provided to the second PCI-E slot to make the 1st, 2nd, 3rd... first PCI-E pins of the second PCI-E slot The groups are sequentially assigned to the 2Nth, 2N-1, 2N-2... PCI-E lanes of the central processing unit. If the first expansion card is not installed in the first PCI-E slot, all PCI-E channels will be allocated to the second PCI-E slot, so that the second PCI-E slot can receive the complete PCI -E signal. If the first expansion card is inserted into the first PCI-E slot, part of the PCI-E channel will be allocated to the first PCI-E slot, and another part of the PCI-E channel will be allocated to the second PCI- E slot, so that dual expansion cards can still work together.

虽然本发明已以实施例公开如上,然其并非用以限定本发明,任何所属技术领域中技术人员,在不脱离本发明的精神和范围内,当可作些许的变动与润饰,故本发明的保护范围当视后附的权利要求所界定者为准。Although the present invention has been disclosed by the above examples, it is not intended to limit the present invention. Any person skilled in the art can make some changes and modifications without departing from the spirit and scope of the present invention. Therefore, the present invention The scope of protection shall be as defined in the appended claims.

Claims (9)

1.一种基本输入输出系统对PCI-E通道的控制方法,适用于一主机板模块,所述主机板模块包括一中央处理单元、分别电性连接于该中央处理单元的一基本输入输出系统、一第一PCI-E插槽及一第二PCI-E插槽,其中所述中央处理单元、所述第一PCI-E插槽及所述第二PCI-E插槽分别支援2N个PCI-E通道,所述基本输入输出系统对PCI-E通道的控制方法,其特征在于,包括:1. A method for controlling a PCI-E channel by a basic input and output system, applicable to a mainboard module, the mainboard module comprising a central processing unit, a basic input and output system electrically connected to the central processing unit respectively , a first PCI-E slot and a second PCI-E slot, wherein the central processing unit, the first PCI-E slot and the second PCI-E slot respectively support 2N PCI -E channel, the control method for the PCI-E channel of the basic input output system, characterized in that, comprising: 所述基本输入输出系统取得所述第一PCI-E插槽及所述第二PCI-E插槽上是否分别有插设一第一扩展卡及一第二扩展卡的信息;以及The BIOS obtains information on whether a first expansion card and a second expansion card are inserted in the first PCI-E slot and the second PCI-E slot, respectively; and 若所述第二PCI-E插槽上有插设所述第二扩展卡,所述基本输入输出系统指示所述中央处理单元,反转与所述第二PCI-E插槽之间电性连接的多个PCI-E通道的顺序;If the second expansion card is inserted into the second PCI-E slot, the BIOS instructs the central processing unit to reverse the electrical connection between the second PCI-E slot and the second PCI-E slot. The sequence of multiple PCI-E lanes connected; 其中,所述中央处理单元的第1~a个处理器接脚组可切换地电性连接于所述第一PCI-E插槽的第1~a个第一PCI-E接脚组或是所述第二PCI-E插槽的第(2N-a+1)~2N个第二PCI-E接脚组,以形成第1~a个所述多个PCI-E通道,所述中央处理单元的第(a+1)~2N个处理器接脚组可切换地电性连接于所述第一PCI-E插槽的第(a+1)~2N个所述多个第一PCI-E接脚组或是所述第二PCI-E插槽的第1~(2N-a)个所述多个第二PCI-E接脚组,以形成第(a+1)~2N个所述多个PCI-E通道,其中1<a<2N。Wherein, the first to a first processor pin groups of the central processing unit are switchably connected to the first to a first PCI-E pin groups of the first PCI-E slot or (2N-a+1) to 2N second PCI-E pin groups of the second PCI-E slot to form the first to a plurality of PCI-E channels, the central processing The (a+1)-2Nth processor pin groups of the unit are switchably connected to the (a+1)-2Nth first PCI-E slots in the first PCI-E slot. The E pin group or the 1st to (2N-a) second PCI-E pin groups of the second PCI-E slot to form the (a+1) to 2Nth PCI-E pin groups. multiple PCI-E channels, where 1<a<2N. 2.如权利要求1所述的基本输入输出系统对PCI-E通道的控制方法,其特征在于,还包括:2. BIOS as claimed in claim 1 is characterized in that to the control method of PCI-E channel, also comprises: 若所述第一PCI-E插槽上没有插设所述第一扩展卡,所述基本输入输出系统指示所述中央处理单元,提供给所述第二PCI-E插槽2N个相反排序的所述多个PCI-E通道。If the first expansion card is not inserted into the first PCI-E slot, the BIOS instructs the central processing unit to provide the second PCI-E slot with 2N reversely ordered the multiple PCI-E lanes. 3.如权利要求1所述的基本输入输出系统对PCI-E通道的控制方法,其特征在于,还包括:3. BIOS as claimed in claim 1 is to the control method of PCI-E channel, is characterized in that, also comprises: 若所述第一PCI-E插槽上有插设所述第一扩展卡,所述基本输入输出系统指示所述中央处理单元,提供给所述第一PCI-E插槽a个原始排序的所述多个PCI-E通道,且提供给所述第二PCI-E插槽2N-a个相反排序的所述多个PCI-E通道,其中1<a<2N。If the first expansion card is inserted into the first PCI-E slot, the BIOS instructs the central processing unit to provide the first PCI-E slot with a originally ordered The multiple PCI-E lanes are provided to the second PCI-E slot 2N-a reversely ordered multiple PCI-E lanes, where 1<a<2N. 4.如权利要求1所述的基本输入输出系统对PCI-E通道的控制方法,其特征在于,还包括:4. BIOS as claimed in claim 1 is to the control method of PCI-E channel, it is characterized in that, also comprises: 若所述第一PCI-E插槽上有插设所述第一扩展卡且所述第二PCI-E插槽上没有插设所述第二扩展卡,所述基本输入输出系统指示所述中央处理单元,提供给所述第一PCI-E插槽2N个原始排序的PCI-E通道。If the first expansion card is inserted into the first PCI-E slot and the second expansion card is not inserted into the second PCI-E slot, the BIOS indicates the The central processing unit provides the first PCI-E slot with 2N originally ordered PCI-E channels. 5.如权利要求1所述的基本输入输出系统对PCI-E通道的控制方法,其特征在于,a为N。5 . The method for controlling a PCI-E channel by a basic input output system according to claim 1 , wherein a is N. 6 . 6.如权利要求1所述的基本输入输出系统对PCI-E通道的控制方法,其特征在于,还包括:6. BIOS as claimed in claim 1 is characterized in that to the control method of PCI-E channel, also comprises: 若所述第一PCI-E插槽上没有插设所述第一扩展卡且所述第二PCI-E插槽上有插设所述第二扩展卡,第1~a个所述多个PCI-E通道形成于所述中央处理单元的第1~a个所述多个处理器接脚组与所述第二PCI-E插槽的所述多个第(2N-a+1)~2N个第二PCI-E接脚组之间,第(a+1)~2N个所述多个PCI-E通道形成于所述中央处理单元的第(a+1)~2N个所述多个处理器接脚组与所述第二PCI-E插槽的第1~(2N-a)个所述多个第二PCI-E接脚组之间。If the first expansion card is not inserted in the first PCI-E slot and the second expansion card is inserted in the second PCI-E slot, the first to a of the multiple PCI-E channels are formed in the first to a of the plurality of processor pin groups of the central processing unit and the plurality of (2N-a+1) to the second PCI-E slot Between the 2N second PCI-E pin groups, the (a+1)-2Nth multiple PCI-E channels are formed in the (a+1)-2Nth multiple PCI-E channels of the central processing unit. between the processor pin groups and the first to (2N-a) second PCI-E pin groups of the second PCI-E slot. 7.如权利要求1所述的基本输入输出系统对PCI-E通道的控制方法,其特征在于,还包括:7. BIOS as claimed in claim 1 is characterized in that, also comprises: 若所述第一PCI-E插槽上有插设所述第一扩展卡且所述第二PCI-E插槽上有插设所述第二扩展卡,第1~a个所述多个PCI-E通道形成于所述中央处理单元的第1~a个所述多个处理器接脚组与所述第一PCI-E插槽的第1~a个所述多个第一PCI-E接脚组之间,第(a+1)~2N个所述多个PCI-E通道形成于所述中央处理单元的第(a+1)~2N个所述多个处理器接脚组与所述第二PCI-E插槽的第1~(2N-a)个所述多个第二PCI-E接脚组之间。If the first expansion card is inserted into the first PCI-E slot and the second expansion card is inserted into the second PCI-E slot, the first to a of the multiple PCI-E channels are formed in the first to a of the plurality of processor pin groups of the central processing unit and the first to a of the first PCI-E slots of the first PCI-E slot. Between the E pin groups, the (a+1)-2Nth of the plurality of PCI-E channels are formed in the (a+1)-2Nth of the plurality of processor pin groups of the central processing unit and between the first to (2N-a) second PCI-E pin groups of the second PCI-E slot. 8.如权利要求1所述的基本输入输出系统对PCI-E通道的控制方法,其特征在于,还包括:8. BIOS as claimed in claim 1 is characterized in that to the control method of PCI-E channel, also comprises: 若所述第一PCI-E插槽上有插设所述第一扩展卡且所述第二PCI-E插槽上没有插设所述第二扩展卡,第1~a个所述多个PCI-E通道形成于所述中央处理单元的第1~a个所述多个处理器接脚组与所述第一PCI-E插槽的第1~a个所述多个第一PCI-E接脚组之间,第a+1~2N个所述多个PCI-E通道形成于所述中央处理单元的第(a+1)~2N个所述多个处理器接脚组与所述第一PCI-E插槽的第(a+1)~2N个所述多个第一PCI-E接脚组之间。If the first expansion card is inserted into the first PCI-E slot and the second expansion card is not inserted into the second PCI-E slot, the first to a of the multiple PCI-E channels are formed in the first to a of the plurality of processor pin groups of the central processing unit and the first to a of the first PCI-E slots of the first PCI-E slot. Between the E pin groups, the a+1-2Nth PCI-E channels are formed between the (a+1)-2Nth processor pin groups of the central processing unit and all the processor pin groups (a+1)-2Nth. between the (a+1)-2Nth first PCI-E pin groups of the first PCI-E slot. 9.如权利要求1所述的基本输入输出系统对PCI-E通道的控制方法,其特征在于,2N为16。9 . The method for controlling a PCI-E channel by a basic input output system according to claim 1 , wherein 2N is 16. 10 .
CN201610527589.XA 2016-07-06 2016-07-06 Control method of PCI-E channel by basic input and output system Active CN107590089B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610527589.XA CN107590089B (en) 2016-07-06 2016-07-06 Control method of PCI-E channel by basic input and output system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610527589.XA CN107590089B (en) 2016-07-06 2016-07-06 Control method of PCI-E channel by basic input and output system

Publications (2)

Publication Number Publication Date
CN107590089A CN107590089A (en) 2018-01-16
CN107590089B true CN107590089B (en) 2020-09-18

Family

ID=61044826

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610527589.XA Active CN107590089B (en) 2016-07-06 2016-07-06 Control method of PCI-E channel by basic input and output system

Country Status (1)

Country Link
CN (1) CN107590089B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110008159A (en) * 2019-04-11 2019-07-12 苏州浪潮智能科技有限公司 PCIE width automatic adaptation method, device and electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050240703A1 (en) * 2004-04-21 2005-10-27 Vincent Nguyen Method and apparatus for providing a bus in a computer system
US20090157920A1 (en) * 2007-12-13 2009-06-18 International Business Machines Corporation Dynamically Allocating Communication Lanes For A Plurality Of Input/Output ('I/O') Adapter Sockets In A Point-To-Point, Serial I/O Expansion Subsystem Of A Computing System
CN101930479A (en) * 2010-08-27 2010-12-29 中国科学院上海微系统与信息技术研究所 A multi-channel data acquisition device based on PCIE protocol
CN104170322A (en) * 2014-04-02 2014-11-26 华为技术有限公司 Method, device and system for processing PCIe link failure

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050240703A1 (en) * 2004-04-21 2005-10-27 Vincent Nguyen Method and apparatus for providing a bus in a computer system
US20090157920A1 (en) * 2007-12-13 2009-06-18 International Business Machines Corporation Dynamically Allocating Communication Lanes For A Plurality Of Input/Output ('I/O') Adapter Sockets In A Point-To-Point, Serial I/O Expansion Subsystem Of A Computing System
CN101930479A (en) * 2010-08-27 2010-12-29 中国科学院上海微系统与信息技术研究所 A multi-channel data acquisition device based on PCIE protocol
CN104170322A (en) * 2014-04-02 2014-11-26 华为技术有限公司 Method, device and system for processing PCIe link failure

Also Published As

Publication number Publication date
CN107590089A (en) 2018-01-16

Similar Documents

Publication Publication Date Title
CN107423169B (en) Method and system for testing high speed peripheral device interconnection equipment
TWI566104B (en) Systems for switching between multiple computing device interfaces and methods and systems for switching between pcie buses thereof
CN100444145C (en) Dynamic Reconfiguration of PCI Express Links
JP6517243B2 (en) Link Layer / Physical Layer (PHY) Serial Interface
US20170068630A1 (en) Runtime drive detection and configuration
US8756360B1 (en) PCI-E compatible chassis having multi-host capability
US20110302357A1 (en) Systems and methods for dynamic multi-link compilation partitioning
TWI626592B (en) Pci-e lanes controlling method of bios
US9043528B2 (en) Bridge between a peripheral component interconnect express interface and a universal serial bus 3.0 device
JP2018536239A (en) Increased data flow in universal serial bus (USB) cables
TW201633162A (en) Adapter to concatenate connectors
CN109947682A (en) A server motherboard and server
CN104021809A (en) Universal serial bus (USB) storage
US20200117248A1 (en) External electrical connector and computer system
EP3382567B1 (en) Multiple storage devices implemented using a common connector
CN107590089B (en) Control method of PCI-E channel by basic input and output system
TW201913398A (en) Intelligent PCIe slot channel assignment method capable of achieving flexible configuration of the number of transmission channels according to a bandwidth requirement of PCIe expansion cards without manually adjusting a control channel switch
CN204360266U (en) riser card
US11513978B2 (en) Dual data ports with shared detection line
TWI587154B (en) Main board module having switchable pci-e lanes
US9262358B2 (en) Expresscard adapter and electronic device
CN107590091B (en) Mainboard module with switchable PCI-E channel
CN115599727A (en) A PCIE device bandwidth allocation method and related devices
US20200201389A1 (en) Expandable electronic computing system
US20140359193A1 (en) Interface transmission device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant