Server power supply circuit and method, computer equipment and storage medium
By introducing automatic matching voltage regulation and protection circuits into the server power supply circuit, the redundancy and insufficient protection in traditional designs are solved, flexible power supply and efficient protection are achieved, and power compatibility and reliability are improved.
Patent Information
- Application Number
- CN202411501752.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-25
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2044-10-25
AI Technical Summary
Traditional server power supply design cannot flexibly adapt to different hardware configurations, resulting in increased cost and complexity of redundant power supply lines, and the overcurrent protection point is set to prevent components with small load currents from being effectively protected.
Design a server power supply circuit, including the main control module, the power supply module and the protection module, through multiple sets of voltage regulation circuits and protection circuits in parallel, automatically match the power supply voltage and overcurrent protection points according to the information of the components to be powered, and use multiplexing The circuit achieves power compatibility and saves PCB layout space.
It realizes flexible power supply to different components, reduces line redundancy, improves the effectiveness and reliability of power overcurrent protection, and enhances the compatibility and versatility of the board.
Smart Images

Figure CN119271025A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of servers, and in particular to a server power supply circuit, method, computer device and storage medium. Background Art
[0002] With the rapid development of information technology, servers, as core equipment supporting various network services and data processing, are increasingly used in a wide range of scenarios. Customers' requirements for server performance are constantly increasing, prompting server configurations to become more diversified and high-performance. Therefore, in order to meet different business needs, server configurations are becoming more and more complex, which requires the power supply system to be able to flexibly adapt to different hardware configurations and ensure that each component can get the appropriate power supply.
[0003] Traditional server power supply designs usually adopt a fixed power supply scheme, that is, the power supply lines are pre-set for all possible components in a specific configuration. Each power supply line is equipped with an overcurrent protection (OCP) device, such as an electronic fuse (EFUSE), to prevent damage caused by excessive current. Therefore, in a specific configuration, unused component power supply lines will still exist. These power supply lines are redundant, which to a certain extent leads to increased costs and tight board layout space. When there are many configurations, the power supply scheme will become extremely complicated. In addition, the overcurrent protection point corresponding to each power supply is set to a fixed value. When the interface provides the same power supply to multiple components at the same time, the overcurrent protection point parameters are set the same for different components. If the overcurrent protection point is set too large, it will often not provide effective protection for components with smaller load currents. Summary of the invention
[0004] Based on this, it is necessary to provide a server power supply circuit, method, computer device and storage medium that can automatically match the power supply voltage and overcurrent protection point for different components in order to solve the above technical problems.
[0005] On the one hand, a server power supply circuit is provided, comprising: a main control module, a power supply module and a protection module;
[0006] The power supply module includes a power supply, a voltage regulator and multiple groups of voltage regulation circuits, the multiple groups of voltage regulation circuits are arranged in parallel, the input end of the voltage regulator is connected to the power supply, the enable end of the voltage regulator is connected to the main control module, the feedback end of the voltage regulator is connected to the multiple groups of voltage regulation circuits, and the voltage regulation circuit is used to control the supply voltage of the voltage regulator;
[0007] The protection module includes an electronic fuse and multiple groups of protection circuits, the multiple groups of protection circuits are arranged in parallel, the input end of the electronic fuse is connected to the output end of the voltage regulator, the output end of the electronic fuse is connected to the component to be powered, the enable end of the electronic fuse is connected to the main control module, the setting end of the electronic fuse is connected to the multiple groups of protection circuits, and the protection circuit is used to set the overcurrent protection current threshold of the electronic fuse;
[0008] The control end of the main control module is respectively connected to the multiple groups of voltage regulation circuits and the multiple groups of protection circuits. The main control module outputs a control signal according to the component information of the component to be powered, and the control signal is used to switch the target voltage regulation circuit and target protection circuit corresponding to the component to be powered.
[0009] In one of the embodiments, the main control module includes a processor, a baseboard management controller, a complex programmable logic device and an IO expander;
[0010] The output end of the processor is connected to the input end of the baseboard management controller, the processor is used to obtain the component information of the component to be powered and transmit it to the baseboard management controller, and the baseboard management controller is used to output a control signal according to the component information to control the complex programmable logic device;
[0011] The complex programmable logic device comprises a first port, a second port, a third port and a fourth port, the first port of the complex programmable logic device is connected to the baseboard management controller, the second port is connected to the enable end of the voltage regulator, the third port is connected to the enable end of the electronic fuse, and the fourth port is connected to the IO expander;
[0012] The IO expander includes a plurality of first general purpose input / output ports and a plurality of second general purpose input / output ports, wherein the first general purpose input / output ports correspond one-to-one to the voltage regulating circuit, and the second general purpose input / output ports correspond one-to-one to the protection circuit;
[0013] In response to the control signal, the complex programmable logic device controls the first general purpose input and output port and the second general purpose input and output port of the IO expander to output a high level or a low level.
[0014] In one of the embodiments, the power supply module further includes a pull-up resistor, and the pull-up resistor is respectively connected to the output terminal and the feedback terminal of the voltage regulator;
[0015] The voltage regulating circuit includes a first field effect transistor and a pull-down resistor, wherein the resistance value of the pull-down resistor in each voltage regulating circuit is different, one end of the pull-down resistor is respectively connected to the feedback end of the voltage regulator and the pull-up resistor, the other end of the pull-down resistor is connected to the drain of the first field effect transistor, the gate of the first field effect transistor is connected to the first general input and output port of the IO expander, and the source of the first field effect transistor is grounded.
[0016] In one embodiment, the protection circuit includes a second field effect transistor and a setting resistor, the setting resistor is used to set the overcurrent protection current threshold of the electronic fuse, wherein the resistance of the setting resistor in each protection circuit is different, one end of the setting resistor is connected to the setting end of the electronic fuse, the other end of the setting resistor is connected to the drain of the second field effect transistor, the gate of the second field effect transistor is connected to the second input and output port of the IO expander, and the source of the second field effect transistor is grounded.
[0017] In one of the embodiments, in response to the control signal, the IO expander controls one or more first input / output ports to output a high level, so that the first field effect transistor in the target voltage regulation circuit is turned on;
[0018] The IO expander controls one or more second input / output ports to output a high level, so that the second field effect transistor in the target protection circuit is turned on.
[0019] In another aspect, a server power supply method is provided, the method comprising:
[0020] In response to the server being powered on, obtaining component information of components to be powered and transmitting the information to a baseboard management controller;
[0021] Matching the component information with a configuration information table pre-burned in the baseboard management controller;
[0022] In response to the component information existing in the configuration information table, acquiring control information of the component to be powered based on the configuration information table, the control information including a target power supply voltage and a target overcurrent protection current threshold of the component to be powered, wherein the target power supply voltage is used to determine a target voltage regulation circuit, and the target overcurrent protection current threshold is used to determine a target protection circuit;
[0023] A control signal is output according to the control information, where the control signal is used to control the target voltage regulation circuit and the target protection circuit to be turned on.
[0024] In one embodiment, the method further comprises:
[0025] In response to the control signal, controlling the target first input / output port and the target second input / output port of the IO expander to output a high level, so that the first field effect transistor in the target voltage regulation circuit and the second field effect transistor in the target protection circuit are turned on;
[0026] Sending an enable signal to the enable end of the voltage regulator and the enable end of the electronic fuse respectively through the complex programmable logic device to supply power to the component to be powered;
[0027] Dividing the input voltage of the voltage regulator by the pull-up resistor and the pull-down resistor in the target voltage regulating circuit, so that the voltage regulator outputs the target power supply voltage corresponding to the component to be powered, and inputs the target power supply voltage to the electronic fuse;
[0028] In response to the operating current reaching the target overcurrent protection current threshold, the electronic fuse is turned off.
[0029] In one embodiment, the method further comprises:
[0030] Precalculating a first corresponding relationship between the resistance value of the pull-down resistor and the supply voltage output by the voltage regulator, and a second corresponding relationship between the resistance value of the setting resistor and the overcurrent protection current threshold of the electronic fuse;
[0031] The configuration information table is constructed according to the component information of the component to be powered, the first corresponding relationship, and the second corresponding relationship, and the configuration information table is stored in the baseboard management controller.
[0032] In another aspect, a computer device is provided, 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 following steps are implemented:
[0033] In response to the server being powered on, obtaining component information of components to be powered and transmitting the information to a baseboard management controller;
[0034] Matching the component information with a configuration information table pre-burned in the baseboard management controller;
[0035] In response to the component information existing in the configuration information table, acquiring control information of the component to be powered based on the configuration information table, the control information including a target power supply voltage and a target overcurrent protection current threshold of the component to be powered, wherein the target power supply voltage is used to determine a target voltage regulation circuit, and the target overcurrent protection current threshold is used to determine a target protection circuit;
[0036] A control signal is output according to the control information, where the control signal is used to control the target voltage regulation circuit and the target protection circuit to be turned on.
[0037] In another aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0038] In response to the server being powered on, obtaining component information of components to be powered and transmitting the information to a baseboard management controller;
[0039] Matching the component information with a configuration information table pre-burned in the baseboard management controller;
[0040] In response to the component information existing in the configuration information table, acquiring control information of the component to be powered based on the configuration information table, the control information including a target power supply voltage and a target overcurrent protection current threshold of the component to be powered, wherein the target power supply voltage is used to determine a target voltage regulation circuit, and the target overcurrent protection current threshold is used to determine a target protection circuit;
[0041] A control signal is output according to the control information, where the control signal is used to control the target voltage regulation circuit and the target protection circuit to be turned on.
[0042] The server power supply circuit, method, computer device and storage medium select the corresponding voltage regulation circuit and protection circuit according to the component information, so as to match the power supply voltage and overcurrent protection point of the component, and use the same voltage regulator and electronic fuse to power different components by multiplexing the voltage regulation circuit and the protection circuit, which can save PCB layout space while meeting the power supply requirements of the same motherboard compatible with different components, realize the compatible design of the power supply, reduce the redundancy of the line, and greatly improve the effectiveness and reliability of the power supply overcurrent protection, as well as the compatibility and versatility of the board. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 A schematic diagram of a server power supply circuit in the prior art;
[0044] Figure 2 It is a structural block diagram of a server power supply circuit in one embodiment;
[0045] Figure 3 is a schematic diagram of a server power supply circuit in another embodiment;
[0046] Figure 4 A schematic diagram of a connection method of multiple groups of voltage regulating circuits in one embodiment;
[0047] Figure 5A schematic diagram of a connection method of multiple groups of protection circuits in one embodiment;
[0048] Figure 6 A schematic diagram of a flow chart of a method for powering a server in one embodiment;
[0049] Figure 7 A schematic flow chart of a method for powering a server in another embodiment;
[0050] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with 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.
[0052] Existing server power supply solutions usually provide independent power supplies for different components, or different components use the same power supply, but these components have different load currents and the corresponding overcurrent protection points are fixed. Therefore, this method cannot automatically adjust the overcurrent protection current threshold according to the component's own peak current demand.
[0053] like Figure 1 As shown, CPLD (Complex Programmable Logic Device) detects the presence of components 1-3, and then implements the control of VR1-3 (Voltage Regulator) and EFUSE1-3 (Electronic Fuse) through internal logic to power components 1-3. The OCP overcurrent protection point corresponding to each component is fixed, and the OCP (Over Current Protection) point is set by setting resistors Rs1-3 respectively. When only component 1 is used, the power supply lines corresponding to the corresponding components 2-3 will be redundant. When a component with a smaller load current shares the power supply with component 1, since the resistor Rs1 is set to a fixed value, the set OCP current threshold is relatively large, and the protection capability for the component is relatively weak, or even fails to play a protective role.
[0054] Therefore, the disadvantages of the prior art solutions are:
[0055] 1. The existing server power supply solution is relatively complex and the power supply compatibility is relatively poor;
[0056] 2. The overcurrent protection point setting scheme of each power supply of the existing server sets the current threshold according to the peak current of the component with the largest load current (usually the overcurrent protection point parameter of the overcurrent protection point is set to 1.2-1.5 times the maximum current value). It is impossible to automatically adjust the overcurrent protection point threshold according to the component, and the overcurrent protection capability is relatively poor for components with relatively small load current;
[0057] 3. The cost is relatively high. In order to be compatible with components powered by different power supplies in different configurations, multiple power supply lines need to be reserved, resulting in a large amount of redundancy due to redundant power supply lines in a single fixed configuration;
[0058] 4. Different power supply interfaces are reserved for different components. When the types of components increase, the PCB layout is restricted, the board area increases, and there is a great risk of mechanical interference.
[0059] In one embodiment, Figure 2 As shown, a server power supply circuit is provided, and the server power supply circuit includes a main control module, a power supply module and a protection module; the power supply module includes a power supply, a voltage regulator VR and multiple groups of voltage regulation circuits, the multiple groups of voltage regulation circuits are arranged in parallel, the input end of the voltage regulator VR is connected to the power supply, the enable end of the voltage regulator VR is connected to the main control module, the feedback end of the voltage regulator VR is connected to the multiple groups of voltage regulation circuits, and the voltage regulation circuit is used to control the supply voltage of the voltage regulator VR; the protection module includes an electronic fuse EFUSE and multiple groups of protection circuits, the multiple groups of protection circuits are arranged in parallel, and the electronic fuse E The input end of FUSE is connected to the output end of the voltage regulator VR, the output end of the electronic fuse EFUSE is connected to the component to be powered, the enable end of the electronic fuse EFUSE is connected to the main control module, the setting end of the electronic fuse EFUSE is connected to the multiple groups of protection circuits, and the protection circuit is used to set the overcurrent protection current threshold of the electronic fuse EFUSE; the control end of the main control module is respectively connected to the multiple groups of voltage regulation circuits and the multiple groups of protection circuits, and the main control module outputs a control signal according to the component information of the component to be powered, and the control signal is used to switch the target voltage regulation circuit and the target protection circuit corresponding to the component to be powered.
[0060] Based on the above server power supply circuit, the voltage regulation circuit and the protection circuit are selected through the component information of different components to obtain the appropriate power supply voltage and overcurrent protection point of the component. By reusing the voltage regulation circuit and the protection circuit, it is possible to save PCB layout space while meeting the power supply requirements of different components on the same motherboard, reduce line redundancy, and greatly improve the effectiveness and reliability of power overcurrent protection, as well as the compatibility and versatility of boards.
[0061] In one embodiment, the main control module includes a processor CPU, a baseboard management controller BMC, a complex programmable logic device CPLD and an IO expander; the output end of the processor CPU is connected to the input end of the baseboard management controller BMC, the processor CPU is used to obtain the component information of the component to be powered and transmit it to the baseboard management controller BMC, the baseboard management controller BMC is used to output a control signal according to the component information to control the complex programmable logic device CPLD; the complex programmable logic device CPLD includes a first port, a second port, a third port and a fourth port, the first port of the complex programmable logic device CPLD is connected to the baseboard management controller BMC The second port is connected to the enable end of the voltage regulator VR, the third port is connected to the enable end of the electronic fuse EFUSE, and the fourth port is connected to the IO expander; the IO expander includes a plurality of first general purpose input and output GPIO ports and a plurality of second general purpose input and output GPIO ports, the first general purpose input and output GPIO ports correspond to the voltage regulation circuit one by one, and the second general purpose input and output GPIO ports correspond to the protection circuit one by one; in response to the control signal, the complex programmable logic device CPLD controls the first general purpose input and output GPIO ports and the second general purpose input and output GPIO ports of the IO expander to output a high level or a low level.
[0062] Based on the above server power supply circuit, when the server adopts different configurations, or the components used require different power supply voltages, the processor obtains component information, and then the baseboard management controller parses the component information to obtain the control information corresponding to the component to be powered, and then controls the different GPIO ports of the IO expander to switch to the corresponding voltage regulation circuit, thereby changing the output voltage of the voltage regulator to meet the power supply requirements of different components. Similarly, the overcurrent protection point of each component can be adjusted by selecting different protection circuits.
[0063] In one embodiment, the power supply module also includes a pull-up resistor R1, which is respectively connected to the output end and the feedback end of the voltage regulator VR; the voltage regulation circuit includes a first field effect transistor and a pull-down resistor, wherein the resistance of the pull-down resistor in each voltage regulation circuit is different, one end of the pull-down resistor is respectively connected to the feedback end of the voltage regulator VR and the pull-up resistor R1, the other end of the pull-down resistor is connected to the drain of the first field effect transistor, the gate of the first field effect transistor is connected to the first general purpose input and output GPIO port of the IO expander, and the source of the first field effect transistor is grounded.
[0064] It should be noted that the commonly used power supply voltages of server components include 3V, 5V, 12V, etc. In order to meet these different power supply requirements, pull-down resistors with corresponding resistance values are set in different voltage regulation circuits, and the pull-up resistor R1 is used for voltage division to obtain the required power supply voltage.
[0065] In one embodiment, the protection circuit includes a second field effect transistor and a setting resistor Rs, the setting resistor Rs is used to set the overcurrent protection current threshold of the electronic fuse EFUSE, wherein the resistance value of the setting resistor Rs in each protection circuit is different, one end of the setting resistor Rs is connected to the setting end of the electronic fuse EFUSE, the other end of the setting resistor is connected to the drain of the second field effect transistor, the gate of the second field effect transistor is connected to the second input and output GPIO port of the IO expander, and the source of the second field effect transistor is grounded.
[0066] Specifically, for servers with different configurations, when the power supply of the components used is the same, the server can switch different setting resistors Rs according to the preset configuration information to adjust the overcurrent protection point; for servers with a single configuration, when the power supply of the components used is different, the server can change the feedback resistor of the voltage regulator VR according to the preset configuration information, thereby changing the output voltage. After the CPLD detects the PG signal of the voltage regulator VR, the CPLD controls the setting resistor Rs of the electronic fuse EFUSE and the enable terminal EN of the electronic fuse EFUSE in turn, thereby powering the components.
[0067] Based on the above-mentioned server power supply circuit, in order to meet the overcurrent protection current threshold of different components, the overcurrent protection point is set by setting the setting resistor Rs with corresponding resistance in different protection circuits, thereby achieving different overcurrent protection current thresholds corresponding to different components in different configurations.
[0068] In one embodiment, the IO expander includes a plurality of first general purpose input and output GPIO ports and a plurality of second general purpose input and output GPIO ports, the first general purpose input and output GPIO ports correspond one-to-one to the voltage regulation circuit, and the second general purpose input and output GPIO ports correspond one-to-one to the protection circuit; in response to the control signal, the complex programmable logic device CPLD controls the first general purpose input and output GPIO ports and the second general purpose input and output GPIO ports of the IO expander to output a high level or a low level.
[0069] Exemplarily, the server adopts different configurations (for example, configuration 1 and configuration 2). When several components corresponding to configuration 1 and configuration 2 are powered by the same power supply, assuming that the target voltage regulation circuit corresponds to the P0 port of the IO expander, at this time, the control port P0 outputs a high level to turn on Q1, and cut off Q2 and Q3. R1 and R2 perform voltage division so that the output voltage of the voltage regulator corresponds to the power supply voltage required by each component in configuration 1 and configuration 2.
[0070] When configuration 1 and configuration 2 are powered by different power supplies, it is assumed that the target voltage regulation circuit of configuration 1 corresponds to the P0 port, and the target voltage regulation circuit of configuration 2 corresponds to the P1 port. At this time, configuration 1 controls P0 to output a high level to turn on Q1, turn off Q2 and Q3, and divide the voltage between R1 and R2, so that the output voltage of the voltage regulator corresponds to the power supply voltage required by each component in configuration 1; configuration 2 controls P1 to output a high level to turn on Q2, turn off Q1 and Q3, and divide the voltage between R1 and R3, so that the output voltage of the voltage regulator corresponds to the power supply voltage required by each component in configuration 2.
[0071] When several components corresponding to configuration 1 and configuration 2 use the same power supply but have different overcurrent protection points, assuming that the target protection circuit of configuration 1 corresponds to the P3 port, and the target protection circuit of configuration 2 corresponds to the P4 port, at this time, configuration 1 controls the P3 port to output a high level to turn on Q4, cut off Q5 and Q6, and the overcurrent protection current threshold is set by Rs1; configuration 2 controls the P4 port to output a high level to turn on Q5, cut off Q4 and Q6, and the overcurrent protection current threshold is set by Rs2.
[0072] Based on the above-mentioned server power supply circuit, the corresponding target voltage regulation circuit and target protection circuit are selected by controlling the GPIO port of the IO expander to output a high level or a low level, thereby achieving compatibility of different components with different power supplies in different configurations, and different components corresponding to different overcurrent protection current thresholds.
[0073] In one embodiment, Figure 5 As shown, a server power supply method is provided, comprising the following steps:
[0074] Step S1, in response to the server being powered on, obtaining component information of components to be powered and transmitting the information to a baseboard management controller.
[0075] Step S2, matching the component information with a configuration information table pre-burned in the baseboard management controller.
[0076] Step S3, in response to the existence of the component information in the configuration information table, obtain control information of the component to be powered based on the configuration information table, the control information including a target power supply voltage and a target overcurrent protection current threshold of the component to be powered, wherein the target power supply voltage is used to determine a target voltage regulation circuit, and the target overcurrent protection current threshold is used to determine a target protection circuit.
[0077] Step S4: output a control signal according to the control information, wherein the control signal is used to control the target voltage regulation circuit and the target protection circuit to be turned on.
[0078] The server configuration information is obtained through the CPU, and the server configuration information includes component information of components such as PCIe, and the server configuration information is transmitted to the BMC through the eSPI bus or other means. The BMC is responsible for receiving and parsing the server configuration information transmitted by the CPU, and comparing it with the configuration information table burned offline in the FRU to determine whether the information exists in the configuration information table. When the same configuration is matched, the BMC outputs the corresponding control information to the CPLD through I2C, and the CPLD writes the control information to the UFM, and transparently transmits the I2C data to the IO expander to control different GPIO ports.
[0079] Furthermore, the CPLD detects the WDT signal output by the BMC to determine whether the working status of the BMC is normal. When the BMC is working normally, the CPLD only performs transparent transmission of I2C data. When the CPLD detects that the WDT signal is abnormal and the BMC is abnormally hung, the CPLD takes over the control of the IO expander, controls the internal MUX of the CPLD to switch to the internal I2C link through the enable signal, and reads the currently configured control information from the internal UFM storage area to control the IO expander through I2C. When the CPLD detects that the BMC's WDT signal is normal again, the CPLD will hand over the control to the BMC, and the BMC will continue to control the IO expander.
[0080] Based on the above server power supply method, the problem that the overcurrent protection current threshold cannot be automatically matched according to different business modules is effectively solved, and the compatibility of component power supply is achieved, which greatly reduces the risks caused by overcurrent protection, improves the reuse rate of boards, and reduces labor costs and BOM maintenance costs.
[0081] In one embodiment, the method further includes: in response to the control signal, controlling the target first input / output port and the target second input / output port of the IO expander to output a high level, so that the first field effect transistor in the target voltage regulation circuit and the second field effect transistor in the target protection circuit are turned on; sending an enable signal to the enable end of the voltage regulator and the enable end of the electronic fuse respectively through the complex programmable logic device to power the component to be powered; dividing the input voltage of the voltage regulator through the pull-up resistor and the pull-down resistor in the target voltage regulation circuit, so that the voltage regulator outputs the target power supply voltage corresponding to the component to be powered, and inputs the target power supply voltage to the electronic fuse; in response to the operating current reaching the target overcurrent protection current threshold, turning off the electronic fuse.
[0082] In one embodiment, the method further includes: precalculating a first correspondence between the resistance of the pull-down resistor and the supply voltage output by the voltage regulator, and a second correspondence between the resistance of the setting resistor and the overcurrent protection current threshold of the electronic fuse; constructing the configuration information table according to the component information of the component to be powered, the first correspondence and the second correspondence, and storing the configuration information table in the baseboard management controller.
[0083] Preferably, since the resistance of the pull-up resistor is fixed, and the resistance of the pull-down resistor in each voltage regulating circuit is also fixed, the output voltage of the voltage regulator has a fixed range, such as 3V, 5V, 12V. When the output voltage needs to be adjusted, the complex programmable logic device is used to control the voltage regulator to output, and the output voltage value of the voltage regulator is obtained; in response to the pull-up type being positive bias, a control instruction is written to the complex programmable logic device according to the output voltage value and a predetermined ratio value, so as to enable the output voltage regulation function of the voltage regulator through the complex programmable logic device, and write a control instruction to the voltage regulator. A positive bias instruction is provided to make the output voltage of the voltage regulator positively biased; in response to the bias type being negative bias, a control instruction is written to the complex programmable logic device according to the output voltage value and a predetermined ratio value to enable the output voltage regulation function of the voltage regulator through the complex programmable logic device, and a negative bias instruction is written to the voltage regulator to make the output voltage of the voltage regulator negatively biased; after the voltage regulator is positively biased or negatively biased, the output voltage value of the voltage regulator is read again, and it is determined whether the voltage regulator is successfully biased according to the output voltage value. If there is no bias, an alarm prompt is set to fail.
[0084] It should be understood that although Figure 6-7The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 6-7 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0085] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory, a network interface and a database 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, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store server configuration data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a server power supply method is implemented.
[0086] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure 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 certain components, or have a different arrangement of components.
[0087] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0088] In response to the server being powered on, obtaining component information of components to be powered and transmitting the information to a baseboard management controller;
[0089] Matching the component information with a configuration information table pre-burned in the baseboard management controller;
[0090] In response to the component information existing in the configuration information table, acquiring control information of the component to be powered based on the configuration information table, the control information including a target power supply voltage and a target overcurrent protection current threshold of the component to be powered, wherein the target power supply voltage is used to determine a target voltage regulation circuit, and the target overcurrent protection current threshold is used to determine a target protection circuit;
[0091] A control signal is output according to the control information, where the control signal is used to control the target voltage regulation circuit and the target protection circuit to be turned on.
[0092] In one embodiment, when the processor executes the computer program, the following steps are also implemented: in response to the control signal, the target first input / output port and the target second input / output port of the IO expander are controlled to output a high level, so that the first field effect transistor in the target voltage regulation circuit and the second field effect transistor in the target protection circuit are turned on; an enable signal is sent to the enable end of the voltage regulator and the enable end of the electronic fuse respectively through the complex programmable logic device to power the component to be powered; the input voltage of the voltage regulator is divided through the pull-up resistor and the pull-down resistor in the target voltage regulation circuit, so that the voltage regulator outputs the target power supply voltage corresponding to the component to be powered, and the target power supply voltage is input to the electronic fuse; in response to the operating current reaching the target overcurrent protection current threshold, the electronic fuse is turned off.
[0093] In one embodiment, when the processor executes the computer program, the following steps are also implemented: pre-calculating a first correspondence between the resistance of the pull-down resistor and the supply voltage output by the voltage regulator, and a second correspondence between the resistance of the setting resistor and the overcurrent protection current threshold of the electronic fuse; constructing the configuration information table according to the component information of the component to be powered, the first correspondence and the second correspondence, and storing the configuration information table in the baseboard management controller.
[0094] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0095] In response to the server being powered on, obtaining component information of components to be powered and transmitting the information to a baseboard management controller;
[0096] Matching the component information with a configuration information table pre-burned in the baseboard management controller;
[0097] In response to the component information existing in the configuration information table, acquiring control information of the component to be powered based on the configuration information table, the control information including a target power supply voltage and a target overcurrent protection current threshold of the component to be powered, wherein the target power supply voltage is used to determine a target voltage regulation circuit, and the target overcurrent protection current threshold is used to determine a target protection circuit;
[0098] A control signal is output according to the control information, where the control signal is used to control the target voltage regulation circuit and the target protection circuit to be turned on.
[0099] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: in response to the control signal, the target first input / output port and the target second input / output port of the IO expander are controlled to output a high level, so that the first field effect transistor in the target voltage regulation circuit and the second field effect transistor in the target protection circuit are turned on; an enable signal is sent to the enable end of the voltage regulator and the enable end of the electronic fuse respectively through the complex programmable logic device to power the component to be powered; the input voltage of the voltage regulator is divided by the pull-up resistor and the pull-down resistor in the target voltage regulation circuit, so that the voltage regulator outputs the target power supply voltage corresponding to the component to be powered, and the target power supply voltage is input to the electronic fuse; in response to the operating current reaching the target overcurrent protection current threshold, the electronic fuse is turned off.
[0100] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: pre-calculating a first correspondence between the resistance value of the pull-down resistor and the supply voltage output by the voltage regulator, and a second correspondence between the resistance value of the setting resistor and the overcurrent protection current threshold of the electronic fuse; constructing the configuration information table according to the component information of the component to be powered, the first correspondence and the second correspondence, and storing the configuration information table in the baseboard management controller.
[0101] In one embodiment, a computer product is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0102] In response to the server being powered on, obtaining component information of components to be powered and transmitting the information to a baseboard management controller;
[0103] Matching the component information with a configuration information table pre-burned in the baseboard management controller;
[0104] In response to the component information existing in the configuration information table, acquiring control information of the component to be powered based on the configuration information table, the control information including a target power supply voltage and a target overcurrent protection current threshold of the component to be powered, wherein the target power supply voltage is used to determine a target voltage regulation circuit, and the target overcurrent protection current threshold is used to determine a target protection circuit;
[0105] A control signal is output according to the control information, where the control signal is used to control the target voltage regulation circuit and the target protection circuit to be turned on.
[0106] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: in response to the control signal, the target first input / output port and the target second input / output port of the IO expander are controlled to output a high level, so that the first field effect transistor in the target voltage regulation circuit and the second field effect transistor in the target protection circuit are turned on; an enable signal is sent to the enable end of the voltage regulator and the enable end of the electronic fuse respectively through the complex programmable logic device to power the component to be powered; the input voltage of the voltage regulator is divided by the pull-up resistor and the pull-down resistor in the target voltage regulation circuit, so that the voltage regulator outputs the target power supply voltage corresponding to the component to be powered, and the target power supply voltage is input to the electronic fuse; in response to the operating current reaching the target overcurrent protection current threshold, the electronic fuse is turned off.
[0107] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: pre-calculating a first correspondence between the resistance value of the pull-down resistor and the supply voltage output by the voltage regulator, and a second correspondence between the resistance value of the setting resistor and the overcurrent protection current threshold of the electronic fuse; constructing the configuration information table according to the component information of the component to be powered, the first correspondence and the second correspondence, and storing the configuration information table in the baseboard management controller.
[0108] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and 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-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. 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. As an 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 (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0109] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, 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, they should be considered to be within the scope of this specification.
[0110] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, 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 attached claims.
Claims
1. A server power supply circuit, characterized in that: include: Main control module, power supply module and protection module; The power supply module includes a power supply, a voltage regulator and multiple groups of voltage regulation circuits, the multiple groups of voltage regulation circuits are arranged in parallel, the input end of the voltage regulator is connected to the power supply, the enable end of the voltage regulator is connected to the main control module, the feedback end of the voltage regulator is connected to the multiple groups of voltage regulation circuits, and the voltage regulation circuit is used to control the supply voltage of the voltage regulator; The protection module includes an electronic fuse and multiple groups of protection circuits, the multiple groups of protection circuits are arranged in parallel, the input end of the electronic fuse is connected to the output end of the voltage regulator, the output end of the electronic fuse is connected to the component to be powered, the enable end of the electronic fuse is connected to the main control module, the setting end of the electronic fuse is connected to the multiple groups of protection circuits, and the protection circuit is used to set the overcurrent protection current threshold of the electronic fuse; The control end of the main control module is respectively connected to the multiple groups of voltage regulation circuits and the multiple groups of protection circuits. The main control module outputs a control signal according to the component information of the component to be powered, and the control signal is used to switch the target voltage regulation circuit and target protection circuit corresponding to the component to be powered.
2. The server power supply circuit according to claim 1, characterized in that: The main control module includes a processor, a baseboard management controller, a complex programmable logic device and an IO expander; The output end of the processor is connected to the input end of the baseboard management controller, the processor is used to obtain the component information of the component to be powered and transmit it to the baseboard management controller, and the baseboard management controller is used to output a control signal according to the component information to control the complex programmable logic device; The complex programmable logic device comprises a first port, a second port, a third port and a fourth port, the first port of the complex programmable logic device is connected to the baseboard management controller, the second port is connected to the enable end of the voltage regulator, the third port is connected to the enable end of the electronic fuse, and the fourth port is connected to the IO expander; The IO expander includes a plurality of first general purpose input / output ports and a plurality of second general purpose input / output ports, wherein the first general purpose input / output ports correspond one-to-one to the voltage regulating circuit, and the second general purpose input / output ports correspond one-to-one to the protection circuit; In response to the control signal, the complex programmable logic device controls the first general purpose input and output port and the second general purpose input and output port of the IO expander to output a high level or a low level.
3. The server power supply circuit according to claim 2, characterized in that: The power supply module further includes a pull-up resistor, which is connected to the output terminal and the feedback terminal of the voltage regulator respectively; The voltage regulating circuit includes a first field effect transistor and a pull-down resistor, wherein the resistance value of the pull-down resistor in each voltage regulating circuit is different, one end of the pull-down resistor is respectively connected to the feedback end of the voltage regulator and the pull-up resistor, the other end of the pull-down resistor is connected to the drain of the first field effect transistor, the gate of the first field effect transistor is connected to the first general input and output port of the IO expander, and the source of the first field effect transistor is grounded.
4. The server power supply circuit according to claim 3, characterized in that: The protection circuit includes a second field effect tube and a setting resistor, wherein the setting resistor is used to set the overcurrent protection current threshold of the electronic fuse, wherein the resistance value of the setting resistor in each protection circuit is different, one end of the setting resistor is connected to the setting end of the electronic fuse, the other end of the setting resistor is connected to the drain of the second field effect tube, the gate of the second field effect tube is connected to the second input and output port of the IO expander, and the source of the second field effect tube is grounded.
5. The server power supply circuit according to claim 4, characterized in that: In response to the control signal, the IO expander controls one or more first input / output ports to output a high level, so that the first field effect transistor in the target voltage regulation circuit is turned on; The IO expander controls one or more second input / output ports to output a high level, so that the second field effect transistor in the target protection circuit is turned on.
6. A server power supply method, applied to the server power supply circuit as claimed in claim 5, characterized in that: The method comprises: In response to the server being powered on, obtaining component information of components to be powered and transmitting the information to a baseboard management controller; Matching the component information with a configuration information table pre-burned in the baseboard management controller; In response to the component information existing in the configuration information table, acquiring control information of the component to be powered based on the configuration information table, the control information including a target power supply voltage and a target overcurrent protection current threshold of the component to be powered, wherein the target power supply voltage is used to determine a target voltage regulation circuit, and the target overcurrent protection current threshold is used to determine a target protection circuit; A control signal is output according to the control information, where the control signal is used to control the target voltage regulation circuit and the target protection circuit to be turned on.
7. The server power supply method according to claim 6, characterized in that: The method further comprises: In response to the control signal, controlling the target first input / output port and the target second input / output port of the IO expander to output a high level, so that the first field effect transistor in the target voltage regulation circuit and the second field effect transistor in the target protection circuit are turned on; Sending an enable signal to the enable end of the voltage regulator and the enable end of the electronic fuse respectively through the complex programmable logic device to supply power to the component to be powered; Dividing the input voltage of the voltage regulator by the pull-up resistor and the pull-down resistor in the target voltage regulating circuit, so that the voltage regulator outputs the target power supply voltage corresponding to the component to be powered, and inputs the target power supply voltage to the electronic fuse; In response to the operating current reaching the target overcurrent protection current threshold, the electronic fuse is turned off.
8. The server power supply method according to claim 6 or 7, characterized in that: The method further comprises: Precalculating a first corresponding relationship between the resistance value of the pull-down resistor and the supply voltage output by the voltage regulator, and a second corresponding relationship between the resistance value of the setting resistor and the overcurrent protection current threshold of the electronic fuse; The configuration information table is constructed according to the component information of the component to be powered, the first corresponding relationship, and the second corresponding relationship, and the configuration information table is stored in the baseboard management controller.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 6 to 8 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 6 to 8 are implemented.
Citation Information
Patent Citations
Server power supply protection method and device
CN112445313A
Server power supply method and related equipment
CN112462912A
Power supply system of server
CN114094569A
Server fan overcurrent protection device and method
CN114256821A
Server remote power-off method and related equipment
CN115933854A