Disclosure of Invention
The invention aims to provide a control device and a control method of a voltage regulation module VRM, which are used for solving the problem of system restart failure caused by the fact that the voltage regulation module VRM cannot output powergood when a server system is restarted.
In order to solve the above technical problem, the present invention provides a control device for a voltage regulation module VRM, including a standby power supply standby, a CPLD connected to the voltage regulation module VRM for sending an enable signal to the voltage regulation module VRM, and a CPU connected to the voltage regulation module VRM for providing a power transmission demand to the voltage regulation module VRM, further including:
the standby power supply standby system comprises a substrate management controller BMC connected with the voltage regulation module VRM and a switch connected with the substrate management controller BMC and used for controlling the on-off of the standby power supply standby and the voltage regulation module VRM;
and when monitoring that the voltage value of the VRM is smaller than a first preset value, the BMC controls the switch to be switched off.
Optionally, the switch is specifically a transfer switch.
Optionally, the method further includes:
the alarm device is connected with the baseboard management controller BMC;
correspondingly, the baseboard management controller BMC is further configured to control the alarm device to alarm when the voltage value of the voltage regulation module VRM is monitored to be smaller than the first preset value.
Optionally, the alarm device is specifically an LED indicator light.
In order to solve the above technical problem, the present invention further provides a method for controlling a voltage regulator module VRM, where the BMC based on any one of the above embodiments includes:
monitoring the voltage value of a voltage regulation module VRM;
judging whether the voltage value is smaller than a first preset value or not;
if so, the control switch is opened to cut off the connection between the standby power supply standby and the voltage regulation module VRM.
Optionally, the method further includes:
when the system is restarted, the switch is controlled to be closed to connect the standby power supply standby and the voltage regulation module VRM.
Optionally, when the voltage value is smaller than the first preset value, the method further includes:
and outputting the information of the VRM fault.
Optionally, the method further includes:
and when the voltage value is greater than the first preset value and less than a second preset value, outputting the information of the VRM fault early warning of the voltage regulation module.
Optionally, the method further includes:
generating a fault report for a first fault event of which the voltage value is smaller than the first preset value and a second fault event of which the voltage value is larger than the first preset value and smaller than the second preset value;
and outputting the fault report.
Optionally, the method further includes:
receiving a setting for the first preset value and the second preset value.
In the prior art, because the standby power supply standby is usually adopted in the server to supply power to the system, as long as the system is connected with the alternating current power supply, the standby power supply standby keeps in a power supply state no matter whether the system is started or not. The voltage regulation module VRM sets the output voltage to be in a low value state along with the power failure of the CPU when the system is shut down, the voltage regulation module VRM cannot refresh in the power failure due to the power supply of the standby power supply standby, and the output voltage is locked in the low value state, so that when the system is restarted, the low value voltage of the voltage regulation module VRM is not enough to start the CPU, and therefore a powergood signal is not output, and the system is failed to restart.
Compared with the prior art, the control device of the voltage regulation module VRM provided by the invention comprises a standby power supply standby, a CPLD (complex programmable logic device) connected with the voltage regulation module VRM and used for sending an enabling signal to the voltage regulation module VRM, and a CPU (central processing unit) connected with the voltage regulation module VRM and used for providing power transmission requirements for the voltage regulation module VRM, and also comprises a substrate management controller BMC (baseboard management controller) connected with the voltage regulation module VRM and a switch connected with the substrate management controller BMC and used for controlling the on-off between the standby power supply standby and the voltage regulation module VRM, wherein the substrate management controller BMC controls the switch to be switched off when monitoring that the voltage value of the voltage regulation module VRM is smaller than a first preset value, so that the voltage regulation module VRM and the CPU are ensured to normally interact when a system is restarted, and the problem of system failure restart caused by the fact that the voltage regulation module VRM cannot output powergood is avoided. The invention also provides a control method of the voltage regulation module VRM, which has the beneficial effects and is not repeated herein.
Detailed Description
The core of the invention is to provide a control device and a control method of a voltage regulation module VRM, which are used for solving the problem of system restart failure caused by the fact that the voltage regulation module VRM cannot output powergood when a server system is restarted.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 2 is a schematic diagram of a connection structure and signal transmission of a control device of a voltage regulation module VRM according to an embodiment of the present invention.
In the prior art, because the voltage regulation module VRM uses the power supplied by the standby power supply standby, when the DC of the system is powered off and the AC is not powered off, the phenomenon that the system can not be restarted normally occurs with a certain probability. At this time, when the standby power supply standby is used for supplying power to the system, the standby power supply standby keeps in a power supply state no matter whether the system is started or not as long as the system is connected with the alternating current power supply. When a shutdown command or a restart command is received, the server is not disconnected with the alternating current power supply, the CPLD pulls the enabling signal low, the system starts to gradually power down, the CPU cannot interact with the voltage regulating module VRM at the moment, and the output voltage value in the reg register of the voltage regulating module VRM points to a low value state along with the reduction of the power consumption of the CPU. Because the voltage regulation module VRM is directly connected with the standby power supply standby, the reg register is refreshed after power failure, and the low value state is kept. When the system is restarted, the low-value voltage cannot reach the threshold voltage for starting the system, so that the voltage regulation module VRM does not output a powergood signal to the CPLD, and the system is failed to restart.
After a failure mechanism of server restart failure caused by the voltage regulation module VRM is determined, the problem that the voltage regulation module VRM cannot be powered off to refresh the reg register due to the influence of power supply of the standby power supply standby is solved, and therefore the voltage regulation module VRM is required to be powered off as the CPU when the system is shut down, and the reg register is refreshed in a power-off manner.
As shown in fig. 2, the control device of the voltage regulation module VRM according to the embodiment of the present invention includes a standby power supply standby 201, a CPLD 104 connected to the voltage regulation module VRM101 for sending an enable signal to the voltage regulation module VRM101, and a CPU 103 connected to the voltage regulation module VRM101 for providing a power transmission demand to the voltage regulation module VRM101, and unlike the prior art (see fig. 1), further includes:
a substrate management controller BMC 202 connected to the voltage regulation module VRM101 and a switch 203 connected to the substrate management controller BMC 202 for controlling on/off between the standby power supply standby 201 and the voltage regulation module VRM 101;
when monitoring that the voltage value of the voltage regulation module VRM101 is smaller than the first preset value, the BMC 202 controls the switch 203 to be turned off.
In specific implementation, the switch 203 is used for controlling the on-off between the standby power supply standby 201 and the voltage regulating module VRM101, and specifically, a change-over switch can be adopted, and is a switching electrical appliance for switching over two or more power supplies or loads, and is formed by combining a plurality of contacts, the components are fastened into a whole through bolts, and in the electrical equipment, the switch is mainly used for connecting and disconnecting a circuit infrequently, connecting the power supply and the load, measuring three-phase voltage, controlling the positive and negative rotation, the star-delta starting and the like of a small-capacity asynchronous motor.
The BMC 202 monitors the state of the VRM101 through the I2C signal and controls the on/off of the switch 203.
The first preset value is a voltage critical value which is set by operation and maintenance personnel and can enable the system to be started normally by the voltage regulation module VRM 101. The baseboard management controller BMC 202 collects the output voltage value of the voltage regulation module VRM101 in the process of monitoring the voltage regulation module VRM101, and by analyzing the output voltage value in the historical operating data, an uncertain range of the voltage critical value can be obtained, the output voltage value below the range inevitably causes the system to be unable to restart, and the output voltage value above the range can ensure the normal start of the system. On the basis, the first preset value can be an uncertain range or a value in the uncertain range.
The interaction between the voltage regulation module VRM101 and the CPU 103 and the CPLD 104 can be described with reference to fig. 1 and the description of the prior art, and will not be described herein again.
Compared with the prior art, the control device of the voltage regulation module VRM provided by the invention comprises a standby power supply standby, a CPLD (complex programmable logic device) connected with the voltage regulation module VRM and used for sending an enabling signal to the voltage regulation module VRM, and a CPU (central processing unit) connected with the voltage regulation module VRM and used for providing power transmission requirements for the voltage regulation module VRM, and also comprises a substrate management controller BMC (baseboard management controller) connected with the voltage regulation module VRM and a switch connected with the substrate management controller BMC and used for controlling the on-off between the standby power supply standby and the voltage regulation module VRM, wherein the substrate management controller BMC controls the switch to be switched off when monitoring that the voltage value of the voltage regulation module VRM is smaller than a first preset value, so that the voltage regulation module VRM and the CPU are ensured to normally interact when a system is restarted, and the problem of system failure restart caused by the fact that the voltage regulation module VRM cannot output powergood is avoided.
Fig. 3 is a schematic structural diagram of another control device of the voltage regulation module VRM according to an embodiment of the present invention. On the basis of the foregoing embodiment, in another embodiment, in order to prompt the user that the system restart fault of the server is caused by the voltage regulation module VRM101 locking the low-value voltage, so as to facilitate the user to quickly locate the cause of the system restart fault, the control device of the voltage regulation module VRM may further include an alarm device 301 connected to the BMC 202;
correspondingly, the BMC 202 is further configured to control the alarm device 301 to alarm when the voltage value of the voltage regulation module VRM101 is monitored to be smaller than the first preset value.
In a specific implementation, the alarm device 301 may be a buzzer, an indicator light, or a voice announcer. For example, the alarm device can adopt an LED indicator light.
On the basis of the above detailed description of the various embodiments corresponding to the control device of the voltage regulation module VRM, the present invention also discloses a control method of the voltage regulation module VRM corresponding to the above control device.
Fig. 4 is a flowchart of a control method of the voltage regulation module VRM according to an embodiment of the present invention. As shown in fig. 4, based on the baseboard management controller BMC in the control device of the voltage regulation module VRM provided in the foregoing embodiment, the method for controlling the voltage regulation module VRM includes:
s401: the voltage value of the voltage regulation module VRM is monitored.
S402: judging whether the voltage value is smaller than a first preset value or not; if so, the process proceeds to step S403.
S403: the control switch is opened to cut off the connection between the standby power supply standby and the voltage regulation module VRM.
In a specific implementation, the BMC monitors the voltage value in the reg register of the voltage regulation module VRM101 through the I2C signal, and switches off the switch between the standby power supply standby and the voltage regulation module VRM when the voltage value is lower than the first preset value.
Since the embodiment of the control method portion corresponds to the embodiment of the control device portion, please refer to the description of the embodiment of the control device portion for the embodiment of the control method portion, which is not repeated here.
On the basis of the above embodiment, the control method of the voltage regulation module VRM may further include:
when the voltage value is not less than the first preset value and the switch is in an off state, the switch is controlled to be closed to connect the standby power supply standby and the voltage regulation module VRM.
And when the system is restarted, the control switch is closed, so that the normal work of the voltage regulation module VRM is ensured.
Further, when the voltage value is smaller than the first preset value, the control method of the voltage regulation module VRM further includes:
and outputting the information of the VRM fault.
In addition to the alarm of the fault of the output voltage regulation module VRM by the alarm device in the above-described control device embodiment, the user may also be prompted by displaying a fault information window of the voltage regulation module VRM on a display screen of the server or by sending information of the fault of the output voltage regulation module VRM to a designated address.
In the above embodiment of the control device, it is mentioned that there may be an indeterminate range of the voltage that causes the system to be unable to start, and if the first preset value is a value within the indeterminate range, a voltage value higher than the first preset value within the indeterminate range may also cause the system to be unable to start normally, which needs to prompt the user to check in time, so the control method of the voltage regulation module VRM further includes:
and when the voltage value is greater than the first preset value and less than the second preset value, outputting the information of the VRM fault early warning of the voltage regulation module.
The second preset value here is a value that is larger than the first preset value and is within the above-described uncertain range.
On this basis, since the refresh failure of the voltage regulation module VRM is a large reason that may cause the system restart failure, it is necessary for operation and maintenance personnel to analyze the abnormal voltage value in the history data of the voltage regulation module VRM, and therefore the control method of the voltage regulation module VRM may further include:
generating a fault report for a first fault event of which the voltage value is smaller than a first preset value and a second fault event of which the voltage value is larger than the first preset value and smaller than a second preset value;
and outputting a fault report.
The baseboard management controller BMC captures error log information through an I2C bus, and operation and maintenance personnel can conveniently locate and analyze the operation problems of the server system.
The first and second failure times may include, but are not limited to, a server model, a failure occurrence time, a normal voltage value of the voltage regulation module VRM, a voltage value at the time of the failure occurrence, and the like.
Further, the control method of the voltage regulation module VRM further includes:
settings for a first preset value and a second preset value are received.
The detailed description of the control device and the control method of the voltage regulation module VRM provided by the present invention is provided above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.