Device management method, system, computer program product, electronic device, and medium
By controlling the interrupt signal of the link slot system of the target device in the server by controlling the interrupt signal of the target device in the server, the problem of flexibility and efficiency of device management in the server is solved, and the flexible removal and recovery of the device is realized, reducing the cost of the server.
Patent Information
- Application Number
- CN202411998356.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-02-07
AI Technical Summary
In servers, there is a problem that hot swapping is not suitable for all devices when it is necessary to manage connected devices flexibly and efficiently, especially when devices need to be removed or restored.
The management controller determines the target device to be removed and controls the system control interrupt signal corresponding to the link slot of the target device to be the target value, so that the operating system can detect the signal and disconnect the link slot of the target device, thereby Implement device removal.
It realizes flexible and efficient management of devices at the operating system level, and can remove and restore server-connected devices as needed, reducing the server-wide function requirements and saving application and application costs.
Smart Images

Figure CN119396748A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of server technology, and more specifically, to a device management method, system, computer program product, electronic device and medium. Background Art
[0002] In the server, the server needs to use NVME (Non Volatile Memory Host Controller Interface Specification) hard disks, PCI (Peripheral Component Interconnect) interface devices and other devices to expand functions. In this process, due to user configuration requirements, the device needs to be removed or restored, such as through the hot-swap function. However, hot-swap requires memory resources to be reserved in advance, which is not applicable to all devices.
[0003] In summary, how to flexibly and efficiently manage server connection devices is a problem that currently needs to be solved urgently by those skilled in the art. Summary of the invention
[0004] The purpose of the present invention is to provide a device management method, which can solve the technical problem of how to flexibly and efficiently manage server-connected devices to a certain extent. The present invention also provides a device management system, a computer program product, an electronic device and a computer-readable storage medium.
[0005] In order to achieve the above object, the present invention provides the following technical solutions:
[0006] In a first aspect, a device management method is provided, which is applied to a management controller, comprising:
[0007] Determine the target device to be removed;
[0008] Determine a system control interrupt signal for managing and controlling a link slot of the target device;
[0009] The system control interrupt signal is controlled to be a target value, so that after the operating system detects that the system control interrupt signal is the target value, the link slot of the target device is disconnected to remove the target device.
[0010] On the other hand, controlling the system control interrupt signal to be a target value includes:
[0011] determining an adjustment signal for adjusting the system control interrupt signal;
[0012] The value of the adjustment signal is controlled to be a set value so as to adjust the system control interrupt signal to the target value.
[0013] On the other hand, controlling the value of the adjustment signal to be a set value includes:
[0014] Reading a slave address of the adjustment signal through a target bus protocol;
[0015] The state value of the adjustment signal is set to the set value according to the slave address.
[0016] On the other hand, reading the slave address of the adjustment signal through the target bus protocol includes:
[0017] reading a slave address of the adjustment signal through an integrated circuit bus protocol;
[0018] The integrated circuit bus of the regulator is connected to the integrated circuit bus of the central processing unit, and the regulator is used to generate the adjustment signal.
[0019] On the other hand, determine the target devices to be removed, including:
[0020] Receiving device removal information through a setting interface of the management controller;
[0021] The device removal information is parsed to determine the target device to be removed.
[0022] On the other hand, determine the target devices to be removed, including:
[0023] Receiving an intelligent platform management interface command carrying device removal information;
[0024] The intelligent platform management interface command is parsed to determine the target device to be removed.
[0025] On the other hand, controlling the system control interrupt signal to be a target value, so that after the operating system detects that the system control interrupt signal is the target value, the link slot of the target device is disconnected to remove the target device, including:
[0026] Before the server is started, the system control interrupt signal is controlled to be a target value, so that after the operating system is online, after detecting that the system control interrupt signal is the target value, the link slot of the target device is disconnected to remove the target device.
[0027] On the other hand, after controlling the system control interrupt signal to a target value, the method further includes:
[0028] In response to restoring the target device, the system control interrupt signal is controlled to a non-target value, so that after restarting and going online, the operating system detects that the system control interrupt signal is the non-target value and turns on the link slot of the target device to go online with the target device.
[0029] On the other hand, determine the target devices to be removed, including:
[0030] Determining a target device to be removed, wherein the target device includes a device connected via a peripheral component interconnect standard interface;
[0031] Determining an adjustment signal for adjusting the system control interrupt signal includes:
[0032] Determine a universal input and output signal for adjusting the system control interrupt signal.
[0033] In a second aspect, a device management method is provided, which is applied to an operating system, comprising:
[0034] In response to detecting that the system control interrupt signal is a target value, disconnecting the link slot controlled by the system control interrupt signal to remove the target device connected to the link slot;
[0035] The target value of the system control interrupt signal is obtained by controlling the system control interrupt signal to be the target value after the management controller determines the target device to be removed and the system control interrupt signal.
[0036] On the other hand, in response to detecting that the system control interrupt signal is a target value, disconnecting the link slot controlled by the system control interrupt signal includes:
[0037] Get the differential system description table of the advanced configuration and power management interface protocol;
[0038] Reading the system control interrupt signal recorded in the differential system description table;
[0039] In response to reading that the system control interrupt signal is a target value, the link slot controlled by the system control interrupt signal is disconnected.
[0040] On the other hand, disconnecting the link slot controlled by the system control interrupt signal includes:
[0041] The link slot controlled by the system control interrupt signal is disconnected through the operating system power management.
[0042] In a third aspect, a device management system is provided, including: an operating system, a management controller;
[0043] The management controller is used to: determine the target device to be removed, and set the adjustment signal corresponding to the link slot of the target device to control the system control interrupt signal corresponding to the link slot of the target device to be a target value;
[0044] The operating system is used to: after detecting that the system control interrupt signal is the target value, disconnect the link slot of the target device to remove the target device;
[0045] The adjuster is connected to the system control interrupt register, and the adjustment signal generated by the adjuster, the system control interrupt signal stored in the system control interrupt register and the link slot are in one-to-one correspondence.
[0046] In a fourth aspect, a computer program product is provided, comprising a computer program / instruction, which, when executed by a processor, implements the steps of any of the above-described device management methods.
[0047] In a fifth aspect, an electronic device is provided, including:
[0048] Memory for storing computer programs;
[0049] A processor is used to implement the steps of any of the above-mentioned device management methods when executing the computer program.
[0050] In a sixth aspect, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps of any of the above-mentioned device management methods are implemented.
[0051] The present invention provides a device management method, which is applied to a management controller to determine a target device to be removed; determine a system control interrupt signal for controlling the link slot of the target device; and control the system control interrupt signal to a target value, so that after the operating system detects that the system control interrupt signal is the target value, the link slot of the target device is disconnected to remove the target device. The beneficial effect of the present invention is that after the management controller of the server determines the system control interrupt signal for controlling the link slot of the target device to be removed, the system control interrupt signal is the target value, so that the operating system of the server can disconnect the link slot of the target device according to the target value, so that the target device is removed from the operating system. At this time, although the target device is still in a power supply state on the server, the operating system can no longer apply the target device. In other words, the present invention realizes the removal of the device at the operating system level, and only needs to control the system control interrupt signal corresponding to the device link slot to flexibly and efficiently manage the server connection device. The device management system, computer program product, electronic device and computer-readable storage medium provided by the present invention also solve the corresponding technical problems. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0053] Figure 1 A flow chart of a device management method provided by an embodiment of the present invention;
[0054] Figure 2 It is a structural diagram of the equipment management system;
[0055] Figure 3 A flowchart of the equipment management solution;
[0056] Figure 4 A swimlane diagram for the equipment management solution;
[0057] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention;
[0058] Figure 6 Another structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0059] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0060] See also Figure 1 , Figure 1 A flow chart of a device management method provided by an embodiment of the present invention.
[0061] An embodiment of the present invention provides a device management method, which is applied to a management controller and may include the following steps:
[0062] Step S101: Determine the target device to be removed.
[0063] In actual applications, the management controller in the server can first determine the target device to be removed. The type of the target device can be flexibly determined according to the application scenario. For example, the target device can be an NVME hard disk and / or a PCI interface device, etc. The PCI interface device is a device connected to the server through a peripheral component interconnection standard interface. The types of PCI interface devices may include PCI network cards, PCI RAID (Redundant Array of Independent Disks) cards, PCI GPU (Graphics Processing Unit) cards, PCI interface acceleration cards, etc.
[0064] Step S102: Determine a system control interrupt signal for managing and controlling a link slot of a target device.
[0065] Step S103: the control system controls the interrupt signal to be a target value, so that after the operating system detects that the system controls the interrupt signal to be the target value, it disconnects the link slot of the target device to remove the target device.
[0066] In practical applications, the present invention sets a corresponding system control interrupt (SCI) signal for the link slot of each managed device in the server, so as to instruct the operating system to operate the link slot with the help of the SCI signal, thereby managing the target device. Therefore, after determining the target device to be removed, the management controller needs to determine the system control interrupt signal for managing the link slot of the target device, and in the process of operating the system to control the interrupt signal, the system control interrupt signal corresponding to the link slot of the target device can be controlled to be the target value; in this way, after the operating system detects that the system control interrupt signal is the target value, it can disconnect the link slot of the target device to remove the target device, thereby achieving the hot removal effect of the device under the operating system.
[0067] It should be noted that the type of management controller can be flexibly determined according to the structure of the server, as long as the solution of the present invention can be implemented. For example, the management controller can be a BMC (Baseboard Management Controller) or a programmable logic device in the server, and the type of operating system can be a Windows operating system or a Linux operating system. In addition, the target value is used to indicate that the system control interrupt signal is enabled. Similarly, the non-target value is used to indicate that the system control interrupt signal is disabled. The target value can be flexibly selected according to actual needs. For example, the target value can be 1, and the non-target value can be specifically 0.
[0068] In a specific application scenario, in the process of controlling the control interrupt signal of the system to be the target value, an adjustment signal for adjusting the system control interrupt signal can be determined; the value of the control adjustment signal is the set value to adjust the system control interrupt signal to the target value. It is not difficult to understand that the set value is used to control the value of the system control interrupt signal. This process can be flexibly determined according to actual needs. Assuming that the set value is 1 and the non-set value is 0, when the value of the adjustment signal is 1, the system control interrupt signal controlled by the adjustment signal will be adjusted to the target value. When the value of the adjustment signal is 0, the system control interrupt signal controlled by the adjustment signal will be adjusted to the non-target value.
[0069] From this implementation process, it can be seen that in the process of controlling the system control interrupt signal to be the target value, the present invention takes into account that the management controller may not be able to directly control the system control interrupt signal, so it can first determine the adjustment signal for adjusting the system control interrupt signal, and then control the value of the adjustment signal to be the set value, so as to adjust the system control interrupt signal to the target value through the adjustment signal, and the accuracy and efficiency are good, thereby realizing that the management controller can accurately and efficiently adjust the system control interrupt signal with the help of the adjustment signal.
[0070] It should be noted that the adjustment signal corresponds to the system control interrupt signal one-to-one, and the system control interrupt signal corresponds to the link slot one-to-one, so the system control interrupt signal, adjustment signal and link slot correspond one-to-one. In this process, in order to accurately manage each device, the system control interrupt signal, adjustment signal and the minimum link slot can be set to correspond one-to-one. For example, the server link supports the maximum x16 bandwidth by default, and can also be backward compatible with x8, x4, x2, and x1. Therefore, the adjustment signal needs to be physically linked to the system control interrupt signal on the minimum x1 bandwidth pin, that is, it needs to be set for the set 1 link slot information. For ease of understanding, if a link is split into multiple slots, it is necessary to design a one-to-one correspondence between the system control interrupt signal and the adjustment signal on the minimum bandwidth link of each link slot. It should also be noted that the theoretical maximum bandwidth of the x1 slot is 1GB / s; the theoretical maximum bandwidth of the x4 slot is 4GB / s; the theoretical maximum bandwidth of the x8 slot is 8GB / s; and the theoretical maximum bandwidth of the x16 slot is 16GB / s.
[0071] In a specific application scenario, in the process of controlling the value of the adjustment signal to be a set value, the slave address of the adjustment signal can be read through the target bus protocol; the state value of the adjustment signal is set to the set value according to the slave address, so as to accurately set the value of the adjustment signal to be controlled with the help of the target bus protocol and the slave address. It should be noted that the type of the target bus can be flexibly selected according to actual needs. For example, the target bus can be I2C (Inter-Integrated Circuit, integrated circuit bus), etc. At this time, in the process of reading the slave address of the adjustment signal through the target bus protocol, the slave address of the adjustment signal can be read through the integrated circuit bus protocol; accordingly, the integrated circuit bus of the adjuster used to generate the adjustment signal needs to be connected to the integrated circuit bus of the central processing unit, so that the management controller can manage the adjustment signal generated by the adjuster through the integrated circuit bus. It should be noted that the types of regulators and adjustment signals can be flexibly selected. For example, the adjustment signal can be a general-purpose input / output (GPIO) signal, and the regulator can be a general-purpose input / output chip, etc. In this case, each pin of the general-purpose input / output chip corresponds to a general-purpose input / output signal, and the management controller can set the potential of the pin of the general-purpose input / output chip, such as setting it to high or low to set the general-purpose input / output signal. For example, if the management controller sets the pin of the general-purpose input / output chip to a high potential, the general-purpose input / output signal is a set value; if the pin of the general-purpose input / output chip is set to a low potential, the general-purpose input / output signal is a non-set value, etc.
[0072] In a specific application scenario, when the integrated circuit bus of the regulator is connected to the integrated circuit bus of the central processing unit, if the server has been started and the operating system has been online, the management controller can also set the system control interrupt signal through the central processing unit, that is, the management controller can generate a setting signal for setting the system control interrupt signal, and this setting signal is used to set the value of the system control interrupt signal to a target value or a non-target value, and send the setting signal and the identifier of the system control interrupt signal to the central processing unit, and the central processing unit then sets the value of the system control interrupt signal corresponding to the identifier according to the setting signal. In this way, when the server has been started and the operating system has been online, the management controller can cooperate with the central processing unit to control the system control interrupt signal, making the control process of the system control interrupt signal more diverse, so that the equipment can be managed more conveniently.
[0073] In a specific application scenario, in the process of determining the target device to be removed, the user can directly perform corresponding operations in the setting interface of the management controller to instruct the management controller to determine the target device, that is, the management controller can receive device removal information through the setting interface of the management controller, parse the device removal information, and determine the target device to be removed. Of course, the user can also input the target device information for the management controller through commands, that is, the management controller can receive the Intelligent Platform Management Interface (IPMI) command carrying the device removal information, parse the Intelligent Platform Management Interface command, and determine the target device to be removed.
[0074] It should be noted that the format of the intelligent platform management interface command can be flexibly set according to user needs, and it only needs to indicate the target device to be removed. For example, the command format of the intelligent platform management interface can be IPMItool.exe-I lanplus-H XX.xx.xx.xx (IP address)-U BMC username-P BMC password raw 0x3F0x04 0x10 0xF0 0x10, etc., where the instruction before the raw string is a general command, and the value after the raw string can be customized. 0x3F can represent the management controller command channel, 0x04 can represent the pins 0 to 7 of the regulator corresponding to bit0 to bit7, and 1 means that it is set to high, that is, the system control interrupt signal needs to be enabled, and 0x10 can represent the CPU (Central Processing Unit, central processing unit) 0 or CPU1 link slot system control interrupt signal is controlled, bit4-7 is 1 can represent CPU1, bit0 to bit3 is 1 can represent CPU0, and CPU0 and CPU1 can be set separately but not together, 0xF0 can represent pin 0 4-7 is set to output state, 0x10 can represent CPU1 pin output value enable setting, etc.
[0075] In specific application scenarios, considering that the response to the system control interrupt signal requires the startup of the operating system, the management controller can control the system control interrupt signal to the target value before the server is started, so that the operating system after going online can disconnect the link slot of the target device to remove the target device after detecting that the system control interrupt signal is the target value. Of course, after the server is started, the management controller can also control the system control interrupt signal to the target value. At this time, after the server is restarted, the operating system that is back online can disconnect the link slot of the target device to remove the target device after detecting that the system control interrupt signal is the target value.
[0076] In specific application scenarios, in some scenarios, the user hopes to restore the target device removed by the operating system, so the management controller can also respond to the restoration of the target device, and the control system control interrupt signal is a non-target value. In this way, after the operating system detects that the system control interrupt signal is a non-target value, it can conduct the link slot of the target device to bring the target device online. It should be noted that the management controller can control the system control interrupt signal to be a non-target value before the server is started, or after the server has been started, that is, after the control system control interrupt signal is the target value, respond to the restoration of the target device, and the control system control interrupt signal is a non-target value, and then control the server to restart or wait for the server to restart. After the operating system is restarted and online, after detecting that the system control interrupt signal is a non-target value, it can conduct the link slot of the target device to bring the target device online. The principle of the management controller determining the restoration of the target device is consistent with the principle of determining the removal of the target device, and the principle of the control system control interrupt signal being a non-target value is consistent with the principle of the control system control interrupt signal being a target value, which will not be repeated here.
[0077] From this implementation process, it can be seen that after the management controller controls the system control interrupt signal to the target value, in response to restoring the target device, the management controller controls the system control interrupt signal to a non-target value. In this way, after the operating system is restarted and online and detects that the system control interrupt signal is a non-target value, the link slot of the target device can be turned on to bring the target device online, thereby restoring the target device under the operating system, that is, achieving the hot plug effect of the device under the operating system. In this way, the present invention can hot-swap the device under the operating system according to user needs, supplements the new method of hot-swap operation of the device, and can manage the device more flexibly.
[0078] The present invention provides a device management method, which is applied to a management controller to determine a target device to be removed; determine a system control interrupt signal for managing and controlling a link slot of the target device; and control the system control interrupt signal to a target value, so that after the operating system detects that the system control interrupt signal is the target value, the link slot of the target device is disconnected to remove the target device. The beneficial effect of the present invention is that after the management controller of the server determines the system control interrupt signal for managing and controlling the link slot of the target device to be removed, the system control interrupt signal is the target value, so that the operating system of the server can disconnect the link slot of the target device according to the target value, so that the target device is removed from the operating system. At this time, although the target device is still in a power supply state on the server, the operating system can no longer apply the target device, so the power consumption of the target device is reduced, which indirectly reduces the power consumption of the target device in the server, that is, reduces the functional requirements of the server as a whole, and saves the application cost. In other words, the present invention realizes the removal of the device at the operating system level, and only needs to control the system control interrupt signal corresponding to the link slot of the device to flexibly and efficiently manage the server connection device.
[0079] Based on the above embodiments, a device management method provided by the present invention, when applied to an operating system, may include the following steps: in response to detecting that a system control interrupt signal is a target value, disconnecting the link slot controlled by the system control interrupt signal to remove the target device connected to the link slot; wherein the target value of the system control interrupt signal is obtained by controlling the system control interrupt signal to be the target value after the management controller determines the target device to be removed and the system control interrupt signal.
[0080] In specific application scenarios, the Differentiated System Description Table (DSDT) of the Advanced Configuration and Power Management Interface (ACPI) protocol contains server hardware information and also records information about system control interrupt signals. Therefore, when the operating system disconnects the link slot controlled by the system control interrupt signal in response to detecting that the system control interrupt signal is a target value, it can obtain the Differentiated System Description Table of the Advanced Configuration and Power Management Interface protocol; read the system control interrupt signal recorded in the Differentiated System Description Table; in response to reading that the system control interrupt signal is a target value, disconnect the link slot controlled by the system control interrupt signal, so as to quickly detect the system control interrupt signal with the help of the Differential System Description Table.
[0081] In specific application scenarios, the operating system is equipped with operating system power management (OS Power Management, OSPM), which can manage and control the link slots. Therefore, when the operating system is disconnecting the link slots controlled by the system control interrupt signal, the operating system can disconnect the link slots controlled by the system control interrupt signal through the operating system power management. For example, the target device of the link operation corresponding to the system control interrupt signal is kicked out by calling the _EJ0 control method, and then the operating system power management can be used to verify that the target device no longer exists to confirm that the target device is successfully hot-removed. Of course, the operating system power management can also be used to turn on the link slot of the target device to bring the target device online.
[0082] Based on the above embodiments, the present invention provides a device management system, which may include: an operating system, a management controller;
[0083] The management controller is used to: determine the target device to be removed, and set the adjustment signal corresponding to the link slot of the target device to control the system control interrupt signal corresponding to the link slot of the target device to be a target value;
[0084] The operating system is used to: after detecting that the system control interrupt signal is a target value, disconnect the link slot of the target device to remove the target device;
[0085] The adjuster is connected to the system control interrupt register, and the adjustment signal generated by the adjuster, the system control interrupt signal stored in the system control interrupt register, and the link slot have a one-to-one correspondence.
[0086] The description of the corresponding components in the equipment management system provided by the present invention can be found in the above embodiments, which will not be repeated here.
[0087] In order to facilitate understanding of the device management solution provided by the present invention, it is assumed that the management controller is a BMC, the target device is a PCI device, the adjustment chip is a GPIO chip, the target bus is an I2C bus, and the target command is an IPMI command. The physical connections of each device are as follows: Figure 2As shown in the figure, the system control interrupt enable signal of each physical link slot is physically connected to the GPIO pin of the adjustment chip one by one, the BMC end is connected to the GPIO chip through the I2C bus, the BMC is connected to CPU0 through LPC (Low Pin Count) and / or PCI, the BIOS (Basic Input Output System) is connected to CPU1 through LPC and / or SPI (Serial Peripheral Interface) and / or QSPI (Quad SPI), CPU0 and CPU1 can be connected through CCIX (Cache Coherent Interconnect Protocol) and / or UPI (Unified Process Interface) and / or GMI (General Messaging Interface), and the device management process is as follows: Figure 3 and Figure 4 As shown, the following steps may be included:
[0088] After the server is powered on but not started, and the baseboard management controller management firmware is activated, the baseboard management controller management interface controls the system control interrupt signal of each link slot to be turned on or off, or controls the system control interrupt signal of each link slot to be turned on or off through a target command;
[0089] After the server is started and the server enters the operating system, the operating system determines whether the system control interrupt status register corresponding to each link slot is set through the differential system description table; if so, the target device of the corresponding link slot is hot-removed through the operating system power management; if not, the link slot without the system control interrupt signal enabled is used normally;
[0090] The operating system uses the target device normally without hot removal;
[0091] The baseboard management controller detects whether the target command triggers the pin state value of the adjustment chip of the system control interrupt signal of the link slot to be high level. If not, the operating system normally uses the target device that has not been hot-removed. If so, the target device of the corresponding link slot is hot-removed through the operating system power management;
[0092] The baseboard management controller detects whether the setting interface triggers the pin state value of the adjustment chip of the system control interrupt signal of the link slot to be high level. If not, the operating system normally uses the target device that has not been hot-removed. If so, the target device corresponding to the link slot is hot-removed through the operating system power management;
[0093] The server restarts, and after the baseboard management controller management firmware has been activated, the next round of device management is performed.
[0094] The present invention also provides an electronic device and a computer-readable storage medium, both of which have the corresponding effects of the device management method provided in the embodiment of the present invention. Figure 5 , Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention.
[0095] An electronic device provided by an embodiment of the present invention includes a memory 201 and a processor 202. The memory 201 stores a computer program. When the processor 202 executes the computer program, the steps of the device management method described in any of the above embodiments are implemented.
[0096] See also Figure 6 Another electronic device provided in an embodiment of the present invention may also include: an input port 203 connected to the processor 202, used to transmit commands input from the outside to the processor 202; a display unit 204 connected to the processor 202, used to display the processing results of the processor 202 to the outside; a communication module 205 connected to the processor 202, used to realize communication between the electronic device and the outside. The display unit 204 can be a display panel, a laser scanning display, etc.; the communication method adopted by the communication module 205 includes but is not limited to mobile high-definition link technology (Mobile High-Definition Link, MHL), Universal Serial Bus (Universal Serial Bus, USB), High-Definition Multimedia Interface (High-Definition Multimedia Interface, HDMI), wireless connection: wireless fidelity technology (WIreless Fidelity, WiFi), Bluetooth communication technology, low-power Bluetooth communication technology, and communication technology based on IEEE802.11s.
[0097] An embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of the device management method described in any of the above embodiments are implemented.
[0098] The computer-readable storage medium involved in the present invention includes random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM (Compact Disc Read-Only Memory), or any other form of storage medium known in the technical field.
[0099] A computer program product provided by an embodiment of the present invention includes a computer program / instruction. When the computer program / instruction is executed by a processor, the following steps are implemented:
[0100] Determine the target device to be removed;
[0101] Determine the system control interrupt signal for controlling the link slot of the target device;
[0102] The control system controls the interrupt signal to be a target value, so that after the operating system detects that the system control interrupt signal is the target value, the link slot of the target device is disconnected to remove the target device.
[0103] A computer program product provided by an embodiment of the present invention includes a computer program / instruction, which implements the following steps when executed by a processor: determining an adjustment signal for adjusting a system control interrupt signal; controlling the value of the adjustment signal to be a set value to adjust the system control interrupt signal to a target value.
[0104] A computer program product provided by an embodiment of the present invention includes a computer program / instruction, which implements the following steps when executed by a processor: reading a slave address of an adjustment signal through a target bus protocol; and setting a state value of the adjustment signal to a set value according to the slave address.
[0105] A computer program product provided by an embodiment of the present invention includes a computer program / instruction, which implements the following steps when executed by a processor: reading a slave address of an adjustment signal through an integrated circuit bus protocol; wherein the integrated circuit bus of the adjuster is connected to the integrated circuit bus of a central processing unit, and the adjuster is used to generate an adjustment signal.
[0106] A computer program product provided by an embodiment of the present invention includes a computer program / instruction, which implements the following steps when executed by a processor: receiving device removal information through a setting interface of a management controller; parsing the device removal information to determine a target device to be removed.
[0107] A computer program product provided by an embodiment of the present invention includes a computer program / instruction, which implements the following steps when executed by a processor: receiving an intelligent platform management interface command carrying device removal information; parsing the intelligent platform management interface command to determine the target device to be removed.
[0108] A computer program product provided by an embodiment of the present invention includes a computer program / instruction, which implements the following steps when executed by a processor: before the server is started, the control system controls an interrupt signal to be a target value, so that after the operating system goes online, it detects that the system control interrupt signal is the target value and disconnects the link slot of the target device to remove the target device.
[0109] A computer program product provided by an embodiment of the present invention includes a computer program / instruction, which implements the following steps when executed by a processor: after the control system controls an interrupt signal to be a target value, in response to restoring a target device, the control system controls the interrupt signal to be a non-target value, so that after the operating system is restarted and online, it detects that the system control interrupt signal is a non-target value, and then turns on the link slot of the target device to bring the target device online.
[0110] A computer program product provided by an embodiment of the present invention includes a computer program / instruction, which implements the following steps when executed by a processor: determining a target device to be removed, the target device including a device connected through a peripheral component interconnection standard interface; determining a universal input and output signal for adjusting a system control interrupt signal.
[0111] A computer program product provided by an embodiment of the present invention includes a computer program / instruction, which implements the following steps when executed by a processor: in response to detecting that a system control interrupt signal is a target value, disconnecting a link slot managed by the system control interrupt signal to remove a target device connected to the link slot; wherein the target value of the system control interrupt signal is obtained by controlling the system control interrupt signal to be the target value after a management controller determines the target device to be removed and the system control interrupt signal.
[0112] A computer program product provided by an embodiment of the present invention includes a computer program / instruction, which implements the following steps when executed by a processor: obtaining a differential system description table of an advanced configuration and power management interface protocol; reading a system control interrupt signal recorded in the differential system description table; and in response to reading that the system control interrupt signal is a target value, disconnecting a link slot controlled by the system control interrupt signal.
[0113] A computer program product provided by an embodiment of the present invention includes a computer program / instruction, which implements the following steps when executed by a processor: disconnecting a link slot controlled by a system control interrupt signal through operating system power management.
[0114] For the description of the relevant parts of a device management system, a computer program product, an electronic device, and a computer-readable storage medium provided by the embodiment of the present invention, please refer to the detailed description of the corresponding parts in a device management method provided by the embodiment of the present invention, which will not be repeated here. In addition, the parts of the above technical solutions provided by the embodiment of the present invention that are consistent with the implementation principles of the corresponding technical solutions in the prior art are not described in detail to avoid excessive elaboration.
[0115] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0116] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A device management method, characterized in that: Applicable to management controllers, including: Determine the target device to be removed; Determine a system control interrupt signal for managing and controlling a link slot of the target device; The system control interrupt signal is controlled to be a target value, so that after the operating system detects that the system control interrupt signal is the target value, the link slot of the target device is disconnected to remove the target device.
2. The device management method according to claim 1, characterized in that: Controlling the system control interrupt signal to a target value includes: determining an adjustment signal for adjusting the system control interrupt signal; The value of the adjustment signal is controlled to be a set value so as to adjust the system control interrupt signal to the target value.
3. The device management method according to claim 2, characterized in that: Controlling the value of the adjustment signal to be a set value includes: Reading a slave address of the adjustment signal through a target bus protocol; The state value of the adjustment signal is set to the set value according to the slave address.
4. The device management method according to claim 3, characterized in that: Reading a slave address of the adjustment signal through a target bus protocol includes: reading a slave address of the adjustment signal through an integrated circuit bus protocol; The integrated circuit bus of the regulator is connected to the integrated circuit bus of the central processing unit, and the regulator is used to generate the adjustment signal.
5. The device management method according to claim 1, characterized in that: Identify the target devices to be removed, including: Receiving device removal information through a setting interface of the management controller; The device removal information is parsed to determine the target device to be removed.
6. The device management method according to claim 1, characterized in that: Identify the target devices to be removed, including: Receiving an intelligent platform management interface command carrying device removal information; The intelligent platform management interface command is parsed to determine the target device to be removed.
7. The device management method according to claim 1, characterized in that: Controlling the system control interrupt signal to a target value, so that after the operating system detects that the system control interrupt signal is the target value, the link slot of the target device is disconnected to remove the target device, including: Before the server is started, the system control interrupt signal is controlled to be a target value, so that after the operating system is online, after detecting that the system control interrupt signal is the target value, the link slot of the target device is disconnected to remove the target device.
8. The device management method according to claim 7, characterized in that: After controlling the system control interrupt signal to be a target value, the method further includes: In response to restoring the target device, the system control interrupt signal is controlled to a non-target value, so that after restarting and going online, the operating system detects that the system control interrupt signal is the non-target value and turns on the link slot of the target device to go online with the target device.
9. The device management method according to any one of claims 2 to 8, characterized in that: Identify the target devices to be removed, including: Determining a target device to be removed, wherein the target device includes a device connected via a peripheral component interconnect standard interface; Determining an adjustment signal for adjusting the system control interrupt signal includes: Determine a universal input and output signal for adjusting the system control interrupt signal.
10. A device management method, characterized in that: Applies to operating systems, including: In response to detecting that the system control interrupt signal is a target value, disconnecting the link slot controlled by the system control interrupt signal to remove the target device connected to the link slot; The target value of the system control interrupt signal is obtained by controlling the system control interrupt signal to be the target value after the management controller determines the target device to be removed and the system control interrupt signal.
11. The device management method according to claim 10, characterized in that: In response to detecting that the system control interrupt signal is a target value, disconnecting the link slot controlled by the system control interrupt signal, including: Get the differential system description table of the advanced configuration and power management interface protocol; Reading the system control interrupt signal recorded in the differential system description table; In response to reading that the system control interrupt signal is a target value, the link slot controlled by the system control interrupt signal is disconnected.
12. The device management method according to claim 10, characterized in that: Disconnecting the link slot controlled by the system control interrupt signal includes: The link slot controlled by the system control interrupt signal is disconnected through the operating system power management.
13. A device management system, characterized in that: include: Operating system, management controller; The management controller is used to: determine the target device to be removed, and set the adjustment signal corresponding to the link slot of the target device to control the system control interrupt signal corresponding to the link slot of the target device to be a target value; The operating system is used to: after detecting that the system control interrupt signal is the target value, disconnect the link slot of the target device to remove the target device; The adjuster is connected to the system control interrupt register, and the adjustment signal generated by the adjuster, the system control interrupt signal stored in the system control interrupt register and the link slot are in one-to-one correspondence.
14. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the device management method according to any one of claims 1 to 12 are implemented.
15. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the device management method according to any one of claims 1 to 12 when executing the computer program.
16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the device management method according to any one of claims 1 to 12 are implemented.
Citation Information
Patent Citations
Power-on and power-off control method and system for PCIe equipment
CN112825011A
Bus equipment hot plug control method and device and readable storage medium
CN117971752A
Equipment information updating method, system and equipment of hot plug equipment and medium
CN118132489A
Pop-up hot plug control method and device, medium and program product
CN119003016A
Cited By
Electronic equipment and hot plug method executed by electronic equipment
CN119883990A