Computer equipment and hot plug processing method thereof

By introducing a hot-swap interrupt event initiator into the computer equipment, using the interrupt mechanism to promptly notify the processing unit of hot-swap events and perform routing information updates, the problem of poor timeliness of hot-swap event monitoring in the existing technology is solved, and more accurate and timely event monitoring and processing is achieved.

CN119759821APending Publication Date: 2025-04-04BEIJING MEGA-CORE ELECTRONIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411813741.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-10
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

The prior art has poor timeliness when monitoring hot plugging events, which may lead to missed reports or system errors.

Method used

By introducing a hot-swap interrupt event initiator into the computer device, the interrupt mechanism is used to promptly notify the processing unit (such as BIOS or management MCU) of the occurrence of the hot-swap event, and perform corresponding routing information update processing.

Benefits of technology

Improve the timeliness of hot plug event monitoring, ensuring that the system can promptly understand changes in hot plug status and update network information, thereby avoiding missed reports and system errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119759821A_ABST
    Figure CN119759821A_ABST
Patent Text Reader

Abstract

The present disclosure relates to a computer device and a hot-plug processing method thereof. The hot-plug processing method comprises: a notification step, in the case of a hot-plug event, the hot-plug interrupt event initiator of the computer device notifies the processing unit of the computer device of the occurrence of the hot-plug event by way of an interrupt, wherein the hot-plug event includes a hot-insertion event in which a hot-plug device is connected to the computer device and a hot-plug event in which the hot-plug device is unplugged from the computer device; and an update step, in the case of receiving the notification, the processing unit performs an update process corresponding to the hot-plug event. In this way, the timeliness of hot-plug event monitoring can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a hot-plug processing method for a computer device and a computer device that performs the hot-plug processing. Background Art

[0002] In a computer device, routing information is information used to uniquely identify a hot-plug device. After a hot-plug event of a hot-plug device occurs, the computer device needs to continuously update network information and timely learn which hot-plug devices have performed hot-plug behavior.

[0003] MCTP (Management Component Transport Protocol) is a management component transport protocol that defines a transport format for communication on various buses, such as PCIe (Peripheral Component Interconnect Express), USB, and SMBus. MCTP Over PCIe VDM (Vendor Defined Message) is an application or implementation of the MCTP protocol on the PCIe bus. In MCTP Over PCIe VDM, the MCTP protocol is used to implement management and communication of virtual devices. In computer devices that apply MCTP Over PCIe VDM, it is necessary to update the routing table in a timely manner when a hot-plug event occurs. The routing table is a list of EIDs (Endpoint IDs) that uniquely identify hot-plug devices that support the MCTP protocol in the MCTP network.

[0004] For example, in a device that uses MCTP Over PCIe VDM, when a hot-plug device is hot-plugged, it is necessary to assign EID information to the newly inserted hot-plug device. Once the EID information of the hot-plug device is added to the routing table, other system resources or devices can access the newly inserted hot-plug device. On the contrary, if the routing table is not updated, even if a new hot-plug device is inserted, other system resources or devices have no way of knowing it, and thus cannot access the newly inserted hot-plug device. When the hot-plug device is unplugged from the system, it is necessary to update the routing table by removing the EID information of the hot-plugged device from the routing table. This is because if such an operation is not performed, other system resources or devices will continue to access the hot-plug device. When such access occurs, the system will report an error because the hot-plug device no longer exists. It can be seen that in order to ensure the normal operation of the system and ensure the normal use of the hot-plug device by other system resources or devices, the routing table needs to be updated in a timely manner after a hot-plug event occurs.

[0005] like Figure 1 As shown in FIG. 1 , it shows the handshake process specified in the MCTP Over PCIe VDM specification. This process is usually used when the MCTP BusOwner (bus owner) wants to discover and enumerate all MCTP Endpoints (endpoints) on the PCIe bus. The process includes the following steps:

[0006] The MCTP Bus Owner broadcasts a prepare request message for endpoint discovery. This message causes each discoverable endpoint on the bus to set its discovery flag to "not discovered". The PCIe Endpoint will return a response message for endpoint discovery.

[0007] Afterwards, the MCTP Bus Owner broadcasts an Endpoint Discovery Request message. All MCTP-capable devices with the Discovery Flag set to "Not Discovered" will respond with an Endpoint Discovery Response message.

[0008] For each response message received from an undiscovered MCTP-capable PCIe Endpoint, the MCTP BusOwner issues a Set EID Request to the Endpoint's physical address. This causes the Endpoint to set its Discovered Flag to "Discovered".

[0009] In the MCTP Over PCIe VDM device that applies the above handshake process, the existing hot-plug processing method is usually to periodically broadcast the above-mentioned preparation request message for endpoint discovery to confirm the status of the hot-plug device. Figure 2 As shown, it shows the existing connection method of the device.

[0010] exist Figure 2 In the MCTP network, the Bus Owner is set in the south bridge PCH (Platform Controller Hub) of the motherboard, which monitors which Root Ports have hot plug events by broadcasting the above-mentioned preparation request message at regular intervals.

[0011] Figure 2The limitation of the hot-plug processing method shown in is that, because the broadcast message is sent regularly, when the hot-plug state changes, the system cannot be informed of the state in time, and thus cannot accurately monitor the hot-plug event, so the timeliness is poor. For example, when broadcasting once every 30 seconds, if numerous hot-plugs occur within 30 seconds, but the system will eventually be restored to the original state at 30 seconds, the system cannot monitor the hot-plug events within 30 seconds, and thus the hot-plug message will be missed. And, due to the poor timeliness, sometimes the system will report an error. For example, when broadcasting once every 30 seconds, if the hot-plug of the device occurs at the 15th second, and other system resources or devices access the hot-plug device at the 20th second, the system will report an error because the device cannot be found.

[0012] Therefore, how to improve the timeliness of hot plug event monitoring is one of the problems to be solved by the existing hot plug processing. Summary of the invention

[0013] In view of this, the present disclosure proposes a hot-plug processing method for a computer device and a computer device for performing the hot-plug processing, thereby improving the timeliness of hot-plug event monitoring.

[0014] According to a first aspect of the present disclosure, a hot-plug processing method for a computer device is provided, the hot-plug processing method comprising: a notification step, in the case of a hot-plug event, a hot-plug interrupt event initiating unit of the computer device notifies the occurrence of the hot-plug event to a processing unit of the computer device by way of an interrupt, the hot-plug event comprising a hot-insertion event in which a hot-plug device is connected to the computer device and a hot-plug removal event in which the hot-plug device is removed from the computer device; and an update step, in the case of receiving the notification, the processing unit performs update processing corresponding to the hot-plug event.

[0015] In a possible implementation, in the notification step, the hot-plug interrupt event initiating unit notifies the BIOS or the management MCU serving as the processing unit of the occurrence of the hot-plug event by way of an interrupt.

[0016] In a possible implementation, during the startup phase of the computer device, in the notification step, the hot plug interrupt event initiator notifies the BIOS of the occurrence of the hot plug event through an SMI interrupt, and the BIOS performs an update process corresponding to the hot plug event.

[0017] In a possible implementation, in the running phase after the startup phase of the computer device, in the notification step, the hot plug interrupt event initiating unit notifies the management MCU of the occurrence of the hot plug event through an interrupt, and the management MCU performs update processing corresponding to the hot plug event.

[0018] In a possible implementation, during the operation phase after the startup phase of the computer device, in the notification step, the hot plug interrupt event initiator notifies the management MCU of the occurrence of the hot plug event by way of an interrupt, and the management MCU performs an update process corresponding to the hot plug event.

[0019] In a possible implementation, the updating step includes: judging whether a hot-plug event or a hot-plug event occurs according to a hot-plug status register; and executing corresponding updating processing of routing information according to the judgment result.

[0020] In a possible implementation manner, the hot plug processing method is implemented by MCTP Over PCIe VDM.

[0021] In a possible implementation, when the result of the determination indicates that a hot plug event has occurred, an MCTP Over PCIe VDM handshake process is performed, thereby updating the MCTP routing table.

[0022] According to a second aspect of the present disclosure, a computer device is provided, comprising: a hot-plug interrupt event initiating unit, for notifying a processing unit of the occurrence of the hot-plug event by way of an interrupt when a hot-plug event occurs, wherein the hot-plug event comprises a hot-insertion event in which a hot-plug device is connected to the computer device and a hot-plug removal event in which the hot-plug device is removed from the computer device; and the processing unit, for executing an update process corresponding to the hot-plug event when receiving the notification from the hot-plug interrupt event initiating unit.

[0023] In a possible implementation, the hot-plug interrupt event initiating unit notifies the BIOS or the management MCU serving as the processing unit of the occurrence of the hot-plug event by way of an interrupt.

[0024] In a possible implementation, during the startup phase of the computer device, the hot-plug interrupt event initiator notifies the BIOS of the occurrence of the hot-plug event through an SMI interrupt, and the BIOS performs an update process corresponding to the hot-plug event.

[0025] In a possible implementation, in the running phase after the startup phase of the computer device, the hot plug interrupt event initiator notifies the management MCU of the occurrence of the hot plug event by way of an interrupt, and the management MCU performs an update process corresponding to the hot plug event.

[0026] In a possible implementation, in the operation phase after the startup phase of the computer device, the hot plug interrupt event initiator notifies the management MCU of the occurrence of the hot plug event by way of an interrupt, and the management MCU performs an update process corresponding to the hot plug event.

[0027] In a possible implementation, the update process performed by the processing unit includes: judging whether a hot-plug event or a hot-plug event occurs according to a hot-plug status register; and performing corresponding routing information update processing according to a result of the judgment.

[0028] In a possible implementation, the computer device uses MCTP Over PCIe VDM to perform hot plug processing.

[0029] In a possible implementation, when the result of the determination indicates that a hot plug event has occurred, an MCTP Over PCIe VDM handshake process is performed, thereby updating the MCTP routing table.

[0030] According to the present disclosure, in the case of a hot plug event, the occurrence of the hot plug event is notified to the processing unit of the computer device by way of an interrupt, and the processing unit performs an update process corresponding to the hot plug event when receiving the notification. Thus, the present disclosure can timely learn the change of the hot plug state and timely update the corresponding network information, thereby improving the timeliness of hot plug event monitoring.

[0031] Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.

[0033] Figure 1 Figure 2 shows the handshake process of the MCTP Over PCIe VDM specification.

[0034] Figure 2 The invention shows a connection method of a computer device that performs hot plug processing according to the prior art.

[0035] Figure 3 A flow chart showing a hot plug processing method according to an exemplary embodiment.

[0036] Figure 4 Another flow chart of a hot-plug processing method according to an exemplary embodiment is shown.

[0037] Figure 5 Another flow chart of a hot-swap processing method according to an exemplary embodiment is shown.

[0038] Figure 6 A further flow chart of a hot-swap processing method according to an exemplary embodiment is shown.

[0039] Figure 7 An exemplary connection method when hot plugging is performed during the startup phase according to an exemplary embodiment is shown.

[0040] Figure 8 An exemplary connection method when hot plugging is performed during operation according to an exemplary embodiment is shown.

[0041] Fig. 9 A block diagram of a computer device performing hot-plug processing according to an exemplary embodiment is shown. DETAILED DESCRIPTION

[0042] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.

[0043] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.

[0044] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the main purpose of the present disclosure.

[0045] As described above, if the system monitors hot-plug events by broadcasting messages periodically, the hot-plug events may not be accurately monitored.

[0046] To this end, considering that when a hot-plug event occurs, the change of the hot-plug state will be recorded in the hot-plug state register provided in the Root Port, if, instead of the system broadcasting messages for hot-plug events at regular intervals, whenever a change of the hot-plug state occurs, that is, when the hot-plug state register in the Root Port changes, the system is actively notified of the change in an interrupt manner, then no matter when a hot-plug event occurs, the system will be able to promptly learn of the change of the hot-plug state and promptly update the corresponding network information, thereby improving the timeliness of hot-plug event monitoring and solving the problem described above.

[0047] Based on the above concept, a Figure 3 The hot plug processing method according to the present disclosure is shown. The hot plug processing method is described by taking MCTP Over PCIe VDM as an example, but is not limited to MCTP Over PCIe VDM.

[0048] Embodiment 1:

[0049] See also Figure 3 The hot-swap processing method of this exemplary embodiment may include the following steps:

[0050] In step S310, when a hot plug event occurs, a hot plug interrupt event initiating unit of the computer device notifies the processing unit of the computer device of the occurrence of the hot plug event by way of an interrupt.

[0051] In this embodiment, when a hot plug event occurs, an interrupt message can be sent from the north bridge chip on the mainboard, and sent to the processing unit of the computer device via the south bridge chip on the mainboard. For example, an interrupt message can be sent to the processing unit from the node where the PCIe device mounts the Root Port. However, this embodiment does not limit the hot plug interrupt event initiator, and any component in the computer device can be used as long as it can play the role of sending an interrupt message indicating that a hot plug event has occurred to the processing unit of the computer device.

[0052] After the occurrence of the hot plug event is notified to the processing unit of the computer device in step S310, the following step S320 is executed.

[0053] In step S320 , the processing unit executes an update process corresponding to the hot plug event when receiving the notification from the hot plug interrupt event initiating unit.

[0054] In a possible implementation, the update process performed may include the following steps: judging whether a hot-plug event or a hot-plug event occurs according to the hot-plug status register; and performing corresponding routing information update processing according to the judgment result.

[0055] In this embodiment, the hot plug interrupt register of the root port can be polled in the interrupt program, and the hot plug event can be judged whether it is a hot insertion event or a hot removal event according to the state represented by the value of the hot plug interrupt register; and the corresponding routing information can be updated according to the judgment result.

[0056] In this embodiment, when the hot plug processing method is implemented by MCTP Over PCIe VDM, when the routing information is updated according to the result of the judgment, the routing table in MCTP is updated.

[0057] The routing table in MCTP includes two parts for accurately identifying the device: EID in MCTP and BDF (Bus Device Function) in PCIe. Therefore, when updating the routing table, the EID and BDF in the routing table are mainly updated.

[0058] When the result of the determination indicates that a hot removal event has occurred, the MCTP routing table may be updated by deleting the EID and BDF of the hot removal device from the MCTP routing table.

[0059] If the result of the determination indicates that a hot plug event has occurred, you can execute Figure 1 The MCTP OverPCIe VDM handshake process shown in Figure 1 assigns an EID to the newly inserted device and updates the EID information in the routing table.

[0060] Compared with the prior art that updates network information by periodic updates and has the problem of poor timeliness of hot plug event monitoring, the hot plug processing method disclosed in the present invention can actively notify the system of this change in an interrupt manner when a hot plug event occurs, so that no matter when a hot plug event occurs, the system will be able to promptly learn of the change in the hot plug state and promptly update the corresponding network information, thereby improving the timeliness of hot plug event monitoring.

[0061] Furthermore, compared with the prior art in which hot plug messages are easily lost, the hot plug processing method disclosed in the present invention can capture hot plug events in a timely manner, thereby preventing hot plug messages from being lost, thereby gaining stronger competitiveness in the technical field of similar products.

[0062] In addition, since the hot-plug processing method disclosed in the present invention relies on the properties and capabilities of the processor itself, it has no dependence on external devices.

[0063] According to the hot-plug processing method disclosed in the present invention, since the operating system OS does not process the hot-plug status register whose state changes when a hot-plug event occurs, there is no conflict with the hot-plug status register used under the OS, and the system will not fail to capture the hot-plug event because the OS clears the hot-plug event state.

[0064] Based on the technical concept of notifying the processing unit to update the network information through interruption when a hot plug event occurs as described in the first embodiment, the subject performing the network information update process is specifically limited to obtain the second and third embodiments.

[0065] Embodiment 2:

[0066] Figure 4 Another flow chart of a hot plug processing method according to an exemplary embodiment is shown. Figure 4 As shown, the hot plug processing method includes the following steps:

[0067] In step S410, when a hot plug event occurs, a hot plug interrupt event initiator of the computer device notifies the BIOS of the occurrence of the hot plug event through an SMI interrupt.

[0068] When the hot-plug interrupt event initiator of the computer device initiates an SMI (System Management Interrupt) to the BIOS, the BIOS will be awakened.

[0069] After the occurrence of the hot plug event is notified to the BIOS in step S410, the following step S420 is executed.

[0070] In step S420, when the BIOS receives the SMI interrupt, it executes an update process corresponding to the hot plug event in the interrupt program.

[0071] The management of hot-plug devices is divided into two stages, namely the system startup stage and the operation stage after the system startup. Whether in the system startup stage or in the operation stage, the BIOS can monitor the hot-plug event. Therefore, in the whole stage of the system, the hot-plug interrupt event initiator of the computer device initiates an SMI interrupt to the BIOS to notify the BIOS of the occurrence of the hot-plug event.

[0072] Since BIOS usually participates in the enumeration of PCIe, it is easy to obtain information such as the BDF of the PCIe device and the properties of PCIe itself. Therefore, through this implementation, hot plug events can be easily processed without the help of other software or intermediate devices, so hot plug event monitoring can be easily performed and the timeliness of hot plug event monitoring can be ensured.

[0073] Embodiment three:

[0074] Figure 5 Another flow chart of a hot plug processing method according to an exemplary embodiment is shown. Figure 5 As shown, the hot plug processing method includes the following steps:

[0075] In step S510, when a hot plug event occurs, a hot plug interrupt event initiator of the computer device notifies a management MCU (Microcontroller Unit) for managing hot plug devices of the occurrence of the hot plug event by way of an interrupt.

[0076] In step S520, when the management MCU receives the interrupt, it executes the update process corresponding to the hot plug event in the interrupt program.

[0077] Whether in the system startup phase or in the operation phase, the management MCU can monitor the hot plug event. Thus, in the whole stage of the system, the hot plug interrupt event initiator of the computer device initiates an interrupt to the management MCU to notify the management MCU of the occurrence of the hot plug event.

[0078] With this implementation, since SMI interrupts are not frequently sent to the BIOS, the system can be prevented from being frequently blocked due to hot plugging. Therefore, the timeliness of hot plugging monitoring can be ensured while avoiding adverse effects on system performance.

[0079] Although using BIOS or management MCU as the updating subject of network information to monitor hot-plug events has the advantages mentioned above, there are also the following problems. On the one hand, during the system startup process, the management MCU does not participate in the enumeration of PCIe, so it is difficult for the management MCU to obtain information such as PCIe's BDF or PCIe's own attributes, and other software is required. For example, a specific protocol is specified between the management MCU and the BIOS, and after the BIOS is initialized and enumerated, the PCIe transmits the corresponding above information to the management MCU, which is a cumbersome process. On the other hand, during the operation phase of the system, if too many SMI interrupts are sent to the BIOS due to the frequent occurrence of hot-plug events, the system will always be in a blocking phase before the interrupt exits, which will affect the system performance. Considering the above two aspects, if the management MCU is avoided from monitoring hot-plug events during the system startup phase, it can ensure the effectiveness of hot-plug event monitoring while avoiding cumbersome processes, and avoid using BIOS to monitor hot-plug events during the system operation phase, it can ensure the effectiveness of hot-plug event monitoring while avoiding adverse effects on system performance.

[0080] Therefore, based on the specific limitation on the subject that performs the updating process of network information described in the second and third embodiments, it is further limited that different subjects perform the updating of network information at different stages, thus obtaining the fourth embodiment.

[0081] Embodiment 4:

[0082] Figure 6 Another flow chart of a hot plug processing method according to an exemplary embodiment is shown. Figure 6 As shown, the hot plug processing method of this exemplary embodiment may include the following steps:

[0083] In step S610, when a hot plug event occurs, it is determined whether the system is in a startup phase or a running phase.

[0084] When it is determined that the system is in the startup phase, the following step S620 is executed; when it is determined that the system is in the operation phase, the following step S630 is executed.

[0085] In step S620, the hot plug interrupt event initiator of the computer device notifies the BIOS of the occurrence of the hot plug event through the SMI interrupt. Thereafter, the following step S640 is executed.

[0086] In step S640, when the BIOS receives the SMI interrupt, it executes an update process corresponding to the hot plug event in the interrupt program. Figure 4 The process is similar to step S420 and will not be described again here.

[0087] In step S630, the hot-plug interrupt event initiator of the computer device notifies the management MCU of the occurrence of the hot-plug event by way of an interrupt. Thereafter, the following step S650 is executed.

[0088] In step S650, when the management MCU receives the interrupt, it executes the update process corresponding to the hot plug event in the interrupt program. Figure 5 The process is similar to step S520 and will not be described again here.

[0089] Figure 7 An exemplary connection method when hot plugging is performed during the startup phase according to this embodiment is shown.

[0090] like Figure 7 As shown, when a hot-plug device is hot-plugged, an SMI interrupt is initiated from the hot-plug interrupt event initiator to the BIOS. After the BIOS receives the SMI interrupt, the BIOS polls the hot-plug interrupt register of the root port in the interrupt program to determine whether the hot-plug behavior is a hot-insertion behavior or a hot-removal behavior.

[0091] If it is determined to be a hot-insertion behavior, the MCTP Over PCIe VDM handshake process is performed as described above to establish routing information for the newly inserted device. If it is determined to be a hot-removal behavior, the EID and BDF of the corresponding device are deleted from the routing information as described above.

[0092] Figure 8 An exemplary connection method when hot plugging is performed during operation according to this embodiment is shown.

[0093] like Figure 8 As shown, when a hot-swappable device is hot-plugged, the node of the root port mounted from the PCIe device initiates an interrupt to the management MCU. After the management MCU receives the interrupt, the management MCU polls the hot-plug interrupt register of the root port in the interrupt program to determine whether the hot-plug behavior is a hot-insertion behavior or a hot-removal behavior.

[0094] If it is determined to be a hot-insertion behavior, the MCTP Over PCIe VDM handshake process is performed as described above to establish routing information for the newly inserted device. If it is determined to be a hot-removal behavior, the EID and BDF of the corresponding device are deleted from the routing information as described above.

[0095] During the system startup phase, since BIOS usually participates in the enumeration of PCIe, it is easy to obtain information such as the BDF of the PCIe device and the properties of PCIe itself, so it is easy to establish the correspondence between the EID of MCTP and the BDF of PCIe without the need for other software or intermediate devices. Therefore, during the system startup phase, using BIOS to monitor hot-plug events can avoid the cumbersome process of needing the assistance of other software or intermediate devices, and is a more preferred strategy.

[0096] During the system operation phase, using the management MCU to monitor hot-swap events can avoid sending too many SMI interrupts to the BIOS, thereby reducing the system's blocking phase and avoiding impacts on system performance.

[0097] This embodiment realizes easy software writing by having different entities monitor hot-swap events in stages, i.e., BIOS monitors during the startup phase and management MCU monitors during the operation phase. At the same time, as mentioned above, while ensuring the effectiveness of hot-swap event monitoring, it also avoids the cumbersomeness of the process and the adverse effects on system performance.

[0098] In a possible implementation, the BIOS or management MCU that monitors the hot-plug event may notify the server external management unit, such as BMC (Board Management Controller), of the hot-plug event, so that the server external management unit can be informed of the hot-plug event in a timely manner.

[0099] Fig. 9 A block diagram of a computer device that performs hot plug processing according to an exemplary embodiment is shown. Fig. 9 As shown, the computer device may include a hot plug interrupt event initiating unit 910 and a processing unit 920 .

[0100] The hot plug interrupt event initiator 910 can be used to notify the hot plug event to the processing unit 920 by interruption when a hot plug event occurs, wherein the hot plug event includes a hot plug event in which a hot plug device is connected to a computer device and a hot unplug event in which a hot plug device is unplugged from a computer device. The processing unit 920 can be used to perform an update process corresponding to the hot plug event when receiving a notification from the hot plug interrupt event initiator 910.

[0101] In a possible implementation, the hot-plug interrupt event initiating unit 910 notifies the BIOS or the management MCU serving as the processing unit 920 of the occurrence of the hot-plug event by way of an interrupt.

[0102] In a possible implementation, during the startup phase of the computer device, the hot plug interrupt event initiator 910 notifies the BIOS of the occurrence of the hot plug event through an SMI interrupt, and the BIOS performs an update process corresponding to the hot plug event.

[0103] In a possible implementation, in the operation phase after the startup phase of the computer device, the hot plug interrupt event initiator 910 notifies the management MCU of the occurrence of the hot plug event by way of an interrupt, and the management MCU performs an update process corresponding to the hot plug event.

[0104] In a possible implementation, in the operation phase after the startup phase of the computer device, the hot plug interrupt event initiator 910 notifies the management MCU of the occurrence of the hot plug event by way of an interrupt, and the management MCU performs an update process corresponding to the hot plug event.

[0105] In a possible implementation, the update process performed by the processing unit 920 includes: judging whether a hot-plug event or a hot-plug event occurs according to the hot-plug status register; and performing corresponding update processing of the routing information according to the judgment result.

[0106] In a possible implementation, a computer device uses MCTP Over PCIe VDM to perform hot plug processing.

[0107] In a possible implementation, when the result of the determination indicates that a hot-plug event has occurred, the MCTP Over PCIe VDM handshake process is executed, thereby updating the MCTP routing table.

[0108] In a possible implementation, the above-mentioned computer device can be applied to products such as servers, industrial computers, storage devices, workstations, etc.

[0109] Regarding the device in the above embodiment, the specific manner in which each unit performs the operation has been described in detail in the embodiment of the method, and will not be elaborated here.

[0110] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.

[0111] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A hot-plug processing method for a computer device, characterized in that: The hot plug processing method comprises: a notification step, in the event of a hot plug event, the hot plug interrupt event initiator of the computer device notifies the processing unit of the computer device of the occurrence of the hot plug event by way of an interrupt, wherein the hot plug event includes a hot insertion event in which a hot plug device is connected to the computer device and a hot removal event in which the hot plug device is removed from the computer device; and In an updating step, the processing unit executes an updating process corresponding to the hot plug event when receiving the notification.

2. The hot-swap processing method according to claim 1, characterized in that: In the notification step, the hot-plug interrupt event initiating unit notifies the occurrence of the hot-plug event to the BIOS or the management MCU as the processing unit by way of an interrupt.

3. The hot-swap processing method according to claim 2, characterized in that: During the startup phase of the computer device, in the notification step, the hot plug interrupt event initiator notifies the BIOS of the occurrence of the hot plug event through an SMI interrupt, and the BIOS performs an update process corresponding to the hot plug event.

4. The hot-swap processing method according to claim 3, characterized in that: In the operation phase after the startup phase of the computer device, in the notification step, the hot plug interrupt event initiator notifies the management MCU of the occurrence of the hot plug event through an interrupt, and the management MCU performs an update process corresponding to the hot plug event.

5. The hot-swap processing method according to claim 2, characterized in that: In the operation phase after the startup phase of the computer device, in the notification step, the hot plug interrupt event initiator notifies the management MCU of the occurrence of the hot plug event by way of an interrupt, and the management MCU executes an update process corresponding to the hot plug event.

6. The hot-swap processing method according to any one of claims 1 to 5, characterized in that: The updating step comprises: Determining whether a hot insertion event or a hot removal event has occurred according to the hot plug status register; and The corresponding routing information update process is executed according to the judgment result.

7. The hot-swap processing method according to claim 6, characterized in that: The hot plug processing method is implemented by MCTP Over PCIe VDM.

8. The hot-swap processing method according to claim 7, characterized in that: When the result of the determination indicates that a hot-plug event has occurred, the MCTP Over PCIe VDM handshake process is executed, thereby updating the MCTP routing table.

9. A computer device, characterized in that: The computer device comprises: A hot-plug interrupt event initiating unit, used for notifying the processing unit of the occurrence of the hot-plug event by interruption when a hot-plug event occurs, wherein the hot-plug event includes a hot-insertion event in which a hot-plug device is connected to the computer device and a hot-plug removal event in which the hot-plug device is removed from the computer device; The processing unit is used to perform an update process corresponding to the hot plug event when receiving the notification from the hot plug interrupt event initiating unit.

10. The computer device according to claim 9, characterized in that in, The hot-plug interrupt event initiating unit notifies the BIOS or the management MCU as the processing unit of the occurrence of the hot-plug event by way of an interrupt.

11. The computer device according to claim 10, characterized in that During the startup phase of the computer device, the hot-plug interrupt event initiating unit notifies the BIOS of the occurrence of the hot-plug event through an SMI interrupt, and the BIOS executes an update process corresponding to the hot-plug event.

12. The computer device according to claim 11, characterized in that In the operation phase after the startup phase of the computer device, the hot-plug interrupt event initiating unit notifies the management MCU of the occurrence of the hot-plug event by way of an interrupt, and the management MCU executes an update process corresponding to the hot-plug event.

13. The computer device according to claim 10, characterized in that In the operation phase after the startup phase of the computer device, the hot plug interrupt event initiating unit notifies the management MCU of the occurrence of the hot plug event by way of an interrupt, and the management MCU executes an update process corresponding to the hot plug event.

14. The computer device according to any one of claims 9 to 13, characterized in that: The updating process performed by the processing unit includes: Determining whether a hot insertion event or a hot removal event has occurred according to the hot plug status register; and The corresponding routing information update process is executed according to the judgment result.

15. The computer device according to claim 14, characterized in that The computer device uses MCTP Over PCIe VDM to perform hot plug processing.

16. The computer device according to claim 15, characterized in that When the result of the determination indicates that a hot-plug event has occurred, the MCTP Over PCIe VDM handshake process is executed, thereby updating the MCTP routing table.