Electronic equipment and hot plug method executed by electronic equipment
By introducing a substrate management controller and processor into the server, the control of slot plug-in and unplugging status and the management of communication link interrupt status are solved, and the problem of power outage in the server needs to be replaced, improving the applicability and business continuity of the server.
Patent Information
- Application Number
- CN202510368857.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-27
- Publication Date
- 2025-04-25
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In a server, when a faulty connected peripheral device interconnection device needs to be replaced, the power must be cut off, which will affect the operation of the service and reduce the applicability of the server.
By introducing a substrate management controller and processor into the electronic device, the plug-and-removal state of the slot is set, and the interrupt state of the communication link is determined based on the status, the connection control between the slot and the extended device is realized, and the hot-swap function is supported.
Replace faulty equipment without power off, reducing time, personnel and machine losses, and improving server applicability and business continuity.
Smart Images

Figure CN119883990A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of servers, and more particularly to an electronic device and a hot plug method performed by the electronic device. Background Art
[0002] In the server field, the core components of the server are processors, memory, non-volatile memory host controller interface hard disk and other devices. In addition, according to the functions and applicable scenarios of the server, peripheral device interconnection devices can also be connected, such as external device interconnection bus disk array card.
[0003] In actual use, when replacing a failed peripheral device interconnection device, the server needs to be powered off, which affects the business operation of the server and reduces the applicability of the server. Summary of the invention
[0004] In view of the above problems, the present invention provides an electronic device and a hot-swap method performed by the electronic device for improving the applicability of a server.
[0005] According to a first aspect of the present invention, there is provided an electronic device, comprising: a plurality of slots, the slots being used to access expansion devices; a baseboard management controller, the baseboard management controller having a plurality of first interfaces, the first interface being connected to at least one of the plurality of slots, the baseboard management controller being used to set the plug-in status of each first interface; a processor, the processor being connected to the plurality of slots and the baseboard management controller, wherein the processor is connected to each slot via a corresponding communication link, the processor being used to determine whether the communication link of the slot connected to the first interface is in an interrupt-enabled state or an interrupt-disabled state according to the plug-in status of the first interface provided by the baseboard management controller, if the communication link is in an interrupt-enabled state, the connection between the slot corresponding to the communication link and the expansion device is disconnected, if the communication link is in an interrupt-disabled state, the connection between the slot corresponding to the communication link and the expansion device is allowed.
[0006] The second aspect of the present invention provides a hot plug method performed by an electronic device, comprising: a baseboard management controller sets the plug-in status of each first interface; a processor determines whether the communication link of a slot connected to the first interface is in an interrupt-enabled state or an interrupt-disabled state according to the plug-in status of the first interface provided by the baseboard management controller; if the interrupt status of the communication link is the interrupt-enabled state, the connection between the slot corresponding to the communication link and the expansion device is disconnected; if the interrupt status of the communication link is the interrupt-disabled state, the connection between the slot corresponding to the communication link and the expansion device is allowed. BRIEF DESCRIPTION OF THE DRAWINGS
[0007] The above contents and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:
[0008] Figure 1 A schematic diagram of an electronic device according to an embodiment of the present invention is shown.
[0009] Figure 2 A schematic diagram of an electronic device according to another embodiment of the present invention is shown.
[0010] Figure 3 A schematic diagram of an electronic device according to another embodiment of the present invention is shown.
[0011] Figure 4 A schematic diagram of an electronic device according to yet another embodiment of the present invention is shown.
[0012] Figure 5 A schematic structural diagram of an operating console control panel according to yet another embodiment of the present invention is shown.
[0013] Figure 6 A schematic structural diagram of an operating console control panel according to yet another embodiment of the present invention is shown.
[0014] Figure 7 A schematic diagram of an electronic device of a multi-core processor according to an embodiment of the present invention is shown.
[0015] Figure 8 A schematic diagram of line connections of a peripheral device interconnection link according to an embodiment of the present invention is shown.
[0016] Fig. 9 A flow chart of a hot plug method performed by an electronic device according to an embodiment of the present invention is shown.
[0017] Fig.10 A structural block diagram of a hot-swap device according to an embodiment of the present invention is shown.
[0018] Fig.11 A flow chart of a hot plugging method performed by an electronic device according to another embodiment of the present invention is shown.
[0019] Fig.12 A flow chart of a hot swap method performed by an electronic device based on a baseboard management controller according to an embodiment of the present invention is shown.
[0020] Fig.13 A flow chart of a hot-swap method performed by an electronic device based on an operation console control panel according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0021] Below, embodiments of the present invention will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present invention. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of embodiments of the present invention. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of concepts of the present invention.
[0022] The terms used herein are only for describing specific embodiments and are not intended to limit the present invention. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0023] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0024] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0025] There are many types of peripheral component interconnect (PCI) devices, such as but not limited to PCI network cards, PCI graphics processing units (GPUs), PCI interface accelerator cards, etc. Different combinations of peripheral component interconnect devices form different server configuration models, and different server configuration models are applicable to different scenarios. For example, network service servers require more network card devices, such as PCI network cards or OCP (Open Compute Project) network cards; for storage data servers, a large number of NVME (Non Volatile Memory Express) hard disks or RAID (Redundant Array of Independent Disks) cards are needed to transfer more hard disk devices for storage; for computing servers or AI (Artificial Intelligence) servers, more GPUs are needed to assemble and form GPU servers to meet the computing power requirements. Some servers have higher computing performance requirements or higher read and write speed timeliness requirements, and also have higher requirements for the number and capacity of server memory, which is usually solved by increasing the capacity of a single memory stick or increasing the number of memories. Regardless of the configuration, the server needs to be assembled when it leaves the factory and shipped to each customer's computer room or data center to meet the customer's needs.
[0026] When using the server, customers will operate various devices of the server. For example, if the NVME hard disk, the storage medium of the server, encounters a fault during use, the hot-swap function of the NVME hard disk can be used to unplug the faulty hard disk and insert a new hard disk for replacement, ensuring that the server can be replaced without powering off and disassembling the machine. For another example, the server has a large memory configuration and in actual business applications, when the memory consumes too much energy or is used less, the redundant and unused memory can be turned off by controlling the memory controller to reduce the overall power consumption of the server or extend the memory life of the server. For another example, when using a network card, especially an OCP network card, hot-swap operations need to be performed according to actual conditions.
[0027] However, in actual use, traditional hot-swap functions require conventional means such as reserving memory resources in advance, but this is not applicable to PCI network card devices and the hot-swap function implemented in the system.
[0028] Figure 1 A schematic diagram of an electronic device according to an embodiment of the present invention is shown. Figure 2 A schematic diagram of an electronic device according to another embodiment of the present invention is shown.
[0029] like Figure 1 As shown, the electronic device includes a plurality of slots Slot1, Slot2, ..., SlotN, a baseboard management controller (Baseboard Management Controller, BMC) 110 and a processor 120. Each slot Slot1, Slot2, ..., SlotN is used to access an expansion device. For example, each slot can be used to connect an expansion device.
[0030] The baseboard management controller 110 has a plurality of first interfaces. In some embodiments, the first interface may be a general purpose input output (GPIO) interface. Figure 1 In the figure, multiple first interfaces are represented by GPIO1, GPIO2, …, GPION. In some embodiments, the baseboard management controller 110 may include a BMC circuit 1101 and an interface circuit 1102, and the interface circuit 1102 includes multiple first interfaces GPIO1, GPIO2, …, GPION. The interface circuit 1102 is connected to the BMC circuit 1101, and the BMC circuit 1101 can set the plug-in and unplug status of each first interface GPIO1, GPIO2, …, GPION in the interface circuit 1102. The BMC circuit 1101 and the interface circuit 1102 are connected via an integrated circuit bus (Inter-Integrated Circuit, I2C). In other embodiments, the baseboard management controller 110 may be implemented in the form of an integrated circuit, in which multiple first interfaces GPIO1, GPIO2, …, GPION are integrated, such as Figure 2 shown.
[0031] The first interface is connected to at least one slot among the plurality of slots. Figure 1 In the embodiment, the first interface is connected to the first slot in a one-to-one correspondence, that is, the first interface GPIO1 is connected to the slot Slot1, the first interface GPIO2 is connected to the slot Slot2, and so on. However, the embodiments of the present invention are not limited thereto, and the first interface can be connected to one or more slots as needed, for example, the first interface GPIO1 is connected to the slots Slot1 and Slot2, the first interface GPIO2 is connected to Slot1, Slot2 and Slot3, and so on. The baseboard management controller 110 can set the plug-in and unplug status of each first interface GPIO1, GPIO2, …, GPION. Figure 1 In the example, the number of first interfaces and the number of slots are both described using N as an example, however, the embodiments of the present invention are not limited thereto, and the number of first interfaces and the number of slots can be set as needed, and can be equal or unequal.
[0032] The processor 120 is connected to the baseboard management controller 110 to receive the status of each first interface provided by the baseboard management controller 110. For example, the baseboard management controller is connected to the processor via an LPC (Low Pin Count) bus or a PCI bus. The processor 120 is also connected to each slot Slot1, Slot2, ..., SlotN through a corresponding communication link. In some embodiments, the slot can be used to connect a PCI device, and the communication link can be a PCI link, so Figure 1 The communication links connected to the slots are shown as PCI link 1, PCI link 2, ..., PCI link N. Slot 1 is connected to processor 120 via PCI link 1, slot 2 is connected to processor 120 via PCI link 2, and so on.
[0033] The processor 120 can determine whether the communication link of the slot connected to the first interface is in an interrupt-enabled state or an interrupt-disabled state according to the plug-in and unplugging states of the first interface GPIO1, GPIO2, …, GPION. For example, if the plug-in and unplugging state of the first interface GPIO1 is the first state, the communication link of the slot Slot1 connected to the first interface GPIO1 (i.e., PCI link 1) is set to an interrupt-enabled state; if the plug-in and unplugging state of the first interface GPIO1 is the second state, the communication link of the slot Slot1 connected to the first interface GPIO1 (i.e., PCI link 1) is set to an interrupt-disabled state, and a system control interrupt (SCI) is implemented according to whether the communication link is in an interrupt-enabled state or an interrupt-disabled state.
[0034] The processor 120 can control the insertion and removal of the slot corresponding to the communication link according to the state of each communication link. If the communication link is in the interrupt enable state, the connection between the slot corresponding to the communication link and the expansion device is disconnected. If the communication link is in the interrupt disable state, the connection between the slot corresponding to the communication link and the expansion device is allowed. Figure 1 If PCI link 1 is in interrupt-enabled state, processor 120 disconnects the connection between slot Slot1 corresponding to PCI link 1 and the expansion device. If PCI link 1 is in interrupt-disabled state, processor 120 allows the connection between slot Slot1 corresponding to PCI link 1 and the expansion device.
[0035] In some embodiments, the electronic device may be a server, and the processor 120 of the electronic device may be a main processor of the server, such as a central processing unit. The processor 120 may be a single processor or a combination of multiple processors, which will be described in detail below.
[0036] According to an embodiment of the present invention, the plug-in state of the first interface is set by the baseboard management controller, so that the slot connected to the first interface also has the same plug-in state, thereby realizing the setting of the plug-in state of the corresponding slot by the baseboard management controller; because the processor is connected to each slot through the corresponding communication link, the processor can determine whether the interrupt state of the communication link is an interrupt-enabled state or an interrupt-disabled state according to the plug-in state of the slot, thereby realizing the control of the connection between the slot and the expansion device, thereby avoiding shutting down and powering off the server when the slot is connected to the peripheral device interconnection device or the peripheral interconnection device is removed, and hot plugging of the peripheral interconnection device can be realized without physically installing or physically disassembling the peripheral interconnection device, thereby reducing the time loss, personnel loss and physical loss of the machine caused by hot plugging of the peripheral interconnection device, and improving the applicability of the server.
[0037] like Figure 2 As shown, the baseboard management controller 110 is implemented as an integrated circuit. When the integrated circuit has an unused general input and output GPIO interface, for example, the unused general input and output GPIO interface includes GPIO1 to GPION, and GPIO1 to GPION are used as the first interface. For the convenience of explanation, the unused general input and output pins are referred to as the general input and output interface of the baseboard management controller. The processor 120 can be connected to the baseboard management controller 110 through the LPC bus or the PCI bus. The connection relationship between the processor 120 and the slots Slot1 to SlotN is the same as Figure 1 The physical connection relationship of the electronic devices shown is consistent and will not be repeated here. The general input and output interface GPIO1 of the baseboard management controller 110 is connected to the slot Slot1, the general input and output interface GPIO2 of the baseboard management controller 110 is connected to the slot Slot2, and so on.
[0038] According to an embodiment of the present invention, the electronic device also includes a status register set for each communication link, and the plug-in state is the first state or the second state. The processor 120 can set the status value in the status register of the communication link of the slot connected to the first interface to the first value in response to the first interface being in the first state, and set the status value in the status register of the communication link of the slot connected to the first interface to the second value in response to the first interface being in the second state. The status value in the status register is the first value, indicating that the communication link corresponding to the status register is in the interrupt-enabled state, and the status value in the status register is the second value, indicating that the communication link corresponding to the status register is in the interrupt-disabled state. Assuming that the first interface GPIO1 is in the first state (for example, the status value is 1), the processor 120 sets the status value of the status register corresponding to the PCI link 1 to 1; assuming that the first interface GPIO1 is in the second state (the status value is 0), the processor 120 sets the status value of the status register corresponding to the PCI link 1 to 0, and so on.
[0039] The processor 120 can poll the status values in each status register, and in response to the status value in the status register being the first value, disconnect the slot of the communication link corresponding to the status register from the expansion device; in response to the status value in the status register being the second value, allow the slot of the communication link corresponding to the status register to be connected to the expansion device. According to an embodiment of the present invention, the first state and the second state are both plug-in and unplug states of the first interface. The first state corresponds to the state value in the status register of the communication link of the slot connected to the first interface being set to the first value, and the second state corresponds to the state value in the status register of the communication link of the slot connected to the first interface being set to the second value. For example, when the first interface is in the first state, the processor disconnects the connection between the slot corresponding to the communication link and the expansion device, and when the first interface is in the second state, the processor allows the connection between the slot corresponding to the communication link and the expansion device. For example, according to the above example, if the status value of the status register of PCI link 1 is 1, then the processor 120 will disconnect the connection between slot Slot1 and the expansion device to achieve the removal of the expansion device; if the status value of the status register of PCI link 1 is 0, then the processor 120 will allow slot Slot1 to be connected to the expansion device to achieve normal access to the expansion device.
[0040] In addition to the NVME hard disk, OCP network card and other devices mentioned above, other PCI devices also need to support and implement similar hot-swap functions, such as hot-swap functions of GPU cards and hot-swap functions of PCI network cards. However, in different systems, the implementation schemes may be different to achieve this function. But no matter what method is used, the ultimate goal is to support the hot-swap function under the system. However, no matter what method is used, the design adopts the SCI interrupt method of physically triggering the PCI link combined with the combination of the operating system direct power management (OSPM) driver under the operating system to implement the hot-swap function of the PCI device. The physical solution module, operating system module, Advanced Configuration and Power Interface (ACPI) protocol module, etc. are comprehensively designed in a modular way, which can reduce the time loss, personnel loss and physical loss of the machine caused by shutting down and powering off the server and physically disassembling it due to actual business needs.
[0041] The implementation of SCI interrupt requires enabling the SCI interrupt enable signal of the PCI link in the control function module. After the server is started, it is necessary to detect whether the SCI status bit of the corresponding PCI link has been set to 1 in a system that supports OSPM. If it is set to 1, the SCI interrupt mode is triggered and the faulty device or unneeded PCI device is kicked out of the system. If the SCI interrupt signal of the corresponding PCI link is not set to enable, the PCI device of the corresponding PCI link is used normally in the system. If you need to restore the removed PCI settings, you need to turn off the SCI interrupt enable signal of the corresponding PCI link before restarting the server or when the server is shut down, and then start the server. After entering the system, it can be used normally or the PCI device can be hot-removed again.
[0042] In an embodiment of the present invention, the enabling core of the SCI interrupt is to make an effective judgment by judging the state value of the control GPIO signal, and the source of the GPIO signal can be in a variety of ways. If the GPIO pin of the SCI interrupt is at a low level, there is no need to trigger the SCI interrupt under the operating system. If the GPIO pin connected to the SCI interrupt is at a high level, the SCI interrupt is triggered to enable. The enabling stage can be controlled before the server is started or after the server enters the operating system. Therefore, the effectiveness of the SCI interrupt must be implemented under the operating system. Even if it is set and not under the operating system, the hot removal action of the PCI device cannot be realized. The present invention not only realizes the hot removal function of the PCI device under the operating system, but also supports the hot insertion function under the system.
[0043] Figure 3A schematic diagram of an electronic device according to another embodiment of the present invention is shown. Figure 3 Electronic equipment and Figure 2 Similarly, the difference is at least that in addition to including multiple slots Slot1, Slot2, ..., SlotN, a baseboard management controller (BMC) 110 and a processor 120, it also includes an operation console control panel 130 with multiple second interfaces. For ease of description, the following will mainly describe the differences in detail.
[0044] like Figure 3 As shown, the electronic device also includes an operation console control panel 130 with multiple second interfaces. The second interface of the operation console control panel 130 can also be a GPIO interface, so it is represented by GPION+1, GPION+2, ..., GPIO2N. The second interface of the operation console control panel 130 is connected to at least one slot in the multiple slots. For example, the second interface GPION+1 of the operation console control panel 130 is connected to the slot SlotN+1, and the GPION+2 of the operation console control panel 130 is connected to the slot SlotN+2, and so on. The connection mode is similar to the first interface of the baseboard management controller, which will not be repeated here. The operation console control panel 130 can set the plug-in and unplug status of each second interface GPION+1, GPION+2, ..., GPIO2N.
[0045] exist Figure 3 In the figure, the processor 120 is connected to the slot SlotN+1 through the PIC link N+1, and the GPION+1 of the console control panel 130 is connected to the slot SlotN+1 through the PIC link N+2; the processor 120 is connected to the GPION+2 through the PIC link N+2, and the GPION+2 of the console control panel 130 is connected to the slot SlotN+2 through the PIC link N+2; and so on.
[0046] The processor 120 can determine whether the communication link of the slot connected to the first interface GPIO1, GPIO2, …, GPION of the baseboard management controller 110 is in an interrupt-enabled state or an interrupt-disabled state according to the plug-in and unplugging states of the first interface GPIO1, GPIO2, …, GPION of the baseboard management controller 110, and can also determine whether the communication link of the slot connected to the second interface is in an interrupt-enabled state or an interrupt-disabled state according to the plug-in and unplugging states of the second interface GPION+1, GPION+2, …, GPIO2N of the operation console control panel 130. The determination method is the same as the determination method based on the first interface of the baseboard management controller 110, and will not be repeated here.
[0047] In the case where the processor 120 determines the interruption state of the communication link according to the second interface GPION+1, GPION+2, …, GPIO2N of the console control panel 130, the processor 120 can poll the state of the second interface GPION+1, GPION+2, …, GPIO2N of the console control panel 130, and if the second interface is in the first state, the state value in the state register of the communication link of the slot connected to the second interface is set to the first value; if the second interface is in the second state, the state value in the state register of the communication link of the slot connected to the second interface is set to the second value. As mentioned above, the state value in the state register can be the first value, indicating that the communication link corresponding to the state register is in the interrupt enable state, and the state value in the state register can be the second value, indicating that the communication link corresponding to the state register is in the interrupt disable state. The processor 120 can control the insertion and removal of the slot of the communication link corresponding to the state register and the expansion device according to the state value of the state register, which will not be repeated here.
[0048] Figure 4 A schematic diagram of an electronic device according to yet another embodiment of the present invention is shown.
[0049] like Figure 4 As shown, in Figure 2 On the basis of the electronic device shown, an operation console control panel 130 with multiple second interfaces is added. Figure 4 and Figure 2 The consistent parts are not repeated here. The first interface of the baseboard management controller 110 and the second interface of the operation console control panel 130 can be connected to the same slot, or the first interface of the baseboard management controller 110 and the second interface of the operation console control panel can be connected to some slots at the same time, and a part of other slots are connected to the first interface of the baseboard management controller 110, and another part of other slots are connected to the second interface of the operation console control panel. Taking the first interface of the baseboard management controller 110 and the second interface of the operation console control panel as an example that the same slot can be connected at the same time, the GPIO1 of the baseboard management controller 110 and the operation console control panel 130 are both connected to the slot Slot1, and the GPIO2 of the baseboard management controller 110 and the operation console control panel 130 are both connected to the slot Slot2, and so on.
[0050] According to an embodiment of the present invention, the first interface of the baseboard management controller 110 and the second interface of the operating console control panel 130 are simultaneously connected to the same communication link, so that the interruption state of the communication link can be achieved through one of these two methods, thereby improving the reliability of enabling or disabling the interruption state of the communication link, and at the same time improving the reliability of the hot-swap function of the expansion device.
[0051] Figure 5A schematic structural diagram of an operating console control panel according to yet another embodiment of the present invention is shown.
[0052] like Figure 5 As shown, the console control panel 130 may include a plurality of second interfaces GPIO1, GPIO2, …, GPION and a plurality of third interfaces connected to the plurality of second interfaces GPIO1, GPIO2, …, GPION in one-to-one correspondence; the third interface may generate a control signal in response to a user operation, and the console control panel 130 may set the plug-in and unplugging states of the second interfaces GPIO1, GPIO2, …, GPION connected to the third interface according to the control signal provided by each third interface. The third interface may be a button B1, B2, …, BN. The buttons B1, …, BN may generate a control signal in response to a user operation, and the console control panel 130 may set the plug-in and unplugging states of the second interfaces GPIO1, GPIO2, …, GPION connected to the buttons according to the control signal provided by each button B1, …, BN.
[0053] According to an embodiment of the present invention, each third interface is connected to the corresponding second interface through a switch device. For example, when the third interface is a button B1, B2, ..., BN, the button B1 is connected to the second interface GPIO1 through the switch device S1, and the button B2 is connected to the second interface GPIO2 through the switch device S2, and so on. The switch device is used to ground the second interface according to the control signal provided by the third interface. The plug-in state of the second interface is a first state or a second state, the grounded second interface is in the first state, and the ungrounded second interface is in the second state. The processor 120 can set the state value in the state register of the communication link of the slot connected to the second interface to the first value in response to the second interface being in the first state, and set the state value in the state register of the communication link of the slot connected to the second interface to the second value in response to the second interface being in the second state, wherein the state value in the state register is the first value indicating that the communication link corresponding to the state register is in the interrupt enable state, and the state value in the state register is the second value indicating that the communication link corresponding to the state register is in the interrupt shutdown state.
[0054] For example, the control signal of button B1 can control the on and off of switch device S1. If switch device S1 is off, GPIO1 is not grounded, and the state value of GPIO1 is 1, indicating that GPIO1 is in the first state; if switch device S1 is on, GPIO1 is grounded, and the state value of GPIO1 is 0, indicating that GPIO1 is in the second state.
[0055] like Figure 5As shown, the second interfaces GPIO1 to GPION of the control panel of the operation console are connected to the firmware FW (Firmware) through the serial peripheral interface (SerialPeripheral Interface, SPI), so that the second interfaces GPIO1 to GPION can output different level states, and the different level states include 0 and 1. By operating the button, the general input and output interface corresponding to the button can be selectively grounded, that is, connected to GND, so as to control the plug-in and unplugging state of the general input and output interface connected to the button.
[0056] Figure 6 A schematic structural diagram of an operating console control panel according to yet another embodiment of the present invention is shown.
[0057] like Figure 6 As shown, buttons B1, B2, …, BN are respectively connected to switch devices S1, S2, …, SN. By operating the buttons, the switch devices connected to the buttons can be connected to a preset voltage (for example, 3.3V) or grounded. According to the connection status of the switch devices, the second interface can be set to different plug-in states.
[0058] Figure 7 A schematic diagram of an electronic device of a multi-core processor according to an embodiment of the present invention is shown.
[0059] like Figure 7 As shown, the processor may include a first processor 1201 and a second processor 1202. The plurality of slots include a plurality of first slots Slot1 to SlotN and a plurality of second slots SlotN+1 to Slot2N. The first processor 1201 is connected to the baseboard management controller 110 and the plurality of first slots Slot1 to SlotN, and the plurality of first interfaces GPIO1 to GPION of the baseboard management controller 110 are respectively connected to the plurality of first slots. The first processor 1201 is used to determine whether the communication link of the first slot connected to the first interface is in an interrupt enable state or an interrupt disable state according to the plug-in state of the first interface provided by the baseboard management controller, if the communication link is in an interrupt enable state, the connection between the first slot corresponding to the communication link and the expansion device is disconnected, if the communication link is in an interrupt disable state, the connection between the first slot corresponding to the communication link and the expansion device is allowed.
[0060] The second processor 1202 is connected to the console control panel 130 and a plurality of second slots SlotN+1 to Slot2N. The plurality of second interfaces GPION+1 to GPIO2N of the console control panel 130 are respectively connected to the plurality of second slots SlotN+1 to Slot2N. The second processor 1202 is used to determine whether the communication link of the second slot connected to the second interface is in an interruption-enabled state or an interruption-disabled state according to the plug-in state of the second interface provided by the console control panel 130, and if the communication link is in an interruption-enabled state, disconnect the connection between the second slot corresponding to the communication link and the expansion device, and if the communication link is in an interruption-disabled state, allow the connection between the second slot corresponding to the communication link and the expansion device.
[0061] According to an embodiment of the present invention, the first processor 1201 is connected to the second processor 1202 via a bus, and the bus includes a Cache Coherent Interconnect for Accelerators (CCIX), an Ultra Path Interconnect (UPI) and a Global Memory Interface (GMI).
[0062] Taking the first processor 1201 and the second processor 1202 as examples, the first processor 1201 is connected to the slot Slot1 through PCI link 1, the first processor 1201 is connected to the slot Slot2 through PCI link 2, and so on, the first processor 1201 is connected to the slot SlotN through PCI link N. The second processor 1202 is connected to the slot SlotN+1 through PCI link N+1, the second processor 1202 is connected to the slot SlotN+2 through PCI link N+2, and so on, the second processor 1202 is connected to the slot Slot2N through PCI link 2N. The GPION pin of the general input and output interface is connected to the slot SlotN by connecting to the SCIN signal end of PCI link N.
[0063] On this basis, electronic devices with multi-core processors can be implemented in five forms.
[0064] The first method: using the baseboard management controller to set the plug-in status of the first interface, the slot connected to the first interface is the slot connected to the first processor, and using the console control panel to set the plug-in status of the second interface, the slot connected to the second interface is the slot connected to the second processor.
[0065] The second type is to use a baseboard management controller to set the plug-in status of the first interface, and the slot connected to the first interface includes a slot connected to the first processor and a slot connected to the second main processor; use an operating console control panel to set the plug-in status of the second interface, and the slot connected to the second interface includes a slot connected to the first processor and a slot connected to the second processor, and the slot connected to the first interface and the slot connected to the second interface may be the same slot or different slots.
[0066] The third type is to use a baseboard management controller to set the plug-in status of the first interface, and the slot connected to the first interface includes a slot connected to the first processor and a slot connected to the second main processor; and use an operating console control panel to set the plug-in status of the second interface, and the slot connected to the second interface includes a slot connected to the first processor and a slot connected to the second processor, and the slot connected to the first interface is consistent with the slot connected to the second interface.
[0067] A fourth method is to use a baseboard management controller to set the plug-in and unplug-out status of the first interface, wherein the slot connected to the first interface includes a slot connected to the first processor and a slot connected to the second main processor.
[0068] A fifth method is to use an operation console control panel to set the plug-in and unplug-out status of the second interface, wherein the slot connected to the second interface includes a slot connected to the first processor and a slot connected to the second processor.
[0069] According to an embodiment of the present invention, the socket is a peripheral component interconnect standard socket having N channels, where N is an integer greater than 1.
[0070] Figure 8 A schematic diagram of line connections of a PCI link according to an embodiment of the present invention is shown.
[0071] like Figure 8As shown, multiple PCI links can use one expansion bus, or one PCI link can use one expansion bus. When one expansion bus implements multiple PCI links and one PCI link is connected to one slot, the bandwidth of the PCI link is set to ×1 specification; it can be understood that since the maximum bandwidth supported by the PCI link by default is ×16, it can also be backward compatible with ×8, ×4, ×2 and ×1 PCI devices. Therefore, when one expansion bus implements one PCI link and one PCI link is connected to one slot, the PCI link includes multiple lanes (channels), which are the smallest communication unit of the PCI link, and each lane (channel) can transmit data independently. Common lane (channel) configurations include ×1, ×2, ×4, ×8, ×16, etc., which represent 1 channel, 2 channels, 4 channels, 8 channels and 16 channels respectively. A ×16 slot can be designed as ×16, ×8+×8, ×4+×4+×4+×4, ×2+×2+×2+×2+×2+×2+×2+×2+×2, or ×1+× ...
[0072] exist Figure 8 In the embodiment, the first interface of the baseboard management controller can be connected to the corresponding slot according to the actual situation. For example, the GPIO1 of the baseboard management controller is respectively connected to the slot corresponding to PCI×16, the slot corresponding to PCI×8 specification, the slot corresponding to PCI×4 and the slot corresponding to PCI×2; GPIO2 is respectively connected to the slot corresponding to PCI×8 specification, the slot corresponding to PCI×4 and the slot corresponding to PCI×2; GPIO3 is connected to the slot corresponding to PCI×4; GPIO4 is respectively connected to the slot corresponding to PCI×4 and the slot corresponding to PCI×2; GPIO8 is connected to the slot corresponding to PCI×2.
[0073] According to an embodiment of the present invention, the electronic device is a server. The server includes the content of the electronic device disclosed above, which will not be described in detail in this embodiment.
[0074] The following will be based on Figures 1 to 8 The scene described by Figure 9~Figure 13 The hot plug method performed by the electronic device according to the disclosed embodiment is described in detail.
[0075] Fig. 9 A flow chart of a hot plug method performed by an electronic device according to an embodiment of the present invention is shown.
[0076] like Fig. 9As shown, the hot plug method performed by the electronic device of this embodiment includes operations S910 to S920.
[0077] In operation S910 , the baseboard management controller sets the plug-in and unplug-out states of the respective first interfaces.
[0078] In operation S920, the processor determines whether the communication link of the slot connected to the first interface is in an interrupt enable state or an interrupt disable state according to the plug-in status of the first interface provided by the baseboard management controller; if the interrupt status of the communication link is the interrupt enable state, the connection between the slot corresponding to the communication link and the expansion device is disconnected; if the interrupt status of the communication link is the interrupt disable state, the connection between the slot corresponding to the communication link and the expansion device is allowed.
[0079] According to an embodiment of the present invention, the electronic device further includes a status register set for each communication link, determining whether the communication link of the slot connected to the first interface is in an interrupt enable state or an interrupt disable state, if the interrupt state of the communication link is the interrupt enable state, disconnecting the connection between the slot corresponding to the communication link and the expansion device, if the interrupt state of the communication link is the interrupt disable state, allowing the connection between the slot corresponding to the communication link and the expansion device, including:
[0080] In response to the first interface being in the first state, the state value in the state register of the communication link of the slot connected to the first interface is set to the first value, and in response to the first interface being in the second state, the state value in the state register of the communication link of the slot connected to the second interface is set to the second value, wherein the state value in the state register being the first value indicates that the communication link corresponding to the state register is in the interrupt-enabled state, and the state value in the state register being the second value indicates that the communication link corresponding to the state register is in the interrupt-disabled state. The state values in each state register are polled, and in response to the state value in the state register being the first value, the connection between the slot of the communication link corresponding to the state register and the expansion device is disconnected; and in response to the state value in the state register being the second value, the connection between the slot of the communication link corresponding to the state register and the expansion device is allowed.
[0081] According to an embodiment of the present invention, the electronic device also includes an operating console control panel having multiple second interfaces, the second interfaces being connected to at least one of the multiple slots, and the hot plug method performed by the electronic device also includes: the operating console control panel sets the plug-in status of each second interface; the processor determines whether the interrupt status of the communication link of the slot connected to the second interface is an interrupt-enabled state or an interrupt-disabled state based on the plug-in status of the second interface provided by the operating console control panel; if it is an interrupt-enabled state, the connection between the slot corresponding to the communication link and the expansion device is disconnected; if it is an interrupt-disabled state, the connection between the slot corresponding to the communication link and the expansion device is allowed.
[0082] Based on the hot-swap method performed by the above electronic device, the present invention also provides a hot-swap device. Fig.10 The device is described in detail.
[0083] Fig.10 The hot plug device according to the embodiment of the present invention is shown in the structural block diagram. The hot plug device can be arranged in the above processor to execute the operations executed by the above processor.
[0084] like Fig.10 As shown, the hot swap device of this embodiment includes an input module 1010 , a receiving module 1020 and an execution module 1030 .
[0085] The input module 1010 is used to obtain the plug-in and unplug-out status of each first interface set by the baseboard management controller.
[0086] The receiving module 1020 is used to determine whether the communication link of the slot connected to the first interface is in an interrupt-enabled state or an interrupt-disabled state according to the plug-in and unplugging state of the first interface.
[0087] The execution module 1030 is used to disconnect the connection between the slot corresponding to the communication link and the expansion device if the interrupt status of the communication link is the interrupt enable status, and to allow the connection between the slot corresponding to the communication link and the expansion device if the interrupt status of the communication link is the interrupt disable status.
[0088] In another embodiment, the input module 1010 can also obtain the plug-in status of each second interface set by the operating console control panel, and the receiving module 1020 can also determine whether the communication link of the slot connected to the second interface is in an interrupt enable state or an interrupt disable state according to the plug-in status of the second interface provided by the operating console control panel. The execution module 1030 can disconnect the connection between the slot corresponding to the communication link and the expansion device when the interrupt status of the communication link is the interrupt enable state, and allow the connection between the slot corresponding to the communication link and the expansion device when the interrupt status of the communication link is the interrupt disable state.
[0089] In another embodiment, the input module includes a BMC function module and a control panel function module, wherein the BMC function module is used to obtain the plug-in status of each first interface set by the baseboard management controller, and the control panel function module is used to obtain the plug-in status of each second interface set by the console control panel.
[0090] The receiving module is used to determine whether the status value of the SCI status register corresponding to the communication link of the slot connected to the first interface is 0 or 1 according to the plug-in status of the first interface, and is also used to determine whether the status value of the SCI status register corresponding to the communication link of the slot connected to the second interface is 0 or 1 according to the plug-in status of the second interface provided by the operating console control panel.
[0091] The execution module is used to allow the connection between the slot corresponding to the communication link and the expansion device when the SCI status register is 0, and the expansion device continues to be used normally. When the SCI status register is 1, the expansion device connected to the corresponding PCI link is removed.
[0092] Fig.11 A flow chart of a hot plugging method performed by an electronic device according to another embodiment of the present invention is shown.
[0093] like Fig.11 As shown, the hot plug method performed by the electronic device of this other embodiment includes operations S1100 to S1190.
[0094] In operation S1100, a GPIO state value is set. Operation S1100 includes operations S1101 to S1103.
[0095] In operation S1101 , a baseboard management controller web interface (BMC web) sets a GPIO state value.
[0096] In operation S1102 , an Intelligent Platform Management Interface (IPMI) command sets a GPIO state value.
[0097] In operation S1103, the console control panel sets a GPIO state value.
[0098] In operation S1110, the GPIO state of the SCI interrupt-enabled physical link is determined.
[0099] In operation S1120 , the GPIO is set high, that is, 1.
[0100] In operation S1130 , the SCI interrupt enable signal is in an enabled state.
[0101] In operation S1140 , the SCI interrupt status register is set to 1.
[0102] In operation S1150, the OSPM driver removes the PCI device of the PCI link corresponding to the SCI status register.
[0103] In operation S1160 , the GPIO is set to low, ie, zero.
[0104] In operation S1170, the SCI interrupt enable signal is in a turned-off state.
[0105] In operation S1180 , the SCI interrupt status register is set to 0.
[0106] In operation S1190, the system uses the PCI device normally and executes operation S1100.
[0107] Fig.12 A flow chart of a hot swap method performed by an electronic device based on a baseboard management controller according to an embodiment of the present invention is shown.
[0108] like Fig.12 As shown, the hot-swap method performed by the electronic device based on the baseboard management controller of this embodiment includes operations S1201 to S1214.
[0109] In operation S1201 , the server is powered on but not started.
[0110] In operation S1202, the SCI interrupt enable signal of each physical PCI link slot is physically connected to the GPIO pins of the BMC end one by one, and the BMC end implements SCI interrupt control by controlling the output state value of the GPIO signal.
[0111] In operation S1203 , the BMC management firmware is activated.
[0112] In operation S1204, the SCI interrupt of each PCI link is controlled by the IPMI command of the BMC, and is enabled or disabled according to actual conditions.
[0113] In operation S1205, the SCI interrupt of each PCI link is controlled through the BMC management interface and is enabled or disabled according to actual conditions.
[0114] In operation S1206, the server is started.
[0115] In operation S1207, the server enters the operating system.
[0116] In operation S1208, the Advanced Configuration and Power Interface (ACPI) protocol and the Differentiated System Description Table (DSDT) table determine whether the SCI interrupt status register corresponding to each PCI link is set. If yes, operation S1209 is executed; if not, operation S1210 is executed.
[0117] In operation S1209 , the PCI device corresponding to the PCI link is hot removed through Operating System-Directed Power Management (OSPM).
[0118] In operation S1210, the PCI link whose SCI interrupt register is not set continues to operate normally.
[0119] In operation S1211 , the operating system continues to normally use the PCI device that is not hot-removed.
[0120] In operation S1212, whether the IPMI command triggers the GPIO state value of the control signal of the SCI of the PCI link is high. If the GPIO state value of the control signal of the SCI of the IPMI command triggering the PCI link is high, then operation S1204 is executed; otherwise, then operation S1211 is executed.
[0121] In operation S1213, the BMC management interface determines whether the GPIO state value of the control signal of the SCI of the PCI link is high; if the GPIO state value of the control signal of the SCI of the PCI link is high, operation S1214 is executed; otherwise, operation S1211 is executed.
[0122] In operation S1214, the PCI device of the corresponding PCI link is hot removed through OSPM, and the process returns to operation S1211.
[0123] According to an embodiment of the present invention, in operation S1204 and operation S1205, if there are two processors, one of the processors is selected to perform the operation on the BMC side. When the expansion device needs to be hot-removed, the server operating system needs to be restarted, and during the server startup process, the SCI interrupt of each PCI link is controlled through the IPMI command of the BMC, and is turned on or off according to the actual situation, or the SCI interrupt of each PCI link is controlled through the BMC management interface, and is turned on or off according to the actual situation.
[0124] According to an embodiment of the present invention, in operation S1208, in the description file of the DSDT table, the location information of the CPU is defined, the location information of the Rootport is defined, the location information of the Rootport where the slot number of the PCI device is located is defined, the Bus Device Function (BDF) number of the Slot number of the PCI device is defined, and the Slot position of the PCI device is defined.
[0125] Fig.13A flow chart of a hot-swap method performed by an electronic device based on an operation console control panel according to an embodiment of the present invention is shown.
[0126] like Fig.13 As shown, the hot-swap method performed by the electronic device based on the operating console control panel of this embodiment includes operations S1301 to S1318.
[0127] In operation S1301 , the server is powered on but not started.
[0128] In operation S1302, each button of the console control panel is physically connected to the SCI interrupt signal of the only PCI link.
[0129] In operation S1303, the server is started.
[0130] In operation S1304, the server enters the operating system.
[0131] In operation S1305, the PCI link interrupt signal is connected to whether the button connected to the console control panel is pressed; if yes, execute operation S1306; if not, execute operation S1308.
[0132] In operation S1306, the PCI link SCI interrupt enable bit is set to a high level, ie, the interrupt status is enabled.
[0133] In operation S1307 , the PCI link SCI interrupt status bit is set to 1.
[0134] In operation S1308, if the key is not pressed, the PCI link SCI interrupt enable bit is set to 0, and the SCI status bit remains 0.
[0135] In operation S1309, the ACPI protocol DSDT table determines whether the SCI interrupt status register corresponding to each PCI link is set; if yes, execute operation S1311; if not, execute operation S1310.
[0136] In operation S1310, the PCI link for which the SCI interrupt register is not set continues to be used normally.
[0137] In operation S1311, a PCI device corresponding to a PCI link is hot removed through OSPM.
[0138] In operation S1312, the operating system continues to normally use the PCI device that is not hot-removed.
[0139] In operation S1313, the console control panel continues to determine whether other keys are pressed; if yes, operation S1305 is executed; if not, operation S1314 is executed.
[0140] In operation S1314, the server continues to run.
[0141] In operation S1315, the console controls whether the same button on the control panel is pressed twice; if yes, execute operation S1316; if not, execute operation S1314.
[0142] In operation S1316, the SCI signal of the corresponding PCI link is pulled low, that is, the enable signal is turned off.
[0143] In operation S1317, the server is restarted.
[0144] In operation S1318, the PCI device hot-plugging function is supported under the operating system, and operation S1303 is executed.
[0145] According to an embodiment of the present invention, because the SCI interrupt trigger will call the function setting of the DSDT table of ACPI to support the PCI device hot removal function under the system, the code of the APCI protocol is modified according to actual needs.
[0146] The present invention also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiment; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present invention is implemented.
[0147] According to an embodiment of the present invention, a computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present invention, a computer-readable storage medium may include a ROM and / or a RAM and / or one or more memories other than a ROM and a RAM.
[0148] The embodiment of the present invention also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the method provided by the embodiment of the present invention.
[0149] When the computer program is executed by the processor, the above functions defined in the system / device of the embodiment of the present invention are performed. According to the embodiment of the present invention, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0150] In one embodiment, the computer program may rely on a tangible storage medium such as an optical storage device, a magnetic storage device, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of a signal on a network medium, and downloaded and installed through a communication part, and / or installed from a removable medium. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0151] In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium. When the computer program is executed by a processor, the above-mentioned functions defined in the system of an embodiment of the present invention are performed. According to an embodiment of the present invention, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.
[0152] According to an embodiment of the present invention, the program code for executing the computer program provided by the embodiment of the present invention can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).
[0153] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0154] It will be appreciated by those skilled in the art that the features described in the various embodiments of the present invention may be combined and / or combined in various ways, even if such combinations or combinations are not explicitly described in the present invention. In particular, without departing from the spirit and teachings of the present invention, the features described in the various embodiments of the present invention may be combined and / or combined in various ways. All of these combinations and / or combinations fall within the scope of the present invention.
[0155] The embodiments of the present invention are described above. However, these embodiments are only for the purpose of illustration, and are not intended to limit the scope of the present invention. Although each embodiment is described above, it does not mean that the measures in each embodiment cannot be used in combination advantageously. Without departing from the scope of the present invention, those skilled in the art may make various substitutions and modifications, which should all fall within the scope of the present invention.
Claims
1. An electronic device, characterized in that: The electronic device comprises: A plurality of slots, wherein the slots are used to connect expansion devices; A baseboard management controller, the baseboard management controller having a plurality of first interfaces, the first interface being connected to at least one of the plurality of slots, the baseboard management controller being used to set the plugging and unplugging status of each first interface; A processor, wherein the processor is connected to the multiple slots and the baseboard management controller, wherein the processor is connected to each slot via a corresponding communication link, and the processor is used to determine whether the communication link of the slot connected to the first interface is in an interrupt-enabled state or an interrupt-disabled state according to the plug-in and unplugging state of the first interface provided by the baseboard management controller, if the communication link is in the interrupt-enabled state, the connection between the slot corresponding to the communication link and the expansion device is disconnected, and if the communication link is in the interrupt-disabled state, the connection between the slot corresponding to the communication link and the expansion device is allowed.
2. The electronic device according to claim 1, characterized in that: The electronic device further includes a status register set for each communication link, the plug-in status is a first status or a second status, and the processor is used for: In response to the first interface being in a first state, setting a state value in a state register of a communication link of a slot connected to the first interface to a first value; in response to the first interface being in a second state, setting a state value in a state register of a communication link of a slot connected to the first interface to a second value, wherein the state value in the state register being the first value indicates that the communication link corresponding to the state register is in an interrupt-enabled state, and the state value in the state register being the second value indicates that the communication link corresponding to the state register is in an interrupt-disabled state; Poll the status values in each status register, and in response to the status value in the status register being a first value, disconnect the connection between the slot of the communication link corresponding to the status register and the expansion device; in response to the status value in the status register being a second value, allow the connection between the slot of the communication link corresponding to the status register and the expansion device.
3. The electronic device according to claim 1, characterized in that: The baseboard management controller is implemented as an integrated circuit.
4. The electronic device according to claim 1, characterized in that: The electronic device further comprises an operation console control panel having a plurality of second interfaces, the second interface being connected to at least one of the plurality of slots, the operation console control panel being used to set the plugging and unplugging status of each second interface; The processor is further configured to determine whether a communication link of a slot connected to the second interface is in an interrupt-enabled state or an interrupt-disabled state according to the plug-in and unplugging state of the second interface provided by the operation console control panel.
5. The electronic device according to claim 4, characterized in that: The operating console control panel includes the multiple second interfaces and multiple third interfaces connected to the multiple second interfaces in a one-to-one correspondence. The third interfaces are used to generate control signals in response to user operations. The operating console control panel is used to set the plug-in and unplugging status of the second interfaces connected to the third interfaces according to the control signals provided by each third interface.
6. The electronic device according to claim 5, characterized in that: The third interface is a button, each of which is connected to the corresponding second interface through a switch device, and the switch device is used to ground the second interface according to a control signal provided by the third interface, wherein the plugging state of the second interface is a first state or a second state, the grounded second interface is in the first state, and the ungrounded second interface is in the second state; The processor is used to set the status value in the status register of the communication link of the slot connected to the second interface to the first value in response to the second interface being in the first state, and to set the status value in the status register of the communication link of the slot connected to the second interface to the second value in response to the second interface being in the second state, wherein the status value in the status register is the first value indicating that the communication link corresponding to the status register is in the interrupt enabled state, and the status value in the status register is the second value indicating that the communication link corresponding to the status register is in the interrupt disabled state.
7. The electronic device according to claim 4, characterized in that: The first interface and the second interface are both general input and output interfaces.
8. The electronic device according to claim 4, characterized in that: The processor includes a first processor and a second processor; the plurality of slots include a plurality of first slots and a plurality of second slots; The first processor is connected to the baseboard management controller and the plurality of first slots, and the plurality of first interfaces of the baseboard management controller are respectively connected to the plurality of first slots, and the first processor is used to determine whether a communication link of a first slot connected to the first interface is in an interrupt-enabled state or an interrupt-disabled state according to the plug-in and unplugging state of the first interface provided by the baseboard management controller, and if the communication link is in an interrupt-enabled state, disconnect the connection between the first slot corresponding to the communication link and the expansion device, and if the communication link is in an interrupt-disabled state, allow the connection between the first slot corresponding to the communication link and the expansion device; The second processor is connected to the operating console control panel and the multiple second slots, and the multiple second interfaces of the operating console control panel are respectively connected to the multiple second slots. The second processor is used to determine whether the communication link of the second slot connected to the second interface is in an interrupt-enabled state or an interrupt-disabled state according to the plug-in and unplugging state of the second interface provided by the operating console control panel. If the communication link is in the interrupt-enabled state, the connection between the second slot corresponding to the communication link and the expansion device is disconnected; if the communication link is in the interrupt-disabled state, the connection between the second slot corresponding to the communication link and the expansion device is allowed.
9. The electronic device according to claim 8, characterized in that: The first processor is connected to the second processor via a bus, and the bus includes an accelerator cache coherence interconnect bus, a superpath interconnect bus, and a global memory interconnect bus.
10. The electronic device according to claim 1, characterized in that: The slot is a peripheral component interconnect standard slot with N channels, where N is an integer greater than 1.
11. The electronic device according to claim 1, characterized in that: The communication link is a Peripheral Component Interconnect Standard link.
12. The electronic device according to claim 1, characterized in that: The electronic device is a server.
13. A hot-swap method performed by an electronic device according to any one of claims 1 to 12, characterized in that: The method comprises: The baseboard management controller sets the plug-in and unplug-out status of each first interface; The processor determines whether the communication link of the slot connected to the first interface is in an interrupt-enabled state or an interrupt-disabled state according to the plug-in and unplugging state of the first interface provided by the baseboard management controller; if the interruption state of the communication link is the interruption-enabled state, the connection between the slot corresponding to the communication link and the expansion device is disconnected; if the interruption state of the communication link is the interruption-disabled state, the connection between the slot corresponding to the communication link and the expansion device is allowed.
14. The method according to claim 13, characterized in that The electronic device further includes a status register set for each communication link, and the determining whether the communication link of the slot connected to the first interface is in an interrupt-enabled state or an interrupt-disabled state, if the interruption state of the communication link is an interruption-enabled state, disconnecting the connection between the slot corresponding to the communication link and the expansion device, and if the interruption state of the communication link is an interruption-disabled state, allowing the connection between the slot corresponding to the communication link and the expansion device, includes: In response to the first interface being in a first state, setting a state value in a state register of a communication link of a slot connected to the first interface to a first value, and in response to the first interface being in a second state, setting a state value in a state register of a communication link of a slot connected to the second interface to a second value, wherein the state value in the state register being the first value indicates that the communication link corresponding to the state register is in an interrupt-enabled state, and the state value in the state register being the second value indicates that the communication link corresponding to the state register is in an interrupt-disabled state; Poll the status values in each status register, and in response to the status value in the status register being a first value, disconnect the connection between the slot of the communication link corresponding to the status register and the expansion device; in response to the status value in the status register being a second value, allow the connection between the slot of the communication link corresponding to the status register and the expansion device.
15. The method according to claim 13, characterized in that The electronic device further comprises an operation console control panel having a plurality of second interfaces, wherein the second interface is connected to at least one of the plurality of slots, and the method further comprises: The control panel of the operation console sets the plug-in and unplugging status of each second interface; The processor determines whether the communication link of the slot connected to the second interface is in an interrupt-enabled state or an interrupt-disabled state according to the plug-in status of the second interface provided by the operating console control panel; if the communication link is in an interrupt-enabled state, the connection between the slot corresponding to the communication link and the expansion device is disconnected; if the communication link is in an interrupt-disabled state, the connection between the slot corresponding to the communication link and the expansion device is allowed.
Citation Information
Patent Citations
Equipment information updating method, system and equipment of hot plug equipment and medium
CN118132489A
Realization device, server and realization method for hot removal of extension equipment
CN119226207A
Method for executing hot removal operation, hot plug system, equipment, medium and product
CN119336682A
Device management method, system, computer program product, electronic device, and medium
CN119396748A