Device and server for preventing line fault caused by hot plug of external plug-in card

文档序号:486069 发布日期:2022-01-04 浏览:24次 中文

阅读说明:本技术 一种防止外插卡热插拔时导致线路故障的装置及服务器 (Device and server for preventing line fault caused by hot plug of external plug-in card ) 是由 吴常顺 于 2021-09-26 设计创作,主要内容包括:一种防止外插卡热插拔时导致线路故障的装置,包括第一、第二控制器及扩展模块,扩展模块与第一控制器和多个外插卡的Slot相连,配置用于实现第一控制器与多个外插卡的Slot的连接;第二控制器的输入端与多个外插卡的Slot相连,第二控制器的输出端与扩展模块相连,配置用于根据多个外插卡Slot的接入状态向扩展模块发送对应的使能指令以实现对多个外插卡Slot的控制;扩展模块包括多个连接控制器,多个连接控制器配置用于接收来自第二控制器的使能指令以控制与多个连接控制器连接的第一控制器和对应的外插卡Slot连接的通断。(A device for preventing line faults caused by hot plug of an external plug-in card comprises a first controller, a second controller and an extension module, wherein the extension module is connected with the first controller and slots of a plurality of external plug-in cards and is configured for realizing connection of the first controller and the slots of the plurality of external plug-in cards; the input end of the second controller is connected with the slots of the plurality of external plug-in cards, the output end of the second controller is connected with the expansion module and is configured for sending corresponding enabling instructions to the expansion module according to the access states of the slots of the plurality of external plug-in cards so as to realize the control of the slots of the plurality of external plug-in cards; the expansion module comprises a plurality of connection controllers, and the plurality of connection controllers are configured to receive an enabling instruction from the second controller to control the connection and disconnection of the first controller connected with the plurality of connection controllers and the corresponding external plug-in card Slot connection.)

1. The utility model provides a device that leads to line fault when preventing outer plug-in card hot plug which characterized in that includes first controller, second controller and expansion module, wherein:

the extension module is respectively connected with the first controller and the slots of the plurality of the external plug-in cards and is configured to realize the connection of the first controller and the slots of the plurality of the external plug-in cards;

the input end of the second controller is connected with the slots of the plurality of the external plug-in cards, the output end of the second controller is connected with the expansion module, and the second controller is configured to send corresponding enabling instructions to the expansion module according to the access states of the plurality of the external plug-in cards slots so as to control the plurality of the external plug-in cards slots;

the expansion module comprises a plurality of connection controllers, and the connection controllers are configured to receive the enabling instruction from the second controller to control the connection and disconnection of the first controller connected with the connection controllers and the corresponding external plug-in card Slot connection.

2. The apparatus of claim 1, wherein a first data terminal of the plurality of connection controllers is connected to a Slot of the plurality of add-in cards in a one-to-one correspondence, a second data terminal of the plurality of connection controllers is connected to the first controller in a many-to-one correspondence, and a control terminal of the plurality of connection controllers is connected to the second controller in a many-to-one correspondence.

3. The apparatus of claim 1, wherein the expansion module comprises:

a first expander respectively connected with the first controller and the plurality of the external plug-in cards Slot and configured to expand a bus for realizing data transmission between the first controller and the plurality of the external plug-in cards Slot.

4. The apparatus of claim 3, wherein the expansion module further comprises:

a second expander respectively connected to the first controller and the plurality of add-in cards Slot and configured to transmit the in-place signals of the plurality of add-in cards to the first controller.

5. The apparatus of claim 1, wherein the second controller is further configured to:

the Slot access state information of the external plug-in card is obtained, and whether the Slot external equipment of the external plug-in card is connected or disconnected is judged according to the access state information;

and in response to disconnection of the external Slot equipment of the external plug-in card, disconnecting the communication of the Slot of the external plug-in card and the first controller.

6. The apparatus of claim 5, wherein the second controller is further configured to:

in response to the external Slot device of the external plug-in card being disconnected, the second controller sends a disconnection instruction to a connection controller connected with the Slot of the external plug-in card to disconnect the communication between the Slot of the external plug-in card and the first controller.

7. The apparatus of claim 5, wherein the second controller is further configured to:

delaying access of communication of the Slot of the add-in card with the first controller for a predetermined time in response to access of the external Slot device of the add-in card.

8. The apparatus of claim 7, wherein the second controller is further configured to:

and responding to the access of the external Slot equipment of the external plug-in card, and sending a connection instruction to a connection controller connected with the Slot of the external plug-in card after waiting for the preset time so as to delay the connection of the Slot of the external plug-in card and the first controller.

9. The apparatus of claim 1, wherein the first controller is a BMC, the plurality of connection controllers are PCA9511 chips, and the plurality of PCA9511 chips are respectively connected to slots I of the plurality of add-in cards2And C, data buses are connected.

10. A server, characterized in that it comprises the device of claims 1-9.

Technical Field

The invention belongs to the field of computer hardware, and particularly relates to a device and a method for preventing line faults caused by hot plug of an external plug-in card, a computer and a server.

Background

BMC will pass I2The C-bus obtains back-end card information such as FRU, temperature, etc. Under the condition of more external plug-in cards, in order to save I2The number of C-ports is typically extended by devices such as PCA9548, as shown in fig. 2 of the drawings. The external plug-in card supports live hot plug, which leads to I2C bus probabilistic hang up. Such as plugging Slot0 cards, may result in an I between BMC and PCA95482C hang up and often causes I2C the mutual interference of the buses. This results in the whole strip I2I on the C bus2The device C cannot communicate with the BMC, and the BMC cannot acquire corresponding information on the corresponding external card plug-in device, so that the BMC fails, and even subsequent services of the server cannot be effectively performed sometimes.

Therefore, a solution that can effectively solve the above problems is needed.

Disclosure of Invention

In order to solve the above problems, an aspect of the present invention provides an apparatus for preventing a line fault caused by hot plugging an external card, comprising a first controller, a second controller and an expansion module, wherein the first controller, the second controller and the expansion module are connected to the first controller

The extension module is respectively connected with the first controller and the slots of the plurality of the external plug-in cards and is configured to realize the connection of the first controller to the slots of the plurality of the external plug-in cards;

the input end of the second controller is connected with the slots of the plurality of the external plug-in cards, the output end of the second controller is connected with the expansion module, and the second controller is configured to send corresponding enabling instructions to the expansion module according to the access states of the plurality of the external plug-in cards slots so as to control the plurality of the external plug-in cards slots;

the expansion module comprises a plurality of connection controllers, and the connection controllers are configured to receive the enabling instruction from the second controller to control the connection and disconnection of the first controller connected with the connection controllers and the corresponding external plug-in card Slot connection.

In some embodiments of the present invention, first data terminals of the plurality of connection controllers are connected to slots of the plurality of add-in cards in a one-to-one correspondence, second data terminals of the plurality of connection controllers are connected to the first controller in a many-to-one correspondence, and control terminals of the plurality of connection controllers are connected to the second controller in a many-to-one correspondence.

In some embodiments of the invention, the expansion module comprises:

a first expander respectively connected with the first controller and the plurality of the card slots and configured to expand a bus for data transmission between the first controller and the plurality of the card slots.

In some embodiments of the invention, the expansion module further comprises:

a second expander respectively connected to the first controller and the plurality of add-in cards Slot and configured to transmit the in-place signals of the plurality of add-in cards to the first controller.

In some embodiments of the invention, the second controller is further configured to:

the Slot access state information of the external plug-in card is obtained, and whether the Slot external equipment of the external plug-in card is connected or disconnected is judged according to the access state information;

and in response to disconnection of the external Slot equipment of the external plug-in card, disconnecting the communication of the Slot of the external plug-in card and the first controller.

In some embodiments of the invention, the second controller is further configured to:

in response to the external Slot device of the external plug-in card being disconnected, the second controller sends a disconnection instruction to a connection controller connected with the Slot of the external plug-in card to disconnect the communication between the Slot of the external plug-in card and the first controller.

In some embodiments of the invention, the second controller is further configured to:

delaying access of communication of the Slot of the add-in card with the first controller for a predetermined time in response to access of the external Slot device of the add-in card.

In some embodiments of the invention, the second controller is further configured to:

and responding to the access of the external Slot equipment of the external plug-in card, and sending a connection instruction to a connection controller connected with the Slot of the external plug-in card after waiting for the preset time so as to delay the connection of the Slot of the external plug-in card and the first controller.

In some embodiments of the invention, further comprising:

the first controller is BMC, and the plurality of connection controllers are PCA9511 chips;

wherein, the plurality of PCA9511 chips are respectively connected with the I of the slots of the plurality of external plug-in cards2And C, data buses are connected.

In yet another aspect of the present invention, a server is further provided, where the server includes the apparatus in the foregoing embodiments.

According to the device and the method for preventing the line fault caused by the hot plug of the external plug-in card, the communication between the external plug-in card Slot and the BMC is realized by introducing the intermediate connection controller2C, communication is carried out, on-off of the connection controller is controlled through the CPLD, communication initiation time of the Slot and the BMC is delayed, and I is carried out with the BMC after external equipment on the external card Slot is stabilized2And C, communication. Can effectively avoid I caused by instability of external plug-in card Slot2C hang dead and I2C mutual interference between buses.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.

Fig. 1 is a schematic structural diagram of an apparatus for preventing a line fault from being caused when an external card is hot plugged according to the present invention;

FIG. 2 is a schematic structural diagram of a conventional external plug-in connector;

fig. 3 is a schematic structural diagram of a server having a device for preventing a line fault when an external card is hot plugged.

Detailed Description

In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.

It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it is understood that "first" and "second" are only used for convenience of expression and should not be construed as limitations to the embodiments of the present invention, and the descriptions thereof in the following embodiments are omitted.

In the existing server, as more and more external devices supporting hot plug are required to be provided for services to improve the high scalability of the server, and the number of PCIE channels supported by the CPU is increasing, the performance of the external card device is also increasing, and devices to be managed or monitored by the BMC are increasing, and a common management interface I of the BMC is increased2The number of C is limited, so that only the cheaper expansion chip pair I can be used2C, the number of the supported connections is expanded to deal with more and more external plug-in card devices, but the more and more external plug-in card devices can cause I for acquiring the state information of the external plug-in card devices in the hot plug process2And C, the bus hangs or the slots of a plurality of external plug-in cards connected with the expansion chip interfere with each other.

In order to solve the above problems, in one aspect, the present invention provides an apparatus for preventing a line fault caused by hot plugging of an add-in card, which includes a first controller, a second controller and an expansion module, wherein the first controller, the second controller and the expansion module are connected to the first controller

The extension module is respectively connected with the first controller and the slots of the plurality of the external plug-in cards and is configured to realize the connection of the first controller and the slots of the plurality of the external plug-in cards;

the input end of the second controller is connected with the slots of the plurality of the external plug-in cards, the output end of the second controller is connected with the extension module, and the second controller is configured to send corresponding enabling instructions to the extension module according to the access states of the plurality of the external plug-in cards slots so as to control the plurality of the external plug-in cards slots;

the expansion module comprises a plurality of connection controllers, and the connection controllers are configured to receive the enabling instruction from the second controller to control the connection and disconnection of the first controller connected with the connection controllers and the corresponding external plug-in card Slot connection.

In some embodiments of the present invention, first data terminals of the plurality of connection controllers are connected to slots of the plurality of add-in cards in a one-to-one correspondence, second data terminals of the plurality of connection controllers are connected to the first controller in a many-to-one correspondence, and control terminals of the plurality of connection controllers are connected to the second controller in a many-to-one correspondence.

In this embodiment, as shown in fig. 1, in the present invention, the first controller 1 is a BMC, the second controller 3 is a CPLD, and the expansion module 2 is connected to the slots of 8 external plug-in cards and one first controller 1, respectively, the slots of the external plug-in cards are as slots 0-Slot7 in the figure. The connection between the expansion module 2 and the BMC1 is two I2C data bus. Two strips I of BMC12Each I of the C bus2The C bus is extended to the slots of the 8 external plug-in cards, the CPLD3 is also respectively connected with the slots of the 8 external plug-in cards, and whether external equipment is connected or disconnected on the slots of the 8 external plug-in cards is monitored. The expansion module 2 also comprises 8 connection controllers 6, wherein the 8 connection controllers 6 all adopt PCA9511 chips as connection chips, and one end of each PCA9511 chip passes through I2C connecting to Slot of external plug-in card2And the other end of the C pin is connected to the BMC1 through an extension chip of the first extender 4, and an enabling control pin PWR _ EN of each PCA9511 chip is connected with a plurality of GPIO pins on the CPLD3 in a one-to-one correspondence manner. The PCA9511 chip is used for realizing the Slot of the external plug-in card and the I of the BMC12C communication, namely disconnecting the Slot of the connected external plug-in card from the I of the BMC1 when the PCA9511 chip stops working2And C, communication. Whether each PCA9511 chip is in a working state or a closed state depends on the CPLD3 corresponding to each PCA9511 chipThe potential of the pin of (1) changes.

In some embodiments of the invention, the expansion module comprises:

a first expander, which is respectively connected to the first controller 1 and the plurality of add-in cards Slot and is configured to expand a bus for data transmission between the first controller 1 and the plurality of add-in cards Slot.

In the present embodiment, the expansion module 2 is provided with a device for expanding I2A first expander 4 of the C data bus, wherein the first expander 4 adopts a PCA9548 chip and is used for realizing 1-to-8I2C extension, PCA9548 to 1 way I2Expansion of C bus interface into 8-way I2C bus interface, I extended from each path2The C interfaces are each connected to a PCA9511 chip. Further communication of the BMC1 to the plurality of external plug-in card devices is achieved through the plurality of external plug-in card slots to which the PCA9511 is connected.

In some embodiments of the invention, the expansion module further comprises:

a second expander respectively connected to the first controller and the plurality of add-in cards Slot and configured to transmit the in-place signals of the plurality of add-in cards to the first controller.

In this embodiment, the expansion module 2 is further provided with a second expander 5, the second expander 5 adopts a PCA9555 chip, and one end of the PCA9555 chip and the other path I of the BMC2The bus C is connected, and the other end is connected to the in-place signal pins on the external plug-in cards Slot through GPIO interfaces. Collecting the information of whether the Slot external devices of the plurality of external plug-in cards are in place through the GPIO pin, and then passing through the I2The C bus is sent to the BMC.

In some embodiments of the invention, the second controller is further configured to:

the Slot access state information of the external plug-in card is obtained, and whether the Slot external equipment of the external plug-in card is connected or disconnected is judged according to the access state information;

and in response to disconnection of the external Slot equipment of the external plug-in card, disconnecting the communication of the Slot of the external plug-in card and the first controller.

In this embodiment, the second controller 3CPLD determines whether there is a change in the plugging/unplugging of the external device on the Slot of the corresponding external card by the change in the potential of the pins of the GPIOs connected to the bit pin of the Slot of the external card on the CPLD. For example, as shown in fig. 1, if there is no external device on the Slot0, the potential on the bit pin of the Slot0 is low, and the potential of the corresponding GPIO on the CPLD3 connected to it is also low, it is necessary to set the I corresponding to the Slot of the extrapolation card to communicate with the BMC2The C bus is disconnected.

In some embodiments of the invention, the second controller is further configured to:

in response to the Slot external device of the add-in card being disconnected, the second controller sends a disconnection instruction to the connection controller 6 to which the Slot of the add-in card is connected to disconnect the communication of the Slot of the add-in card with the first controller.

In this embodiment, the CPLD monitors the in-place state of the slots of the plurality of external plug-in cards by connecting a set of GPIOs to the in-place pins of the slots of the plurality of external plug-in cards, and when the CPLD detects that the Slot external device of the corresponding external plug-in card is pulled out, the level of the pin of the GPIO corresponding to the Slot of the external plug-in card in another set of GPIOs connected to the plurality of connection controllers PCA9511 is pulled down, so that the level of the enable control pin PWR _ EN of the PCA9511 connected to the pin of the GPIO becomes low, resulting in the change of the PCA9511 into the off state.

In some embodiments of the invention, the second controller is further configured to:

delaying access of communication of the Slot of the add-in card with the first controller for a predetermined time in response to access of the external Slot device of the add-in card.

In this embodiment, the CPLD monitors the in-place state of the SLOTs of the multiple add-out cards by connecting the set of GPIOs with the in-place pins of the SLOTs of the multiple add-out cards, and when an external device is inserted into the SLOTs of the multiple add-out cards, the level of the corresponding Slot _ PRST pin is pulled high, thereby triggering the potential of one GPIO pin of the set of GPIOs on the CPLD connected to the CPLD to be pulled high, and the CPLD pulls the potential of one GPIO pin of the set of GPIOs according to the corresponding GPIO pinThe potential change confirms that the external equipment access exists on the corresponding external card Slot. And the external equipment on the Slot of the external plug-in card is delayed for 1 second to establish I with the BMC2And C, communication.

In some embodiments of the invention, the second controller is further configured to:

and in response to the access of the external Slot equipment of the external plug-in card, sending a connection instruction to the connection controller 6 connected with the Slot of the external plug-in card after waiting for the preset time so as to delay the connection of the Slot of the external plug-in card and the first controller.

In this embodiment, when an external device is inserted into a Slot of a plurality of external plug-in cards, the level of the corresponding Slot _ PRST pin is pulled high, and further the level of one GPIO pin of a group of GPIOs on the CPLD connected to the Slot is triggered to be pulled high, and the CPLD confirms that the external device is inserted into the Slot of the corresponding external plug-in card according to the change of the level of the corresponding GPIO pin. The timing is waited, after 1 second, the level of a pin of another group of GPIO (general purpose input/output) connected with the PCA9511 of the plurality of connection controllers corresponding to the Slot of the external plug-in card is pulled up, and then the PCA9511 of the connection controller connected with the Slot of the external plug-in card is activated to be in a working state, so that the external device on the Slot of the external plug-in card establishes I with the BMC2And C, communication.

In some embodiments of the invention, further comprising:

the first controller is BMC, and the plurality of connection controllers 6 are PCA9511 chips;

wherein, the plurality of PCA9511 chips are respectively connected with the I2C data buses of the slots of the plurality of external plug-in cards.

In some embodiments of the invention, further comprising:

the second controller is a CPLD, and a plurality of GPIO pins of the CPLD are respectively connected with the on-site signal pins of the slots of the plurality of the external plug-in cards.

As shown in fig. 3, another aspect of the present invention further provides a server 20, where the server includes the apparatus 21 in the foregoing embodiment, and includes: a first controller 1, a second controller 3 and an expansion module 2, wherein

The extension module 2 is respectively connected with the first controller 1 and the slots of a plurality of the external plug-in cards and is configured to realize the connection of the first controller 1 and the slots of the plurality of the external plug-in cards;

the input end of the second controller 3 is connected to slots of the plurality of external plug-in cards, the output end of the second controller 3 is connected to the extension module, and the second controller 3 is configured to send corresponding enabling instructions to the extension module 2 according to access states of the plurality of external plug-in cards slots to realize control over the plurality of external plug-in cards slots;

wherein the expansion module 2 comprises a plurality of connection controllers 6, and the plurality of connection controllers 6 are configured to receive the enabling instruction from the second controller to control the connection and disconnection of the first expander 1 and the corresponding external plug-in card Slot connected with the plurality of connection controllers 6.

According to the device and the method for preventing the line fault caused by the hot plug of the external plug-in card, the communication between the external plug-in card Slot and the BMC is realized by introducing the intermediate connection controller2C, communication is carried out, on-off of the connection controller is controlled through the CPLD, communication initiation time of the Slot and the BMC is delayed, and I is carried out with the BMC after external equipment on the external card Slot is stabilized2And C, communication. Can effectively avoid I caused by instability of external plug-in card Slot2C hang dead and I2C mutual interference between buses.

The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.

It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.

The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.

It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.

Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of an embodiment of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种路径的禁用方法及系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!