Power supply method and device for central processing unit, storage medium and program product
By setting up the logic control module and power multi-phase controller on the server motherboard, detecting the CPU identification and calling the corresponding power supply firmware, the problem of the server motherboard being unable to meet the power supply needs of multiple types of CPUs is solved, reducing costs and expanding the scope of application.
Patent Information
- Application Number
- CN202411139937.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2024-09-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Server motherboards cannot meet the different power supply needs of multiple types of CPUs, resulting in the need to produce multiple CPU versions in server design to meet different customer needs, which increases R&D and operating costs.
By setting the logic control module and the power multi-phase controller on the server motherboard, the identification of the central processor is detected and the corresponding power firmware is called for power supply to ensure that different types of CPUs can receive appropriate power supply.
It realizes the server motherboard's power supply support for multiple CPU types, expands the scope of application, reduces R&D and operating costs, and reduces the complexity of production design and management.
Smart Images

Figure CN118655967A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of circuit power supply, and in particular to a power supply method, device, storage medium and program product for a central processing unit. Background Art
[0002] With the continuous development of network technology, the division of labor in network services has become more and more refined, the division of labor corresponding to each server has become more precise, and the performance of the server has become more customized. Taking into account different customer needs, in the process of server design, each generation of CPU (Central Processing Unit) in the server will be set up in different series of high-end, mid-end and low-end to meet different customer needs. Customers can use different types of CPUs to achieve customized services, which not only meets customer needs but also reduces dependence on high-specification CPUs. At present, when each manufacturer generates a certain generation of CPU products, they will directly design multiple types of CPUs with the same package but different power consumption levels. However, these CPUs with different power consumption levels have different power supply requirements.
[0003] It can be seen that how to enable a server motherboard to meet the different power supply requirements of multiple types of CPUs is a problem that technical personnel in this field need to solve. Summary of the invention
[0004] The purpose of the embodiments of the present invention is to provide a power supply method, device, storage medium and program product for a central processing unit, which can solve the problem that a server mainboard cannot meet the different power supply requirements of multiple types of CPUs.
[0005] In order to solve the above technical problems, an embodiment of the present invention provides a power supply method for a central processing unit, wherein the central processing unit is arranged on a server mainboard, and the server mainboard is also provided with a logic control module and a power multi-phase controller, and the power multi-phase controller is configured with power firmware corresponding to different models of central processing units, and the power supply method for the central processing unit includes: The logic control module detects the identifier of the current central processing unit on the server mainboard; generating a control signal corresponding to the identifier; The control signal is output to the power multi-phase controller to control the power multi-phase controller to call the power firmware corresponding to the control signal, and supply power to the central processing unit based on the power firmware.
[0006] In some embodiments, detecting the identifier of the current central processing unit on the server motherboard includes: Reading the model information in the register of the current central processing unit on the server motherboard; The model information is used as the identifier of the current central processing unit on the server mainboard.
[0007] In some embodiments, the powering the central processing unit based on the power firmware includes: The power multi-phase controller configures the output voltage and output current corresponding to the output to the central processing unit based on the currently called power firmware, so as to supply power to the central processing unit based on the output voltage and the output current; Or, the power multi-phase controller configures an output voltage corresponding to the output to the central processing unit based on the currently called power firmware, so as to supply power to the central processing unit based on the output voltage; Alternatively, the power multi-phase controller configures an output current corresponding to the output to the central processing unit based on the currently called power firmware, so as to supply power to the central processing unit based on the output current.
[0008] In some embodiments, it also includes: when the server mainboard is initially powered on, the power multi-phase controller configures the output pins based on the power firmware stored by default in the controller.
[0009] In some embodiments, it also includes: if the power supply firmware corresponding to the control signal is consistent with the power supply firmware stored by default in the power multi-phase controller, the power multi-phase controller directly supplies power to the central processing unit based on the power supply firmware stored by default.
[0010] In some embodiments, the control signal is a level signal, and a level monitoring circuit is further provided on the server mainboard; outputting the control signal to the power multi-phase controller includes: The control signal is output to the level monitoring circuit so that the level monitoring circuit converts the level signal into a voltage signal and outputs the converted voltage signal to the power multi-phase controller.
[0011] In some embodiments, the power multi-phase controller is provided with a non-volatile register, and the non-volatile register includes a plurality of address spaces; The configuration process of different power firmware in the power multi-phase controller specifically includes: Obtaining identifications of several central processing units and power supply firmware corresponding to each of the identifications; Enabling the non-volatile registers in the power multi-phase controller to control the startup of each non-volatile register in the power multi-phase controller; The non-volatility is adjusted to a writable state, and based on the correspondence between the plurality of identifiers and the address spaces in the non-volatile register, each power supply firmware is allocated to a corresponding address space for storage; The power multi-phase controller calls the power firmware corresponding to the control signal, including: The power multi-phase controller determines an address space corresponding to the control signal based on the corresponding relationship; The power supply firmware corresponding to the address space corresponding to the control signal is called.
[0012] In some embodiments, the power multi-phase controller is provided with a random access memory, and the calling of the power firmware corresponding to the address space corresponding to the control signal includes: Calling the power supply firmware corresponding to the address space corresponding to the control signal into the random access memory; The supplying power to the central processing unit based on the power firmware includes: The central processing unit is powered based on the power firmware in the random access memory.
[0013] In order to solve the above technical problems, an embodiment of the present invention further provides a power supply device for a central processing unit, comprising a server mainboard and a central processing unit, a logic control module and a power multi-phase controller arranged on the server mainboard, wherein the input end of the logic control module is connected to the output end of the central processing unit, the output end is connected to the control end of the power multi-phase controller, and the output end of the power multi-phase controller is connected to the power supply end of the central processing unit; The logic control module includes a memory and a processor: the memory is used to store a computer program; the processor is used to execute the computer program to implement the steps of the power supply method for the central processing unit as described above.
[0014] In some embodiments, when the control signal is a level signal, the power supply device of the central processing unit further includes: A level monitoring circuit, whose input end is connected to the output end of the logic control module and whose output end is connected to the control end of the power multi-phase controller, is used to convert the level signal into a voltage signal so that the power multi-phase controller can determine the identifier of the current central processing unit on the server motherboard based on the voltage signal.
[0015] In some embodiments, the level monitoring circuit comprises: A control switch, the control end of which is connected to the output end of the logic control module, and is used to be turned on when the level signal is a high level signal, and turned off when the level signal is a low level signal; a first resistor, a first end of which is connected to the first end of the control switch; The second resistor has a first end connected to the power supply and is respectively connected to the control end of the power multi-phase controller, the second end of the control switch and the second end of the first resistor, and a second end is grounded.
[0016] In some embodiments, the level monitoring circuit also includes: a third resistor, a first end of which is connected to the power supply and connected to the second end of the first resistor, and a second end of which is respectively connected to the control end of the power supply multi-phase controller, the second end of the control switch and the first end of the second resistor.
[0017] In some embodiments, the level monitoring circuit further includes: a fourth resistor, a first end of which is connected to the output end of the logic control module, and a second end of which is connected to the control end of the control switch.
[0018] To solve the above technical problem, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the power supply method for a central processing unit as described above are implemented.
[0019] To solve the above technical problem, an embodiment of the present invention further provides a computer program product, including a computer program / instruction, which implements the steps of the power supply method for a central processing unit as described above when executed by a processor.
[0020] It can be seen from the above technical solution that after the central processing unit is set on the server motherboard, a corresponding control signal is generated by detecting the identifier of the currently set central processing unit, and the control signal is used to control the power multi-phase controller to call the corresponding power firmware to power the central processing unit; the beneficial effect of the present invention is that for different types of central processing units, the power multi-phase controller will call different power firmware to meet their power supply requirements, so that the server motherboard can meet the power supply requirements of various types of central processing units, effectively expanding the application scope and application scenarios of the server motherboard, and greatly reducing the research and development cost of the server motherboard and the cost of subsequent operation and management. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0022] Figure 1 A schematic diagram of a flow chart of a method for powering a central processing unit provided by an embodiment of the present invention; Figure 2A schematic diagram of the structure of a power supply device for a central processing unit provided in an embodiment of the present invention; Figure 3 A schematic diagram of the structure of a logic control module provided by an embodiment of the present invention; Figure 4 A schematic diagram of the structure of a level monitoring circuit provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0023] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0024] The terms "including" and "having" in the specification of the present invention and the above-mentioned drawings, as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may include steps or units that are not listed.
[0025] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0026] Next, a power supply method for a central processing unit provided by an embodiment of the present invention is described in detail. Figure 1 A flowchart of a power supply method for a central processing unit provided in an embodiment of the present invention is provided. The central processing unit is arranged on a server mainboard. A logic control module and a power multi-phase controller are also arranged on the server mainboard. The power multi-phase controller is configured with power supply firmware corresponding to different models of central processing units. The power supply method for the central processing unit includes: S11: The logic control module detects the identification of the current central processing unit on the server motherboard.
[0027] In actual applications, a location for the CPU is reserved on the server motherboard. After determining the main functions and application scenarios of the server corresponding to the server motherboard, a suitable model of CPU will be selected according to the actual application requirements of the server, and the selected CPU will be integrated into the reserved location on the server motherboard. Therefore, in different application scenarios, the CPU integrated on the same server motherboard may not be the same type of CPU, so their power supply requirements will also be different. Therefore, the logic control module on the server motherboard needs to detect the current CPU identification on the server motherboard after the CPU is set to determine the model of the CPU currently used on the server motherboard.
[0028] It should be noted that different models of CPUs include CPUs with different power consumption levels, and may also include CPUs with different performance levels. For the present invention, CPUs with different power supply requirements can be referred to as CPUs of different models. The present application does not specifically limit the specific method of how the logic control module determines the identification of the CPU. The identification refers to the identification of CPUs that can distinguish between different power supply requirements, which can specifically be the OPN (OEM Part Number) of the CPU, or other types of signal marks.
[0029] S12: Generate a control signal corresponding to the identifier.
[0030] It is understandable that after the logic control module detects the identification of the current CPU, it can generate a control signal corresponding to the identification of the current CPU. The logic control module presets the correspondence between the identification of the CPU and the control signal corresponding to it in advance, and the control signal can be determined directly based on this correspondence. The correspondence between the identification of the CPU and the control signal corresponding to it can be implemented specifically through a correspondence table, etc., and this application does not make any special restrictions here. This application does not make any special restrictions on the specific type and implementation method of the control signal. The generated control signal is ultimately output to the power multi-phase controller to control its power supply process to the CPU. Therefore, the specific implementation of the control signal can be set according to the specific type of the power multi-phase controller and the identifiable signal type, etc., and can be implemented specifically by level signals, binary codes, etc.
[0031] S13: Outputting the control signal to the power multi-phase controller to control the power multi-phase controller to call the power firmware corresponding to the control signal, and supplying power to the central processing unit based on the power firmware.
[0032] It is not difficult to understand that the control signal generated by the logic control module will be output to the power multi-phase controller, and the power multi-phase controller is pre-configured with power firmware corresponding to different models of central processing units. After receiving the control signal output by the logic control module, the power multi-phase controller will call the corresponding power firmware according to the specific control signal received, and use the currently called power firmware to supply power when the CPU needs power. The CPU identifier, the control signal output by the logic control module, and the power firmware currently called by the power multi-phase controller correspond one to one, so that the power firmware finally called by the voltage multi-phase controller based on the control signal can accurately meet the current CPU power supply requirements; at the same time, since a variety of power firmware are pre-configured in it, the power multi-phase controller can meet the power supply requirements of different types of CPUs set on the server motherboard by calling different power firmware.
[0033] It should be noted that the power supply firmware is a firmware program of the power supply, which is used to control the switching, current output and power supply status of the power supply, so as to realize effective power supply to the server, especially the CPU. Different power supply firmware can be implemented through different versions of power supply firmware. The specific implementation method of the power supply firmware and the specific differences between different power supply firmware corresponding to different models of central processing units can be set and adjusted according to the specific situation of the CPU in the actual application. This application does not make any special restrictions on the number and type of power supply firmware pre-set in the power multi-phase controller. It can be set according to the commonly used CPU model of the server or the currently available CPU model, and the specific number can also be adjusted and set according to the available scenarios and common scenarios of the server.
[0034] It should be noted that the present application does not make any special restrictions on the specific types and implementation methods of the logic control module and the power multi-phase controller. The logic control module can be implemented by CPLD (Complex Programmable Logic Device) and / or BMC (Baseboard Management Controller); the present application does not make any special restrictions on the specific type and implementation method of the server motherboard and the specific setting method of the CPU, logic control module, and power multi-phase controller thereon. The specific method of loading firmware and calling firmware of the power multi-phase controller can be set and adjusted according to the specific power multi-phase controller used, which can be implemented by setting corresponding registers or memories.
[0035] It is understandable that in order to solve the problem of different power supply requirements of the CPU in the server, the present invention proposes a power supply method, a power multi-phase controller is set on the server motherboard to realize the control process of the CPU power supply, and the multiple configurations of the power firmware are realized through the CONFIG (multi-configuration) function of the multi-phase controller, and the power firmware required by the motherboard can be configured into different registers in the power multi-phase controller. In the server startup stage, the CPLD accesses the register of the current CPU to detect the OPN of the CPU in place. After the CPLD obtains the detection result and determines the OPN of the CPU, it sends a control signal representing the CPU OPN to the multi-config pin of the power multi-phase controller, adjusts the identification voltage of the multi-config pin of the power multi-phase controller, and the power multi-phase controller can determine the register address of the power firmware that needs to be called currently through the different voltage values of the multi-config pin, and adjusts the corresponding power firmware to the RAM (Random Access Memory) in the initialization stage of the CPU power, so as to realize that different series of CPUs share a server motherboard.
[0036] It is not difficult to understand that the present invention can provide a server motherboard that meets the needs of multiple types of CPUs. Different types of CPUs can share the same server motherboard, thereby greatly reducing R&D costs, greatly reducing the number of server motherboards that need to be produced and designed, and reducing the cost of product operation and management, which is in line with the cost reduction concept. Different power supply firmware configuration methods and power supply control methods based on logic control modules are realized through the cooperation of logic control modules and power supply multi-phase controllers. The power supply method for the central processing unit provided by the present invention is suitable for different application scenarios of the CPU, and is not limited to power supply methods for products such as servers, PCs (Personal Computers) and notebooks.
[0037] The present invention provides a method for powering a central processing unit. After the central processing unit is set on a server mainboard, a corresponding control signal is generated by detecting an identifier of the currently set central processing unit, and the control signal is used to control a power multi-phase controller to call a corresponding power firmware to power the central processing unit. The present invention has the beneficial effect that for different types of central processing units, the power multi-phase controller will call different power firmware to meet their power supply requirements, so that the server mainboard can meet the power supply requirements of a variety of different types of central processing units, effectively expanding the application scope and application scenarios of the server mainboard, and greatly reducing the research and development cost of the server mainboard and the cost of subsequent operation and management.
[0038] In some embodiments, the logic control module may be unable to detect the identification and corresponding model of the current CPU, which may be caused by a CPU failure or other fault conditions. At this time, the logic control module can report an error and issue an alarm, and no longer perform subsequent logic control processes such as control signal generation to avoid miscontrol. It can also promptly inform the operator of the current fault so that the operator can repair it in time.
[0039] In some embodiments, with the continuous development of CPUs, new models of CPUs may be produced. Therefore, when setting up a power multi-phase controller, redundancy can be further set in the power multi-phase controller. When a new model of CPU exists, its corresponding power firmware is burned into the power multi-phase controller, so that the server motherboard can be directly applicable to the new model of CPU, and there is no need to redesign the server motherboard for the new model of CPU, further reducing the research and development cost. The specific implementation method of the redundant setting of the power multi-phase controller is not particularly limited in this application, and it can be implemented by reserving redundant address space in a non-volatile register.
[0040] In some embodiments, detecting the identifier of the current central processing unit on the server motherboard includes: Read the model information in the register of the current CPU on the server motherboard; The model information is used as the identification of the current central processing unit on the server motherboard.
[0041] It is not difficult to understand that the central processing unit will store its own model information in a specific register during the design generation process. The logic control module can directly access and read the model information in this register of the CPU as the identification of the CPU. Specifically, the CPU register can be read through the CPLD. The specific content of the model information is not specifically limited in this application, and can specifically include the series model of the CPU, etc. The model information can also directly include the specific requirements of the CPU for power supply.
[0042] Specifically, the specific model of the CPU can usually be determined directly by accessing and reading the registers of the CPU, thereby determining its corresponding power supply requirement, so that the logic control module can generate an accurate control signal, which is simple, effective and easy to implement.
[0043] In some embodiments, powering the central processing unit based on the power firmware includes: The power multi-phase controller configures the output voltage and output current corresponding to the output to the central processing unit based on the currently called power firmware, so as to supply power to the central processing unit based on the output voltage and output current; Or, the power multi-phase controller configures an output voltage corresponding to the output to the central processing unit based on the currently called power firmware, so as to supply power to the central processing unit based on the output voltage; Alternatively, the power multi-phase controller configures an output current corresponding to the output to the central processing unit based on the currently called power firmware, so as to supply power to the central processing unit based on the output current.
[0044] It is not difficult to understand that the power supply process of the multi-phase power supply controller to the CPU is usually realized by outputting the corresponding output voltage and / or output current. For different types of CPUs, the multi-phase power supply controller outputs output voltages and / or output currents of different sizes to achieve different power supply requirements of the CPU; therefore, different power supply firmwares usually achieve different power supply processes by setting the output voltage and / or output current differently, and the multi-phase power supply controller will correspondingly output the corresponding output voltage and / or output current to realize the power supply process of the CPU. The present application does not make any special restrictions on the specific values of the output voltage and / or output current corresponding to each power supply firmware.
[0045] Specifically, the process of the power multi-phase controller supplying power to the CPU based on the power firmware can specifically supply power to the CPU by outputting voltage and / or output current, and different power supply processes for the CPU can be achieved by different output voltages and / or output currents.
[0046] In some embodiments, it also includes: when the server mainboard is initially powered on, the power multi-phase controller configures the output pins based on the power firmware stored by default in the controller.
[0047] It is not difficult to understand that the detection of the central processing unit by the logic control module and the control of the multi-phase power supply control are generally performed after the server is powered on and the central processing unit is set up, and the multi-phase power supply controller is usually started when the server mainboard is initially powered on. The initial power-on of the server mainboard is the moment when the server mainboard is just powered on. At this time, the central processing unit may not have been configured. The multi-phase power supply controller can configure the output pins according to the default power supply firmware set by itself, and configure the output voltage and / or output current of the initial state of the output pins to the output voltage and / or output current corresponding to the default power supply firmware. The present application does not make any special restrictions on the specific type of the power supply firmware stored by the multi-phase power supply controller by default and the specific values of the corresponding output voltage and / or output current.
[0048] Specifically, the power multi-phase controller can perform initial configuration for its own output pins when the server mainboard is initially powered on, which facilitates the subsequent configuration process of the power multi-phase controller adjusting the output pins according to the control signal, improves the speed of the power multi-phase controller calling the power firmware and the corresponding configuration output pins, ensures the power supply efficiency of the power multi-phase controller, and realizes self-configuration of the power multi-phase controller.
[0049] In some embodiments, it also includes: if the power supply firmware corresponding to the control signal is consistent with the power supply firmware stored by default in the power multi-phase controller, the power multi-phase controller directly supplies power to the central processing unit based on the power supply firmware stored by default.
[0050] It can be understood that after receiving the control signal output by the logic control module, the power multi-phase controller can determine the power firmware corresponding to the current control signal. At this time, if the power firmware corresponding to the control signal is consistent with the default stored power firmware used during the initial configuration, the power multi-phase controller does not need to repeatedly call the power firmware, and directly uses the output voltage and / or output current of the initial configuration process, that is, directly uses the output pins completed by the initial configuration to power the central processing unit to meet the current power demand of the central processing unit. If the power firmware corresponding to the control signal is inconsistent with the default stored power firmware used during the initial configuration, the power multi-phase controller will re-call the power firmware corresponding to the control signal, and reconfigure the output voltage and / or output current of the output pin according to the re-called power firmware. Based on this, the power firmware stored by default in the power multi-phase controller can be set according to the power supply demand corresponding to the CPU with the highest frequency of use on the server motherboard, so as to reduce the process of re-calling and reconfiguring the power multi-phase controller, and further improve the power supply efficiency of the power multi-phase controller.
[0051] Specifically, considering that the power multi-phase controller itself has an initial configuration process, in the subsequent process of calling the power firmware according to the control signal, it can also be further judged whether the power firmware corresponding to the control signal is consistent with the default stored power firmware used during the initial configuration, thereby further improving the power supply speed and power supply efficiency of the power multi-phase controller.
[0052] In some embodiments, the control signal is a level signal, and a level monitoring circuit is also provided on the server mainboard; the control signal is output to the power multi-phase controller, including: The control signal is output to the level monitoring circuit so that the level monitoring circuit converts the level signal into a voltage signal and outputs the converted voltage signal to the power multi-phase controller.
[0053] It is not difficult to understand that the CPU currently installed on the server motherboard usually only switches between two types of CPUs, so the control signal output by the logic control module to the power multi-phase controller can be realized through a simple level signal. When the CPLD detects the CPU OPN, if the CPU model is OPN1, the control signal is a high-level signal, otherwise the control signal is a low-level signal. At the same time, the power multi-phase controller needs to implement the calling process of different power firmware according to voltage signals of different sizes, so a level monitoring circuit can be added between the logic control module and the power multi-phase controller to convert the control signal output by the logic control module into a voltage signal that can be recognized by the multi-config pin of the power multi-phase controller, and the converted voltage signal is finally output to the power multi-phase controller.
[0054] Furthermore, considering that there may be more than 2 types of CPUs that can be set on the server motherboard, a single level signal is difficult to distinguish multiple types of CPUs. At this time, the control signal can be implemented by a multi-bit binary code. A multi-bit register is set in the CPLD. The CPLD accesses the CPU to detect and identify different CPU models, and represents different CPU models through different binary combinations. The CPU has multiple pins that are connected to each IO port of the register in the CPLD in a one-to-one correspondence. The CPLD determines the model of the CPU in place by identifying the high and low level combination of each pin corresponding to the CPU, and the CPLD outputs each binary code in sequence. At the same time, a level monitoring circuit with multiple output ends connected together is set between the CPLD and the voltage multi-phase controller. Each level monitoring circuit is respectively connected to a binary signal output by the CPLD, so that multiple different voltage signals are generated by multiple level monitoring circuits and output to the power multi-phase controller. Taking the existence of 4 CPU models as an example, the four CPU models can be distinguished by different binary codes 00, 01, 10, and 11. At the same time, two level monitoring circuits are set to realize the switching of 4 voltages. The input ends of the two level monitoring circuits are respectively connected to the first binary code and the second binary code. The specific number of bits of the binary code can be set according to the number of types of CPU models, and the number of IO ports of the register and the number of settings of the level monitoring circuit can correspond one-to-one with the number of bits of the binary code.
[0055] Specifically, the specific type and implementation method of the control signal can be set according to the required number of CPU types. The specific method of the power multi-phase controller for receiving and identifying the control signal can also be adjusted according to the specific type of the control signal and the identification signal type of its own pin. It can be implemented by setting hardware circuits, etc., which is flexible and effective and can help the power multi-phase controller effectively realize the identification process of the control signal.
[0056] In some embodiments, a non-volatile register is provided in the power multi-phase controller, and the non-volatile register includes a plurality of address spaces; The configuration process of different power supply firmware in the power multiphase controller specifically includes: Obtaining the identifiers of several central processing units and the power supply firmware corresponding to each identifier; Enabling the non-volatile registers in the power multi-phase controller to control the startup of each non-volatile register in the power multi-phase controller; The non-volatile register is adjusted to a writable state, and each power supply firmware is allocated to a corresponding address space for storage based on a correspondence between a plurality of identifiers and each address space in the non-volatile register; The power multiphase controller calls the power firmware corresponding to the control signal, including: The power multi-phase controller determines the address space corresponding to the control signal based on the corresponding relationship; Call the corresponding power firmware in the address space corresponding to the control signal.
[0057] It is not difficult to understand that different power firmwares need to be configured in advance in the power multi-phase controller as needed. In order to realize the configuration process of different power firmwares, NVM (Non-volatile memory) can be set in the power multi-phase controller to store each power firmware, and the power firmware is configured in the NVM. In order to distinguish each power firmware to facilitate the subsequent accurate call of the power multi-phase controller, the NVM needs to set multiple different address spaces. When storing the power firmware, all power firmware can be stored using the same preset rules, thereby further ensuring the accuracy and reliability of the subsequent call of the power multi-phase controller.
[0058] As a specific embodiment, after obtaining the identifier of the central processor and its corresponding power firmware, first enable the MFR_VR_CONFIG of the power multi-phase controller to control the startup of the non-volatile register, and then adjust the non-volatility to a writable state by setting BIT
[10] to 1. Different power firmwares correspond to different allocated register spaces, as shown in Table 1, which is a configuration relationship table of NVM, RAM and power firmware in the power multi-phase controller. The power firmware that may be used by the server motherboard is burned into Group 1, Group 2, and Group 3 of the NVM register respectively.
[0059] Table 1 NVM, RAM and power firmware configuration relationship table
[0060] Specifically, the pre-configuration process of different power firmware in the power multi-phase controller can be effectively implemented by setting non-volatile registers, and the storage areas of different power firmware can be divided by different address spaces, so that the power multi-phase controller can directly determine the power firmware to be called according to the address and accurately call the required power firmware, ensuring the accuracy and reliability of the power firmware called by the power multi-phase controller.
[0061] In some embodiments, a random access memory is provided in the power multi-phase controller, and the corresponding power firmware in the address space corresponding to the control signal is called, including: calling the corresponding power supply firmware in the address space corresponding to the control signal into the random access memory; Power the CPU based on the power firmware, including: Power is supplied to the CPU based on the power firmware in the RAM.
[0062] It is not difficult to understand that in the process of the power multi-phase controller calling the power firmware to power the CPU, the currently called power firmware also needs to be temporarily stored in the power multi-phase controller. Therefore, a random access memory can be further set in the power multi-phase controller to temporarily store the currently called power firmware; when the CPU model is determined, the power firmware of the NVM in the power multi-phase controller will be called into the RAM, and the power multi-phase controller directly supplies power based on the power firmware in the random access memory. The power firmware in the RAM of the power multi-phase controller can also be configured as needed. In the initial state, the default power firmware can be configured and stored in the RAM to facilitate the initial configuration of the power multi-phase controller. As shown in Table 1, the power firmware stored in Group1 is the default power firmware of the power multi-phase controller. Therefore, in the initial state, the power firmware in Group1 is configured in the RAM.
[0063] Specifically, the power multi-phase controller can further be provided with a random access memory, which can not only temporarily store the currently called power firmware, but also realize the storage of the default power firmware of the initially configured power multi-phase controller, so that the power multi-phase controller can be directly powered by the power firmware in the random access memory, which facilitates the firmware calling and power supply process of the power multi-phase controller.
[0064] Next, a power supply device for a central processing unit provided by an embodiment of the present invention is described in detail. Figure 2 A schematic diagram of the structure of a power supply device for a central processing unit provided in an embodiment of the present invention; Figure 3A schematic diagram of the structure of a logic control module provided in an embodiment of the present invention. The power supply device of the central processing unit includes a server mainboard and a central processing unit, a logic control module and a power multi-phase controller arranged on the server mainboard, the input end of the logic control module is connected to the output end of the central processing unit, the output end is connected to the control end of the power multi-phase controller, and the output end of the power multi-phase controller is connected to the power supply end of the central processing unit; The logic control module includes a memory and a processor: the memory 60 is used to store computer programs; the processor 61 is used to execute the computer programs to implement the steps of the power supply method for the central processing unit as described above.
[0065] Among them, the processor 61 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 61 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 61 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 61 may be integrated with a graphics processing unit (GPU), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 61 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0066] The memory 60 may include one or more computer-readable storage media, which may be non-transitory. The memory 60 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 60 is at least used to store the following computer program 601, wherein, after the computer program is loaded and executed by the processor 61, it can implement the relevant steps of the power supply method of the central processing unit disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 60 may also include an operating system 602 and data 603, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 602 may include Windows, Unix, Linux, etc. Data 603 may include but is not limited to data required for the power supply method of the central processing unit, etc.
[0067] In some embodiments, the power supply device of the central processing unit may also include a display screen 62 , an input / output interface 63 , a communication interface 64 , a power supply 65 , and a communication bus 66 .
[0068] Those skilled in the art will understand that Figure 3 The structure shown in the figure does not constitute a limitation on the logic control module, and may include more or fewer components than shown in the figure. The server motherboard in the power supply device of the central processing unit provided in this embodiment can also be adjusted according to different application scenarios. For example, when applied in a PC, the CPU will be set on the PC motherboard, and the server motherboard in the power supply device of the central processing unit can also be adaptively adjusted to a PC motherboard, and is not limited to the implementation method of the server motherboard.
[0069] For the description of the features in the embodiment corresponding to the power supply device for the CPU provided in the embodiment of the present invention, reference can be made to the relevant description of the embodiment corresponding to the power supply method for the CPU provided in the embodiment of the present invention, which will not be described one by one here.
[0070] In some embodiments, when the control signal is a level signal, the power supply device of the central processing unit further includes: The level monitoring circuit has an input end connected to the output end of the logic control module and an output end connected to the control end of the power multi-phase controller, and is used to convert the level signal into a voltage signal so that the power multi-phase controller can determine the identification of the current central processing unit on the server motherboard based on the voltage signal.
[0071] It is not difficult to understand that the control signal output from the logic control module to the power multi-phase controller can be realized through a simple level signal. When the CPLD detects the CPU OPN, if the CPU model is OPN1, the control signal is a high level signal, otherwise the control signal is a low level signal. At the same time, the power multi-phase controller needs to implement the calling process of different power firmware according to voltage signals of different sizes. Therefore, a level monitoring circuit can be added between the logic control module and the power multi-phase controller to convert the control signal output by the logic control module into a voltage signal that can be recognized by the multi-config pin of the power multi-phase controller. The converted voltage signal is finally output to the power multi-phase controller. The control signal is received and recognized by building a level monitoring circuit on the multi-config pin of the power multi-phase controller.
[0072] In some embodiments, Figure 4 A schematic diagram of a level monitoring circuit provided by an embodiment of the present invention. The level monitoring circuit comprises: A control switch Q1, the control end of which is connected to the output end of the logic control module, is used to be turned on when the level signal is a high level signal, and turned off when the level signal is a low level signal; A first resistor R1, a first end of which is connected to a first end of the control switch Q1; The second resistor R2 has a first end connected to the power supply VCC and is respectively connected to the control end of the power multi-phase controller, the second end of the control switch Q1 and the second end of the first resistor R1 , and a second end is grounded.
[0073] It is not difficult to understand that the level monitoring circuit can be realized by using the level signal to control the controllable switch and the different voltage division conditions of the resistors in the circuit. When the control signal is at a high level, the control switch Q1 is turned on, and the power supply will pass through the first resistor R1 and the second resistor R2 connected in series to the ground. At this time, the first end of the second resistor R2 outputs the voltage signal of the power supply after the first resistor R1 and the second resistor R2 divide the power supply; and when the control signal is at a low level, the control switch Q1 is turned off, and the power supply directly passes through the second resistor R2 to the ground. At this time, the first end of the second resistor R2 will directly output a voltage signal close to the power supply, thereby realizing the output of two voltage signals of different sizes, and realizing the distinction between the control signal being a high level signal and a low level signal. The specific types and implementation methods of the control switch Q1, the first resistor R1 and the second resistor R2 are not particularly limited here, and the control switch Q1 can be implemented by a controllable switch such as a triode.
[0074] In some embodiments, the level monitoring circuit also includes: a third resistor R3, a first end of which is connected to the power supply VCC and is connected to the second end of the first resistor R1, and a second end of which is respectively connected to the control end of the power multi-phase controller, the second end of the control switch Q1 and the first end of the second resistor R2.
[0075] Furthermore, considering that the voltage of the power supply itself is relatively large, directly outputting a relatively large voltage to the power multi-phase controller may cause safety hazards, so a third resistor R3 can also be added to the level monitoring circuit. When the control signal is a high-level signal, the control switch Q1 is turned on, and the first resistor R1 and the third resistor R3 are connected in parallel, and the circuit after the parallel connection is then divided by the second resistor R2 to obtain a first voltage signal V1. When the control signal is a low-level signal, the control switch Q1 is turned off, and only the third resistor R3 and the second resistor R2 are divided, and the second voltage signal V2 is obtained after the voltage division. When the power multi-phase controller detects that the voltage signal of the multi-config pin is V1, the power firmware in Group1 is called during the server initialization phase to provide the CPU with the corresponding power supply U1. When the power multi-phase controller detects that the voltage signal of the multi-config pin is V2, the power firmware of Group2 is called during the server initialization to provide the CPU with the corresponding power supply U2, thereby realizing a motherboard adapting to a CPU with multiple OPNs. The specific type and implementation method of the third resistor R3 are not particularly limited here.
[0076] In some embodiments, the level monitoring circuit further includes: a fourth resistor R4 , a first end of which is connected to the output end of the logic control module, and a second end of which is connected to the control end of the control switch Q1 .
[0077] Furthermore, considering that the control signal directly connected to the control terminal of the control switch Q1 may cause damage or malfunction of the control switch Q1, a fourth resistor R4 may be added to the level monitoring circuit, and the fourth resistor R4 may not only play a role in current limiting, but also stabilize the control signal, thereby avoiding the influence of noise or interference signals on the control signal action process. The specific type and implementation of the fourth resistor R4 are not particularly limited herein.
[0078] Specifically, a level monitoring circuit can be built using components such as switching tubes and resistors. The structure of the entire level monitoring circuit is simple and easy to implement. The components used are small in size and low in cost, and a simple and effective level monitoring circuit can be implemented, further reducing the cost of the entire server motherboard and reducing the size.
[0079] It is understandable that if the power supply method of the central processing unit in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the current technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM, magnetic disk or optical disk and other media that can store program codes.
[0080] Based on this, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the power supply method for the central processing unit as described above are implemented.
[0081] The description of the computer-readable storage medium in this embodiment can refer to the relevant description of the embodiment corresponding to the power supply method of the central processing unit, and will not be repeated here.
[0082] An embodiment of the present invention further provides a computer program product, including a computer program / instruction, which implements the steps of the aforementioned method for powering a central processing unit when executed by a processor.
[0083] The description of the computer program product in this embodiment can refer to the relevant description of the embodiment corresponding to the power supply method of the central processing unit, which will not be repeated here.
[0084] The above is a detailed introduction to a power supply method for a central processing unit provided by an embodiment of the present invention. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0085] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0086] The above is a detailed introduction to a power supply method for a central processing unit provided by the present invention. This article uses specific examples to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.
Claims
1. A method for supplying power to a central processing unit, It is characterized in that The central processing unit is arranged on a server mainboard, and a logic control module and a power multi-phase controller are also arranged on the server mainboard. The power multi-phase controller is configured with power firmware corresponding to different models of central processing units. The power supply method of the central processing unit includes: The logic control module detects the identifier of the current central processing unit on the server mainboard; generating a control signal corresponding to the identifier; The control signal is output to the power multi-phase controller to control the power multi-phase controller to call the power firmware corresponding to the control signal, and supply power to the central processing unit based on the power firmware.
2. The power supply method for a CPU as claimed in claim 1, It is characterized in that The detecting the identifier of the current central processing unit on the server mainboard includes: Reading the model information in the register of the current central processing unit on the server motherboard; The model information is used as the identifier of the current central processing unit on the server mainboard.
3. The power supply method for a CPU as claimed in claim 1, It is characterized in that The supplying power to the central processing unit based on the power firmware includes: The power multi-phase controller configures the output voltage and output current corresponding to the output to the central processing unit based on the currently called power firmware, so as to supply power to the central processing unit based on the output voltage and the output current; or, The power multi-phase controller configures an output voltage corresponding to the output to the central processing unit based on the currently called power firmware, so as to supply power to the central processing unit based on the output voltage; or, The power multi-phase controller configures an output current corresponding to the output to the central processing unit based on the currently called power firmware, so as to supply power to the central processing unit based on the output current.
4. The power supply method for a CPU as claimed in claim 1, It is characterized in that Also includes: When the server mainboard is initially powered on, the power multi-phase controller configures output pins based on the power firmware stored by default in the controller.
5. The power supply method for a CPU as claimed in claim 4, It is characterized in that Also includes: If the power supply firmware corresponding to the control signal is consistent with the power supply firmware stored by default in the power multi-phase controller, the power multi-phase controller directly supplies power to the central processing unit based on the power supply firmware stored by default.
6. The power supply method for a CPU as claimed in claim 1, It is characterized in that The control signal is a level signal, and a level monitoring circuit is also provided on the server mainboard; The step of outputting the control signal to the power multi-phase controller comprises: The control signal is output to the level monitoring circuit so that the level monitoring circuit converts the level signal into a voltage signal and outputs the converted voltage signal to the power multi-phase controller.
7. The power supply method for a central processing unit according to any one of claims 1 to 6, It is characterized in that The power multi-phase controller is provided with a non-volatile register, and the non-volatile register includes a plurality of address spaces; The configuration process of different power firmware in the power multi-phase controller specifically includes: Obtaining identifications of several central processing units and power supply firmware corresponding to each of the identifications; Enabling the non-volatile registers in the power multi-phase controller to control the startup of each non-volatile register in the power multi-phase controller; The non-volatility is adjusted to a writable state, and based on the correspondence between the plurality of identifiers and the address spaces in the non-volatile register, each power supply firmware is allocated to a corresponding address space for storage; The power multi-phase controller calls the power firmware corresponding to the control signal, including: The power multi-phase controller determines an address space corresponding to the control signal based on the corresponding relationship; The power supply firmware corresponding to the address space corresponding to the control signal is called.
8. The power supply method for a CPU as claimed in claim 7, It is characterized in that The power multi-phase controller is provided with a random access memory, and the calling of the power firmware corresponding to the address space corresponding to the control signal includes: Calling the power supply firmware corresponding to the address space corresponding to the control signal into the random access memory; The supplying power to the central processing unit based on the power firmware includes: The central processing unit is powered based on the power firmware in the random access memory.
9. A power supply device for a central processing unit, It is characterized in that It includes a server mainboard and a central processing unit, a logic control module and a power multi-phase controller arranged on the server mainboard, wherein the input end of the logic control module is connected to the output end of the central processing unit, the output end is connected to the control end of the power multi-phase controller, and the output end of the power multi-phase controller is connected to the power supply end of the central processing unit; The logic control module includes a memory and a processor: The memory is used to store computer programs; The processor is used to execute the computer program to implement the steps of the power supply method for the central processing unit as claimed in any one of claims 1 to 8.
10. The power supply device for a CPU as claimed in claim 9, It is characterized in that When the control signal is a level signal, the power supply device of the central processing unit further includes: A level monitoring circuit, whose input end is connected to the output end of the logic control module and whose output end is connected to the control end of the power multi-phase controller, is used to convert the level signal into a voltage signal so that the power multi-phase controller can determine the identifier of the current central processing unit on the server motherboard based on the voltage signal.
11. The power supply device for a CPU as claimed in claim 10, It is characterized in that The level monitoring circuit comprises: A control switch, the control end of which is connected to the output end of the logic control module, and is used to be turned on when the level signal is a high level signal, and turned off when the level signal is a low level signal; a first resistor, a first end of which is connected to the first end of the control switch; The second resistor has a first end connected to the power supply and is respectively connected to the control end of the power multi-phase controller, the second end of the control switch and the second end of the first resistor, and a second end is grounded.
12. The power supply device for a CPU as claimed in claim 11, It is characterized in that The level monitoring circuit also includes: A third resistor has a first end connected to the power supply and connected to the second end of the first resistor, and a second end respectively connected to the control end of the power multi-phase controller, the second end of the control switch and the first end of the second resistor.
13. The power supply device for a CPU as claimed in claim 12, It is characterized in that The level monitoring circuit also includes: A fourth resistor has a first end connected to the output end of the logic control module, and a second end connected to the control end of the control switch.
14. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the power supply method for a central processing unit as claimed in any one of claims 1 to 8 are implemented.
15. A computer program product comprising a computer program / instructions, It is characterized in that When the computer program / instruction is executed by a processor, the steps of the power supply method for a central processing unit as claimed in any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Internal memory power supply control circuit
CN102456384A
CPU (central processing unit) power supply regulating method and CPU power supply regulating system
CN102902334A
System and method for power conversion
CN102902342A
Voltage signal detection circuit, power supply device and power utilization device
CN113358915A
Programmable multi-phase power supply online upgrading method and device, equipment and storage medium
CN113434178A
Cited By
Server power supply method and device, server, electronic equipment and storage medium
CN119322557A
Power supply control equipment of central processing unit and central processing unit
CN119718047A
