CN113687944A - Task execution method, device, equipment and medium for baseboard management control chip - Google Patents

Task execution method, device, equipment and medium for baseboard management control chip Download PDF

Info

Publication number
CN113687944A
CN113687944A CN202110866027.9A CN202110866027A CN113687944A CN 113687944 A CN113687944 A CN 113687944A CN 202110866027 A CN202110866027 A CN 202110866027A CN 113687944 A CN113687944 A CN 113687944A
Authority
CN
China
Prior art keywords
task
instruction
control chip
setting
management control
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.)
Granted
Application number
CN202110866027.9A
Other languages
Chinese (zh)
Other versions
CN113687944B (en
Inventor
张贞雷
李拓
满宏涛
刘同强
周玉龙
邹晓峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd
Original Assignee
Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd filed Critical Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd
Priority to CN202110866027.9A priority Critical patent/CN113687944B/en
Publication of CN113687944A publication Critical patent/CN113687944A/en
Application granted granted Critical
Publication of CN113687944B publication Critical patent/CN113687944B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application discloses a task execution method and device of a baseboard management control chip, electronic equipment and a readable storage medium. The method comprises the steps that if a task request instruction containing first identification information is received, a target peripheral device driver required for executing the task request instruction is set to be in a polling mode, a CPU of a base plate management control chip communicates with the target peripheral device in the polling mode, and meanwhile an interface opening and task execution instruction is sent. And if a task request instruction containing second identification information is received, setting the drive of the target peripheral equipment into an interrupt mode, communicating the CPU of the substrate management control chip with the target peripheral equipment by adopting the interrupt mode, and simultaneously sending an interface closing and task execution instruction. The application can effectively improve the working efficiency of the CPU of the substrate management control chip.

Description

Task execution method, device, equipment and medium for baseboard management control chip
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for executing a task of a baseboard management control chip, an electronic device, and a readable storage medium.
Background
The baseboard management control chip is used for monitoring the states of the server, such as temperature, a fan and a Central Processing Unit (CPU), and transmitting video information of the local server to a remote end through a network for remote display and monitoring.
In the related art, the communication mode between the EMAC (Ethernet Media Access Control, network card) in the baseboard management Control chip and the CPU is as follows: first, the CPU of the bmc writes Data to be transmitted by the EMAC into a specified location of a DDR (Double Data Rate) memory, and then transmits the constructed transmission descriptor to the specified location of the DDR. The EMAC analyzes the acquired sending descriptor so as to obtain the target address of the sending data in the DDR and the number of Bytes to be sent. And reading corresponding sending data based on the target address, packaging the data packet through the inside of the EMAC, converting the data packet into a packet format of an Ethernet protocol, and sending the data packet to the network through a physical layer (PHY). In the whole process, the EMAC may frequently communicate with the CPU in an interrupt manner, such as completion of transmission of the current data packet, error checking of the current data packet, error transmission of the current data packet, and the like. Similarly, on the receiving side, the EMAC and the CPU may also communicate frequently in an interrupt manner, for example, the current data packet is received completely, the current data packet is received in error, the check bit of the current data packet has an error, and the types of the errors are various.
As can be seen from the above, the EMAC in the related art communicates with the CPU of the bmc too frequently, and the CPU is frequently in an interrupted state to process the interrupt subroutine, so that the CPU cannot normally and efficiently execute the normal operation task of the system, which results in low task execution efficiency of the bmc of the CPU.
In view of this, how to improve the working efficiency of the CPU of the bmc chip is a technical problem to be solved by those skilled in the art.
Disclosure of Invention
The application provides a task execution method and device of a baseboard management control chip, an electronic device and a readable storage medium, which can effectively improve the working efficiency of a CPU of the baseboard management control chip.
In order to solve the above technical problems, embodiments of the present invention provide the following technical solutions:
an embodiment of the present invention provides a method for executing a task of a baseboard management control chip, including:
if a task request instruction containing first identification information is received, setting a drive of a target peripheral required by executing the task request instruction into a polling mode, and simultaneously sending an interface starting and task executing instruction;
and if a task request instruction containing second identification information is received, setting the driving of the target peripheral equipment into an interrupt mode, and simultaneously sending an interface closing and stopping task execution instruction.
Optionally, the task request instruction is a video monitoring instruction sent by a remote client, and if a task request instruction including first identification information is received, a driver of a target peripheral required for executing the task request instruction is set to be in a polling mode, and a process of sending an interface start and task execution instruction simultaneously includes:
and when the video monitoring instruction is analyzed to contain a first network data packet, setting the network card drive into a polling mode, and simultaneously sending an instruction for starting a video data receiving interface and executing a video data compression task to the compressed video controller.
Optionally, if a task request instruction including second identification information is received, the process of setting the driver of the target peripheral device to an interrupt mode and simultaneously sending an interface closing and stopping a task execution instruction includes:
and when the video monitoring instruction sent by the remote analysis client side contains a second network data packet, setting the network card drive to be in an interrupt mode, and simultaneously sending an instruction for closing the video data receiving interface and stopping a video data compression task to the compressed video controller.
Optionally, after the instruction for starting the video data receiving interface and executing the video data compression task is sent to the compressed video controller, the method further includes:
and packaging the running state information of the host and the compressed video information layer by layer into a data format of a network layer and writing the data format into a memory.
Optionally, after the video information and the running state information after the compression of the host is completed are packed layer by layer into a data format of a network layer and written into the memory based on the TCP/IP protocol, the method further includes:
and actively inquiring and processing an instruction sent by the network card in the process of reading the data packet to be sent from the memory and sending the packed and packaged data packet to the remote client according to the preset inquiry frequency.
Optionally, after setting the driver of the target peripheral device required for executing the task request instruction to the polling mode, the method further includes:
acquiring associated peripheral equipment associated with the target peripheral equipment;
and setting the drive of the associated peripheral equipment into a polling mode so as to enable a CPU (central processing unit) of the substrate management control chip to communicate with the associated peripheral equipment in the polling mode.
Optionally, after setting the driving of the target peripheral to the interrupt mode, the method further includes:
and setting the drive of the associated peripheral equipment into an interrupt mode so that the CPU of the substrate management control chip communicates with the associated peripheral equipment by adopting the interrupt mode.
Another aspect of the embodiments of the present invention provides a task execution device for a baseboard management control chip, including:
the polling communication mode setting module is used for setting the driving of a target peripheral required by executing a task request instruction into a polling mode and simultaneously sending an interface opening and task executing instruction if the task request instruction containing first identification information is received;
and the interrupt communication mode setting module is used for setting the driving of the target peripheral equipment into an interrupt mode and simultaneously sending an interface closing and stopping task execution instruction if receiving a task request instruction containing second identification information.
An embodiment of the present invention further provides an electronic device, which includes a processor, and the processor is configured to implement the steps of the task execution method of the baseboard management control chip according to any one of the preceding items when executing the computer program stored in the memory.
Finally, an embodiment of the present invention provides a readable storage medium, where a computer program is stored on the readable storage medium, and when the computer program is executed by a processor, the method for executing a task of a baseboard management control chip is implemented as in any one of the foregoing embodiments.
The technical scheme provided by the application has the advantages that the communication mode between the CPU of the substrate management control chip and the peripheral is determined according to whether the task needs to be executed, namely whether the peripheral is in an active state or a moderate state, the data packet is long and frequent during task processing, the CPU of the substrate management control chip actively adopts a polling mode to interact with the peripheral, the data packet is short and sparse during task execution, the CPU of the substrate management control chip actively adopts an interruption mode to communicate with the peripheral, the working efficiency of the CPU of the substrate management control chip can be effectively improved, the CPU is prevented from being interrupted frequently, the problem of the defect that the performance of the CPU for executing system tasks and receiving other state information of a host end in the related technology is reduced is solved, and the normal operation of the system tasks running on the CPU can be ensured.
In addition, the embodiment of the invention also provides a corresponding implementation device, electronic equipment and a readable storage medium for the task execution method of the baseboard management control chip, so that the method has higher practicability, and the device, the electronic equipment and the readable storage medium have corresponding advantages.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the related art, the drawings required to be used in the description of the embodiments or the related art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a task execution method of a baseboard management control chip according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating a processing flow of an exemplary application scenario according to the related art provided by the embodiment of the present invention;
fig. 3 is a schematic processing flow diagram of an exemplary application scenario provided by the present application according to an embodiment of the present invention;
fig. 4 is a structural diagram of a task execution device of a bmc chip according to an embodiment of the present invention;
fig. 5 is a block diagram of an embodiment of an electronic device according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and claims of this application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may include other steps or elements not expressly listed.
Having described the technical solutions of the embodiments of the present invention, various non-limiting embodiments of the present application are described in detail below.
Referring to fig. 1, fig. 1 is a schematic flowchart of a task execution method of a baseboard management control chip according to an embodiment of the present invention, and the method is applied to a CPU of the baseboard management control chip, and the embodiment of the present invention may include the following contents:
s101: and if a task request instruction containing the first identification information is received, setting the driving of the target peripheral equipment required by executing the task request instruction into a polling mode, and simultaneously sending an interface starting and task executing instruction.
S102: and if a task request instruction containing the second identification information is received, setting the driving of the target peripheral equipment into an interrupt mode, and simultaneously sending an interface closing and stopping task execution instruction.
In this embodiment, the first identification information and the second identification information are different identification information, and the first identification information is used to identify that the target peripheral device is in an active state, that is, because the target peripheral device that is relied on to execute the task may communicate with the CPU of the bmc frequently, for example, the CPU may feed back that the sending of the current data packet is completed, the verification of the current data packet is incorrect, and the transmission of the current data packet is incorrect. The second identification information is used to identify that the target peripheral is in a relaxed state, i.e., that the target peripheral has less communication with the CPU of the baseboard management controller after stopping the task being executed. The task request instruction of the present embodiment may be an instruction for executing any task, and is a generic term and is not specific. That is, the task request command of S101 and the task request command of S102 correspond to different executed tasks, for example, the task request command of S101 is to execute a data compression task, and the task request command of S102 is to stop the data compression task. The interface of this embodiment refers to an interface that needs to perform data transmission when executing a task corresponding to the task request instruction, where the task execution instruction and the task stop instruction are issued to the function module that executes the task, and similarly, the start instruction and the close instruction of the interface may also be issued to the function module that executes the task.
It will be appreciated that interrupt mode is a mode of passive handling by the CPU, i.e. the CPU does not know when to interrupt, and will be notified whenever there is an interrupt, and the CPU must now stop the task being executed to handle the interrupt. Polling is the process of active inquiry and processing by the CPU, and the CPU inquires whether the peripheral has tasks to be executed according to a fixed frequency or period. The interruption can miss some data, the missing-prevention mechanism is realized by hardware or software at an upper layer, the polling is efficient without interruption, a temporary storage mechanism is required to be introduced, namely, a CPU cannot just need to process tasks when inquiring the hardware every time, the incoming requests at any time must be temporarily stored in a private area in order to avoid the request missing, and the polling cannot cause the request missing as long as the requests are made. Because only one CPU is provided, only one request can be processed at the same time point, and a large amount of omission and competition can be caused when a plurality of interrupts are triggered at high frequency. Polling is not missed because it is requested by the CPU batch-and-packet processing. However, polling is preferred at times when interrupts are too frequent, which may result in the CPU not having time to perform other tasks for the host, since the CPU must handle the interrupts. If the peripheral activity is very mild, polling is not appropriate and the scenario is suitable for interrupts. Based on this, the application identifies whether the peripheral is in an active state or a moderate state through the first identification information and the second identification information, and then determines whether the communication between the CPU and the peripheral is in a polling mode or an interruption mode, which is beneficial to improving the working efficiency of the CPU.
In the technical scheme provided by the embodiment of the invention, the communication mode between the CPU of the substrate management control chip and the peripheral is determined according to whether the task needs to be executed, namely whether the peripheral is in an active state or a moderate state, the data packet is long and frequent when the task is executed, the CPU of the substrate management control chip actively adopts a polling mode to interact with the peripheral, the data packet is short and sparse when the task is not required to be executed, and the CPU of the substrate management control chip actively adopts an interruption mode to communicate with the peripheral, so that the working efficiency of the CPU of the substrate management control chip can be effectively improved, the frequent interruption of the CPU is avoided, the problem that the performance of the CPU for executing system tasks and receiving other state information of a host end is reduced in the related technology is solved, and the normal operation of the system tasks operated on the CPU can be ensured.
It is understood that in the whole process of executing a certain kind of task, there may be 1 external device on which the task is executed, but occasionally the associated device is used, for example, when executing a data access task, an external device such as a mouse is mainly used to complete, but in some scenarios, a keyboard is used, so the keyboard and the mouse belong to the associated device. In order to further improve the working efficiency of the CPU of the bmc chip, based on the above embodiment, the method may further include:
acquiring associated peripheral equipment associated with the target peripheral equipment;
after the driver of the target peripheral required by the task request instruction is set to be in a polling mode, the driver of the associated peripheral equipment can be set to be in the polling mode, so that the CPU of the baseboard management control chip communicates with the target peripheral and the associated peripheral equipment in the polling mode.
After the drive of the target peripheral equipment is set to be the interrupt mode, the drive of the associated peripheral equipment can be set to be the interrupt mode, so that the CPU of the substrate management control chip is communicated with the target peripheral equipment and the associated peripheral equipment in the interrupt mode.
In this embodiment, the associated peripheral device is an external device that needs to be used or may be used in the process of executing the task corresponding to the task request instruction, and a person skilled in the art can determine the associated peripheral device of the target peripheral device according to an actual application scenario. In order to further improve the setting efficiency of the associated peripheral equipment, a file for storing the associated peripheral equipment can be preset, and the system can obtain the associated peripheral equipment associated with the current target peripheral equipment by inquiring the file.
In order to make the technical solutions of the present application more obvious to those skilled in the art, the present application also describes the technical solutions of the present application in conjunction with fig. 2 and fig. 3 by taking the video monitoring task as an illustrative example, which may include the following:
in the related art, a scheme for transmitting a compressed video in a bmc is shown in fig. 2, where HOST is a HOST side, cmp (compression) is a device for controlling video compression in the bmc, and may be referred to as a compressed video controller, EMAC is a network card, and DDR is an off-chip memory, and a specific compressed video flow is as follows:
1: the video information of HOST is passed to the CMP of the bmc chip.
2: the information of the HOST, such as the temperature information of the HOST CPU, the fan speed information, the power supply voltage information, etc., is transmitted to the bmc chip.
3: the compressed video information is written to the off-chip DDR.
4: and the EMAC driver running on the CPU packs the compressed video information and running state information of the HOST end layer by layer into a data format of a network layer according to the requirement of a TCP/IP protocol and writes the data format into the DDR.
5: and reading the data packet to be sent back to the interior of the EMAC by the EMAC, and packaging and the like. The data packet to be sent is in a network layer data format.
6: the EMAC is frequently communicated with the baseboard management control chip in an interruption mode in the process of receiving and sending data packets.
7: the EMAC packed data in the data link layer format is sent through the physical layer PHY and the network, and meanwhile, the network data packet of the opposite end passing through the PHY and then the network is received, and the receiving process is also frequently communicated with the baseboard management control chip in an interruption mode.
Video data of a HOST display card is generated continuously, when video information with huge data volume is sent through a network, interrupt resources of a baseboard management control chip are occupied frequently, a CPU can turn to execute an interrupt service subprogram, so that the efficiency of processing system tasks of the CPU is lowered, the real-time state of a local HOST end cannot be timely transmitted to a remote end, meanwhile, a remote monitoring management end needs to manage the state of the local HOST, namely the server end, for example, the rotating speed of a fan is changed, or firmware updating of the baseboard management control chip is updated, and the management instruction of the HOST end cannot be executed quickly. When some emergency situations of the HOST end face and the remote end is urgently needed to process, serious influence can be caused, and stable and reliable operation of the HOST is not facilitated.
In order to solve the drawbacks of the prior art, the communication mode between the EMAC and the baseboard management control chip of the present application includes two modes, namely interrupt and polling. When the network data packet is long and frequent, the CPU of the baseboard management control chip actively adopts a polling mode to interact with the EMAC, and when the network data packet is short and sparse, the CPU of the baseboard management control chip actively adopts an interruption mode.
The task request instruction is a video monitoring instruction sent by the remote client, when the analyzed video monitoring instruction contains a first network data packet, the network card drive is set to be in a polling mode, and meanwhile, an instruction for starting a video data receiving interface and executing a video data compression task is sent to the compressed video controller. And when the video monitoring instruction sent by the remote analysis client side contains a second network data packet, setting the network card drive to be in an interrupt mode, and simultaneously sending an instruction for closing the video data receiving interface and stopping a video data compression task to the compressed video controller.
Based on the above prior art, in order to implement the technical solution of the present application, the present application modifies the monitoring management software running at the remote end and the monitoring management software running locally at the host end, as shown in fig. 3, step 8 is control information sent to the CMP by the local monitoring management software according to the received network data packet with the remote video function turned on/off. Specifically, the method comprises the following steps:
when a monitor needs to perform video monitoring on the local HOST, the monitoring management software running at the remote end needs to send a specific network data packet to the baseboard management control chip. When the network data packet agreed in the above steps is detected, the settings made by the local monitoring management software of the host end include: firstly, a network card drive, namely an EMAC drive, operated by the CPU is set to be a polling mode, so that a large amount of video data are transmitted at the moment, if a traditional interruption mode is used, the CPU is interrupted frequently, and the performance of the CPU for executing system tasks and receiving other state information of a host end is further reduced. The CMP starts the interface that receives the HOST raw video data and starts video compression. When the remote end closes the video monitoring function, a specific network format packet is also sent, and the packet is different from the data packet in the step 1. When the network data packet agreed in the above steps is detected, the settings made by the local monitoring management software of the host end include: firstly, a network card drive operated by a CPU is set to be an interrupt mode, and the interrupt mode can be used for more quickly executing HOST end state information and transmitting the HOST end state information through an EMAC network. The CMP closes the interface receiving the HOST raw video data and stops video compression. Also, network packets without video data are sent through the EMAC and an interrupt is generated.
In this embodiment, when the remote end starts the video monitoring function, because the video data is continuously generated, and the network data packet is very frequent, the remote monitoring end actively informs the local CPU and the driver through the specific network data packet, and the driver analyzes the received specific data packet to know that the remote end needs to perform video monitoring, and at this time, the CPU needs to communicate with the EMAC in a polling manner. Of course, other peripherals whose interaction frequency with the CPU is low are still an interrupted way. Furthermore, the CPU can be prevented from being in an interrupted state for a long time/high frequency to delay normal system task execution, the CPU can not be interrupted by the EMAC for a long time, and real-time state information collection of a local HOST end is facilitated. And when the remote end does not start the video monitoring function, the baseboard management control chip stops receiving the video data, and the EMAC waits for the interrupt information of the EMAC and other peripheral equipment in an interrupt mode. Based on the foregoing embodiment, the transmission process of the compressed video in this embodiment may include:
a1: when the video monitoring function of the remote end is detected to be started, the video information of the HOST HOST is transmitted to the CMP of the substrate management control chip.
A2: the information of the HOST, such as the temperature information of the HOST CPU, the fan speed information, the power supply voltage information, etc., is transmitted to the bmc chip.
A3: the compressed video information is written to the off-chip DDR.
A4: and the EMAC driver running on the CPU packs the compressed video information and running state information of the HOST end layer by layer into a data format of a network layer according to the requirement of a TCP/IP protocol and writes the data format into the DDR memory.
A5: and reading the data packet to be sent back to the interior of the EMAC from the DDR by the EMAC, and performing packaging and other processing. The data packet to be sent is in a network layer data format.
A6: the EMAC is frequently communicated with the baseboard management control chip in a polling mode in the process of receiving and sending data packets.
A7: and transmitting the data in the data link layer format after EMAC packaging through a physical layer (PHY) and a network, and receiving a network data packet which passes through the PHY and then the network from an opposite end.
In this embodiment, for a6 and a7, according to a preset query frequency, actively querying and processing an instruction sent by a network card in the process of reading a data packet to be sent from a memory and sending a packaged data packet to a remote client. In the whole process, after detecting that the video monitoring function is started, the CPU sends an instruction for starting a video data receiving interface and executing a video data compression task to the CMP.
As can be seen from the above, in this embodiment, the communication mode between the EMAC and the CPU is optimized from the conventional interrupt-only mode to the combined mode of interrupt plus polling. According to whether video transmission is required or not, the communication mode of the CPU and the EMAC is further determined, so that accurate and efficient selection between interruption and polling can be guaranteed. The normal execution of system tasks and the normal transmission of other HOST states are ensured in the process of transmitting video data.
It should be noted that, in the present application, there is no strict sequential execution order among the steps, and as long as a logical order is met, the steps may be executed simultaneously or according to a certain preset order, and fig. 1 to fig. 3 are only schematic manners, and do not represent only such an execution order.
The embodiment of the invention also provides a corresponding device for the task execution method of the substrate management control chip, so that the method has higher practicability. Wherein the means can be described separately from the functional module point of view and the hardware point of view. In the following, the task execution device of the bmc chip provided by the embodiment of the present invention is introduced, and the task execution device of the bmc chip described below and the task execution method of the bmc chip described above may be referred to correspondingly.
Based on the angle of the functional module, referring to fig. 4, fig. 4 is a structural diagram of a task execution device of a baseboard management control chip according to an embodiment of the present invention, in a specific implementation manner, the task execution device may include:
and the polling communication mode setting module 401 is configured to set, if a task request instruction including the first identification information is received, a driver of a target peripheral device required for executing the task request instruction as a polling mode, and send an interface opening and task execution instruction at the same time.
An interrupt communication mode setting module 402, configured to set the driving of the target peripheral to an interrupt mode and send an interface closing and stopping task execution instruction simultaneously if a task request instruction including the second identification information is received.
Optionally, in some embodiments of this embodiment, the polling communication method setting module 401 may be further configured to: the task request instruction is a video monitoring instruction sent by the remote client, when the analyzed video monitoring instruction contains a first network data packet, the network card drive is set to be in a polling mode, and meanwhile, an instruction for starting a video data receiving interface and executing a video data compression task is sent to the compressed video controller.
In other embodiments of this embodiment, the interrupt communication manner setting module 402 may be further configured to: and when the video monitoring instruction sent by the remote client side is analyzed to contain a second network data packet, the network card drive is set to be in an interrupt mode, and meanwhile, an instruction for closing the video data receiving interface and stopping a video data compression task is sent to the compressed video controller.
As some optional implementations of this embodiment, the apparatus may further include a data storage module, configured to pack the running state information of the host and the compressed video information layer by layer into a data format of a network layer, and write the data format into the memory.
As another optional implementation manner of this embodiment, the apparatus may further include a polling module, for actively querying and processing an instruction sent by the network card in a process of reading the data packet to be sent from the memory and sending the packed and encapsulated data packet to the remote client according to a preset query frequency.
Optionally, in some other embodiments of this embodiment, the apparatus may further include an associated device setting module, configured to obtain an associated peripheral device associated with the target peripheral device; and if a task request instruction containing the first identification information is received, setting the drive of the associated peripheral equipment into a polling mode so as to enable the CPU of the substrate management control chip to communicate with the associated peripheral equipment in the polling mode. And if a task request instruction containing the second identification information is received, setting the drive of the associated peripheral equipment into an interrupt mode so as to enable the CPU of the substrate management control chip to communicate with the associated peripheral equipment in the interrupt mode.
The functions of each functional module of the task execution device of the baseboard management control chip according to the embodiment of the present invention may be specifically implemented according to the method in the above method embodiment, and the specific implementation process may refer to the description related to the above method embodiment, and will not be described herein again.
Therefore, the embodiment of the invention can effectively improve the working efficiency of the CPU of the substrate management control chip.
The task execution device of the bmc chip mentioned above is described from the perspective of a functional module, and further, the present application also provides an electronic device described from the perspective of hardware. Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 5, the electronic device comprises a memory 50 for storing a computer program; the processor 51 is configured to implement the steps of the task execution method of the bmc chip as mentioned in any of the above embodiments when executing the computer program.
The processor 51 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the processor 51 may also be a task execution chip of a controller, a microcontroller, a microprocessor or other baseboard management control chip, and the like. The processor 51 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 51 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 51 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content that the display screen needs to display. In some embodiments, the processor 51 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 50 may include one or more computer-readable storage media, which may be non-transitory. Memory 50 may also include high speed random access memory as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. The memory 50 may in some embodiments be an internal storage unit of the electronic device, for example a hard disk of a server. The memory 50 may also be an external storage device of the electronic device in other embodiments, such as a plug-in hard disk provided on a server, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 50 may also include both an internal storage unit and an external storage device of the electronic device. The memory 50 can be used for storing various data and application software installed in the electronic device, such as: the code of the program that executes the vulnerability handling method, etc. may also be used to temporarily store data that has been output or is to be output. In this embodiment, the memory 50 is at least used for storing the following computer program 501, wherein after being loaded and executed by the processor 51, the computer program can implement the relevant steps of the task execution method of the bmc disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 50 may also include an operating system 502, data 503, and the like, and the storage manner may be a transient storage manner or a permanent storage manner. Operating system 502 may include Windows, Unix, Linux, etc. The data 503 may include, but is not limited to, data corresponding to a task execution result of the baseboard management control chip, and the like.
In some embodiments, the electronic device may further include a display 52, an input/output interface 53, a communication interface 54, alternatively referred to as a network interface, a power supply 55, and a communication bus 56. The display 52 and the input/output interface 53, such as a Keyboard (Keyboard), belong to a user interface, and the optional user interface may also include a standard wired interface, a wireless interface, and the like. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, as appropriate, is used for displaying information processed in the electronic device and for displaying a visualized user interface. The communication interface 54 may optionally include a wired interface and/or a wireless interface, such as a WI-FI interface, a bluetooth interface, etc., typically used to establish a communication connection between an electronic device and other electronic devices. The communication bus 56 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus.
Those skilled in the art will appreciate that the configuration shown in fig. 5 is not intended to be limiting of the electronic device and may include more or fewer components than those shown, such as sensors 57, for example, which may perform various functions.
The functions of the functional modules of the electronic device according to the embodiments of the present invention may be specifically implemented according to the method in the above method embodiments, and the specific implementation process may refer to the description related to the above method embodiments, which is not described herein again.
Therefore, the embodiment of the invention can effectively improve the working efficiency of the CPU of the substrate management control chip.
It is understood that, if the task execution method of the baseboard management control chip in the above embodiment is implemented in the form of a software functional unit and sold or used as a stand-alone product, it may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application may be substantially or partially implemented in the form of a software product, which is stored in a storage medium and executes all or part of the steps of the methods of the embodiments of the present application, or all or part of the technical solutions. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), an electrically erasable programmable ROM, a register, a hard disk, a multimedia card, a card type Memory (e.g., SD or DX Memory, etc.), a magnetic Memory, a removable magnetic disk, a CD-ROM, a magnetic or optical disk, and other various media capable of storing program codes.
Based on this, the embodiment of the present invention further provides a readable storage medium, which stores a computer program, and the computer program is executed by a processor, and the steps of the task execution method of the baseboard management control chip according to any one of the above embodiments are provided.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. For hardware including devices and electronic equipment disclosed by the embodiment, the description is relatively simple because the hardware includes the devices and the electronic equipment correspond to the method disclosed by the embodiment, and the relevant points can be obtained by referring to the description of the method.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The above detailed description is provided for a method, an apparatus, an electronic device and a readable storage medium for executing a task of a baseboard management control chip. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present application.

Claims (10)

1. A task execution method of a baseboard management control chip is characterized by comprising the following steps:
if a task request instruction containing first identification information is received, setting a drive of a target peripheral required by executing the task request instruction into a polling mode, and simultaneously sending an interface starting and task executing instruction;
and if a task request instruction containing second identification information is received, setting the driving of the target peripheral equipment into an interrupt mode, and simultaneously sending an interface closing and stopping task execution instruction.
2. The method according to claim 1, wherein the task request command is a video monitoring command sent by a remote client, and if a task request command including first identification information is received, a process of setting a driver of a target peripheral device required for executing the task request command to a polling mode and sending an interface start and task execution command at the same time includes:
and when the video monitoring instruction is analyzed to contain a first network data packet, setting the network card drive into a polling mode, and simultaneously sending an instruction for starting a video data receiving interface and executing a video data compression task to the compressed video controller.
3. The method according to claim 2, wherein if a task request command including second identification information is received, setting a driver of the target peripheral device to an interrupt mode, and sending a process of closing and stopping a task execution command by the interface, includes:
and when the video monitoring instruction sent by the remote analysis client side contains a second network data packet, setting the network card drive to be in an interrupt mode, and simultaneously sending an instruction for closing the video data receiving interface and stopping the video data compression task to the compressed video controller.
4. The task execution method of the bmc chip according to claim 3, wherein after sending the instruction to start the video data receiving interface and execute the video data compression task to the compressed video controller, the method further comprises:
and packaging the running state information of the host and the compressed video information layer by layer into a data format of a network layer and writing the data format into a memory.
5. The method of claim 4, wherein after the step of packetizing the compressed video information and the operating status information of the host layer by layer into a data format of a network layer is performed in the memory, the method further comprises:
and actively inquiring and processing an instruction sent by the network card in the process of reading the data packet to be sent from the memory and sending the packed and packaged data packet to the remote client according to the preset inquiry frequency.
6. The method according to any one of claims 1 to 5, wherein after setting a driver of a target peripheral device required for executing the task request instruction to a polling mode, the method further comprises:
acquiring associated peripheral equipment associated with the target peripheral equipment;
and setting the drive of the associated peripheral equipment into a polling mode so as to enable a CPU (central processing unit) of the substrate management control chip to communicate with the associated peripheral equipment in the polling mode.
7. The method for executing tasks by using a baseboard management control chip according to claim 6, wherein after the setting the driving of the target peripheral to an interrupt mode, the method further comprises:
and setting the drive of the associated peripheral equipment into an interrupt mode so as to enable the CPU of the substrate management control chip to communicate with the associated peripheral equipment by adopting the interrupt mode.
8. A task execution device of a baseboard management control chip is characterized by comprising:
the polling communication mode setting module is used for setting the driving of a target peripheral required by executing a task request instruction into a polling mode and simultaneously sending an interface opening and task executing instruction if the task request instruction containing first identification information is received;
and the interrupt communication mode setting module is used for setting the driving of the target peripheral equipment into an interrupt mode and simultaneously sending an interface closing and stopping task execution instruction if receiving a task request instruction containing second identification information.
9. An electronic device, comprising a processor and a memory, wherein the processor is configured to implement the steps of the task execution method of the bmc according to any one of claims 1 to 7 when executing the computer program stored in the memory.
10. A readable storage medium, on which a computer program is stored, the computer program, when executed by a processor, implementing the steps of the task execution method of a bmc chip according to any one of claims 1 to 7.
CN202110866027.9A 2021-07-29 2021-07-29 Task execution method, device, equipment and medium of baseboard management control chip Active CN113687944B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110866027.9A CN113687944B (en) 2021-07-29 2021-07-29 Task execution method, device, equipment and medium of baseboard management control chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110866027.9A CN113687944B (en) 2021-07-29 2021-07-29 Task execution method, device, equipment and medium of baseboard management control chip

Publications (2)

Publication Number Publication Date
CN113687944A true CN113687944A (en) 2021-11-23
CN113687944B CN113687944B (en) 2024-07-26

Family

ID=78578288

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110866027.9A Active CN113687944B (en) 2021-07-29 2021-07-29 Task execution method, device, equipment and medium of baseboard management control chip

Country Status (1)

Country Link
CN (1) CN113687944B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115168079A (en) * 2022-09-08 2022-10-11 深圳市恒运昌真空技术有限公司 Dual-processor device and control method thereof
CN115729778A (en) * 2022-11-02 2023-03-03 苏州浪潮智能科技有限公司 A method, system, electronic device and storage medium for event-driven BMC
CN116185678A (en) * 2022-12-09 2023-05-30 超聚变数字技术有限公司 Fault log recording method, system method and device
CN116185915A (en) * 2023-04-21 2023-05-30 山东云海国创云计算装备产业创新中心有限公司 Bus scheduling method, device and equipment, medium and baseboard management control chip

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050097226A1 (en) * 2003-10-31 2005-05-05 Sun Microsystems, Inc. Methods and apparatus for dynamically switching between polling and interrupt to handle network traffic
US20180321975A1 (en) * 2017-05-04 2018-11-08 Salesforce.Com, Inc. Systems, methods, and apparatuses for implementing a stateless, deterministic scheduler and work discovery system with interruption recovery
CN110138553A (en) * 2019-05-10 2019-08-16 郑州信大捷安信息技术股份有限公司 A kind of IPSec vpn gateway data packet processing and method
CN110865868A (en) * 2019-10-21 2020-03-06 苏州元核云技术有限公司 Low-delay control method, device and equipment
CN110968402A (en) * 2018-09-28 2020-04-07 深信服科技股份有限公司 CPU work control method, device, equipment and storage medium
CN111836344A (en) * 2019-04-17 2020-10-27 高新兴科技集团股份有限公司 Data acquisition method, device, computer storage medium and electronic device
CN112839231A (en) * 2021-01-15 2021-05-25 苏州浪潮智能科技有限公司 A kind of video compression transmission method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050097226A1 (en) * 2003-10-31 2005-05-05 Sun Microsystems, Inc. Methods and apparatus for dynamically switching between polling and interrupt to handle network traffic
US20180321975A1 (en) * 2017-05-04 2018-11-08 Salesforce.Com, Inc. Systems, methods, and apparatuses for implementing a stateless, deterministic scheduler and work discovery system with interruption recovery
CN110968402A (en) * 2018-09-28 2020-04-07 深信服科技股份有限公司 CPU work control method, device, equipment and storage medium
CN111836344A (en) * 2019-04-17 2020-10-27 高新兴科技集团股份有限公司 Data acquisition method, device, computer storage medium and electronic device
CN110138553A (en) * 2019-05-10 2019-08-16 郑州信大捷安信息技术股份有限公司 A kind of IPSec vpn gateway data packet processing and method
CN110865868A (en) * 2019-10-21 2020-03-06 苏州元核云技术有限公司 Low-delay control method, device and equipment
CN112839231A (en) * 2021-01-15 2021-05-25 苏州浪潮智能科技有限公司 A kind of video compression transmission method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
LI XIAOLI等: "Design and Implementation of Real-time Video Compression System Control Framework", 2009 WRI INTERNATIONAL CONFERENCE ON COMMUNICATIONS AND MOBILE COMPUTING, 4 March 2009 (2009-03-04), pages 581 - 585 *
李国庆: "Xen虚拟网卡自适应中断调度优化策略", 计算机工程与科学, vol. 36, no. 10, 31 October 2014 (2014-10-31), pages 1937 - 1942 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115168079A (en) * 2022-09-08 2022-10-11 深圳市恒运昌真空技术有限公司 Dual-processor device and control method thereof
CN115168079B (en) * 2022-09-08 2022-12-02 深圳市恒运昌真空技术有限公司 Dual-processor device and control method thereof
CN115729778A (en) * 2022-11-02 2023-03-03 苏州浪潮智能科技有限公司 A method, system, electronic device and storage medium for event-driven BMC
CN116185678A (en) * 2022-12-09 2023-05-30 超聚变数字技术有限公司 Fault log recording method, system method and device
CN116185915A (en) * 2023-04-21 2023-05-30 山东云海国创云计算装备产业创新中心有限公司 Bus scheduling method, device and equipment, medium and baseboard management control chip
CN116185915B (en) * 2023-04-21 2023-08-04 山东云海国创云计算装备产业创新中心有限公司 Bus scheduling method, device and equipment, medium and baseboard management control chip

Also Published As

Publication number Publication date
CN113687944B (en) 2024-07-26

Similar Documents

Publication Publication Date Title
CN113687944A (en) Task execution method, device, equipment and medium for baseboard management control chip
US8560686B2 (en) Communicating with an in-band management application through an out-of-band communications channel
CN113342590B (en) NVMe device debugging function implementation method, device, equipment and storage medium
US20150058848A1 (en) Encapsulation of an application for virtualization
US20180113732A1 (en) Back-pressure in virtual machine interface
US8166349B2 (en) Communicating with USB devices after a computer system crash
KR102331926B1 (en) Operation method of host system including storage device and operation method of storage device controller
US20200156422A1 (en) Upgrading method and apparatus for tire pressure monitoring module and tire pressure sensor
CN113076233B (en) IO performance detection method, device, equipment and storage medium
CN113434467B (en) Network file transmission method, device and computer readable storage medium
CN113849238A (en) Data communication method, apparatus, electronic device, and readable storage medium
CN113687779A (en) Data migration method and device, electronic equipment and readable storage medium
US9384525B2 (en) Systems and methods for providing pre-operating system and post-operating system remote management of information handling system
CN109800202B (en) PCIE (peripheral component interface express) -based data transmission system, method and device
CN112199642B (en) Detection method for anti-debugging of android system, mobile terminal and storage medium
CN117116332A (en) A multi-bit error processing method, device, server and storage medium
CN120354956B (en) Model reasoning acceleration method, device, storage medium and program product
CN114791780A (en) Display screen touch control method, device, equipment and storage medium
CN118409712B (en) RAID card management system, method, equipment, product and medium
CN109582379A (en) Programmable logic controller system, control method based on Mach
US12541473B2 (en) Method and system for implementing vehicle bus virtual channel
WO2015195076A1 (en) Cache coherency for direct memory access operations
CN114327624A (en) Substrate management controller remote monitoring method, device, electronic equipment and medium
CN115756322A (en) Data storage method and device, electronic equipment and storage medium
RU2846174C1 (en) Method and system for implementation of vehicle bus virtual channel

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