CN117075708B - Method for setting server DPU network card to enter FS-5 state - Google Patents
Method for setting server DPU network card to enter FS-5 state Download PDFInfo
- Publication number
- CN117075708B CN117075708B CN202311340324.5A CN202311340324A CN117075708B CN 117075708 B CN117075708 B CN 117075708B CN 202311340324 A CN202311340324 A CN 202311340324A CN 117075708 B CN117075708 B CN 117075708B
- Authority
- CN
- China
- Prior art keywords
- state
- server
- power
- command
- module
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 72
- 230000001960 triggered effect Effects 0.000 claims description 42
- 108010028984 3-isopropylmalate dehydratase Proteins 0.000 claims description 10
- 241001290266 Sciaenops ocellatus Species 0.000 claims description 7
- 230000001276 controlling effect Effects 0.000 claims description 6
- 230000001105 regulatory effect Effects 0.000 claims description 3
- 239000002699 waste material Substances 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000009897 systematic effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3206—Monitoring of events, devices or parameters that trigger a change in power modality
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/325—Power saving in peripheral device
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/325—Power saving in peripheral device
- G06F1/3265—Power saving in display device
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/3287—Power saving characterised by the action undertaken by switching off individual functional units in the computer system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4411—Configuring for operating with peripheral devices; Loading of device drivers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/442—Shutdown
Abstract
The invention provides a method for setting a server DPU network card to enter an FS-5 state, and relates to the field of computing resource management. The invention firstly provides an FS-5 state for managing the power supply of the server and the intelligent network card aiming at the state management vacancy between the server and the intelligent network card of the existing power supply management system, and the method for jointly solving the problem that the DPU intelligent network card enters the F-S5 state based on CPLD logic of the server main board, BMC and BIOS can stably and reliably realize the power switch and power resource control of the DPU network card, thereby realizing flexible configuration of the power-down setting of the server, saving electric quantity, reducing expenditure and reducing waste.
Description
Technical Field
The invention relates to the field of computing resource management, in particular to a method for setting a server DPU network card to enter an FS-5 state.
Background
The complete hardware system of the server is provided with various plug-in cards and modules. Such as NIC cards, AI accelerator cards, DPU cards, etc., which occupy the power resources of the server and which will not operate when the server is powered down. The general scheme of the existing server DPU power supply is to directly supply power by adopting a direct STBY power supply, that is to say, after the server PSU AC is electrified, the DPU network card obtains the power supply, even if the equipment is really shut down, the network card is not electrified, and no operable hardware path exists.
The intelligent network card has high power consumption, and is generally close to 100W; after the whole machine is powered down, the intelligent network card is still in a state that the interface card is not powered down and the fan normally dissipates heat, and the PCIE clock is normal, so that a high energy consumption level is maintained; however, due to the limitation of the hardware of the whole machine, effective management of the state is not realized at present, and the conventional power management lacks systematic management for the state.
Therefore, it is necessary to provide a method for setting the server DPU network card to enter the FS-5 state to solve the above technical problems.
Disclosure of Invention
In order to solve the technical problems, the method for setting the server DPU network card to enter the FS-5 state is characterized in that the current process of the server is redefined through BMC software codes, BIOS software codes and a mainboard CPLD logic code, so that the server DPU network card enters the FS-5 state; wherein, after the server enters the FS-5 state: the server local complete machine actually works in an S0 state, but the remote terminal displays the server to be in an S5 state, and pulls the CPU to be reset; the main control flow comprises the following steps:
step 1: the BIOS module detects whether the DPU network card is in place; if the server is in place, performing the next step when the server receives a shutdown instruction; otherwise, when the server receives the power-down command, the power-down command is directly regulated to an S5 state;
step 2: the CPLD module receives a shutdown instruction generated when the BIOS module is powered down, and performs the next step when the shutdown instruction is received;
step 3: judging whether to enter an FS-5 state, if so, resetting the CPU by the CPLD module and entering the FS-5 state; if not, controlling the BMC module to be powered off and enter an S5 state;
step 4: judging whether the server is started; if a starting instruction is detected, resetting the release CPU by the CPLD module and controlling the BMC module to supply power;
step 5: and (3) repeating the steps 1 to 4 to finish the main control flow of entering the FS-5 state by the server DPU network card.
As a further solution, a register for BIOS reading or writing is newly added in the CPLD module; the default value of the register is 0x00, and if the server is accessed to the DPU network card, the BIOS writes the register value to 0x01; if the server is not connected with the DPU network card, the BIOS writes the register value to 0x00.
As a further solution, the ways to change the power state of the whole machine are: BMC WEB interface virtual button, IPMI command, redfish interface, BIOS shell command and server hanging power button.
As a further solution, the virtual buttons of the BMC WEB interface include a power-down button, a forced restart button, and a forced power-down and power-up button; wherein,
when the server is in the S0 state and the power-down button is triggered: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module triggers an interrupt, the system OS detects the interrupt, and a system power-down flow is executed; after the system OS finishes the power-on process, the BIOS module is informed to write the corresponding register in the CPLD module, and the CPLD module judges the power-on process through the register; after the power-down is completed, the CPLD module judges whether the DPU network card is in place or not, and executes a main control flow;
when the server is in the S0 state and the forced power-down button is triggered: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module judges whether the DPU network card is in place or not, and executes a main control flow;
when the server is in the S0 state and the forced restart button is triggered: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module judges whether the DPU network card is in place; if yes, resetting all other devices except the DPU network card; if not, resetting the whole plate; keeping resetting in a preset time period, and after the preset time period is reached, performing resetting removing operation to restore to an S0 state;
when the server is in the S0 state and the forced power-down and power-up button is triggered: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module judges whether the DPU network card is in place; if yes, the control enters the FS-5 state, and exits the FS-5 state after reaching the preset time period, and the S0 state is restored.
As a still further solution, the IPMI commands include a Power on command, a Power soft command, a Power off command, and a Power reset command; wherein,
when the server is in S5 state or FS-5 state and the Power on command is triggered: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module judges whether the server is in the FS-5 state, if so, resets the CPU and enters the S0 state; if not, performing a current-up process and entering an S0 state;
when the server is in S0 state and the Power soft command is triggered: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module triggers an interrupt, the system OS detects the interrupt, and a system power-down flow is executed; after the system OS finishes the power-on process, the BIOS module is informed to write the corresponding register in the CPLD module, and the CPLD module judges the power-on process through the register; after the power-down is completed, the CPLD module judges whether the DPU network card is in place or not, and executes a main control flow;
when the server is in the S0 state and the Power off command is triggered: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module triggers an interrupt, the system OS detects the interrupt, and a system power-down flow is executed; after the system OS finishes the power-on process, the BIOS module is informed to write the corresponding register in the CPLD module, and the CPLD module judges the power-on process through the register; after the power-down is completed, the CPLD module judges whether the DPU network card is in place, if so, the CPU is reset, and if not, the power supply is turned off; after waiting for the preset time, resetting the CPU if the CPU is in place, and carrying out the power-on flow if the CPU is not in place;
when the server is in S0 state and the Power reset command is triggered: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module triggers an interrupt, the system OS detects the interrupt and executes system interrupt processing; after the system OS finishes interrupt processing, the BIOS module is informed to write the corresponding register in the CPLD module, and the CPLD module judges the processing progress through the register and waits for reset; the CPLD module judges whether the DPU network card is in place, if so, all other devices except the DPU network card are reset; if not, resetting the whole plate; and keeping resetting in a preset time period, and after the preset time period is reached, performing resetting removing operation to restore to the S0 state.
As a still further solution, the Redfish interface command includes an On command, a ForceOff command, a ForceRestart command, a gracefullshift command, and a ForcePowerCycle command; wherein,
when the server is in S5 state or FS-5 state and the On command is triggered: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module judges whether the server is in the FS-5 state, if so, resets the CPU and enters the S0 state; if not, performing a current-up process and entering an S0 state;
when the server is in the S0 state and triggers the ForceOff command: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module judges whether the DPU network card is in place or not, and executes a main control flow;
when the server is in the S0 state and triggers the ForceRestart command: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module judges whether the DPU network card is in place; if yes, resetting all other devices except the DPU network card; if not, resetting the whole plate; keeping resetting in a preset time period, and after the preset time period is reached, performing resetting removing operation to restore to an S0 state;
when the server is in the S0 state and triggers the gracefullshutdown command: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module triggers an interrupt, the system OS detects the interrupt, and a system power-down flow is executed; after the system OS finishes the power-on process, the BIOS module is informed to write the corresponding register in the CPLD module, and the CPLD module judges the power-on process through the register; after the power-down is completed, the CPLD module judges whether the DPU network card is in place or not, and executes a main control flow;
when the server is in S0 state and triggers the ForcePowerCycle command: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module judges whether the DPU network card is in place; if yes, the control enters the FS-5 state, and exits the FS-5 state after reaching the preset time period, and the S0 state is restored.
As a still further solution, the BIOS shell commands include RESET-S commands, RESET-W commands, and RESET-C commands;
when the server is in S0 state and triggers a RESET-S command: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module triggers an interrupt, the system OS detects the interrupt, and a system power-down flow is executed; after the system OS finishes the power-on process, the BIOS module is informed to write the corresponding register in the CPLD module, and the CPLD module judges the power-on process through the register; after the power-down is completed, the CPLD module judges whether the DPU network card is in place or not, and executes a main control flow;
when the server is in S0 state and triggers a RESET-W command: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module triggers an interrupt, the system OS detects the interrupt and executes system interrupt processing; after the system OS finishes interrupt processing, the BIOS module is informed to write the corresponding register in the CPLD module, and the CPLD module judges the processing progress through the register and waits for reset; the CPLD module judges whether the DPU network card is in place, if so, all other devices except the DPU network card are reset; if not, resetting the whole plate; keeping resetting in a preset time period, and after the preset time period is reached, performing resetting removing operation to restore to an S0 state;
when the server is in S0 state and triggers a RESET-C command: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module judges whether the DPU network card is in place; if yes, resetting all other devices except the DPU network card; if not, resetting the whole plate; and keeping resetting in a preset time period, and after the preset time period is reached, performing resetting removing operation to restore to the S0 state.
As a still further solution, the server-hook power button includes a short press trigger and a long press trigger; wherein,
when the short press is triggered, the server is in an S0 state and the DPU network card is not in place: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module triggers an interrupt, the system OS detects the interrupt, and a system power-down flow is executed; after the system OS finishes the power-on process, the BIOS module is informed to write the corresponding register in the CPLD module, and the CPLD module judges the power-on process through the register; after the power-down is completed, executing a main control flow to set the server to be in an S5 state;
when the long press trigger is triggered, the server is in an S0 state, and the DPU network card is not in place: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module directly turns off the power supply and switches the server to an S5 state;
when the short press is triggered, the server is in an S0 state and the DPU network card is in place: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module triggers an interrupt, the system OS detects the interrupt, and a system power-down flow is executed; after the system OS finishes the power-on process, the BIOS module is informed to write the corresponding register in the CPLD module, and the CPLD module judges the power-on process through the register; after the power-down is completed, executing a main control flow to set the server to be in an F-S5 state;
when the long press is triggered, the server is in an S0 state and the DPU network card is in place: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module executes a main control flow to set the server to be in an F-S5 state;
when the server is in the S5 state or the F-S5 state: whether long press trigger or short press trigger, the S5 state or F-S5 state is exited and the S0 state is restored.
As a further solution, the IPMI command is further added with command XX for the system to actually power down; when the server is in S5 state or FS-5 state and the command XX is triggered: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module directly turns off the power supply and switches the server to the S5 state.
Compared with the related art, the method for setting the server DPU network card to enter the FS-5 state has the following beneficial effects:
the invention firstly provides an FS-5 state for managing the power supply of the server and the intelligent network card aiming at the state management vacancy between the server and the intelligent network card of the existing power supply management system, and the method for jointly solving the problem that the DPU intelligent network card enters the F-S5 state based on CPLD logic of the server main board, BMC and BIOS can stably and reliably realize the power switch and power resource control of the DPU network card, thereby realizing flexible configuration of the power-down setting of the server, saving electric quantity, reducing expenditure and reducing waste.
Drawings
FIG. 1 is a flow chart of a method for setting a server DPU network card to enter a FS-5 state;
FIG. 2 is a schematic flow chart of a server in S0 state and triggering a power-down button according to the present invention;
FIG. 3 is a schematic flow chart of a server in S0 state and triggering a forced power-down button according to the present invention;
FIG. 4 is a schematic flow chart of a server in S0 state and triggering a forced restarting button according to the present invention;
FIG. 5 is a schematic flow chart of a server in S0 state and triggering a forced power-down and power-up button according to the present invention;
FIG. 6 is a schematic flow chart of a server in S5 state or FS-5 state and triggering a Power on command according to the present invention;
FIG. 7 is a schematic diagram of a flow of triggering a Power Soft command when a server is in S0 state;
FIG. 8 is a schematic flow chart of a server in S0 state and triggering a Power off command according to the present invention;
FIG. 9 is a schematic flow chart of a server in S0 state and triggering a Power reset command according to the present invention;
fig. 10 is a schematic diagram of a real power-down flow of a server system according to the present invention.
Detailed Description
The invention will be further described with reference to the drawings and embodiments.
As shown in fig. 1, in the method for setting the server DPU network card to enter the FS-5 state provided in this embodiment, redefining the current path of the server up and down through the BMC software code, the BIOS software code and the motherboard CPLD logic code, so as to implement that the server DPU network card enters the FS-5 state; wherein, after the server enters the FS-5 state: the server local complete machine actually works in an S0 state, but the remote terminal displays the server to be in an S5 state, and pulls the CPU to be reset; the main control flow comprises the following steps:
step 1: the BIOS module detects whether the DPU network card is in place; if the server is in place, performing the next step when the server receives a shutdown instruction; otherwise, when the server receives the power-down command, the power-down command is directly regulated to an S5 state;
step 2: the CPLD module receives a shutdown instruction generated when the BIOS module is powered down, and performs the next step when the shutdown instruction is received;
step 3: judging whether to enter an FS-5 state, if so, resetting the CPU by the CPLD module and entering the FS-5 state; if not, controlling the BMC module to be powered off and enter an S5 state;
step 4: judging whether the server is started; if a starting instruction is detected, resetting the release CPU by the CPLD module and controlling the BMC module to supply power;
step 5: and (3) repeating the steps 1 to 4 to finish the main control flow of entering the FS-5 state by the server DPU network card.
It should be noted that: the existing power management system does not manage the power state of the intelligent network card, the intelligent network card needs to be powered down after the whole machine is powered down, the interface card is not powered down, the fan radiates heat normally, and the PCIE clock is normal. Due to the limitation of the hardware of the whole machine, the realization is not realized at present; in the embodiment, the intelligent network card is managed through the F-S5 state, and in the state, the whole machine is actually in S0, but the remote display is closed, and the S5 state is presented to the outside (the remote end), specifically, when F-S5 is implemented, the CPU is pulled and reset; when exiting F-S5, the CPU goes to reset; the power-down setting of the flexible configuration server can be realized through the state, the electric quantity is saved, the expenditure is reduced, and the waste is reduced; therefore, the state vacancy existing in the process of power management of the intelligent network card is solved.
The several states described above are described herein in connection with specific embodiments:
s5, the server power management standard state, namely the power-down state.
F-S5, namely, a state constructed by the embodiment, wherein the server is in S0 state, but remote display is closed (KVM, VNC display black screen picture);
s0 state: the server power management standard state, i.e. power-on state, remote display is turned off (KVM, VNC display normal picture).
As a further solution, a register for BIOS reading or writing is newly added in the CPLD module; the default value of the register is 0x00, and if the server is accessed to the DPU network card, the BIOS writes the register value to 0x01; if the server is not connected with the DPU network card, the BIOS writes the register value to 0x00.
It should be noted that: to realize F-S5 function, CPLD adds a BIOS read/write register; the access state of the intelligent network card can be known through the register, and corresponding steps are executed in a targeted manner; in a specific embodiment, the default value of the register is 0x00, and if the device is accessed to the intelligent network card, the BIOS writes the register value to 0x01; the register is 0x00 without connecting the network card.
As a further solution, the ways to change the power state of the whole machine are: BMC WEB interface virtual button, IPMI command, redfish interface, BIOS shell command and server hanging power button.
It should be noted that: at present, the following ways for changing the power state of the whole machine are available: BMC WEB interface virtual button, IPMI command, redfish interface, BIOS shell command, server hanging power button; in order to realize the power-down entering the F-S5 state, the core is the processing of the power-on and power-off flow of the server; at present, a BMC software code, a BIOS software code and a mainboard CPLD logic code are mainly adopted to realize the function, and corresponding control judgment logic steps are constructed aiming at all ways for changing the power state of the whole machine, so that the F-S5 state is constructed.
As a further solution, the virtual buttons of the BMC WEB interface include a power-down button, a forced restart button, and a forced power-down and power-up button; wherein,
as shown in fig. 2, when the server is in S0 state and the power-down button is triggered: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module triggers an interrupt, the system OS detects the interrupt, and a system power-down flow is executed; after the system OS finishes the power-on process, the BIOS module is informed to write the corresponding register in the CPLD module, and the CPLD module judges the power-on process through the register; after the power-down is completed, the CPLD module judges whether the DPU network card is in place or not, and executes a main control flow;
as shown in fig. 3, when the server is in S0 state and the forced power-down button is triggered: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module judges whether the DPU network card is in place or not, and executes a main control flow;
as shown in fig. 4, when the server is in S0 state and the forced restart button is triggered: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module judges whether the DPU network card is in place; if yes, resetting all other devices except the DPU network card; if not, resetting the whole plate; keeping resetting in a preset time period, and after the preset time period is reached, performing resetting removing operation to restore to an S0 state;
as shown in fig. 5, when the server is in S0 state and the forced power down and power up button is triggered: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module judges whether the DPU network card is in place; if yes, the control enters the FS-5 state, and exits the FS-5 state after reaching the preset time period, and the S0 state is restored.
As a still further solution, the IPMI commands include a Power on command, a Power soft command, a Power off command, and a Power reset command; wherein,
as shown in fig. 6, when the server is in S5 state or FS-5 state and the Power on command is triggered: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module judges whether the server is in the FS-5 state, if so, resets the CPU and enters the S0 state; if not, performing a current-up process and entering an S0 state;
as shown in fig. 7, when the server is in S0 state and the Power soft command is triggered: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module triggers an interrupt, the system OS detects the interrupt, and a system power-down flow is executed; after the system OS finishes the power-on process, the BIOS module is informed to write the corresponding register in the CPLD module, and the CPLD module judges the power-on process through the register; after the power-down is completed, the CPLD module judges whether the DPU network card is in place or not, and executes a main control flow;
as shown in fig. 8, when the server is in S0 state and the Power off command is triggered: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module triggers an interrupt, the system OS detects the interrupt, and a system power-down flow is executed; after the system OS finishes the power-on process, the BIOS module is informed to write the corresponding register in the CPLD module, and the CPLD module judges the power-on process through the register; after the power-down is completed, the CPLD module judges whether the DPU network card is in place, if so, the CPU is reset, and if not, the power supply is turned off; after waiting for the preset time, resetting the CPU if the CPU is in place, and carrying out the power-on flow if the CPU is not in place;
as shown in fig. 9, when the server is in S0 state and the Power reset command is triggered: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module triggers an interrupt, the system OS detects the interrupt and executes system interrupt processing; after the system OS finishes interrupt processing, the BIOS module is informed to write the corresponding register in the CPLD module, and the CPLD module judges the processing progress through the register and waits for reset; the CPLD module judges whether the DPU network card is in place, if so, all other devices except the DPU network card are reset; if not, resetting the whole plate; and keeping resetting in a preset time period, and after the preset time period is reached, performing resetting removing operation to restore to the S0 state.
As a still further solution, the Redfish interface command includes an On command, a ForceOff command, a ForceRestart command, a gracefullshift command, and a ForcePowerCycle command; wherein,
when the server is in S5 state or FS-5 state and the On command is triggered: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module judges whether the server is in the FS-5 state, if so, resets the CPU and enters the S0 state; if not, performing a current-up process and entering an S0 state;
when the server is in the S0 state and triggers the ForceOff command: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module judges whether the DPU network card is in place or not, and executes a main control flow;
when the server is in the S0 state and triggers the ForceRestart command: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module judges whether the DPU network card is in place; if yes, resetting all other devices except the DPU network card; if not, resetting the whole plate; keeping resetting in a preset time period, and after the preset time period is reached, performing resetting removing operation to restore to an S0 state;
when the server is in the S0 state and triggers the gracefullshutdown command: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module triggers an interrupt, the system OS detects the interrupt, and a system power-down flow is executed; after the system OS finishes the power-on process, the BIOS module is informed to write the corresponding register in the CPLD module, and the CPLD module judges the power-on process through the register; after the power-down is completed, the CPLD module judges whether the DPU network card is in place or not, and executes a main control flow;
when the server is in S0 state and triggers the ForcePowerCycle command: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module judges whether the DPU network card is in place; if yes, the control enters the FS-5 state, and exits the FS-5 state after reaching the preset time period, and the S0 state is restored.
As a still further solution, the BIOS shell commands include RESET-S commands, RESET-W commands, and RESET-C commands;
when the server is in S0 state and triggers a RESET-S command: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module triggers an interrupt, the system OS detects the interrupt, and a system power-down flow is executed; after the system OS finishes the power-on process, the BIOS module is informed to write the corresponding register in the CPLD module, and the CPLD module judges the power-on process through the register; after the power-down is completed, the CPLD module judges whether the DPU network card is in place or not, and executes a main control flow;
when the server is in S0 state and triggers a RESET-W command: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module triggers an interrupt, the system OS detects the interrupt and executes system interrupt processing; after the system OS finishes interrupt processing, the BIOS module is informed to write the corresponding register in the CPLD module, and the CPLD module judges the processing progress through the register and waits for reset; the CPLD module judges whether the DPU network card is in place, if so, all other devices except the DPU network card are reset; if not, resetting the whole plate; keeping resetting in a preset time period, and after the preset time period is reached, performing resetting removing operation to restore to an S0 state;
when the server is in S0 state and triggers a RESET-C command: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module judges whether the DPU network card is in place; if yes, resetting all other devices except the DPU network card; if not, resetting the whole plate; and keeping resetting in a preset time period, and after the preset time period is reached, performing resetting removing operation to restore to the S0 state.
As a still further solution, the server-hook power button includes a short press trigger and a long press trigger; wherein,
when the short press is triggered, the server is in an S0 state and the DPU network card is not in place: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module triggers an interrupt, the system OS detects the interrupt, and a system power-down flow is executed; after the system OS finishes the power-on process, the BIOS module is informed to write the corresponding register in the CPLD module, and the CPLD module judges the power-on process through the register; after the power-down is completed, executing a main control flow to set the server to be in an S5 state;
when the long press trigger is triggered, the server is in an S0 state, and the DPU network card is not in place: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module directly turns off the power supply and switches the server to an S5 state;
when the short press is triggered, the server is in an S0 state and the DPU network card is in place: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module triggers an interrupt, the system OS detects the interrupt, and a system power-down flow is executed; after the system OS finishes the power-on process, the BIOS module is informed to write the corresponding register in the CPLD module, and the CPLD module judges the power-on process through the register; after the power-down is completed, executing a main control flow to set the server to be in an F-S5 state;
when the long press is triggered, the server is in an S0 state and the DPU network card is in place: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module executes a main control flow to set the server to be in an F-S5 state;
when the server is in the S5 state or the F-S5 state: whether long press trigger or short press trigger, the S5 state or F-S5 state is exited and the S0 state is restored.
As shown in fig. 10, as a further solution, the IPMI command is further added with command XX for system true power down; when the server is in S5 state or FS-5 state and the command XX is triggered: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module directly turns off the power supply and switches the server to the S5 state
The foregoing is only illustrative of the present invention and is not to be construed as limiting the scope of the invention, and all equivalent structures or equivalent flow modifications which may be made by the teachings of the present invention and the accompanying drawings or which may be directly or indirectly employed in other related art are within the scope of the invention.
Claims (9)
1. A method for setting the server DPU network card to enter the FS-5 state is characterized in that redefining the upper and lower current processes of the server is carried out, and the main control process is executed through the mutual coordination of a BMC module, a BIOS module and a CPLD module, so that the server DPU network card enters the FS-5 state; the main control flow comprises the following steps:
step 1: the BIOS module detects whether the DPU network card is in place; if the server is in place, performing the next step when the server receives a shutdown instruction; otherwise, when the server receives the power-down command, the power-down command is directly regulated to an S5 state;
step 2: the CPLD module receives a shutdown instruction generated when the BIOS module is powered down, and performs the next step when the shutdown instruction is received;
step 3: reading a path for changing the power state of the whole machine, judging whether the path enters the FS-5 state, and if so, resetting the CPU by the CPLD module and entering the FS-5 state; if not, controlling the BMC module to be powered off and enter an S5 state;
step 4: judging whether the server is started; if a starting instruction is detected, resetting the release CPU by the CPLD module and controlling the BMC module to supply power;
step 5: repeating the steps 1 to 4 to finish the main control flow of entering the FS-5 state by the server DPU network card;
wherein, after the server enters the FS-5 state: the server local complete machine actually works in the S0 state, but the remote terminal displays the server to present the S5 state and pulls the CPU to reset.
2. The method for setting the server DPU network card to enter the FS-5 state of claim 1, wherein a register for BIOS reading or writing is newly added in the CPLD module; the default value of the register is 0x00, and if the server is accessed to the DPU network card, the BIOS writes the register value to 0x01; if the server is not connected with the DPU network card, the BIOS writes the register value to 0x00.
3. The method for setting the server DPU network card to enter the FS-5 state according to claim 2, wherein the means for changing the power state of the whole machine is as follows: BMC WEB interface virtual button, IPMI command, redfish interface, BIOS shell command and server hanging power button.
4. The method for setting the server DPU network card to enter the FS-5 state according to claim 3, wherein the BMC WEB interface virtual button includes a power-down button, a forced restart button, and a forced power-down and power-up button; wherein,
when the server is in the S0 state and the power-down button is triggered: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module triggers an interrupt, the system OS detects the interrupt, and a system power-down flow is executed; after the system OS finishes the power-on process, the BIOS module is informed to write the corresponding register in the CPLD module, and the CPLD module judges the power-on process through the register; after the power-down is completed, the CPLD module judges whether the DPU network card is in place or not, and executes a main control flow;
when the server is in the S0 state and the forced power-down button is triggered: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module judges whether the DPU network card is in place or not, and executes a main control flow;
when the server is in the S0 state and the forced restart button is triggered: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module judges whether the DPU network card is in place; if yes, resetting all other devices except the DPU network card; if not, resetting the whole plate; keeping resetting in a preset time period, and after the preset time period is reached, performing resetting removing operation to restore to an S0 state;
when the server is in the S0 state and the forced power-down and power-up button is triggered: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module judges whether the DPU network card is in place; if yes, the control enters the FS-5 state, and exits the FS-5 state after reaching the preset time period, and the S0 state is restored.
5. The method for setting the server DPU network card to enter the FS-5 state of claim 3, wherein said IPMI commands include a Power on command, a Power soft command, a Power off command, and a Power reset command; wherein,
when the server is in S5 state or FS-5 state and the Power on command is triggered: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module judges whether the server is in the FS-5 state, if so, resets the CPU and enters the S0 state; if not, performing a current-up process and entering an S0 state;
when the server is in S0 state and the Power soft command is triggered: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module triggers an interrupt, the system OS detects the interrupt, and a system power-down flow is executed; after the system OS finishes the power-on process, the BIOS module is informed to write the corresponding register in the CPLD module, and the CPLD module judges the power-on process through the register; after the power-down is completed, the CPLD module judges whether the DPU network card is in place or not, and executes a main control flow;
when the server is in the S0 state and the Power off command is triggered: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module triggers an interrupt, the system OS detects the interrupt, and a system power-down flow is executed; after the system OS finishes the power-on process, the BIOS module is informed to write the corresponding register in the CPLD module, and the CPLD module judges the power-on process through the register; after the power-down is completed, the CPLD module judges whether the DPU network card is in place, if so, the CPU is reset, and if not, the power supply is turned off; after waiting for the preset time, resetting the CPU if the CPU is in place, and carrying out the power-on flow if the CPU is not in place;
when the server is in S0 state and the Power reset command is triggered: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module triggers an interrupt, the system OS detects the interrupt and executes system interrupt processing; after the system OS finishes interrupt processing, the BIOS module is informed to write the corresponding register in the CPLD module, and the CPLD module judges the processing progress through the register and waits for reset; the CPLD module judges whether the DPU network card is in place, if so, all other devices except the DPU network card are reset; if not, resetting the whole plate; and keeping resetting in a preset time period, and after the preset time period is reached, performing resetting removing operation to restore to the S0 state.
6. The method for setting the server DPU network card to enter the FS-5 state of claim 3, wherein the Redfish interface command includes an On command, a ForceOff command, a ForceRestart command, a gracefull shutdown command, and a ForcePowerCycle command; wherein,
when the server is in S5 state or FS-5 state and the On command is triggered: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module judges whether the server is in the FS-5 state, if so, resets the CPU and enters the S0 state; if not, performing a current-up process and entering an S0 state;
when the server is in the S0 state and triggers the ForceOff command: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module judges whether the DPU network card is in place or not, and executes a main control flow;
when the server is in the S0 state and triggers the ForceRestart command: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module judges whether the DPU network card is in place; if yes, resetting all other devices except the DPU network card; if not, resetting the whole plate; keeping resetting in a preset time period, and after the preset time period is reached, performing resetting removing operation to restore to an S0 state;
when the server is in the S0 state and triggers the gracefullshutdown command: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module triggers an interrupt, the system OS detects the interrupt, and a system power-down flow is executed; after the system OS finishes the power-on process, the BIOS module is informed to write the corresponding register in the CPLD module, and the CPLD module judges the power-on process through the register; after the power-down is completed, the CPLD module judges whether the DPU network card is in place or not, and executes a main control flow;
when the server is in S0 state and triggers the ForcePowerCycle command: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module judges whether the DPU network card is in place; if yes, the control enters the FS-5 state, and exits the FS-5 state after reaching the preset time period, and the S0 state is restored.
7. A method of setting a server DPU network card to enter an FS-5 state as claimed in claim 3, wherein said BIOS shell commands include RESET-S commands, RESET-W commands and RESET-C commands;
when the server is in S0 state and triggers a RESET-S command: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module triggers an interrupt, the system OS detects the interrupt, and a system power-down flow is executed; after the system OS finishes the power-on process, the BIOS module is informed to write the corresponding register in the CPLD module, and the CPLD module judges the power-on process through the register; after the power-down is completed, the CPLD module judges whether the DPU network card is in place or not, and executes a main control flow;
when the server is in S0 state and triggers a RESET-W command: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module triggers an interrupt, the system OS detects the interrupt and executes system interrupt processing; after the system OS finishes interrupt processing, the BIOS module is informed to write the corresponding register in the CPLD module, and the CPLD module judges the processing progress through the register and waits for reset; the CPLD module judges whether the DPU network card is in place, if so, all other devices except the DPU network card are reset; if not, resetting the whole plate; keeping resetting in a preset time period, and after the preset time period is reached, performing resetting removing operation to restore to an S0 state;
when the server is in S0 state and triggers a RESET-C command: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module judges whether the DPU network card is in place; if yes, resetting all other devices except the DPU network card; if not, resetting the whole plate; and keeping resetting in a preset time period, and after the preset time period is reached, performing resetting removing operation to restore to the S0 state.
8. A method of setting a server DPU network card to enter an FS-5 state as recited in claim 3, wherein said server-side power button comprises a short press trigger and a long press trigger; wherein,
when the short press is triggered, the server is in an S0 state and the DPU network card is not in place: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module triggers an interrupt, the system OS detects the interrupt, and a system power-down flow is executed; after the system OS finishes the power-on process, the BIOS module is informed to write the corresponding register in the CPLD module, and the CPLD module judges the power-on process through the register; after the power-down is completed, executing a main control flow to set the server to be in an S5 state;
when the long press trigger is triggered, the server is in an S0 state, and the DPU network card is not in place: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module directly turns off the power supply and switches the server to an S5 state;
when the short press is triggered, the server is in an S0 state and the DPU network card is in place: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module triggers an interrupt, the system OS detects the interrupt, and a system power-down flow is executed; after the system OS finishes the power-on process, the BIOS module is informed to write the corresponding register in the CPLD module, and the CPLD module judges the power-on process through the register; after the power-down is completed, executing a main control flow to set the server to be in an F-S5 state;
when the long press is triggered, the server is in an S0 state and the DPU network card is in place: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module executes a main control flow to set the server to be in an F-S5 state;
when the server is in the S5 state or the F-S5 state: whether long press trigger or short press trigger, the S5 state or F-S5 state is exited and the S0 state is restored.
9. The method for setting the server DPU network card to enter the FS-5 state according to claim 5, wherein the IPMI command is additionally provided with a command XX for the real power-down of the system; when the server is in S5 state or FS-5 state and the command XX is triggered: the BMC module generates a trigger command and notifies the trigger command to the CPLD module; the CPLD module directly turns off the power supply and switches the server to the S5 state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311340324.5A CN117075708B (en) | 2023-10-17 | 2023-10-17 | Method for setting server DPU network card to enter FS-5 state |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311340324.5A CN117075708B (en) | 2023-10-17 | 2023-10-17 | Method for setting server DPU network card to enter FS-5 state |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117075708A CN117075708A (en) | 2023-11-17 |
CN117075708B true CN117075708B (en) | 2024-01-12 |
Family
ID=88719837
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311340324.5A Active CN117075708B (en) | 2023-10-17 | 2023-10-17 | Method for setting server DPU network card to enter FS-5 state |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117075708B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106257864A (en) * | 2015-06-16 | 2016-12-28 | 中兴通讯股份有限公司 | The control method of a kind of DPU equipment working state and device |
CN111459751A (en) * | 2020-03-20 | 2020-07-28 | 苏州浪潮智能科技有限公司 | High-end server management system |
CN113645049A (en) * | 2021-07-30 | 2021-11-12 | 苏州浪潮智能科技有限公司 | Network card electrifying method, system, storage medium and equipment |
CN114564095A (en) * | 2022-02-23 | 2022-05-31 | 南昌华勤电子科技有限公司 | Intelligent network card charging control system and server |
CN116382439A (en) * | 2023-03-29 | 2023-07-04 | 新华三信息技术有限公司 | Control method and device of server fan, computer equipment and storage medium |
CN116700468A (en) * | 2023-05-15 | 2023-09-05 | 四川华鲲振宇智能科技有限责任公司 | Server power supply design scheme capable of meeting independent power supply of DPU card |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9529410B2 (en) * | 2014-07-14 | 2016-12-27 | American Megatrends, Inc. | Service processor (SP) initiated data transaction with BIOS utilizing power off commands |
-
2023
- 2023-10-17 CN CN202311340324.5A patent/CN117075708B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106257864A (en) * | 2015-06-16 | 2016-12-28 | 中兴通讯股份有限公司 | The control method of a kind of DPU equipment working state and device |
CN111459751A (en) * | 2020-03-20 | 2020-07-28 | 苏州浪潮智能科技有限公司 | High-end server management system |
CN113645049A (en) * | 2021-07-30 | 2021-11-12 | 苏州浪潮智能科技有限公司 | Network card electrifying method, system, storage medium and equipment |
CN114564095A (en) * | 2022-02-23 | 2022-05-31 | 南昌华勤电子科技有限公司 | Intelligent network card charging control system and server |
CN116382439A (en) * | 2023-03-29 | 2023-07-04 | 新华三信息技术有限公司 | Control method and device of server fan, computer equipment and storage medium |
CN116700468A (en) * | 2023-05-15 | 2023-09-05 | 四川华鲲振宇智能科技有限责任公司 | Server power supply design scheme capable of meeting independent power supply of DPU card |
Non-Patent Citations (1)
Title |
---|
一种智能网卡系统;党磊;;计算机产品与流通(05);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN117075708A (en) | 2023-11-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101470509B (en) | Computer system control method, computer system and notebook computer | |
CN107122321B (en) | Hardware repair method, hardware repair system, and computer-readable storage device | |
US4851987A (en) | System for reducing processor power consumption by stopping processor clock supply if a desired event does not occur | |
US6760850B1 (en) | Method and apparatus executing power on self test code to enable a wakeup device for a computer system responsive to detecting an AC power source | |
US6453423B1 (en) | Computer remote power on | |
US6832311B2 (en) | Information processing system and resume processing method used in the system | |
CN102057344A (en) | Sleep processor | |
US8195966B2 (en) | Electronic device for reducing power consumption during off of computer motherboard | |
US20070022309A1 (en) | Method and system for power consumption management, and corresponding computer program product | |
KR20040019602A (en) | Apparatus and method for saving and restoring of working context | |
TWI567536B (en) | Power management circuit, server and power management method thereof | |
CN104182243B (en) | Sleep state control system, computer system and sleep state detection method thereof | |
CN105045599A (en) | Television and computer integrated machine and method for realizing remote startup and shutdown control of same | |
TW515995B (en) | Method allowing to configure computer system as wake on LAN | |
US8219842B2 (en) | Computer system and method for energy-saving operation of a computer system | |
TWI693513B (en) | Server system and power saving method thereof | |
CN117075708B (en) | Method for setting server DPU network card to enter FS-5 state | |
CN101436097B (en) | Electronic device and wake-up method thereof | |
US20160085563A1 (en) | Electronic device and method for waking up operating system thereof | |
CN101281416A (en) | Method for ensuring system closedown completion | |
KR101978323B1 (en) | An apparatus and method for managing a efficient power supply by using GPIO ports | |
CN103970253B (en) | Power-saving operation method and electronic device | |
CN112462909A (en) | Reset control method and device of all-in-one switching equipment and storage medium | |
US9311172B2 (en) | External electronic device | |
CN110633002A (en) | Processing circuit and power management method thereof |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |