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 PDFInfo
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 31
- 238000013146 percutaneous coronary intervention Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000002093 peripheral effect Effects 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 230000009977 dual effect Effects 0.000 description 2
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Landscapes
- Stored Programmes (AREA)
- Tests Of Electronic Circuits (AREA)
Abstract
一种基本输入输出系统对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 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.
Description
技术领域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-
因此,若只有第一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-
若两个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
然而,由于目前高效能的中央处理单元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
发明内容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
以基本输入输出系统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
本实施例的基本输入输出系统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
首先要说明的是,本实施例的基本输入输出系统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
图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
中央处理单元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
更明确地说,在本实施例中,中央处理单元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
中央处理单元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
值得一提的是,第一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-
因此,为了可以让只有第一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-
图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
首先,如步骤110,基本输入输出系统50取得第一PCI-E插槽11及第二PCI-E插槽12上是否分别有插设第一扩展卡及第二扩展卡的信息。First, in step 110, the
实际上会有三种状况,第一,只有第一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-
接下来,若第一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-
若第一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-
更明确地说,第一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-
若第一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-
更明确地说,若只有第二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-
综上所述,由于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)
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)
| 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)
| 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 |
-
2016
- 2016-07-06 CN CN201610527589.XA patent/CN107590089B/en active Active
Patent Citations (4)
| 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 |