Method for performing heat removal operation, hot pluggable system, device, medium and product

The thermal removal method performed by the main central processor solves the problem of shutting down and powering off the PCI device replacement in the server, and realizes thermal removal of the device in the running state, improving the service availability of the server.

CN119336682BActive Publication Date: 2025-06-20INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411877796.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-19
Publication Date
2025-06-20
Estimated Expiration
2044-12-19

AI Technical Summary

Technical Problem

In the field of server technology, replacement of PCI equipment requires the server to shut down and power outage, which affects business operations.

Method used

Through the method executed by the main central processor, the status setting information of the target device is obtained, the target output pin is determined, the level signal status is changed according to the status indication information, and the system control interrupt event is triggered to realize the thermal removal operation.

Benefits of technology

It realizes the thermal removal operation of the device without affecting the operation of the server business, and is suitable for any type of device without the need for additional control devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119336682B_ABST
    Figure CN119336682B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of servers, and discloses a method for performing a hot removal operation, a hot pluggable system, a device, a medium, and a product. The method includes obtaining target link identification information, target status indication information, and the location information of a target general-purpose input / output (GPIO) adapter. According to the identification information of the target communication link and the location information of the target GPIO adapter, a target output pin is determined. According to the target status indication information, the signal state of the level signal of the target output pin is changed, and the level signal is output to a target system control interrupt pin. When the target central processing unit (CPU) is the main CPU, according to the signal state of the above-mentioned level signal, the value in the target system control interrupt status register is changed. When it is detected that the value is a first preset value, a hot removal operation is performed on the target device. The present invention can implement hot removal operations on all types of peripheral interconnect component devices, and can avoid affecting the running services of the server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of servers, and particularly to a method for performing a hot removal operation, a hot pluggable system, a device, a medium, and a product. Background Art

[0002] In the technical field of servers, the core components of a server include devices such as a central processing unit (CPU), a memory, and a non-volatile memory express (NVME) hard disk. In addition, according to the different main functions of the server, the server can also be connected to peripheral component interconnect (PCI) devices, for example, a PCI network card.

[0003] During the use of a PCI device, if the PCI device fails, the user replaces the PCI device. However, when replacing the device, the server needs to be powered off to replace the PCI device, resulting in an impact on the business operation of the server. Summary of the Invention

[0004] In view of this, the present invention provides a method, a device, a hot pluggable system, a computer device, a storage medium, and a program product for performing a hot removal operation to solve the problem that the plugging and unplugging operation of a device affects the business operation of a server.

[0005] In a first aspect, the present invention provides a method for performing a hot removal operation, which is executed by a main central processing unit, and the method includes:

[0006] Obtain status setting information corresponding to a target device, where the status setting information includes target link identification information and target status indication information, and the target link identification information is identification information of a communication link between the target device and a target central processing unit to which the target device is connected;

[0007] Obtain location information of a target general-purpose input / output interface connected to the target device;

[0008] Determine a target output pin corresponding to the target device on the target general-purpose input / output interface according to the target link identification information and the location information of the target general-purpose input / output interface;

[0009] Change the signal state of the level signal of the target output pin according to the target status indication information, where the level signal of the target output pin is output to a target system control interrupt pin of a target peripheral interconnect component slot connected to the target device;

[0010] When the target central processing unit is the main central processing unit, the value in the target system control interrupt status register corresponding to the target device is changed according to the signal state of the level signal detected from the target system control interrupt pin;

[0011] When it is detected that the value in the target system control interrupt status register is the first preset value, a thermal removal operation is performed on the target device.

[0012] A method for performing a thermal removal operation provided by the present invention has the following advantages:

[0013] First, according to the obtained target link identification information and the position information of the target general-purpose input / output interface device, the target output pin is determined. Furthermore, according to the obtained target status indication information, the signal state of the level signal of the target output pin is changed, and the level signal output by the target output pin will be output to the target system control interrupt pin. When the target central processing unit is the main central processing unit, the signal state of the level signal of the target system control interrupt pin that can be detected is used to change the value in the target system control interrupt status register. When it is detected that the value in the target system control interrupt status register is the first preset value, the target device can be removed. In this way, by controlling the level signal, the value in the target system control interrupt status register is further modified to trigger a system control interrupt event to complete the thermal removal operation. The same method can be used for thermal removal operations on any type of device, rather than different thermal removal methods being required according to the structure of different types of devices, and there is no need to control the device through other control devices, such as a baseboard management controller or a complex programmable logic device.

[0014] In an alternative embodiment, when the target central processing unit is not the main central processing unit, the method further includes:

[0015] Obtaining the value in the target system control interrupt status register from the target central processing unit; wherein, the value in the target system control interrupt status register is the value obtained after the target central processing unit modifies according to the signal state of the level signal detected from the target system control interrupt pin.

[0016] Specifically, different central processing units detect the signal state of the level signal of the system control interrupt pin on the peripheral interconnect component slot connected to themselves and change the value in the corresponding system control interrupt status register. The main central processing unit obtains the value in the corresponding system control interrupt status register from the target central processing unit for subsequent judgment. In this way, more peripheral interconnect component devices can be connected, and thermal removal control of all peripheral interconnect component devices can be achieved.

[0017] In an alternative embodiment, the status setting information further includes target indication information for indicating a target general-purpose input / output interface device;

[0018] Obtaining the location information of a target general-purpose input / output interface device connected to a target device includes:

[0019] According to the target indication information, obtain the location information corresponding to the target indication information as the location information of the target general-purpose input / output interface device.

[0020] Specifically, through the target indication information, the location information of the target general-purpose input / output interface device can be accurately determined.

[0021] In an alternative embodiment, when the target indication information includes the identification information of a target central processing unit, according to the target indication information, obtaining the location information corresponding to the target indication information as the location information of the target general-purpose input / output interface device includes:

[0022] According to the identification information of the target central processing unit and the pre-established mapping relationship between the identification information of the central processing unit and the location information of the general-purpose input / output interface device, obtain the location information of the target general-purpose input / output interface device.

[0023] Specifically, since the central processing unit generally performs relevant service operations through devices connected by a peripheral interconnect component slot, different central processing units can be connected to different devices, and different central processing units are connected to different general-purpose input / output interface devices. Therefore, the location information of the target general-purpose input / output interface device connected to the target device can be accurately determined through the identification information of the target central processing unit.

[0024] In an alternative embodiment, according to the target link identification information and the location information of the target general-purpose input / output interface device, determining a target output pin corresponding to the target device on the target general-purpose input / output interface device includes:

[0025] According to the target link identification information and the pre-established mapping relationship between the link identification information and the identification information of the output pin, determine the identification information of the target output pin;

[0026] According to the identification information of the target output pin and the location information of the target general-purpose input / output interface device, determine the target output pin on the target general-purpose input / output interface device.

[0027] Specifically, through the pre-established mapping relationship between the link identification information and the output pin identification information, the target output pin can be accurately found. When the subsequent information changes, only the mapping relationship needs to be changed, which is relatively convenient.

[0028] In an alternative embodiment, changing the signal state of the level signal of the target output pin according to the target status indication information includes:

[0029] When it is determined that the target status indication information is used to indicate the removal of the target device, changing the signal state of the level signal of the target output pin to a first preset state;

[0030] Or,

[0031] When it is determined that the target status indication information is used to indicate the addition of the target device, changing the signal state of the level signal of the target output pin to a second preset state.

[0032] Specifically, changing the signal state of the level signal of the target output pin according to the target status indication information can achieve the hot plug and play operation of the target device, which is relatively convenient and does not require using other control devices to perform the hot plug and play operation on the target device.

[0033] In an alternative embodiment, when it is determined that the target status indication information is used to indicate the addition of the target device, after changing the signal state of the level signal of the target output pin to a second preset state, the method further includes:

[0034] Performing a restart operation on the server so that after the server restarts and enters the processing logic of the operating system, a hot insertion operation is performed on the target device.

[0035] Specifically, since after the target device is removed, the relevant information is deleted from the operating system and no memory resources are allocated to the target device, therefore, through the restart operation, memory resources can be reallocated to the target device, that is, the relevant information of the target device is updated to the operating system. In this way, the target device can be reused, that is, the hot insertion operation of the target device is achieved.

[0036] In an alternative embodiment, obtaining the status setting information corresponding to the target device includes:

[0037] Receiving a hot plug and play instruction sent by the client;

[0038] Parsing the hot plug and play instruction to obtain the status setting information.

[0039] Specifically, the user can perform the hot plug and play operation on any device at any time through simple operations, which is more convenient.

[0040] In an alternative embodiment, the target peripheral interconnect component slot is one of at least one peripheral interconnect component slot included in the hot plug and play system, and all devices connected to each peripheral interconnect component slot are devices of the target type, and the devices of the target type are used to provide resources of the target type;

[0041] Obtain status setting information corresponding to the target device, including:

[0042] Obtain the remaining amount of resources of the target type;

[0043] Determine whether to perform a hot plug operation according to the remaining amount of resources and a preset threshold, and determine the operation type of the hot plug operation;

[0044] When it is determined to perform a hot plug operation, randomly select an identification information of a device from the identification information corresponding to at least one device that is connected to each peripheral interconnect component slot and is in the target state, where the target state is the state corresponding to the operation type, and the randomly selected identification information of the device is the identification information of the target device;

[0045] Obtain the target link identification information according to the identification information of the target device and the mapping relationship between the identification information of the device and the link identification information;

[0046] Determine the target state indication information corresponding to the operation type according to the operation type, where the target link identification information and the target state indication information constitute the status setting information.

[0047] Specifically, by detecting resource requirements in real time and automatically generating status setting information, hot plug operations on any device can be realized, which is more flexible.

[0048] In an alternative embodiment, the preset threshold includes a first preset threshold and a second preset threshold, and the second preset threshold is less than the first preset threshold;

[0049] Determine whether to perform a hot plug operation according to the remaining amount of resources and a preset threshold, and determine the operation type of the hot plug operation, including:

[0050] Determine whether the remaining amount of resources is greater than the first preset threshold, and determine whether the remaining amount of resources is less than the second preset threshold;

[0051] When it is determined that the remaining amount of resources is greater than the first preset threshold, determine to perform a hot plug operation and determine the operation type as a hot removal operation;

[0052] Or,

[0053] When it is determined that the remaining amount of resources is less than the first preset threshold, determine to perform a hot plug operation and determine the operation type as a hot insertion operation.

[0054] Specifically, in the case of a large remaining amount of resources, a hot removal operation can be immediately performed, which can save the management resources of the target device and reduce resource waste. In the case of a small remaining amount of resources, the target device can be added in time to provide sufficient resources for the services running on the server.

[0055] In an alternative embodiment, when the value in the target system control interrupt status register is detected to be a first preset value, a hot removal operation is performed on the target device, including:

[0056] Performing a hot removal operation on the target device according to the target control method in the operating system power management based on the target link identification information.

[0057] Specifically, the operating system power management module can ensure that the hot removal operation is performed in a safe state. Before removal, it is confirmed that the target device has been correctly uninstalled of the driver, all data transmissions have been stopped, and the target device is placed in a low power or sleep state, thereby reducing potential risks.

[0058] In a second aspect, the present invention provides a device for performing a hot removal operation, the device including:

[0059] An acquisition module, configured to acquire status setting information corresponding to the target device, where the status setting information includes target link identification information and target status indication information, and the target link identification information is the identification information of the communication link between the target device and the target central processing unit to which it is connected; acquiring the location information of the target general-purpose input / output interface connected to the target device;

[0060] A determination module, configured to determine a target output pin corresponding to the target device on the target general-purpose input / output interface according to the target link identification information and the location information of the target general-purpose input / output interface;

[0061] An alteration module, configured to alter the signal state of the level signal of the target output pin according to the target status indication information, where the level signal of the target output pin is output to the target system control interrupt pin of the target peripheral interconnect component slot connected to the target device; when the target central processing unit is the main central processing unit, altering the value in the target system control interrupt status register corresponding to the target device according to the signal state of the level signal detected from the target system control interrupt pin;

[0062] A detection module, configured to perform a hot removal operation on the target device when the value in the target system control interrupt status register is detected to be a first preset value.

[0063] In a third aspect, the present invention provides a hot-swap system, the hot-swap system including at least one central processing unit, at least one general-purpose input / output interface, and at least one peripheral interconnect component slot;

[0064] The main central processing unit in the at least one central processing unit is configured to execute the method for the hot removal operation in the first aspect or any corresponding embodiment thereof.

[0065] Fourthly, the present invention provides a computer device, comprising: a memory and a processor, which are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to perform the method for heat removal operation according to the first aspect or any corresponding embodiment thereof.

[0066] Fifthly, the present invention provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions are used to cause a computer to execute the method for heat removal operation according to the first aspect or any corresponding embodiment thereof.

[0067] Sixthly, the present invention provides a computer program product, comprising computer instructions, and the computer instructions are used to cause a computer to execute the method for heat removal operation according to the first aspect or any corresponding embodiment thereof. Description of the Drawings

[0068] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the related art, the following will briefly introduce the drawings required for use in the description of the specific embodiments or the related art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0069] Figure 1 is a schematic diagram of a hot pluggable system according to an embodiment of the present invention;

[0070] Figure 2 is a schematic flowchart of the method for performing a heat removal operation according to an embodiment of the present invention;

[0071] Figure 3 is a schematic diagram of the interface of a running tool according to an embodiment of the present invention;

[0072] Figure 4 is a schematic diagram of the interface of another running tool according to an embodiment of the present invention;

[0073] Figure 5 is a schematic flowchart of the method for performing a hot pluggable operation according to an embodiment of the present invention;

[0074] Figure 6 is a structural block diagram of the device for performing a heat removal operation according to an embodiment of the present invention;

[0075] Figure 7 is a schematic hardware structure diagram of the computer device according to an embodiment of the present invention. Detailed Embodiments

[0076] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0077] The method for performing a heat removal operation provided by the present invention can be implemented by a hot pluggable system. The hot pluggable system may include at least one central processing unit (CPU), at least one general purpose input / output (GPIO) interface, and at least one peripheral component interconnect (PCI) slot. The hot pluggable system can be a part of a server.

[0078] For example, the structure of the hot pluggable system can be as Figure 1 shown. The main central processing unit ( Figure 1 CPU 0 in Figure 1 ) can be electrically connected to each general purpose input / output interface through an I2C bus. CPU 0 is electrically connected to a plurality of peripheral component interconnect slots respectively. Each peripheral component interconnect slot connected to CPU 0 is electrically connected to GPIO interface 0, and each peripheral component interconnect slot connected to CPU 1 is electrically connected to GPIO interface 1. Specifically, the general purpose input / output interface may include multiple output pins (such as Figure 1 EN1 to ENn shown), and each peripheral component interconnect slot may include at least one system control interrupt pin. An output pin on the general purpose input / output interface can be electrically connected to a system control interrupt pin.

[0079] Among them, the peripheral interconnect component slots can be used to connect various peripheral interconnect component devices. For example, peripheral interconnect component network cards, Open Compute Project (OCP) network cards, peripheral interconnect component Redundant Array of Independent Disks (RAID) cards, peripheral interconnect component interface acceleration cards, etc. The peripheral interconnect component slots can be slots with different bandwidths. For example, peripheral interconnect component x1 slots (theoretical maximum bandwidth is 1GB / s), peripheral interconnect component x4 slots (theoretical maximum bandwidth is 4GB / s), peripheral interconnect component x8 slots (theoretical maximum bandwidth is 8GB / s), peripheral interconnect component x16 slots (theoretical maximum bandwidth is 16GB / s), etc. Each peripheral interconnect component slot can be connected to one or more peripheral interconnect component devices, and a peripheral interconnect component device has its corresponding system control interrupt pins on the peripheral interconnect component slot to which it is connected.

[0080] Central Processor 0 and Central Processor 1 are electrically connected and can communicate with each other through the Cache Coherent Interconnect for Accelerators (CCIX) protocol, Ultra Path Interconnect (UPI) protocol, and Gemini Memory Interface (GMI) protocol. Central Processor 0 can utilize the operating system stored in the memory and interact with the Basic Input / Output System (BIOS) to complete relevant operations. For example, processing System Control Interrupt (system control interrupt) events, etc. Central Processor 0 can interact with the BIOS through Low Pin Count (LPC), Serial Peripheral Interface (SPI), and Quad Serial Peripheral Interface (QSPI).

[0081] In some alternative embodiments, in the case where there are multiple general-purpose input / output interface devices, the peripheral interconnect component slots connected to the first central processor can be electrically connected to the general-purpose input / output interface devices connected to the first central processor, where the first central processor is any one of at least one central processor.

[0082] An embodiment of the present invention provides a method for performing a thermal removal operation. By triggering the thermal removal operation through a system control interruption event, the thermal removal operation can be implemented for different types of peripheral interconnect component devices.

[0083] According to an embodiment of the present invention, there is provided an embodiment of a method for performing a thermal removal operation. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.

[0084] In this embodiment, a method for performing a thermal removal operation is provided, which can be executed by the above-mentioned main central processing unit. Figure 2 It is a flowchart of a method for performing a thermal removal operation according to an embodiment of the present invention, as Figure 2 shown, and the process includes the following steps:

[0085] Step S201, obtain status setting information corresponding to the target device.

[0086] Among them, the target device can be any peripheral interconnect component device. The status setting information may include target link identification information and target status indication information. The target link identification information is the identification information of the communication link between the target device and the target central processing unit to which it is connected. For example, Figure 1 the PCI link in. The target status indication information can be used to indicate the execution of a thermal removal operation on the target device, or can also be used to indicate the execution of a hot plug and play operation on the target device. When there are multiple general-purpose input / output interface devices in the hot plug and play system, and the main central processing unit is respectively connected to each general-purpose input / output interface device, the status setting information may further include target indication information for indicating the target general-purpose input / output interface device. The target indication information can be the identification information of the target central processing unit or the identification information of the target general-purpose input / output interface device.

[0087] Specifically, the status setting information can be obtained from the client or can be automatically generated. Correspondingly, the status setting information can be obtained through the following two methods.

[0088] Method 1, receive a hot plug and play instruction sent by the client. Parse the hot plug and play instruction to obtain the status setting information.

[0089] Specifically, the server can be installed with a running tool, the client can display the interface of the running tool, and through the interaction between the client and the server, the status setting operation of each peripheral interconnect component device can be realized.

[0090] First, the interface of the running tool can be as Figure 3As shown. The user can perform selection operations at two levels. First, select the target link identification information corresponding to the target device, and then set the target status indication information. For example, when a hot removal operation needs to be performed on the device connected to the peripheral interconnect component 3, the user can select to input 3 and then input the value 1 (indicating enabling the hot removal function). The client can generate status setting information according to the user's input operation. In this case, the status setting information includes the above-mentioned target link identification information and target status indication information.

[0091] Second, the interface of the running tool can be as Figure 4 shown. The user can perform selection operations at three levels. First, select the identification information of the target central processing unit, then select the target link identification information corresponding to the target device, and then set the target status indication information. For example, when a hot removal operation needs to be performed on the device connected to the peripheral interconnect component 1, the user can select to input 0, then input the value 1, and finally input the value 1 (indicating enabling the hot removal function). The client can generate status setting information according to the user's input operation. In this case, the status setting information includes the above-mentioned identification information of the target central processing unit (the above-mentioned target indication information), target link identification information, and target status indication information.

[0092] In the second method, the main central processing unit can obtain the remaining amount of resources of the target type. According to the remaining amount of resources and the preset threshold, determine whether to perform a hot plug and unplug operation, and determine the operation type of the hot plug and unplug operation. When it is determined to perform a hot plug and unplug operation, randomly select the identification information of one device from the identification information corresponding to at least one device that is connected to each peripheral interconnect component slot and is in the target state. Among them, the target state is the state corresponding to the operation type, and the randomly selected device identification information is the identification information of the target device. According to the identification information of the target device and the mapping relationship between the device identification information and the link identification information, obtain the target link identification information. According to the operation type, determine the target status indication information corresponding to the operation type.

[0093] Among them, the resources of the target type can be storage resources, computing resources, etc. The operation type can be a hot insertion operation or a hot removal operation.

[0094] Optionally, when the preset threshold includes a first preset threshold and a second preset threshold, and the second preset threshold is less than the first preset threshold, the specific processing of determining whether to perform a hot plug and unplug operation and determining the operation type according to the remaining amount of resources and the preset threshold can be as follows:

[0095] Determine whether the remaining amount of resources is greater than a first preset threshold and determine whether the remaining amount of resources is less than a second preset threshold. When it is determined that the remaining amount of resources is greater than the first preset threshold, determine to perform a hot plug operation and determine that the operation type is a hot removal operation. Or, when it is determined that the remaining amount of resources is less than the first preset threshold, determine to perform a hot plug operation and determine that the operation type is a hot insertion operation.

[0096] Step S202, obtain the location information of the target general-purpose input / output interface connected to the target device.

[0097] Among them, the location information may be I2C address information.

[0098] Specifically, due to the different numbers and connection relationships of the components in the hot plug system, accordingly, obtaining the location information of the target general-purpose input / output interface may include the following multiple situations:

[0099] Situation 1, when the number of peripheral interconnect component devices is small (for example, the number is less than or equal to the number of output pins on a general-purpose input / output interface), the hot plug system can set only one general-purpose input / output interface. When the general-purpose input / output interface is only connected to the main central processing unit and the status setting information only includes the target link identification information and the target status indication information. In this case, since the main central processing unit is connected to other components in the server through the I2C bus, the location information of the target general-purpose input / output interface can be stored in the memory of the main central processing unit. In this way, when the status setting information is obtained, the location information of the target general-purpose input / output interface can be directly obtained from the memory.

[0100] Situation 2, when the number of peripheral interconnect component devices is large (for example, the number is greater than the number of output pins on a general-purpose input / output interface), the main central processing unit can be electrically connected to each general-purpose input / output interface, and the status setting information includes the target link identification information and the target status indication information. The main central processing unit can obtain the location information of the target general-purpose input / output interface according to the mapping relationship between the target link identification information, the pre-built link identification information, and the location information of the general-purpose input / output interface. In this way, through the target link identification information and the pre-built mapping relationship between the link identification information and the location information of the general-purpose input / output interface, the target general-purpose input / output interface connected to the target device can be automatically determined without the user performing more selection operations, which can simplify the user's operation.

[0101] Case 3: When the number of peripheral interconnect component devices is relatively large (for example, greater than the number of output pins on a general-purpose input / output interface device), the main central processing unit can be electrically connected to each general-purpose input / output interface device, and the status setting information includes target link identification information, target status indication information, and target indication information. When the target indication information is the identification information of the target central processing unit, the main central processing unit can obtain the location information of the target general-purpose input / output interface device according to the identification information of the target central processing unit and the pre-built mapping relationship between the identification information of the central processing unit and the location information of the general-purpose input / output interface device. Alternatively, when the target indication information is the identification information of the target general-purpose input / output interface device, the main central processing unit can obtain the location information of the target general-purpose input / output interface device according to the identification information of the target general-purpose input / output interface device and the pre-built mapping relationship between the identification information of the input / output interface device and the location information.

[0102] Step S203: Determine the target output pin corresponding to the target device on the target general-purpose input / output interface device according to the target link identification information and the location information of the target general-purpose input / output interface device.

[0103] Specifically, step S203 may include:

[0104] Step 1: Determine the identification information of the target output pin according to the target link identification information and the pre-built mapping relationship between the link identification information and the identification information of the output pin.

[0105] Step 2: Determine the target output pin on the target general-purpose input / output interface device according to the identification information of the target output pin and the location information of the target general-purpose input / output interface device.

[0106] Step S204: Change the signal state of the level signal of the target output pin according to the target status indication information.

[0107] Among them, the level signal of the target output pin is output to the target system control interrupt pin of the target peripheral interconnect component slot connected to the target device.

[0108] Specifically, when the main central processor and each general-purpose input / output interface are electrically connected respectively, the main central processor can change the signal state of the level signal of the target output pin through an operation tool. Correspondingly, when it is determined that the target status indication information is used to indicate the removal of the target device, the main central processor can change the signal state of the level signal of the target output pin to a first preset state (for example, it can be a high-level state). Or, when it is determined that the target status indication information is used to indicate the addition of the target device, the main central processor can change the signal state of the level signal of the target output pin to a second preset state (for example, it can be a low-level state).

[0109] In some other alternative embodiments, in the case where there are multiple general-purpose input / output interfaces, the peripheral interconnect component slot connected to the first central processor can be electrically connected to the general-purpose input / output interface connected to the first central processor. When the target central processor is not the main central processor, the main central processor can send the identified information of the target output pin and the location information of the target general-purpose input / output interface to the target central processor, and the target central processor adjusts the signal state of the level signal of the target output pin.

[0110] In some alternative embodiments, after changing the signal state of the level signal of the target output pin to the second preset state, the main central processor can also perform a restart operation on the server, so that after the server restarts and enters the processing logic of the operating system, a hot insertion operation is performed on the target device to allocate memory resources for the target device. After restarting and entering the processing logic of the operating system, the main central processor will read the values in the system control interrupt status register corresponding to each device, and based on the read values, determine whether to perform a hot removal operation or a hot plug operation on the corresponding device.

[0111] Step S205, when the target central processor is the main central processor, change the value in the target system control interrupt status register corresponding to the target device according to the signal state of the level signal detected from the target system control interrupt pin.

[0112] Specifically, when the target central processor is the main central processor, the main central processor can change the value in the target system control interrupt enable register according to the signal state of the level signal detected from the target system control interrupt pin, and change the value in the target system control interrupt status register according to the value detected from the target system control interrupt enable register.

[0113] Alternatively, when the target central processing unit (CPU) is not the main CPU, obtain the value in the target system control interrupt status register from the target CPU. The value in the target system control interrupt status register is the value obtained after the target CPU modifies it according to the signal status of the level signal detected on the target system control interrupt pin. Specifically, the target CPU can change the value in the target system control interrupt enable register according to the signal status of the level signal detected from the target system control interrupt pin, and change the value in the target system control interrupt status register according to the value detected from the target system control interrupt enable register.

[0114] Step S206: When the value in the target system control interrupt status register is detected to be the first preset value, perform a thermal removal operation on the target device.

[0115] Specifically, the main CPU can actively identify whether the value in each system state control register is the first preset value through the Operating System Power Management (OSPM) driver under the operating system, that is, detect whether the system control interrupt event for triggering the thermal removal operation occurs. When the value in the target system control interrupt status register is detected to be the first preset value, it can be determined that the system interrupt trigger event for triggering the thermal removal operation on the target device occurs. At this time, the main CPU can use the target control method in the OSPM to perform a thermal removal operation on the target device according to the target link identification information. The target control method can be the _EJ0 control method.

[0116] Before performing the thermal removal operation, the main CPU can first determine whether the target device is still in the working state. When it is determined that the target device is not in the working state, then call the target control method to turn off the power of the target device, release the resources related to the target device, and remove the reference to the target device (that is, the operating system will stop managing and monitoring the target device at the software level). In this way, the user cannot see the target device on the display interface of the client and cannot perform any operations on the target device.

[0117] For example, the relevant code for performing the hot plug operation can be as follows:

[0118] “ / / Tell OS to run thru the new status of this device (Software SCIgenerated from SMM for all Hot plug events)

[0119] Method (_L62, 0x0, Not Serialized) {

[0120] If (L Equal (SCI0, 3)) { / / Device ejection (Invoked with _EJ0 method called)

[0121] / / NTFM (SCI1, 3)

[0122] NTFC (SCI2, 3)

[0123] Store (0, SCI0)

[0124] } Else If (L Equal (SCI0, 1)) { / / Device check (OS can still reject online request based on resources and capability)

[0125] NTFC (CPHP, 0)

[0126] NTFI (IIOP, 0)

[0127] Store (0, CPHP)

[0128] Store (0, IIOP)

[0129] Store (0, SCI0)

[0130] }

[0131] In addition, before implementing this solution, it is necessary to define the addresses and target control methods for the devices connected to each peripheral interconnect component slot to enable the hot-plug function for each device. For example, the following code defines the addresses and target control methods for the devices connected to two peripheral interconnect component slots respectively.

[0132] Name (HPP, Package () {0x08,0x40, 0x01, 0x00})

[0133] / / Device definitions for Slot 1- HOT PLUG SLOT

[0134] Device (S1F0) { / / Slot 1, Func#0 on bus P2P2

[0135] Name(_ADR,0x00020000)

[0136] Method (EJ0, 1) {

[0137] }

[0138] Device (S1F1) { / / Remove all power to device}

[0139] / / Slot 1, Func#1 on bus P2P2

[0140] Name(_ADR,0x00020001)

[0141] Method (_EJ0, 1) {

[0142] }

[0143] Device (S1F2) { / / Remove all power to device}

[0144] / / Slot 1, Func#2 on bus P2P2

[0145] Name (ADR,0x000200 02)

[0146] Method (_EJ0, 1) {

[0147] }

[0148] Device (S1F3) { / / Remove all power to device}

[0149] / / Slot 1, Func#3 on bus P2P2

[0150] Name(_ADR,0x00020003)

[0151] Method (_EJ0, 1) {

[0152] }

[0153] Device (S1F4) { / / Remove all power to device}

[0154] / / Slot 1, Func#4 on bus P2P2

[0155] Name(_ADR,0x00020004)

[0156] Method (_EJ0, 1) {

[0157] }

[0158] Device (S1F5) { / / Remove all power to device}

[0159] / / Slot 1, Func#5 on bus P2P2

[0160] Name(_ADR,0x00020005)

[0161] Method (_EJ0, 1) {

[0162] }

[0163] Device (S1F6) { / / Remove all power to device}

[0164] / / Slot 1, Func#6 on bus P2P2

[0165] Name(_ADR,0x00020006)

[0166] Method (_EJ0, 1) {

[0167] }

[0168] Device (S1F7) { / / Remove all power to device}

[0169] / / Slot 1, Func#7 on bus P2P2

[0170] Name(_ADR,0x00020007)

[0171] Method (_EJ0, 1) {

[0172] } / / Remove all power to device}

[0173] / / Device definitions for Slot 2- HOT PLUG SLOT

[0174] Device (S2F0) { / / Slot 2, Func#0 on bus P2P2

[0175] Name(_ADR, 0x00030000)

[0176] Method (_EJ0, 1) {

[0177] }

[0178] Device (S2F1) { / / Remove all power to device}

[0179] / / Slot 2, Func#1 on bus P2P2

[0180] Name(_ADR, 0x00030001)

[0181] Method (_EJ0, 1) {

[0182] }

[0183] Device (S2F2) { / / Remove all power to device}

[0184] / / Slot 2, Func#2 on bus P2P2

[0185] Name(_ADR, 0x00030002)

[0186] Method (_EJ0, 1) {

[0187] }

[0188] Device (S2F3) { / / Remove all power to device}

[0189] / / Slot 2, Func#3 on bus P2P2

[0190] Name(_ADR, 0x00030003)

[0191] Method (_EJ0, 1) {

[0192] }

[0193] Device (S2F4) { / / Remove all power to device}

[0194] / / Slot 2, Func#4 on bus P2P2

[0195] Name(_ADR, 0x00030004) )

[0197] Method (_EJ0, 1) { / / Remove all power to device}

[0198] }

[0199] Device (S2F5) { / / Slot 2, Func#5 on bus P2P2

[0200] Name(_ADR,0x00030005)

[0201] Method (_EJ0, 1) { / / Remove all power to device}

[0202] }

[0203] Device (S2F6) { / / Slot 2, Func#6 on bus P2P2

[0204] Name(_ADR,0x00030006)

[0205] Method (_EJ0, 1) { / / Remove all power to device}

[0206] }

[0207] Device (S2F7) { / / Slot 2, Func#7 on bus P2P2

[0208] Name(_ADR,0x00030007)

[0209] Method (_EJ0, 1) { / / Remove all power to device}

[0210] }

[0211] }”

[0212] In some alternative embodiments, after completing the thermal removal operation of the target device, the main central processing unit can verify whether the thermal removal of the target device is successful through OSPM. For example, it can verify whether the target device can still be detected. If so, it can be considered that the thermal removal of the target device fails; if not, it can be considered that the thermal removal of the target device is successful.

[0213] In some alternative embodiments, the mapping relationship set above can be predefined in the Differentiated System Description Table (DSDT) of the Advanced Configuration and Power Management Interface (ACPI).

[0214] For the method of performing a thermal removal operation provided in this embodiment, first, according to the obtained target link identification information and the location information of the target general-purpose input / output interface device, the target output pin is determined. Furthermore, according to the obtained target status indication information, the signal state of the level signal of the target output pin is changed, and the level signal output by the target output pin will be output to the target system control interrupt pin. When the target central processing unit is the main central processing unit, the signal state of the level signal of the target system control interrupt pin can be detected, and the value in the target system control interrupt status register is changed. When it is detected that the value in the target system control interrupt status register is the first preset value, the target device can be removed. In this way, by controlling the level signal, the value in the target system control interrupt status register is further modified to trigger a system control interrupt event to complete the thermal removal operation. The same method can be used for thermal removal operations for any type of device, rather than different thermal removal methods being required for different types of devices according to the structure of the device, and there is no need to control the device through other control devices, such as a baseboard management controller or a complex programmable logic device.

[0215] The following details the entire process of performing a hot plug operation from the hardware level, the operating system level, and the operating tool level. The specific steps can be as Figure 5 shown.

[0216] After the server powers on and boots into the operating system each time, it determines whether the thermal removal function corresponding to each device (i.e., each PCI link) is enabled by the value in the system control interrupt status register corresponding to each device through the DSDT table of the ACPI protocol. If so, the corresponding device can be thermally removed through the target control method. If not, the corresponding device can be used normally. During the operation of the server, the user can select a device for thermal removal. First, the user can select the identification information of the target central processing unit, then select the link identification information, and finally select the status indication information. If the status indication information is used to indicate the removal of the device, when it is determined through the DSDT of the ACPI protocol that the value in the corresponding system control interrupt status register is the first preset value, the device is removed through the _EJ0 method of the OSPM.

[0217] In this embodiment, a device for performing a heat removal operation is further provided. This device is used to implement the above-mentioned embodiments and preferred implementation manners, and those that have been described will not be repeated. As used hereinafter, the term "module" may be a combination of software and / or hardware that can implement a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.

[0218] This embodiment provides a device for performing a heat removal operation, such as Figure 6 shown, including:

[0219] An acquisition module 601, configured to acquire status setting information corresponding to a target device, where the status setting information includes target link identification information and target status indication information, and the target link identification information is identification information of a communication link between the target device and a target central processing unit to which it is connected; acquire location information of a target general-purpose input / output interface device connected to the target device;

[0220] A determination module 602, configured to determine a target output pin corresponding to the target device on the target general-purpose input / output interface device according to the target link identification information and the location information of the target general-purpose input / output interface device;

[0221] A change module 603, configured to change the signal state of the level signal of the target output pin according to the target status indication information, where the level signal of the target output pin is output to a target system control interrupt pin of a target peripheral interconnect component slot connected to the target device; when the target central processing unit is the main central processing unit, change the value in a target system control interrupt status register corresponding to the target device according to the signal state of the level signal detected from the target system control interrupt pin;

[0222] A detection module 604, configured to perform a heat removal operation on the target device when it is detected that the value in the target system control interrupt status register is a first preset value.

[0223] In an alternative embodiment, the acquisition module 601 is further configured to:

[0224] When the target central processing unit is not the main central processing unit, acquire the value in the target system control interrupt status register from the target central processing unit; where the value in the target system control interrupt status register is a value obtained after the target central processing unit modifies according to the signal state of the level signal detected from the target system control interrupt pin.

[0225] In an alternative embodiment, the status setting information further includes target indication information for indicating the target general-purpose input / output interface device;

[0226] An acquisition module 601, specifically used for:

[0227] According to the target indication information, obtain the position information corresponding to the target indication information as the position information of the target general input / output interface device.

[0228] In an optional implementation manner, when the target indication information includes the identification information of the target central processing unit, the acquisition module 601 is specifically used for:

[0229] According to the identification information of the target central processing unit and the pre-built mapping relationship between the identification information of the central processing unit and the position information of the general input / output interface device, obtain the position information of the target general input / output interface device.

[0230] In an optional implementation manner, a determination module 602 is specifically used for:

[0231] According to the target link identification information and the pre-built mapping relationship between the link identification information and the identification information of the output pin, determine the identification information of the target output pin;

[0232] According to the identification information of the target output pin and the position information of the target general input / output interface device, determine the target output pin on the target general input / output interface device.

[0233] In an optional implementation manner, a change module 603 is specifically used for:

[0234] When it is determined that the target status indication information is used to indicate the removal of the target device, change the signal status of the level signal of the target output pin to the first preset status;

[0235] Or,

[0236] When it is determined that the target status indication information is used to indicate the addition of the target device, change the signal status of the level signal of the target output pin to the second preset status.

[0237] In an optional implementation manner, the determination module 602 is further used for:

[0238] Perform a restart operation on the server, so that after the server restarts and enters the processing logic of the operating system, then perform a hot insertion operation on the target device.

[0239] In an optional implementation manner, the acquisition module 601 is specifically used for:

[0240] Receive the hot plug and unplug instruction sent by the client;

[0241] Parse the hot plug and unplug instruction to obtain the status setting information.

[0242] In an alternative embodiment, the target peripheral interconnect component slot is one of at least one peripheral interconnect component slot included in a hot-swap system, and all devices connected to each peripheral interconnect component slot are devices of a target type, and the devices of the target type are used to provide resources of the target type;

[0243] The obtaining module 601 is specifically configured to:

[0244] Obtain the remaining amount of resources of the target type;

[0245] Determine whether to perform a hot-swap operation according to the remaining amount of resources and a preset threshold, and determine the operation type of the hot-swap operation;

[0246] When it is determined to perform a hot-swap operation, randomly select an identification information of a device from the identification information corresponding to at least one device that is connected to each peripheral interconnect component slot and is in a target state, where the target state is a state corresponding to the operation type, and the randomly selected identification information of the device is the identification information of the target device;

[0247] Obtain the target link identification information according to the identification information of the target device and the mapping relationship between the identification information of the device and the link identification information;

[0248] Determine the target state indication information corresponding to the operation type according to the operation type, where the target link identification information and the target state indication information form the state setting information.

[0249] In an alternative embodiment, the preset threshold includes a first preset threshold and a second preset threshold, and the second preset threshold is less than the first preset threshold;

[0250] The obtaining module 601 is specifically configured to:

[0251] Determine whether the remaining amount of resources is greater than the first preset threshold, and determine whether the remaining amount of resources is less than the second preset threshold;

[0252] When it is determined that the remaining amount of resources is greater than the first preset threshold, determine to perform a hot-swap operation and determine the operation type to be a hot-removal operation;

[0253] Or,

[0254] When it is determined that the remaining amount of resources is less than the first preset threshold, determine to perform a hot-swap operation and determine the operation type to be a hot-insert operation.

[0255] In an alternative embodiment, the detection module 604 is specifically configured to:

[0256] Perform a hot-removal operation on the target device according to the target link identification information by using a target control method in the operating system power management.

[0257] The further function descriptions of the above-mentioned various modules and units are the same as those in the corresponding embodiments above, and will not be repeated here.

[0258] The device for performing the heat removal operation in this embodiment is presented in the form of functional units. Here, the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and a memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.

[0259] The embodiment of the present invention also provides a computer device having the above-mentioned Figure 6 device for performing the heat removal operation shown.

[0260] Please refer to Figure 7 , Figure 7 which is a schematic structural diagram of a computer device provided by an optional embodiment of the present invention. As shown in Figure 7 , the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including a high-speed interface and a low-speed interface. Each component communicates with each other using different buses and can be installed on a common motherboard or in other ways as needed. The processor can process instructions executed within the computer device, including instructions stored in the memory or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (such as a server array, a set of blade servers, or a multi-processor system). Figure 7 In

[0261] Processor 10 can be a central processor, a network processor, or a combination thereof. Among them, processor 10 can further include a hardware integrated circuit. The above-mentioned hardware integrated circuit can be an application specific integrated circuit, a programmable logic device, or a combination thereof. The above-mentioned programmable logic device can be a complex programmable logic device, a field programmable gate array, a general array logic, or any combination thereof.

[0262] Among them, the memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0263] The memory 20 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system and application programs required for at least one function; the data storage area can store data created according to the use of the computer device and the like. In addition, the memory 20 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some alternative embodiments, the memory 20 may optionally include a memory remotely disposed relative to the processor 10, and these remote memories can be connected to the computer device through a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0264] The memory 20 may include volatile memory, for example, random access memory; the memory may also include non-volatile memory, for example, flash memory, a hard disk, or a solid-state drive; the memory 20 may further include a combination of the above types of memories.

[0265] The computer device further includes a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0266] Embodiments of the present invention also provide a computer-readable storage medium. The methods according to the embodiments of the present invention can be implemented in hardware, firmware, or be implemented as computer code that can be recorded on a storage medium, or be implemented as computer code originally stored in a remote storage medium or a non-transitory machine-readable storage medium and downloaded through a network and to be stored in a local storage medium, so that the methods described herein can be stored in such software processes on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk, or a solid-state drive, etc.; further, the storage medium may also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code, and when the software or computer code is accessed and executed by the computer, the processor, or the hardware, the methods shown in the above embodiments are implemented.

[0267] A part of the present invention can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can call or provide the methods and / or technical solutions according to the present invention through the operations of the computer. Those skilled in the art should understand that the forms of existence of computer program instructions in a computer-readable medium include but are not limited to source files, executable files, installation package files, etc. Correspondingly, the ways for a computer to execute computer program instructions include but are not limited to: the computer directly executes the instructions, or the computer compiles the instructions and then executes the corresponding compiled program, or the computer reads and executes the instructions, or the computer reads and installs the instructions and then executes the corresponding installed program. Herein, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to the computer.

[0268] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. A method for performing a heat removal operation, characterized in that: The method is executed by a main central processing unit, and the method includes: Acquire state setting information corresponding to the target device, wherein the state setting information includes target link identification information and target state indication information, the target link identification information is identification information of a communication link between the target device and a target central processor connected thereto, the target central processor is any one of at least one central processor included in the hot-swap system, at least one of the central processors includes the main central processor, and the target device is any one of the devices connected to the target central processor; Acquire location information of a target universal input / output interface connected to the target device; Determine, on the target universal input-output interface device, a target output pin corresponding to the target device according to the target link identification information and the location information of the target universal input-output interface device; According to the target state indication information, a signal state of a level signal of the target output pin is changed, wherein the level signal of the target output pin is output to a target system control interrupt pin of a target peripheral interconnect component slot connected to the target device; When the target central processor is the main central processor, according to the signal state of the level signal detected from the target system control interrupt pin, the value in the target system control interrupt status register corresponding to the target device is changed; When it is detected that the value in the target system control interrupt status register is a first preset value, a hot removal operation is performed on the target device.

2. The method according to claim 1, characterized in that When the target CPU is not the main CPU, the method further includes: The value in the target system control interrupt status register is obtained from the target central processing unit; wherein the value in the target system control interrupt status register is a value obtained after the target central processing unit modifies the signal state of the level signal of the target system control interrupt pin according to the detection.

3. The method according to claim 1, characterized in that The state setting information also includes target indication information for indicating the target universal input and output interface; The step of obtaining the location information of the target universal input / output interface connected to the target device includes: According to the target indication information, position information corresponding to the target indication information is acquired as the position information of the target universal input / output interface.

4. The method according to claim 3, characterized in that When the target indication information includes identification information of the target central processor, acquiring, according to the target indication information, location information corresponding to the target indication information as location information of the target universal input / output interface device includes: The location information of the target universal input / output interface is acquired according to the identification information of the target central processing unit and the mapping relationship between the identification information of the pre-built central processing unit and the location information of the universal input / output interface.

5. The method according to any one of claims 1 to 4, characterized in that: The step of determining a target output pin corresponding to the target device on the target universal input / output interface according to the target link identification information and the location information of the target universal input / output interface comprises: Determine the identification information of the target output pin according to the target link identification information and the mapping relationship between the pre-constructed link identification information and the identification information of the output pin; The target output pin is determined on the target universal input output interface according to the identification information of the target output pin and the position information of the target universal input output interface.

6. The method according to any one of claims 1 to 4, characterized in that: The step of changing the signal state of the level signal of the target output pin according to the target state indication information comprises: When it is determined that the target state indication information is used to indicate removal of the target device, changing the signal state of the level signal of the target output pin to a first preset state; or, When it is determined that the target state indication information is used to indicate adding the target device, the signal state of the level signal of the target output pin is changed to a second preset state.

7. The method according to claim 6, characterized in that When it is determined that the target state indication information is used to indicate adding the target device, after changing the signal state of the level signal of the target output pin to a second preset state, the method further includes: A restart operation is performed on the server, so that after the server enters the processing logic of the operating system after the restart, a hot-plug operation is performed on the target device.

8. The method according to any one of claims 1 to 4, characterized in that: The acquiring of the status setting information corresponding to the target device includes: Receive hot-swap instructions sent by the client; The hot plug instruction is parsed to obtain the status setting information.

9. The method according to claim 1 or 2, characterized in that: The target peripheral interconnect component slot is a peripheral interconnect component slot of at least one peripheral interconnect component slot included in the hot-swap system, and all devices connected to each of the peripheral interconnect component slots are target-type devices, and the target-type devices are used to provide target-type resources; The acquiring of the status setting information corresponding to the target device includes: Get the remaining amount of resources of the target type; Determining whether to perform a hot-swap operation and determining an operation type of the hot-swap operation according to the remaining amount of the resource and a preset threshold; When it is determined to perform the hot-plug operation, randomly select identification information of a device from identification information corresponding to at least one device connected to each of the peripheral interconnect component slots and in a target state, wherein the target state is a state corresponding to the operation type, and the identification information of the randomly selected device is the identification information of the target device; Acquire the target link identification information according to the identification information of the target device and the mapping relationship between the device identification information and the link identification information; According to the operation type, the target state indication information corresponding to the operation type is determined, wherein the target link identification information and the target state indication information constitute the state setting information.

10. The method according to claim 9, characterized in that The preset threshold includes a first preset threshold and a second preset threshold, and the second preset threshold is smaller than the first preset threshold; The determining whether to perform a hot plug operation and determining the operation type of the hot plug operation according to the remaining amount of resources and a preset threshold value includes: Determining whether the remaining amount of the resource is greater than the first preset threshold, and determining whether the remaining amount of the resource is less than the second preset threshold; When it is determined that the remaining amount of the resource is greater than the first preset threshold, determining to perform the hot plug operation, and determining that the operation type is a hot removal operation; or, When it is determined that the remaining amount of resources is less than the first preset threshold, it is determined to perform the hot plug operation, and the operation type is determined to be a hot plug operation.

11. The method according to any one of claims 1 to 3, characterized in that: When it is detected that the value in the target system control interrupt status register is the first preset value, performing a hot removal operation on the target device includes: A target control method in operating system power management is used to perform a hot removal operation on the target device according to the target link identification information.

12. A hot-swap system, characterized in that: The hot-swap system includes at least one central processing unit, at least one universal input and output interface, and at least one peripheral interconnect component slot; The main central processing unit in at least one of the central processing units is used to execute the method for performing a heat removal operation as claimed in any one of claims 1 to 11.

13. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method for performing a thermal removal operation according to any one of claims 1 to 11 by executing the computer instructions.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to cause a computer device to execute the method for performing a hot removal operation according to any one of claims 1 to 11.

15. A computer program product, characterized in that The method comprises computer instructions for causing a computer device to execute the method for performing a hot removal operation according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • NVMe hard disk hot plug system and method based on Feiteng server

    CN118503179A

  • Pop-up hot plug control method and device, medium and program product

    CN119003016A