A server power supply circuit, method, computer device and storage medium
By controlling multiple voltage regulation and protection circuits through the main control module, the power supply voltage and overcurrent protection points are automatically adjusted according to component information, which solves the problems of redundancy and poor compatibility in traditional server power supply design and achieves efficient power management and protection.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- INSPUR SUZHOU INTELLIGENT TECH CO LTD
- Filing Date
- 2024-10-25
- Publication Date
- 2026-04-17
AI Technical Summary
Traditional server power supply designs suffer from redundant power lines and inflexible overcurrent protection point settings, resulting in high costs, tight board layouts, and poor compatibility. They also fail to automatically adjust the overcurrent protection current threshold according to component requirements.
The system employs multiple voltage regulation and protection circuits controlled by a main control module. By acquiring component information, it automatically matches the power supply voltage and overcurrent protection points. It utilizes complex programmable logic devices and I/O expanders to switch between voltage regulation and protection circuits, thereby achieving flexible adjustment of voltage regulation and overcurrent protection.
While saving PCB layout space, it improves power supply compatibility and overcurrent protection effectiveness, reduces circuit redundancy and labor costs, and enhances the compatibility and versatility of the board.
Smart Images

Figure CN119271025B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of server technology, and in particular to a server power supply circuit, method, computer device, and storage medium. Background Technology
[0002] With the rapid development of information technology, servers, as core devices supporting various network services and data processing, are increasingly widely used. Customers' demands for server performance are constantly rising, prompting server configurations to become more diversified and higher-performance. Therefore, to meet different business needs, server configurations are becoming increasingly complex, requiring power supply systems to flexibly adapt to different hardware configurations and ensure that each component receives a suitable power supply.
[0003] Traditional server power supply designs typically employ a fixed power supply scheme, pre-setting power lines for all potentially used components under a specific configuration. Each power line is equipped with overcurrent protection (OCP) devices, such as electronic fuses (EFUSE), to prevent damage caused by excessive current. Therefore, in a given configuration, unused component power lines still exist, which are redundant. This increases costs and complicates board layout space. With a large number of configurations, the power supply scheme becomes extremely complex. Furthermore, each power supply's overcurrent protection point is set to a fixed value. When the interface simultaneously provides the same power to multiple components, the same overcurrent protection point parameter setting applies to different components. If the overcurrent protection point is set too high, it often fails to effectively protect components with low load current. Summary of the Invention
[0004] Therefore, it is necessary to provide a server power supply circuit, method, computer equipment, and storage medium that can automatically match the power supply voltage and overcurrent protection points for different components to address the above-mentioned technical problems.
[0005] On the one hand, a server power supply circuit is provided, including: 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 voltage regulation circuits. The multiple voltage regulation circuits are connected in parallel. The input terminal of the voltage regulator is connected to the power supply, the enable terminal of the voltage regulator is connected to the main control module, and the feedback terminal of the voltage regulator is connected to the multiple voltage regulation circuits. The voltage regulation circuits are used to control the power supply voltage of the voltage regulator.
[0007] The protection module includes an electronic fuse and multiple sets of protection circuits connected in parallel. The input terminal of the electronic fuse is connected to the output terminal of the voltage regulator, the output terminal of the electronic fuse is connected to the component to be powered, the enable terminal of the electronic fuse is connected to the main control module, and the setting terminal of the electronic fuse is connected to the multiple sets of protection circuits. The protection circuits are used to set the overcurrent protection current threshold of the electronic fuse.
[0008] The control terminal of the main control module is connected to the multiple sets of voltage regulation circuits and the multiple sets of protection circuits respectively. The main control module outputs control signals according to the component information of the component to be powered. The control signals are used to switch the target voltage regulation circuit and the target protection circuit corresponding to the component to be powered.
[0009] In one embodiment, the main control module includes a processor, a baseboard management controller, a complex programmable logic device, and an I / O expander;
[0010] The processor's output is connected to the baseboard management controller's input. The processor is used to acquire the component information of the component to be powered and transmit it to the baseboard management controller. The baseboard management controller is used to output control signals to control the complex programmable logic device based on the component information.
[0011] The complex programmable logic device includes 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 substrate management controller, the second port is connected to the enable terminal of the voltage regulator, the third port is connected to the enable terminal of the electronic fuse, and the fourth port is connected to the IO expander.
[0012] The IO expander includes multiple first general-purpose input / output ports and multiple second general-purpose input / output ports. The first general-purpose input / output ports correspond one-to-one with the voltage regulation circuit, and the second general-purpose input / output ports correspond one-to-one with the protection circuit.
[0013] In response to the control signal, the complex programmable logic device controls the first general-purpose input / output port and the second general-purpose input / output port of the IO expander to output a high level or a low level.
[0014] In one embodiment, 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.
[0015] The voltage regulation circuit includes a first field-effect transistor and a pull-down resistor. The resistance value of the pull-down resistor in each voltage regulation circuit is different. One end of the pull-down resistor is connected to the feedback terminal of the voltage regulator and the pull-up resistor, respectively. 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 / output port of the IO expander. 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. The resistance value of the setting resistor is different in each protection circuit. One end of the setting resistor is connected to the setting terminal of the electronic fuse, and 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 / output port of the IO expander, and the source of the second field-effect transistor is grounded.
[0017] In one embodiment, in response to the control signal, the IO expander controls one or more first input / output ports to output a high level, thereby turning on the first field-effect transistor in the target voltage regulation circuit;
[0018] The IO expander controls one or more second input / output ports to output a high level, thereby turning on the second field-effect transistor in the target protection circuit.
[0019] On the other hand, a server power supply method is provided, the method comprising:
[0020] In response to the server being powered on, the component information of the component to be powered is obtained and transmitted to the baseboard management controller;
[0021] The component information is matched with the configuration information table pre-programmed in the baseboard management controller;
[0022] In response to the presence of the component information in the configuration information table, control information of the component to be powered is obtained based on the configuration information table. The control information includes the target power supply voltage and the target overcurrent protection current threshold of the component to be powered, wherein the target power supply voltage is used to determine the target voltage regulation circuit and the target overcurrent protection current threshold is used to determine the target protection circuit.
[0023] A control signal is output based on the control information, and 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 includes:
[0025] 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;
[0026] The complex programmable logic device sends enable signals to the enable terminals of the voltage regulator and the electronic fuse respectively to supply power to the component to be powered.
[0027] 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;
[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 includes:
[0030] A first correspondence is pre-calculated between the resistance value of the pull-down resistor and the power supply voltage output by the voltage regulator, and a second correspondence is calculated 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 based on the component information of the component to be powered, the first correspondence, and the second correspondence, and the configuration information table is stored in the baseboard management controller.
[0032] In another aspect, 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 executes the computer program to perform the following steps:
[0033] In response to the server being powered on, the component information of the component to be powered is obtained and transmitted to the baseboard management controller;
[0034] The component information is matched with the configuration information table pre-programmed in the baseboard management controller;
[0035] In response to the presence of the component information in the configuration information table, control information of the component to be powered is obtained based on the configuration information table. The control information includes the target power supply voltage and the target overcurrent protection current threshold of the component to be powered, wherein the target power supply voltage is used to determine the target voltage regulation circuit and the target overcurrent protection current threshold is used to determine the target protection circuit.
[0036] A control signal is output based on the control information, and 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 having a computer program stored thereon, which, when executed by a processor, performs the following steps:
[0038] In response to the server being powered on, the component information of the component to be powered is obtained and transmitted to the baseboard management controller;
[0039] The component information is matched with the configuration information table pre-programmed in the baseboard management controller;
[0040] In response to the presence of the component information in the configuration information table, control information of the component to be powered is obtained based on the configuration information table. The control information includes the target power supply voltage and the target overcurrent protection current threshold of the component to be powered, wherein the target power supply voltage is used to determine the target voltage regulation circuit and the target overcurrent protection current threshold is used to determine the target protection circuit.
[0041] A control signal is output based on the control information, and the control signal is used to control the target voltage regulation circuit and the target protection circuit to be turned on.
[0042] The aforementioned server power supply circuit, method, computer equipment, and storage medium select corresponding voltage regulation circuits and protection circuits based on component information to match the power supply voltage and overcurrent protection point of the component. Furthermore, by reusing voltage regulation circuits and protection circuits, and using the same voltage regulator and electronic fuse to power different components, it can save PCB layout space while meeting the power supply requirements of different components on the same motherboard. This achieves power supply compatibility design, reduces circuit redundancy, greatly improves the effectiveness and reliability of power supply overcurrent protection, and enhances the compatibility and versatility of the board. Attached Figure Description
[0043] Figure 1 A schematic diagram of a server power supply circuit in the prior art;
[0044] Figure 2 This is a structural block diagram of the server power supply circuit in one embodiment;
[0045] Figure 3 A schematic diagram of the server power supply circuit in another embodiment;
[0046] Figure 4 This is a schematic diagram illustrating the connection method of multiple voltage regulation circuits in one embodiment;
[0047] Figure 5This is a schematic diagram illustrating the connection method of multiple protection circuits in one embodiment;
[0048] Figure 6 This is a flowchart illustrating a server power supply method in one embodiment;
[0049] Figure 7 A flowchart illustrating a server power supply method in another embodiment;
[0050] Figure 8 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0051] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0052] Existing server power supply solutions typically provide independent power to different components, or different components use the same power supply. However, 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 peak current requirements of the components themselves.
[0053] like Figure 1 As shown, the CPLD (Complex Programmable Logic Device) detects the presence of components 1-3, and then controls VR1-3 (Voltage Regulator) and EFUSE1-3 (Electronic Fuse) through internal logic to supply power to components 1-3. The OCP (Over Current Protection) point for each component is fixed, set by resistors Rs1-3. When only component 1 is used, the power supply lines for components 2-3 become redundant. When a component with a smaller load current shares the power supply with component 1, because resistor Rs1 is a fixed value, the set OCP current threshold is relatively large, resulting in weaker protection for that component, or even no protection at all.
[0054] Therefore, the disadvantages of existing technical solutions are:
[0055] 1. Existing server power supply solutions are relatively complex and have relatively poor power compatibility;
[0056] 2. The existing overcurrent protection point setting scheme for each power supply in the server sets the current threshold based on the peak current of the component with the largest load current (usually setting the overcurrent protection point parameter to 1.2-1.5 times the maximum current value). It cannot 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, which will result in a lot of redundancy in a single fixed configuration due to the extra power supply lines.
[0058] 4. Different power supply interfaces are reserved for different components. When the number of component types increases, the PCB layout becomes restricted, the board area increases, and there are significant risks of mechanical interference.
[0059] In one embodiment, such as Figure 2 As shown, a server power supply circuit is provided, comprising 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 voltage regulation circuits connected in parallel. The input terminal of the voltage regulator VR is connected to the power supply, the enable terminal of the voltage regulator VR is connected to the main control module, and the feedback terminal of the voltage regulator VR is connected to the multiple voltage regulation circuits. The voltage regulation circuits control the power supply voltage of the voltage regulator VR. The protection module includes an electronic fuse EFS and multiple protection circuits connected in parallel. The input terminal of the FUSE is connected to the output terminal of the voltage regulator VR, the output terminal of the electronic fuse EFUSE is connected to the component to be powered, the enable terminal of the electronic fuse EFUSE is connected to the main control module, and the setting terminal of the electronic fuse EFUSE is connected to the multiple sets of protection circuits. The protection circuits are used to set the overcurrent protection current threshold of the electronic fuse EFUSE. The control terminal of the main control module is connected to the multiple sets of voltage regulation circuits and the multiple sets of protection circuits respectively. The main control module outputs a control signal according to the component information of the component to be powered. 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 aforementioned server power supply circuit, voltage regulation and protection circuits are selected by using component information of different components, thereby obtaining the appropriate power supply voltage and overcurrent protection point for the component. Furthermore, by reusing voltage regulation and protection circuits, the power supply requirements of different components on the same motherboard can be met while saving PCB layout space, reducing line redundancy, greatly improving the effectiveness and reliability of power overcurrent protection, as well as the compatibility and versatility of the board.
[0061] In one embodiment, the main control module includes a CPU, a baseboard management controller (BMC), a complex programmable logic device (CPLD), and an I / O expander. The output of the CPU is connected to the input of the BMC. The CPU acquires component information of the component to be powered and transmits it to the BMC. The BMC outputs control signals to control the CPLD based on the component information. The CPLD includes a first port, a second port, a third port, and a fourth port. The first port of the CPLD is connected to the BMC. The circuit is configured such that the second port is connected to the enable terminal of the voltage regulator VR, the third port is connected to the enable terminal of the electronic fuse EFUSE, and the fourth port is connected to the I / O expander. The I / O expander includes multiple first general-purpose input / output (GPIO) ports and multiple second general-purpose input / output (GPIO) ports. The first GPIO ports correspond one-to-one with the voltage regulation circuit, and the second GPIO ports correspond one-to-one with the protection circuit. In response to the control signal, the complex programmable logic device (CPLD) controls the first and second GPIO ports of the I / O expander to output a high or low level.
[0062] Based on the aforementioned server power supply circuit, when the server uses different configurations or the components require different power supply voltages, the processor obtains the component information, and then the baseboard management controller parses the component information to obtain the control information corresponding to the component to be powered. This information is then used to control different GPIO ports of the IO expander to switch to the corresponding voltage regulation circuits, thereby changing the output voltage of the voltage regulator to meet the power supply requirements of different components. Similarly, different protection circuits can be selected to adjust the overcurrent protection points of each component.
[0063] In one embodiment, the power supply module further includes a pull-up resistor R1, which is connected to the output terminal and the feedback terminal of the voltage regulator VR, respectively. The voltage regulation circuit includes a first field-effect transistor and a pull-down resistor, wherein the resistance value of the pull-down resistor in each voltage regulation circuit is different. One end of the pull-down resistor is connected to the feedback terminal of the voltage regulator VR and the pull-up resistor R1, respectively. 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 / 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 for server components include 3V, 5V, and 12V. In order to meet these different power supply requirements, the required power supply voltage is obtained by setting pull-down resistors and pull-up resistors R1 with corresponding resistance values in different voltage regulation circuits.
[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. The resistance value of the setting resistor Rs is different in each protection circuit. One end of the setting resistor Rs is connected to the setting terminal of the electronic fuse EFUSE, and 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 / 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 for the components is the same, the server can switch different setting resistors Rs according to pre-set configuration information to adjust the overcurrent protection point. For servers with a single configuration, when the power supply for the components is different, the server can change the feedback resistor of the voltage regulator VR according to pre-set configuration information, thereby changing the output voltage. After the CPLD detects the PG signal of the voltage regulator VR, the CPLD then sequentially controls the setting resistor Rs of the electronic fuse EFUSE and the enable terminal EN of the electronic fuse EFUSE, thereby supplying power to the components.
[0067] Based on the above 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 value in different protection circuits, thereby realizing that different components correspond to different overcurrent protection current thresholds under different configurations.
[0068] In one embodiment, the IO expander includes a plurality of first general-purpose input / output (GPIO) ports and a plurality of second general-purpose input / output (GPIO) ports, wherein the first GPIO ports correspond one-to-one with the voltage regulation circuit and the second GPIO ports correspond one-to-one with the protection circuit; in response to the control signal, the complex programmable logic device (CPLD) controls the first and second GPIO ports of the IO expander to output a high level or a low level.
[0069] For example, the server uses different configurations (e.g., configuration 1 and configuration 2). When the components corresponding to configuration 1 and configuration 2 use the same power supply, assuming the target voltage regulation circuit corresponds to the P0 port of the IO expander, the control port P0 outputs a high level to turn on Q1, turn off Q2 and Q3, and R1 and R2 divide the voltage 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, assuming the target voltage regulation circuit of Configuration 1 corresponds to port P0 and the target voltage regulation circuit of Configuration 2 corresponds to port P1, Configuration 1 controls P0 to output a high level, turning on Q1, turning off Q2 and Q3, and using R1 and R2 to divide the voltage, 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, turning on Q2, turning off Q1 and Q3, and using R1 and R3 to divide the voltage, so that the output voltage of the voltage regulator corresponds to the power supply voltage required by each component in Configuration 2.
[0071] When the 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 port P3 and the target protection circuit of Configuration 2 corresponds to port P4, in this case, Configuration 1 controls the output of port P3 to turn on Q4 and turn off Q5 and Q6, and the overcurrent protection current threshold is set through Rs1; Configuration 2 controls the output of port P4 to turn on Q5 and turn off Q4 and Q6, and the overcurrent protection current threshold is set through Rs2.
[0072] Based on the above server power supply circuit, by controlling the GPIO port of the IO expander to output a high level or a low level, the corresponding target voltage regulation circuit and target protection circuit are selected, thereby achieving compatibility of different components with different power supplies under different configurations, and different overcurrent protection current thresholds for different components.
[0073] In one embodiment, such as Figure 5 As shown, a server power supply method is provided, including the following steps:
[0074] Step S1: In response to the power-on of the server, obtain the component information of the component to be powered and transmit it to the baseboard management controller.
[0075] Step S2: Match the component information with the configuration information table pre-programmed in the substrate management controller.
[0076] Step S3: In response to the presence of the component information in the configuration information table, control information of the component to be powered is obtained based on the configuration information table. The control information includes the target power supply voltage and the target overcurrent protection current threshold of the component to be powered. The target power supply voltage is used to determine the target voltage regulation circuit, and the target overcurrent protection current threshold is used to determine the target protection circuit.
[0077] Step S4: Output a control signal according to the control information. The control signal is used to control the target voltage regulation circuit and the target protection circuit to be turned on.
[0078] The process involves the CPU acquiring server configuration information, including component information such as PCIe, and transmitting this information to the BMC via the eSPI bus or other means. The BMC receives and parses the server configuration information transmitted by the CPU, comparing it with the configuration information table offline-programmed in the FRU to determine if the information exists in the table. When a matching configuration is found, the BMC outputs corresponding control information to the CPLD via I2C. The CPLD writes the control information to the UFM and transparently transmits 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 BMC is operating normally. When the BMC is operating normally, the CPLD only performs I2C data pass-through. When the CPLD detects an abnormal WDT signal and the BMC is abnormally suspended, the CPLD takes over the control of the IO extender, 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 extender through I2C. When the CPLD detects that the BMC's WDT signal is normal again, the CPLD will return the control to the BMC, and the BMC will continue to control the IO extender.
[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 risk caused by overcurrent protection, improves the reusability of the board, and reduces labor costs and BOM maintenance costs.
[0081] In one embodiment, the method further includes: responding to the control signal by controlling the target first input / output port and the target second input / output port of the IO expander to output a high level, thereby turning on the first field-effect transistor in the target voltage regulation circuit and the second field-effect transistor in the target protection circuit; sending enable signals to the enable terminal of the voltage regulator and the enable terminal of the electronic fuse through the complex programmable logic device to supply power to 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 to make the voltage regulator output the target supply voltage corresponding to the component to be powered, and inputting the target supply voltage to the electronic fuse; and turning off the electronic fuse in response to the operating current reaching the target overcurrent protection current threshold.
[0082] In one embodiment, the method further includes: pre-calculating a first correspondence between the resistance value of the pull-down resistor and the power 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 based on 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 pull-up resistor value is fixed, and the pull-down resistor value in each voltage regulation circuit is also fixed, the output voltage of the voltage regulator has a fixed range, such as 3V, 5V, and 12V. When it is necessary to adjust the output voltage bias, the voltage regulator is controlled by a complex programmable logic device (CPL) to output the voltage value. In response to a positive bias, a control command is written to the CPL based on the output voltage value and a predetermined ratio value. This enables the CPL to activate the output voltage regulation function of the voltage regulator and write the corresponding command to the voltage regulator. A positive bias command is sent to positively bias the output voltage of the voltage regulator; in response to a negative bias type, a control command is written to the complex programmable logic device (CPLD) based on the output voltage value and a predetermined ratio value to enable the output voltage regulation function of the voltage regulator via the CPLD, and a negative bias command is written to the voltage regulator to negatively bias the output voltage of the voltage regulator; after positive or negative bias adjustment of the voltage regulator, the output voltage value of the voltage regulator is read again, and it is determined whether the voltage regulator has been successfully biased based on the output voltage value. If it has not been biased, an alarm is triggered indicating a setting failure.
[0084] It should be understood that, although Figures 6-7The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figures 6-7 At least some of the steps in the process may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed 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 some of the sub-steps or stages of other steps.
[0085] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 8 As shown, the computer device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores server configuration data. The network interface communicates with external terminals via a network connection. When executed by the processor, the computer program implements a server power supply method.
[0086] Those skilled in the art will understand that Figure 8 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[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 executes the computer program to perform the following steps:
[0088] In response to the server being powered on, the component information of the component to be powered is obtained and transmitted to the baseboard management controller;
[0089] The component information is matched with the configuration information table pre-programmed in the baseboard management controller;
[0090] In response to the presence of the component information in the configuration information table, control information of the component to be powered is obtained based on the configuration information table. The control information includes the target power supply voltage and the target overcurrent protection current threshold of the component to be powered, wherein the target power supply voltage is used to determine the target voltage regulation circuit and the target overcurrent protection current threshold is used to determine the target protection circuit.
[0091] A control signal is output based on the control information, and 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, it further performs the following steps: in response to the control signal, it controls the target first input / output port and the target second input / output port of the IO expander to output a high level, thereby turning on the first field-effect transistor in the target voltage regulation circuit and the second field-effect transistor in the target protection circuit; it sends enable signals to the enable terminal of the voltage regulator and the enable terminal of the electronic fuse through the complex programmable logic device to supply power to the component to be powered; it divides 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 supply voltage corresponding to the component to be powered, and inputs the target supply voltage to the electronic fuse; and it turns off the electronic fuse in response to the operating current reaching the target overcurrent protection current threshold.
[0093] In one embodiment, when the processor executes the computer program, it further performs the following steps: pre-calculating a first correspondence between the resistance value of the pull-down resistor and the power 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 based on 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 having a computer program stored thereon, the computer program performing the following steps when executed by a processor:
[0095] In response to the server being powered on, the component information of the component to be powered is obtained and transmitted to the baseboard management controller;
[0096] The component information is matched with the configuration information table pre-programmed in the baseboard management controller;
[0097] In response to the presence of the component information in the configuration information table, control information of the component to be powered is obtained based on the configuration information table. The control information includes the target power supply voltage and the target overcurrent protection current threshold of the component to be powered, wherein the target power supply voltage is used to determine the target voltage regulation circuit and the target overcurrent protection current threshold is used to determine the target protection circuit.
[0098] A control signal is output based on the control information, and 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, it further performs the following steps: 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, thereby turning on the first field-effect transistor in the target voltage regulation circuit and the second field-effect transistor in the target protection circuit; sending enable signals to the enable terminal of the voltage regulator and the enable terminal of the electronic fuse through the complex programmable logic device to supply power to 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 supply voltage corresponding to the component to be powered, and inputs the target supply voltage to the electronic fuse; and turning off the electronic fuse in response to the operating current reaching the target overcurrent protection current threshold.
[0100] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: pre-calculating a first correspondence between the resistance value of the pull-down resistor and the power 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 based on 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 that stores a computer program, which, when executed by a processor, performs the following steps:
[0102] In response to the server being powered on, the component information of the component to be powered is obtained and transmitted to the baseboard management controller;
[0103] The component information is matched with the configuration information table pre-programmed in the baseboard management controller;
[0104] In response to the presence of the component information in the configuration information table, control information of the component to be powered is obtained based on the configuration information table. The control information includes the target power supply voltage and the target overcurrent protection current threshold of the component to be powered, wherein the target power supply voltage is used to determine the target voltage regulation circuit and the target overcurrent protection current threshold is used to determine the target protection circuit.
[0105] A control signal is output based on the control information, and 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, it further performs the following steps: 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, thereby turning on the first field-effect transistor in the target voltage regulation circuit and the second field-effect transistor in the target protection circuit; sending enable signals to the enable terminal of the voltage regulator and the enable terminal of the electronic fuse through the complex programmable logic device to supply power to 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 supply voltage corresponding to the component to be powered, and inputs the target supply voltage to the electronic fuse; and turning off the electronic fuse in response to the operating current reaching the target overcurrent protection current threshold.
[0107] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: pre-calculating a first correspondence between the resistance value of the pull-down resistor and the power 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 based on 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 will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, 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. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0109] The technical features of the above embodiments can be combined in any way. For the sake of brevity, 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 embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. A server power supply circuit, characterized in that, include: The system includes a main control module, a power supply module, and a protection module. The main control module includes an I / O expander, which includes multiple first general-purpose input / output ports and multiple second general-purpose input / output ports. The power supply module includes a power supply, a voltage regulator, multiple voltage regulation circuits, and pull-up resistors. The first general-purpose input / output port corresponds one-to-one with each voltage regulation circuit. The multiple voltage regulation circuits are connected in parallel. The input terminal of the voltage regulator is connected to the power supply, the enable terminal of the voltage regulator is connected to the main control module, and the feedback terminal of the voltage regulator is connected to the multiple voltage regulation circuits. The voltage regulation circuits control the power supply voltage of the voltage regulator. The pull-up resistors are connected to the output terminal and the feedback terminal of the voltage regulator, respectively. Each voltage regulation circuit includes a first field-effect transistor (FET) and a pull-down resistor. The pull-down resistor value is different in each voltage regulation circuit. One end of the pull-down resistor is connected to the feedback terminal of the voltage regulator and the pull-up resistor, respectively. The other end of the pull-down resistor is connected to the drain of the first FET. The gate of the first FET is connected to the first general-purpose input / output port of the IO expander, and the source of the first FET is grounded. The protection module includes an electronic fuse and multiple protection circuits. Each of the second general-purpose input / output ports corresponds to one of the protection circuits. The multiple protection circuits are connected in parallel. The input terminal of the electronic fuse is connected to the output terminal of the voltage regulator. The output terminal of the electronic fuse is connected to the component to be powered. The enable terminal of the electronic fuse is connected to the main control module. The setting terminal of the electronic fuse is connected to the multiple protection circuits. The protection circuit is used to set the overcurrent protection current threshold of the electronic fuse. 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. The resistance value of the setting resistor is different in each protection circuit. One end of the setting resistor is connected to the setting terminal of the electronic fuse, and the other end 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 / output port of the IO expander, and the source of the second field-effect transistor is grounded. The control terminal of the main control module is connected to the multiple sets of voltage regulation circuits and the multiple sets of protection circuits respectively. The main control module outputs control signals according to the component information of the component to be powered. The control signals are used to switch the target voltage regulation circuit and the 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 also includes a processor, a baseboard management controller, and a complex programmable logic device; The processor's output is connected to the baseboard management controller's input. The processor is used to acquire the component information of the component to be powered and transmit it to the baseboard management controller. The baseboard management controller is used to output control signals to control the complex programmable logic device based on the component information. The complex programmable logic device includes 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 substrate management controller, the second port is connected to the enable terminal of the voltage regulator, the third port is connected to the enable terminal of the electronic fuse, and the fourth port is connected to the IO expander. In response to the control signal, the complex programmable logic device controls the first general-purpose input / output port and the second general-purpose input / 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, In response to the control signal, the IO expander controls one or more first input / output ports to output a high level, thereby turning on the first field-effect transistor in the target voltage regulation circuit; The IO expander controls one or more second input / output ports to output a high level, thereby turning on the second field-effect transistor in the target protection circuit.
4. A server power supply method, applied to the server power supply circuit as described in claim 3, characterized in that, The method includes: In response to the server being powered on, the component information of the component to be powered is obtained and transmitted to the baseboard management controller; The component information is matched with the configuration information table pre-programmed in the baseboard management controller; In response to the presence of the component information in the configuration information table, control information of the component to be powered is obtained based on the configuration information table. The control information includes the target power supply voltage and the target overcurrent protection current threshold of the component to be powered, wherein the target power supply voltage is used to determine the target voltage regulation circuit and the target overcurrent protection current threshold is used to determine the target protection circuit. A control signal is output based on the control information, and the control signal is used to control the target voltage regulation circuit and the target protection circuit to be turned on.
5. The server power supply method according to claim 4, characterized in that, The method further includes: 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, thereby turning on the first field-effect transistor in the target voltage regulation circuit and the second field-effect transistor in the target protection circuit; Power is supplied to the component to be powered by sending enable signals to the enable terminals of the voltage regulator and the electronic fuse respectively through a complex programmable logic device. 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.
6. The server power supply method according to claim 4 or 5, characterized in that, The method further includes: The first correspondence between the resistance value of the pull-down resistor and the power supply voltage output by the voltage regulator is calculated in advance, and the second correspondence between the resistance value of the resistor and the overcurrent protection current threshold of the electronic fuse is set. The configuration information table is constructed based on the component information of the component to be powered, the first correspondence, and the second correspondence, and the configuration information table is stored in the baseboard management controller.
7. 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, it implements the steps of the method according to any one of claims 4 to 6.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 4 to 6.
Citation Information
Patent Citations
Server power supply protection method and device
CN112445313A
Server power supply method and related equipment
CN112462912A