Power supply method for network card, server, storage medium and electronic equipment

By using electronic fuses and power supply connectors in the server, the power supply is controlled according to the working mode of the network card, which solves the inefficiency problem caused by the server being unable to adapt to different network card modes online, and achieves the efficiency of the network card switching mode.

CN119052009BActive Publication Date: 2025-02-25INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411528275.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-30
Publication Date
2025-02-25
Estimated Expiration
2044-10-30

AI Technical Summary

Technical Problem

During the network card switching mode, the server cannot adapt to different network card modes online, resulting in low efficiency of network card switching mode.

Method used

By introducing electronic fuses and power supply connectors in the server, the enable pin of the electronic fuse is turned on or off according to the current working mode of the network card (network interface card mode or data processing unit mode), thereby providing cores while the server is in different states. Power supply or auxiliary power supply to the network card.

Benefits of technology

It realizes online power supply adaptation of the server during network card switching mode, avoids disassembly and debugging of server hardware, and improves the efficiency of network card switching mode.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119052009B_ABST
    Figure CN119052009B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a power supply method for a network card, a server, a storage medium and an electronic device, which relates to the field of computers and is applied to a server. The server includes: an electronic fuse, a power supply connector, and a network card. The power supply method for the network card includes: determining a current working mode of the network card, wherein the working modes of the network card include: a network interface card mode and a data processing unit mode; when the current working mode is the network interface card mode, controlling an enable pin of the electronic fuse to be turned on when the server is in a running state; when the current working mode is the data processing unit mode, controlling the enable pin of the electronic fuse to be turned on when the server is in a shutdown state.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computers, and more specifically, to a power supply method for a network card, a server, a storage medium, and an electronic device. Background Art

[0002] With the widespread application of cloud computing and big data technologies in recent years, the network load of data centers has been growing. This has led to smart network cards with higher performance, greater flexibility and more powerful functions gradually replacing traditional standard network cards and being increasingly used on servers. Smart network cards usually have two modes, one is the network interface card mode (NIC) mode; the other is the data processing unit mode (DPU) mode. Smart network cards have different requirements for the server they are in when working in different modes. In traditional server design, if smart network cards want to switch modes, they need to refresh the firmware (FW) software of the network card, and then modify and debug the server to adapt it to the smart network card, such as changing the power supply port of the network card from the core power supply (P12V_Core) interface (port) to the auxiliary power supply (P12V_AUX) port, and expanding the working interface of the smart network card. This series of work requires disassembling the server and completing it by changing the hardware and adding or removing accessories. This causes a lot of workload when switching the mode of the smart network card, making the switching efficiency of the smart network card low.

[0003] In the related art, since the server cannot adapt to different modes of the network card online during the network card switching mode process, resulting in low efficiency of the network card switching mode, no effective solution has been proposed yet. Summary of the invention

[0004] The embodiments of the present application provide a power supply method for a network card, a server, a storage medium, and an electronic device, so as to at least solve the problem of low efficiency of switching modes of the network card due to the server being unable to online adapt to different modes of the network card during the process of switching modes of the network card.

[0005] According to one embodiment of the present application, a power supply method for a network card is provided, which is applied to a server, and the server includes: an electronic fuse, a power supply connector, and a network card; one end of the electronic fuse is electrically connected to a power supply unit, and the other end of the electronic fuse is electrically connected to the power supply connector, and when the enable pin of the electronic fuse is turned on, the electronic fuse allows current to pass, and the power supply connector allows core power or auxiliary power to be provided to the network card; including: determining a current working mode of the network card, wherein the working modes of the network card include: a network interface card mode and a data processing unit mode; when the current working mode is the network interface card mode, controlling the enable pin of the electronic fuse to be turned on when the server is in a running state; when the current working mode is the data processing unit mode, controlling the enable pin of the electronic fuse to be turned on when the server is in a shutdown state.

[0006] In an exemplary embodiment, the server further includes: a controller and a programmable device; the method further includes: determining a current operating mode of the network card by the controller, and sending the current operating mode to the programmable device; when the programmable device determines that the current operating mode is the network interface card mode, controlling the enable pin of the electronic fuse by the programmable device to be turned on when the server is in a running state; when the programmable device determines that the current operating mode is the data processing unit mode, controlling the enable pin of the electronic fuse by the programmable device to be turned on when the server is in a shutdown state.

[0007] In an exemplary embodiment, the method further includes: when the controller is to disconnect the power supply of the network card, controlling the enable pin of the electronic fuse to be turned off by the controller.

[0008] In an exemplary embodiment, the server also includes: a fan; before determining the working mode of the network card, the method also includes: obtaining a first preset speed, and controlling the fan to rotate at the first preset speed; after determining the working mode of the network card, the method also includes: determining a network card cooling strategy corresponding to the working mode of the network card, and obtaining a target network card cooling strategy; determining the rotation speed of the fan according to the target network card cooling strategy, and controlling the fan to rotate at the rotation speed.

[0009] In an exemplary embodiment, the server also includes: a controller and a programmable device; wherein the programmable device is used to control the fan to rotate at the first preset speed, and the controller is used to control the fan to rotate at the rotation speed; the method also includes: sending a heartbeat signal to the programmable device at each preset time interval through the controller; after determining the working mode of the network card, obtaining a second preset speed through the programmable device without monitoring the heartbeat signal sent by the controller, and controlling the fan to rotate at the second preset speed.

[0010] In an exemplary embodiment, the server also includes: a controller; the network card has a first network port, the controller has a second network port, and the first network port and the second network port are connected via a network cable; the method also includes: when the network card is in the data processing unit mode, obtaining data sent by the controller or sending data to the controller through the network card based on the network communication connection between the network card and the controller.

[0011] In an exemplary embodiment, the server also includes: a programmable device; a data line for transmitting a reset signal between the network card and the programmable device, and a data line for transmitting the reset signal between the programmable device and the controller; the method also includes: through the network card, in a case where operating data sent by the controller is obtained based on a network communication connection between the network card and the controller, performing fault diagnosis on the controller based on the operating data; in a case where it is determined that the controller is faulty based on the operating data, sending a reset signal to the programmable device through the network card, and instructing the programmable device to forward the reset signal to the controller, wherein the reset signal is used to reset the controller.

[0012] In an exemplary embodiment, the server further includes: a controller and a programmable device; an integrated circuit interconnection bus and / or a universal asynchronous receiver-transmitter bus is provided between the network card and the programmable device, and an integrated circuit interconnection bus and / or a universal asynchronous receiver-transmitter bus is provided between the programmable device and the controller; the method further includes: sending data to the network card based on the integrated circuit interconnection bus and / or the universal asynchronous receiver-transmitter bus through the controller, or obtaining data sent by the network card.

[0013] In an exemplary embodiment, the server also includes: a controller; the method also includes: when the current working mode of the network card is to be switched to a target working mode, updating the firmware file in the network card to a firmware file corresponding to the target working mode through the controller, wherein the working mode of the network card includes the target working mode; and controlling the enable pin of the electronic fuse to be closed through the controller.

[0014] In an exemplary embodiment, the server also includes: a programmable device and a field replaceable unit; the method also includes: when the current working mode of the network card is to be switched to a target working mode, updating the code in the field replaceable unit to a code corresponding to the target working mode through the controller; when the firmware file in the network card and the code in the field replaceable unit are updated, sending an indication information to the programmable device through the controller, wherein the indication information is used to indicate to the programmable device that the working mode of the network card has been switched.

[0015] In an exemplary embodiment, after determining the current working mode of the network card, the method further includes: determining a server resource allocation policy corresponding to the current working mode; and allocating internal resources of the server based on the server resource allocation policy.

[0016] According to another embodiment of the embodiment of the present application, a server is also provided, including: a management module, an electronic fuse, a power supply connector, and a network card; wherein one end of the electronic fuse is electrically connected to a power supply unit, and the other end of the electronic fuse is electrically connected to the power supply connector, and when the enable pin of the electronic fuse is turned on, the electronic fuse allows current to pass, and the power supply connector allows core power or auxiliary power to be provided to the network card; the management module is used to determine the current working mode of the network card, wherein the working modes of the network card include: a network interface card mode and a data processing unit mode; when it is determined that the current working mode is the network interface card mode, the enable pin of the electronic fuse is controlled to be turned on when the server is in a running state; when it is determined that the current working mode is the data processing unit mode, the enable pin of the electronic fuse is controlled to be turned on when the server is in a shutdown state.

[0017] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.

[0018] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0019] According to another embodiment of the present application, a computer program product is provided. The computer program product includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0020] Through the present application, the current working mode of the network card is determined. When the network card is in the network interface card mode, the enable pin of the electronic fuse is controlled to be turned on when the server is in the running state. When the network card is in the data processing unit mode, the enable pin of the electronic fuse is controlled to be turned on when the server is in the off state, so that the server can meet the power supply requirements of the network card in different modes online, avoiding the disassembly and debugging of the server hardware during the process of switching the network card mode, improving the efficiency of the network card switching mode, and further solving the problem of low efficiency of the network card switching mode due to the server being unable to adapt to different modes of the network card online during the process of switching the network card mode. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0022] Figure 1 It is a hardware structure block diagram of a server device according to a power supply method of a network card in an embodiment of the present application;

[0023] Figure 2 is a schematic diagram of an architecture of an optional system implementing the present application according to an embodiment of the present application;

[0024] Figure 3 is a schematic diagram of the overall architecture of a power supply system of a network card according to an embodiment of the present application;

[0025] Figure 4 is a schematic diagram of an optional power supply switching solution according to an embodiment of the present application;

[0026] Figure 5 is a schematic diagram of an optional fan speed regulation according to an embodiment of the present application;

[0027] Figure 6 is a signal transmission schematic diagram of an optional sideband signal control circuit according to an embodiment of the present application;

[0028] Figure 7 is a structural block diagram of a server according to an embodiment of the present application;

[0029] Figure 8 It is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0030] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0032] The power supply method embodiment of the network card provided in the embodiment of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure block diagram of a server device of a network card power supply method according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the above-mentioned server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0033] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the power supply method of the network card in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0034] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0035] In order to solve the above problems existing in the related art, a power supply method for a network card is provided in this embodiment, which is applied to a server, wherein the server comprises: an electronic fuse, a power supply connector, and a network card; one end of the electronic fuse is electrically connected to a power supply unit, and the other end of the electronic fuse is electrically connected to the power supply connector. When the enable pin of the electronic fuse is turned on, the electronic fuse allows current to pass through, and the power supply connector allows the network card to be provided with a core power supply or an auxiliary power supply, such as Figure 2 As shown, the process includes the following steps S202 to step 206:

[0036] Alternatively, if Figure 4 As shown, the power supply connector can provide both core power (P12V_Core) and auxiliary power (P12V_AUX) to the network card. When the network card is in different modes, the power supply connector in the server can provide the network card with the power required for different modes. When the network card switches modes, there is no need to debug the server hardware, thereby improving the efficiency of the network card switching modes.

[0037] Step S202: determining the current working mode of the network card, wherein the working mode of the network card includes: a network interface card mode and a data processing unit mode;

[0038] It should be noted that when the network card is in network interface card mode, it is mainly responsible for ordinary network transmission tasks and is provided to the server as a high-speed peripheral component interconnect (Peripheral Component Interconnect Express, referred to as PCBie) slave device. At this time, the server usually provides power supply, heat dissipation and basic in-band and out-of-band management functions in the running (S0) state;

[0039] When the network card is in data processing unit mode, it needs to perform more complex network, storage and computing tasks, and run independently of the server's main processor (Central Processing Unit, referred to as CPU). At this time, the network card is an independent system with an independent computing unit, which realizes functions such as network, storage, and computing power offloading, takes over network virtualization, hardware resource pooling and other services, is independent of the server, and can even act as a host to manage the server, freeing up the resources of the server's general CPU so that the server can process high-level computing tasks more centrally.

[0040] Step S204: when the current working mode is the network interface card mode, controlling the enable pin of the electronic fuse to be turned on when the server is in a running state;

[0041] Optionally, when the current working mode is the network interface card mode, the enable pin of the electronic fuse is controlled to be turned on when the server is in the running state (S0), and the server provides core power.

[0042] Optionally, when the current working mode is the network interface card mode, the enable pin of the electronic fuse is controlled to be turned off when the server is in a shutdown state (S5).

[0043] Step S206: When the current working mode is the data processing unit mode, controlling the enable pin of the electronic fuse to be turned on when the server is in the shutdown state.

[0044] Optionally, when the current working mode is the data processing unit mode, the enable pin of the electronic fuse is controlled to be turned on when the server is in a shutdown state, and the server provides auxiliary power.

[0045] It should be noted that, when the current working mode is the data processing unit mode, if the server is in the power-on state, the enable pin of the electronic fuse is also in the on state.

[0046] It should be noted that Efuse is used as a controllable power switch, which controls whether power flows to the SmartNIC through its internal logic state.

[0047] The Enable Pin (EN) is a control pin on the electronic fuse (EFUSE). When the EN pin is set to a high level (usually indicated as "on" or "enabled"), the electronic fuse allows current to pass, and the server can provide power to the network card; when the EN pin is set to a low level (usually indicated as "off" or "disabled"), the electronic fuse cuts off the power supply, preventing current from flowing to the network card, and the server cannot provide power to the network card.

[0048] It should be noted that step S204 and step S206 are executed in different situations, and there is no order of execution.

[0049] The above steps determine the current working mode of the network card, and when the network card is in the network interface card mode, control the enable pin of the electronic fuse to be turned on when the server is in the running state; when the network card is in the data processing unit mode, control the enable pin of the electronic fuse to be turned on when the server is in the off state, so that the server can meet the power supply requirements of the network card in different modes online, avoid disassembly and debugging of the server hardware in the process of switching the network card mode, improve the efficiency of switching the network card mode, and further solve the problem of low efficiency of switching the network card mode due to the server being unable to adapt to different modes of the network card online in the process of switching the network card mode.

[0050] In an exemplary embodiment, the server further includes: a controller and a programmable device; the method further includes the following steps S11 to S13:

[0051] Optionally, the controller is a baseboard management controller (Baseboard Manager Controller, referred to as BMC), and the programmable device is a complex programmable logic controller (Complex Programmable Logic Device, referred to as CPLD) and / or a field programmable gate array logic device (Field Programmable Gate Array, referred to as FPGA).

[0052] Step S11: determining the current working mode of the network card through the controller, and sending the current working mode to the programmable device;

[0053] Optionally, after the device (including the server) is powered on, the controller completes initialization, determines whether the current network card is in network interface card mode or data processing unit mode by reading the field replaceable unit (FRU) of the whole machine, and sends it to the programmable device through the Inter-Integrated Circuit Bus (I2C bus).

[0054] Step S12: when the programmable device determines that the current working mode is the network interface card mode, the programmable device controls the enable pin of the electronic fuse to be turned on when the server is in the running state;

[0055] Step S13: when the programmable device determines that the current working mode is the data processing unit mode, the programmable device controls the enable pin of the electronic fuse to be turned on when the server is in the shutdown state.

[0056] Optionally, when the programmable device determines that the current working mode of the network card is the network interface card mode, the enable pin of the electronic fuse is controlled to be turned on when the server is in the running state; when the programmable device determines that the current working mode of the network card is the data processing unit mode, the enable pin of the electronic fuse is controlled to be turned on when the server is in the shutdown state.

[0057] In the above steps S11 to S13, by designing a power supply circuit that supplies power according to the different mode requirements of the network card, the server can maintain a stable power supply even if the server is in the shutdown state when the network card is in the data processing unit mode. This effectively supports the independent operation and efficient services of the network card in the data processing unit mode, such as network virtualization, hardware resource pooling, etc., while avoiding the impact on the normal function of the network card when the server is restarted or maintained. This automated mode recognition and power switching mechanism reduces manual intervention, simplifies server management and the mode switching process of the smart network card, and improves the reliability and flexibility of the system.

[0058] In an exemplary embodiment, the method further includes the following steps: when the controller is about to disconnect the power supply of the network card, controlling the enable pin of the electronic fuse to be closed by the controller.

[0059] It should be noted that, by controlling the enable pin of the electronic fuse to be turned off when the power of the network card is to be disconnected, the network card can be effectively protected from power anomalies or system failures. For example, during the server restart process, disconnecting the power supply can prevent data loss or hardware damage and ensure the security of the smart network card. Moreover, when the network card is performing a software firmware upgrade or mode switching, the controller controls the enable pin of the electronic fuse to be turned off and then reopened to ensure that the new firmware file or new working mode is correctly loaded and initialized, avoiding upgrade failures or unsuccessful mode switching due to unstable power supply, and enhancing the overall reliability and stability of the system.

[0060] In an exemplary embodiment, the server further includes: a fan; before determining the working mode of the network card, the method further includes the following steps: obtaining a first preset speed, and controlling the fan to rotate at the first preset speed;

[0061] Alternatively, if Figure 5 As shown, before determining the working mode of the network card, the programmable device turns on the fan enable by default and controls the fan to rotate at 30% of the maximum speed (ie, the first preset speed).

[0062] It should be noted that after the alternating current (AC) is powered on, the device enters the working state and each device component begins to initialize. Since the programmable device is hardware, it completes initialization before the controller. Therefore, before the controller determines the working mode of the network card, in order to ensure that the network card does not crash due to overheating in the data processing unit mode, the programmable device turns on the fan enable by default, thereby ensuring the safety and stability of the system.

[0063] In an exemplary embodiment, after determining the working mode of the network card, the method further includes the following steps: determining a network card heat dissipation strategy corresponding to the working mode of the network card to obtain a target network card heat dissipation strategy; determining a rotation speed of the fan according to the target network card heat dissipation strategy, and controlling the fan to rotate at the rotation speed.

[0064] Optionally, based on the working mode of the network card, the controller will obtain the corresponding target network card cooling strategy, which will guide the operation of the fan and the adjustment of other cooling mechanisms to ensure that the temperature of the network card and the entire server remains within a safe range. The target cooling strategy includes but is not limited to: limiting the minimum and / or maximum speed of the fan, preset advance of the server system temperature, priority of the cooling strategy, etc.

[0065] Through the above steps, a balance between heat dissipation efficiency and energy consumption is ensured.

[0066] In an exemplary embodiment, the programmable device is used to control the fan to rotate at the first preset speed, and the controller is used to control the fan to rotate at the rotation speed; the method further includes the following steps S21-S22:

[0067] Step S21: sending a heartbeat signal to the programmable device at every preset time interval by the controller;

[0068] Alternatively, if Figure 5 As shown, after the controller completes initialization, it will immediately send a heartbeat signal to the programmable device, and then send a heartbeat signal to the programmable device at every preset time interval. After sending the first heartbeat signal, the controller starts to work normally, reads the information of the field replaceable unit through the integrated circuit interconnect bus, determines the current working mode of the network card, and then calls the corresponding network card cooling algorithm to control the fan to rotate at the rotation speed required by the corresponding network card cooling algorithm, and continuously monitors the temperature of the network card, so as to control the fan model to dissipate heat for the machine according to the cooling algorithm.

[0069] Step S22: After determining the working mode of the network card, the programmable device obtains a second preset speed and controls the fan to rotate at the second preset speed without monitoring the heartbeat signal sent by the controller.

[0070] Optionally, during operation, the programmable device always monitors the heartbeat signal of the controller. When the programmable device does not monitor the heartbeat signal sent by the controller, it means that the controller is faulty (hanging). The programmable device will obtain a second preset speed (for example, 80% of the maximum fan speed) to prevent the system from overheating and shutting down until the heartbeat signal sent by the controller is monitored again.

[0071] It should be noted that, through the above steps, when the controller fails or is abnormal and fails to send a heartbeat signal, the programmable device will automatically take over the heat dissipation control and control the fan to dissipate heat according to the preset second speed. This mechanism ensures that even in the event of a controller failure, the system can maintain sufficient heat dissipation capacity to prevent equipment damage or system downtime due to overheating, significantly enhancing the stability and reliability of the server. In addition, by setting different preset speeds, heat can be dissipated according to the working mode of the network card and the heat dissipation requirements of the current system, optimizing the fan speed control, avoiding unnecessary power consumption and noise, while ensuring sufficient heat dissipation effect, and achieving a balance between heat dissipation efficiency and energy utilization efficiency.

[0072] In an exemplary embodiment, the network card has a first network port, the controller has a second network port, and the first network port and the second network port are connected via a network cable; the method also includes the following steps: when the network card is in the data processing unit mode, obtaining data sent by the controller or sending data to the controller through the network card based on the network communication connection between the network card and the controller.

[0073] Alternatively, if Figure 6 As shown, the RJ45 management network of the network card is connected to the management network port of the controller through a network cable, and is used for the network card to manage the server when the network card is in data processing unit mode.

[0074] Alternatively, if Figure 6 As shown, when the network card is in the data processing unit mode, the network card can act as an independent system to receive or send data through the network connection between its first network port and the second network port of the controller, and data exchange between the network card and the controller can be achieved without additional hardware interfaces or dedicated lines. This allows the network card to still obtain or send system management information when the server is shut down or not fully started, thereby completing the reception of remote debugging commands, log capture, performance monitoring, etc., and enhancing the remote management and monitoring capabilities of the server. In addition, by exchanging data through a network communication connection, operation and maintenance personnel can remotely monitor and manage the server without physically accessing the server. This is especially important for a data center environment, which can significantly reduce the on-site operations of operation and maintenance personnel and improve operation and maintenance efficiency and response speed.

[0075] In an exemplary embodiment, a data line for transmitting a reset signal is provided between the network card and the programmable device, and a data line for transmitting the reset signal is provided between the programmable device and the controller; the method further comprises the following steps S31-S32:

[0076] Step S31: when the network card obtains the operation data sent by the controller based on the network communication connection between the network card and the controller, a fault diagnosis is performed on the controller based on the operation data;

[0077] Step S32: When it is determined that the controller fails based on the operation data, a reset signal is sent to the programmable device through the network card, and the programmable device is instructed to forward the reset signal to the controller, wherein the reset signal is used to reset the controller.

[0078] Alternatively, if Figure 6As shown, the network card sends a reset signal (Reset) to the programmable device through the data line, and finally to the controller, so that when the network card is in the data processing unit mode, the network card can reset the controller as a master device, thereby resetting the controller.

[0079] It should be noted that through the above steps, when the server controller fails or needs to be restarted, the network card can directly reset the controller through the Reset signal without physical power off or manual intervention, thereby speeding up fault recovery and improving system reliability.

[0080] In an exemplary embodiment, the server further includes: a controller and a programmable device; an integrated circuit interconnection bus and / or a universal asynchronous receiver-transmitter bus is provided between the network card and the programmable device, and an integrated circuit interconnection bus and / or a universal asynchronous receiver-transmitter bus is provided between the programmable device and the controller; the method further includes the following steps: sending data to the network card based on the integrated circuit interconnection bus and / or the universal asynchronous receiver-transmitter bus through the controller, or obtaining data sent by the network card.

[0081] Optionally, the controller sends the acquired working mode of the network card to the programmable device via the integrated circuit interconnection bus.

[0082] Alternatively, if Figure 6 As shown, the network card is first connected to the programmable device through the integrated circuit interconnection bus, and then connected to the controller through the integrated circuit interconnection bus.

[0083] Alternatively, if Figure 6 As shown in the figure, when the NIC is in data processing unit mode, the NIC needs independent debugging and log capture capabilities. By connecting the Universal Asynchronous Receiver / Transmitter (UART) to the controller and transmitting signals, the multiplexing (MUX) function is realized, so that the system serial port and the NIC serial port can be switched through the control of the controller. That is, when the NIC model needs to be upgraded out-of-band or error debugging (debugging), the serial port can be switched to the NIC through the controller (usually the server only has the system serial port and the BMC serial port, and the serial port of the smart NIC cannot be accessed).

[0084] In an exemplary embodiment, the server further includes: a controller; and the method further includes the following steps S41-S42:

[0085] Step S41: when the current working mode of the network card is to be switched to a target working mode, updating the firmware file in the network card to a firmware file corresponding to the target working mode through the controller, wherein the working mode of the network card includes the target working mode;

[0086] Optionally, after the network card completes refreshing of the firmware file (Firmware, referred to as FW for short), the controller will control the power supply of the network card to be disconnected, and the new working mode of the network card will take effect after powering on again.

[0087] Step S42: controlling the enable pin of the electronic fuse to be closed by the controller.

[0088] It should be noted that the controller controls the enable pin of the electronic fuse to be closed, so that the network card can be restarted, so that the network card can complete the mode switching, and at the same time, the safety of the circuit is ensured when the network card working mode is switched, and accidents such as excessive current or short circuit are prevented during the update process. As a controllable protection device, the electronic fuse can cut off the circuit when necessary to protect the device from damage.

[0089] It should be noted that, through the above steps, the firmware file in the network card is updated, and the network card is switched from the current working mode to the target working mode, which means that the network card can flexibly adjust its working mode according to actual needs to adapt to different application scenarios or optimize performance. The controller is responsible for updating the firmware file in the network card to the firmware corresponding to the target working mode, which can adapt to the new mode of the network card, thereby ensuring the stability and efficiency of the network card and improving the performance and stability of the entire system.

[0090] In an exemplary embodiment, the server further comprises: a controller, a programmable device and a field replaceable unit; the method further comprises the following steps S51-S52:

[0091] Step S51: When the current working mode of the network card is to be switched to a target working mode, the controller updates the code in the field replaceable unit to a code corresponding to the target working mode;

[0092] Optionally, the controller refreshes the server's field replaceable unit and changes the current model code to the code corresponding to the network card mode. After completing the network card firmware file refresh and the field replaceable unit refresh, the controller will notify the programmable device of the network card mode change, and the power supply and heat dissipation control logic needs to be operated according to the new working mode of the new network card.

[0093] Optionally, after the server is restarted or rebooted in the powered-on state, the network card completes the mode switching and runs the new service;

[0094] Step S52: When the firmware file in the network card and the code in the field replaceable unit are updated, an indication message is sent to the programmable device through the controller, wherein the indication message is used to indicate to the programmable device that the working mode of the network card has been switched.

[0095] Optionally, the controller updates the code in the field replaceable unit to the code corresponding to the target working mode. Field replaceable units usually refer to hardware components that are easy to replace and upgrade, such as modules on the network card. Updating the code of these units can ensure that they are compatible with the target working mode, thereby improving the performance and stability of the entire network card. The next step is performed only when the firmware files in the network card and the codes in the field replaceable units are updated. This ensures that all key components of the network card have been correctly configured to avoid potential problems caused by asynchronous updates. The controller sends an indication message to the programmable device to inform it that the working mode of the network card has been switched. Programmable devices (such as FPGAs, CPLDs, etc.) are usually used to implement complex logical functions, and they need to adjust their behavior according to the working mode of the network card. By sending the indication message, it can be ensured that the programmable device responds to the change of the working mode in time, thereby maintaining the normal operation of the entire system. Through the above steps, the working mode switching process of the network card becomes more controllable and reliable. The synchronous update and indication of the firmware file, the field replaceable unit code, and the programmable device ensure that the network card can smoothly transition when switching the working mode, avoiding system crashes or performance degradation caused by incompatibility or configuration errors.

[0096] In an exemplary embodiment, after determining the current working mode of the network card, the method further includes the following steps S61-S62:

[0097] Step S61: Determine a server resource allocation strategy corresponding to the current working mode;

[0098] It should be noted that when the Smart NIC is in different working modes, the server's demand for internal resources will also change. For example, when the Smart NIC is in data processing unit mode, it may need more access rights to storage resources, network resources, and CPU resources in order to achieve its independent computing, network, and storage offloading functions. In network interface card mode, these requirements will be reduced, and the Smart NIC is mainly responsible for network transmission, occupying less server resources.

[0099] Optionally, first understand the resource requirements of the smart network card in different modes, including CPU time, memory, storage space, network bandwidth, etc., and then formulate specific resource allocation strategies based on the smart network card mode requirements. For example, when the smart network card switches to the data processing unit mode, the strategy includes improving the CPU core access rights of the smart network card, reserving a portion of memory and storage space for the smart network card to use, and optimizing network traffic allocation to ensure that the smart network card can efficiently process and transmit data. In addition, considering the stability and security of the server, formulate a resource redundancy strategy to ensure that even in the case of some resource shortages or failures, the key functions of the server and the smart network card can still operate normally.

[0100] Step S62: Allocate internal resources of the server based on the server resource allocation policy.

[0101] When the resource allocation strategy is determined, the server needs to dynamically reallocate internal resources according to the strategy. This may involve the following operations: CPU resource allocation: adjust the allocation of CPU cores to ensure that the smart network card can access sufficient computing resources for data processing in the data processing unit mode; memory and storage resource allocation: reserve or release memory and storage resources according to the needs of the smart network card to ensure that the smart network card can run efficiently in different modes; network resource allocation: optimize network bandwidth allocation to ensure that the smart network card can independently provide network services in the data processing unit mode without affecting the performance of other network devices; hardware resource pooling: in the data processing unit mode, the smart network card may need to pool the hardware resources (such as PCIe devices, network interfaces) inside the server to support flexible allocation and sharing of hardware resources; resource monitoring and adjustment: dynamically monitor the resource usage of the server and the smart network card, and adjust the resources according to the real-time load to achieve optimal performance and efficiency.

[0102] Through the above steps S61 and S62, the server can intelligently adapt to the resource requirements of the smart network card in different modes and dynamically adjust resource allocation, thereby ensuring that both the server and the smart network card can operate in the best state, improving the overall performance and resource utilization of the system, and also enhancing the flexibility and scalability of the system. This resource allocation and adjustment strategy is an important part of the smart network card mode switching technology, and plays a key role in achieving efficient collaborative work between the smart network card and the server.

[0103] In an exemplary embodiment, after determining the current working mode of the network card, the method further includes the following steps S71-S73:

[0104] Step S71: obtaining a target model, wherein the target model is used to predict faults of the network card based on historical operation data of the network card, wherein the network card includes a target network card;

[0105] Step S72: using the target model, based on the operation data of the target network card, predicting the failure probability of the target network card at the target time to obtain a target probability, wherein the target time is a time after the current time;

[0106] Step S73: When the target probability is greater than the preset probability, after determining that the target network card fails, sending a warning alarm message, wherein the alarm warning message is used to indicate that the probability of the target network card failing at the target time is greater than the preset probability.

[0107] In this embodiment, the above method can be used to predict the failure of the target network card, thereby preventing the target network card from suddenly failing at a certain moment.

[0108] Obviously, the above-described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. In order to better understand the above method, the above process is described below in conjunction with the embodiments, but it is not used to limit the technical solution of the embodiments of the present application. Specifically, the controller is a BMC and the programmable device is a CPLD as an example:

[0109] The present application proposes a power supply method and a server for a network card, which are compatible with two modes of a smart network card. Through hardware design and software logic, the mode of the smart network card can be switched more conveniently, reducing the debugging and design work of the server when changing the smart network card mode, thereby improving efficiency and reliability.

[0110] like Figure 3 As shown, in order to realize the mode switching of the smart network card, the switching method and device proposed in this application are composed of the following modules:

[0111] (1) A power supply circuit that automatically switches according to different mode requirements of the smart network card;

[0112] (2) A control strategy suitable for heat dissipation in different modes of smart network cards;

[0113] (3) A sideband control signal circuit for communication between the smart network card and the server and out-of-band debugging of the smart network card;

[0114] (4) A process and method for switching smart network card modes.

[0115] In this architecture, first, a FRU chip is designed to identify the smart NIC mode, that is, the BMC can read / write the information in the FRU, which indicates whether the current smart NIC is in NIC mode or DPU mode; secondly, it is necessary to be able to switch different power supplies to the NIC according to the different modes of the smart NIC, and it can be achieved without the operation and maintenance personnel manually changing the power connection. If it is in NIC mode, Core power is provided (power supply in the server S0 state), and if it is in DPU mode, AUX power is provided (power supply in the server S5 state); the third is the heat dissipation control module. In the NIC mode, the smart network card only works in the S0 state of the server, so the server fan only needs to work in the S0 state, while in the DPU mode, the smart network card needs to work in the S5 state of the server, so the fan needs to be adjusted after the server is plugged into the AC power. The whole process does not need to manually adjust the cooling strategy after changing the mode; then there is the sideband signal control module. In the NIC mode of the smart network card, only one set of I2C is usually required for out-of-band management; while in the DPU mode of the smart network card, it is powerful and usually acts as a host device to control the server, so it is necessary to provide I2C, GPIO signals, and Uart signals for communication with the server and the debug debugging of the smart network card, so a circuit that can be compatible with the sideband control signal of the two-week mode is required. Finally, based on this device, the mode switching of the smart network card is completed through specific processes and methods, which reduces manual debugging and design work, and improves efficiency and reliability. In the process, BMC and CPLD play a management and control role to complete the process of smart network card mode switching.

[0116] The above is the server architecture topology proposed in this application. Based on this, the specific solution is as follows:

[0117] 1. A power supply circuit that automatically switches according to different mode requirements of a smart network card;

[0118] Different modes of Smart NICs have different power supply requirements. In DPU mode, Smart NICs can be regarded as independent master devices, and can work independently when the server is not working (S5 state), while in NIC mode, Smart NICs are usually slave devices like ordinary NICs, and work when the server is powered on (S0 state). This has different requirements for power supply: NIC mode requires the server to power the NIC in S0 state (server powered on); DPU mode requires the server to power the NIC in S5 state (server powered off).

[0119] Power supply circuit such as Figure 4As shown in the figure, the 12V voltage output by the power supply connector (Power Supply Unit, referred to as PSU) is connected to the power supply connector of the motherboard after being isolated by Efuse. By turning Efuse on and off, the power supply connector can be controlled to supply power to the network card in S5 state or S0 state. A logic judgment unit is designed inside the CPLD to control the switch of Efuse:

[0120] 1) After the machine is powered on, the BMC completes initialization, determines whether the current smart network card is in NIC mode or DPU mode by reading the FRU of the entire machine, and sends it to the CPLD through the I2C bus;

[0121] 2) When the CPLD recognizes that the Smart NIC is in NIC mode, the CPLD controls the EN pin of the Efuse, turns it on in the S0 state of the machine, and supplies power to the Smart NIC through the power connector;

[0122] 3) When the CPLD recognizes that the Smart NIC is in DPU mode, the CPLD controls the EN pin of the Efuse, turns it on in the S5 state of the machine, and supplies power to the Smart NIC through the power connector;

[0123] 4) BMC can also control the opening and closing of Efuse through CPLD, which is used to power off and restart the smart network card after upgrading the FW so that the new FW can take effect.

[0124] Through the above design, automatic switching of power supply modes of different network cards can be achieved.

[0125] 2. A control strategy suitable for heat dissipation in different modes of smart network cards;

[0126] This cooling strategy solves the different cooling requirements of different modes of smart network cards, and also prevents the cooling risk of the fan not rotating due to the cooling strategy code hanging.

[0127] After the AC is powered on, the ordinary server is in S5 state, not turned on, only the BMC and CPLD work, and the network card in NIC mode does not work in this state. The heat dissipation of the whole machine is small and does not require fans for heat dissipation. If it is in DPU mode, it needs to work in S5 state and generate a lot of heat, which requires fans to intervene for heat dissipation. Therefore, the different needs of these two modes need to be considered in the heat dissipation solution of the whole machine, which can automatically adapt to different heat dissipation scenarios.

[0128] like Figure 5 As shown in the figure, BMC is the control unit of the heat dissipation strategy, and controls the fan through CPLD. The fan speed is controlled by the pulse width modulation (PWM) signal, and the fan is turned on and off by the enable EN signal. CPLD acts as an auxiliary control unit to perform redundant control of the fan.

[0129] (1) After the AC is powered on, because the CPLD is hardware, it completes initialization before the BMC. The CPLD cannot obtain whether the current Smart NIC is in DPU mode or NIC mode through the BMC. In order to ensure that the Smart NIC does not overheat and shut down due to working in DPU mode before the BMC takes over the heat dissipation control, the CPLD turns on the fan enable by default and controls the fan speed to 30% until the BMC completes initialization and obtains the current Smart NIC working mode;

[0130] (2) After BMC completes initialization, it sends a heartbeat to CPLD, notifies CPLD, and BMC starts to work normally. BMC reads FRU information through I2C, determines the current mode of the network card, and then calls the corresponding network card cooling algorithm. Take over the control of the fan, continuously monitor the temperature of the network card, and control the fan to cool the machine according to the cooling algorithm;

[0131] (3) During operation, the CPLD always monitors the heartbeat signal of the BMC. When there is no heartbeat signal, it means that the BMC is hung. The CPLD takes over the fan control and adjusts the fan speed to 80% to prevent the system from overheating and shutting down. Until the BMC returns to normal, it takes over the heat dissipation control again.

[0132] Through the above design, the heat dissipation strategy of the smart network card in different working modes can be automatically adapted.

[0133] 3. A sideband control signal circuit for communication between the smart network card and the server and out-of-band debugging of the smart network card;

[0134] In NIC mode, the only out-of-band communication between the server and the network card is the I2C bus, which is used by the BMC to access the network card to obtain network card information, temperature and other health status. In DPU mode, the smart network card can work in the S5 state of the server and can be used as a host to control the server. Therefore, in addition to the traditional I2C, other sideband control signals are required to communicate with the server. The sideband control signal circuit in this architecture also includes a Reset signal connected to the BMC, which is used to reset the BMC in DPU mode; the UART signal is connected to the BMC, which is used to debug the smart network card model and capture logs. The RJ45 management network is connected to the BMC management network port for the smart network card to manage the server in DPU mode. Therefore, the sideband signal control circuit of this solution needs to be compatible with the requirements of the smart network card in different modes and can automatically switch between different modes. The specific architecture is as follows:

[0135] (1) The I2C bus and Uart bus are first connected to the CPLD, and then connected to the BMC through the CPLD;

[0136] (2) Implement the UART bus MUX function in the CPLD, and switch the system serial port and the smart network card serial port through the control of the BMC. That is, when the smart network card model needs to be upgraded or debugged out of band, the serial port can be switched to the smart network card through the BMC. (Usually, the server only has the system serial port and the BMC serial port, and cannot access the serial port of the smart network card);

[0137] (3) The reset signal of the smart network card is connected to the BMC through the CPLD. When the smart network card is in DPU mode and acts as the master device, it can reset the server system.

[0138] (4) The RJ45 management network of the smart network card is connected to the BMC management network port through a network cable. When in DPU mode, it is used for the smart network card to manage the server.

[0139] 4. A process and method for switching smart network card modes;

[0140] The smart network card switching mode and process described in this article are implemented based on the architecture system described in the above device, as follows:

[0141] (1) Stop the current server from running business (if there is no business, proceed to step (2));

[0142] (2) Use the BMC to refresh the firmware corresponding to the "NIC mode" or "DPU mode" of the smart NIC;

[0143] (3) After the smart NIC FW is refreshed, the BMC controls the smart NIC to be powered off, and the new mode of the smart NIC takes effect after it is powered on again;

[0144] (4) BMC refreshes the server's FRU and changes the current model code to the code corresponding to the network card mode;

[0145] (5) After completing the NIC FW refresh and FRU refresh, the BMC notifies the CPLD that the NIC mode has changed, and the power supply and heat dissipation control logic is based on the new mode;

[0146] (6) After the server is restarted or powered on, the smart network card completes the mode switch and runs the new service.

[0147] It should be noted that the present application also has the following advantages: the proposed device includes modules such as network card mode recognition, power supply mode switching, heat dissipation regulation, and sideband control signals, which can meet the needs of smart network cards in different working modes; after the smart network card is switched to a different mode through the switching process proposed above, the server is automatically adapted, which reduces the debugging and design work of the server when changing the smart network card mode, and improves efficiency and reliability.

[0148] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0149] In this embodiment, a server is also provided to implement the above-mentioned embodiments and preferred implementation modes, which have been described and will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the modules described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0150] Figure 7 : is a structural block diagram of a server according to an embodiment of the present application, the server comprising:

[0151] Management module 702, electronic fuse 704, power supply connector 706, network card 708;

[0152] One end of the electronic fuse 704 is electrically connected to the power supply unit, and the other end of the electronic fuse 704 is electrically connected to the power supply connector 706. When the enable pin of the electronic fuse 704 is turned on, the electronic fuse 704 allows current to pass through, and the power supply connector 706 allows the network card 708 to be provided with a core power supply or an auxiliary power supply.

[0153] The management module 702 is used to determine the current working mode of the network card 708, wherein the working modes of the network card 708 include: network interface card mode and data processing unit mode; when it is determined that the current working mode is the network interface card mode, the enable pin of the electronic fuse 704 is controlled to be turned on when the server is in the running state; when it is determined that the current working mode is the data processing unit mode, the enable pin of the electronic fuse 704 is controlled to be turned on when the server is in the shutdown state.

[0154] The above-mentioned server determines the current working mode of the network card, and when the network card is in the network interface card mode, controls the enable pin of the electronic fuse to be turned on when the server is in the running state; when the network card is in the data processing unit mode, controls the enable pin of the electronic fuse to be turned on when the server is in the off state, so that the server can meet the power supply requirements of the network card in different modes online, avoids the disassembly and debugging of the server hardware in the process of switching the network card mode, improves the efficiency of switching the network card mode, and further solves the problem of low efficiency of switching the network card mode due to the server being unable to adapt to different modes of the network card online in the process of switching the network card mode.

[0155] In an exemplary embodiment, the management module 702 also includes a controller and a programmable device, wherein the controller is used to determine the current working mode of the network card and send the current working mode to the programmable device; the programmable device is used to control the enable pin of the electronic fuse to be turned on when the server is in a running state when it is determined that the current working mode is the network interface card mode; and the programmable device is used to control the enable pin of the electronic fuse to be turned on when the server is in a shutdown state when it is determined that the current working mode is the data processing unit mode.

[0156] In an exemplary embodiment, the controller is further configured to control the enable pin of the electronic fuse to be turned off when the power of the network card is to be disconnected.

[0157] In an exemplary embodiment, the server also includes: a fan; a programmable device, which is also used to obtain a first preset speed before determining the working mode of the network card, and control the fan to rotate at the first preset speed; the above-mentioned controller is also used to determine the network card cooling strategy corresponding to the working mode of the network card after determining the working mode of the network card, and obtain the target network card cooling strategy; determine the rotation speed of the fan according to the target network card cooling strategy, and control the fan to rotate at the rotation speed.

[0158] In an exemplary embodiment, the controller is also used to send a heartbeat signal to the programmable device at each preset time interval; the above-mentioned programmable device is also used to obtain a second preset speed through the programmable device without monitoring the heartbeat signal sent by the controller, and control the fan to rotate at the second preset speed.

[0159] In an exemplary embodiment, the network card has a first network port, the controller has a second network port, and the first network port and the second network port are connected via a network cable; the network card is also used to obtain data sent by the controller, or send data to the controller, based on the network communication connection between the network card and the controller when the network card is in the data processing unit mode.

[0160] In an exemplary embodiment, a data line for transmitting a reset signal is provided between the network card and the programmable device, and a data line for transmitting the reset signal is provided between the programmable device and the controller; the network card is further used to diagnose faults of the controller based on the operating data sent by the controller when the operating data is obtained based on the network communication connection between the network card and the controller; and when it is determined that the controller is faulty based on the operating data, a reset signal is sent to the programmable device, and the programmable device is instructed to forward the reset signal to the controller, wherein the reset signal is used to reset the controller.

[0161] In an exemplary embodiment, there is an integrated circuit interconnection bus and / or a universal asynchronous receiver-transmitter bus between the network card and the programmable device, and there is an integrated circuit interconnection bus and / or a universal asynchronous receiver-transmitter bus between the programmable device and the controller; the controller is also used to send data to the network card based on the integrated circuit interconnection bus and / or the universal asynchronous receiver-transmitter bus, or obtain data sent by the network card.

[0162] In an exemplary embodiment, the controller is also used to update the firmware file in the network card to a firmware file corresponding to the target operating mode when the current operating mode of the network card is to be switched to the target operating mode, wherein the operating mode of the network card includes the target operating mode; and control the enable pin of the electronic fuse to be closed.

[0163] In an exemplary embodiment, the server also includes: a field replaceable unit; a controller, which is also used to update the code in the field replaceable unit to the code corresponding to the target operating mode when the current operating mode of the network card is to be switched to the target operating mode; and when the firmware file in the network card and the code in the field replaceable unit are updated, send an indication information to the programmable device, wherein the indication information is used to indicate to the programmable device that the operating mode of the network card has been switched.

[0164] In an exemplary embodiment, the management module 702 is further configured to determine a server resource allocation policy corresponding to the current working mode after determining the current working mode of the network card; and allocate internal resources of the server based on the server resource allocation policy.

[0165] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0166] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0167] Optionally, in this embodiment, the computer program may be configured to perform the following steps by means of the computer program:

[0168] S1, determining the current working mode of the network card, wherein the working mode of the network card includes: a network interface card mode and a data processing unit mode;

[0169] S2, when the current working mode is the network interface card mode, controlling the enable pin of the electronic fuse to be turned on when the server is in a running state;

[0170] S3, when the current working mode is the data processing unit mode, controlling the enable pin of the electronic fuse to be turned on when the server is in a shutdown state.

[0171] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0172] The embodiment of the present application also provides an electronic device, such as Figure 8 As shown, the electronic device includes a memory 802 and a processor 804. The memory 802 stores a computer program, and the processor 804 is configured to execute the steps in any of the above method embodiments through the computer program.

[0173] Optionally, in this embodiment, the processor 804 may be configured to perform the following steps through a computer program:

[0174] S1, determining the current working mode of the network card, wherein the working mode of the network card includes: a network interface card mode and a data processing unit mode;

[0175] S2, when the current working mode is the network interface card mode, controlling the enable pin of the electronic fuse to be turned on when the server is in a running state;

[0176] S3, when the current working mode is the data processing unit mode, controlling the enable pin of the electronic fuse to be turned on when the server is in a shutdown state.

[0177] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0178] Alternatively, a person skilled in the art may understand that: Figure 8 The structure shown is for illustration only. Figure 8 The structure of the electronic device is not limited. For example, the electronic device may also include Figure 8 More or fewer components (such as network interfaces, etc.) as shown in, or with Figure 8 Different configurations are shown.

[0179] Among them, the memory 802 can be used to store software programs and modules, such as the power supply method of the network card in the embodiment of the present application and the program instructions / modules corresponding to the server. The processor 804 executes various functional applications and data processing by running the software programs and modules stored in the memory 802, that is, realizing the power supply method of the above-mentioned network card. The memory 802 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 802 may further include a memory remotely arranged relative to the processor 804, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 802 can be specifically, but not limited to, used to store information such as system configuration files. As an example, such as Figure 8 As shown, the memory 802 may include but is not limited to the management module 702, electronic fuse 704, power connector 706, and network card 708 in the network server. In addition, it may also include but is not limited to other module units in the power supply device of the network card, which will not be repeated in this example.

[0180] Optionally, the transmission device 806 is used to receive or send data via a network. Specific examples of the network may include a wired network and a wireless network. In one example, the transmission device 806 includes a network adapter, which can be connected to other network devices and a router via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 806 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0181] In addition, the electronic device mentioned above further includes: a display 807; and a connection bus 810, which is used to connect various module components in the electronic device mentioned above.

[0182] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0183] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0184] The embodiments of the present application also provide a computer program, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps of any one of the above method embodiments.

[0185] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0186] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A power supply method for a network card, characterized in that: Applied to a server, the server comprises: an electronic fuse, a power supply connector, and a network card; one end of the electronic fuse is electrically connected to a power supply unit, and the other end of the electronic fuse is electrically connected to the power supply connector; when the enable pin of the electronic fuse is turned on, the electronic fuse allows current to pass, and the power supply connector allows core power or auxiliary power to be provided to the network card; include: Determining a current working mode of the network card, wherein the working modes of the network card include: a network interface card mode and a data processing unit mode; When the current working mode is the network interface card mode, controlling the enable pin of the electronic fuse to be turned on when the server is in a running state; When the current working mode is the data processing unit mode, controlling the enable pin of the electronic fuse to be turned on when the server is in a shutdown state; Wherein, when the current working mode is the data processing unit mode, if the server is in a powered-on state, the enable pin of the electronic fuse is in an on state.

2. The method according to claim 1, characterized in that The server also includes: a controller and a programmable device; The method further comprises: Determine the current working mode of the network card through the controller, and send the current working mode to the programmable device; When the programmable device determines that the current working mode is the network interface card mode, the programmable device controls the enable pin of the electronic fuse to be turned on when the server is in a running state; When the programmable device determines that the current working mode is the data processing unit mode, the programmable device controls the enable pin of the electronic fuse to be turned on when the server is in a shutdown state.

3. The method according to claim 2, characterized in that The method further comprises: When the controller is about to disconnect the power supply of the network card, the controller controls the enable pin of the electronic fuse to be closed.

4. The method according to claim 1, characterized in that: The server further comprises: a fan; Before determining the working mode of the network card, the method further includes: obtaining a first preset speed, and controlling the fan to rotate at the first preset speed; After determining the working mode of the network card, the method also includes: determining a network card heat dissipation strategy corresponding to the working mode of the network card to obtain a target network card heat dissipation strategy; determining a rotation speed of the fan according to the target network card heat dissipation strategy, and controlling the fan to rotate at the rotation speed.

5. The method according to claim 4, characterized in that The server further includes: a controller and a programmable device; wherein the programmable device is used to control the fan to rotate at the first preset speed, and the controller is used to control the fan to rotate at the rotation speed; The method further comprises: Sending a heartbeat signal to the programmable device at every preset time interval by the controller; After determining the working mode of the network card, the programmable device obtains a second preset speed and controls the fan to rotate at the second preset speed without monitoring the heartbeat signal sent by the controller.

6. The method according to claim 1, characterized in that The server further comprises: a controller; the network card has a first network port, the controller has a second network port, and the first network port and the second network port are connected via a network cable; The method further comprises: When the network card is in the data processing unit mode, the network card obtains data sent by the controller, or sends data to the controller based on the network communication connection between the network card and the controller.

7. The method according to claim 6, characterized in that The server further comprises: a programmable device; a data line for transmitting a reset signal is provided between the network card and the programmable device, and a data line for transmitting the reset signal is provided between the programmable device and the controller; The method further comprises: By means of the network card, in the case where operation data sent by the controller is acquired based on the network communication connection between the network card and the controller, a fault diagnosis is performed on the controller based on the operation data; When it is determined that the controller fails based on the operation data, a reset signal is sent to the programmable device through the network card, and the programmable device is instructed to forward the reset signal to the controller, wherein the reset signal is used to reset the controller.

8. The method according to claim 1, characterized in that The server further comprises: a controller and a programmable device; an integrated circuit interconnection bus and / or a universal asynchronous receiver-transmitter bus is provided between the network card and the programmable device, and an integrated circuit interconnection bus and / or a universal asynchronous receiver-transmitter bus is provided between the programmable device and the controller; The method further comprises: The controller sends data to the network card based on an integrated circuit interconnect bus and / or a universal asynchronous receiver-transmitter bus, or obtains data sent by the network card.

9. The method according to claim 1, characterized in that: The server also includes: a controller; The method further comprises: When the current working mode of the network card is to be switched to a target working mode, updating the firmware file in the network card to a firmware file corresponding to the target working mode through the controller, wherein the working mode of the network card includes the target working mode; The controller controls the enable pin of the electronic fuse to be closed.

10. The method according to claim 9, characterized in that The server also includes: a programmable device and a field replaceable unit; The method further comprises: When the current working mode of the network card is to be switched to a target working mode, updating the code in the field replaceable unit to a code corresponding to the target working mode through the controller; When the firmware file in the network card and the code in the field replaceable unit are updated, indication information is sent to the programmable device through the controller, wherein the indication information is used to indicate to the programmable device that the working mode of the network card has been switched.

11. The method according to claim 1, characterized in that: After determining the current working mode of the network card, the method further includes: Determine a server resource allocation strategy corresponding to the current working mode; The internal resources of the server are allocated based on the server resource allocation policy.

12. A server, characterized in that: include: Management module, electronic fuse, power connector, network card; One end of the electronic fuse is electrically connected to the power supply unit, and the other end of the electronic fuse is electrically connected to the power supply connector. When the enable pin of the electronic fuse is turned on, the electronic fuse allows current to pass through, and the power supply connector allows the core power supply or auxiliary power supply to be provided to the network card. The management module is used to determine the current working mode of the network card, wherein the working modes of the network card include: network interface card mode and data processing unit mode; when it is determined that the current working mode is the network interface card mode, the enable pin of the electronic fuse is controlled to be turned on when the server is in a running state; when it is determined that the current working mode is the data processing unit mode, the enable pin of the electronic fuse is controlled to be turned on when the server is in a shutdown state; Wherein, the management module is further used for controlling the enable pin of the electronic fuse to be in an on state if it is determined that the current working mode is the data processing unit mode and if it is determined that the server is in a powered-on state.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 11 when executed by a processor.

14. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 11 are implemented.

15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 11 is implemented.

Citation Information

Patent Citations

  • Cooling method and system of server under network controller sideband interface (NCSI) standby mode

    CN109618546A

  • Power-on method and power-on device of intelligent network card

    CN115599191A