A testing method, system, device and storage medium for BIOS EDPC function

By obtaining and simulating PCIE device information under the AMD platform and verifying the EDPC function of the BIOS, the cost and interruption problems in the event of failure of extrapolated PCIE devices are solved, ensuring the normal operation of the device functions, and improving the server's performance and user experience.

CN115437868BActive Publication Date: 2025-07-22INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211170799.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-23
Publication Date
2025-07-22
Estimated Expiration
2042-09-23

AI Technical Summary

Technical Problem

In the prior art, when dealing with faults of extrapolated PCIE equipment, it is necessary to power outage and replace the equipment, resulting in increased costs and interruption of server operation, and it is impossible to effectively ensure the normal operation of PXE functions, data transmission and protocol functions.

Method used

By obtaining PCIE device information under the AMD platform, simulating faults and repairing faults, verifying whether the BIOS supports EDPC function, and ensuring that the device function is restored under normal operation of the server.

Benefits of technology

It realizes the recovery of the PXE function, data transmission and protocol functions of PCIE devices under normal operation, saving device replacement costs and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115437868B_ABST
    Figure CN115437868B_ABST
Patent Text Reader

Abstract

A test method, system, device and storage medium for the BIOS EDPC function proposed by the present invention. The method includes: under the AMD platform, remove all externally plugged PCIE devices, obtain PCIE device information, and record it as X; insert an externally plugged PCIE device, obtain PCIE device information, and record it as Y; compare X with Y, and take the different part as the NBIO information of the externally plugged PCIE device, and record it as parameter Z; use the AMD platform debugging tool, in combination with a preset script, input parameter Z into the first simulated error injection command to simulate the failure of the externally plugged PCIE device; when the externally plugged PCIE device has successfully failed, input parameter Z into the second simulated error injection command to repair the failure of the externally plugged PCIE device; confirm whether the BIOS supports the EDPC function by viewing the output information. The present invention realizes the ability to recover the PCIE device when the server is running normally, so as to ensure the normal functions of the PXE function, data transmission, protocol, etc. of this device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and more particularly to a test method, system, device and storage medium for the BIOS EDPC function. Background Art

[0002] EDPC, full name Enhanced Downstream Port Containment, will trigger the EDPC mechanism function only when errors such as error occur, directly disable the link, and restore the link after the trigger state is cleared.

[0003] With the rapid development of computer technology, servers have gradually become high-performance computers in the network platform. With the wide application and continuous development of scientific and technological progress, there is an increasing demand for the performance upgrade of servers. PCIE devices are used for data input and output of servers, and the quality of PCIE devices will directly affect the integrity of data transmission for customers.

[0004] Currently, when an external device fails, the main processing methods include:

[0005] 1. By replacing the failed device with a new device of the same model, the server can be restarted, and then functions such as PXE function, data transmission, and protocols can be obtained again.

[0006] 2. By disabling the use of this external device in the BIOS menu, this device cannot be viewed under the OS and web, and then functions such as PXE function, data transmission, and protocols cannot be used one after another.

[0007] Since most customers will insert multiple external devices to save costs when using servers, and when an external device fails, the system will report a large number of device failure information logs, which will seriously affect the operation of the server. If the existing processing methods are used for fault handling, it is necessary to power off and replace the faulty device, which seriously affects the customer experience. At the same time, the faulty device can only be replaced with a new device of the same model, resulting in the idleness of the faulty device and increased costs. At this time, if the BIOS has the EDPC function, it can well recover the faulty device without shutting down the computer to ensure that the functions of this device (such as PXE function, data transmission, and protocols) are still normal.

[0008] Therefore, it is an urgent problem for us to effectively test and verify the EDPC function of the BIOS. Summary of the Invention

[0009] In view of the above problems, the purpose of the present invention is to provide a test method, system, device and storage medium for the BIOS EDPC function, which realizes the recovery of PCIE devices when the server is running normally, so as to ensure the normal functions of the PXE function, data transmission, protocol, etc. of this device.

[0010] To achieve the above object, the present invention is realized through the following technical solutions: A test method for the BIOS EDPC function includes:

[0011] Under the AMD platform, remove all externally plugged PCIE devices, obtain PCIE device information, and record it as X;

[0012] Insert the externally plugged PCIE device, obtain PCIE device information, and record it as Y;

[0013] Compare X with Y, take the different parts as the NBIO information of the externally plugged PCIE device, and record it as parameter Z; confirm that the current operating system supports the BERT function;

[0014] Confirm that the externally plugged PCIE device supports the ACS function;

[0015] Under BIOS SETUP, modify the EDPC-related function options, save and restart, and enter the operating system interface;

[0016] Use the AMD platform debugging tool, in combination with a preset script, input parameter Z into the first simulated error injection command to simulate the failure of the externally plugged PCIE device;

[0017] When the externally plugged PCIE device has successfully failed, input parameter Z into the second simulated error injection command to repair the failure of the externally plugged PCIE device;

[0018] Check the output information to confirm whether the BIOS supports the EDPC function.

[0019] Furthermore, the obtaining of the PCIE device information includes:

[0020] Under the operating system, execute the AMD platform command to output the PCIE device information.

[0021] Furthermore, the PCIE device information includes:

[0022] socket information, PCIE core information, PCIE port information and NBIO information.

[0023] Furthermore, the confirmation that the current operating system supports the BERT function includes:

[0024] Read the BIOS serial port information and determine whether the current operating system supports the BERT function;

[0025] If not supported, install the BERT component under the current operating system.

[0026] Furthermore, the confirmation that the externally plugged PCIE device supports the ACS function includes:

[0027] Read the BIOS serial port information and determine whether the ACS function of the BIOS is enabled;

[0028] If not enabled, replace the externally plugged PCIE device.

[0029] Furthermore, the use of the AMD platform debugging tool, in combination with a preset script, to input the parameter Z into the first simulated error injection command to simulate a failure of the externally plugged PCIE device includes:

[0030] Use the AMD platform debugging tool AMD System Debugger NDA, in combination with the CScripts script, to input the parameter Z into the first simulated error injection command to simulate a failure of the externally plugged PCIE device;

[0031] If the error injection is successful, display the pass information and report the uncorrectable error log of the PCIE;

[0032] If the error injection fails, display the fail information. At this time, continue to input the parameter Z into the first simulated error injection command until the pass information is displayed.

[0033] Furthermore, the confirmation of whether the BIOS supports the EDPC function by viewing the output information includes:

[0034] If the EDPC repair information is displayed and the PCIE RECOVERY recovery log is reported, the BIOS supports the EDPC function;

[0035] If the no EDPC repair information is displayed, the BIOS does not support the EDPC function.

[0036] Correspondingly, the present invention also discloses a test system for the BIOS EDPC function, including:

[0037] The first recording unit is used to remove all externally plugged PCIE devices under the AMD platform, obtain the PCIE device information, and record it as X;

[0038] The second recording unit is used to insert the externally plugged PCIE device, obtain the PCIE device information, and record it as Y;

[0039] A comparison unit for comparing X with Y, taking the different parts as the NBIO information of the externally inserted PCIE device, and recording it as parameter Z;

[0040] A first function confirmation unit for confirming that the current operating system supports the BERT function;

[0041] A second function confirmation unit for confirming that the externally inserted PCIE device supports the ACS function;

[0042] An initialization unit for modifying the EDPC-related function options under BIOS SETUP, saving and restarting, and entering the operating system interface;

[0043] A first error injection unit for using the AMD platform debugging tool, in combination with a preset script, to input parameter Z into the first simulated error injection command to simulate a failure of the externally inserted PCIE device;

[0044] A second error injection unit for, when the externally inserted PCIE device has successfully failed, inputting parameter Z into the second simulated error injection command to repair the failure of the externally inserted PCIE device;

[0045] A determination unit for confirming whether the BIOS supports the EDPC function by viewing the output information.

[0046] Correspondingly, the present invention discloses a test device for the BIOS EDPC function, including:

[0047] A memory for storing the test program of the BIOS EDPC function;

[0048] A processor for implementing the steps of the test method for the BIOS EDPC function as described in any one of the above when executing the test program of the BIOS EDPC function.

[0049] Correspondingly, the present invention discloses a readable storage medium, on which a test program of the BIOS EDPC function is stored, and when the test program of the BIOS EDPC function is executed by a processor, the steps of the test method for the BIOS EDPC function as described in any one of the above are implemented.

[0050] Compared with the prior art, the beneficial effects of the present invention are as follows: The present invention discloses a method, system, device and storage medium for testing the BIOS EDPC function. By capturing the NBIO-related information parameters and inputting commands to the externally inserted PCIE device to simulate a fault, when the device has successfully failed, commands are input to this device again through the captured NBIO-related information parameters to recover the fault. In this way, it is verified whether the BIOS has the EDPC function. If the BIOS has this function, it will enable the recovery of the PCIE device when the server is running normally, so as to ensure the normal functions of the PXE function, data transmission and protocols of this device. The present invention can greatly save the cost brought by replacing the device, highlight the highlights of the server performance, and improve the user experience.

[0051] Therefore, compared with the prior art, the present invention has prominent substantive features and significant progress, and the beneficial effects of its implementation are also obvious. Brief Description of the Drawings

[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only the embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained according to the provided drawings without creative efforts.

[0053] Figure 1 It is a flowchart of the method of the specific implementation manner of the present invention.

[0054] Figure 2 It is a structural diagram of the system of the specific implementation manner of the present invention.

[0055] In the figure, 1 is the first recording unit; 2 is the second recording unit; 3 is the comparison unit; 4 is the first function confirmation unit; 5 is the second function confirmation unit; 6 is the initialization unit; 7 is the first error injection unit; 8 is the second error injection unit; 9 is the determination unit. Specific Embodiments

[0056] In order to enable those skilled in the art of this technology to better understand the solution of the present invention, the following will further describe the present invention in detail with reference to the drawings and specific embodiments. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0057] Embodiment 1:

[0058] Such as Figure 1As shown in the figure, this embodiment provides a test method for the BIOS EDPC function, including the following steps:

[0059] S1: Under the AMD platform, remove all externally plugged PCIE devices, obtain PCIE device information, and record it as X.

[0060] Specifically, remove all externally plugged PCIE devices, execute the AMD platform command under the current operating system to output PCIE device-related information, and record it as X.

[0061] Among them, the PCIE device-related information includes socket information, PCIE core information, PCIE port information, and NBIO information.

[0062] S2: Insert an externally plugged PCIE device, obtain PCIE device information, and record it as Y.

[0063] Specifically, insert an externally plugged PCIE device, execute the AMD platform command under the current operating system to output PCIE device-related information, and record it as Y.

[0064] S3: Compare X with Y, and take the different part as the NBIO information of the externally plugged PCIE device, and record it as parameter Z.

[0065] S4: Confirm that the current operating system supports the BERT function.

[0066] Among them, the BERT function is a table plugin under the OS. For low-version OS, this plugin is not available and needs to be installed separately; for high-version OS, this plugin will be automatically installed during the installation process. Therefore, in this method, it is necessary to first confirm whether this plugin exists, otherwise the next function verification cannot be carried out.

[0067] Specifically: Judge whether the current operating system supports the BERT function by reading the BIOS serial port information. If it supports, continue to execute the next step. If it does not support, install the BERT component under the current operating system, and continue to judge whether the current operating system supports the BERT function.

[0068] S5: Confirm that the externally plugged PCIE device supports the ACS function.

[0069] Specifically, judge whether the ACS function of the BIOS is enabled by reading the BIOS serial port information. If it is enabled, continue to execute the next step. If it is not enabled, replace the externally plugged PCIE device, and continue to judge whether the ACS function of the BIOS is enabled.

[0070] It should be noted specifically that: The ACS function, whose full name is Access Control Service, is supported by some devices in the external plug-in devices.

[0071] S6: Modify the EDPC-related function options under BIOS SETUP, save and restart, and enter the operating system interface.

[0072] S7: Use the AMD platform debugging tool, in combination with the preset script, input the parameter Z into the first simulated error injection command to simulate the failure of the external plug-in PCIE device.

[0073] Use the AMD platform debugging tool AMD System Debugger NDA, in combination with the CScripts script, input the parameter Z into the first simulated error injection command. At this time, the serial port will continuously print information. If the error injection is successful, the "pass" information will be displayed. At the same time, the system information module will report the "PCIE uncorrectable error log", and the data transmission link under the operating system will be interrupted and unable to output continuously normally; if the error injection fails, the "fail" information will be displayed. At this time, it is necessary to continuously inject errors until the "pass" information is displayed.

[0074] S8: When the external plug-in PCIE device has failed successfully, input the parameter Z into the second simulated error injection command to repair the failure of the external plug-in PCIE device.

[0075] S9: Check the output information to confirm whether the BIOS supports the EDPC function.

[0076] When the external plug-in PCIE device has failed successfully, after inputting the parameter Z into the second simulated error injection command 2, the serial port will continuously print output information. If the device repair is successful, the "EDPC repair" information will be displayed. At the same time, the system information module will report the "PCIE RECOVERY recovery log", and the data transmission link under the operating system will be reconnected and the data will be output continuously normally. At this time, it indicates that the BIOS supports the EDPC function, that is, the EDPC function verification is completed; if the device repair fails, the "no EDPCrepair" information will be displayed, indicating that the BIOS does not support the EDPC function, that is, the EDPC function verification is completed.

[0077] This embodiment provides a test method for the BIOS EDPC function. By capturing the NBIO-related information parameters, commands are input to the externally plugged PCIE device to simulate a fault. When the device has successfully failed, commands are input to this device again through the captured NBIO-related information parameters to recover the fault. In this way, it is verified whether the BIOS has the EDPC function. If the BIOS has this function, it will enable the recovery of the PCIE device when the server is running normally, so as to ensure the normal operation of functions such as the PXE function, data transmission, and protocols of this device. This method can greatly save the cost of device replacement, highlight the highlights of server performance, and improve the user experience.

[0078] Embodiment 2:

[0079] Based on Embodiment 1, as Figure 2 shown, the present invention also discloses a test system for the BIOS EDPC function, including: a first recording unit 1, a second recording unit 2, a comparison unit 3, a first function confirmation unit 4, a second function confirmation unit 5, an initialization unit 6, a first error injection unit 7, a second error injection unit 8, and a determination unit 9.

[0080] The first recording unit 1 is used to remove all externally plugged PCIE devices under the AMD platform, obtain the PCIE device information, and record it as X.

[0081] The first recording unit 1 is specifically used for: removing all externally plugged PCIE devices, executing AMD platform commands under the current operating system to output the PCIE device-related information, and recording it as X.

[0082] The second recording unit 2 is used to insert an externally plugged PCIE device, obtain the PCIE device information, and record it as Y.

[0083] The second recording unit 2 is specifically used for: inserting an externally plugged PCIE device, executing AMD platform commands under the current operating system to output the PCIE device-related information, and recording it as Y.

[0084] The comparison unit 3 is used to compare X with Y, and take the different part as the NBIO information of the externally plugged PCIE device, and record it as parameter Z.

[0085] The first function confirmation unit 4 is used to confirm that the current operating system supports the BERT function.

[0086] The first function confirmation unit 4 is specifically used for: judging whether the current operating system supports the BERT function by reading the BIOS serial port information. If it does not support, install the BERT component under the current operating system, and continue to judge whether the current operating system supports the BERT function until it is confirmed that the current operating system supports the BERT function.

[0087] The second function confirmation unit 5 is used to confirm that the externally inserted PCIE device supports the ACS function.

[0088] Specifically, the second function confirmation unit 5 is used to: determine whether the ACS function of the BIOS is enabled by reading the BIOS serial port information. If it is not enabled, replace the externally inserted PCIE device and continue to determine whether the ACS function of the BIOS is enabled until it is confirmed that the externally inserted PCIE device supports the ACS function.

[0089] The initialization unit 6 is used to modify the EDPC-related function options under BIOS SETUP, save and restart, and enter the operating system interface.

[0090] The first error injection unit 7 is used to input the parameter Z into the first simulated error injection command using the AMD platform debugging tool in combination with a preset script to simulate the failure of the externally inserted PCIE device.

[0091] Specifically, the first error injection unit 7 is used to: use the AMD platform debugging tool AMD System Debugger NDA in combination with the CScripts script to input the parameter Z into the first simulated error injection command. At this time, the serial port will continuously print information. If the error injection is successful, the "pass" information will be displayed, and at the same time, the system information module will report the "PCIE uncorrectable error log", and the data transmission link under the operating system will be interrupted and cannot output continuously normally; if the error injection fails, the "fail" information will be displayed, and at this time, errors need to be continuously injected until the "pass" information is displayed.

[0092] The second error injection unit 8 is used to input the parameter Z into the second simulated error injection command to repair the failure of the externally inserted PCIE device when the externally inserted PCIE device has successfully failed.

[0093] The determination unit 9 is used to confirm whether the BIOS supports the EDPC function by viewing the output information.

[0094] Specifically, if the "EDPC repair" information is displayed and the PCIE RECOVERY recovery log is reported, it indicates that the BIOS supports the EDPC function; if the "no EDPC repair" information is displayed, it indicates that the BIOS does not support the EDPC function.

[0095] This embodiment provides a test system for the BIOS EDPC function. By capturing the NBIO - related information parameters, commands are input to the externally - plugged PCIE device to simulate a fault. When the device has successfully failed, commands are input to this device again through the captured NBIO - related information parameters to recover the fault. In this way, it is verified whether the BIOS has the EDPC function. If the BIOS has this function, it will enable the recovery of the PCIE device when the server is running normally, so as to ensure the normal operation of functions such as the PXE function, data transmission, and protocols of this device. This system can greatly save the cost of device replacement, highlight the highlights of server performance, and improve the user experience.

[0096] Embodiment Three:

[0097] This embodiment discloses a test device for the BIOS EDPC function, including a processor and a memory. Among them, when the processor executes the test program for the BIOS EDPC function saved in the memory, the following steps are implemented:

[0098] 1. Under the AMD platform, remove all externally - plugged PCIE devices, obtain the PCIE device information, and record it as X.

[0099] 2. Insert the externally - plugged PCIE device, obtain the PCIE device information, and record it as Y.

[0100] 3. Compare X with Y, and take the different part as the NBIO information of the externally - plugged PCIE device, and record it as parameter Z.

[0101] 4. Confirm that the current operating system supports the BERT function.

[0102] 5. Confirm that the externally - plugged PCIE device supports the ACS function.

[0103] 6. Under BIOS SETUP, modify the EDPC - related function options, save and restart, and enter the operating system interface.

[0104] 7. Use the AMD - platform debugging tool, in combination with a preset script, input parameter Z into the first simulated error - injection command to simulate the failure of the externally - plugged PCIE device.

[0105] 8. When the externally - plugged PCIE device has successfully failed, input parameter Z into the second simulated error - injection command to repair the failure of the externally - plugged PCIE device.

[0106] 9. Confirm whether the BIOS supports the EDPC function by viewing the output information.

[0107] Furthermore, the test device for the BIOS EDPC function in this embodiment may further include:

[0108] An input interface, which is used to obtain a test program of the BIOS EDPC function imported from the outside world, save the obtained test program of the BIOS EDPC function to the memory, and can also be used to obtain various instructions and parameters transmitted by an external terminal device and transmit them to the processor, so that the processor can perform corresponding processing by using the above various instructions and parameters. In this embodiment, the input interface may specifically include, but is not limited to, a USB interface, a serial interface, a voice input interface, a fingerprint input interface, a hard disk reading interface, etc.

[0109] An output interface, which is used to output various data generated by the processor to a terminal device connected thereto, so that other terminal devices connected to the output interface can obtain various data generated by the processor. In this embodiment, the output interface may specifically include, but is not limited to, a USB interface, a serial interface, etc.

[0110] A communication unit, which is used to establish a remote communication connection between the test device of the BIOS EDPC function and an external server, so that the test device of the BIOS EDPC function can mount an image file to the external server. In this embodiment, the communication unit may specifically include, but is not limited to, a remote communication unit based on wireless communication technology or wired communication technology.

[0111] A keyboard, which is used to obtain various parameter data or instructions input by a user by tapping the key caps in real time.

[0112] A display, which is used to display in real time the relevant information of the short-circuit location process of the server power supply line.

[0113] A mouse, which can be used to assist the user in inputting data and simplify the user's operation.

[0114] Embodiment 4:

[0115] This embodiment also discloses a readable storage medium. The readable storage medium here includes a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable hard disk, a CD-ROM, or any other form of storage medium well-known in the technical field. The test program of the BIOS EDPC function is stored in the readable storage medium. When the test program of the BIOS EDPC function is executed by the processor, the following steps are implemented:

[0116] 1. Under the AMD platform, remove all externally plugged PCIE devices, obtain PCIE device information, and record it as X.

[0117] 2. Insert an externally plugged PCIE device, obtain PCIE device information, and record it as Y.

[0118] 3. Compare X with Y, take the different parts as the NBIO information of the externally plugged PCIE device, and record it as parameter Z.

[0119] 4. Confirm that the current operating system supports the BERT function.

[0120] 5. Confirm that the externally plugged PCIE device supports the ACS function.

[0121] 6. Modify the EDPC-related function options under BIOS SETUP, save and restart, and enter the operating system interface.

[0122] 7. Use the AMD platform debugging tool, in combination with a preset script, input parameter Z into the first simulated error injection command to simulate a failure of the externally plugged PCIE device.

[0123] 8. When the externally plugged PCIE device has successfully failed, input parameter Z into the second simulated error injection command to repair the failure of the externally plugged PCIE device.

[0124] 9. Confirm whether the BIOS supports the EDPC function by checking the output information.

[0125] In summary, the present invention realizes the verification of the BIOS EDPC function. When a PCIE device fails, it can still ensure the normal functions of the PXE function, data transmission, and protocols of this device, improving the user experience.

[0126] In this specification, each embodiment is described in a progressive manner. The key point of each embodiment is to illustrate the differences from other embodiments. The same or similar parts among the embodiments can be referred to each other. For the methods disclosed in the embodiments, since they correspond to the systems disclosed in the embodiments, the description is relatively simple. For the relevant parts, refer to the description in the method part.

[0127] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods for each specific application to implement the described functions, but such implementation should not be considered to exceed the scope of the present invention.

[0128] In several embodiments provided by the present invention, it should be understood that the disclosed systems, systems, and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of the systems or units can be in electrical, mechanical, or other forms.

[0129] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place, or they can be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0130] In addition, the functional modules in various embodiments of the present invention can be integrated in a processing unit, or each module can exist physically alone, or two or more modules can be integrated in one unit.

[0131] Similarly, the processing units in various embodiments of the present invention can be integrated in a functional module, or each processing unit can exist physically, or two or more processing units can be integrated in one functional module.

[0132] The steps of the methods or algorithms described in combination with the embodiments disclosed herein can be directly implemented by hardware, software modules executed by a processor, or a combination of both. The software modules can be placed in a random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium well-known in the technical field.

[0133] Finally, it should also be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or device comprising the said element.

[0134] The above has introduced in detail the test method, system, device and readable storage medium of the BIOS EDPC function provided by the present invention. Specific examples are used in this article to elaborate on the principle and implementation manner of the present invention. The description of the above embodiments is only used to help understand the method and its core idea of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.

Claims

1. A test method for the BIOS EDPC function, characterized in that including: Under the AMD platform, remove all externally plugged PCIE devices, obtain PCIE device information, and record it as X; Insert an externally plugged PCIE device, obtain PCIE device information, and record it as Y; Compare X with Y, take the different parts as the NBIO information of the externally plugged PCIE device, and record it as parameter Z; confirm that the current operating system supports the BERT function; Confirm that the externally plugged PCIE device supports the ACS function; Under BIOS SETUP, modify the EDPC-related function options, save and restart, and enter the operating system interface; Use the AMD platform debugging tool, in combination with a preset script, input parameter Z into the first simulated error injection command to simulate a failure of the externally plugged PCIE device; When the externally plugged PCIE device has successfully failed, input parameter Z into the second simulated error injection command to repair the failure of the externally plugged PCIE device; Check the output information to confirm whether the BIOS supports the EDPC function.

2. The test method for the BIOS EDPC function according to claim 1, wherein The obtaining of PCIE device information includes: Under the operating system, execute the AMD platform command to output PCIE device information.

3. The test method for the BIOS EDPC function according to claim 2, wherein The PCIE device information includes: socket information, PCIE core information, PCIE port information, and NBIO information.

4. The test method for the BIOS EDPC function according to claim 3, characterized in that The confirmation that the current operating system supports the BERT function includes: Read the BIOS serial port information to determine whether the current operating system supports the BERT function; If it does not support, install the BERT component under the current operating system.

5. The test method for the BIOS EDPC function according to claim 4, characterized in that, The confirmation that the externally plugged PCIE device supports the ACS function includes: Read the BIOS serial port information to determine whether the ACS function of the BIOS is enabled; If it is not enabled, replace the externally plugged PCIE device.

6. The test method for the BIOS EDPC function according to claim 5, wherein, The use of the AMD platform debugging tool, in combination with a preset script, input parameter Z into the first simulated error injection command to simulate a failure of the externally plugged PCIE device includes: Use the AMD platform debugging tool AMD System Debugger NDA, in combination with the CScripts script, input parameter Z into the first simulated error injection command to simulate a failure of the externally plugged PCIE device; If the error injection is successful, display the pass information and report the uncorrectable error log of the PCIE; If the error injection fails, display the fail information. At this time, continue to input parameter Z into the first simulated error injection command until the pass information is displayed.

7. The test method for the BIOS EDPC function according to claim 6, characterized in that, The confirmation of whether the BIOS supports the EDPC function by checking the output information includes: If the EDPC repair information is displayed and the PCIE RECOVERY recovery log is reported, the BIOS supports the EDPC function; If the no EDPC repair information is displayed, the BIOS does not support the EDPC function.

8. A test system for BIOS EDPC function, characterized in that, including: The first recording unit is used to remove all externally plugged PCIE devices under the AMD platform, obtain PCIE device information, and record it as X; The second recording unit is used to insert an externally plugged PCIE device, obtain PCIE device information, and record it as Y; A comparison unit, configured to compare X with Y, use the different parts as the NBIO information of the externally plugged PCIE device, and record it as parameter Z; A first function confirmation unit, configured to confirm that the current operating system supports the BERT function; A second function confirmation unit, configured to confirm that the externally plugged PCIE device supports the ACS function; An initialization unit, configured to modify the EDPC-related function options under BIOS SETUP, save and restart, and enter the operating system interface; A first error injection unit, configured to use the AMD platform debugging tool, in combination with a preset script, input parameter Z into the first simulated error injection command to simulate a failure of the externally plugged PCIE device; A second error injection unit, configured to input parameter Z into the second simulated error injection command to repair the failure of the externally plugged PCIE device when the externally plugged PCIE device has successfully failed; A determination unit, configured to confirm whether the BIOS supports the EDPC function by checking the output information.

9. A test device for BIOS EDPC function, characterized in that, Comprising: A memory, configured to store a test program for the BIOS EDPC function; A processor, configured to implement the steps of the test method for the BIOS EDPC function according to any one of claims 1 to 7 when executing the test program for the BIOS EDPC function.

10. A readable storage medium, characterized in that: The readable storage medium stores a test program for the BIOS EDPC function, and the steps of the test method for the BIOS EDPC function according to any one of claims 1 to 7 are implemented when the test program for the BIOS EDPC function is executed by the processor.

Citation Information

Patent Citations

  • Method for testing PCIE channel bandwidth

    CN106681878A

  • Method and device for improving server performance and medium

    CN114138527A