Server and overcurrent protection method thereof
By using a logic control module in the server to dynamically configure the overcurrent protection threshold of the power module, the problem that fixed thresholds in the existing technology cannot adapt to different server power devices is solved, thus achieving higher safety and reliability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-07
- Publication Date
- 2026-03-13
AI Technical Summary
In existing technologies, the overcurrent protection threshold of the server's power module is fixed and cannot be customized according to the power consumption of different servers, resulting in low safety performance.
The logic control module obtains device information of the electrical components, configures the overcurrent protection threshold of the power supply module, and dynamically adjusts the overcurrent protection threshold according to the number, type and status of the electrical components.
It improves the effectiveness of overcurrent protection, enhances the reliability and security of server operation, and avoids security risks and hardware damage caused by fixed thresholds.
Smart Images

Figure CN121663405A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a server and a method for overcurrent protection of a server. Background Technology
[0002] As server functionality and performance continue to improve, their hardware architecture and system design become increasingly complex, thus placing higher demands on the reliable operation of server hardware.
[0003] Among the key components of a server hardware system, the power supply module is particularly critical, as its reliability directly determines the stable operation and lifespan of the entire server system. An important technical measure in power supply modules is overcurrent protection, which promptly cuts off power supply when current abnormally rises, preventing equipment damage or safety accidents. In related technologies, the overcurrent protection threshold of the power supply module is typically preset during the power supply module manufacturing stage through firmware programming or external resistors.
[0004] In the above situation, the power modules of different servers all use the same overcurrent protection threshold, resulting in low safety performance. Summary of the Invention
[0005] In view of the above problems, embodiments of the present invention are proposed to provide a server and a server overcurrent protection method that overcomes or at least partially solves the above problems.
[0006] On one hand, embodiments of the present invention provide a server, the server comprising: a power module, power-consuming components, and a logic control module; The logic control module is used to acquire device information of the electrical device; and configure the overcurrent protection threshold used by the power supply module to supply power to the electrical device according to the device information of the electrical device. The power module is used to perform overcurrent protection processing according to the overcurrent protection threshold during the process of supplying power to the electrical device.
[0007] Optionally, the device information of the electrical device includes at least one of quantity information, type information, and status information.
[0008] Optionally, the logic control module is specifically used to find the corresponding overcurrent protection threshold based on the quantity and type information of the electrical components.
[0009] Optionally, the logic control module is specifically used to find the corresponding overcurrent protection threshold based on the type and status information of the electrical device.
[0010] Optionally, the server includes a management control module; The logic control module is configured to: determine that the power-consuming device includes a processor and that the processor is in a state of pending startup; find the corresponding overcurrent protection threshold as a first threshold; set the overcurrent protection threshold used by the power module to supply power to the power-consuming device as the first threshold; after setting, send an enable signal to the power module, the enable signal being used to instruct the power module to supply power to the power-consuming device; upon receiving a steady-state instruction from the management control module, determine that the processor is in a state of startup completion; find the corresponding overcurrent protection threshold as a second threshold; and set the overcurrent protection threshold used by the power module to supply power to the power-consuming device as the second threshold; wherein the first threshold is higher than the second threshold. The power module is used to supply power to the electrical device after receiving the enable signal sent by the logic control module; The electrical device is used to enter the start-up state after being powered by the power module, and to send a start-up completion signal to the management and control module after the start-up is completed. The management and control module is used to receive the start-up completion signal sent by the electrical device and then send the steady-state instruction to the logic control module. The steady-state instruction is used to instruct the logic control module to determine that the processor's operating state is the start-up completion state.
[0011] Optionally, the logic control module is used to obtain the server's model information and determine the quantity and type information of the electrical components based on the model information.
[0012] Optionally, the logic control module is connected to the PMBus interface of the power module; The logic control module is used to send a PMBus command to the power module, the PMBus command being used to instruct the power module to configure the overcurrent protection threshold used during the process of supplying power to the electrical device; The power module is used to receive PMBus commands sent by the logic control module; during the process of supplying power to the electrical device, it performs overcurrent protection processing according to the overcurrent protection threshold indicated by the PMBus command.
[0013] Optionally, the server includes a resistor module; the logic control module and the power supply module are connected through the resistor module. The logic control module is used to send a level signal to the resistor module, and the level signal is used to set the resistance value of the resistor module; The power module is used to obtain the resistance value of the resistor module; determine the overcurrent protection threshold based on the resistance value of the resistor module; and perform overcurrent protection processing based on the overcurrent protection threshold during the process of supplying power to the electrical device.
[0014] On the other hand, embodiments of the present invention provide an overcurrent protection method for a server, the server comprising: a power supply module, power-consuming components, and a logic control module; The method includes: The device information of the electrical components is obtained through the logic control module; The logic control module configures the overcurrent protection threshold used by the power supply module when supplying power to the electrical device based on the device information of the electrical device.
[0015] Optionally, the device information of the electrical device includes at least one of quantity information, type information, and status information; The step of configuring the overcurrent protection threshold used by the power supply module to supply power to the electrical device based on the device information of the electrical device through the logic control module includes: The logic control module uses the quantity and type information of the electrical components to find the corresponding overcurrent protection threshold.
[0016] Optionally, the step of configuring the overcurrent protection threshold used by the power supply module to supply power to the electrical device according to the device information of the electrical device through the logic control module includes: The logic control module uses the type and status information of the electrical components to find the corresponding overcurrent protection threshold.
[0017] Optionally, the server includes a management control module; The step of using the logic control module to find the overcurrent protection threshold corresponding to the electrical device based on the type and status information of the electrical device includes: The logic control module determines that the power-consuming device includes a processor and that the processor is in a state of pending startup. It then finds the corresponding overcurrent protection threshold and sets it as the first threshold. The overcurrent protection threshold used by the power module to supply power to the power-consuming device is set as the first threshold. After setting, an enable signal is sent to the power module, which instructs the power module to supply power to the power-consuming device. After receiving the enable signal sent by the logic control module, the power module supplies power to the electrical device. After being powered by the power module, the electrical device enters the startup state and sends a startup completion signal to the management and control module after startup is completed. After receiving the start-up completion signal from the electrical device, the management and control module sends a steady-state command to the logic control module. When the logic control module receives the steady-state instruction sent by the management control module, it determines that the processor's running state is the startup completion state, finds the corresponding overcurrent protection threshold as the second threshold, and sets the overcurrent protection threshold used by the power supply module to supply power to the electrical device as the second threshold; wherein, the first threshold is higher than the second threshold.
[0018] Optionally, the step of configuring the overcurrent protection threshold used by the power supply module to supply power to the electrical device according to the device information of the electrical device through the logic control module includes: The logic control module sends a PMBus command to the power module, which instructs the power module to configure the overcurrent protection threshold used during the process of supplying power to the electrical device. The power module receives PMBus commands sent by the logic control module; during the process of supplying power to the electrical device, it performs overcurrent protection processing according to the overcurrent protection threshold indicated by the PMBus command.
[0019] Optionally, the server includes a resistor module; the logic control module and the power supply module are connected through the resistor module. The step of configuring the overcurrent protection threshold used by the power supply module to supply power to the electrical device based on the device information of the electrical device through the logic control module includes: The logic control module sends a level signal to the resistor module, and the level signal is used to set the resistance value of the resistor module. The power module obtains the resistance value of the resistor module; the overcurrent protection threshold is determined based on the resistance value of the resistor module; and overcurrent protection is performed based on the overcurrent protection threshold during the process of supplying power to the electrical device.
[0020] On the other hand, embodiments of the present invention provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the server overcurrent protection method as described above.
[0021] The embodiments of the present invention have the following advantages: This invention acquires device information of the electrical components through a logic control module, and then configures the overcurrent protection threshold used by the power module during the power supply process to the electrical components based on the device information. This allows for the determination of the corresponding overcurrent protection threshold based on the electrical components used in the server, enabling different server power modules to perform overcurrent protection processing according to different overcurrent protection thresholds during the power supply process, thus improving the overcurrent protection effect and enhancing the server's operational reliability and safety performance. Attached Figure Description
[0022] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0023] Figure 1 This is a partial structural diagram of a server provided in an embodiment of the present invention; Figure 2 This is a partial structural diagram of another server provided in an embodiment of the present invention; Figure 3 This is an application flowchart of server overcurrent protection provided by an embodiment of the present invention; Figure 4 This is a partial structural diagram of another server provided in an embodiment of the present invention; Figure 5 This is a partial structural diagram of another server provided in an embodiment of the present invention; Figure 6 This is a flowchart of the steps of an overcurrent protection method for a server provided in an embodiment of the present invention; Figure 7 This is a structural block diagram of a computer-readable storage medium provided in an embodiment of the present invention. Detailed Implementation
[0024] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0025] As server functionality and performance continue to improve, their hardware architecture and system design become increasingly complex, thus placing higher demands on the reliability of server hardware operation. Among the key components of a server hardware system, the power supply module design is particularly critical, as its reliability directly determines the stable operation and lifespan of the entire server system. An important technical measure in the power supply module is the overcurrent protection mechanism, which is used to promptly cut off power supply when current abnormally rises, preventing equipment damage or safety accidents.
[0026] In related technologies, the overcurrent protection (OCP) threshold of power modules is usually preset during the power module manufacturing stage through firmware programming or external resistors. In this case, different server power modules use the same overcurrent protection threshold, resulting in low safety performance.
[0027] One of the core concepts of this invention is to configure corresponding overcurrent protection thresholds according to the electrical components used in the server, so that the power modules of different servers can perform overcurrent protection processing according to different overcurrent protection thresholds when supplying power to the electrical components, thereby improving the overcurrent protection effect and improving the operational reliability and safety performance of the server.
[0028] Figure 1 This is a partial structural diagram of a server provided in an embodiment of the present invention.
[0029] The server includes: a power module, electrical components, and a logic control module; The logic control module is used to acquire device information of the electrical device; and configure the overcurrent protection threshold used by the power supply module to supply power to the electrical device according to the device information of the electrical device. The power module is used to perform overcurrent protection processing according to the overcurrent protection threshold during the process of supplying power to the electrical device.
[0030] In some embodiments, the power module acts as a power supply terminal, with its output terminal connected to the power input pin of the power-consuming device. The logic control module is connected to the power module via SMBus / I2C, PMBus (Power Management Bus), or dedicated analog / digital signal lines to issue commands to the power module.
[0031] In some embodiments, the logic control module may be a Complex Programmable Logic Device (CPLD). A CPLD is a digital integrated circuit based on a programmable interconnect structure, its core consisting of multiple logic blocks and a programmable interconnect matrix. Unlike traditional fixed-function chips, CPLDs allow users to customize their internal logic using a hardware description language to implement specific digital circuit functions. Furthermore, CPLDs are characterized by simple structure, low power consumption, moderate cost, and instantaneous operation upon power-up.
[0032] The power supply module may include key components such as a voltage regulator module (VRM), a point-of-load power supply (POL), and an electronic fuse (eFUSE). During power supply, the power supply module compares the monitored current value with the overcurrent protection threshold set by the logic control module using a built-in comparator circuit or digital monitoring unit. When the detected current exceeds the overcurrent protection threshold, the overcurrent protection mechanism is immediately triggered, including but not limited to current limiting output, phased power cut-off, or fuse protection, thereby ensuring the hardware safety of the server system.
[0033] The electrical components can be computing devices such as central processing units (CPUs), graphics processing units (GPUs), and application-specific integrated circuits (ASICs). As the load of the power module, the electrical components are the main consumers of electrical energy. The operating state of the electrical components determines the magnitude of the current. When the electrical components experience abnormal load conditions, the current will fluctuate drastically. Therefore, the state of the electrical components can be judged and limited based on the current magnitude, thereby ensuring the safety performance of the electrical components.
[0034] The logic control module obtains the device information of the electrical components, and then, based on this device information, determines an overcurrent protection threshold that is both safe and can fully utilize the hardware performance under the current state through internal algorithms or table lookup. The threshold is then sent to the power supply module, which applies the overcurrent protection threshold to perform overcurrent protection.
[0035] By acquiring the device information of the electrical components, and then configuring the overcurrent protection threshold used by the power module during the power supply process, the system can determine the corresponding overcurrent protection threshold based on the electrical components used in the server. This allows different server power modules to perform overcurrent protection based on different overcurrent protection thresholds during the power supply process, improving the overcurrent protection effect and thus enhancing the server's operational reliability and safety.
[0036] This method avoids the risks associated with traditional fixed thresholds having low compatibility with different servers, which could lead to compromised security. At the same time, the server system can also allow the hardware to fully realize its performance potential while ensuring security, thus achieving a better balance between power protection and hardware performance.
[0037] In some embodiments, the device information of the electrical device includes at least one of quantity information, type information, and status information.
[0038] It is understandable that the quantity information of electrical components can reflect the actual number of electrical components installed, which is used to assess the total power supply load and thus determine the current output capacity requirements of the power module.
[0039] Type information is used to determine the hardware model of the electrical components in the server. Different types of electrical components have different electrical characteristics due to differences in their internal architecture and design specifications. For example, their rated operating current, instantaneous peak current requirements, and overcurrent withstand capabilities are all different. Therefore, it is necessary to determine the current requirements of different types of electrical components.
[0040] Status information is used to determine the dynamic status of electrical components during operation, such as the processor's current power consumption percentage, core temperature, whether it is powered on, and whether it is overclocked. This status information can dynamically reflect the workload and health status of electrical components, thereby adaptively adjusting the overcurrent protection threshold according to actual operating requirements.
[0041] In some embodiments, the logic control module is used to obtain the server's model information and determine the quantity and type information of the electrical components based on the model information.
[0042] As an example, Figure 2 This is a partial structural diagram of another server provided in an embodiment of the present invention.
[0043] like Figure 2 As shown, the logic control module is a CPLD. The CPLD can be connected to the fan module (FAN Module) to obtain the fan location difference and fan tach signal frequency difference, and determine the server model information. The CPLD can be connected to a DIP switch module to determine the server model information based on the DIP switch ID; The CPLD can be connected to the Baseboard Management Controller (BMC), which obtains the model identifier from the FRU EEPROM to determine the server's model information.
[0044] In practical applications, server model information uniquely defines a server's appearance, structure, motherboard layout, and standard configuration. Therefore, the quantity and type of electrical components in the server can be determined based on the model information.
[0045] In some embodiments, the logic control module is specifically used to find the corresponding overcurrent protection threshold based on the quantity and type information of the electrical components.
[0046] In practical applications, the system stores a pre-configured database or data table containing reference values for overcurrent protection thresholds for various types of electrical devices. These reference values may be predefined based on testing or according to factors such as the electrical specifications, design power consumption, and reliability standards of the electrical devices.
[0047] After determining the quantity of each type of electrical device, the logic control module determines the corresponding overcurrent protection threshold for each type of electrical device by looking up a table. As an example, the overcurrent protection threshold for each type of electrical device can be determined first, and then the safety margin required for system design can be considered to finally determine the overcurrent protection threshold for the total power supply circuit of the electrical devices in this server.
[0048] In related technologies, the overcurrent protection threshold of power modules is preset through firmware programming or external resistors. This method cannot be adjusted based on actual conditions. Taking the KH50000 server platform as an example, the same motherboard needs to be adapted to 1U, 2U, and 4U models. If the motherboard has a preset overcurrent protection threshold, meaning that the power modules of all three models use the same OCP threshold, the protection for the relatively low-load 1U model will be insufficient, easily causing hardware damage. Furthermore, if the three models use motherboards with different settings to meet different OCP threshold requirements, then three sets of bills of materials need to be maintained for motherboard production, significantly increasing bill of materials costs, production line changeover costs, and classification management costs.
[0049] In this embodiment of the invention, different OCP thresholds are directly obtained and configured through the logic control module. This avoids increased costs while ensuring a high degree of matching between the overcurrent protection threshold and the actual hardware configuration of the server. It avoids the security risks caused by using a uniform fixed threshold when there are differences in server configuration. This can prevent false protection and power outages caused by setting the overcurrent protection threshold too low when the server has multiple devices, and also avoid the security risks caused by setting the threshold too high when the number of devices on the server is small. This improves the accuracy and reliability of overcurrent protection.
[0050] In some embodiments, the logic control module is specifically used to find the overcurrent protection threshold corresponding to the electrical device based on the type information and status information of the electrical device.
[0051] In real-world applications, the status information of power-consuming components during server operation is dynamically changing. Depending on the specific operation of each component, its core temperature, instantaneous power consumption, and load rate will vary. The logic control module can determine the corresponding overcurrent protection thresholds based on a predefined set of rules or mapping tables. For example, if a power-consuming component is under a brief high load, its current will be higher than normal. To avoid misjudging this brief high current state as an abnormal condition, the threshold should be appropriately relaxed for a short period to prevent unnecessary false protection actions during normal peak performance, ensuring business continuity. A data table mapping power-consuming component types and states to overcurrent protection thresholds can be compiled through pre-testing. By querying this data table, the logic control module determines the corresponding overcurrent protection threshold and sends it to the power supply module for execution.
[0052] In some embodiments, the server further includes a management control module; The logic control module is configured to: determine that the power-consuming device includes a processor and that the processor is in a state of pending startup; find the corresponding overcurrent protection threshold as a first threshold; set the overcurrent protection threshold used by the power module to supply power to the power-consuming device as the first threshold; after setting, send an enable signal to the power module, the enable signal being used to instruct the power module to supply power to the power-consuming device; upon receiving a steady-state instruction from the management control module, determine that the processor is in a state of startup completion; find the corresponding overcurrent protection threshold as a second threshold; and set the overcurrent protection threshold used by the power module to supply power to the power-consuming device as the second threshold; wherein the first threshold is higher than the second threshold. The power module is used to supply power to the electrical device after receiving the enable signal sent by the logic control module; The electrical device is used to enter the start-up state after being powered by the power module, and to send a start-up completion signal to the management and control module after the start-up is completed. The management and control module is used to receive the start-up completion signal sent by the electrical device and then send the steady-state instruction to the logic control module. The steady-state instruction is used to instruct the logic control module to determine that the processor's operating state is the start-up completion state.
[0053] It is understandable that even when targeting only a single server, a fixed OCP threshold still carries certain risks. Some electrical components (such as CPUs or GPUs) may generate short-term surge currents (e.g., 80A for 5ms) during startup, exceeding the fixed OCP threshold (e.g., 60A), causing the system to falsely trigger protection mechanisms. Simply increasing the OCP threshold to the surge peak level (e.g., 80A) would reduce the effectiveness of steady-state protection.
[0054] Figure 3 This is an application flowchart of server overcurrent protection provided by an embodiment of the present invention.
[0055] like Figure 3 As shown, the logic control module determines that the power-consuming device includes a processor, and that the processor's operating state is a pending startup state, based on the type and status information of the power-consuming device. In practical applications, the logic control module may determine that the processor will be started upon detecting that the power button has been pressed, i.e., that the processor is currently in a pending startup state. Then, based on the processor's status information (pending startup state), the logic control module finds the corresponding overcurrent protection threshold (OCP=80A) as the first threshold; and sets the overcurrent protection threshold used by the power supply module during the power supply process to the power-consuming device as the first threshold.
[0056] After the overcurrent protection threshold is set, the logic control module sends an enable signal to the power module, instructing the power module to supply power to the electrical components.
[0057] After being powered by the power module, the electrical components enter the startup state, ensuring that they can only be powered on and started after the overcurrent protection threshold is raised, thus guaranteeing the reliability of overcurrent protection. Once the electrical components have started, they send a startup completion signal to the management control module. As an example, the management control module is the BMC. After the CPU completes startup and enters a stable operating state, it sends a POST completion signal to the BMC.
[0058] After receiving the start-up completion signal from the electrical device, the management and control module sends a steady-state command to the logic control module.
[0059] When the logic control module receives the steady-state command from the management control module, it can determine that the processor's operating state is "startup complete," meaning that no inrush current will occur after the processor enters stable operation. At this point, the overcurrent protection threshold can be lowered to improve safety performance. The logic control module then uses the processor's state information (startup complete) to find the corresponding overcurrent protection threshold (OCP=60A) as the second threshold; and sets the overcurrent protection threshold used by the power supply module during the power supply process to the electrical components as the second threshold.
[0060] Through the above operations, the OCP threshold was temporarily increased during the surge current of the electrical device, and the baseline OCP threshold was restored during the steady state period, thus ensuring the normal operation and reliability of the server.
[0061] In some embodiments, the status information further includes temperature status and load status. The logic control module is also configured to, during server operation, acquire the temperature status and / or load status of the electrical components; and dynamically set the OCP threshold based on the temperature status and / or load status of the electrical components.
[0062] In practical applications, the current curves of electrical devices under different temperatures and loads can be obtained in advance through testing to determine the mapping rules between temperature and / or load and the current of the electrical devices. Then, during the operation of the server, the logic control module obtains the temperature and / or load status of the electrical devices, determines the corresponding OCP threshold based on the temperature and / or load status of the electrical devices and the mapping rules between temperature and / or load and the current of the electrical devices, and configures it to the power supply module.
[0063] An increase in device temperature usually means a change in parameters such as on-resistance, which may lead to a slight increase in current. Furthermore, high temperatures reduce the device's ability to withstand overcurrent and overheating damage. Therefore, monitoring the temperature of electrical devices and proactively lowering the OCP threshold when an abnormal temperature increase is detected can effectively prevent device damage by cutting off the fault before the current reaches an extremely high value.
[0064] In addition, the current of electrical devices is directly related to their operating load. The current increases under high load. By setting the OCP threshold based on the estimated current peak under the load condition, we can avoid the OCP threshold being too high under low load, thus losing its protective significance, and also prevent the OCP threshold from being too low under high load, causing false triggering.
[0065] In some embodiments, the logic control module is connected to the PMBus interface of the power module; The logic control module is used to send a PMBus command to the power module, the PMBus command being used to instruct the power module to configure the overcurrent protection threshold used during the process of supplying power to the electrical device; The power module is used to receive PMBus commands sent by the logic control module; during the process of supplying power to the electrical device, it performs overcurrent protection processing according to the overcurrent protection threshold indicated by the PMBus command.
[0066] In practical applications, if the server's power module supports configuring the OCP threshold via PMBus, the OCP threshold can be configured directly through PMBus.
[0067] Figure 4 This is a partial structural diagram of another server provided in an embodiment of the present invention.
[0068] As an example, such as Figure 4 As shown, the logic control module is a CPLD, and the power supply modules include a VRM module and a POL module, both of which support PMBus configuration of OCP thresholds. The CPLD is directly connected to the PMBus interfaces of the VRM and POL modules. The logic control module sends PMBus commands to the VRM and POL modules to instruct them to configure overcurrent protection thresholds. Upon receiving the PMBus commands, the VRM and POL modules configure the corresponding overcurrent protection thresholds, enabling overcurrent protection processing based on the overcurrent protection thresholds indicated by the logic control module during the power supply to the electrical components.
[0069] In some embodiments, the server includes a resistor module; the logic control module and the power supply module are connected through the resistor module. The logic control module is used to send a level signal to the resistor module, and the level signal is used to set the resistance value of the resistor module; The power module is used to obtain the resistance value of the resistor module; determine the overcurrent protection threshold based on the resistance value of the resistor module; and perform overcurrent protection processing based on the overcurrent protection threshold during the process of supplying power to the electrical device.
[0070] In practical applications, if the server's power module only supports configuring the OCP threshold through discrete resistors, then multiple resistors can be connected in parallel to set the OCP threshold.
[0071] Figure 5 This is a partial structural diagram of another server provided in an embodiment of the present invention.
[0072] As an example, such as Figure 5 As shown, the logic control module is a CPLD, and the power supply module includes a POL module and an EFUSE module, both of which only support configuring the OCP threshold through discrete resistors. A resistor module is then configured, consisting of four resistors connected in parallel, each controlled by an analog switch. Through the on / off control of the analog switches, a total of 16 resistor combinations can be set, corresponding to 16 different OCP thresholds.
[0073] The resistor module is connected to the CPLD. The CPLD sends a level signal to the resistor module. A high level signals the module to turn on, and a low level signals the module to turn off, thereby controlling the on / off state of each analog switch and setting the resistance value of the resistor module.
[0074] The resistor module is connected to the power supply module (POL module and EFUSE module), so that the power supply module can obtain the resistance value of the resistor module and determine the overcurrent protection threshold based on the resistance value. This enables overcurrent protection to be performed according to the overcurrent protection threshold determined by the logic control module during the power supply process of the electrical device.
[0075] It is worth noting that in other embodiments, the number of resistors connected in parallel in the resistor module and the resistance value of each resistor can be set according to the required OCP threshold. In this embodiment of the invention, there is no limitation on the number of resistors in the resistor module or the resistance value of each resistor.
[0076] Figure 6 This is a flowchart of the steps of an overcurrent protection method for a server provided in an embodiment of the present invention.
[0077] like Figure 6 As shown, the method may specifically include the following steps: Step 601: Obtain the device information of the electrical device through the logic control module; Different servers have different device information for their electrical components. By obtaining the device information through the logic control module and determining the corresponding overcurrent protection threshold, the power modules of different servers can perform overcurrent protection processing according to different overcurrent protection thresholds when supplying power to the electrical components, thereby improving the overcurrent protection effect.
[0078] In some embodiments, the device information of the electrical device includes at least one of quantity information, type information, and status information. Step 101 specifically includes the following sub-steps: Sub-step S11: Obtain the server model information, and determine the quantity and type information of the electrical components based on the model information.
[0079] In practical applications, server model information uniquely defines a server's appearance, structure, motherboard layout, and standard configuration. Therefore, the quantity and type of electrical components in the server can be determined based on the model information.
[0080] As an example, the logic control module is a CPLD. The CPLD can be connected to a fan module (FAN Module) to obtain fan presence differences and fan tach signal frequency differences to determine the server model information; it can also be connected to a DIP switch module to determine the server model information based on the DIP switch ID; or it can be connected to a Baseboard Management Controller (BMC) to obtain the model identifier in the FRU EEPROM and determine the server model information based on the model identifier.
[0081] Step 602: The logic control module configures the overcurrent protection threshold used by the power supply module to supply power to the electrical device according to the device information of the electrical device.
[0082] In some embodiments, the device information of the electrical device includes at least one of quantity information, type information, and status information; In some embodiments, step 602 specifically includes the following sub-steps: In sub-step S21, the logic control module searches for the corresponding overcurrent protection threshold based on the quantity and type information of the electrical components.
[0083] In practical applications, the system stores a pre-configured database or data table containing reference values for overcurrent protection thresholds for various types of electrical devices. These reference values may be predefined based on testing or according to factors such as the electrical specifications, design power consumption, and reliability standards of the electrical devices.
[0084] After determining the quantity of each type of electrical device, the logic control module determines the corresponding overcurrent protection threshold for each type of electrical device by looking up a table. As an example, the overcurrent protection threshold for each type of electrical device can be determined first, and then the safety margin required for system design can be considered to finally determine the overcurrent protection threshold for the total power supply circuit of the electrical devices in this server.
[0085] In some embodiments, step 602 specifically includes the following sub-steps: In sub-step S31, the logic control module searches for the corresponding overcurrent protection threshold based on the type and status information of the electrical device.
[0086] In real-world applications, the status information of power-consuming components during server operation is dynamically changing. Depending on the specific operation of each component, its core temperature, instantaneous power consumption, and load rate will vary. The logic control module can determine the corresponding overcurrent protection thresholds based on a predefined set of rules or mapping tables. For example, if a power-consuming component is under a brief high load, its current will be higher than normal. To avoid misjudging this brief high current state as an abnormal condition, the threshold should be appropriately relaxed for a short period to prevent unnecessary false protection actions during normal peak performance, ensuring business continuity. A data table mapping power-consuming component types and states to overcurrent protection thresholds can be compiled through pre-testing. By querying this data table, the logic control module determines the corresponding overcurrent protection threshold and sends it to the power supply module for execution.
[0087] In some embodiments, the server includes a management control module, and sub-step S31 specifically includes the following sub-steps: Sub-step S311: The logic control module determines that the power device includes a processor and that the processor is in a state of waiting to start. It then finds the corresponding overcurrent protection threshold and sets it as the first threshold. The overcurrent protection threshold used by the power module to supply power to the power device is set as the first threshold. After setting, an enable signal is sent to the power module, which is used to instruct the power module to supply power to the power device. In sub-step S312, after receiving the enable signal sent by the logic control module through the power module, power is supplied to the electrical device. Sub-step S313: After the power supply module supplies power to the electrical device, it enters the startup state and sends a startup completion signal to the management and control module after startup is completed. Sub-step S314: After receiving the start-up completion signal sent by the electrical device through the management and control module, the steady-state command is sent to the logic control module. In sub-step S315, after the logic control module receives the steady-state instruction sent by the management control module, it determines that the processor's running state is the startup completion state, finds the corresponding overcurrent protection threshold as the second threshold, and sets the overcurrent protection threshold used by the power module to supply power to the electrical device as the second threshold; wherein, the first threshold is higher than the second threshold.
[0088] It is understandable that even when targeting only a single server, a fixed OCP threshold still carries certain risks. Some electrical components (such as CPUs or GPUs) may generate short-term surge currents (e.g., 80A for 5ms) during startup, exceeding the fixed OCP threshold (e.g., 60A), causing the system to falsely trigger protection mechanisms. Simply increasing the OCP threshold to the surge peak level (e.g., 80A) would reduce the effectiveness of steady-state protection.
[0089] In the above operation, after the logic control module configures the overcurrent protection threshold, it sends an enable signal to the power supply module, instructing the power supply module to supply power to the electrical device. This ensures that the electrical device enters the startup state after the power supply module supplies power, thus guaranteeing that the electrical device can only be powered on and started after the overcurrent protection threshold is raised, ensuring the reliability of the overcurrent protection processing.
[0090] After the electrical device starts up, it sends a start-up completion signal to the management control module. Upon receiving this signal, the management control module sends a steady-state command to the logic control module. This allows the logic control module to determine that the processor is in a start-up complete state, meaning that no inrush current will occur after the processor enters stable operation. At this point, the logic control module can lower the overcurrent protection threshold to improve safety.
[0091] Through the above operations, the OCP threshold was temporarily increased during the surge current of the electrical device, and the baseline OCP threshold was restored during the steady state period, thus ensuring the normal operation and reliability of the server.
[0092] In some embodiments, step 602 specifically includes the following sub-steps: Sub-step S41: The logic control module sends a PMBus command to the power module. The PMBus command is used to instruct the power module to configure the overcurrent protection threshold used in the process of supplying power to the electrical device. In sub-step S42, the power module receives the PMBus command sent by the logic control module; during the process of supplying power to the electrical device, overcurrent protection is performed according to the overcurrent protection threshold indicated by the PMBus command.
[0093] In practical applications, if the server's power module supports configuring the OCP threshold via PMBus, then the OCP threshold can be configured directly through PMBus.
[0094] As an example, such as Figure 4 As shown, the logic control module is a CPLD, and the power supply modules include a VRM module and a POL module, both of which support PMBus configuration of OCP thresholds. The CPLD is directly connected to the PMBus interfaces of the VRM and POL modules. The logic control module sends PMBus commands to the VRM and POL modules to instruct them to configure overcurrent protection thresholds. Upon receiving the PMBus commands, the VRM and POL modules configure the corresponding overcurrent protection thresholds, enabling overcurrent protection processing based on the overcurrent protection thresholds indicated by the logic control module during the power supply to the electrical components.
[0095] In some embodiments, the server includes a resistor module; the logic control module and the power supply module are connected through the resistor module.
[0096] In some embodiments, step 602 specifically includes the following sub-steps: Sub-step S51: The logic control module sends a level signal to the resistor module, and the level signal is used to set the resistance value of the resistor module. Sub-step S52: Obtain the resistance value of the resistor module through the power supply module; determine the overcurrent protection threshold based on the resistance value of the resistor module; and perform overcurrent protection processing based on the overcurrent protection threshold during the process of supplying power to the electrical device.
[0097] In practical applications, if the server's power module only supports configuring the OCP threshold through discrete resistors, then multiple resistors can be connected in parallel to set the OCP threshold.
[0098] As an example, such as Figure 5 As shown, the logic control module is a CPLD, and the power supply module includes a POL module and an EFUSE module, both of which only support configuring the OCP threshold through discrete resistors. A resistor module is then configured, consisting of parallel resistors, each controlled by an analog switch to determine its connection. Different resistor combinations are configured by controlling the on / off state of the analog switches, thus corresponding to different OCP thresholds.
[0099] The resistor module is connected to the CPLD. The CPLD sends a level signal to the resistor module. A high level signals the module to turn on, and a low level signals the module to turn off, thereby controlling the on / off state of each analog switch and setting the resistance value of the resistor module.
[0100] The resistor module is connected to the power supply module (POL module and EFUSE module), so that the power supply module can obtain the resistance value of the resistor module and determine the overcurrent protection threshold based on the resistance value. This enables overcurrent protection to be performed according to the overcurrent protection threshold determined by the logic control module during the power supply process of the electrical device.
[0101] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.
[0102] Figure 7 This is a structural block diagram of a computer-readable storage medium provided in an embodiment of the present invention.
[0103] like Figure 7As shown, this embodiment of the invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, it implements the various processes of the above-described overcurrent protection method embodiment for the server and achieves the same technical effect. To avoid repetition, it will not be described again here.
[0104] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0105] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, apparatus, or computer program products. Therefore, embodiments of the present invention can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of the present invention can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0106] Embodiments of the present invention are described with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, as well as combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0107] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0108] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0109] Although preferred embodiments of the present invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present invention.
[0110] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.
[0111] The above provides a detailed description of a server and a server overcurrent protection method provided by the present invention. Specific examples have been used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core idea of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation and application scope based on the idea of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A server, characterized in that, The server includes: a power module, electrical components, and a logic control module; The logic control module is used to acquire device information of the electrical device; and configure the overcurrent protection threshold used by the power supply module to supply power to the electrical device according to the device information of the electrical device. The power module is used to perform overcurrent protection processing according to the overcurrent protection threshold during the process of supplying power to the electrical device.
2. The server according to claim 1, characterized in that, The device information of the electrical device includes at least one of quantity information, type information, and status information.
3. The server according to claim 2, characterized in that, The logic control module is specifically used to find the corresponding overcurrent protection threshold based on the quantity and type information of the electrical components.
4. The server according to claim 2, characterized in that, The logic control module is specifically used to find the corresponding overcurrent protection threshold based on the type and status information of the electrical device.
5. The server according to claim 4, characterized in that, The server also includes a management and control module; The logic control module is used to determine that the electrical device includes a processor and that the processor is in a state of waiting to be started, and to find the corresponding overcurrent protection threshold as the first threshold. The overcurrent protection threshold used by the power module to supply power to the electrical device is set as the first threshold; after setting, an enable signal is sent to the power module, which is used to instruct the power module to supply power to the electrical device; when a steady-state instruction is received from the management control module, the processor's running state is determined to be the startup completion state, the corresponding overcurrent protection threshold is found and used as the second threshold, and the overcurrent protection threshold used by the power module to supply power to the electrical device is set as the second threshold; wherein, the first threshold is higher than the second threshold; The power module is used to supply power to the electrical device after receiving the enable signal sent by the logic control module; The electrical device is used to enter the start-up state after being powered by the power module, and to send a start-up completion signal to the management and control module after the start-up is completed. The management and control module is used to receive the start-up completion signal sent by the electrical device and then send the steady-state instruction to the logic control module. The steady-state instruction is used to instruct the logic control module to determine that the processor's operating state is the start-up completion state.
6. The server according to claim 2, characterized in that, The logic control module is used to obtain the server's model information and, based on the model information, determine the quantity and type information of the electrical components.
7. The server according to claim 1, characterized in that, The logic control module is connected to the PMBus interface of the power module; The logic control module is used to send a PMBus command to the power module, the PMBus command being used to instruct the power module to configure the overcurrent protection threshold used during the process of supplying power to the electrical device; The power module is used to receive PMBus commands sent by the logic control module; during the process of supplying power to the electrical device, it performs overcurrent protection processing according to the overcurrent protection threshold indicated by the PMBus command.
8. The server according to claim 1, characterized in that, The server includes a resistor module; the logic control module and the power supply module are connected through the resistor module. The logic control module is used to send a level signal to the resistor module, and the level signal is used to set the resistance value of the resistor module; The power module is used to obtain the resistance value of the resistor module; The overcurrent protection threshold is determined based on the resistance value of the resistor module; during the process of supplying power to the electrical device, overcurrent protection is performed based on the overcurrent protection threshold.
9. A method for overcurrent protection of a server, characterized in that, The server includes: a power module, electrical components, and a logic control module; The method includes: The device information of the electrical components is obtained through the logic control module; The logic control module configures the overcurrent protection threshold used by the power supply module when supplying power to the electrical device based on the device information of the electrical device.
10. The overcurrent protection method for a server according to claim 9, characterized in that, The device information of the electrical device includes at least one of quantity information, type information, and status information; The step of configuring the overcurrent protection threshold used by the power supply module to supply power to the electrical device based on the device information of the electrical device through the logic control module includes: The logic control module uses the quantity and type information of the electrical components to find the corresponding overcurrent protection threshold.
11. The overcurrent protection method for a server according to claim 10, characterized in that, The step of configuring the overcurrent protection threshold used by the power supply module to supply power to the electrical device based on the device information of the electrical device through the logic control module includes: The logic control module uses the type and status information of the electrical components to find the corresponding overcurrent protection threshold.
12. The overcurrent protection method for a server according to claim 11, characterized in that, The server includes a management and control module; The step of using the logic control module to find the overcurrent protection threshold corresponding to the electrical device based on the type and status information of the electrical device includes: The logic control module determines that the power-consuming device includes a processor and that the processor is in a state of pending startup. It then finds the corresponding overcurrent protection threshold and sets it as the first threshold. The overcurrent protection threshold used by the power module to supply power to the power-consuming device is set as the first threshold. After setting, an enable signal is sent to the power module, which instructs the power module to supply power to the power-consuming device. After receiving the enable signal sent by the logic control module, the power module supplies power to the electrical device. After being powered by the power module, the electrical device enters the startup state and sends a startup completion signal to the management and control module after startup is completed. After receiving the start-up completion signal from the electrical device, the management and control module sends a steady-state command to the logic control module. When the logic control module receives the steady-state instruction sent by the management control module, it determines that the processor's running state is the startup completion state, finds the corresponding overcurrent protection threshold as the second threshold, and sets the overcurrent protection threshold used by the power supply module to supply power to the electrical device as the second threshold; wherein, the first threshold is higher than the second threshold.
13. The overcurrent protection method for a server according to claim 9, characterized in that, The step of configuring the overcurrent protection threshold used by the power supply module to supply power to the electrical device based on the device information of the electrical device through the logic control module includes: The logic control module sends a PMBus command to the power module, which instructs the power module to configure the overcurrent protection threshold used during the process of supplying power to the electrical device. The power module receives PMBus commands sent by the logic control module; during the process of supplying power to the electrical device, it performs overcurrent protection processing according to the overcurrent protection threshold indicated by the PMBus command.
14. The overcurrent protection method for a server according to claim 9, characterized in that, The server includes a resistor module; the logic control module and the power supply module are connected through the resistor module. The step of configuring the overcurrent protection threshold used by the power supply module to supply power to the electrical device based on the device information of the electrical device through the logic control module includes: The logic control module sends a level signal to the resistor module, and the level signal is used to set the resistance value of the resistor module. The power module obtains the resistance value of the resistor module; the overcurrent protection threshold is determined based on the resistance value of the resistor module; and overcurrent protection is performed based on the overcurrent protection threshold during the process of supplying power to the electrical device.
15. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, which, when executed by a processor, implements the steps of the overcurrent protection method for the server as described in any one of claims 9-14.