Voltage reference chip configuration method, device, electronic device and storage medium

Through the automatic configuration method of switching the main and backup voltage reference chips in the server standby state, the problem of shutdown of the voltage reference chip needs to be upgraded is solved, seamless upgrade and abnormal recovery are achieved, and the server is operated stably.

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

Patent Information

Application Number
CN202310257305.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-16
Publication Date
2025-07-08
Estimated Expiration
2043-03-16

AI Technical Summary

Technical Problem

In the prior art, the upgrade of the voltage reference chip requires the server to shut down, affecting customer business, and the chip operation is prone to abnormal and unrecoverable due to configuration file errors during the upgrade process.

Method used

Provides a configuration method for automatically updating the voltage reference chip. By switching the main and backup voltage reference chips in the standby state of the server, using programmable logic devices for configuration and verification, ensuring file consistency and normal operation, and using a backup mechanism to avoid abnormalities.

Benefits of technology

It realizes automatic update of the voltage reference chip without shutting down the server, avoids chip abnormalities caused by configuration file errors, and ensures that the server is running normally.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116302062B_ABST
    Figure CN116302062B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device, electronic device and storage medium for configuring a voltage reference chip, which are applied to a baseboard controller. The method includes: receiving configuration information sent by a user, where the configuration information includes a server address, a chip threshold, and a test period; when it is detected that the host is in a standby state, obtaining a file to be configured from the server according to the server address and obtaining a backup version file according to the backup register of the backup voltage reference chip; determining whether the check code to be configured of the file to be configured is consistent with the backup check code of the backup version file; if so, configuring the main voltage reference chip according to the file to be configured and the backup voltage reference chip; if not, configuring the backup voltage reference chip according to the file to be configured and the backup version file. The update of the VR chip is automatically completed without shutting down the server by switching the main VR chip and the backup VR chip.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of server configuration, and particularly to a method, device, electronic device and storage medium for configuring a voltage reference chip. Background Art

[0002] The BMC is a small operating system independent of the server system and is a firmware system with an independent IP integrated on the motherboard. Server clusters generally use BMC instructions for large-scale unattended operations, including remote management, monitoring, installation, restart, etc. of the server. The voltage reference chip is responsible for voltage conversion on the motherboard and is an essential chip on the server. Due to the increasing demands of customer users, the configuration of the voltage reference chip also needs to be configured according to the actual situation. There are mainly two existing manual upgrade schemes: the first is to burn the version file of the voltage reference chip through a burner; the second is to upload the version file of the voltage reference chip to the BMC through an upgrade script, and the BMC upgrades the voltage reference chip through I2C. Among them, the upgrade of the voltage reference chip needs to be carried out when the server is in the shutdown state. Since the servers are shut down irregularly in actual use, shutting down all devices for the need to upgrade the voltage reference chip will affect the business of customers. Summary of the Invention

[0003] Based on this, it is necessary to provide a method, device, electronic device and storage medium for configuring a voltage reference chip that can automatically update and detect the voltage reference chip for the above technical problems.

[0004] In a first aspect, a method for configuring a voltage reference chip is provided, which is applied to a baseboard controller, and the method includes:

[0005] Receiving configuration information sent by a user, where the configuration information includes a server address, a chip threshold, and a test period;

[0006] When it is detected that the host is in the standby state, obtaining a file to be configured from the server according to the server address and obtaining a backup version file according to the backup register of the backup voltage reference chip;

[0007] Determining whether the check code to be configured of the file to be configured is consistent with the backup check code of the backup version file;

[0008] If so, configuring the main voltage reference chip according to the file to be configured and the backup voltage reference chip;

[0009] If not, configuring the backup voltage reference chip according to the file to be configured and the backup version file.

[0010] In one embodiment, configuring the primary voltage reference chip according to the to-be-configured file and the backup voltage reference chip includes:

[0011] Obtain the primary version file according to the primary register of the primary voltage reference chip and generate a primary backup configuration;

[0012] Determine whether the to-be-configured check code is consistent with the primary check code corresponding to the primary version file;

[0013] If not, control the programmable logic device to switch the backup voltage reference chip to work and configure the primary voltage reference chip according to the to-be-configured file and the primary backup configuration;

[0014] If so, report an error to the user.

[0015] In one embodiment, controlling the programmable logic device to switch the backup voltage reference chip to work and configuring the primary voltage reference chip according to the to-be-configured file and the primary backup configuration includes:

[0016] Modify the primary version file according to the configuration data of the to-be-configured file and modify the primary check code to the to-be-configured check code;

[0017] After the configuration is completed, control the programmable logic device to switch the primary voltage reference chip to work and determine whether the primary voltage reference chip is working properly.

[0018] In one embodiment, controlling the programmable logic device to switch the primary voltage reference chip to work and determining whether the primary voltage reference chip is working properly includes:

[0019] Obtain the first working data corresponding to the primary voltage reference chip according to the test period and determine whether the test period is greater than the test period threshold;

[0020] If so, calculate the first data average value according to the first working data and determine whether the first data average value exceeds the chip threshold;

[0021] If not, determine whether the first working data exceeds the chip threshold.

[0022] In one embodiment, after controlling the programmable logic device to switch the primary voltage reference chip to work and determining whether the primary voltage reference chip is working properly includes:

[0023] When it is determined that the first data average value or the first working data exceeds the chip threshold, alarm the user and control the programmable logic device to switch the backup voltage reference chip to work;

[0024] Restore the master version file and the master check code according to the backup data in the master backup configuration;

[0025] After restoring the master voltage reference chip, control the programmable logic device to switch the master voltage reference chip to work.

[0026] In one embodiment, the configuring the standby voltage reference chip according to the file to be configured and the standby version file includes:

[0027] Modify the standby version file according to the configuration data and modify the standby check code to the check code to be configured;

[0028] After the configuration is completed, control the programmable logic device to switch the standby voltage reference chip to work and determine whether the standby voltage reference chip is working properly.

[0029] In one embodiment, the after the configuration is completed, controlling the programmable logic device to switch the standby voltage reference chip to work and determining whether the standby voltage reference chip is working properly includes:

[0030] Obtain the second working data corresponding to the standby voltage reference chip according to the test period and determine whether the test period exceeds a test period threshold;

[0031] If so, calculate a second data average value according to the second working data and determine whether the second data average value exceeds the chip threshold;

[0032] If not, determine whether the second working data exceeds the chip threshold;

[0033] When it is determined that the second data average value or the second working data does not exceed the chip threshold, configure the master voltage reference chip according to the file to be configured.

[0034] On the other hand, a voltage reference chip configuration device is provided, which is applied to a baseboard controller, and the device includes:

[0035] A receiving module, configured to receive configuration information sent by a user, where the configuration information includes a server address and a chip threshold;

[0036] An obtaining module, configured to, when detecting that the host is in a standby state, obtain a file to be configured from a server according to the server address and obtain a standby version file according to a standby register of a standby voltage reference chip;

[0037] A determination module, configured to determine whether the check code to be configured of the file to be configured is consistent with the backup check code of the backup version file;

[0038] A first configuration module, if so, configured to configure the primary voltage reference chip according to the file to be configured and the backup voltage reference chip;

[0039] A second configuration module, if not, configured to configure the backup voltage reference chip according to the file to be configured and the backup version file.

[0040] In one embodiment, the first configuration module configuring the primary voltage reference chip according to the file to be configured and the backup voltage reference chip includes:

[0041] Obtaining a primary version file according to the primary register of the primary voltage reference chip and generating a primary backup configuration;

[0042] Determining whether the check code to be configured is consistent with the primary check code corresponding to the primary version file;

[0043] If not, controlling the programmable logic device to switch the backup voltage reference chip to work and configuring the primary voltage reference chip according to the file to be configured and the primary backup configuration;

[0044] If so, reporting an error to the user.

[0045] In one embodiment, the first configuration module controlling the programmable logic device to switch the backup voltage reference chip to work and configuring the primary voltage reference chip according to the file to be configured and the primary backup configuration includes:

[0046] Modifying the primary version file according to the configuration data of the file to be configured and modifying the primary check code to the check code to be configured;

[0047] After the configuration is completed, controlling the programmable logic device to switch the primary voltage reference chip to work and determining whether the primary voltage reference chip works properly.

[0048] In one embodiment, the first configuration module controlling the programmable logic device to switch the primary voltage reference chip to work and determining whether the primary voltage reference chip works properly includes:

[0049] Obtaining first working data corresponding to the primary voltage reference chip according to the test period and determining whether the test period is greater than a test period threshold;

[0050] If so, calculating a first data average value according to the first working data and determining whether the first data average value exceeds the chip threshold;

[0051] If not, determine whether the first working data exceeds the chip threshold.

[0052] In one embodiment, after the first configuration module controls the programmable logic device to switch the primary voltage reference chip to work and determines whether the primary voltage reference chip is working properly, it includes:

[0053] When it is determined that the first data average value or the first working data exceeds the chip threshold, alarm the user and control the programmable logic device to switch the standby voltage reference chip to work;

[0054] Restore the primary version file and the primary check code according to the backup data in the primary backup configuration;

[0055] After the restoration of the primary voltage reference chip is completed, control the programmable logic device to switch the primary voltage reference chip to work.

[0056] In one embodiment, the second configuration module configures the standby voltage reference chip according to the file to be configured and the standby version file, including:

[0057] Modify the standby version file according to the configuration data and modify the standby check code to the check code to be configured;

[0058] After the configuration is completed, control the programmable logic device to switch the standby voltage reference chip to work and determine whether the standby voltage reference chip is working properly.

[0059] In one embodiment, after the configuration is completed, the second configuration module controls the programmable logic device to switch the standby voltage reference chip to work and determines whether the standby voltage reference chip is working properly, including:

[0060] Obtain the second working data corresponding to the standby voltage reference chip according to the test period and determine whether the test period exceeds a test period threshold;

[0061] If so, calculate a second data average value according to the second working data and determine whether the second data average value exceeds the chip threshold;

[0062] If not, determine whether the second working data exceeds the chip threshold;

[0063] When it is determined that the second data average value or the second working data does not exceed the chip threshold, configure the primary voltage reference chip according to the file to be configured.

[0064] In another aspect, an electronic device is provided, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented:

[0065] Receive configuration information sent by a user, where the configuration information includes a server address, a chip threshold, and a test period;

[0066] When it is detected that the host is in the standby state, obtain a file to be configured from the server according to the server address and obtain a backup version file according to the backup register of the backup voltage reference chip;

[0067] Determine whether the check code to be configured of the file to be configured is consistent with the backup check code of the backup version file;

[0068] If so, configure the primary voltage reference chip according to the file to be configured and the backup voltage reference chip;

[0069] If not, configure the backup voltage reference chip according to the file to be configured and the backup version file.

[0070] In one embodiment, when the processor executes the computer program, the following steps are implemented:

[0071] The configuring the primary voltage reference chip according to the file to be configured and the backup voltage reference chip includes:

[0072] Obtain a primary version file according to the primary register of the primary voltage reference chip and generate a primary backup configuration;

[0073] Determine whether the check code to be configured is consistent with the primary check code corresponding to the primary version file;

[0074] If not, control the programmable logic device to switch the backup voltage reference chip to work and configure the primary voltage reference chip according to the file to be configured and the primary backup configuration;

[0075] If so, report an error to the user.

[0076] In one embodiment, when the processor executes the computer program, the following steps are implemented:

[0077] The controlling the programmable logic device to switch the backup voltage reference chip to work and configuring the primary voltage reference chip according to the file to be configured and the primary backup configuration includes:

[0078] Modify the primary version file according to the configuration data of the file to be configured and modify the primary check code to the check code to be configured;

[0079] After the configuration is completed, control the programmable logic device to switch the primary voltage reference chip to work and determine whether the primary voltage reference chip is working properly.

[0080] In one embodiment, when the processor executes the computer program, the following steps are implemented:

[0081] The control of the programmable logic device to switch the primary voltage reference chip to work and determine whether the primary voltage reference chip is working properly includes:

[0082] Obtain the first working data corresponding to the primary voltage reference chip according to the test period and determine whether the test period is greater than the test period threshold;

[0083] If so, calculate the first data average value according to the first working data and determine whether the first data average value exceeds the chip threshold;

[0084] If not, determine whether the first working data exceeds the chip threshold.

[0085] In one embodiment, when the processor executes the computer program, the following steps are implemented:

[0086] After the control of the programmable logic device to switch the primary voltage reference chip to work and determine whether the primary voltage reference chip is working properly includes:

[0087] When it is determined that the first data average value or the first working data exceeds the chip threshold, alarm the user and control the programmable logic device to switch the standby voltage reference chip to work;

[0088] Restore the primary version file and the primary check code according to the backup data in the primary backup configuration;

[0089] When the restoration of the primary voltage reference chip is completed, control the programmable logic device to switch the primary voltage reference chip to work.

[0090] In one embodiment, when the processor executes the computer program, the following steps are implemented:

[0091] The configuration of the standby voltage reference chip according to the to-be-configured file and the standby version file includes:

[0092] Modify the standby version file according to the configuration data and modify the standby check code to the to-be-configured check code;

[0093] After configuration is completed, control the programmable logic device to switch the standby voltage reference chip to work and determine whether the standby voltage reference chip is working properly.

[0094] In one embodiment, when the processor executes the computer program, the following steps are implemented:

[0095] After configuration is completed, controlling the programmable logic device to switch the standby voltage reference chip to work and determining whether the standby voltage reference chip is working properly includes:

[0096] Obtain the second working data corresponding to the standby voltage reference chip according to the test period and determine whether the test period exceeds a test period threshold;

[0097] If so, calculate a second data average value according to the second working data and determine whether the second data average value exceeds the chip threshold;

[0098] If not, determine whether the second working data exceeds the chip threshold;

[0099] When it is determined that the second data average value or the second working data does not exceed the chip threshold, configure the primary voltage reference chip according to the file to be configured.

[0100] On the other hand, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:

[0101] Receive configuration information sent by a user, where the configuration information includes a server address, a chip threshold, and a test period;

[0102] When it is detected that the host is in a standby state, obtain a file to be configured from a server according to the server address and obtain a standby version file according to a standby register of the standby voltage reference chip;

[0103] Determine whether a check code to be configured of the file to be configured is consistent with a standby check code of the standby version file;

[0104] If so, configure the primary voltage reference chip according to the file to be configured and the standby voltage reference chip;

[0105] If not, configure the standby voltage reference chip according to the file to be configured and the standby version file.

[0106] In one embodiment, when the computer program is executed by a processor, the following steps are implemented:

[0107] Configuring the primary voltage reference chip according to the to-be-configured file and the backup voltage reference chip includes:

[0108] Obtaining a primary version file according to the primary register of the primary voltage reference chip and generating a primary backup configuration;

[0109] Determining whether the to-be-configured check code is consistent with the primary check code corresponding to the primary version file;

[0110] If not, controlling the programmable logic device to switch the backup voltage reference chip to work and configuring the primary voltage reference chip according to the to-be-configured file and the primary backup configuration;

[0111] If so, reporting an error to the user.

[0112] In one embodiment, when the computer program is executed by a processor, the following steps are implemented:

[0113] Controlling the programmable logic device to switch the backup voltage reference chip to work and configuring the primary voltage reference chip according to the to-be-configured file and the primary backup configuration includes:

[0114] Modifying the primary version file according to the configuration data of the to-be-configured file and modifying the primary check code to the to-be-configured check code;

[0115] After the configuration is completed, controlling the programmable logic device to switch the primary voltage reference chip to work and determining whether the primary voltage reference chip works normally.

[0116] In one embodiment, when the computer program is executed by a processor, the following steps are implemented:

[0117] Controlling the programmable logic device to switch the primary voltage reference chip to work and determining whether the primary voltage reference chip works normally includes:

[0118] Obtaining first working data corresponding to the primary voltage reference chip according to the test period and determining whether the test period is greater than a test period threshold;

[0119] If so, calculating a first data average value according to the first working data and determining whether the first data average value exceeds the chip threshold;

[0120] If not, determining whether the first working data exceeds the chip threshold.

[0121] In one embodiment, when the computer program is executed by a processor, the following steps are implemented:

[0122] After controlling the programmable logic device to switch the operation of the primary voltage reference chip and determining whether the primary voltage reference chip is operating normally, the following steps are included:

[0123] When it is determined that the first data average value or the first working data exceeds the chip threshold, an alarm is given to the user and the programmable logic device is controlled to switch the operation of the backup voltage reference chip;

[0124] Restore the primary version file and the primary check code according to the backup data in the primary backup configuration;

[0125] After the restoration of the primary voltage reference chip is completed, control the programmable logic device to switch the operation of the primary voltage reference chip.

[0126] In one embodiment, when the computer program is executed by a processor, the following steps are implemented:

[0127] The configuring of the backup voltage reference chip according to the file to be configured and the backup version file includes:

[0128] Modify the backup version file according to the configuration data and modify the backup check code to the check code to be configured;

[0129] After the configuration is completed, control the programmable logic device to switch the operation of the backup voltage reference chip and determine whether the backup voltage reference chip is operating normally.

[0130] In one embodiment, when the computer program is executed by a processor, the following steps are implemented:

[0131] The step of, after the configuration is completed, controlling the programmable logic device to switch the operation of the backup voltage reference chip and determining whether the backup voltage reference chip is operating normally includes:

[0132] Obtain the second working data corresponding to the backup voltage reference chip according to the test period and determine whether the test period exceeds a test period threshold;

[0133] If so, calculate a second data average value according to the second working data and determine whether the second data average value exceeds the chip threshold;

[0134] If not, determine whether the second working data exceeds the chip threshold;

[0135] When it is determined that the second data average value or the second working data does not exceed the chip threshold, configure the primary voltage reference chip according to the file to be configured.

[0136] By receiving configuration information sent by a user, where the configuration information includes a server address, a chip threshold, and a test period; when the detection host is in a standby state, obtaining a file to be configured from a server according to the server address and obtaining a backup version file according to a backup register of a backup voltage reference chip; determining whether a check code to be configured of the file to be configured is consistent with a backup check code of the backup version file; if so, configuring a primary voltage reference chip according to the file to be configured and the backup voltage reference chip; if not, configuring the backup voltage reference chip according to the file to be configured and the backup version file, so as to automatically complete the update of the VR chip by switching between the primary VR chip and the backup VR chip while the server does not need to be shut down; and avoiding the problem that the server cannot be restored when the VR chip malfunctions due to incorrect configuration files or other situations through a backup mechanism. BRIEF DESCRIPTION OF THE DRAWINGS

[0137] Figure 1 A flowchart of a method for configuring a voltage reference chip;

[0138] Figure 2 A schematic diagram of steps of a method for configuring a voltage reference chip;

[0139] Figure 3 A schematic diagram of the structure of a device for configuring a voltage reference chip;

[0140] Figure 4 An internal structure diagram of a computer device in an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0141] In order to make the objectives, technical solutions, and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0142] A flowchart of a method for configuring a voltage reference chip provided by the present application is shown in Figure 1As shown, first, receive the configuration information sent by the user. When it is detected that the host is in the standby state, obtain the file to be configured according to the server address and obtain the backup version file according to the device bus and the backup register; then determine whether the check code to be configured and the backup check code are consistent. If not, first configure the backup voltage reference chip according to the file to be configured and the backup version file; if so, then determine whether the check code to be configured and the primary check code are consistent. If so, report an error to the user; if not, control the programmable logic device to switch the backup voltage reference chip to work and configure the primary voltage reference chip according to the file to be configured. After that, obtain the first working data according to the test period and determine whether the test period is greater than the test period threshold. If so, calculate the first data average value according to the first working data and determine whether the first data average value exceeds the chip threshold; if not, determine whether the first working data exceeds the chip threshold. When it is determined that the first data average value or the first working data exceeds the chip threshold, alarm the user and control the programmable logic device to switch the backup voltage reference chip to work, then restore the primary voltage reference chip and control the programmable logic device to switch the primary voltage reference chip to work.

[0143] In one embodiment, as Figure 2 shown, the present invention provides a method for configuring a voltage reference chip, which is applied to a board controller. The method includes:

[0144] S201. Receive the configuration information sent by the user, where the configuration information includes a server address, a chip threshold, and a test period;

[0145] S202. When it is detected that the host is in the standby state, obtain the file to be configured from the server according to the server address and obtain the backup version file according to the backup register of the backup voltage reference chip;

[0146] S203. Determine whether the check code to be configured of the file to be configured and the backup check code of the backup version file are consistent;

[0147] S204. If so, configure the primary voltage reference chip according to the file to be configured and the backup voltage reference chip;

[0148] S205. If not, configure the backup voltage reference chip according to the file to be configured and the backup version file.

[0149] Specifically, the maintenance personnel set the server IP (Internet Protocol) address for storing the to-be-configured file and multiple chip thresholds including voltage threshold, current threshold, temperature threshold, etc. on the BMC (Baseboard Management Controller) page. When it is detected that the host meets the upgrade trigger conditions such as the timed or standby state, the BMC starts the upgrade process; first, it downloads the to-be-configured file through the server IP address, then reads the register of the standby VR chip (Voltage Regulator) via I2C (device bus) to obtain the standby version file corresponding to the standby VR chip, and then determines whether the standby VR chip needs to be updated based on the checksum of the standby version file and the checksum of the to-be-configured file.

[0150] In one embodiment, the configuring the primary voltage reference chip according to the to-be-configured file and the standby voltage reference chip includes:

[0151] Obtain the primary version file according to the primary register of the primary voltage reference chip and generate a primary backup configuration;

[0152] Determine whether the to-be-configured checksum is consistent with the primary checksum corresponding to the primary version file;

[0153] If not, control the programmable logic device to switch the standby voltage reference chip to work and configure the primary voltage reference chip according to the to-be-configured file and the primary backup configuration;

[0154] If so, report an error to the user.

[0155] Specifically, when the standby VR chip is updated or does not need to be updated, at this time, the register of the primary VR chip is also read via I2C to obtain the primary version file corresponding to the primary VR chip and generate a primary backup configuration, and then it is determined whether the checksum of the primary version file is consistent with the checksum of the to-be-configured file. If they are consistent, it means that the configuration information input by the maintenance personnel is incorrect, and the primary VR chip does not need to be updated at this time; if they are inconsistent, control the CPLD (Complex Programmable Logic Device) to switch to the standby VR chip to work, that is, enable the standby VR chip and turn off the primary VR chip, and then update the primary VR chip according to the to-be-configured file and the primary backup configuration.

[0156] In one embodiment, the controlling the programmable logic device to switch the standby voltage reference chip to work and configuring the primary voltage reference chip according to the to-be-configured file and the primary backup configuration includes:

[0157] Modify the primary version file according to the configuration data of the file to be configured and modify the primary verification code to the verification code to be configured;

[0158] After the configuration is completed, control the programmable logic device to switch the primary voltage reference chip to work and determine whether the primary voltage reference chip works normally.

[0159] Specifically, in addition to updating the current version of the primary VR chip according to the file to be configured, after the update is completed, it is also necessary to modify the original verification code according to the latest verification code in the file to be configured. After the modification is completed, re-control the CPLD to switch to the primary VR chip to work, and then it is necessary to determine whether the chip works normally.

[0160] In one embodiment, the controlling the programmable logic device to switch the primary voltage reference chip to work and determining whether the primary voltage reference chip works normally includes:

[0161] Obtain the first working data corresponding to the primary voltage reference chip according to the test period and determine whether the test period is greater than the test period threshold;

[0162] If so, calculate the first data average value according to the first working data and determine whether the first data average value exceeds the chip threshold;

[0163] If not, determine whether the first working data exceeds the chip threshold.

[0164] Specifically, when switching to the newly updated primary VR chip to work, it is necessary to determine whether the chip works normally according to the chip threshold in the configuration information. The chip threshold includes voltage threshold, current threshold, temperature threshold, etc. In addition, obtain the first working data according to the test period set by the user, such as obtaining the data when the chip works within 0-5 minutes. If the test period of 0-5 minutes (long period) is greater than the test period threshold, such as 3 minutes, it means that the user hopes to conduct a long period test. At this time, calculate the voltage average value, current average value and temperature average value within 5 minutes to determine whether it exceeds the threshold; when obtaining the data when the chip works within 0-1 minute, because it is less than the test period threshold, it is necessary to determine whether each voltage value, current value and temperature value within 1 minute (short period) exceeds the threshold.

[0165] In one embodiment, after the controlling the programmable logic device to switch the primary voltage reference chip to work and determining whether the primary voltage reference chip works normally includes:

[0166] When it is determined that the first data average value or the first working data exceeds the chip threshold, an alarm is given to the user and the programmable logic device is controlled to switch the standby voltage reference chip to work;

[0167] Restore the main version file and the main check code according to the backup data in the main backup configuration;

[0168] After the restoration of the main voltage reference chip is completed, the programmable logic device is controlled to switch the main voltage reference chip to work.

[0169] Specifically, when at least one of the voltage average value, the current average value, and the temperature average value exceeds the voltage threshold, the current threshold, and the temperature threshold, or when at least one of each voltage value, current value, and temperature value within the test period exceeds the voltage threshold, the current threshold, and the temperature threshold, an alarm is given to the user at this time and the CPLD is controlled to switch the standby VR chip to work. Then, the version file and the check code of the main VR chip are restored according to the original backup configuration. Finally, the CPLD is controlled again to switch the main VR chip to work.

[0170] In one embodiment, the configuring the standby voltage reference chip according to the to-be-configured file and the standby version file includes:

[0171] Modify the standby version file according to the configuration data and modify the standby check code to the to-be-configured check code;

[0172] After the configuration is completed, the programmable logic device is controlled to switch the standby voltage reference chip to work and determine whether the standby voltage reference chip is working properly.

[0173] Specifically, when it is determined that the to-be-configured check code is inconsistent with the standby check code of the standby VR chip, the standby VR chip is first updated according to the to-be-configured file. After the update is completed, the CPLD is controlled to switch to the standby VR chip to work, and then it is determined whether the standby VR chip is working properly.

[0174] In one embodiment, the after the configuration is completed, the programmable logic device is controlled to switch the standby voltage reference chip to work and determine whether the standby voltage reference chip is working properly includes:

[0175] Obtain the second working data corresponding to the standby voltage reference chip according to the test period and determine whether the test period exceeds a test period threshold;

[0176] If so, calculate a second data average value according to the second working data and determine whether the second data average value exceeds the chip threshold;

[0177] If not, determine whether the second working data exceeds the chip threshold;

[0178] When it is determined that the second data average value or the second working data does not exceed the chip threshold, configure the primary voltage reference chip according to the profile to be configured.

[0179] Specifically, for example, obtain the second working data when the standby VR chip is working within 0 - 5 minutes according to the test period set by the user. At this time, calculate the average voltage value, average current value, and average temperature value within 5 minutes to determine whether they exceed the threshold; and when obtaining the data when the standby VR chip is working within 0 - 1 minute, determine whether each voltage value, current value, and temperature value within 1 minute (short period) exceeds the threshold. As described above, when at least one item of data exceeds the chip threshold, it is necessary to alarm the user, restore the standby VR chip, and stop continuing to update the primary VR chip; if none of them exceed the chip threshold, the standby VR chip continues to work and starts to configure the primary VR chip.

[0180] The solution of the present application has the following beneficial effects:

[0181] 1) While the server does not need to be shut down, automatically complete the update of the VR chip by switching between the primary VR chip and the standby VR chip;

[0182] 2) Through the backup mechanism, avoid the problem that the server work is affected because the VR chip cannot be restored when the VR chip malfunctions due to incorrect configuration files or other situations.

[0183] It should be understood that although Figure 2 the steps in the flowchart of Figure 2 are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear indication in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover,

[0184] In one embodiment, as Figure 3 shown, a voltage reference chip configuration device is provided, which is applied to a baseboard controller. The device includes:

[0185] A receiving module 301, configured to receive configuration information sent by a user, where the configuration information includes a server address and a chip threshold;

[0186] An obtaining module 302, configured to obtain a to-be-configured file from a server according to the server address and obtain a backup version file according to a backup register of a backup voltage reference chip when it is detected that the host is in a standby state;

[0187] A determining module 303, configured to determine whether a to-be-configured check code of the to-be-configured file is consistent with a backup check code of the backup version file;

[0188] A first configuration module 304, if so, configured to configure a primary voltage reference chip according to the to-be-configured file and the backup voltage reference chip;

[0189] A second configuration module 305, if not, configured to configure the backup voltage reference chip according to the to-be-configured file and the backup version file.

[0190] In one embodiment, the first configuration module configuring the primary voltage reference chip according to the to-be-configured file and the backup voltage reference chip includes:

[0191] Obtaining a primary version file according to a primary register of the primary voltage reference chip and generating a primary backup configuration;

[0192] Determining whether the to-be-configured check code is consistent with a primary check code corresponding to the primary version file;

[0193] If not, controlling a programmable logic device to switch the backup voltage reference chip to work and configuring the primary voltage reference chip according to the to-be-configured file and the primary backup configuration;

[0194] If so, reporting an error to the user.

[0195] In one embodiment, the first configuration module controlling the programmable logic device to switch the backup voltage reference chip to work and configuring the primary voltage reference chip according to the to-be-configured file and the primary backup configuration includes:

[0196] Modifying the primary version file according to configuration data of the to-be-configured file and modifying the primary check code to the to-be-configured check code;

[0197] After the configuration is completed, controlling the programmable logic device to switch the primary voltage reference chip to work and determining whether the primary voltage reference chip works normally.

[0198] In one embodiment, the first configuration module controlling the programmable logic device to switch the primary voltage reference chip to work and determining whether the primary voltage reference chip works normally includes:

[0199] Obtain the first working data corresponding to the primary voltage reference chip according to the test period and determine whether the test period is greater than the test period threshold;

[0200] If so, calculate the first data average value according to the first working data and determine whether the first data average value exceeds the chip threshold;

[0201] If not, determine whether the first working data exceeds the chip threshold.

[0202] In one embodiment, after the first configuration module controls the programmable logic device to switch the operation of the primary voltage reference chip and determines whether the primary voltage reference chip is operating normally, it includes:

[0203] When it is determined that the first data average value or the first working data exceeds the chip threshold, alarm the user and control the programmable logic device to switch the operation of the backup voltage reference chip;

[0204] Restore the primary version file and the primary check code according to the backup data in the primary backup configuration;

[0205] After the restoration of the primary voltage reference chip is completed, control the programmable logic device to switch the operation of the primary voltage reference chip.

[0206] In one embodiment, the second configuration module configures the backup voltage reference chip according to the file to be configured and the backup version file, including:

[0207] Modify the backup version file according to the configuration data and modify the backup check code to the check code to be configured;

[0208] After the configuration is completed, control the programmable logic device to switch the operation of the backup voltage reference chip and determine whether the backup voltage reference chip is operating normally.

[0209] In one embodiment, after the configuration is completed, the second configuration module controls the programmable logic device to switch the operation of the backup voltage reference chip and determine whether the backup voltage reference chip is operating normally, including:

[0210] Obtain the second working data corresponding to the backup voltage reference chip according to the test period and determine whether the test period exceeds the test period threshold;

[0211] If so, calculate the second data average value according to the second working data and determine whether the second data average value exceeds the chip threshold;

[0212] If not, determine whether the second working data exceeds the chip threshold;

[0213] When it is determined that the second data average value or the second working data does not exceed the chip threshold, configure the primary voltage reference chip according to the profile to be configured.

[0214] For the specific limitations of the voltage reference chip configuration device, reference can be made to the limitations on the voltage reference chip configuration method in the foregoing text, which will not be elaborated here. Each module in the above voltage reference chip configuration device can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in the processor of the computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to the above modules.

[0215] In one embodiment, a computer device is provided. The computer device can be a terminal, and its internal structure diagram can be as Figure 4 shown. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer program, when executed by the processor, implements the alarm information processing method. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covered on the display screen, or a button, a trackball, or a touchpad provided on the housing of the computer device, or an external keyboard, touchpad, or mouse, etc.

[0216] Those skilled in the art can understand that Figure 4 the structure shown in

[0217] is only a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have a different component layout.

[0218] Receive configuration information sent by a user, where the configuration information includes a server address, a chip threshold, and a test period;

[0219] When the detection host is in the standby state, obtain the file to be configured from the server according to the server address, and obtain the backup version file according to the backup register of the backup voltage reference chip;

[0220] Determine whether the check code to be configured of the file to be configured is consistent with the backup check code of the backup version file;

[0221] If so, configure the main voltage reference chip according to the file to be configured and the backup voltage reference chip;

[0222] If not, configure the backup voltage reference chip according to the file to be configured and the backup version file.

[0223] In one embodiment, when the processor executes the computer program, the following steps are implemented:

[0224] The configuring the main voltage reference chip according to the file to be configured and the backup voltage reference chip includes:

[0225] Obtain the main version file according to the main register of the main voltage reference chip and generate the main backup configuration;

[0226] Determine whether the check code to be configured is consistent with the main check code corresponding to the main version file;

[0227] If not, control the programmable logic device to switch the backup voltage reference chip to work and configure the main voltage reference chip according to the file to be configured and the main backup configuration;

[0228] If so, report an error to the user.

[0229] In one embodiment, when the processor executes the computer program, the following steps are implemented:

[0230] The controlling the programmable logic device to switch the backup voltage reference chip to work and configure the main voltage reference chip according to the file to be configured and the main backup configuration includes:

[0231] Modify the main version file according to the configuration data of the file to be configured and modify the main check code to the check code to be configured;

[0232] After the configuration is completed, control the programmable logic device to switch the main voltage reference chip to work and determine whether the main voltage reference chip works normally.

[0233] In one embodiment, when the processor executes the computer program, the following steps are implemented:

[0234] Controlling the programmable logic device to switch the operation of the primary voltage reference chip and determining whether the primary voltage reference chip is operating properly includes:

[0235] Obtaining first operating data corresponding to the primary voltage reference chip according to the test period and determining whether the test period is greater than a test period threshold;

[0236] If so, calculating a first data average value according to the first operating data and determining whether the first data average value exceeds the chip threshold;

[0237] If not, determining whether the first operating data exceeds the chip threshold.

[0238] In one embodiment, when the processor executes the computer program, the following steps are implemented:

[0239] After controlling the programmable logic device to switch the operation of the primary voltage reference chip and determining whether the primary voltage reference chip is operating properly, the following steps are included:

[0240] When it is determined that the first data average value or the first operating data exceeds the chip threshold, alarming the user and controlling the programmable logic device to switch the operation of the backup voltage reference chip;

[0241] Restoring the primary version file and the primary check code according to the backup data in the primary backup configuration;

[0242] After completing the restoration of the primary voltage reference chip, controlling the programmable logic device to switch the operation of the primary voltage reference chip.

[0243] In one embodiment, when the processor executes the computer program, the following steps are implemented:

[0244] Configuring the backup voltage reference chip according to the to-be-configured file and the backup version file includes:

[0245] Modifying the backup version file according to the configuration data and modifying the backup check code to the to-be-configured check code;

[0246] After the configuration is completed, controlling the programmable logic device to switch the operation of the backup voltage reference chip and determining whether the backup voltage reference chip is operating properly.

[0247] In one embodiment, when the processor executes the computer program, the following steps are implemented:

[0248] After the configuration is completed, controlling the programmable logic device to switch the standby voltage reference chip to work and determining whether the standby voltage reference chip is working properly includes:

[0249] Obtaining second working data corresponding to the standby voltage reference chip according to the test period and determining whether the test period exceeds a test period threshold;

[0250] If so, calculating a second data average value according to the second working data and determining whether the second data average value exceeds the chip threshold;

[0251] If not, determining whether the second working data exceeds the chip threshold;

[0252] When it is determined that the second data average value or the second working data does not exceed the chip threshold, configuring the primary voltage reference chip according to the profile to be configured.

[0253] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:

[0254] Receiving configuration information sent by a user, where the configuration information includes a server address, a chip threshold, and a test period;

[0255] When it is detected that the host is in a standby state, obtaining a profile to be configured from a server according to the server address and obtaining a standby version file according to a standby register of the standby voltage reference chip;

[0256] Determining whether a check code to be configured of the profile to be configured is consistent with a standby check code of the standby version file;

[0257] If so, configuring the primary voltage reference chip according to the profile to be configured and the standby voltage reference chip;

[0258] If not, configuring the standby voltage reference chip according to the profile to be configured and the standby version file.

[0259] In one of the embodiments, when the computer program is executed by a processor, the following steps are implemented:

[0260] The configuring the primary voltage reference chip according to the profile to be configured and the standby voltage reference chip includes:

[0261] Obtaining a primary version file according to a primary register of the primary voltage reference chip and generating a primary backup configuration;

[0262] Determining whether the check code to be configured is consistent with a primary check code corresponding to the primary version file;

[0263] If not, control the programmable logic device to switch the operation of the standby voltage reference chip and configure the primary voltage reference chip according to the profile to be configured and the primary backup configuration;

[0264] If so, report an error to the user.

[0265] In one embodiment, when the computer program is executed by a processor, the following steps are implemented:

[0266] The controlling the programmable logic device to switch the operation of the standby voltage reference chip and configure the primary voltage reference chip according to the profile to be configured and the primary backup configuration includes:

[0267] Modify the primary version file according to the configuration data of the profile to be configured and modify the primary check code to the check code to be configured;

[0268] After the configuration is completed, control the programmable logic device to switch the operation of the primary voltage reference chip and determine whether the primary voltage reference chip is operating normally.

[0269] In one embodiment, when the computer program is executed by a processor, the following steps are implemented:

[0270] The controlling the programmable logic device to switch the operation of the primary voltage reference chip and determine whether the primary voltage reference chip is operating normally includes:

[0271] Obtain the first working data corresponding to the primary voltage reference chip according to the test period and determine whether the test period is greater than the test period threshold;

[0272] If so, calculate the first data average value according to the first working data and determine whether the first data average value exceeds the chip threshold;

[0273] If not, determine whether the first working data exceeds the chip threshold.

[0274] In one embodiment, when the computer program is executed by a processor, the following steps are implemented:

[0275] After the controlling the programmable logic device to switch the operation of the primary voltage reference chip and determine whether the primary voltage reference chip is operating normally includes:

[0276] When it is determined that the first data average value or the first working data exceeds the chip threshold, alarm the user and control the programmable logic device to switch the operation of the standby voltage reference chip;

[0277] Restore the primary version file and the primary check code according to the backup data in the primary backup configuration;

[0278] After restoring the primary voltage reference chip, control the programmable logic device to switch the operation of the primary voltage reference chip.

[0279] In one embodiment, when the computer program is executed by a processor, the following steps are implemented:

[0280] Configuring the standby voltage reference chip according to the to-be-configured file and the standby version file includes:

[0281] Modify the standby version file according to the configuration data and modify the standby check code to the to-be-configured check code;

[0282] After the configuration is completed, control the programmable logic device to switch the operation of the standby voltage reference chip and determine whether the standby voltage reference chip is working properly.

[0283] In one embodiment, when the computer program is executed by a processor, the following steps are implemented:

[0284] After the configuration is completed, controlling the programmable logic device to switch the operation of the standby voltage reference chip and determining whether the standby voltage reference chip is working properly includes:

[0285] Obtain the second working data corresponding to the standby voltage reference chip according to the test period and determine whether the test period exceeds the test period threshold;

[0286] If so, calculate the second data average value according to the second working data and determine whether the second data average value exceeds the chip threshold;

[0287] If not, determine whether the second working data exceeds the chip threshold;

[0288] When it is determined that the second data average value or the second working data does not exceed the chip threshold, configure the primary voltage reference chip according to the to-be-configured file.

[0289] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, storage, database, or other medium used in the various embodiments provided in the present application can include non-volatile and / or volatile memories. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and Rambus dynamic RAM (RDRAM), etc.

[0290] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.

[0291] The above-described embodiments merely represent several implementation manners of the present application. The description is relatively specific and detailed, but it should not be construed as a limitation on the scope of the invention patent. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the appended claims.

Claims

1. A method for configuring a voltage reference chip, which is applied to a board controller. The method includes: Receiving configuration information sent by a user, where the configuration information includes a server address, a chip threshold, and a test period; When detecting that the host is in a standby state, obtaining a file to be configured from a server according to the server address and obtaining a backup version file according to a backup register of a backup voltage reference chip; Determining whether a check code to be configured of the file to be configured is consistent with a backup check code of the backup version file; If so, configuring a primary voltage reference chip according to the file to be configured and the backup voltage reference chip; If not, configuring the backup voltage reference chip according to the file to be configured and the backup version file; The configuring the primary voltage reference chip according to the file to be configured and the backup voltage reference chip includes: Obtaining a primary version file according to a primary register of the primary voltage reference chip and generating a primary backup configuration; Determining whether the check code to be configured is consistent with a primary check code corresponding to the primary version file; If not, controlling a programmable logic device to switch the backup voltage reference chip to work and configuring the primary voltage reference chip according to the file to be configured and the primary backup configuration; If so, reporting an error to the user; The controlling the programmable logic device to switch the backup voltage reference chip to work and configuring the primary voltage reference chip according to the file to be configured and the primary backup configuration includes: Modifying the primary version file according to configuration data of the file to be configured and modifying the primary check code to the check code to be configured; After the configuration is completed, controlling the programmable logic device to switch the primary voltage reference chip to work and determining whether the primary voltage reference chip works normally; The configuring the backup voltage reference chip according to the file to be configured and the backup version file includes: Modifying the backup version file according to configuration data and modifying the backup check code to the check code to be configured; After the configuration is completed, controlling the programmable logic device to switch the backup voltage reference chip to work and determining whether the backup voltage reference chip works normally.

2. The method according to claim 1, characterized in that, The controlling the programmable logic device to switch the primary voltage reference chip to work and determining whether the primary voltage reference chip works normally includes: Obtaining first working data corresponding to the primary voltage reference chip according to the test period and determining whether the test period is greater than a test period threshold; If so, calculating a first data average value according to the first working data and determining whether the first data average value exceeds the chip threshold; If not, determining whether the first working data exceeds the chip threshold.

3. The method according to claim 2, wherein After the controlling the programmable logic device to switch the primary voltage reference chip to work and determining whether the primary voltage reference chip works normally includes: When determining that the first data average value or the first working data exceeds the chip threshold, alarming the user and controlling the programmable logic device to switch the backup voltage reference chip to work; Restore the primary version file and the primary checksum according to the backup data in the primary backup configuration; After restoring the primary voltage reference chip, control the programmable logic device to switch the primary voltage reference chip to work.

4. The method according to claim 1, characterized in that, After the configuration is completed, controlling the programmable logic device to switch the standby voltage reference chip to work and determining whether the standby voltage reference chip is working properly includes: Obtain the second working data corresponding to the standby voltage reference chip according to the test period and determine whether the test period exceeds a test period threshold; If so, calculate a second data average value according to the second working data and determine whether the second data average value exceeds the chip threshold; If not, determine whether the second working data exceeds the chip threshold; When it is determined that the second data average value or the second working data does not exceed the chip threshold, configure the primary voltage reference chip according to the file to be configured.

5. A voltage reference chip configuration device for implementing the voltage reference chip configuration method as described in claim 1, applied to a baseboard controller, the device includes: A receiving module, configured to receive configuration information sent by a user, where the configuration information includes a server address and a chip threshold; An obtaining module, configured to obtain a file to be configured from a server according to the server address and obtain a standby version file according to a standby register of a standby voltage reference chip when detecting that the host is in a standby state; A determining module, configured to determine whether the checksum to be configured of the file to be configured is consistent with the standby checksum of the standby version file; A first configuration module, if so, configured to configure a primary voltage reference chip according to the file to be configured and the standby voltage reference chip; A second configuration module, if not, configured to configure the standby voltage reference chip according to the file to be configured and the standby version file.

6. An electronic device, characterized in that, including: One or more processors; And a memory associated with the one or more processors, the memory is used to store program instructions, and when the program instructions are read and executed by the one or more processors, execute the method as described in any one of claims 1 to 4.

7. A computer storage medium, characterized in that, A computer program is stored thereon, wherein when the program is executed by a processor, the method as described in any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Method for backing up main edition and spare edition on single chip

    CN102087603A

  • Mainboard VR firmware upgrading method and device, server and readable storage medium

    CN110515635A