Method and device for upgrading power supply firmware on line by double-node server and electronic equipment

Through the arbitration mechanism, one node in the two-node server is selected for power firmware upgrade, and switch to another node if necessary, which solves the problem that the two-node server cannot upgrade the power firmware due to node 0, and improves the reliability of the system.

CN119987802APending Publication Date: 2025-05-13INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411388991.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-30
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

The dual-node server only upgrades the power firmware online through Node 0. If there is a problem with Node 0, it cannot upgrade the power firmware, which violates the reliability concept of the dual-node server.

Method used

Select a node through the arbitration mechanism for power firmware upgrades and release control permissions after the upgrade is completed. If the selected node does not release control permission within the preset time period, an interrupt signal is sent to switch another node for upgrade.

Benefits of technology

Added redundancy to prevent the problem of not being able to upgrade the power firmware after problems occur in the first node, thereby improving the reliability of the two-node server.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119987802A_ABST
    Figure CN119987802A_ABST
Patent Text Reader

Abstract

The invention provides a method and a device for online upgrading power supply firmware of a double-node server and electronic equipment, and relates to the technical field of servers. The method comprises the following steps: if a power supply firmware upgrading request sent by a substrate management controller of two nodes of the double-node server is received, upgrading the power supply firmware; if yes, arbitration release is carried out on a power supply firmware upgrading request sent by the substrate management controller of the first node, so that the substrate management controller of the first node obtains the control authority of the power supply firmware, and the control authority of the power supply firmware is released after upgrading of the power supply firmware is completed; and if the substrate management controller of the first node does not release the control authority of the power supply firmware after the preset duration, sending an interrupt signal to the substrate management controller of the second node so as to switch the substrate management controller of the second node to upgrade the power supply firmware. According to the invention, redundancy is increased, the problem that the power supply firmware cannot be upgraded after the first node goes wrong is prevented, and thus the reliability of the dual-node server can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of servers, and in particular to a method, a device and an electronic device for online upgrading power supply firmware of a dual-node server. Background Art

[0002] A dual-node server is a server architecture that integrates two independent computing nodes. This design is often used to increase computing power, improve redundancy, and reduce space usage. Two independent computing nodes share a set of power firmware and a power supply card, which can save space and cost. Power firmware refers to the software or firmware used for the power supply unit (PSU), which is responsible for managing and monitoring the performance and function of the power supply.

[0003] Currently, the dual-node server can only upgrade the power supply firmware online through node 0. If a problem occurs in node 0, the power supply firmware cannot be upgraded, which does not conform to the reliability concept of the dual-node server. Summary of the invention

[0004] The present invention provides a method, device and electronic device for online upgrading of power supply firmware of a dual-node server, which are used to increase redundancy and prevent the problem that the power supply firmware cannot be upgraded after a problem occurs in the first node, thereby improving the reliability of the dual-node server.

[0005] The present invention provides a method for online upgrading of power supply firmware of a dual-node server, which is applied to a controller, and the method comprises: If power supply firmware upgrade requests sent by baseboard management controllers of two nodes of the dual-node server are received, the power supply firmware upgrade request sent by the baseboard management controller of the first node is arbitrated and released, so that the baseboard management controller of the first node obtains the control authority of the power supply firmware, and releases the control authority of the power supply firmware after the power supply firmware upgrade is completed; If the baseboard management controller of the first node does not release the control authority of the power firmware after a preset time, an interrupt signal is sent to the baseboard management controller of the second node to switch the baseboard management controller of the second node to upgrade the power firmware.

[0006] According to a method for online upgrading of power supply firmware of a dual-node server provided by the present invention, the controller maintains two identical status registers, and the baseboard management controller of the first node and the baseboard management controller of the second node each correspond to one status register; the status register is used to store the status of the baseboard management controller of the first node and the status of the baseboard management controller of the second node.

[0007] According to a method for online upgrading power supply firmware of a dual-node server provided by the present invention, the arbitrating and releasing the power supply firmware upgrade request sent by the baseboard management controller of the first node includes: Querying a status of a baseboard management controller of the first node and a status of a baseboard management controller of the second node; If the state of the baseboard management controller of the first node and the state of the baseboard management controller of the second node are both in a non-occupied state, arbitrating and releasing the power firmware upgrade request sent by the baseboard management controller of the first node according to the priority; The method further comprises: Sending an interrupt signal to the baseboard management controller of the second node, so that the baseboard management controller of the second node determines that the state of the baseboard management controller of the first node is occupied through the corresponding state register, and prohibits sending the power supply firmware upgrade request to the controller; The occupied state is used to indicate that the node is occupying the power firmware to upgrade the power firmware, and the unoccupied state is used to indicate that the baseboard management controller of the node has not sent the power firmware upgrade request or has released the control authority of the power firmware.

[0008] A method for online upgrading of power supply firmware of a dual-node server provided by the present invention also includes: If the baseboard management controller of the first node releases the control authority of the power supply firmware, an interrupt signal is sent to the baseboard management controller of the second node, so that the baseboard management controller of the second node determines that the state of the baseboard management controller of the first node is a non-occupied state through the corresponding state register, and allows the power supply firmware upgrade request to be sent to the controller; The non-occupied state is used to indicate that the baseboard management controller of the node has released the control authority of the power firmware.

[0009] A method for online upgrading of power supply firmware of a dual-node server provided by the present invention also includes: If the power firmware upgrade request sent by the baseboard management controller of the second node is received, querying the status of the baseboard management controller of the first node; If the state of the baseboard management controller of the first node is occupied, the power supply firmware upgrade request sent by the baseboard management controller of the second node is intercepted by arbitration, and an error code is returned to the baseboard management controller of the second node; The occupancy status is used to indicate that the node is occupying the power supply firmware to upgrade the power supply firmware.

[0010] A method for online upgrading of power supply firmware of a dual-node server provided by the present invention also includes: If the power firmware upgrade request sent by the baseboard management controller of the second node is received, querying the status of the baseboard management controller of the first node; If the state of the baseboard management controller of the first node is a non-occupied state, the power supply firmware upgrade request sent by the baseboard management controller of the second node is arbitrated and released, and a correct code is returned to the baseboard management controller of the second node, so that the baseboard management controller of the second node obtains the control authority of the power supply firmware, and releases the control authority of the power supply firmware after the power supply firmware upgrade is completed; Sending an interrupt signal to the baseboard management controller of the first node, so that the baseboard management controller of the first node determines that the state of the baseboard management controller of the second node is occupied through the corresponding state register, and prohibits sending the power supply firmware upgrade request to the controller; The occupied state is used to indicate that the node is occupying the power firmware to upgrade the power firmware, and the unoccupied state is used to indicate that the baseboard management controller of the node has not sent the power firmware upgrade request or has released the control authority of the power firmware.

[0011] According to a method for online upgrading power supply firmware of a dual-node server provided by the present invention, the occupancy status includes an application occupancy status, an upgrading status and an upgrade completion status; Also includes: When the power supply firmware upgrade request sent by the baseboard management controller of the node is arbitrated and released, the state of the baseboard management controller of the node in the two identical status registers is updated to the application occupation state, so that after the baseboard management controller of the node is restarted, when it is determined through the corresponding status register that the state of the baseboard management controller of the node is the application occupation state, the power supply firmware is upgraded; In the case where the baseboard management controller of the node is upgrading the power supply firmware, the state of the baseboard management controller of the node in the two identical status registers is updated to the upgrading state, so that after the baseboard management controller of the node is restarted, when it is determined through the corresponding status register that the state of the baseboard management controller of the node is the upgrading state, the control authority of the power supply firmware is released or the user is reminded to re-upgrade; When the baseboard management controller of the node has completed upgrading the power supply firmware, the status of the baseboard management controller of the node in the two identical status registers is updated to the upgraded state, so that after the baseboard management controller of the node is restarted, when it is determined through the corresponding status register that the status of the baseboard management controller of the node is the upgraded state, the control authority of the power supply firmware is released.

[0012] The present invention also provides a device for online upgrading of power supply firmware of a dual-node server, which is applied to a controller, and the device comprises: an arbitration module, for arbitrating and releasing the power firmware upgrade request sent by the baseboard management controller of the first node if receiving the power firmware upgrade request sent by the baseboard management controller of the two nodes of the dual-node server, so that the baseboard management controller of the first node obtains the control authority of the power firmware, and releasing the control authority of the power firmware after the power firmware upgrade is completed; The interrupt module is used to send an interrupt signal to the baseboard management controller of the second node if the baseboard management controller of the first node does not release the control authority of the power firmware after a preset time, so as to switch the baseboard management controller of the second node to upgrade the power firmware.

[0013] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for online upgrading power supply firmware of a dual-node server as described in any one of the above is implemented.

[0014] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for online upgrading of power supply firmware of a dual-node server as described in any one of the above.

[0015] The present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the above-mentioned methods for online upgrading of power supply firmware of a dual-node server.

[0016] The method, device and electronic device for online upgrading of power supply firmware of a dual-node server provided by the present invention, first, if a power supply firmware upgrade request sent by the baseboard management controllers of the two nodes of the dual-node server is received, that is, the two nodes jointly compete for the control authority of the power supply firmware, then the power supply firmware upgrade request sent by the baseboard management controller of the first node is arbitrated and released, that is, one of the nodes is selected through the arbitration mechanism, so that the baseboard management controller of the first node obtains the control authority of the power supply firmware, and releases the control authority of the power supply firmware after the power supply firmware is upgraded; then, if the baseboard management controller of the first node does not release the control authority of the power supply firmware after a preset time, that is, the first node has an abnormal occupancy problem, then an interrupt signal is sent to the baseboard management controller of the second node to switch the baseboard management controller of the second node to upgrade the power supply firmware; that is, after a problem occurs in the first node, the second node can be switched to upgrade the power supply firmware. Therefore, the present invention increases redundancy, prevents the problem that the power supply firmware cannot be upgraded after a problem occurs in the first node, and thus can improve the reliability of the dual-node server. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0018] Figure 1 It is a flowchart of a method for online upgrading of power supply firmware of a dual-node server provided by an embodiment of the present invention.

[0019] Figure 2 It is a schematic diagram of the software architecture of a dual-node server provided in an embodiment of the present invention.

[0020] Figure 3 It is a schematic diagram of the execution flow of the software architecture of the dual-node server provided by an embodiment of the present invention.

[0021] Figure 4 The invention is a schematic diagram of the structure of a device for online upgrading of power supply firmware of a dual-node server provided by an embodiment of the present invention.

[0022] Figure 5 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0023] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0024] A dual-node server is a server architecture that integrates two independent computing nodes. This design is often used to increase computing power, improve redundancy, and reduce space usage. Each independent computing node is usually equipped with independent CPU, memory, and storage, which enables it to handle tasks such as high-performance computing (HPC) and big data analysis. The dual-node design usually enables redundant power supplies, cooling fans, and network interfaces, which enhances the reliability of the system. The dual-node machine integrates two independent computing nodes in one chassis, saving physical space in the computer room or data center. The dual-node machine provides many advantages in terms of high-performance computing, redundancy, space saving, and easy maintenance, and is widely used in various Internet Technology (IT) backgrounds. Choosing the right dual-node server can bring higher efficiency and reduce operating costs for enterprises.

[0025] Two independent computing nodes share a set of power firmware and a power supply card, which can save space and cost. Power firmware refers to the relevant software or firmware used for PSU, which is responsible for managing and monitoring the performance and function of the power supply.

[0026] The power supply firmware can provide the following functions: 1) Power management: monitoring power output, load balancing and efficiency optimization; 2) Fault monitoring: Detect abnormal conditions in power supply operation, such as overvoltage, overcurrent or overtemperature, and take corresponding measures; 3) Remote management: supports remote monitoring and control of power supply, which is convenient for users to manage; 4) Firmware update: allows users to update the power supply firmware via the network or locally to improve functions or fix problems.

[0027] When selecting or using power firmware, you generally need to ensure its compatibility with the device and whether it meets the specific power requirements.

[0028] Currently, the dual-node server can only upgrade the power supply firmware online through node 0. If a problem occurs in node 0, the power supply firmware cannot be upgraded, which does not conform to the reliability concept of the dual-node server.

[0029] Based on this, an embodiment of the present invention provides a method, device and electronic device for online upgrading of power supply firmware of a dual-node server, which are described in detail below.

[0030] Combine the following Figure 1-Figure 3 The present invention describes a method for online upgrading of power supply firmware of a dual-node server.

[0031] Please refer to Figure 1 , Figure 1 1 is a flow chart of a method for online upgrading of power supply firmware of a dual-node server provided by an embodiment of the present invention. The method is applied to a controller such as Figure 1 As shown, the method may include step 101 and step 102.

[0032] Step 101: If a power firmware upgrade request is received from the baseboard management controllers of the two nodes of the dual-node server, the power firmware upgrade request sent by the baseboard management controller of the first node is arbitrated and released so that the baseboard management controller of the first node obtains the control authority of the power firmware, and releases the control authority of the power firmware after the power firmware upgrade is completed.

[0033] Specifically, the controller may be implemented by a complex programmable logic device (CPLD), but the present embodiment is not limited thereto.

[0034] like Figure 2 As shown, the baseboard management controllers of the two nodes of the dual-node server send a power firmware upgrade request to the controller. That is, the baseboard management controllers of the two nodes of the dual-node server compete for the control authority of the power firmware. After receiving the power firmware upgrade request sent by the baseboard management controllers of the two nodes of the dual-node server, the controller selects one of the nodes through the arbitration mechanism, that is, arbitrates and releases the power firmware upgrade request sent by the baseboard management controller of the first node.

[0035] The baseboard management controller of the first node obtains the control authority of the power supply firmware and upgrades the power supply firmware through the following steps: ① Understand the model and version: Obtain the brand, model and current firmware version of the power supply firmware through the Inter-Integrated Circuit Bus (I2CBus) to ensure that the correct power supply firmware is updated; ② Back up the current configuration: Before upgrading, record or back up the current configuration parameters (if applicable) to prevent problems from occurring and restore them; ③ The PSU manufacturer provides the latest power supply firmware version and related release notes; ④ Connect to the PSU: Use the Universal Serial Bus (USB), serial port or network interface to connect to the PSU as needed to ensure a stable connection; ⑤ Firmware upgrade tool: The baseboard management controller of the first node integrates some special software tools provided by manufacturers to upgrade the power supply firmware; ⑥ Perform the upgrade: Upload the new firmware file through the network interface of the baseboard management controller of the first node and start the upgrade process. Do not disconnect the power supply or network connection during the process; ⑦ Verify the upgrade: After the upgrade is completed, check the version number of the power supply firmware to confirm whether the upgrade is successful and check whether the various functions of the power supply are working properly; ⑧ Restore the configuration. If the configuration parameters were recorded during the backup, the configuration parameters can be restored to the power supply firmware after the upgrade. At this time, the baseboard management controller of the first node has completed the upgrade of the power supply firmware. After the upgrade of the power supply firmware is completed, the baseboard management controller of the first node releases the control authority of the power supply firmware.

[0036] Optionally, if the baseboard management controller of the first node does not obtain the brand, model and current firmware version of the power supply firmware, the power supply firmware is a key component and the baseboard management controller of the first node is not allowed to upgrade the power supply firmware, thereby avoiding power supply firmware upgrade failure.

[0037] Step 102: If the baseboard management controller of the first node does not release the control authority of the power firmware after a preset time, an interrupt signal is sent to the baseboard management controller of the second node to switch the baseboard management controller of the second node to upgrade the power firmware.

[0038] Specifically, the controller starts timing after receiving a power firmware upgrade request sent by the baseboard management controller of the first node. If the baseboard management controller of the first node has not released the control authority of the power firmware within a preset time (for example, 30 minutes), it is considered that the baseboard management controller of the first node has an abnormal occupancy problem, and the control authority of the power firmware is released, and an interrupt signal is sent to the baseboard management controller of the second node. Figure 2 The switch shown switches the baseboard management controller of the second node to upgrade the power supply firmware, so that the second node can be switched to upgrade the power supply firmware after a problem occurs in the first node.

[0039] Furthermore, when the baseboard management controller of the first node has an abnormal occupancy problem, it is prompted that the baseboard management controller of the first node fails in attempting to upgrade the power firmware, and it is recommended to check the error and handle it.

[0040] The method for online upgrading of power supply firmware of a dual-node server provided by an embodiment of the present invention, first, if a power supply firmware upgrade request sent by the baseboard management controllers of the two nodes of the dual-node server is received, that is, the two nodes jointly compete for the control authority of the power supply firmware, then the power supply firmware upgrade request sent by the baseboard management controller of the first node is arbitrated and released, that is, one of the nodes is selected through the arbitration mechanism, so that the baseboard management controller of the first node obtains the control authority of the power supply firmware, and releases the control authority of the power supply firmware after the power supply firmware is upgraded; then, if the baseboard management controller of the first node does not release the control authority of the power supply firmware after a preset time, that is, the first node has an abnormal occupancy problem, then an interrupt signal is sent to the baseboard management controller of the second node to switch the baseboard management controller of the second node to upgrade the power supply firmware; that is, after a problem occurs in the first node, the second node can be switched to upgrade the power supply firmware. Therefore, the embodiment of the present invention increases redundancy to prevent the problem that the power supply firmware cannot be upgraded after a problem occurs in the first node, thereby improving the reliability of the dual-node server.

[0041] In one embodiment, the controller maintains two identical status registers, one corresponding to each of the baseboard management controller of the first node and the baseboard management controller of the second node; the status register is used to store the status of the baseboard management controller of the first node and the status of the baseboard management controller of the second node.

[0042] In this embodiment, since the status of the baseboard management controller of the first node and the status of the baseboard management controller of the second node are stored in the same two status registers, the status register of one node no longer only stores the status of the baseboard management controller of the node. The status of the baseboard management controllers of the two nodes are no longer isolated from each other, which can greatly reduce maintenance work, thereby further improving the operation and maintenance efficiency of the data security center and reducing operation and maintenance costs.

[0043] In one embodiment, the arbitration and release of the power firmware upgrade request sent by the baseboard management controller of the first node in step 101 includes: querying the status of the baseboard management controller of the first node and the status of the baseboard management controller of the second node; if the status of the baseboard management controller of the first node and the status of the baseboard management controller of the second node are both in a non-occupied state, then arbitrating and releasing the power firmware upgrade request sent by the baseboard management controller of the first node according to the priority; the method also includes: sending an interrupt signal to the baseboard management controller of the second node, so that the baseboard management controller of the second node determines that the status of the baseboard management controller of the first node is an occupied state through the corresponding status register, and prohibits sending a power firmware upgrade request to the controller; wherein, the occupied state is used to characterize that the node is occupying the power firmware to upgrade the power firmware, and the non-occupied state is used to characterize that the baseboard management controller of the node has not sent a power firmware upgrade request or has released the control authority of the power firmware.

[0044] Specifically, Figure 3 As shown, the baseboard management controllers of the two nodes of the dual-node server send a power firmware upgrade request to the controller. The controller has an internal register (not a status register) that can record the status of the baseboard management controller of the first node and the status of the baseboard management controller of the second node. The controller queries the status of the baseboard management controller of the first node and the status of the baseboard management controller of the second node through the internal register. If the status of the baseboard management controller of the first node and the status of the baseboard management controller of the second node are both in a non-occupied state (the baseboard management controller of the node has not sent a power firmware upgrade request or has released the control authority of the power firmware), the power firmware upgrade request sent by the baseboard management controller of the first node is arbitrated and released according to the priority (the priority of the first node is greater than the priority of the second node by default), and the baseboard management controller of the first node upgrades the power firmware. An interrupt signal is sent to the baseboard management controller of the second node, and the baseboard management controller of the second node queries the status of the baseboard management controller of the first node in the corresponding status register. If the status of the baseboard management controller of the first node is in an occupied state, it means that the first node is occupying the power firmware to upgrade the power firmware, and the baseboard management controller of the second node is prohibited from sending a power firmware upgrade request to the controller, and the baseboard management controller of the second node will not try to occupy the power firmware.

[0045] In this embodiment, the baseboard management controller of one node upgrades the power firmware through a priority arbitration mechanism, and the power firmware upgrade request function of another node is disabled through an interrupt mechanism.

[0046] In one embodiment, the method also includes: if the baseboard management controller of the first node releases the control authority of the power firmware, an interrupt signal is sent to the baseboard management controller of the second node, so that the baseboard management controller of the second node determines that the state of the baseboard management controller of the first node is a non-occupied state through the corresponding status register, allowing a power firmware upgrade request to be sent to the controller; wherein the non-occupied state is used to characterize that the baseboard management controller of the node has released the control authority of the power firmware.

[0047] Specifically, if the baseboard management controller of the first node releases the control authority of the power firmware normally, an interrupt signal is sent to the baseboard management controller of the second node. The baseboard management controller of the second node queries the state of the baseboard management controller of the first node in the corresponding status register. If the state of the baseboard management controller of the first node is a non-occupied state, it means that the baseboard management controller of the first node has released the control authority of the power firmware, allowing the baseboard management controller of the second node to send a power firmware upgrade request to the controller, and the baseboard management controller of the second node can try to occupy the power firmware.

[0048] In this embodiment, when the baseboard management controller of one node has released the control authority of the power firmware, the power firmware upgrade request function of another node is enabled through an interrupt mechanism.

[0049] In one embodiment, the method further includes: if a power firmware upgrade request sent by a baseboard management controller of a second node is received, querying the status of the baseboard management controller of the first node; if the status of the baseboard management controller of the first node is an occupied state, arbitrating and intercepting the power firmware upgrade request sent by the baseboard management controller of the second node, and returning an error code to the baseboard management controller of the second node; wherein the occupied state is used to characterize that the node is occupying the power firmware to upgrade the power firmware.

[0050] Specifically, the controller has an internal register (not a status register) that can record the status of the baseboard management controller of the first node and the status of the baseboard management controller of the second node. If the controller only receives a power firmware upgrade request sent by the baseboard management controller of the second node at this time, the controller queries the status of the baseboard management controller of the first node through the internal register. If the status of the baseboard management controller of the first node is occupied, it means that the first node is occupying the power firmware to upgrade the power firmware. The controller arbitrates and intercepts the power firmware upgrade request sent by the baseboard management controller of the second node, and returns an error code to the baseboard management controller of the second node, which means that the baseboard management controller request of the second node failed.

[0051] In this embodiment, when a node is occupying the power firmware to upgrade the power firmware, the power firmware upgrade request sent by the baseboard management controller of another node is intercepted through the arbitration mechanism, and the baseboard management controller of the other node is prompted that the request fails.

[0052] In one embodiment, the method also includes: if a power firmware upgrade request sent by the baseboard management controller of the second node is received, querying the status of the baseboard management controller of the first node; if the status of the baseboard management controller of the first node is a non-occupied state, arbitrating and releasing the power firmware upgrade request sent by the baseboard management controller of the second node, and returning a correct code to the baseboard management controller of the second node, so that the baseboard management controller of the second node obtains the control authority of the power firmware, and releases the control authority of the power firmware after the power firmware upgrade is completed; sending an interrupt signal to the baseboard management controller of the first node, so that the baseboard management controller of the first node determines that the status of the baseboard management controller of the second node is an occupied state through the corresponding status register, and prohibits sending a power firmware upgrade request to the controller; wherein, the occupied state is used to characterize that the node is occupying the power firmware to upgrade the power firmware, and the non-occupied state is used to characterize that the baseboard management controller of the node has not sent a power firmware upgrade request or has released the control authority of the power firmware.

[0053] Specifically, the controller has an internal register (not a status register) that can record the status of the baseboard management controller of the first node and the status of the baseboard management controller of the second node. If the controller only receives the power firmware upgrade request sent by the baseboard management controller of the second node at this time, the controller queries the status of the baseboard management controller of the first node through the internal register. If the status of the baseboard management controller of the first node is a non-occupied state, it means that the baseboard management controller of the first node has not sent a power firmware upgrade request or has released the control authority of the power firmware. Since the baseboard management controller of the first node has not sent a power firmware upgrade request at this time, the controller arbitrates and releases the power firmware upgrade request sent by the baseboard management controller of the second node, and returns a correct code to the baseboard management controller of the second node. The baseboard management controller of the second node obtains the control authority of the power firmware, upgrades the power firmware, and releases the control authority of the power firmware after the power firmware upgrade is completed. While returning the correct code to the baseboard management controller of the second node, an interrupt signal is sent to the baseboard management controller of the first node. The baseboard management controller of the first node queries the status of the baseboard management controller of the second node in the corresponding status register. If the baseboard management controller of the second node is in the occupied state, it means that the baseboard management controller of the second node is occupying the power firmware to upgrade the power firmware, and the baseboard management controller of the first node is prohibited from sending a power firmware upgrade request to the controller, and the baseboard management controller of the first node will not try to occupy the power firmware.

[0054] In this embodiment, when a node sends a power firmware upgrade request, the baseboard management controller of the node upgrades the power firmware through an arbitration mechanism, and the power firmware upgrade request function of another node is disabled through an interrupt mechanism.

[0055] In one embodiment, the occupied state includes an applied occupied state, an upgrading state and an upgraded completed state; and further includes: when a power supply firmware upgrade request sent by the baseboard management controller of the node is arbitrated and released, the state of the baseboard management controller of the node in two identical status registers is updated to an applied occupied state, so that after the baseboard management controller of the node is restarted, when the state of the baseboard management controller of the node is determined to be an applied occupied state through the corresponding status register, the power supply firmware is upgraded; when the baseboard management controller of the node is upgrading the power supply firmware, the state of the baseboard management controller of the node in two identical status registers is updated to an upgraded state, so that after the baseboard management controller of the node is restarted, when the state of the baseboard management controller of the node is determined to be an upgraded state through the corresponding status register, the control authority of the power supply firmware is released or the user is reminded to upgrade again; when the baseboard management controller of the node has completed the power supply firmware upgrade, the state of the baseboard management controller of the node in two identical status registers is updated to an upgraded completed state, so that after the baseboard management controller of the node is restarted, when the state of the baseboard management controller of the node is determined to be an upgraded completed state through the corresponding status register, the control authority of the power supply firmware is released.

[0056] Specifically, since the baseboard management controller of the node may be restarted quickly due to other reasons, the baseboard management controller of the node can know the status of the baseboard management controller of the node before the restart through the corresponding status register. If it is in the application occupation state, it means that the power supply firmware has not been upgraded, so the power supply firmware is upgraded. If it is in the upgrading state, it means that the power supply firmware was being upgraded before the restart, and the last upgrade failed after the restart, then the control authority of the power supply firmware is actively released or the user is reminded to upgrade again, without waiting for more than the preset time (for example, 30 minutes). If it is in the upgrade completion state, it means that the power supply firmware has been upgraded before the restart, then the control authority of the power supply firmware is released immediately.

[0057] In this embodiment, after the baseboard management controller of the node suddenly and quickly restarts, different power supply firmware upgrade measures can be taken according to different states recorded in the status register, thereby further improving the reliability of the dual-node server.

[0058] The following is a description of an apparatus for online upgrading of power supply firmware of a dual-node server provided by the present invention. The apparatus for online upgrading of power supply firmware of a dual-node server described below and the method for online upgrading of power supply firmware of a dual-node server described above can refer to each other.

[0059] Please refer to Figure 4 , Figure 4 Schematic diagram of the structure of the device for online upgrading of power supply firmware of a dual-node server provided by an embodiment of the present invention. The device is applied to a controller such as Figure 4As shown, the device may include: The arbitration module 10 is used for arbitrating and releasing the power firmware upgrade request sent by the baseboard management controller of the first node if receiving the power firmware upgrade request sent by the baseboard management controller of the two nodes of the dual-node server, so that the baseboard management controller of the first node obtains the control authority of the power firmware, and releases the control authority of the power firmware after the power firmware upgrade is completed; The interrupt module 20 is used to send an interrupt signal to the baseboard management controller of the second node to switch the baseboard management controller of the second node to upgrade the power firmware if the baseboard management controller of the first node does not release the control authority of the power firmware after a preset time.

[0060] In one embodiment, the controller maintains two identical status registers, one corresponding to each of the baseboard management controller of the first node and the baseboard management controller of the second node; the status register is used to store the status of the baseboard management controller of the first node and the status of the baseboard management controller of the second node.

[0061] In one embodiment, the arbitration module 10 is specifically used for: Querying a state of a baseboard management controller of a first node and a state of a baseboard management controller of a second node; If the state of the baseboard management controller of the first node and the state of the baseboard management controller of the second node are both in the non-occupied state, the power firmware upgrade request sent by the baseboard management controller of the first node is arbitrated and released according to the priority; The interrupt module 20 is also used for: Sending an interrupt signal to the baseboard management controller of the second node, so that the baseboard management controller of the second node determines that the state of the baseboard management controller of the first node is occupied through the corresponding state register, and prohibits sending a power supply firmware upgrade request to the controller; The occupied state is used to indicate that the node is occupying the power firmware to upgrade the power firmware, and the unoccupied state is used to indicate that the baseboard management controller of the node has not sent a power firmware upgrade request or has released the control authority of the power firmware.

[0062] In one embodiment, the interrupt module 20 is further configured to: If the baseboard management controller of the first node releases the control authority of the power supply firmware, an interrupt signal is sent to the baseboard management controller of the second node, so that the baseboard management controller of the second node determines that the state of the baseboard management controller of the first node is a non-occupied state through the corresponding state register, and allows a power supply firmware upgrade request to be sent to the controller; The non-occupied state is used to indicate that the baseboard management controller of the node has released the control authority of the power firmware.

[0063] In one embodiment, the arbitration module 10 is further configured to: If a power firmware upgrade request sent by the baseboard management controller of the second node is received, querying the state of the baseboard management controller of the first node; If the state of the baseboard management controller of the first node is occupied, the power firmware upgrade request sent by the baseboard management controller of the second node is intercepted by arbitration, and an error code is returned to the baseboard management controller of the second node; The occupied state is used to indicate that the node is occupying the power supply firmware to upgrade the power supply firmware.

[0064] In one embodiment, the arbitration module 10 is further configured to: If a power firmware upgrade request sent by the baseboard management controller of the second node is received, querying the state of the baseboard management controller of the first node; If the state of the baseboard management controller of the first node is the non-occupied state, the power supply firmware upgrade request sent by the baseboard management controller of the second node is arbitrated and released, and a correct code is returned to the baseboard management controller of the second node, so that the baseboard management controller of the second node obtains the control authority of the power supply firmware, and releases the control authority of the power supply firmware after the power supply firmware upgrade is completed; The interrupt module 20 is also used for: Sending an interrupt signal to the baseboard management controller of the first node, so that the baseboard management controller of the first node determines that the state of the baseboard management controller of the second node is occupied through the corresponding state register, and prohibits sending a power supply firmware upgrade request to the controller; The occupied state is used to indicate that the node is occupying the power firmware to upgrade the power firmware, and the unoccupied state is used to indicate that the baseboard management controller of the node has not sent a power firmware upgrade request or has released the control authority of the power firmware.

[0065] In one embodiment, the occupation status includes an application occupation status, an upgrading status, and an upgrading completed status; The device also includes an updating module, which is specifically used for: When a power supply firmware upgrade request sent by a baseboard management controller of a node is arbitrated and released, the status of the baseboard management controller of the node in two identical status registers is updated to an application occupation status, so that after the baseboard management controller of the node is restarted, the power supply firmware is upgraded when it is determined through the corresponding status register that the status of the baseboard management controller of the node is an application occupation status; When the baseboard management controller of the node is upgrading the power supply firmware, the status of the baseboard management controller of the node in two identical status registers is updated to the upgrading status, so that after the baseboard management controller of the node is restarted, when it is determined through the corresponding status register that the status of the baseboard management controller of the node is the upgrading status, the control authority of the power supply firmware is released or the user is reminded to re-upgrade; When the baseboard management controller of the node has completed upgrading the power supply firmware, the status of the baseboard management controller of the node in two identical status registers is updated to the upgraded state, so that after the baseboard management controller of the node is restarted, when it is determined through the corresponding status register that the status of the baseboard management controller of the node is the upgraded state, the control authority of the power supply firmware is released.

[0066] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5 As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 complete mutual communication through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute a method for online upgrading of the power supply firmware of a dual-node server, the method comprising: if a power supply firmware upgrade request sent by the baseboard management controllers of two nodes of the dual-node server is received, the power supply firmware upgrade request sent by the baseboard management controller of the first node is arbitrated and released, so that the baseboard management controller of the first node obtains the control authority of the power supply firmware, and releases the control authority of the power supply firmware after the power supply firmware upgrade is completed; if the baseboard management controller of the first node does not release the control authority of the power supply firmware after a preset time, an interrupt signal is sent to the baseboard management controller of the second node to switch the baseboard management controller of the second node to upgrade the power supply firmware.

[0067] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0068] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the method for online upgrading the power supply firmware of a dual-node server provided by the above-mentioned method embodiments, the method including: if a power supply firmware upgrade request sent by the baseboard management controllers of the two nodes of the dual-node server is received, the power supply firmware upgrade request sent by the baseboard management controller of the first node is arbitrated and released, so that the baseboard management controller of the first node obtains the control authority of the power supply firmware, and releases the control authority of the power supply firmware after the power supply firmware is upgraded; if the baseboard management controller of the first node does not release the control authority of the power supply firmware after a preset period of time, an interrupt signal is sent to the baseboard management controller of the second node to switch the baseboard management controller of the second node to upgrade the power supply firmware.

[0069] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the method for online upgrading the power supply firmware of a dual-node server provided by the above-mentioned method embodiments. The method includes: if a power supply firmware upgrade request is received from the baseboard management controllers of the two nodes of the dual-node server, the power supply firmware upgrade request sent by the baseboard management controller of the first node is arbitrated and released, so that the baseboard management controller of the first node obtains the control authority of the power supply firmware, and releases the control authority of the power supply firmware after the power supply firmware is upgraded; if the baseboard management controller of the first node does not release the control authority of the power supply firmware after a preset period of time, an interrupt signal is sent to the baseboard management controller of the second node to switch the baseboard management controller of the second node to upgrade the power supply firmware.

[0070] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0071] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0072] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for online upgrading of power supply firmware of a dual-node server, characterized in that: Applied to a controller, the method comprises: If power supply firmware upgrade requests sent by baseboard management controllers of two nodes of the dual-node server are received, the power supply firmware upgrade request sent by the baseboard management controller of the first node is arbitrated and released, so that the baseboard management controller of the first node obtains the control authority of the power supply firmware, and releases the control authority of the power supply firmware after the power supply firmware upgrade is completed; If the baseboard management controller of the first node does not release the control authority of the power firmware after a preset time, an interrupt signal is sent to the baseboard management controller of the second node to switch the baseboard management controller of the second node to upgrade the power firmware.

2. The method for online upgrading of power supply firmware of a dual-node server according to claim 1, characterized in that: The controller maintains two identical status registers, one status register corresponding to each of the baseboard management controller of the first node and the baseboard management controller of the second node; the status register is used to store the status of the baseboard management controller of the first node and the status of the baseboard management controller of the second node.

3. The method for online upgrading of power supply firmware of a dual-node server according to claim 2, characterized in that: The arbitrating and releasing the power supply firmware upgrade request sent by the baseboard management controller of the first node includes: Querying a status of a baseboard management controller of the first node and a status of a baseboard management controller of the second node; If the state of the baseboard management controller of the first node and the state of the baseboard management controller of the second node are both in a non-occupied state, arbitrating and releasing the power firmware upgrade request sent by the baseboard management controller of the first node according to the priority; The method further comprises: Sending an interrupt signal to the baseboard management controller of the second node, so that the baseboard management controller of the second node determines that the state of the baseboard management controller of the first node is occupied through the corresponding state register, and prohibits sending the power supply firmware upgrade request to the controller; The occupied state is used to indicate that the node is occupying the power firmware to upgrade the power firmware, and the unoccupied state is used to indicate that the baseboard management controller of the node has not sent the power firmware upgrade request or has released the control authority of the power firmware.

4. The method for online upgrading of power supply firmware of a dual-node server according to claim 2, characterized in that: Also includes: If the baseboard management controller of the first node releases the control authority of the power supply firmware, an interrupt signal is sent to the baseboard management controller of the second node, so that the baseboard management controller of the second node determines that the state of the baseboard management controller of the first node is a non-occupied state through the corresponding state register, and allows the power supply firmware upgrade request to be sent to the controller; The non-occupied state is used to indicate that the baseboard management controller of the node has released the control authority of the power firmware.

5. The method for online upgrading of power supply firmware of a dual-node server according to claim 1, characterized in that: Also includes: If the power firmware upgrade request sent by the baseboard management controller of the second node is received, querying the status of the baseboard management controller of the first node; If the state of the baseboard management controller of the first node is occupied, the power supply firmware upgrade request sent by the baseboard management controller of the second node is intercepted by arbitration, and an error code is returned to the baseboard management controller of the second node; The occupancy status is used to indicate that the node is occupying the power supply firmware to upgrade the power supply firmware.

6. The method for online upgrading of power supply firmware of a dual-node server according to claim 2, characterized in that: Also includes: If the power firmware upgrade request sent by the baseboard management controller of the second node is received, querying the status of the baseboard management controller of the first node; If the state of the baseboard management controller of the first node is a non-occupied state, the power supply firmware upgrade request sent by the baseboard management controller of the second node is arbitrated and released, and a correct code is returned to the baseboard management controller of the second node, so that the baseboard management controller of the second node obtains the control authority of the power supply firmware, and releases the control authority of the power supply firmware after the power supply firmware upgrade is completed; Sending an interrupt signal to the baseboard management controller of the first node, so that the baseboard management controller of the first node determines that the state of the baseboard management controller of the second node is occupied through the corresponding state register, and prohibits sending the power supply firmware upgrade request to the controller; The occupied state is used to indicate that the node is occupying the power firmware to upgrade the power firmware, and the unoccupied state is used to indicate that the baseboard management controller of the node has not sent the power firmware upgrade request or has released the control authority of the power firmware.

7. The method for online upgrading of power supply firmware of a dual-node server according to any one of claims 3, 5 and 6, characterized in that: The occupation status includes application occupation status, upgrading status and upgrade completed status; Also includes: When the power supply firmware upgrade request sent by the baseboard management controller of the node is arbitrated and released, the state of the baseboard management controller of the node in the two identical status registers is updated to the application occupation state, so that after the baseboard management controller of the node is restarted, when it is determined through the corresponding status register that the state of the baseboard management controller of the node is the application occupation state, the power supply firmware is upgraded; In the case where the baseboard management controller of the node is upgrading the power supply firmware, the state of the baseboard management controller of the node in the two identical status registers is updated to the upgrading state, so that after the baseboard management controller of the node is restarted, when it is determined through the corresponding status register that the state of the baseboard management controller of the node is the upgrading state, the control authority of the power supply firmware is released or the user is reminded to re-upgrade; When the baseboard management controller of the node has completed upgrading the power supply firmware, the status of the baseboard management controller of the node in the two identical status registers is updated to the upgraded state, so that after the baseboard management controller of the node is restarted, when it is determined through the corresponding status register that the status of the baseboard management controller of the node is the upgraded state, the control authority of the power supply firmware is released.

8. A device for online upgrading of power supply firmware of a dual-node server, characterized in that: Applied to a controller, the device comprises: an arbitration module, for arbitrating and releasing the power firmware upgrade request sent by the baseboard management controller of the first node if receiving the power firmware upgrade request sent by the baseboard management controller of the two nodes of the dual-node server, so that the baseboard management controller of the first node obtains the control authority of the power firmware, and releasing the control authority of the power firmware after the power firmware upgrade is completed; The interrupt module is used to send an interrupt signal to the baseboard management controller of the second node if the baseboard management controller of the first node does not release the control authority of the power firmware after a preset time, so as to switch the baseboard management controller of the second node to upgrade the power firmware.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method for online upgrading of power supply firmware of a dual-node server according to any one of claims 1 to 7 is implemented.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for online upgrading of power supply firmware of a dual-node server according to any one of claims 1 to 7 is implemented.