CN116909373A - Board card power supply control method and device, storage medium and electronic device - Google Patents

Board card power supply control method and device, storage medium and electronic device Download PDF

Info

Publication number
CN116909373A
CN116909373A CN202310868765.6A CN202310868765A CN116909373A CN 116909373 A CN116909373 A CN 116909373A CN 202310868765 A CN202310868765 A CN 202310868765A CN 116909373 A CN116909373 A CN 116909373A
Authority
CN
China
Prior art keywords
power supply
target
power
board card
target board
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310868765.6A
Other languages
Chinese (zh)
Inventor
计晶
刘铁军
张晶威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202310868765.6A priority Critical patent/CN116909373A/en
Publication of CN116909373A publication Critical patent/CN116909373A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The application discloses a power supply control method and device of a board card, a storage medium and an electronic device, wherein the method comprises the following steps: detecting current board card power consumption of a target board card in a target power supply circuit, wherein a target power supply set in the target power supply circuit comprises M power supply sources for supplying power to the target board card, and the target power supply circuit comprises N power supply sources; determining the current power supply state of the target board card according to the board card power consumption and a first power consumption threshold, wherein the first power consumption threshold is determined according to the maximum power supply power of the target power supply set; the power supply state is used for indicating that the target power supply set does not meet the power supply requirement of the target board card, and under the condition that M is smaller than N, the power supply is added to the target power supply set to supply power for the target board card.

Description

Board card power supply control method and device, storage medium and electronic device
Technical Field
The embodiment of the application relates to the field of computers, in particular to a power supply control method and device for a board card, a storage medium and an electronic device.
Background
FPGA (Field Programmable Gate Array ) has advantages of customizable, low delay and high performance power consumption ratio, and the application field is wide, for example, FPGA accelerator card has become an important component for accelerating data processing, plays an important role in tasks such as machine learning reasoning, image and voice recognition, big data analysis, and storage virtualization, and the FPGA accelerator card is usually deployed in a machine room or a server of a data center, so that more advanced AI computing acceleration solutions are brought to users.
At present, the maximum power consumption supported by the FPGA accelerator card is less than 75W, so that a single power supply with 75W is used for supplying power, however, as the data processing requirement is increased, the power consumption of the FPGA accelerator card may have larger variation, for example, in some scenes, the power consumption of the FPGA accelerator card may exceed 75W, the power consumption variation of the FPGA accelerator card cannot be dealt with by the existing power supply, and the problem of lower flexibility of the power supply control mode of the FPGA accelerator card exists.
Aiming at the problems of low power supply control flexibility and the like of the board card in the related technology, no effective solution is proposed yet.
Disclosure of Invention
The embodiment of the application provides a power supply control method and device for a board card, a storage medium and an electronic device, which are used for at least solving the problems of low power supply control flexibility and the like of the board card in the related technology.
According to an embodiment of the present application, there is provided a power supply control method for a board card, including:
detecting current board power consumption of a target board in a target power supply circuit, wherein a target power supply set in the target power supply circuit comprises M power supply sources for supplying power to the target board, the target power supply circuit comprises N power supply sources, N is a positive integer greater than or equal to 2, and M is a positive integer greater than or equal to 1 and less than or equal to N;
determining the current power supply state of the target board card according to the board card power consumption and a first power consumption threshold, wherein the first power consumption threshold is determined according to the maximum power supply power of the target power supply set;
and when the power supply state is used for indicating that the target power supply set does not meet the power supply requirement of the target board card and M is smaller than N, adding a power supply to the target power supply set to supply power to the target board card.
Optionally, the detecting the current board power consumption of the target board in the target power supply circuit includes:
invoking a current collector in the target power supply circuit to collect the current of the target board card, wherein the current collection module is connected between the power supply and the target board card;
And calling a power supply controller in the target power supply circuit to read the power consumption current, and generating board card power consumption of the target board card according to the power consumption current, wherein the power supply control module is connected with the current collector.
Optionally, adding a power supply to the target power supply set supplies power to the target board card, including:
controlling power supply lines between M power supply sources in the target power supply set and the target board card to be turned off in a target time period;
in the target time period, controlling the power supply circuit to be conducted with power supply lines between P power supply sources except the M power supply sources in the N power supply sources and the target board card, wherein in the target time period, a power storage capacitor connected with the target board card supplies power to the target board card in a discharging mode;
and after the power supply lines between the P power supply sources and the target board card are determined to be conducted, controlling the power supply lines between the M power supply sources in the target power supply set and the target board card to be conducted.
Optionally, the controlling the power supply line between the P power supplies, except the M power supplies, of the N power supplies, and the target board card includes:
And in the target time period, invoking a power supply control module in the target power supply circuit to control the conduction of semiconductor field effect transistors corresponding to P power supplies except for the target power supply set in N power supplies included in the target power supply circuit, wherein each power supply in the P power supplies is allowed to supply power to the target board under the condition that the corresponding semiconductor field effect transistor is conducted, and the target power supply set comprises (M+P) power supplies, wherein (M+P) is a positive integer less than or equal to N.
Optionally, after the determining the current power supply state of the target board card according to the board card power consumption and the first power consumption threshold, the method further includes:
the power supply state is used for indicating that the target power supply set does not meet the power supply requirement of the target board card, and under the condition that M is equal to N, the target board card is subjected to frequency reduction processing;
detecting the power supply state to indicate the duration that the target power supply set does not meet the power consumption requirement of the target board card;
and stopping all power supply of the target board card under the condition that the duration reaches a target duration threshold.
According to another embodiment of the present application, there is also provided a power supply control circuit of a board card, including:
The target power supply circuit comprises N power supply sources, wherein N is a positive integer greater than or equal to 2, M power supply sources in the N power supply sources are used as a target power supply set for supplying power to a target board card, and M is a positive integer greater than or equal to 1 and less than or equal to N;
the power supply control circuit is connected to the power supply lines of each power supply source and the target board card in the N power supply sources;
the power supply control circuit is used for detecting the current board power consumption of the target board; determining the current power supply state of the target board card according to the board card power consumption and a first power consumption threshold, wherein the first power consumption threshold is determined according to the maximum power supply power of the target power supply set; and when the power supply state is used for indicating that the target power supply set does not meet the power supply requirement of the target board card and M is smaller than N, adding a power supply to the target power supply set to supply power to the target board card.
Optionally, the power supply control circuit includes: a power supply controller and a current collector, wherein,
the current collector is connected with the power supply line, and the power supply controller is connected with the current collector;
The current collector is used for collecting the current electricity consumption current of the target board card;
the power supply controller is used for reading the electricity consumption current acquired by the current collector, generating board card power consumption of the target board card according to the electricity consumption current, and determining the current power supply state of the target board card according to the board card power consumption and the first power consumption threshold.
Optionally, the power supply controller includes: a control chip and N semiconductor field effect transistors, wherein,
each semiconductor field effect transistor is connected between one power supply and the target board card, and the control chip is connected with each semiconductor field effect transistor;
the control chip is used for controlling the power supply lines between the M power supplies in the target power supply set and the target board card to be turned off in a target time period; in the target time period, controlling the conduction of the semiconductor field effect transistors corresponding to the P power supplies except the target power supply set in the N power supplies, wherein in the target time period, a power storage capacitor connected with the target board card supplies power for the target board card; and after the power supply lines between the P power supply sources and the target board card are determined to be conducted, controlling the power supply lines between the M power supply sources in the target power supply set and the target board card to be conducted.
According to another embodiment of the present application, there is also provided a power supply control device for a board card, including:
the first detection module is used for detecting the current board power consumption of a target board in a target power supply circuit, wherein a target power supply set in the target power supply circuit comprises M power supply sources for supplying power to the target board, the target power supply circuit comprises N power supply sources, N is a positive integer greater than or equal to 2, M is a positive integer greater than or equal to 1 and less than or equal to N;
the determining module is used for determining the current power supply state of the target board card according to the board card power consumption and a first power consumption threshold, wherein the first power consumption threshold is determined according to the maximum power supply power of the target power supply set;
and the adding module is used for adding a power supply source to the target power supply set to supply power for the target board card when the power supply state is used for indicating that the target power supply set does not meet the power supply requirement of the target board card and M is smaller than N.
According to still another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to execute the power supply control method of the board card when running.
According to still another aspect of the embodiment of the present application, there is further provided an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the power supply control method of the board card through the computer program.
In the embodiment of the application, the target power supply circuit comprises N power supplies, the target power supply set comprises M power supplies therein and is used for supplying power to the target board, the current board power consumption of the target board in the target power supply circuit can be detected in the power supply process of the target board, the current power supply state of the target board is further determined according to the board power consumption and a first power consumption threshold value determined according to the maximum power supply power of the target power supply set, the current power supply state of the target board is used for indicating that the power supply set does not meet the power supply requirement of the target board, and the power supply is added to the target power supply set to supply power to the target board under the condition that M is smaller than N, that is, when the power consumption of the board of the target board is lower, the current M power supplies can be used as the target power supply set to supply power to the target board, and when the power consumption of the board of the target board is higher, the additional power supply can be flexibly added to the target power supply set to meet the power supply requirement of the target board. By adopting the technical scheme, the problems of low power supply control flexibility and the like of the board card in the related technology are solved, and the technical effect of improving the power supply control flexibility of the board card is realized.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the application or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a schematic diagram of a hardware environment of a power supply control method of a board according to an embodiment of the application;
FIG. 2 is a flow chart of a method of power control for a board card according to an embodiment of the application;
FIG. 3 is a schematic diagram of the structure of an FPGA accelerator card according to an embodiment of the application;
FIG. 4 is a schematic diagram of a method for detecting power consumption of a board according to an embodiment of the application;
FIG. 5 is a schematic diagram of a target power set adding power supply according to an embodiment of the application;
FIG. 6 is a schematic diagram of a power circuit of a target board card according to an embodiment of the application;
FIG. 7 is a schematic diagram of a power control circuit of a target board card according to an embodiment of the application;
FIG. 8 is a schematic diagram of a power control flow of a board according to an embodiment of the application;
fig. 9 is a block diagram of a power supply control device of a board according to an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The method embodiments provided by the embodiments of the present application may be performed in a computer terminal, a device terminal, or a similar computing apparatus. Taking a computer terminal as an example, fig. 1 is a schematic diagram of a hardware environment of a power supply control method of a board according to an embodiment of the application. As shown in fig. 1, the computer terminal may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, and in one exemplary embodiment, may also include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the configuration shown in fig. 1 is merely illustrative and is not intended to limit the configuration of the computer terminal described above. For example, a computer terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than the equivalent functions shown in FIG. 1 or more than the functions shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a power supply control method of a board card in an embodiment of the present application, and the processor 102 executes the computer program stored in the memory 104, thereby performing various functional applications and data processing, that is, implementing the above-mentioned method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the computer terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is configured to communicate with the internet wirelessly.
For convenience of description, the following will describe some terms or terminology involved in the embodiments of the present application:
MOSFET: metal Oxide Semiconductor Field-Effect Transistor, metal oxide semiconductor field effect transistor;
OCP: over Current Protection, overcurrent protection;
and (3) FPGA: field Programmable Gate Array, field programmable gate array;
CPLD: complex Programmable Logic Device, complex programmable logic devices;
QSFP: quad Small Form-factor plug optical module connector with four channels capable of plugging and unplugging;
GPU: graphic Processing Unit, a graphics processor;
DPU: data Processing Unit, a data processor;
VRM: voltage Regulator Module, voltage regulating modules.
In this embodiment, a power supply control method for a board card is provided, which is applied to the computer terminal, and fig. 2 is a flowchart of a power supply control method for a board card according to an embodiment of the present application, as shown in fig. 2, where the flowchart includes the following steps:
step S202, detecting current board card power consumption of a target board card in a target power supply circuit, wherein a target power supply set in the target power supply circuit comprises M power supply sources for supplying power to the target board card, the target power supply circuit comprises N power supply sources, N is a positive integer greater than or equal to 2, and M is a positive integer greater than or equal to 1 and less than or equal to N;
step S204, determining the current power supply state of the target board according to the board power consumption and a first power consumption threshold, wherein the first power consumption threshold is determined according to the maximum power supply power of the target power supply set;
step S206, when the power supply status is used to indicate that the target power supply set does not meet the power supply requirement of the target board card, and M is smaller than N, adding a power supply to the target power supply set to supply power to the target board card.
Through the steps, the target power supply circuit comprises N power supplies, the target power supply set comprises M power supplies therein and is used for supplying power to the target board, the current board power consumption of the target board in the target power supply circuit can be detected in the power supply process of the target board, the current power supply state of the target board is further determined according to the board power consumption and the first power consumption threshold value determined according to the maximum power supply power of the target power supply set, the current power supply state of the target board is used for indicating that the power supply set does not meet the power supply requirement of the target board, and under the condition that M is smaller than N, the power supply is added to the target power supply set to supply power to the target board, that is, when the power consumption of the board of the target board is lower, the current M power supplies can be kept as the target power supply set to supply power to the target board, and when the power consumption of the board of the target board is higher, the additional power supply can be flexibly added to the target power supply set to meet the power supply requirement of the target board. By adopting the technical scheme, the problems of low power supply control flexibility and the like of the board card in the related technology are solved, and the technical effect of improving the power supply control flexibility of the board card is realized.
In the technical solution provided in step S202, the types of the target board card include: ISA (Industry Standard Architecture ) bus board and PCI (Peripheral Component Interconnect, peripheral component interconnect) bus board, etc., but may be further subdivided into more specialized boards, such as standard PCIe card of GPU and standard PCIe card of DPU, according to specific fields and applications.
Optionally, in this embodiment, the FPGA accelerator card is a professional board card for a specific field and application, and fig. 3 is a schematic structural diagram of an FPGA accelerator card according to an embodiment of the present application, as shown in fig. 3, the FPGA accelerator card includes: the core of the FPGA chip is the FPGA chip, the FPGA accelerator card utilizes the characteristics of the FPGA chip such as customization, low delay and high performance power consumption ratio, and the FPGA accelerator card is used as an important component for accelerating data processing and is widely applied to the data processing fields such as machine learning reasoning, image and voice recognition, big data analysis, storage virtualization and the like.
In one exemplary embodiment, the current board power consumption of a target board in a target power circuit may be detected, but is not limited to, by: invoking a current collector in the target power supply circuit to collect the current of the target board card, wherein the current collection module is connected between the power supply and the target board card; and calling a power supply controller in the target power supply circuit to read the power consumption current, and generating board card power consumption of the target board card according to the power consumption current, wherein the power supply control module is connected with the current collector.
Optionally, in this embodiment, taking N value 6 and m value 2 as examples, fig. 4 is a schematic diagram of a method for detecting power consumption of a board card according to an embodiment of the present application, as shown in fig. 4, a target power supply circuit includes 6 power supply sources (power supply source 1 to power supply source 6), where a target power supply set includes 2 power supply sources (power supply source 1 and power supply source 2) for supplying power to a target board card, in case that power consumption of the board card of the target board card is too high, a problem of mismatching with power supply capability of a current target power supply set may occur, so that power consumption of the board card of the target board card needs to be detected, and in time, in order to cope with the mismatching of power supply capability, a current on a circuit where the target board card is located may be collected by a current collector, so as to obtain a current power consumption of the target board card, and current data is stored in a register of the current collector, and then a power supply controller corresponding to the current collector is called to read the current consumption of the current collector from the register, and the current board card of the target board card is calculated according to the power consumption.
In the solution provided in step S204, in this embodiment, the first power consumption threshold may be the maximum power supply power of the target power supply set, for example, the maximum power supply power of the target power supply set is 75W, and the first power consumption threshold may be 75W, or may be set to a power less than 75W, for example, 60W, in order to set a certain buffer interval.
Optionally, in this embodiment, the determining, according to the power consumption of the board card and a preset first power consumption threshold, the current power supply state of the target board card includes: determining the power supply state to indicate that the target power supply set does not meet the power supply requirement of the target board card under the condition that the power consumption of the board card is larger than the first power consumption threshold; and under the condition that the power consumption of the board card is smaller than or equal to the first power consumption threshold, determining the power supply state to indicate that the target power supply set meets the power supply requirement of the target board card.
Optionally, in this embodiment, after the determining that the power supply state is used to indicate that the target power supply set meets a power supply requirement of the target board card, the method further includes: and keeping the number of the power supplies in the target power supply set unchanged for supplying power to the target board.
In an exemplary embodiment, after the determining the current power supply state of the target board card according to the board card power consumption and the first power consumption threshold value, the following manners may be included, but are not limited to: the power supply state is used for indicating that the target power supply set does not meet the power supply requirement of the target board card, and under the condition that M is equal to N, the target board card is subjected to frequency reduction processing; detecting the power supply state to indicate the duration that the target power supply set does not meet the power consumption requirement of the target board card; and stopping all power supply of the target board card under the condition that the duration reaches a target duration threshold.
Optionally, in this embodiment, in the power supply state is used to indicate that the target power supply set does not meet the power supply requirement of the target board card, and M is equal to N, where the power consumption of the target board card is excessively high, and all power supply sources currently existing in the target power supply circuit are already involved in power supply of the target board card, so that the power supply capability of the target power supply set cannot be matched with the target board card by adding a new power supply to the target power supply set, and therefore, the operation power consumption of the target board card is actively reduced by adopting a mode of performing frequency-reducing processing on a program operated by the target board card, and after performing frequency-reducing processing on the target board card; detecting the power supply state to indicate the duration that the target power supply set does not meet the power consumption requirement of the target board card; and under the condition that the duration reaches the target duration threshold, the condition that the current target power supply circuit can not completely meet the power supply requirement of the target board card is indicated, and the circuit is damaged by continuing to supply power, so that all power supplies of the target board card are stopped.
In the solution provided in step S206, taking the N value of 6 and the M value of 2 as an example, fig. 5 is a schematic diagram of adding power supplies to a target power supply set according to an embodiment of the present application, as shown in fig. 5, where the target power supply set includes 6 power supplies (power supplies 1 to 6), and the target power supply set includes 2 power supplies (power supplies 1 and 2) for supplying power to a target board card.
In one exemplary embodiment, the target board may be powered by adding power to the target power set by, but not limited to: controlling power supply lines between M power supply sources in the target power supply set and the target board card to be turned off in a target time period; in the target time period, controlling the power supply circuit to be conducted with power supply lines between P power supply sources except the M power supply sources in the N power supply sources and the target board card, wherein in the target time period, a power storage capacitor connected with the target board card supplies power to the target board card in a discharging mode; and after the power supply lines between the P power supply sources and the target board card are determined to be conducted, controlling the power supply lines between the M power supply sources in the target power supply set and the target board card to be conducted.
Optionally, in this embodiment, describing the power supply circuit of the target board, fig. 6 is a schematic diagram of the power supply circuit of the target board according to an embodiment of the present application, and as shown in fig. 6, the power supply source of the target board may include 2 aspects: PCIe Slot (PCIe Slot, PCIe, PCI-Express, peripheral Component Interconnect Express, a high-speed serial computer expansion bus standard) and AUX CONN (external auxiliary power supply), where, it should be noted that PCIe Slot and AUX CONN correspond to the above power supplies, the number is 2, and only as an example, the number of optional power supplies may be more, PCIe Slot provides power supply for p12v_pcie/p3v3_pcie, AUX CONN provides power supply for p12v_conn, and in more detail, fig. 7 is a schematic diagram of a power supply control circuit of a target board card according to an embodiment of the present application, as shown in fig. 7, p3v3_pcie provides power for CPLD; after passing through hotspot and sampling resistor R1, p12v_pcie is sent to VRMa1 to VRMan (VRM, voltage Regulator Module, voltage regulation module) as their input voltages, and after passing through sampling resistor R3 and eFuse (electronic Fuse), VRMb1 to VRMbn as their input voltages; after passing through the hotspot and the sampling resistor R2, p12v_conn passes through PMOS Q1 and PMOS Q2 (PMOS, P-Metal Oxide Semiconductor Field-Effect Transistor, PMOS, NMOS may also be used) to supply VRMb1 to VRMbn as their input voltages. PMOS Q1 and PMOS Q2 are off in default state, and the full board power is from PCIe slot. The ADC (Analog-to-digital converter) module acquires the current of each power supply in real time through sampling resistors R1, R2 and R3, and the CPLD reads the data of the ADC module through I2C (Inter-Integrated Circuit, a serial communication bus) so as to convert the data into the power consumption of each power supply, namely the board power consumption of the target board. When the CPLD reads that the output power consumption (can be understood as board power consumption) of P12V_PCIE sampled by R1 is larger than 60W (can be understood as a first power consumption threshold), namely, a power supply state is used for indicating that the target power supply set does not meet the power supply requirement of the target board, the CPLD controls eFuse to be turned off, at the moment, capacitors C1-Cn discharge and maintain, and then the CPLD rapidly controls NMOS Q3 and NMOS Q4 to be turned on so as to enable Q1 and Q2 to be conducted, at the moment, the inputs of VRMb 1-VRMbn are provided by P1V_CONN. Meanwhile, the CPLD detects the output power consumption of the P12V_PCIE and the P12V_CONN through the ADC module, and once the output power consumption exceeds a set overcurrent threshold, the FPGA accelerator card is informed of abnormal power supply, and a program operated by the FPGA accelerator card at the moment needs to be subjected to frequency reduction processing. If the current continues to exceed the overcurrent threshold and reaches the overcurrent protection point, the CPLD controls the hotspot to close the power supply path.
It should be noted that, the ADC module may be understood as the current collector, and the PMOS and the NMOS are both semiconductor field effect transistors.
In one exemplary embodiment, the target power supply circuit may be controlled to include P power supplies other than the M power supplies among the N power supplies and power line conduction between the target board by, but not limited to: and in the target time period, invoking a power supply control module in the target power supply circuit to control the conduction of semiconductor field effect transistors corresponding to P power supplies except for the target power supply set in N power supplies included in the target power supply circuit, wherein each power supply in the P power supplies is allowed to supply power to the target board under the condition that the corresponding semiconductor field effect transistor is conducted, and the target power supply set comprises (M+P) power supplies, wherein (M+P) is a positive integer less than or equal to N.
Alternatively, in this embodiment, the semiconductor field effect transistor may be, but not limited to, PMOS and NMOS, and the above PMOS Q1, PMOS Q2, NMOS Q3 and NMOS Q4 may be understood as the semiconductor field effect transistor.
In order to better understand the power supply control process of the board card, the power supply control process of the board card is described below with reference to the alternative embodiments, but the power supply control process of the board card is not limited to the technical scheme of the embodiment of the application.
In this embodiment, a power supply control method for a board is provided, and fig. 8 is a schematic diagram of a power supply control flow for a board according to an embodiment of the present application, as shown in fig. 8, mainly including the following steps:
step S801: starting up the server/workstation;
step S802: powering up the FPGA accelerator card according to the requirement;
step S803: CPLD reads golden finger P12V power consumption through I2C of eFuse;
step S804: when the power consumption of the CPLD reading is greater than 60W, the step S805 is entered if yes, and the step S806 is entered if no;
step S805: CPLD controls external AUX electric intervention;
step S806: CPLD monitors and controls the normal work of the control panel card;
step S807: when the power consumption read by the CPLD is greater than 95% of the overcurrent threshold, the step S808 is entered if yes, and the step S806 is entered if no;
step S808: CPLD informs FPGA to reach overcurrent threshold 95%, FPGA (FPGA accelerator card) down-conversion operation;
step S809: when the power consumption of CPLD reading is continuously larger than the overcurrent threshold;
step S810: acceleration card overcurrent protection starts.
It should be noted that, by the power supply control method of the board card provided by the application, an FPGA acceleration card power supply distribution scheme is provided as a standard PCIe card, power switching and protection can be performed in a self-adaptive manner according to the running power of the FPGA acceleration card, the scheme can be used in the subsequent design of the FPGA acceleration card, the reasonable distribution of PCIe golden finger (PCIe slot) power supply and external auxiliary power supply can be ensured, and when the power consumption of the board card (FPGA acceleration card) is greater than 75W, the power supply is supplied together with the external auxiliary power supply, and a reasonable circuit protection function is provided; when the power consumption of the board card is less than 75W, the board card can work normally under the condition of no external auxiliary power supply; the external auxiliary power supply can adaptively intervene in power supply, so that the problem that the external auxiliary power supply is necessary for power supply no matter how large the power consumption of the board is, the power supply network of the power supply is reasonably distributed, the self-adaptive power is switched, the board is protected, and the normal work of the board is ensured.
The embodiment of the application also provides a power supply control circuit of the board card, which comprises the following components:
the target power supply circuit comprises N power supply sources, wherein N is a positive integer greater than or equal to 2, M power supply sources in the N power supply sources are used as a target power supply set for supplying power to a target board card, and M is a positive integer greater than or equal to 1 and less than or equal to N;
the power supply control circuit is connected to the power supply lines of each power supply source and the target board card in the N power supply sources;
the power supply control circuit is used for detecting the current board power consumption of the target board; determining the current power supply state of the target board card according to the board card power consumption and a first power consumption threshold, wherein the first power consumption threshold is determined according to the maximum power supply power of the target power supply set; and when the power supply state is used for indicating that the target power supply set does not meet the power supply requirement of the target board card and M is smaller than N, adding a power supply to the target power supply set to supply power to the target board card.
In one exemplary embodiment, the power supply control circuit includes: a power supply controller and a current collector, wherein,
The current collector is connected with the power supply line, and the power supply controller is connected with the current collector;
the current collector is used for collecting the current electricity consumption current of the target board card;
the power supply controller is used for reading the electricity consumption current acquired by the current collector, generating board card power consumption of the target board card according to the electricity consumption current, and determining the current power supply state of the target board card according to the board card power consumption and the first power consumption threshold.
Alternatively, the current collector may be understood as the ADC module described above.
In one exemplary embodiment, the power supply controller includes: a control chip and N semiconductor field effect transistors, wherein,
each semiconductor field effect transistor is connected between one power supply and the target board card, and the control chip is connected with each semiconductor field effect transistor;
the control chip is used for controlling the power supply lines between the M power supplies in the target power supply set and the target board card to be turned off in a target time period; in the target time period, controlling the conduction of the semiconductor field effect transistors corresponding to the P power supplies except the target power supply set in the N power supplies, wherein in the target time period, a power storage capacitor connected with the target board card supplies power for the target board card; and after the power supply lines between the P power supply sources and the target board card are determined to be conducted, controlling the power supply lines between the M power supply sources in the target power supply set and the target board card to be conducted.
Optionally, the power supply controller includes: the control chip and the N semiconductor field effect transistors can be replaced by any controllable switch, including eFuses and hotspot (hot plug), so that the layout mode of the circuit is more diversified.
Optionally, the control chip may be understood as the CPLD, the semiconductor field effect transistor may be understood as the PMOS and the NMOS, and the power supply controller includes 2 functions, on the one hand, the power supply controller reads the electricity current through the control chip, and generates board power consumption of the target board according to the electricity current, where the power supply control module is connected with the current collector. On the other hand, the power supply controller controls the power supply lines between the M power supply sources in the target power supply set and the target board card to be turned off in a target time period through the control chip; in the target time period, controlling the conduction of the semiconductor field effect transistors corresponding to the P power supplies except the target power supply set in the N power supplies, wherein in the target time period, a power storage capacitor connected with the target board card supplies power for the target board card; and after the power supply lines between the P power supply sources and the target board card are determined to be conducted, controlling the power supply lines between the M power supply sources in the target power supply set and the target board card to be conducted.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the various embodiments of the present application.
Fig. 9 is a block diagram of a power supply control device of a board according to an embodiment of the present application; as shown in fig. 9, includes:
the first detection module 902 is configured to detect current board power consumption of a target board in a target power supply circuit, where a target power supply set in the target power supply circuit includes M power supply sources for supplying power to the target board, the target power supply circuit includes N power supply sources, N is a positive integer greater than or equal to 2, and M is a positive integer greater than or equal to 1 and less than or equal to N;
A determining module 904, configured to determine a current power supply state of the target board according to the power consumption of the board and a first power consumption threshold, where the first power consumption threshold is determined according to the maximum power supply power of the target power supply set;
and an adding module 906, configured to add a power supply to the target power supply set to supply power to the target board card when the power supply state is used to indicate that the target power supply set does not meet the power supply requirement of the target board card and M is less than N.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; alternatively, the above modules may be located in different processors in any combination.
Through the above embodiment, the target power supply circuit includes N power supplies, the target power supply set includes M power supplies therein for supplying power to the target board, in the power supply process of the target board, current board power consumption of the target board in the target power supply circuit can be detected, further, the current power supply state of the target board is determined according to the board power consumption and the first power consumption threshold determined according to the maximum power supply of the target power supply set, and in the power supply state, the power supply state is used for indicating that the target power supply set does not meet the power supply requirement of the target board, and in the case that M is smaller than N, the power supply is added to the target power supply set to supply power to the target board, that is, when the power consumption of the board of the target board is lower, the existing M power supplies can be kept as the target power supply set to supply power to the target board, and when the power consumption of the board of the target board is higher, additional power supply can be flexibly added to the target power supply set to meet the power supply requirement of the target board. By adopting the technical scheme, the problems of low power supply control flexibility and the like of the board card in the related technology are solved, and the technical effect of improving the power supply control flexibility of the board card is realized.
In an exemplary embodiment, the first detection module includes:
the first calling unit is used for calling a current collector in the target power supply circuit to collect the current of the current power consumption of the target board card, wherein the current collection module is connected between the power supply and the target board card;
and the second calling unit is used for calling a power supply controller in the target power supply circuit to read the power consumption current and generating board card power consumption of the target board card according to the power consumption current, wherein the power supply control module is connected with the current collector.
In one exemplary embodiment, the adding module includes:
the first control unit is used for controlling the power supply lines between the M power supply sources in the target power supply set and the target board card to be turned off in a target time period;
the second control unit is used for controlling the power supply circuit to be conducted with power supply lines between P power supply sources except the M power supply sources in the N power supply sources and the target board card in the target time period, wherein in the target time period, the power storage capacitor connected with the target board card supplies power to the target board card in a discharging mode;
And the third unit is used for controlling the conduction of the power supply lines between the M power supplies in the target power supply set and the target board card after the conduction of the power supply lines between the P power supplies and the target board card is determined.
In an exemplary embodiment, the second control unit is further configured to:
and in the target time period, invoking a power supply control module in the target power supply circuit to control the conduction of semiconductor field effect transistors corresponding to P power supplies except for the target power supply set in N power supplies included in the target power supply circuit, wherein each power supply in the P power supplies is allowed to supply power to the target board under the condition that the corresponding semiconductor field effect transistor is conducted, and the target power supply set comprises (M+P) power supplies, wherein (M+P) is a positive integer less than or equal to N.
In an exemplary embodiment, the apparatus further comprises:
the frequency reducing module is used for carrying out frequency reducing processing on the target board card under the condition that the power supply state is used for indicating that the target power supply set does not meet the power supply requirement of the target board card and M is equal to N after the current power supply state of the target board card is determined according to the board card power consumption and the first power consumption threshold value;
The second detection module is used for detecting the power supply state and used for indicating the duration time that the target power supply set does not meet the power consumption requirement of the target board card;
and the stopping module is used for stopping all power supply of the target board card under the condition that the duration reaches a target duration threshold value.
Embodiments of the present application also provide a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
In one exemplary embodiment, the computer readable storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
An embodiment of the application also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
In an exemplary embodiment, the electronic device may further include a transmission device connected to the processor, and an input/output device connected to the processor.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps of them may be fabricated into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present application should be included in the protection scope of the present application.

Claims (11)

1. The power supply control method for the board card is characterized by comprising the following steps of:
detecting current board power consumption of a target board in a target power supply circuit, wherein a target power supply set in the target power supply circuit comprises M power supply sources for supplying power to the target board, the target power supply circuit comprises N power supply sources, N is a positive integer greater than or equal to 2, and M is a positive integer greater than or equal to 1 and less than or equal to N;
determining the current power supply state of the target board card according to the board card power consumption and a first power consumption threshold, wherein the first power consumption threshold is determined according to the maximum power supply power of the target power supply set;
and when the power supply state is used for indicating that the target power supply set does not meet the power supply requirement of the target board card and M is smaller than N, adding a power supply to the target power supply set to supply power to the target board card.
2. The method of claim 1, wherein detecting the current board power consumption of the target board in the target power supply circuit comprises:
invoking a current collector in the target power supply circuit to collect the current of the target board card, wherein the current collection module is connected between the power supply and the target board card;
And calling a power supply controller in the target power supply circuit to read the power consumption current, and generating board card power consumption of the target board card according to the power consumption current, wherein the power supply control module is connected with the current collector.
3. The method of claim 1, wherein adding a power supply to the set of target power supplies to power the target board card comprises:
controlling power supply lines between M power supply sources in the target power supply set and the target board card to be turned off in a target time period;
in the target time period, controlling the power supply circuit to be conducted with power supply lines between P power supply sources except the M power supply sources in the N power supply sources and the target board card, wherein in the target time period, a power storage capacitor connected with the target board card supplies power to the target board card in a discharging mode;
and after the power supply lines between the P power supply sources and the target board card are determined to be conducted, controlling the power supply lines between the M power supply sources in the target power supply set and the target board card to be conducted.
4. The method of claim 3, wherein controlling the power supply line conduction between the power supply line between the target board and P power supplies of the N power supplies other than the M power supplies includes:
And in the target time period, invoking a power supply control module in the target power supply circuit to control the conduction of semiconductor field effect transistors corresponding to P power supplies except for the target power supply set in N power supplies included in the target power supply circuit, wherein each power supply in the P power supplies is allowed to supply power to the target board under the condition that the corresponding semiconductor field effect transistor is conducted, and the target power supply set comprises (M+P) power supplies, wherein (M+P) is a positive integer less than or equal to N.
5. The method of claim 1, wherein after the determining the current power state of the target board card according to the board card power consumption and the first power consumption threshold, the method further comprises:
the power supply state is used for indicating that the target power supply set does not meet the power supply requirement of the target board card, and under the condition that M is equal to N, the target board card is subjected to frequency reduction processing;
detecting the power supply state to indicate the duration that the target power supply set does not meet the power consumption requirement of the target board card;
and stopping all power supply of the target board card under the condition that the duration reaches a target duration threshold.
6. The utility model provides a power supply control circuit of integrated circuit board which characterized in that includes:
the target power supply circuit comprises N power supply sources, wherein N is a positive integer greater than or equal to 2, M power supply sources in the N power supply sources are used as a target power supply set for supplying power to a target board card, and M is a positive integer greater than or equal to 1 and less than or equal to N;
the power supply control circuit is connected to the power supply lines of each power supply source and the target board card in the N power supply sources;
the power supply control circuit is used for detecting the current board power consumption of the target board; determining the current power supply state of the target board card according to the board card power consumption and a first power consumption threshold, wherein the first power consumption threshold is determined according to the maximum power supply power of the target power supply set; and when the power supply state is used for indicating that the target power supply set does not meet the power supply requirement of the target board card and M is smaller than N, adding a power supply to the target power supply set to supply power to the target board card.
7. The power control circuit of the board card of claim 6, wherein the power control circuit comprises: a power supply controller and a current collector, wherein,
The current collector is connected with the power supply line, and the power supply controller is connected with the current collector;
the current collector is used for collecting the current electricity consumption current of the target board card;
the power supply controller is used for reading the electricity consumption current acquired by the current collector, generating board card power consumption of the target board card according to the electricity consumption current, and determining the current power supply state of the target board card according to the board card power consumption and the first power consumption threshold.
8. The power supply control circuit of the board card of claim 7, wherein the power supply controller comprises: a control chip and N semiconductor field effect transistors, wherein,
each semiconductor field effect transistor is connected between one power supply and the target board card, and the control chip is connected with each semiconductor field effect transistor;
the control chip is used for controlling the power supply lines between the M power supplies in the target power supply set and the target board card to be turned off in a target time period; in the target time period, controlling the conduction of the semiconductor field effect transistors corresponding to the P power supplies except the target power supply set in the N power supplies, wherein in the target time period, a power storage capacitor connected with the target board card supplies power for the target board card; and after the power supply lines between the P power supply sources and the target board card are determined to be conducted, controlling the power supply lines between the M power supply sources in the target power supply set and the target board card to be conducted.
9. The utility model provides a power supply control device of integrated circuit board which characterized in that includes:
the first detection module is used for detecting the current board power consumption of a target board in a target power supply circuit, wherein a target power supply set in the target power supply circuit comprises M power supply sources for supplying power to the target board, the target power supply circuit comprises N power supply sources, N is a positive integer greater than or equal to 2, M is a positive integer greater than or equal to 1 and less than or equal to N;
the determining module is used for determining the current power supply state of the target board card according to the board card power consumption and a first power consumption threshold, wherein the first power consumption threshold is determined according to the maximum power supply power of the target power supply set;
and the adding module is used for adding a power supply source to the target power supply set to supply power for the target board card when the power supply state is used for indicating that the target power supply set does not meet the power supply requirement of the target board card and M is smaller than N.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program when run performs the method of any one of claims 1 to 5.
11. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, the processor being arranged to perform the method of any of claims 1 to 5 by means of the computer program.
CN202310868765.6A 2023-07-14 2023-07-14 Board card power supply control method and device, storage medium and electronic device Pending CN116909373A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310868765.6A CN116909373A (en) 2023-07-14 2023-07-14 Board card power supply control method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310868765.6A CN116909373A (en) 2023-07-14 2023-07-14 Board card power supply control method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN116909373A true CN116909373A (en) 2023-10-20

Family

ID=88366239

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310868765.6A Pending CN116909373A (en) 2023-07-14 2023-07-14 Board card power supply control method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN116909373A (en)

Similar Documents

Publication Publication Date Title
CN112671084B (en) USB device and operation method thereof
CN109791426B (en) Prioritized sequencing of device inrush current
CN210986071U (en) Digital signal interface circuit, chip and electronic equipment
CN110618743A (en) Power supply system based on PSU
CN111900769A (en) Charging control circuit and electronic equipment
CN109062392B (en) Equipment, method and system for automatically switching power supply of server board card
US9431897B2 (en) Electric device
CN112134337A (en) Power adapter, terminal device, electronic device and charging control method thereof
US10326436B2 (en) Hot swap controller with multiple current limits
CN116909373A (en) Board card power supply control method and device, storage medium and electronic device
CN117331423A (en) Power supply method and device of PCIE equipment, storage medium and electronic device
US10481576B2 (en) Method and device for implementing connection control
CN103107577B (en) Battery management circuit and terminal
CN110780619B (en) Circuit control method, device and equipment
CN106301318B (en) Isolation driving circuit of MOSFET device
CN108258757B (en) Control method and control equipment
CN113311350A (en) BBU power supply online test device, method and server
CN110970974A (en) Mobile power supply output mode adjusting method and device, server and storage medium
CN112510644A (en) Short-circuit protection method and device of UPS parallel operation system and UPS
CN117118026B (en) USB port configuration management system and USB port configuration management method
US9423850B2 (en) System and method of power control for embedded systems without advanced configuration and power interface (ACPI)
CN113656341B (en) Chip starting control circuit and server
CN114253198B (en) Control circuit of EVCC control system of electric automobile
CN217769849U (en) Discharge circuit, mainboard and electronic equipment
CN212413132U (en) Power-on reset protection circuit, control device and household appliance

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination