Configuration method and server of basic input and output system BIOS configuration items

Modifying the server BIOS configuration items without restarting the system through the out-of-band controller solves the business interruption problem caused by BIOS configuration modification in the existing technology and improves the operating efficiency and reliability of the server.

CN115756616BActive Publication Date: 2024-10-22XFUSION DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211385564.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-07
Publication Date
2024-10-22
Estimated Expiration
2042-11-07

AI Technical Summary

Technical Problem

In the existing technology, modification of the server's BIOS configuration items requires restarting the system, causing business interruption and affecting server performance.

Method used

The out-of-band controller sends a system management interrupt signal to the CPU without restarting the system, allowing the CPU to switch from running the OS to running the BIOS, and modify the contents of the BIOS configuration items to ensure continuous online business.

Benefits of technology

It is possible to modify BIOS configuration items without interrupting server services, improving the server's operating efficiency and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115756616B_ABST
    Figure CN115756616B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a configuration method and server for basic input / output system BIOS configuration items, and relates to the technical field of basic input / output systems. In the method, after the out-of-band controller determines the content to be configured of the target configuration item that supports online modification in the BIOS configuration item, if the CPU runs the OS, it sends a system management interrupt signal to the CPU to instruct the CPU to switch from running the OS to running the BIOS, and in the process of the CPU running the BIOS, the content of the target configuration item is configured as the content to be configured, thereby modifying the configuration content of the target configuration item. Since the system management interrupt signal can also instruct the CPU to resume running the OS after completing the configuration of the target configuration item, the target configuration item can be modified without restarting the system, thereby modifying the target configuration item while keeping the server's business online continuously.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of basic input and output systems, and in particular to a configuration method and server for basic input and output system BIOS configuration items. Background Art

[0002] The basic input output system (BIOS) is a program embedded in the BIOS chip on the motherboard. Its main function is to provide hardware settings and control for the server. In addition, the BIOS also provides users with a variety of configuration items. By modifying the contents of these configuration items, the operating status of the server can be controlled.

[0003] In the related art, after the operating system (OS) of the server is running, if you want to modify the configuration content of the BIOS configuration item, you need to restart the system, so as to modify the configuration content of the BIOS configuration item during the BIOS operation. After that, restart the system again, and the BIOS will perform the modification operation to make the modification of the BIOS configuration item take effect.

[0004] That is to say, after the OS is running, if you want to modify the configuration content of the BIOS configuration item, you need to restart the server twice to make the modification of the BIOS configuration item take effect. This will inevitably cause the business running on the server to be interrupted, seriously affecting the service performance of the server. Summary of the invention

[0005] The embodiment of the present application provides a configuration method and server for basic input and output system BIOS configuration items, which can modify the BIOS configuration items without restarting the system, helping to avoid interruption of services running on the server.

[0006] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:

[0007] In a first aspect, a method for configuring a basic input / output system BIOS configuration item is provided, which is used for a server, and the server includes a central processing unit (CPU) and an out-of-band controller, and the method is executed by the out-of-band controller; the method includes: determining the content to be configured of a target configuration item in the BIOS configuration item; the target configuration item is a configuration item in the BIOS configuration item that supports online modification; if the CPU runs an operating system (OS), a system management interrupt signal is sent to the CPU; wherein the system management interrupt signal is used to indicate: the CPU switches from running the OS to running the BIOS; during the CPU running the BIOS, the CPU obtains the content to be configured, and configures the content configured in the target configuration item as the content to be configured; and if the CPU completes the configuration of the target configuration item, the CPU resumes running the OS.

[0008] In this solution, after determining the content to be configured of the target configuration item, if the CPU is running the OS, the out-of-band controller sends a system management interrupt signal to the CPU to instruct the CPU to switch from running the OS to running the BIOS, and in the process of the CPU running the BIOS, the content configured in the target configuration item is configured as the content to be configured, thereby modifying the configuration content of the target configuration item. Since the system management interrupt signal can also instruct the CPU to resume running the OS after completing the configuration of the target configuration item, the target configuration item can be modified without restarting the system, thereby realizing the modification of the target configuration item while keeping the server's business online continuously.

[0009] Based on this, on the one hand, when it is found that the BIOS chip or BIOS feature is defective, the content to be configured of the target configuration item can be modified while keeping the server's business online continuously, so as to close the inapplicable or defective features. On the other hand, the target configuration item can also be reconfigured according to whether the business is in a peak working state or a trough working state. For example, when the business is running in a peak working state, the content to be configured of the target configuration item can be modified so that the content to be configured indicates to close the energy-saving feature, so that the server runs in a high-performance mode. When the business is in a trough working state, the content to be configured of the target configuration item can be modified so that the content to be configured indicates to turn on the energy-saving feature, thereby achieving energy-saving and emission reduction effects. In addition, since different operating scenarios of the server have different requirements for energy efficiency tuning, the content to be configured of the target configuration item can also be modified according to the current operating scenario of the server so that the energy efficiency tuning type indicated by the content to be configured matches the current operating scenario, so that the server is configured with an energy efficiency tuning mode that matches the current operating scenario while the server's business is online continuously.

[0010] In one possible implementation, determining the content to be configured of a target configuration item in a BIOS configuration item includes: sending interface configuration information to a terminal device; the interface configuration information is used for the terminal device to display a configuration interface, and the configuration interface includes the target configuration item; receiving the content to be configured of the target configuration item sent by the terminal device; the content to be configured is determined by the terminal device in response to a configuration operation on the target configuration item on the configuration interface.

[0011] In this implementation, a specific implementation method for determining the content to be configured of the target configuration item is provided. In this method, the out-of-band controller sends interface configuration information to the terminal device so that the terminal device can display the target configuration item. In this way, the terminal device can determine the content to be configured of the target configuration item by performing configuration operations on the target configuration item. Afterwards, the out-of-band controller determines the content to be configured of the target configuration item by receiving the content to be configured returned by the terminal device. In this method, the user does not need to understand the programming language. The user only needs to perform configuration operations on the configuration interface, and the out-of-band controller can determine the content to be configured of the target configuration item. The implementation process is simple and convenient, and the requirements on the user are relatively low.

[0012] In another possible implementation, determining the content to be configured of the target configuration item in the BIOS configuration item includes: sending an identifier of the target configuration item to the terminal device in response to a request of the terminal device; receiving the content to be configured sent by the terminal device; the content to be configured is determined by the terminal device based on the identifier of the target configuration item.

[0013] In this implementation, a specific implementation method for determining the content to be configured of the target configuration item is provided. In this method, the out-of-band controller sends the identifier of the target configuration item to the terminal device, so that the user can understand which configuration items in the BIOS configuration items support online modification. Afterwards, the out-of-band controller determines the content to be configured of the target configuration item by receiving the content to be configured returned by the terminal device. In this method, the out-of-band controller only needs to send the identifier of the target configuration item to the terminal device to determine the content to be configured of the target configuration item, which simplifies the control logic of the out-of-band controller to determine the content to be configured of the target configuration item, and helps to reduce the requirements for the out-of-band controller.

[0014] In another possible implementation, the method further includes: receiving a configuration item set sent by the CPU; the configuration item set is a set of configuration items supported for online modification by the current version of BIOS, the configuration item set includes a target configuration item, and the configuration item set is sent during the BIOS startup process.

[0015] In this implementation, during the BIOS startup process, the out-of-band controller receives the set of configuration items that the current version of the BIOS supports online modification, which, on the one hand, enables the out-of-band controller to determine which configuration items in the BIOS configuration items support online modification based on the set of configuration items. On the other hand, since the set of configuration items is a set of configuration items that the current version of the BIOS supports online modification, it helps to ensure that the determined target configuration items match the current version of the BIOS.

[0016] In another possible implementation, the method further includes: receiving a configuration result of the target option returned by the CPU; the configuration result is used to indicate whether the target configuration item is successfully configured or failed, and the configuration result is sent during the CPU running the BIOS.

[0017] In this implementation, when the CPU runs the BIOS, the out-of-band controller determines whether the target configuration item has been updated to the content to be configured by receiving the configuration result returned by the CPU. This helps the out-of-band controller to promptly understand whether the configuration content of the target configuration item has been updated.

[0018] In another possible implementation, the server also includes a BIOS chip, and the BIOS chip stores the configuration content of the BIOS configuration item; the method also includes: receiving a get request sent by the CPU; the get request is sent during the BIOS startup process, and the get request is used to request the content configured by the target configuration item; if the configuration result indicates that the target configuration item is successfully configured, sending the content to be configured to the CPU; the content to be configured is used to modify the configuration content of the target configuration item in the BIOS chip to the content to be configured.

[0019] In this implementation, when the server restarts, during the BIOS startup process, the out-of-band controller returns the content to be configured to the CPU based on the CPU's acquisition request, so that the CPU can modify the configuration content of the target configuration item in the BIOS chip to the content to be configured. In this way, the BIOS can configure the server based on the content to be configured configured by the target configuration item in the BIOS chip, so that after the server restarts, it can automatically restore to the configuration before the restart without having to reconfigure.

[0020] In a second aspect, a method for configuring a basic input / output system BIOS configuration item is provided, which is used for a server. The server includes a central processing unit (CPU) and an out-of-band controller, and the method is executed by the CPU. The method includes: if the CPU runs an operating system (OS), the CPU receives a system management interrupt signal, and performs the following operations based on the system management interrupt signal: the CPU switches from running the OS to running the BIOS; during the CPU running the BIOS, the CPU obtains the to-be-configured content of the target configuration item from the out-of-band controller, and configures the content of the target configuration item as the to-be-configured content; the target configuration item is a configuration item in the BIOS configuration item that supports online modification; if the CPU completes the configuration of the target configuration item, the CPU resumes running the OS.

[0021] In this solution, if the CPU runs the OS, the CPU receives the system management interrupt signal sent by the out-of-band controller, and executes the conversion from running the OS to running the BIOS as indicated by the system management interrupt signal, obtains the to-be-configured content of the target configuration item from the out-of-band controller, and configures the content of the target configuration item as the to-be-configured content, thereby modifying the configuration content of the target configuration item. Since the system management interrupt signal also indicates that the CPU resumes running the OS after completing the configuration of the target configuration item, the content configured by the target configuration item can be modified without restarting the system, thereby modifying the target configuration item while keeping the server's business online continuously.

[0022] It should be noted that other technical effects of the second aspect can refer to the first aspect and will not be described in detail here.

[0023] In a possible implementation, during the BIOS startup process, the method further includes: the CPU sending a configuration item set to the out-of-band controller; the configuration item set is a set of configuration items that the current version of the BIOS supports online modification; and the configuration item set includes a target configuration item.

[0024] In this implementation, during the BIOS startup process, the CPU sends a configuration item set to the out-of-band controller, which, on the one hand, enables the out-of-band controller to determine which configuration items in the BIOS configuration items support online modification based on the configuration item set. On the other hand, since the configuration item set is a set of configuration items that the current version of BIOS supports online modification, it helps to improve the matching of the determined target configuration items with the current version of BIOS.

[0025] In another possible implementation, during the CPU running the BIOS, the method further includes: the CPU sending a configuration result of the target configuration item to the out-of-band controller; the configuration result is used to indicate whether the configuration of the target configuration item is successful or failed.

[0026] In this implementation, when the CPU runs the BIOS, the CPU sends the configuration result of the target configuration item to the out-of-band controller, so that the out-of-band controller can determine whether the configuration content of the target configuration item has been updated through the configuration result. This helps the out-of-band controller to promptly understand whether the configuration content of the target configuration item has been updated.

[0027] In another possible implementation, the server also includes a BIOS chip, and the BIOS chip stores the configuration content of the BIOS configuration item; during the BIOS startup process, the method also includes: the CPU sends a request to the out-of-band controller; the request is used to request the content configured by the target configuration item; the CPU receives the content to be configured returned by the out-of-band controller; the CPU modifies the configuration content of the target configuration item in the BIOS chip to the content to be configured.

[0028] In this implementation, when the server is restarted, during the BIOS startup process, the CPU sends a request to the out-of-band controller to request the content configured by the target configuration item. After that, the CPU modifies the configuration content of the target configuration item in the BIOS chip to the content to be configured based on the content to be configured returned by the out-of-band controller. In this way, the BIOS can configure the server based on the content to be configured configured by the target configuration item in the BIOS chip, so that after the server is restarted, it can automatically restore to the configuration before the restart without having to reconfigure.

[0029] In a third aspect, a configuration device for a basic input / output system BIOS configuration item is provided, the device comprising: a functional unit for executing any one of the methods provided in the first aspect, the actions performed by each functional unit being implemented by hardware or by hardware executing corresponding software implementations. For example, the configuration device for a basic input / output system BIOS configuration item may include: a processing unit and a sending unit; the processing unit is used to determine the content to be configured of a target configuration item in the BIOS configuration item; the target configuration item is a configuration item in the BIOS configuration item that supports online modification; the sending unit is used to send a system management interrupt signal to the CPU if the CPU runs an operating system OS; the system management interrupt signal is used to indicate: the CPU switches from running the OS to running the BIOS; during the process of the CPU running the BIOS, the CPU obtains the content to be configured and configures the content of the target configuration item as the content to be configured; if the CPU completes the configuration of the target configuration item, the CPU resumes running the OS.

[0030] In a fourth aspect, a basic input / output system BIOS configuration item configuration device is provided, the device comprising: a functional unit for executing any one of the methods provided in the second aspect, the actions executed by each functional unit are implemented by hardware or by hardware executing corresponding software. For example, the basic input / output system BIOS configuration item configuration device may include: a receiving unit and a processing unit; the receiving unit is used to receive a system management interrupt signal if the CPU runs an operating system OS; the processing unit is used to perform the following operations based on the system management interrupt signal: control the CPU to switch from running the OS to running the BIOS; during the CPU running the BIOS, control the CPU to obtain the content to be configured of the target configuration item from the out-of-band controller, and control the CPU to configure the content of the target configuration item as the content to be configured; the target configuration item is a configuration item in the BIOS configuration item that supports online modification; if the CPU completes the configuration of the target configuration item, control the CPU to resume running the OS.

[0031] In a fifth aspect, a server is provided, comprising: a processor and a memory, wherein the processor is connected to the memory. The memory is used to store computer-executable instructions, and the processor executes the computer-executable instructions stored in the memory, thereby implementing any one of the methods provided in the first aspect, or implementing any one of the methods provided in the second aspect.

[0032] In a sixth aspect, a configuration system for basic input / output system BIOS configuration items is provided, the system comprising: a central processing unit CPU and an out-of-band controller, the CPU being connected to the out-of-band controller; wherein the out-of-band controller is used to execute any one of the methods provided in the first aspect above, and the CPU is used to execute any one of the methods provided in the second aspect above.

[0033] In a seventh aspect, a configuration system for a basic input / output system BIOS configuration item is provided, the system comprising a terminal device and a server; the terminal device and the server are connected. The terminal device is used to generate the content to be configured of the target configuration item in the BIOS configuration item and send it to the server; the target configuration item is a configuration item in the BIOS configuration item that supports online modification; the server is used to execute any one of the methods provided in the first aspect above, or execute any one of the methods provided in the second aspect above, based on the received content to be configured of the target configuration item.

[0034] In an eighth aspect, a configuration system for basic input / output system BIOS configuration items is provided, the system comprising a terminal device and a server; the terminal device and the server are connected. The server comprises a central processing unit CPU and an out-of-band controller. The out-of-band controller is used to determine the content to be configured of the target configuration item in the BIOS configuration item; the target configuration item is a configuration item in the BIOS configuration item that supports online modification; the out-of-band controller is also used to: if the CPU runs the operating system OS, send a system management interrupt signal to the CPU; the CPU is used to receive the system management interrupt signal, and perform the following operations based on the system management interrupt signal: the CPU switches from running the OS to running the BIOS; during the CPU running the BIOS, the CPU obtains the content to be configured of the target configuration item from the out-of-band controller, and configures the content of the target configuration item as the content to be configured; the target configuration item is a configuration item in the BIOS configuration item that supports online modification; if the CPU completes the configuration of the target configuration item, the CPU resumes running the OS.

[0035] Optionally, the out-of-band controller is also used to: send interface configuration information to the terminal device; the interface configuration information is used for the terminal device to display a configuration interface, the configuration interface including target configuration items; receive the content to be configured of the target configuration item sent by the terminal device; the content to be configured is determined by the terminal device in response to the configuration operation of the target configuration item on the configuration interface.

[0036] Optionally, the terminal device is used to: receive interface configuration information; based on the interface configuration information, display a configuration interface, the configuration interface including a target configuration item; in response to a configuration operation on a target configuration item on the configuration interface, determine content to be configured of the target configuration item; and send content to be configured of the target configuration item to an out-of-band controller.

[0037] Optionally, the out-of-band controller is further used to: send an identifier of a target configuration item to the terminal device in response to a request from the terminal device; receive content to be configured of the target configuration sent by the terminal device; the content to be configured is determined by the terminal device based on the identifier of the target configuration item.

[0038] Optionally, the terminal device is used to: receive an identifier of a target configuration item; determine content to be configured of the target configuration item based on the identifier of the target configuration item; and send the content to be configured of the target configuration item to the out-of-band controller.

[0039] Optionally, during the BIOS startup process, the CPU is further used to: send a configuration item set to the out-of-band controller; the configuration item set is a set of configuration items that the current version of BIOS supports online modification, and the configuration item set includes the target configuration item.

[0040] Optionally, the out-of-band controller is further used to: receive a configuration item set sent by the CPU; the configuration item set is a set of configuration items that the current version of BIOS supports online modification, and the configuration item set includes a target configuration item.

[0041] Optionally, during the CPU running the BIOS, the CPU is further used to: send a configuration result of a target configuration item to the out-of-band controller; the configuration result is used to indicate whether the target configuration item is successfully configured or failed to be configured.

[0042] Optionally, the out-of-band controller is further used to: receive a configuration result of a target configuration item returned by the CPU; the configuration result is used to indicate whether the configuration of the target configuration item is successful or failed.

[0043] Optionally, the server also includes a BIOS chip, which stores configuration content of the BIOS configuration item; during the BIOS startup process, the CPU is also used to: send an acquisition request to the out-of-band controller; the acquisition request is used to request the content configured by the target configuration item; receive the content to be configured returned by the out-of-band controller; and modify the configuration content of the target configuration item in the BIOS chip to the content to be configured.

[0044] Optionally, the out-of-band controller is also used to: receive an acquisition request sent by the CPU; the acquisition request is used to request the content configured by the target configuration item; if the configuration result indicates that the target configuration item is successfully configured, send the content to be configured to the CPU; the content to be configured is used to modify the configuration content of the target configuration item in the BIOS chip to the content to be configured.

[0045] In the ninth aspect, a chip is provided, comprising: a processor and an interface circuit; the interface circuit is used to receive code instructions and transmit them to the processor; the processor is used to run the code instructions to execute any one of the methods provided in the first aspect above, or to execute any one of the methods provided in the second aspect above.

[0046] In the tenth aspect, a computer-readable storage medium is provided, which stores computer execution instructions. When the computer execution instructions are run on a computer, the computer executes any one of the methods provided in the first aspect above, or executes any one of the methods provided in the second aspect above.

[0047] In the eleventh aspect, a computer program product is provided, comprising computer execution instructions, which, when executed on a computer, cause the computer to execute any one of the methods provided in the first aspect or any one of the methods provided in the second aspect.

[0048] Among them, the technical effects brought about by any implementation method in the third aspect to the eleventh aspect can refer to the technical effects brought about by different implementation methods in the first aspect or the technical effects brought about by different implementation methods in the second aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 A system architecture diagram of a server provided in an embodiment of the present application;

[0050] Figure 2 A schematic diagram of a BIOS configuration item configuration system provided in an embodiment of the present application;

[0051] Figure 3 A flowchart of a method for configuring a BIOS configuration item provided in an embodiment of the present application;

[0052] Figure 4 A flowchart of another method for configuring BIOS configuration items provided in an embodiment of the present application;

[0053] Figure 5 A schematic diagram of a configuration interface provided in an embodiment of the present application;

[0054] Figure 6 A flowchart of another method for configuring BIOS configuration items provided in an embodiment of the present application;

[0055] Figure 7 A schematic diagram of a BIOS configuration item configuration device provided in an embodiment of the present application;

[0056] Figure 8 A schematic diagram of another BIOS configuration item configuration device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0057] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0058] In the description of this application, unless otherwise specified, " / " indicates that the objects associated with each other are in an "or" relationship, for example, A / B can represent A or B; "and / or" in this application is merely a description of the association relationship between associated objects, indicating that three relationships may exist, for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural.

[0059] Furthermore, in the description of this application, unless otherwise specified, "plurality" means two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.

[0060] In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second" and the like are used to distinguish the same items or similar items with substantially the same functions and effects. Those skilled in the art will understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like do not necessarily limit the differences. At the same time, in the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design solutions. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete manner for ease of understanding.

[0061] First, the application scenarios of the embodiments of the present application are exemplarily introduced.

[0062] The basic input and output system BIOS is a program embedded in the BIOS chip on the motherboard. Its main function is to provide hardware settings and control for the server. In addition, BIOS also provides users with a variety of configuration items. By modifying the configuration content of these configuration items, the operating status of the server can be controlled. Since the BIOS is configured by default when it leaves the factory, and the requirements for energy efficiency tuning are inconsistent when the server is in different scenarios, the operation of the server can be matched to the current scenario by modifying the content of the BIOS configuration items.

[0063] In the related art, after the operating system OS of the server is running, if you want to modify the configuration content of the BIOS configuration item, you need to restart the operating system, so as to modify the configuration content of the BIOS configuration item during the BIOS running process. After that, the operating system is restarted, and the BIOS performs the modification operation to make the modification of the BIOS configuration item effective.

[0064] That is to say, after the OS is running, if you want to modify the configuration content of the BIOS configuration item, you need to restart the operating system twice to make the modification of the BIOS configuration item take effect. This will inevitably cause business interruption and seriously affect the normal operation of the server.

[0065] In view of this, an embodiment of the present application provides a method for configuring a basic input / output system BIOS configuration item. After the out-of-band controller determines the content to be configured of the target configuration, if the CPU runs the OS, the out-of-band controller sends a system management interrupt signal to the CPU to instruct the CPU to switch from running the OS to running the BIOS, and in the process of the CPU running the BIOS, the content of the target configuration item is configured as the content to be configured, thereby modifying the configuration content of the target configuration item. Since the system management interrupt signal can also instruct the CPU to resume running the OS after the BIOS completes the configuration of the target configuration item, the target configuration item can be modified without restarting the system, thereby realizing the modification of the target configuration item while keeping the server's business online continuously.

[0066] Secondly, the system architecture of the embodiment of the present application is exemplarily introduced.

[0067] like Figure 1 The figure shows a system architecture diagram of a server provided in an embodiment of the present application.

[0068] In terms of hardware, the server includes a central processing unit (CPU), system management random access memory (SMRAM), and an out-of-band controller.

[0069] In terms of software, the server includes BIOS and OS, which are run by the CPU.

[0070] OS, including operating system program code. The operating system can be Linux, Windows, or vxWarks, etc.

[0071] In the embodiment of the present application, the OS is mainly used for running services and managing energy consumption.

[0072] BIOS is the most basic software code loaded on the server hardware system, which is used for power-on, self-test, CPU initialization, memory initialization, detection of input and output devices and bootable devices, and finally guiding the OS to start. In other words, after the server is powered on, the BIOS is first started, and then the BIOS guides the OS to start.

[0073] Among them, the BIOS startup process mainly includes the following 7 stages:

[0074] Verification phase (security, SEC), EFI environment pre-initialization phase (pre-efi initialization environment, PEI), driver execution environment phase (driver execution environment, DXE), boot device selection phase (boot device select, BDS), temporary system operation phase (transient system load, TSL), runtime phase (runtime, RT), after life phase (after life, AL).

[0075] In the method provided in the embodiment of the present application, the BIOS is mainly used to report information of configuration items that support online modification to the out-of-band controller, and configure the content of the target configuration items that support online modification as the content to be configured.

[0076] The system management memory is used to store the CPU context before the CPU enters the system management mode, and the program to be run after the CPU enters the SMM mode (such as the SMM handler indicated by the system management interrupt).

[0077] The out-of-band controller can remotely maintain and manage the server through a dedicated data channel. The out-of-band controller is completely independent of the server's CPU, BIOS, and OS, and can communicate with the BIOS and OS (or OS management unit) running in the CPU through the server's out-of-band management interface.

[0078] In the method provided in the embodiment of the present application, the out-of-band controller is mainly used to send interface configuration information and the identifier of the target configuration item to the terminal device, send the content to be configured of the target configuration item to the BIOS, and store the configuration results of the target configuration item.

[0079] Exemplarily, the out-of-band controller may include a monitoring management unit outside the server, a management system in a management chip outside the processor, a baseboard management controller (BMC) of the server, a system management mode (SMM) module, etc. It should be noted that the embodiments of the present application do not limit the specific form of the out-of-band controller, and the above is only an exemplary description. In the following embodiments, only the out-of-band controller is taken as an example for description.

[0080] It should be noted that different servers have different names for BMC, for example, some servers are called BMC, some servers are called iLO, and another server is called iDRAC. Regardless of whether it is called BMC, iLO or iDRAC, it can be understood as the BMC in the embodiment of the present invention.

[0081] In some embodiments, the server further includes a south bridge (platform controller hub, PCH), a complex programmable logic device (complex programmable logic device, CPLD). The out-of-band controller is connected to the CPLD, and the CPLD is connected to the PCH. The specific uses of the PCH and the CPLD will be described in subsequent embodiments and will not be described in detail here.

[0082] like Figure 2 As shown, a BIOS configuration item configuration system provided in an embodiment of the present application includes a terminal device and a server (see Figure 1 ), the terminal device and the server are connected via a network, or via a communication bus. The terminal device is used to generate the content to be configured of the target configuration item in the BIOS configuration, and send the content to be configured of the target configuration item to the server. The server is used to configure the content of the target configuration item as the content to be configured based on the received content to be configured of the target configuration item.

[0083] In some embodiments, the terminal device may be referred to as: terminal, user equipment (UE), access terminal, user unit, user station, mobile station, remote station, remote terminal, mobile device, user terminal, wireless communication device, user agent or user device, etc. The terminal device may be a mobile phone, augmented reality (AR) device, virtual reality (VR) device, tablet computer, laptop computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), etc.

[0084] The following is a brief introduction to the terms involved in this application.

[0085] System management interrupt (SMI): It is the highest priority interrupt in the server and cannot be masked. When the system management interrupt is triggered, the CPU enters the system management mode (SMM) and executes the interrupt handler indicated by the system management interrupt.

[0086] Among them, system management interrupts are divided into software interrupts and hardware interrupts. Software interrupts refer to interrupts generated by program settings, and hardware interrupts refer to interrupts generated by external hardware.

[0087] System Management Mode: It is a CPU execution mode of Intel x86 architecture. Currently, System Management Mode can only be entered through System Management Interrupt. In System Management Mode, other operations through the CPU are blocked. At this time, the operating OS is in a "frozen" state, and all other interrupts cannot be processed.

[0088] Intelligent Platform Management Interface (IPMI): is an industrial standard for managing peripheral devices used in enterprise systems based on Intel architecture. Users can use IPMI to monitor the physical health characteristics of the server, such as temperature, voltage, fan working status, power status, etc. IPMI can span different operating systems, firmware and hardware platforms, and can intelligently monitor, control and automatically report the operating status of a large number of servers to reduce server system costs.

[0089] When working, all IPMI functions are completed by sending IPMI commands to the BMC. IPMI commands use instructions specified in the IPMI specification. The BMC receives and records event messages in the system event log and maintains sensor data records that describe the conditions of sensors in the system.

[0090] Redfish: is an open industry standard specification released by the distributed management task force (DMTF) to provide simple and secure management capabilities for scalable platform hardware. It is a management standard based on the hypertext transfer protocol secure (HTTPS) service, using the representational state transfer full (RESTful) interface to implement device management. Each HTTPS operation submits or returns a resource or result in the JavaScript object notation (JSON) format encoded in the unicode transformation format (UTF)-8 (UTF-8 for short), just like the world wide web (Web) application returns hypertext markup language (HTML) to the browser.

[0091] It should be noted that the system architecture and application scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field can know that with the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0092] For ease of understanding, the following is an exemplary introduction to the configuration method of the basic input and output system BIOS configuration items provided by the present application in conjunction with the accompanying drawings. The method is applicable to Figure 1 to Figure 2 The system architecture is shown.

[0093] The following embodiments of the present application will be divided into three parts to introduce the configuration method of the basic input and output system BIOS configuration items.

[0094] Part I: Combination Figure 3 This section describes the process by which the CPU reports the BIOS configuration items that can be modified online to the out-of-band controller.

[0095] Part II: Combination Figures 4 to 5The following describes a process for using an out-of-band controller to configure the configuration items that support online modification in the first part.

[0096] Part III: Combination Figure 6 This section introduces the process of using another out-of-band controller to configure the configuration items that support online modification in the first part.

[0097] Figure 3 The flowchart of a method for configuring a basic input / output system BIOS configuration item according to an exemplary embodiment is shown. Exemplarily, the method includes the following S301-S304.

[0098] It should be noted that the CPU in S301-S304 executes a certain step (such as S301, S302 and S304), which can be considered as the CPU calling the BIOS to execute the step.

[0099] S301: The CPU sends a configuration item set to the out-of-band controller.

[0100] The configuration item set is a set of configuration items that the current version of BIOS supports online modification. The configuration item set includes multiple configuration items that support online modification, and the multiple configuration items include a target configuration item. Exemplarily, the configuration item set may include multiple configuration item identifiers that support online modification, and the multiple configuration item identifiers are used to indicate multiple configuration items that support online modification. The configuration item identifier corresponds to the configuration one by one, that is, one configuration item identifier indicates one configuration item.

[0101] After the BIOS performs modification operations on configuration items that support online, the modified configuration content of the configuration items that support online can take effect without restarting the system. Here, online means that the OS is online, and effective means that the server can run based on the modified configuration content. For example, the configuration items that support online modification include energy-saving mode. After the energy-saving mode is changed from "on" to "off", the server can run in high-performance mode with the energy-saving mode turned off without restarting the system.

[0102] That is to say, after the configuration content of a configuration item that supports online modification is modified, for example, content 1 configured by configuration item a that supports online modification (hereinafter referred to as configuration item a) is modified to content 2, content 2 configured by configuration item a takes effect without restarting the system, that is, the server can run based on content 2 configured by configuration item a.

[0103] In some embodiments, the configuration content of the configuration item that supports online modification is stored in a register. Among them, one configuration item that supports online modification corresponds to one register. The configuration items that support online modification correspond to the registers one by one, that is, one register only stores data corresponding to the configuration content of one configuration item that supports online modification. Exemplarily, the register corresponding to the target configuration item is the target register, and the target register only stores the value corresponding to the configuration content of the target configuration item.

[0104] Exemplarily, the multiple configuration items include configuration item a, and configuration item a may be any one of the multiple configuration items. In the following, configuration item a is taken as an example to exemplarily illustrate the characteristics of the configuration items that support online modification.

[0105] In some embodiments, the value a corresponding to the original configuration content of configuration item a is stored in register a. If the configuration content of configuration item a is to be modified, it is only necessary to modify the value in register a. Based on this, if the original configuration content of configuration item a is to be modified to a new configuration content, it is only necessary to modify the original value a in register a to a value b corresponding to the new configuration content. After the content in register a is modified to value b, the server can run based on the new configuration content corresponding to the value b of register a without restarting the system.

[0106] Optionally, the configuration item set includes dynamic energy saving, non-core power scaling, hardware pre-reading, data cache unit pre-reading, third-level cache pre-reading, power performance adjustment, power efficiency preference mode and other configuration items.

[0107] The configurable contents of dynamic energy saving include energy saving mode on and energy saving mode off. When the energy saving mode is on, the configurable contents also include multiple different energy saving levels, such as level 0, level 1, level 2, ..., level M, etc.

[0108] The configurable contents of the non-core power scaling include on and off. When on, the configurable contents also include multiple percentages, such as 10%, 30%, 60%, etc.

[0109] The configurable contents of hardware pre-reading include on and off. The configurable contents of data cache unit pre-reading include on and off. The configurable contents of level 3 cache pre-reading include on and off.

[0110] The configurable contents of power performance adjustment include BIOS and OS. If BIOS is selected, it means that the policy selection of power performance adjustment is controlled by BIOS, and if OS is selected, it means that the policy selection of power performance adjustment is controlled by OS.

[0111] The configurable contents of the energy efficiency preference mode include performance balance mode, performance priority mode, power consumption balance mode and energy saving priority mode. Among them, the energy efficiency preference mode belongs to the power performance strategy, that is, if the power performance adjustment is configured as OS, the configuration of the energy efficiency preference mode is controlled by OS.

[0112] Optionally, the BIOS program is pre-configured with multiple configuration items that support online modification. The BIOS running in the CPU can determine the configuration item set to be sent to the out-of-band controller based on the multiple configuration items that support online modification configured in the program.

[0113] It should be noted that the contents of the configuration item sets of different versions of BIOS may be different, or may be the same, and the embodiments of the present application do not impose any limitation on this.

[0114] In some embodiments, after the server is powered on, during the BIOS startup phase, the BIOS running in the CPU actively sends a set of configuration items that the current version of the BIOS supports online modification to the out-of-band controller. Exemplarily, the BIOS can send the set of configuration items that the current version of the BIOS supports online modification during the driver execution environment (DXE) phase.

[0115] In other embodiments, after the OS is started, the out-of-band controller triggers a target system management interrupt signal, which is used to instruct the CPU to switch from running the OS to running the BIOS, and sends a set of configuration items that the current version of the BIOS supports online modification to the out-of-band controller.

[0116] Exemplarily, after receiving the target system management interrupt signal, the CPU enters the SMM mode to implement the conversion from running the OS to running the BIOS. After that, the BIOS running on the CPU sends a set of configuration items that support online modification to the out-of-band controller. After the BIOS running on the CPU sends the set of configuration items that support online modification to the out-of-band controller, the CPU exits the SMM mode and resumes running the OS.

[0117] In an exemplary embodiment, the BIOS executed by the CPU generates a JSON file 1 based on the configuration items that support online modification, and the JSON file 1 includes the identifier of each configuration item in the configuration item set, that is, the identifier of the configuration item that supports online modification. The BIOS executed by the CPU sends an IPMI command 1 to the out-of-band controller, and the IPMI command 1 carries the JSON file 1, thereby sending the set of configuration items that support online modification to the out-of-band controller.

[0118] In another example, the BIOS running on the CPU sends an IPMI command 2 to the out-of-band controller. The IPMI command 2 carries information about a set of configuration items, thereby sending a set of configuration items that support online modification to the out-of-band controller.

[0119] In some embodiments, the BIOS executed by the CPU further sends BIOS configuration items, configurable contents of the BIOS configuration, and current configuration contents of the BIOS configuration items to the out-of-band controller.

[0120] It should be noted that this part of the content will be explained in subsequent embodiments and will not be described in detail here.

[0121] S302: The CPU determines whether the transmission is successful.

[0122] If the judgment result is yes, then execute S303. If the judgment result is no, then execute S304.

[0123] In some embodiments, after the BIOS executed by the CPU sends a configuration item set to the out-of-band controller, if no reply is received from the out-of-band controller within a preset time, it is determined that the sending has failed. If a reply is received from the out-of-band controller within the preset time, it is determined that the sending has succeeded. The preset time may be 0.5 seconds, 1 second, 1.5 seconds, etc. It should be noted that the embodiments of the present application do not limit the specific value of the preset time.

[0124] In other embodiments, after the BIOS running on the CPU sends a configuration item set to the out-of-band controller, if no response is received from the out-of-band controller within a preset time, the configuration item set is sent to the out-of-band controller again. After sending N times, if no response is received from the out-of-band controller within the preset time, it is determined that the sending failed. N is a positive integer greater than 1. By setting the sending to be N times before judging whether the sending is successful, it helps to increase the probability of successful sending compared to judging whether the sending is successful after sending once.

[0125] It should be noted that the embodiments of the present application do not limit the specific value of N. For example, N can be 5, 6, etc.

[0126] S303: The out-of-band controller receives the configuration item set sent by the CPU.

[0127] In some embodiments, after receiving the IPMI command 1, the out-of-band controller parses the JSON file 1 to determine the configuration items in the BIOS configuration items that support online modification.

[0128] In some other embodiments, after receiving the IPMI command 2, the out-of-band controller parses the IPMI command 2 to determine the configuration items in the BIOS configuration items that support online modification.

[0129] In some embodiments, after receiving the configuration item set, the out-of-band controller stores the configuration item set in a local cache so that the configuration items in the BIOS configuration items that support online modification can be modified during the subsequent server OS operation. Optionally, the configuration item set also includes a BIOS version number.

[0130] In some embodiments, after receiving the configuration item set, the out-of-band controller compares the BIOS version number included in the configuration item set with the BIOS version number included in the historical configuration item set stored in the out-of-band controller to determine whether the BIOS version has changed. If the BIOS version has changed, the out-of-band controller stores the newly received configuration item set, and the newly received configuration item set is used to determine the target configuration item in the following embodiments. If the BIOS version has not changed, the out-of-band control area may store the newly received configuration item set, or may not store the configuration item set received by the information.

[0131] S304: The CPU prints abnormal information.

[0132] In some embodiments, if the BIOS executed by the CPU fails to send the configuration item set to the out-of-band controller, the BIOS executed by the CPU prints an exception message to record the failure to send the configuration item set to the out-of-band controller. After printing the exception message, the BIOS continues to run.

[0133] In the above embodiment, the BIOS running on the CPU sends a configuration item set to the out-of-band controller, which, on the one hand, enables the out-of-band controller to determine which configuration items in the BIOS configuration items support online modification based on the configuration item set. On the other hand, since the configuration item set is a set of configuration items that the current version of the BIOS supports online modification, it helps to improve the matching of the determined target configuration items with the current version of the BIOS.

[0134] Figure 4 The flowchart of a method for configuring a basic input / output system BIOS configuration item according to an exemplary embodiment is shown. Exemplarily, the method includes the following S401-S410.

[0135] S401: The out-of-band controller sends interface configuration information to the terminal device.

[0136] The interface configuration information is used for the terminal device to display the configuration interface, and the configuration interface includes the target configuration item. The target configuration item is the configuration item that supports online modification in the BIOS configuration item.

[0137] Optionally, the target configuration item includes one or more configuration items in the configuration item set.

[0138] The target configuration item may include some of the configuration items in the configuration item set, or may include all of the configuration items in the configuration item set, which is not limited in the embodiment of the present application.

[0139] In some embodiments, after the server is powered on, during the BIOS startup process, the BIOS running on the CPU sends a configuration item set to the out-of-band controller, and the out-of-band controller generates interface configuration information during the BIOS startup process based on the identifier of the target configuration item in the configuration item set.

[0140] In other embodiments, after the OS of the server is running, the out-of-band controller generates interface configuration information during the OS running stage based on the identifier of the target configuration item in the configuration item set stored in the local cache. In some embodiments, the out-of-band controller generates first interface configuration information, and the first configuration interface corresponding to the first interface configuration information can display some configuration items in the configuration item set. The partial configuration items are the configuration items that the out-of-band controller determines currently need to modify. For example, it can be determined based on the current running scenario of the server, or it can also be determined based on the current running business of the server, which is not limited in the embodiments of the present application.

[0141] In other embodiments, the out-of-band controller generates second interface configuration information, and the second configuration interface corresponding to the second interface configuration information can display all configuration items in the configuration item set.

[0142] It should be noted that the out-of-band controller can send interface configuration information to the terminal device when the CPU runs the BIOS, or it can also send interface configuration information to the terminal device when the CPU runs the OS. The embodiments of the present application do not limit this.

[0143] S402: The terminal device displays a configuration interface, and in response to a configuration operation on a target configuration item on the configuration interface, determines content to be configured of the target configuration item.

[0144] Optionally, the configuration interface includes a Web interface. By setting the configuration interface to include a Web interface, the configuration interface can be displayed on a browser, which helps to simplify the display process of the configuration interface compared to using a dedicated application to display the configuration interface.

[0145] In some embodiments, Figure 5 As shown, it is a schematic diagram of the configuration interface. When a user performs a configuration operation on a target configuration item (such as a dynamic energy-saving configuration item) on the configuration interface, for example, the user configures the content of the target configuration item to turn off the energy-saving mode (i.e., the content to be configured), the terminal device responds to the configuration operation and determines the content to be configured of the target configuration item.

[0146] It is understandable that the content to be configured can be a state option such as off or on, or a numerical value. For example, when the target configuration item is non-core power scaling, if the non-core power scaling is in the on state, the content to be configured also includes a specific scaling percentage, such as 30%. Therefore, the embodiment of the present application does not limit the form of the content to be configured.

[0147] It should be noted that the user can be allowed to configure the target configuration item when the CPU runs the BIOS, or the target configuration item can be modified only when the CPU runs the OS. It should be noted that the embodiment of the present application does not limit the timing of modifying the target configuration item by the terminal device.

[0148] S403: The terminal device sends the to-be-configured content of the target configuration item to the out-of-band controller.

[0149] In some embodiments, after the terminal device determines the content to be configured of the target configuration item, it sends the content to be configured of the target configuration item to the out-of-band controller. For example, the terminal device may generate a JSON file 2, which records the content to be configured of the target configuration item, and the terminal device sends the JSON file 2 to the out-of-band controller to send the content to be configured of the target configuration item to the out-of-band controller.

[0150] S404: The out-of-band controller determines the to-be-configured content of the target configuration item in the BIOS configuration item.

[0151] In some embodiments, after receiving the content to be configured of the target configuration item sent by the terminal device, the out-of-band controller executes S404, that is, determines the content to be configured of the target configuration item. Exemplarily, the out-of-band controller receives JSON file 2 and obtains the content to be configured by parsing JSON file 2.

[0152] In other embodiments, after receiving the content to be configured sent by the terminal device, the out-of-band controller performs S404 when it is determined that the CPU runs the OS, that is, determines the content to be configured of the target configuration item in the BIOS configuration item.

[0153] In some embodiments, the out-of-band controller determines the content to be configured of the target configuration item in the BIOS configuration item, and the out-of-band controller may generate a JSON file 3 according to the content to be configured, and the JSON file 3 includes the target configuration item and the content to be configured of the target configuration item.

[0154] In some embodiments, the out-of-band controller pre-stores configurable content of the target configuration item. After receiving the content to be configured of the target configuration item, it determines whether the content to be configured belongs to configurable content. If the judgment result is yes, execute S405, otherwise, end.

[0155] In other embodiments, the out-of-band controller pre-stores the current configuration content of the target configuration item. After receiving the content to be configured of the target configuration item, it determines whether the content to be configured is the same as the current configuration content. If the judgment result is yes, the process ends; if the judgment result is no, S405 is executed.

[0156] It should be noted that the configurable content of the target configuration item and the current configuration content of the target configuration item are sent by the BIOS to the out-of-band controller, and the out-of-band controller stores them in a local cache.

[0157] S405: If the CPU runs the operating system OS, the out-of-band controller sends a system management interrupt signal to the CPU.

[0158] The system management interrupt signal is used to instruct the CPU to execute a target operation. The target operation includes the following S407-S410.

[0159] In some embodiments, if the out-of-band controller executes S404 without determining whether the CPU is running the OS, the out-of-band controller sends a system management interrupt signal to the CPU after determining that the CPU is running the OS. Exemplarily, the BIOS sends an IPMI command 3 to the out-of-band controller, and the IPMI command 3 includes notification information, and the notification information is used to instruct the CPU to run the OS. After receiving the notification information sent by the BIOS, the out-of-band controller determines that the CPU is running the OS. After that, the out-of-band controller sends a system management interrupt signal to the CPU.

[0160] In other embodiments, if the out-of-band controller executes S404 when determining that the CPU runs an OS, the out-of-band controller sends a system management interrupt signal to the CPU after determining the content to be configured of the target configuration item.

[0161] The following is an exemplary introduction to the process in which the out-of-band controller sends a system management interrupt signal to the CPU.

[0162] The out-of-band controller pulls down the general-purpose input / output (GPIO) to trigger a system management interrupt signal. Exemplarily, the out-of-band controller is configured with a register b, and the out-of-band controller writes a value c into the register, and the value c is used to indicate that the GPIO is pulled down. After detecting that the value c is written to register b, the CPLD executes the operation of pulling down the GPIO corresponding to the value c. After detecting that the GPIO is pulled down, the PCH determines the identifier of the GPIO that is pulled down, and sends a system management interrupt signal with a target identifier to the CPU based on the identifier.

[0163] It should be noted that the out-of-band controller may also execute S405 by sending a system management interrupt signal to the CPU in the related art, and the embodiment of the present application does not limit this.

[0164] S406: The CPU receives the system management interrupt signal, and performs the following operations in response to the system management interrupt signal.

[0165] In some embodiments, different system management interrupt signals have different identifiers, each identifier indicates a system management interrupt program, and the system management interrupt program indicates the operations to be performed after the CPU enters the system management mode. In the embodiment of the present application, the target identifier of the system management interrupt signal corresponds to the target system management interrupt program, and the target system management interrupt program indicates the operations in S408-S410.

[0166] S407: The CPU switches from running the OS to running the BIOS.

[0167] Optionally, the system management interrupt signal is also used to instruct the CPU to enter a system management mode.

[0168] In some embodiments, after receiving the system management interrupt signal, the CPU suspends the running of the OS, writes the CPU context of the current processing program into the system management memory, and switches to the system management mode. In the system management mode, the CPU runs the BIOS.

[0169] S408: When the CPU runs the BIOS, the CPU obtains the to-be-configured content of the target configuration item from the out-of-band controller.

[0170] In some embodiments, the BIOS running in the CPU sends an IPMI command 4 to the out-of-band controller, and the IPMI command 4 is used to instruct to obtain the content to be configured of the target configuration item. After receiving the IPMI command 4, the out-of-band controller returns an IPMI command 5 to the BIOS running in the CPU, and the IPMI command 5 carries a JSON file 3, as described above, and the JSON file 3 includes the target configuration item and the content to be configured of the target configuration item.

[0171] In other embodiments, upon receiving the IPMI command 4, the out-of-band controller returns an IPMI command 6 to the BIOS running in the CPU, where the IPMI command 6 carries the target configuration item and the content to be configured of the target configuration item.

[0172] In some embodiments, after the BIOS running in the CPU obtains the content to be configured of the target configuration item, it determines whether the target configuration item is a configuration item that supports online modification, and if the determination result is yes, S409 is executed. If the determination result is no, the process ends.

[0173] S409: When the CPU runs the BIOS, the CPU configures the content of the target configuration item as the content to be configured.

[0174] In some embodiments, if the configuration content of the target configuration item is stored in a register, the BIOS running in the CPU writes the numerical value corresponding to the content to be configured into the target register corresponding to the target configuration item, thereby configuring the content of the target configuration as the content to be configured.

[0175] It should be noted that after the value corresponding to the content to be configured is written into the target register, the configuration content of the target configuration item becomes effective, and then the server runs based on the mode indicated by the content to be configured of the target configuration item.

[0176] In other embodiments, if the configuration content of the target configuration is stored in a static file, the BIOS running in the CPU writes the content to be configured into the static file, thereby configuring the content of the target configuration as the content to be configured.

[0177] It should be noted that after the content to be configured is written into the static file, the configuration content of the target configuration item takes effect, and then the server runs based on the mode indicated by the content to be configured of the target configuration item.

[0178] S410: If the CPU completes the configuration of the target configuration item, the CPU resumes running the OS.

[0179] Completing the configuration of the target configuration item refers to configuring the content of the target configuration item as the content to be configured.

[0180] In some embodiments, after the BIOS running in the CPU completes the configuration of the target configuration, the CPU exits the system management mode and reads the CPU context written before entering the system management mode from the system management memory, and restores the operating mode before entering the system management mode based on the CPU context to achieve the recovery of the OS.

[0181] Optionally, the method may further include the following S411-S412.

[0182] S411: When the CPU runs the BIOS, the CPU sends a configuration result of the target configuration item to the out-of-band controller.

[0183] The configuration result is used to indicate whether the target configuration item is configured successfully or failed.

[0184] In some embodiments, after executing S409, the BIOS running in the CPU sends the configuration result of the target configuration item to the out-of-band controller.

[0185] S412: The out-of-band controller receives the configuration result of the target configuration item sent by the CPU.

[0186] In some embodiments, after the out-of-band controller receives the configuration result of the target configuration item, if the configuration result indicates that the configuration is successful, a target file (JSON file 4) is generated, and the target file includes the target configuration item and the content to be configured. The target file is used to record the modified target configuration item and the content currently configured in the target configuration item among the configuration items that support online modification.

[0187] During the entire operation phase of the server, if the out-of-band controller modifies the target configuration item multiple times, in some embodiments, the out-of-band controller only saves the latest generated target file. In other embodiments, the out-of-band controller saves the target file generated each time the target configuration item is modified. Based on this, when the BIOS running in the CPU requests to obtain the content configured by the target configuration item, the out-of-band controller returns the current configuration content of the target configuration item to the BIOS running in the CPU based on the latest generated target file.

[0188] Optionally, the server further includes a BIOS chip, and the BIOS chip stores configuration contents of BIOS configuration items.

[0189] The method may further include the following S413-S416.

[0190] S413: During the BIOS startup process, the CPU sends an acquisition request to the out-of-band controller.

[0191] The get request is used to request the content configured by the target configuration item.

[0192] In some embodiments, when the server is powered on and the BIOS is started, a request is sent to the out-of-band controller, for example, IPMI command 7 is sent to request the content required for the target configuration item to be configured. Exemplarily, the BIOS running in the CPU sends the request to the out-of-band controller in the driver execution environment (DXE) stage.

[0193] S414: If the configuration result indicates that the target configuration item is configured successfully, the out-of-band controller sends the to-be-configured content of the target configuration item to the CPU.

[0194] The content to be configured is used by the BIOS running in the CPU to modify the configuration content of the target configuration item in the BIOS chip to the content to be configured.

[0195] In some embodiments, after receiving the acquisition request from the BIOS running in the CPU, the out-of-band controller determines whether the target configuration item is configured successfully. If the target configuration item is configured successfully, the configuration content of the target configuration item is sent to the BIOS running in the CPU.

[0196] S415: The CPU receives the content to be configured returned by the out-of-band controller.

[0197] In some embodiments, the BIOS running in the CPU receives an IPMI command 8 returned by an out-of-band controller, where the IPMI command 8 carries a target configuration item and the currently configured content of the target configuration (i.e., the content to be configured). The BIOS running in the CPU obtains the target configuration item and the currently configured content of the target configuration (i.e., the content to be configured) by parsing the IPMI command 8.

[0198] In other embodiments, the BIOS running in the CPU receives the IPMI command 9 returned by the out-of-band controller, and the IPMI command 8 carries the target file, as described above, and the target file includes the target configuration item and the content currently configured in the target configuration item. The BIOS running in the CPU obtains the target configuration item and the content currently configured in the target configuration item by parsing the target file.

[0199] S416: The CPU modifies the configuration content of the target configuration item in the BIOS chip to the content to be configured.

[0200] In some embodiments, after the BIOS running in the CPU modifies the configuration content of the target configuration item in the BIOS chip to the content to be configured, the server is configured based on the content configured by the target configuration item in the BIOS chip. Exemplarily, the BIOS running in the CPU modifies the configuration content of the target configuration item in the BIOS chip to the content to be configured in the driver execution environment (DXE) stage.

[0201] The above is the first part of the embodiment of this application. Figure 6 , an exemplary introduction is given to the second part of the embodiment of the present application.

[0202] Figure 6 The flowchart of a method for configuring a basic input / output system BIOS configuration item according to an exemplary embodiment is shown. Exemplarily, the method includes the following S601-S610.

[0203] S601: The out-of-band controller sends an identifier of a target configuration item to the terminal device in response to a request from the terminal device.

[0204] In some implementations, the terminal device sends a request to the out-of-band controller to request to obtain the configuration items in the BIOS configuration items that support online modification. After receiving the request, the out-of-band controller returns the identifier of the target configuration item to the terminal device.

[0205] Exemplarily, the out-of-band controller may return a JSON file 1 to the terminal device, as described above, where the JSON file 1 includes an identifier of the target configuration item.

[0206] S602: The terminal device determines the to-be-configured content of the target configuration item based on the identifier of the target configuration item.

[0207] In some embodiments, the terminal device obtains the to-be-configured content of the target configuration item based on the identifier of the target configuration item.

[0208] Exemplarily, the user inputs the content to be configured corresponding to the identifier of the target configuration item to the terminal device through Redfish, the terminal device receives the content to be configured, and generates a JSON file 5, which records the identifier of the target configuration item and the content to be configured of the target configuration item.

[0209] S603: The terminal device sends the to-be-configured content of the target configuration item to the out-of-band controller.

[0210] In some embodiments, after determining the content to be configured, the terminal device sends the content to be configured of the target configuration item to the out-of-band controller to instruct the out-of-band controller to configure the target configuration item based on the content to be configured.

[0211] Exemplarily, the terminal device sends the JSON file 5 to the out-of-band controller, so as to send the to-be-configured content of the target configuration item to the out-of-band controller.

[0212] In other embodiments, the terminal device may also send the content to be configured of the target configuration item to multiple out-of-band controllers of multiple servers, and after the multiple out-of-band controllers receive the content to be configured of the target configuration item, they respectively perform steps S604-S610. In this embodiment, the terminal device can modify the BIOS configuration items of multiple servers at the same time by sending the content to be configured of the target configuration to multiple out-of-band controllers of multiple servers, which helps to improve the modification efficiency.

[0213] It should be noted that multiple BIOS of multiple servers support online modification of target configuration items.

[0214] S604-S610: refer to the above S404-S410.

[0215] It should be noted that the second part of the embodiment of the present application may also include S411-S416 in the first part of the implementation of the present application, which will not be described in detail here.

[0216] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to achieve the above functions, the configuration device of the BIOS configuration item includes a hardware structure and / or software module corresponding to the execution of each function. It should be easily appreciated by those skilled in the art that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0217] The embodiment of the present application can divide the configuration device of the BIOS configuration item into functional modules according to the above method. For example, the configuration device of the BIOS configuration item can include various functional modules corresponding to the various functional divisions, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.

[0218] For example, Figure 7 A possible structural diagram of a BIOS configuration item configuration device (referred to as a BIOS configuration item configuration device 700) involved in the above embodiment is shown, and the BIOS configuration item configuration device 700 includes a processing unit 701 and a sending unit 702. The processing unit 701 is used to determine the content to be configured of the target configuration item in the BIOS configuration item; the target configuration item is a configuration item in the BIOS configuration item that supports online modification. For example, Figure 4 S404 shown, and Figure 6 S604 shown. The sending unit 702 is used to send a system management interrupt signal to the CPU if the CPU runs the operating system OS; the system management interrupt signal is used to indicate: the CPU switches from running the OS to running the BIOS; during the CPU running the BIOS, the CPU obtains the content to be configured and configures the content of the target configuration item as the content to be configured; and if the configuration of the target configuration item is completed in the CPU, the CPU resumes running the OS. For example, Figure 4 S405 shown, and Figure 6 S605 shown.

[0219] Optionally, the processing unit 701 is specifically used to: send interface configuration information to the terminal device; the interface configuration information is used for the terminal device to display a configuration interface, the configuration interface including target configuration items; receive the content to be configured of the target configuration item sent by the terminal device; the content to be configured is determined by the terminal device in response to the configuration operation of the target configuration item on the configuration interface.

[0220] Optionally, the processing unit 701 is specifically used to: send an identifier of a target configuration item to the terminal device in response to a request of the terminal device; receive content to be configured of the target configuration item sent by the terminal device; the content to be configured is determined by the terminal device based on the identifier of the target configuration item.

[0221] Optionally, the processing unit 701 is further used to: receive a configuration item set sent by the CPU; the configuration item set is a set of configuration items that the current version of BIOS supports online modification, the configuration item set includes a target configuration item, and the configuration item set is sent during the BIOS startup process.

[0222] Optionally, the processing unit 701 is further used to: receive a configuration result of a target configuration item returned by the CPU; the configuration result is used to indicate whether the target configuration item is successfully configured or failed, and the configuration result is sent during the CPU running BIOS.

[0223] Optionally, the server also includes a BIOS chip, and the BIOS chip stores the configuration content of the BIOS configuration item; optionally, the processing unit 701 is also used to: receive a get request sent by the CPU; the get request is sent by the CPU during the BIOS startup process, and the get request is used to request the content configured by the target configuration item; if the configuration result indicates that the target configuration item is successfully configured, the content to be configured is sent to the CPU; the content to be configured is used to modify the configuration content of the target configuration item in the BIOS chip to the content to be configured.

[0224] For the detailed description of the above optional methods, please refer to the above method embodiments, which will not be repeated here. In addition, the explanation of the configuration device 700 of any BIOS configuration item provided above and the description of the beneficial effects can refer to the above corresponding method embodiments, which will not be repeated here.

[0225] For example, Figure 8 A possible structural diagram of a BIOS configuration item configuration device (referred to as a BIOS configuration item configuration device 800) involved in the above embodiment is shown, and the BIOS configuration item configuration device includes a receiving unit 801 and a processing unit 802. The receiving unit 801 is used to receive a system management interrupt signal when the CPU runs an operating system OS. For example, Figure 4 S406 shown, and Figure 6S606 shown. Processing unit 802 is used to perform the following operations based on the system management interrupt signal: control the CPU to switch from running OS to running BIOS; during the CPU running BIOS, control the CPU to obtain the content to be configured of the target configuration item from the out-of-band controller, and control the CPU to configure the content of the target configuration item as the content to be configured; the target configuration item is a configuration item in the BIOS configuration item that supports online modification; if the BIOS in the CPU completes the configuration of the target configuration item, control the CPU to resume running OS. For example, Figure 4 S407-S410 shown, and Figure 6 S607-S610 shown.

[0226] Optionally, during the BIOS startup process, the processing unit 802 is further used to: control the CPU to send a configuration item set to the out-of-band controller; the configuration item set is a set of configuration items that the current version of BIOS supports online modification, and the configuration item set includes the target configuration item.

[0227] Optionally, when the CPU runs the BIOS, the processing unit 802 is further used to: control the CPU to send a configuration result of the target configuration item to the out-of-band controller; the configuration result is used to indicate whether the target configuration item is successfully configured or failed.

[0228] Optionally, the server also includes a BIOS chip, in which BIOS configuration items are stored; during the BIOS startup process, the processing unit 802 is also used to: control the CPU to send an acquisition request to the out-of-band controller; wherein the acquisition request is used to request the content configured by the target configuration item; control the CPU to receive the content to be configured returned by the out-of-band controller; and control the CPU to modify the configuration content of the target configuration item in the BIOS chip to the content to be configured.

[0229] For the specific description of the above optional methods, please refer to the above method embodiments, which will not be repeated here. In addition, the explanation of the configuration device 800 of any BIOS configuration item provided above and the description of the beneficial effects can refer to the above corresponding method embodiments, which will not be repeated here.

[0230] The embodiment of the present application also provides a computer device, which includes a processor and a memory, the processor is connected to the memory, the memory stores a computer execution instruction, and the processor implements the data processing method in the above embodiment when executing the computer execution instruction. The embodiment of the present application does not impose any restrictions on the specific form of the computer device. For example, the computer device can be a terminal device or a network device. Among them, the terminal device can be called: terminal, user equipment (user equipment, UE), terminal equipment, access terminal, user unit, user station, mobile station, remote station, remote terminal, mobile device, user terminal, wireless communication device, user agent or user device, etc. The terminal device can be a mobile phone, augmented reality (augmented reality, AR) device, virtual reality (virtual reality, VR) device, tablet computer, laptop computer, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook, personal digital assistant (personal digital assistant, PDA), etc. The network device can be a server, etc. Among them, the server can be a physical or logical server, or it can be two or more physical or logical servers that share different responsibilities and cooperate with each other to realize the functions of the server.

[0231] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed on a computer, the computer is enabled to execute any of the methods executed by the computer devices provided above.

[0232] For the explanation of the relevant contents and description of the beneficial effects of any of the above-mentioned computer-readable storage media, reference may be made to the above-mentioned corresponding embodiments, which will not be repeated here.

[0233] The embodiment of the present application also provides a chip. The chip integrates a control circuit and one or more ports for realizing the functions of the above-mentioned computer device. Optionally, the functions supported by the chip can be referred to above and will not be repeated here. A person of ordinary skill in the art can understand that all or part of the steps of implementing the above-mentioned embodiment can be completed by instructing the relevant hardware through a program. The program can be stored in a computer-readable storage medium. The storage medium mentioned above can be a read-only memory, a random access memory, etc. The above-mentioned processing unit or processor can be a central processing unit, a general-purpose processor, an application specific integrated circuit (ASIC), a microprocessor (digital signal processor, DSP), a field programmable gate array (field programmable gatearray, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof.

[0234] The embodiment of the present application also provides a computer program product including instructions, when the instructions are run on a computer, the computer executes any one of the methods in the above embodiments. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a server, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means to another website site, computer, server, or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more servers that can be integrated with the medium. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., an SSD), etc.

[0235] It should be noted that the above-mentioned devices for storing computer instructions or computer programs provided in the embodiments of the present application, such as but not limited to the above-mentioned memories, computer-readable storage media and communication chips, etc., are all non-transitory.

[0236] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loading and executing computer program instructions on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. Computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, data center, etc. that contains one or more servers that can be integrated with a medium. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)).

[0237] Although the present application is described herein in conjunction with various embodiments, in the process of implementing the claimed application, those skilled in the art may understand and implement other changes to the disclosed embodiments by viewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "one" or "an" does not exclude multiple situations. A single processor or other unit may implement several functions listed in the claims. Certain measures are recorded in different dependent claims, but this does not mean that these measures cannot be combined to produce good results.

[0238] Although the present application has been described in conjunction with specific features and embodiments thereof, it is obvious that various modifications and combinations may be made thereto without departing from the spirit and scope of the present application. Accordingly, this specification and the drawings are merely exemplary illustrations of the present application as defined by the appended claims, and are deemed to have covered any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, those skilled in the art may make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for configuring a basic input / output system BIOS configuration item, characterized in that: Used for a server, the server comprising a central processing unit (CPU) and an out-of-band controller, the method being executed by the out-of-band controller; the method comprising: Determine the content to be configured of a target configuration item in the BIOS configuration item; the target configuration item is a configuration item in the BIOS configuration item that supports online modification; In response to determining the content to be configured of the target configuration item, if the CPU runs an operating system OS, sending a system management interrupt signal to the CPU; The system management interrupt signal is used to instruct the CPU to switch from running the OS to running the BIOS; thereby, during the running of the BIOS, the CPU obtains the content to be configured and configures the content of the target configuration item as the content to be configured; and if the CPU completes the configuration of the target configuration item, the CPU resumes running the OS, so that the server runs based on the content to be configured of the target configuration item.

2. The method according to claim 1, characterized in that The determining the to-be-configured content of the target configuration item in the BIOS configuration item includes: Sending interface configuration information to a terminal device; the interface configuration information is used for the terminal device to display a configuration interface, the configuration interface including the target configuration item; The content to be configured of the target configuration item sent by the terminal device is received; the content to be configured is determined by the terminal device in response to a configuration operation on the target configuration item on the configuration interface.

3. The method according to claim 1, characterized in that The determining the to-be-configured content of the target configuration item in the BIOS configuration item includes: In response to a request from a terminal device, sending an identifier of the target configuration item to the terminal device; The content to be configured of the target configuration sent by the terminal device is received; the content to be configured is determined by the terminal device based on the identifier of the target configuration item.

4. The method according to any one of claims 1 to 3, characterized in that The method further comprises: Receive a configuration item set sent by the CPU; the configuration item set is a set of configuration items that the current version of the BIOS supports online modification, the configuration item set includes the target configuration item, and the configuration item set is sent during the BIOS startup process.

5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: A configuration result of the target configuration item returned by the CPU is received; the configuration result is used to indicate whether the configuration of the target configuration item is successful or failed, and the configuration result is sent during the process of the CPU running the BIOS.

6. The method according to claim 5, characterized in that The server further includes a BIOS chip, wherein the BIOS chip stores configuration content of the BIOS configuration item; and the method further includes: receiving an acquisition request sent by the CPU; the acquisition request is sent during the BIOS startup process, and the acquisition request is used to request the content configured by the target configuration item; If the configuration result indicates that the target configuration item is successfully configured, the content to be configured is sent to the CPU; the content to be configured is used to modify the configuration content of the target configuration item in the BIOS chip to the content to be configured.

7. A method for configuring a basic input / output system BIOS configuration item, characterized in that: Used for a server, the server comprising a central processing unit (CPU) and an out-of-band controller, the method being executed by the CPU; the method comprising: If the CPU runs an operating system OS, the CPU receives a system management interrupt signal, and performs the following operations based on the system management interrupt signal: the system management interrupt signal is sent by the out-of-band control after determining the to-be-configured content of the target configuration item in the BIOS configuration item; The CPU switches from running the OS to running the BIOS; During the process of the CPU running the BIOS, the CPU obtains the to-be-configured content of the target configuration item from the out-of-band controller, and configures the content of the target configuration item as the to-be-configured content; the target configuration item is a configuration item in the BIOS configuration item that supports online modification; If the CPU completes the configuration of the target configuration item, the CPU resumes running the OS, so that the server runs based on the content to be configured of the target configuration item.

8. The method according to claim 7, characterized in that During the BIOS startup process, the method further includes: The CPU sends a configuration item set to the out-of-band controller; the configuration item set is a set of configuration items that the current version of the BIOS supports online modification, and the configuration item set includes the target configuration item.

9. The method according to claim 7 or 8, characterized in that: During the process in which the CPU runs the BIOS, the method further includes: The CPU sends a configuration result of the target configuration item to the out-of-band controller; the configuration result is used to indicate whether the configuration of the target configuration item is successful or failed.

10. The method according to claim 9, characterized in that The server further includes a BIOS chip, in which the configuration content of the BIOS configuration item is stored; during the BIOS startup process, the method further includes: The CPU sends an acquisition request to the out-of-band controller; wherein the acquisition request is used to request the content configured by the target configuration item; The CPU receives the content to be configured returned by the out-of-band controller; The CPU modifies the configuration content of the target configuration item in the BIOS chip to the content to be configured.

11. A server, characterized in that: include: processor; The processor is connected to a memory, the memory is used to store computer-executable instructions, and the processor executes the computer-executable instructions stored in the memory to enable the computer device to implement the method according to any one of claims 1 to 6, or the method according to any one of claims 7 to 10.

12. A configuration system for basic input and output system BIOS configuration items, characterized in that: include: A central processing unit (CPU) and an out-of-band controller, wherein the CPU is connected to the out-of-band controller; The out-of-band controller is used to execute the method as described in any one of claims 1-6, and the CPU is used to execute the method as described in any one of claims 7-10.