Server restart test optimization method, system, terminal and storage medium
By using the BMC to determine and control the pin status, the problem of AMD Milan series servers getting stuck on the PSP interface during the restart process is resolved, enabling the server to smoothly enter the BIOS system and ensuring normal system startup.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-31
- Publication Date
- 2026-03-03
AI Technical Summary
AMD Milan series servers experienced a PSP (Power Supply Buffer) issue during continuous power cycle testing, preventing access to the BIOS system interface.
By using the BMC to determine the potential signal status of the target pin and the communication status of the BIOS, it can determine whether the server restart is stuck at the CPU initialization interface, and control the system to skip the CPU initialization interface by repeatedly training the target pin or switching the BIOS running state.
It effectively solves the problem of the server getting stuck on the PSP screen during the restart process, ensuring that the server can smoothly enter the BIOS system. The design principle is reliable, the structure is simple, and it has broad application prospects.
Smart Images

Figure CN114816886B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of AMD X86 server technology, specifically relating to a server restart test optimization method, system, terminal, and storage medium. Background Technology
[0002] While current AMD x86 CPUs outperform Intel servers in terms of performance, their ecosystem compatibility may require market and time to mature. For AMD Milan series servers, some issues have arisen during simulated extreme environments, specifically getting stuck at the PSP (CPU initialization screen) during continuous power cycle tests, preventing access to the BIOS system interface. Summary of the Invention
[0003] In view of the above-mentioned shortcomings of the prior art, the present invention provides a server restart test optimization method, system, terminal and storage medium to solve the above-mentioned technical problems.
[0004] In a first aspect, the present invention provides a server restart test optimization method, comprising:
[0005] The BMC determines whether the server restart is stuck at the CPU initialization screen based on the potential signal status of the target pin or the communication status with the BIOS.
[0006] If the server restart is stuck at the CPU initialization screen, the system can skip the CPU initialization screen by repeatedly training the target pin or switching the BIOS running state.
[0007] Furthermore, the BMC determines whether the server restart is stuck at the CPU initialization screen based on the potential signal status of the target pin or the communication status with the BIOS, including:
[0008] The BMC determines whether the potential signals of the reset pin, enable pin, and always pin that control the startup of the PCIe device are all in a normal state: if not, it determines that the server restart is stuck at the CPU initialization screen.
[0009] The BMC records the power-on time and determines whether there is any communication with the BIOS before the specified period of power-on time. If not, it determines that the server restart is stuck at the CPU initialization screen.
[0010] Furthermore, if the server restart is stuck at the CPU initialization screen, the system can skip the CPU initialization screen by repeatedly training the target pin or switching the BIOS operating state, including:
[0011] BMC trains the potential state of the target pin multiple times until the set number of times is reached;
[0012] If the system is still stuck at the CPU initialization screen, disable the BIOS processes that affect the BIOS firmware startup so that the BIOS can keep the minimum system running, and undisable the settings after skipping the CPU initialization screen.
[0013] Secondly, the present invention provides a server restart test optimization system, comprising:
[0014] An anomaly detection unit is used by the BMC to determine whether the server restart is stuck on the CPU initialization screen based on the potential signal status of the target pin or the communication status with the BIOS.
[0015] An exception handling unit is used to control the system to skip the CPU initialization interface by repeatedly training the target pin or switching the BIOS running state if the server restarts and gets stuck at the CPU initialization interface.
[0016] Furthermore, the anomaly detection unit includes:
[0017] The first detection module is used by the BMC to determine whether the potential signals of the reset pin, enable pin, and always pin that control the startup of the PCIe device are all in a normal state: if not, it is determined that the server restart is stuck on the CPU initialization interface.
[0018] The second detection module is used by the BMC to record the power-on time and determine whether there is communication transmission with the BIOS before the specified period of power-on time: if not, it is determined that the server restart is stuck on the CPU initialization interface.
[0019] Furthermore, the exception handling unit includes:
[0020] The first processing module is used to train the potential state of the target pin multiple times by the BMC until the set number of times is reached;
[0021] The second processing module is used to disable BIOS processes that affect BIOS firmware startup if the system is still stuck on the CPU initialization screen, so that the BIOS can keep the minimum system running, and to remove the disable settings after skipping the CPU initialization screen.
[0022] Thirdly, a terminal is provided, including:
[0023] Processor, memory, among which,
[0024] This memory is used to store computer programs.
[0025] The processor is used to retrieve and run the computer program from memory, causing the terminal to perform the terminal method described above.
[0026] Fourthly, a computer storage medium is provided, wherein instructions are stored therein, which, when executed on a computer, cause the computer to perform the methods described in the above aspects.
[0027] The beneficial effects of this invention are that the server restart test optimization method, system, terminal, and storage medium provided by this invention utilize the server firmware BMC, which acts as the server monitoring software. When stuck on the PSP screen, the BMC can communicate with the hardware to obtain some hardware potential information, and simultaneously communicate with the BIOS system via command protocol for judgment. The BMC determines whether the server is stuck on the PSP screen during startup by interacting with the BIOS software and hardware. Furthermore, the BMC can interact with the BIOS system via command protocol to assist in bypassing the PSP screen and entering the BIOS system. If it cannot enter the BIOS system interface, the BMC can also control the hardware to avoid the PSP screen stuck problem.
[0028] Furthermore, the design principle of this invention is reliable, the structure is simple, and it has a very wide range of application prospects. Attached Figure Description
[0029] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0030] Figure 1 This is a schematic flowchart of a method according to an embodiment of the present invention.
[0031] Figure 2 This is another illustrative flowchart of a method according to an embodiment of the present invention.
[0032] Figure 3 This is a schematic block diagram of a system according to an embodiment of the present invention.
[0033] Figure 4 This is a schematic diagram of the structure of a terminal provided in an embodiment of the present invention. Detailed Implementation
[0034] To enable those skilled in the art to better understand the technical solutions of this invention, the technical solutions of the embodiments of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this invention.
[0035] Figure 1 This is a schematic flowchart illustrating a method according to an embodiment of the present invention. Wherein, Figure 1 The executing entity can be a server restart test optimization system.
[0036] like Figure 1 As shown, the method includes:
[0037] Step 110: The BMC determines whether the server restart is stuck at the CPU initialization screen based on the potential signal status of the target pin or the communication status with the BIOS.
[0038] Step 120: If the server restart is stuck at the CPU initialization interface, the system can skip the CPU initialization interface by repeatedly training the target pin or switching the BIOS running state.
[0039] To facilitate understanding of the present invention, the following description further illustrates the server restart test optimization method provided by the present invention, based on the principle of the server restart test optimization method and the process of optimizing the server restart test in the embodiments.
[0040] AMD MILAN CPU servers sometimes experience PSP freezing during reboot. The server firmware's BMC (Browser Control Center) uses the power reset, power enable, and clock pins to detect PSP freezing. However, this single signal is insufficient to determine if the screen is stuck. The server firmware BMC uses another channel to determine the power-on status. The BMC checks the power-on duration and whether the BIOS communicates with the firmware within a given timeframe to confirm if the screen is frozen.
[0041] The AMD server was found to be experiencing a PSP freezing issue, requiring the firmware BMC to assist in resolving this. First, the firmware BMC attempted to repeatedly train several voltage signals (power reset, power enable, clock) to try and recover the hardware driver stuck on the PSP interface and unable to enter the BIOS system. After multiple recovery attempts, if successful, the process continued without further action; otherwise, an alternative approach was adopted. The firmware BMC used command protocols to disable processes affecting the BIOS boot process, maintaining only a minimal system. If access to the BIOS was restored, the firmware BMC needed to remove the restrictions on the BIOS.
[0042] For details, please refer to Figure 2 The server restart test optimization method includes:
[0043] S1 and BMC determine whether the server restart is stuck on the CPU initialization screen based on the potential signal status of the target pin or the communication status with the BIOS.
[0044] The BMC checks whether the potential signals of the reset pin, enable pin, and always pin that control the startup of the PCIe device are all in a normal state: if not, it determines that the server restart is stuck at the CPU initialization interface; the BMC records the power-on time and determines whether there is communication transmission with the BIOS before the specified period of power-on time: if not, it determines that the server restart is stuck at the CPU initialization interface.
[0045] Specifically, a reboot operation is performed on the AMD CPU server in extreme environments; during the server power-on process, the firmware BMC enables monitoring mode;
[0046] Anomaly detection involves checking for abnormalities in the three power reset / power enable / clock signals when the PCIe device is started, i.e., whether the three power signals are normal. The BMC determines this by measuring the power-on time and checking whether the firmware BIOS communicates with the BMC within the valid time.
[0047] The problem of being stuck on the PSP screen can be determined by using two methods.
[0048] S2. If the server restart is stuck on the CPU initialization screen, the system can skip the CPU initialization screen by repeatedly training the target pin or switching the BIOS running state.
[0049] The BMC repeatedly trains the potential state of the target pin until the set number of times is reached; if the system is still stuck on the CPU initialization screen, it disables the BIOS process that affects the BIOS firmware startup so that the BIOS can keep the minimum system running, and then undisables the setting after skipping the CPU initialization screen.
[0050] Specifically, if the system is determined to be stuck on the PSP screen, the repair process begins. First, several potential signals are trained multiple times to attempt to restore the hardware drivers that are stuck on the PSP screen and unable to enter the BIOS system interface. If this still fails, the system will be rescued by using the firmware BMC via command protocol to disable the BIOS processes that affect the firmware BIOS startup, preserving only the minimum system operation, i.e., maintaining the basic BIOS startup mode. When the system enters the interface, the remaining initialization settings will be released. If the repair is successful, the system will enter the BIOS system interface; otherwise, the above steps will be repeated.
[0051] like Figure 3 As shown, the system 300 includes:
[0052] The anomaly detection unit 310 is used by the BMC to determine whether the server restart is stuck on the CPU initialization screen based on the potential signal status of the target pin or the communication status with the BIOS.
[0053] The exception handling unit 320 is used to control the system to skip the CPU initialization interface by repeatedly training the target pin or switching the BIOS running state if the server restart is stuck on the CPU initialization interface.
[0054] Optionally, as an embodiment of the present invention, the anomaly detection unit includes:
[0055] The first detection module is used by the BMC to determine whether the potential signals of the reset pin, enable pin, and always pin that control the startup of the PCIe device are all in a normal state: if not, it is determined that the server restart is stuck on the CPU initialization interface.
[0056] The second detection module is used by the BMC to record the power-on time and determine whether there is communication transmission with the BIOS before the specified period of power-on time: if not, it is determined that the server restart is stuck on the CPU initialization interface.
[0057] Optionally, as an embodiment of the present invention, the exception handling unit includes:
[0058] The first processing module is used to train the potential state of the target pin multiple times by the BMC until the set number of times is reached;
[0059] The second processing module is used to disable BIOS processes that affect BIOS firmware startup if the system is still stuck on the CPU initialization screen, so that the BIOS can keep the minimum system running, and to remove the disable settings after skipping the CPU initialization screen.
[0060] Figure 4 This is a schematic diagram of the structure of a terminal 400 provided in an embodiment of the present invention. The terminal 400 can be used to execute the server restart test optimization method provided in an embodiment of the present invention.
[0061] The terminal 400 may include a processor 410, a memory 420, and a communication unit 330. These components communicate via one or more buses. Those skilled in the art will understand that the server structure shown in the figure does not constitute a limitation of the present invention. It may be a bus topology or a star topology, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0062] The memory 420 can be used to store the execution instructions of the processor 410. The memory 420 can be implemented by any type of volatile or non-volatile memory terminal or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk. When the execution instructions in the memory 420 are executed by the processor 410, the terminal 400 is able to perform some or all of the steps in the above method embodiments.
[0063] The processor 410 serves as the control center of the storage terminal, connecting various parts of the electronic terminal via various interfaces and lines. It executes software programs and / or modules stored in the memory 420, and calls data stored in the memory to perform various functions of the electronic terminal and / or process data. The processor can be composed of integrated circuits (ICs), such as a single packaged IC or multiple packaged ICs with the same or different functions connected together. For example, the processor 410 may consist only of a central processing unit (CPU). In this embodiment of the invention, the CPU may have a single processing core or include multiple processing cores.
[0064] The communication unit 330 is used to establish a communication channel, enabling the storage terminal to communicate with other terminals. It can receive user data sent by other terminals or send user data to other terminals.
[0065] The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, which, when executed, may include some or all of the steps provided in the embodiments of the present invention. The storage medium may be a magnetic disk, an optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0066] Therefore, this invention utilizes the server firmware BMC as the server monitoring software. When stuck on the PSP, the BMC can communicate with the hardware to obtain potential information and simultaneously communicate with the BIOS system via command protocols for judgment. The BMC determines whether the server is stuck on the PSP screen during startup by interacting with the BIOS software and hardware. Furthermore, the BMC can interact with the BIOS system via command protocols to assist in bypassing the PSP screen and entering the BIOS system. If entry into the BIOS system is impossible, the BMC can also control the hardware to prevent the PSP screen from getting stuck. The technical effects achieved in this embodiment can be found in the description above and will not be repeated here.
[0067] Those skilled in the art will clearly understand that the techniques in the embodiments of the present invention can be implemented using software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solutions in the embodiments of the present invention, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, or any other medium capable of storing program code. It includes several instructions to cause a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.
[0068] The same or similar parts between the various embodiments in this specification can be referred to mutually. In particular, the terminal embodiments are basically similar to the method embodiments, so the description is relatively simple, and the relevant parts can be referred to the description in the method embodiments.
[0069] In the embodiments provided by this invention, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between systems or units may be electrical, mechanical, or other forms.
[0070] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0071] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0072] Although the present invention has been described in detail with reference to the accompanying drawings and preferred embodiments, the invention is not limited thereto. Various equivalent modifications or substitutions can be made to the embodiments of the invention by those skilled in the art without departing from the spirit and essence of the invention, and such modifications or substitutions should all be within the scope of the invention. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the invention should also be covered within the protection scope of the invention. Therefore, the protection scope of the invention should be determined by the scope of the claims.
Claims
1. A method for server restart test optimization, the method comprising: The method comprises the following steps: The BMC determines whether the server restart is stuck in the CPU initialization interface based on the potential signal state of the target pin or the communication state with the BIOS; If the server restart is stuck in the CPU initialization interface, the system skips the CPU initialization interface by repeatedly training the target pin or switching the BIOS running state control system; The method comprises the following steps: The BMC determines whether the potential signals of the reset pin, the enable pin and the always-on pin controlled by the PCIE device are in normal states: if not, it is determined that the server restart is stuck in the CPU initialization interface; The BMC records the power-on time and determines whether there is communication transmission with the BIOS before the power-on time reaches the specified deadline: if not, it is determined that the server restart is stuck in the CPU initialization interface; If the server restart is stuck in the CPU initialization interface, the system skips the CPU initialization interface by repeatedly training the target pin or switching the BIOS running state control system, which comprises the following steps: The BMC trains the potential state of the target pin for multiple times until a set number of times is reached; If the system is still stuck in the CPU initialization interface, the BIOS process affecting the BIOS firmware startup is disabled to enable the BIOS to run the minimum system, and the disabled setting is released after skipping the CPU initialization interface.
2. A server restart test optimization system, comprising: The method comprises the following steps: An exception detection unit is configured to determine whether the server restart is stuck in the CPU initialization interface based on the potential signal state of the target pin or the communication state with the BIOS; An exception processing unit is configured to skip the CPU initialization interface by repeatedly training the target pin or switching the BIOS running state control system if the server restart is stuck in the CPU initialization interface; The exception detection unit comprises the following steps: A first detection module is configured to determine whether the potential signals of the reset pin, the enable pin and the always-on pin controlled by the PCIE device are in normal states: if not, it is determined that the server restart is stuck in the CPU initialization interface; A second detection module is configured to record the power-on time and determine whether there is communication transmission with the BIOS before the power-on time reaches the specified deadline: if not, it is determined that the server restart is stuck in the CPU initialization interface; The exception processing unit comprises the following steps: A first processing module is configured to train the potential state of the target pin for multiple times until a set number of times is reached; A second processing module is configured to disable the BIOS process affecting the BIOS firmware startup if the system is still stuck in the CPU initialization interface to enable the BIOS to run the minimum system, and the disabled setting is released after skipping the CPU initialization interface.
3. A terminal, characterized by comprising: The method comprises the following steps: A processor; A memory for storing the execution instructions of the processor; The processor is configured to execute the method of claim 1.
4. A computer-readable storage medium storing a computer program, characterized in that, The program is executed by the processor to implement the method of claim 1.
Citation Information
Patent Citations
Server hardware failure detection method, apparatus of server, and server
CN106598790A
Starting processing method and related product
CN108920195A