Information processing method and device, electronic equipment and computer readable storage medium
By introducing expansion slots and a first processor core into the server, the performance information of the expansion device can be monitored in real time, solving the problem of performance degradation after hot-swapping that cannot be detected in time, and ensuring stable business performance.
Patent Information
- Application Number
- CN202511565844.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-29
- Publication Date
- 2026-01-16
AI Technical Summary
In data center servers, when performance degrades after hot-swapping expansion devices, existing technologies cannot detect and report performance degradation information in a timely manner, resulting in impact on business performance.
An electronic device is provided, including an expansion slot and a first processor core, capable of acquiring real-time performance information and configuration performance information of the expansion device in real time, and sending a notification message when the real-time performance is lower than the configuration performance.
It enables timely detection and reporting of performance degradation information for hot-plugged expansion devices, reducing performance risks and maintenance blind spots, and ensuring that the host of electronic equipment can promptly detect performance degradation events.
Smart Images

Figure CN121349784A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to an electronic device, an information processing method and apparatus, an electronic device for implementing the information processing method, and a computer-readable storage medium. Background Technology
[0002] In data center servers, hot-plugging events occur frequently. If a newly inserted expansion device experiences performance degradation, it can severely impact business performance. Detecting performance degradation events of newly inserted expansion devices is crucial to mitigating the impact of performance decline on business operations. Summary of the Invention
[0003] This summary section is provided to briefly introduce the concepts, which will be described in detail in the detailed description section below. This summary section is not intended to identify key or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.
[0004] At least one embodiment of this disclosure provides an electronic device, including: an expansion slot configured to hot-plug at least one expansion device; and a first processor core configured to: in response to hot-plugging an expansion device into the expansion slot, acquire real-time performance information of the hot-plugged expansion device and configuration performance information of the hot-plugged expansion device; acquire a comparison result obtained by comparing the real-time performance information and the configuration performance information; and in response to the comparison result indicating that the real-time performance of the hot-plugged expansion device is lower than the configuration performance, send a notification message based on the comparison result.
[0005] At least another embodiment of this disclosure provides an information processing method, including: in response to hot-inserting an expansion device into an expansion slot, acquiring real-time performance information of the hot-inserted expansion device and configuration performance information of the hot-inserted expansion device; acquiring a comparison result obtained by comparing the real-time performance information and the configuration performance information; and in response to the comparison result indicating that the real-time performance of the hot-inserted expansion device is lower than the configuration performance, sending a notification message based on the comparison result.
[0006] At least one other embodiment of this disclosure provides an information processing apparatus, comprising: an information acquisition module configured to acquire real-time performance information of the hot-inserted expansion device and configuration performance information of the hot-inserted expansion device in response to a hot-insertion of an expansion device into an expansion slot; a comparison result acquisition module configured to acquire a comparison result obtained by comparing the real-time performance information and the configuration performance information; and an information sending module configured to send a notification message based on the comparison result indicating that the real-time performance of the hot-inserted expansion device is lower than the configuration performance.
[0007] At least one further embodiment of this disclosure provides an electronic device, including: a processing device; and a storage device including one or more computer program instructions; wherein the one or more computer program instructions are executed by the processing device to perform the information processing method provided in at least one embodiment of this disclosure.
[0008] At least one further embodiment of this disclosure provides a computer-readable storage medium for non-transitory storage of computer-readable instructions, wherein the computer-readable instructions, when executed by a processor, implement the information processing method provided in at least one embodiment of this disclosure.
[0009] At least one further embodiment of this disclosure provides a computer program product, including a computer program / instruction that, when run on a computer, causes the computer to perform the information processing method provided in at least one embodiment of this disclosure. Attached Figure Description
[0010] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.
[0011] Figure 1 The illustration schematically shows an application scenario of the information processing method and electronic device provided in at least one embodiment of the present disclosure;
[0012] Figure 2 A schematic block diagram of an electronic device according to at least one embodiment of the present disclosure is shown.
[0013] Figure 3 A flowchart illustrating at least one embodiment of the information processing method provided in this disclosure is shown schematically.
[0014] Figure 4 A schematic block diagram of an electronic device according to at least another embodiment of the present disclosure is shown.
[0015] Figure 5A schematic block diagram of an electronic device according to at least one embodiment of the present disclosure is shown.
[0016] Figure 6 This schematically illustrates a structural block diagram of an information processing apparatus provided in at least one embodiment of the present disclosure; and
[0017] Figure 7 A schematic diagram of the structure of an electronic device suitable for implementing the information processing method of the embodiments of this disclosure is shown. Detailed Implementation
[0018] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0019] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.
[0020] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.
[0021] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0022] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0023] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0024] It is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition, use, storage or deletion of the data) shall comply with the requirements of relevant laws, regulations and related provisions.
[0025] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, relevant users should be informed of the type, scope of use, and usage scenarios of the information involved in this disclosure through appropriate means in accordance with relevant laws and regulations, and authorization should be obtained from the relevant users. Among them, relevant users may include any type of rights holder, such as individuals, enterprises, and groups.
[0026] For example, in response to receiving an active request from a user, a prompt message is sent to the relevant user to clearly inform the user that the requested operation will require obtaining and using the user's information, thereby enabling the relevant user to choose whether to provide information to the software or hardware such as the electronic device, application, server, or storage medium that performs the operation of the technical solution disclosed herein based on the prompt message.
[0027] As an optional but non-restrictive implementation, in response to a user's active request, a prompt message can be sent to the user, such as a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide information to the electronic device.
[0028] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.
[0029] To enhance the native functionality of electronic device hosts (such as computing power, storage capacity, number of interfaces, specific business capabilities, etc.), peripheral devices (also referred to as expansion devices in this document) can be connected via expansion slots or interfaces provided by the electronic device. These expansion devices can be connected to or disconnected from the electronic device via hot-plug / hot-swapping technology, allowing for safe insertion, removal, or replacement of expansion devices while the electronic device host is powered on and running.
[0030] For example, hot-plugging events occur frequently in data center servers. If, after hot-plugging an expansion device, real-time performance drops below the configured performance, such as a decrease in speed or physical channel count (also known as lane reduction), it will severely impact business performance and may even lead to performance incidents. Therefore, it is crucial for servers and other electronic devices to detect performance degradation events caused by newly inserted expansion devices to mitigate the impact of performance degradation on business performance.
[0031] For example, most mainstream x86 architecture servers and servers based on Advanced RISC Machines (ARM) architecture use OS Native mode to manage hot-plugging. The firmware is unaware of hot-plugging events at runtime, and the operating system drivers do not support reporting the status of hot-plugged expansion devices. Furthermore, while some solutions use the Advanced Configuration and Power Interface (ACPI) specification for hot-plugging management, the lack of Intelligent Platform Management Interface (IPMI) drivers prevents the reporting of system event logs. Therefore, these technologies cannot promptly detect and report performance degradation information when expansion devices are hot-plugged, posing performance risks and operational blind spots.
[0032] To at least partially address these technical problems, at least one embodiment of this disclosure provides an electronic device including an expansion slot and a first processor core. The expansion slot is configured to hot-plug at least one expansion device. The first processor core is configured to, in response to hot-plugging an expansion device into the expansion slot, acquire real-time performance information of the hot-plugged expansion device and configuration performance information of the hot-plugged expansion device; acquire a comparison result obtained by comparing the real-time performance information and the configuration performance information; and, in response to the comparison result indicating that the real-time performance of the hot-plugged expansion device is lower than the configuration performance, send a notification message based on the comparison result.
[0033] Based on the electronic device provided in at least one embodiment of the present disclosure, at least one embodiment of the present disclosure also provides an information processing method, an electronic device for implementing the information processing method, and a computer-readable storage medium.
[0034] The electronic device provided in at least one embodiment of this disclosure can detect the performance of an expansion device after determining that an expansion device has been hot-inserted into an expansion slot, and report a notification based on the comparison result when the real-time performance is detected to be lower than the configured performance. In this way, the performance degradation information of the expansion device can be detected and reported in a timely manner after the expansion device is hot-inserted, which helps to reduce performance risks and maintenance blind spots, and enables the electronic device host to promptly perceive the performance degradation event of the hot-inserted expansion device.
[0035] The embodiments and some examples of this disclosure will now be described in detail with reference to the accompanying drawings. First, in conjunction with... Figure 1 The application scenarios of the embodiments of this disclosure are described by way of example.
[0036] Figure 1The illustration shows an application scenario of the information processing method and electronic device provided in at least one embodiment of the present disclosure.
[0037] like Figure 1 As shown, the application scenario 100 of this embodiment involves an electronic device 110 provided with an expansion slot and an expansion device 120 that can be hot-swapped through the expansion slot. For example, the electronic device 110 can be any electronic device that can provide an expansion slot, such as a server, desktop computer, or laptop computer. The number of expansion devices 120 can be one or more, and the expansion devices 120 can be one or more of the following: storage expansion devices, network expansion devices, graphics / computing power expansion devices, interface expansion devices, and special function expansion devices.
[0038] In at least one embodiment of this disclosure, the expansion device 120 may operate based on a communication protocol with the host (i.e., electronic device 110), such as the Peripheral Component Interconnect Express (PCIe) standard or the Serial Advanced Technology Attachment (SATA) protocol. For example, when the communication protocol is PCIe, the expansion device 120 may be a PCIe endpoint device, such as a graphics card, network card, artificial intelligence (AI) inference card, or field-programmable gate array (FPGA) accelerator card.
[0039] In at least one embodiment of this disclosure, the electronic device 110 may, for example, respond to the hot-plugging of the expansion device 120, acquire the real-time performance information and configuration performance information of the expansion device 120, and determine whether a performance degradation event has occurred in the expansion device 120 based on the comparison result of the real-time performance information and the configuration performance information. For example, if the real-time performance is lower than the configuration performance, it is determined that a performance degradation event has occurred, so as to realize the monitoring of the performance degradation event, and push the performance degradation event to the operation and maintenance personnel, or send it to the display device for display, so that the operation and maintenance personnel can perceive the performance degradation event in time, so as to replace, repair or configure the expansion device 120, and avoid the impact of the performance degradation of the expansion device 120 on the business performance.
[0040] In at least one embodiment of this disclosure, such as Figure 1 As shown, the application scenario 100 may also involve a display device 132 that is communicatively connected to the electronic device 110, so as to display a notification message indicating that the real-time performance of the hot-plugged expansion device 120 is lower than the configured performance, so that maintenance personnel can view it.
[0041] In at least one embodiment of this disclosure, the application scenario 100 may also involve terminal devices such as a laptop 133, a smartphone 131, a desktop computer, a laptop computer, and a smartwatch, to push notification information indicating that the real-time performance of the hot-plugged extension device 120 is lower than the configured performance to these terminal devices, so that the maintenance personnel holding the terminal devices can view it in a timely manner.
[0042] For example, the information processing method provided in at least one embodiment of this disclosure is applicable to an electronic device 110, which can load and execute the information processing method. The embodiments of this disclosure do not limit this. For example, the electronic device 110 may include a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processor (DSP), a neural network processing unit (NPU), or other processing units with data processing capabilities and / or instruction execution capabilities, as well as storage units. The electronic device 110 may also be equipped with an operating system, application programming interfaces (APIs) (e.g., OpenGL (Open Graphics Library), Metal, etc.), etc. The electronic device 110 implements the information processing method provided in the embodiments of this disclosure by running code or instructions.
[0043] The following will combine Figures 2-5 The implementation of the electronic device and information processing method provided in at least one embodiment of this disclosure will be described in exemplary detail.
[0044] Figure 2 A schematic block diagram of an electronic device according to at least one embodiment of the present disclosure is shown.
[0045] like Figure 2 As shown, the electronic device 210 in this embodiment includes a first processor core 211 and an expansion slot 212. The expansion slot 212 is configured to hot-plug at least one expansion device 201. The first processor core 211 can communicate with the hot-plugged expansion device through the expansion slot 212.
[0046] In at least one embodiment of this disclosure, the expansion slot 212 may be, for example, a PCIe slot, a Mini-PCIe slot, an M.2 slot, etc., and the embodiments of this disclosure are not limited thereto.
[0047] In at least one embodiment of this disclosure, the first processor core 211 may be configured to, in response to the hot-insertion of an expansion device 201 into the expansion slot 212, first acquire real-time performance information and configuration performance information of the hot-inserted expansion device 201. Subsequently, a comparison result obtained by comparing the real-time performance information and the configuration performance information may be acquired. Finally, in response to the comparison result indicating that the real-time performance of the hot-inserted expansion device 201 is lower than the configuration performance, a notification message is sent based on the comparison result. For example, the first processor core 211 may send the notification message to a component in the electronic device 210 that can control a display included in the electronic device 210, or it may send it to a component that can communicate with the display of the electronic device 210, so as to display the notification message on the display.
[0048] In at least one embodiment of this disclosure, the first processor core 211 may be any one of a plurality of independent processor cores in the processor chip of the electronic device 210, or it may be a processor core of a single-core processor independent of the processor chip. For example, the first processor core 211 may be a large core that runs the operating system and applications as a central processing unit, or it may be a small core that is responsible for power management, clock control, etc.
[0049] In at least one embodiment of this disclosure, the first processor core may be a processor core other than the second processor core that supports the operation of the electronic device's operating system, or any processor core other than the second processor core, so that the implementation of the functions of obtaining real-time performance information, obtaining performance configuration information, obtaining comparison results, and sending notification information based on the comparison results does not affect the operation of the operating system, and the implementation of the function of monitoring the performance degradation events of hot-plugged extension devices is relatively decoupled from the operation of the operating system, thereby improving the operational stability of the electronic device.
[0050] In at least one embodiment of this disclosure, the first processor core may include, for example, a system control processor (SCP) to monitor performance degradation events of hot-plugged expansion devices through a small core, thereby avoiding the impact of the monitoring function on the business processed by the large core.
[0051] Based on the functionality configured for the first processor core, at least one embodiment of this disclosure also provides an information processing method, which will be described below in conjunction with... Figure 3 This information processing method is described in detail.
[0052] Figure 3 A flowchart illustrating at least one embodiment of the information processing method provided in this disclosure is shown.
[0053] like Figure 3As shown, the information processing method 300 of this embodiment may include steps S310 to S330. The information processing method 300 may be executed by a first processor core.
[0054] In step S310, in response to the hot-insertion of an expansion device into the expansion slot, real-time performance information of the hot-inserted expansion device and configuration performance information of the hot-inserted expansion device are obtained.
[0055] Step S320: Obtain the comparison result obtained by comparing real-time performance information with configuration performance information.
[0056] In step S330, in response to the comparison result indicating that the real-time performance of the hot-inserted extension device is lower than the configuration performance, a notification message is sent based on the comparison result.
[0057] In at least one embodiment of this disclosure, a first processor core may, in response to a hot-insertion of a new expansion device, acquire real-time performance information and configuration performance information of the hot-inserted new expansion device. For example, the real-time performance information and configuration performance information may include performance parameters. The first processor core may compare the acquired real-time performance parameters with the configured performance parameters to obtain a comparison result. This comparison result can characterize whether the real-time performance of the expansion device is lower than the configured performance. For example, a hot-inserted new expansion device may refer to an expansion device that changes from an uninserted state to an inserted state. This expansion device may be a device that is being hot-inserted for the first time, or a device that has been hot-reinserted after being hot-removed; the embodiments of this disclosure do not limit this.
[0058] In at least one embodiment of this disclosure, the first processor core may, for example, be communicatively connected to a component that manages hot-plug events. The first processor core can determine whether there is a hot-plug event for an expansion device based on the operating logs of the component that manages hot-plug events. Alternatively, the component that manages hot-plug events may send a notification to the first processor core upon detecting a hot-plug event for an expansion device, so that the first processor core is aware of the hot-plug event for the expansion device during verification.
[0059] In at least one embodiment of this disclosure, the first processor core may obtain real-time performance and configuration performance information of a hot-plugged new expansion device, for example, through command-line tools provided by the operating system of the electronic device or by accessing system files. For example, the first processor core may also access and obtain the operating logs and configuration information of the expansion device through the expansion slot to obtain real-time performance and configuration performance information of the expansion device; embodiments of this disclosure do not limit this approach.
[0060] In at least one embodiment of this disclosure, the performance parameters of the extended device may include bandwidth-related parameters, such as one or more of the extended device's link bandwidth, link operating rate, and number of physical channels (lanes) in the link, to determine whether the real-time performance of the extended device is lower than the configured performance based on this performance information, thereby enabling monitoring of speed reduction and lane reduction events of the extended device. For example, the link bandwidth is jointly determined by the link operating rate and the number of physical channels in the link. The link operating rate refers to the data transmission rate of each physical channel, and the number of physical channels in the link represents the number of physical channels used simultaneously by the extended device. It is understood that the above performance parameters are only examples to facilitate understanding of this disclosure. Depending on actual needs, the performance information may also include one or more of multiple performance parameters that may differ from the configuration information in the initial stage after hot insertion of the extended device, such as communication latency, power consumption, allocated memory resources, throughput, etc. The embodiments of this disclosure do not limit this.
[0061] In at least one embodiment of this disclosure, the values of the same performance parameter in real-time performance information and configuration performance information can be compared to obtain a comparison result. The comparison result represents the relationship between the real-time value and the configuration value of each performance parameter, or it can represent the difference between the real-time value and the configuration value of each performance parameter, or it can represent the difference between real-time performance and configuration performance determined based on the relationship between the real-time value and the configuration value of multiple performance parameters. The embodiments of this disclosure do not limit this.
[0062] In at least one embodiment of this disclosure, the real-time performance of a hot-inserted new expansion device can be determined to be lower than the configured performance if one or more of the following conditions are met: the link operating rate in the real-time performance information is lower than the link operating rate in the configured performance information; the number of physical channels of the link in the real-time performance information is lower than the number of physical channels of the link in the configured performance information; and the link bandwidth in the real-time performance information is lower than the link bandwidth in the configured performance information. It is understood that the conditions required to determine that the real-time performance of a hot-inserted new expansion device is lower than the configured performance can be determined based on the performance parameters included in the performance information, and the embodiments of this disclosure do not limit this.
[0063] In at least one embodiment of this disclosure, the notification information sent based on the comparison result may include, for example, the comparison result, or information indicating that the real-time performance of the extended device is lower than the configured performance, or both of the above information. The embodiments of this disclosure do not limit this.
[0064] The electronic device provided in at least one embodiment of this disclosure can detect the performance of an expansion device after determining that an expansion device has been hot-inserted into an expansion slot, and report a notification based on the comparison result when the real-time performance is detected to be lower than the configured performance. In this way, the performance degradation information of the expansion device can be detected and reported in a timely manner after the expansion device is hot-inserted, which helps to reduce performance risks and maintenance blind spots, and enables the electronic device host to promptly perceive the performance degradation event of the hot-inserted expansion device.
[0065] Figure 4 A schematic block diagram of an electronic device according to at least another embodiment of the present disclosure is shown.
[0066] In at least one embodiment of this disclosure, such as Figure 4 As shown, in addition to the first processor core 411 and the expansion slot 412, the electronic device 410 may also include a management component 413. The management component 413 may, for example, be communicatively connected to the first processor core 411 in the electronic device 410.
[0067] In at least one embodiment of this disclosure, the first processor core 411 may, for example, send notification information based on the comparison result to the management component 413, so that the host of the electronic device can be aware of the performance degradation event of the hot-plugged new expansion device 401. For example, the host of the electronic device can be understood as a hardware system collection including an independent central processing unit, memory, storage, and system bus, capable of running an operating system and managing various hardware resources. For example, after receiving the notification information, the management component 413 may generate alarm information based on the notification information to display and / or push the alarm information. In this way, maintenance personnel can be informed in a timely manner of the performance degradation information of the hot-plugged new expansion device, such as the speed reduction and lane reduction event of the expansion device, so as to replace or remove the hot-plugged new expansion device in a timely manner, thereby preventing the impact of the performance degradation of the expansion device from flowing online and avoiding the impact on the performance of online services.
[0068] In at least one embodiment of this disclosure, the alarm information may be any information characterizing the performance degradation of a newly hot-inserted expansion device. For example, in addition to information characterizing performance degradation, the alarm information may also include at least one of the following information capable of quickly locating the new expansion device: the slot number where the new expansion device is hot-inserted, the position of the slot where the new expansion device is hot-inserted among the multiple slots included in the expansion slot, the device name of the hot-inserted new expansion device, etc. For example, the alarm information may also include at least one of the real-time performance parameters of the hot-inserted new expansion device, such as the link transmission rate, the number of physical channels of the link, etc., which is not limited in the embodiments of this disclosure.
[0069] In at least one embodiment of this disclosure, the management component 413 may, for example, be communicatively connected to the display device 402. The management component 413 may, for example, send alarm information to the display device 402 so that the alarm information can be displayed on the display device 402. For example, the display device 402 may be a client running a client corresponding to the electronic device. The display device 402 may be a terminal device independent of the electronic device 410, or it may be a part of the electronic device 410. The embodiments of this disclosure do not limit this.
[0070] In at least one embodiment of this disclosure, the management component 413 may be, for example, a Baseboard Management Controller (BMC) to display alarm information through the web interface or web management system of the Baseboard Management Controller. For example, through the web interface or web management system of the Baseboard Management Controller, maintenance personnel can also view the operating status of electronic devices in real time, including hardware status, CPU usage, memory usage, etc., and can also perform system configuration, such as network configuration and / or user account management; and can also perform fault diagnosis, such as viewing system logs and finding fault events.
[0071] In at least one embodiment of this disclosure, the management component 413 may also be a large core in a processor chip, such as a central processing unit, to send notification information to an operating system running on the central processing unit, so as to push alarm information generated by the operating system to a terminal device independent of the electronic device.
[0072] In at least one embodiment of this disclosure, if the first processor core determines that the real-time performance of a newly hot-inserted expansion device is lower than the configured performance, management event information for the hot-inserted expansion device can be generated, for example, based on the comparison result. This management event information can be, for example, event information recorded and reported through a Reliability, Availability, and Serviceability (RAS) mechanism, or a custom System Event Log (SEL). For example, the type of management event information can be determined based on the type of management component.
[0073] In at least one embodiment of this disclosure, the management component may be, for example, a baseboard management controller, and the management event information may be, for example, information reported based on a smart platform management interface protocol. This ensures that management event information can still be reported even when the operating system is not started or has crashed, guaranteeing the stability of reporting speed reduction and lane reduction events. For example, the management event information in this embodiment may be a custom system event log, such as an OEM SEL, collected and stored by the baseboard management controller.
[0074] In at least one embodiment of this disclosure, a hot-swap controller may be used, for example, to monitor events of hot-swapping expansion devices on an expansion slot. For instance, taking a PCIe slot as an example, the hot-swap controller can sense device insertion via a slot (SLOT) presence detection pin and send a "device in place" signal to a first processor core, enabling the first processor core to detect the hot-swapping of the expansion device.
[0075] For example, a hot-swap controller is a dedicated integrated circuit used to enable the safe insertion or removal of devices when the system is powered on. Its core functions are to control power supply, limit inrush current, monitor hardware status, and prevent current surges during insertion or removal from damaging the device or system. It also works with firmware / software to complete device status switching and event reporting.
[0076] In at least one embodiment of this disclosure, the hot-swap controller may be configured, for example, to detect hardware signals of the expansion slot and, in response to determining a change in the slot status of the expansion slot based on the hardware signals, send an interrupt signal to the first processor core. For example, the hot-swap controller may trigger an interrupt when it detects that an expansion device is inserted (the presence signal changes from "no" to "yes") or removed (the presence signal changes from "yes" to "no"), informing the first controller core that "a hot-swap event needs to be processed" (such as subsequent power-on, enumeration or power-off, resource release).
[0077] In at least one embodiment of this disclosure, the hot-plug controller may integrate a dedicated interrupt output pin (such as INT) directly connected to a first processor core (such as a General Purpose Input / Output (GPIO) pin of an SCP). When a hot-plug event is triggered, the level of this pin changes (e.g., from high to low), forming a hardware interrupt signal, which is captured and responded to by the first processor core controller via an interrupt controller (such as a GIC).
[0078] In at least one embodiment of this disclosure, the hot-plug controller may also support interfaces such as I²C or PMBus, and an "interrupt flag" may be set in a register (such as the INT_FLAG register). After the first processor core processes the hardware interrupt, it can read these registers via the bus to obtain event details (such as whether it is a "device insertion" or an "overcurrent fault").
[0079] In at least one embodiment of this disclosure, the first processor core can, in response to receiving an interrupt signal (e.g., a hardware interrupt signal), acquire slot status change information recorded by the hot-plug controller, and determine whether an expansion slot has been hot-plugged with an expansion device based on the slot status change information. For example, the first processor core can read the device presence status information and presence detection changed flag stored in a register set in the hot-plug controller. If the presence detection changed flag is 1 and the device presence status information is 1, then it is determined that the expansion slot has been hot-plugged with an expansion device.
[0080] In at least one embodiment of this disclosure, the register in the hot-swap controller may include multiple "presence detection bits," each corresponding to a slot on the expansion slot. The first processor core, for example, can also determine which slot has undergone a state change based on the value of each "presence detection bit," thereby locating the slot on the expansion slot where an expansion device has been hot-plugged. Alternatively, the slot on the expansion slot where an expansion device has been hot-plugged can be distinguished using address encoding or bus selection signals, etc. This disclosure does not limit the specific distinguishing principle.
[0081] Figure 5 A schematic block diagram of an electronic device according to at least one embodiment of the present disclosure is shown.
[0082] In at least one embodiment of this disclosure, such as Figure 5 As shown, the first processor core of the electronic device 510 can be a system control processor 511, the expansion slot 512 can be a PCIe slot, including N slots (e.g., slot1 to slotN), the management component can be a baseboard management controller 513, and the hot-swap controller can include a programmable logic device 5141 and an I / O expansion chip 5142.
[0083] In at least one embodiment of this disclosure, the I / O expansion chip 5142 may be any type of expansion chip from the I²C GPIO expansion chip family. The I / O expansion chip 5142 is configured to detect hardware signals of the expansion slot 512. For example, the GPIO pins of the I / O expansion chip 5142 are configured in input mode to monitor the presence signal of the PCIe slot. For example, when the expansion device 501 is inserted into a slot, the presence signal of that slot changes level due to the closure of mechanical contacts (e.g., from high to low). For example, the I / O expansion chip 5142 may record the current state of the GPIO pins through a status register and notify the programmable logic device 5141 via an interrupt.
[0084] In at least one embodiment of this disclosure, the programmable logic device 5141 may be, for example, a complex programmable logic device (CPLD), configured to determine whether the slot state of the expansion slot has changed based on hardware signals detected by the I / O expansion chip 5142, and to send an interrupt signal to the system control processor 511 in response to a change in the slot state of the expansion slot. For example, the programmable logic device 5141 reads the status register of the I / O expansion chip 5142 via the I²C bus to confirm the existence of a signal change. When the I / O expansion chip 5142 is configured in interrupt mode, the programmable logic device 5141 may, for example, trigger I²C communication to read the GPIO state of the I / O expansion chip 5142 in response to receiving an interrupt signal, thereby obtaining the hardware signals of the expansion slot.
[0085] In at least one embodiment of this disclosure, the programmable logic device 5141 may send an interrupt signal to the system control processor 511 via an I²C bus (specifically, via an I²C control module 515). For example, in response to receiving the interrupt signal, the system control processor 511 may poll the status register of the programmable logic device 5141 via the I²C control module 515 to obtain slot status change information for the expansion slot 512. For example, the system control processor 511 can parse the obtained slot status change information to first determine the target slot in the expansion slot 512 where an expansion device has been hot-inserted, and then obtain the real-time performance information and configuration performance information of the expansion device hot-inserted in the target slot.
[0086] In at least one embodiment of this disclosure, the system control processor 511 can parse the acquired slot status change information and confirm the status change of the presence signal of each slot in the expansion slot 512, thereby locating the target slot where the expansion device has been hot-inserted.
[0087] In at least one embodiment of this disclosure, after locating the target slot, the system control processor 511 can set hot-pluggable slot information, such as device presence status information, device status change notification information, and device function configuration information. Simultaneously, the system control processor 511 can access the registers of the hot-pluggable expansion device through the target slot to read real-time performance information and configuration performance information stored in the registers, and compare the real-time performance information and configuration performance information to obtain a comparison result. For example, the system control processor 511 can read the field values of the Link Speed and Link Width fields in the connection status register of the hot-pluggable expansion device to obtain the link operating rate and the number of physical channels of the link, thereby obtaining configuration performance information. For example, the system control processor 511 can read the TX / RX counter to calculate the amount of data within a past unit of time (e.g., 1 second) to obtain the actual bandwidth.
[0088] In at least one embodiment of this disclosure, the system control processor 511 may, for example, report notification information to the baseboard management controller 513 via the IPMI interface to notify the baseboard management controller that a new hot-plugged expansion device has experienced performance degradation, such as a speed reduction or lane reduction event, so that maintenance personnel can remotely monitor it.
[0089] Based on the information processing method provided in at least one embodiment of this disclosure, at least one embodiment of this disclosure also provides an information processing apparatus. The following will be combined with... Figure 6 The information processing device is described in detail.
[0090] Figure 6 The schematic diagram illustrates a structural block diagram of an information processing apparatus provided in at least one embodiment of the present disclosure.
[0091] like Figure 6 As shown, the information processing device 600 of this embodiment includes an information acquisition module 610, a comparison result acquisition module 620, and an information transmission module 630. For example, these units or modules can be implemented by hardware (e.g., circuit) modules or software modules, etc. The following embodiments are similar and will not be described again. For example, these units or modules can be implemented by a central processing unit (CPU), a general-purpose graphics processor (GPGPU), a graphics processing unit (GPU), a tensor processor (TPU), a field-programmable gate array (FPGA), or other forms of processing units with data processing capabilities and / or instruction execution capabilities, as well as corresponding computer instructions.
[0092] The information acquisition module 610 is configured to acquire real-time performance information and configuration performance information of the hot-inserted expansion device in response to a hot-insertion of an expansion device into the expansion slot. For example, the information acquisition module 610 can be configured to execute step S310 described above; its specific implementation principle can be found in the relevant description of step S310, and will not be repeated here.
[0093] The comparison result acquisition module 620 is configured to acquire the comparison result obtained by comparing real-time performance information with configuration performance information. For example, the comparison result acquisition module 620 can be configured to execute step S320 described above. The specific implementation principle can be referred to the relevant description of step S320, and will not be repeated here.
[0094] The information sending module 630 is configured to send a notification message based on a comparison result indicating that the real-time performance of the hot-inserted extension device is lower than the configured performance. Exemplarily, the information sending module 630 can be configured to execute step S330 described above; its specific implementation principle can be found in the relevant description of step S330, and will not be repeated here.
[0095] It should be noted that, for clarity and brevity, this disclosure does not show all the constituent units of the information processing device 600. To achieve the necessary functions of the information processing device, those skilled in the art can provide and set other constituent units (not shown) according to specific needs, and this disclosure does not limit this.
[0096] At least one embodiment of this disclosure also provides an electronic device, including: a processing device; a storage device including one or more computer program modules; wherein the one or more computer program modules are stored in the storage device and configured to be executed by the processing device, and the one or more computer program modules are used to implement the information processing method provided in any embodiment of this disclosure.
[0097] For example, the processing device may be a processor, such as a central processing unit (CPU), digital signal processor (DSP), image processor (GPU), general-purpose graphics processor (GPGPU), or other form of processing unit with data processing capabilities and / or instruction execution capabilities. It may be a general-purpose processor or a dedicated processor, and may control other components in the electronic device to perform the desired functions.
[0098] For example, the storage device may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may, for example, include random access memory (RAM) and / or cache memory. The non-volatile memory may, for example, include read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, which a processing device may execute to implement the functions (implemented by the processing device) in the embodiments of this disclosure and / or other desired functions, such as information processing methods. Various application programs and various data, such as real-time performance information and configuration performance information, may also be stored in the computer-readable storage medium.
[0099] The following is for reference. Figure 7 This illustration shows a schematic diagram of the structure of an electronic device (e.g., a terminal device or a server) 700 suitable for implementing the information processing method provided in at least one embodiment of this disclosure. The terminal device in the embodiments of this disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 7 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0100] like Figure 7 As shown, the electronic device 700 may include a processing unit (e.g., a central processing unit, a graphics processor, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 into a random access memory (RAM) 703. The RAM 703 also stores various programs and data required for the operation of the electronic device 700. The processing unit 701, ROM 702, and RAM 703 are interconnected via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0101] Typically, the following devices can be connected to I / O interface 705: input devices 706 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 707 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 708 including, for example, magnetic tapes, hard disks, etc.; and communication devices 709. Communication device 709 allows electronic device 700 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 7An electronic device 700 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0102] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the information processing method shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 709, or installed from storage device 708, or installed from ROM 702. When the computer program is executed by processing device 701, it performs the functions defined in the information processing method of embodiments of this disclosure.
[0103] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0104] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.
[0105] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0106] The aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: in response to a hot-insertion of an expansion device into an expansion slot, acquire real-time performance information of the hot-inserted expansion device and configuration performance information of the hot-inserted expansion device; acquire a comparison result obtained by comparing the real-time performance information with the configuration performance information; and, in response to the comparison result indicating that the real-time performance of the hot-inserted expansion device is lower than the configuration performance, send a notification message based on the comparison result.
[0107] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including but not limited to object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0108] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0109] The units or modules described in the embodiments of this disclosure can be implemented in software or hardware. The names of the units or modules do not necessarily constitute a limitation on the unit or module itself.
[0110] The functions described above in this document can be performed at least in part by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), and so on.
[0111] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0112] According to one or more embodiments of this disclosure, Example 1 provides an electronic device, including:
[0113] Expansion slots are configured to allow hot-plugging of at least one expansion device; and
[0114] The first processor core is configured as follows:
[0115] In response to the hot-insertion of an expansion device into the expansion slot, real-time performance information of the hot-inserted expansion device and configuration performance information of the hot-inserted expansion device are obtained;
[0116] Obtain the comparison result obtained by comparing the real-time performance information with the configuration performance information; and
[0117] In response to the comparison result indicating that the real-time performance of the hot-inserted extension device is lower than the configured performance, a notification message is sent based on the comparison result.
[0118] According to one or more embodiments of this disclosure, Example 2 provides the electronic device of Example 1, further comprising:
[0119] The management component is configured to: in response to receiving the notification information, generate alarm information based on the notification information, and display and / or push the alarm information.
[0120] According to one or more embodiments of this disclosure, Example 3 provides that the management component in Example 2 includes at least one of the following: a central processing unit and a baseboard management controller.
[0121] According to one or more embodiments of this disclosure, Example 4 provides that the first processor core in Example 1 is a processor core other than a second processor core that supports the operation of the operating system of the electronic device.
[0122] According to one or more embodiments of this disclosure, Example 5 provides that the first processor core in Example 4 includes a system control processor.
[0123] According to one or more embodiments of this disclosure, Example Six provides an electronic device described in any of Examples One to Five, further comprising:
[0124] A hot-swap controller is configured to detect hardware signals of the expansion slot and, in response to determining, based on the hardware signals, that the slot status of the expansion slot has changed, send an interrupt signal to the first processor core.
[0125] The first processor core is further configured to: in response to receiving the interrupt signal, acquire slot status change information recorded by the hot-plug controller, and determine whether the expansion slot has been hot-plugged with an expansion device based on the slot status change information.
[0126] According to one or more embodiments of this disclosure, Example 7 provides a programmable logic device as described in Example 6, comprising:
[0127] An I / O expansion chip is configured to detect hardware signals from the expansion slot; and
[0128] A programmable logic device is configured to determine whether the slot state of the expansion slot has changed based on hardware signals detected by the I / O expansion chip; and to send the interrupt signal to the first processor core in response to a change in the slot state of the expansion slot.
[0129] According to one or more embodiments of this disclosure, Example 8 provides an expansion slot in Example 7 that includes a plurality of slots;
[0130] In response to the hot-insertion of an expansion device into the expansion slot, the acquisition of real-time performance information and configuration performance information of the hot-inserted expansion device includes:
[0131] Based on the slot status change information, the target slot in which the expansion device has been hot-inserted is determined among the plurality of slots; and
[0132] Obtain the real-time performance information and configuration performance information of the expansion device hot-inserted into the target slot.
[0133] According to one or more embodiments of this disclosure, Example Nine provides the acquisition of the real-time performance information and the configuration performance information of the expansion device for hot-insertion of the target slot as described in Example Eight, including:
[0134] Access the registers of the hot-inserted expansion device through the target slot to read the real-time performance information and the configuration performance information stored in the registers.
[0135] According to one or more embodiments of this disclosure, Example 10 provides, in any of Examples 1 to 5, the response to the comparison result indicating that the real-time performance of the hot-inserted extended device is lower than the configured performance, sending a notification message based on the comparison result, including:
[0136] In response to the comparison result indicating that the real-time performance of the hot-inserted expansion device is lower than the configured performance, management event information for the hot-inserted expansion device is generated based on the comparison result; and
[0137] Send the management event information.
[0138] According to one or more embodiments of this disclosure, Example 11 provides the real-time performance information and configuration performance information of any of Examples 1 to 5, including at least one of the following: link bandwidth, link operating rate, and number of physical channels in the link.
[0139] According to one or more embodiments of this disclosure, Example Twelve provides that the expansion slot in any of Examples One through Five is an expansion slot based on the High-Speed Serial Computer Expansion Bus standard.
[0140] According to one or more embodiments of this disclosure, Example Thirteen provides an information processing method, including:
[0141] In response to the hot-insertion of an expansion device into an expansion slot, real-time performance information of the hot-inserted expansion device and configuration performance information of the hot-inserted expansion device are obtained;
[0142] Obtain the comparison result obtained by comparing the real-time performance information with the configuration performance information; and
[0143] In response to the comparison result indicating that the real-time performance of the hot-inserted extension device is lower than the configured performance, a notification message is sent based on the comparison result.
[0144] According to one or more embodiments of this disclosure, Example Fourteen provides an information processing apparatus, including:
[0145] The information acquisition module is configured to acquire real-time performance information of the hot-inserted expansion device and configuration performance information of the hot-inserted expansion device in response to a hot-insertion of an expansion device into an expansion slot.
[0146] The comparison result acquisition module is configured to acquire a comparison result obtained by comparing the real-time performance information with the configuration performance information; and
[0147] The information sending module is configured to send a notification message based on the comparison result indicating that the real-time performance of the hot-inserted extension device is lower than the configured performance.
[0148] According to one or more embodiments of this disclosure, Example Fifteen provides an electronic device, including:
[0149] Processing device; and
[0150] Storage device, including one or more computer program instructions;
[0151] The one or more computer program instructions are executed by the processing device to perform the information processing method provided in at least one embodiment of the present disclosure.
[0152] According to one or more embodiments of the present disclosure, Example Sixteen provides a computer-readable storage medium that non-transitory stores computer-readable instructions, wherein the computer-readable instructions, when executed by a processor, implement the information processing method provided in at least one embodiment of the present disclosure.
[0153] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
[0154] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0155] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
Claims
1. An electronic device, comprising: an expansion slot configured to hot plug at least one expansion device; and a first processor core configured to: in response to an expansion device being hot plugged into the expansion slot, obtain real-time performance information of the hot plugged expansion device and configuration performance information of the hot plugged expansion device; obtain a comparison result of comparing the real-time performance information and the configuration performance information; and in response to the comparison result indicating that real-time performance of the hot plugged expansion device is lower than configuration performance, send notification information based on the comparison result. 2.The electronic device of claim 1, further comprising: a management component configured to, in response to receiving the notification information, generate alarm information based on the notification information to display and / or push the alarm information. The management component comprises at least one of a central processing unit and a baseboard management controller.
3. The electronic device of claim 2, wherein, The first processor core is a processor core other than a second processor core supporting operation of an operating system of the electronic device.
4. The electronic device of claim 1, wherein, The first processor core comprises a system control processor.
5. The electronic device of claim 4, wherein, 6.The electronic device of any one of claims 1-5, further comprising: a hot plug controller configured to detect a hardware signal of the expansion slot, and in response to determining that a slot state of the expansion slot changes based on the hardware signal, send an interrupt signal to the first processor core; wherein the first processor core is further configured to, in response to receiving the interrupt signal, obtain slot state change information recorded by the hot plug controller, and determine whether the expansion slot is hot plugged with an expansion device based on the slot state change information. The programmable logic device comprises:
7. The electronic device of claim 6, wherein, an I / O expansion chip configured to detect a hardware signal of the expansion slot; and a programmable logic device configured to determine whether a slot state of the expansion slot changes based on the hardware signal detected by the I / O expansion chip, and in response to the slot state of the expansion slot changing, send the interrupt signal to the first processor core. The expansion slot comprises a plurality of slots; 8. The electronic device of claim 7, wherein, The obtaining, in response to the expansion slot being hot plugged with an expansion device, of real-time performance information of the hot plugged expansion device and configuration performance information of the hot plugged expansion device comprises: determining, based on the slot state change information, a target slot of the plurality of slots into which an expansion device is hot plugged; and obtaining the real-time performance information and the configuration performance information of the expansion device hot plugged into the target slot. The obtaining the real-time performance information and the configuration performance information of the expansion device hot plugged into the target slot comprises:
9. The electronic device of claim 8, wherein, accessing a register of the hot plugged expansion device through the target slot to read the real-time performance information and the configuration performance information stored in the register. The sending, in response to the comparison result indicating that real-time performance of the hot plugged expansion device is lower than configuration performance, of notification information based on the comparison result comprises:
10. The electronic device according to any one of claims 1 to 5, wherein in response to the comparison result representing that the real-time performance of the hot-plugged expansion device is lower than the configuration performance, generating management event information for the hot-plugged expansion device based on the comparison result; and sending the management event information.
11. The electronic device according to any one of claims 1 to 5, wherein The real-time performance information and the configuration performance information include at least one of the following information: link bandwidth, link running rate, and number of physical channels in the link.
12. The electronic device according to any one of claims 1 to 5, wherein The expansion slot is an expansion slot based on a high-speed serial computer expansion bus standard.
13. An information processing method, comprising: in response to an expansion device being hot-plugged into an expansion slot, obtaining real-time performance information of the hot-plugged expansion device and configuration performance information of the hot-plugged expansion device; obtaining a comparison result obtained by comparing the real-time performance information and the configuration performance information; and in response to the comparison result representing that the real-time performance of the hot-plugged expansion device is lower than the configuration performance, sending notification information based on the comparison result.
14. An information processing apparatus, comprising: an information obtaining module configured to, in response to an expansion device being hot-plugged into an expansion slot, obtain real-time performance information of the hot-plugged expansion device and configuration performance information of the hot-plugged expansion device; a comparison result obtaining module configured to obtain a comparison result obtained by comparing the real-time performance information and the configuration performance information; and an information sending module configured to, in response to the comparison result representing that the real-time performance of the hot-plugged expansion device is lower than the configuration performance, send notification information based on the comparison result.
15. An electronic device, comprising: a processing apparatus; and a storage apparatus comprising one or more computer program instructions; wherein the one or more computer program instructions, when executed by the processing apparatus, perform the information processing method of claim 13. The computer readable instructions, when executed by the processor, implement the information processing method of claim 13. 16. A computer-readable storage medium, non-transitorily storing computer- readable instructions, wherein,