Data acceleration processing method and device, chip, equipment and readable storage medium

By selecting an idle engine from multiple data acceleration processing engines in the processor chip to perform data processing tasks, the problem of large CPU resource usage and low efficiency is solved, and efficient data movement and processing are achieved.

CN118642828APending Publication Date: 2024-09-13SHENZHEN JAGUAR MICROSYSTEMS CO LTD
View PDF 0 Cites 6 Cited by

Patent Information

Application Number
CN202411013618.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

In the existing technology, when data is moved in the processor chip, a large amount of resources need to be occupied by the CPU, resulting in low efficiency and possible interruptions, resulting in a large data movement delay.

Method used

By selecting an idle engine from multiple data acceleration processing engines, the data processing task is directly executed, avoiding CPU instruction processing, and the queue manager and descriptor cache acquisition unit are used for task scheduling and data movement.

Benefits of technology

It saves CPU resource overhead, improves data migration efficiency, realizes efficient data processing and migration, and is versatile.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118642828A
    Figure CN118642828A
Patent Text Reader

Abstract

The invention relates to a data acceleration processing method and device, a chip, equipment and a readable storage medium. The method comprises the steps that a trigger message of a data processing task is received, the trigger message comprises pointer information of a queue, the pointer information of the queue is address information of the queue in a memory, and the queue is used for storing a task descriptor of the data processing task; pointer information of the queue is updated to a queue manager so that a queue scheduler can conduct scheduling; when the queue is selected by the queue scheduler, pointer information of the queue is transmitted to a descriptor cache acquisition unit to inform the descriptor cache acquisition unit to acquire a task descriptor of the data processing task from the memory; and selecting an idle engine from a plurality of same data acceleration processing engines as a target engine, and executing the data processing task through the target engine according to the task descriptor. By adopting the method, the resource overhead can be saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of chip technology, and in particular to a data acceleration processing method, device, chip, equipment and readable storage medium. Background Art

[0002] With the development of chip technology, the amount of data processed by processor chips continues to increase. Correspondingly, it is becoming increasingly important to move data between different devices through processor chips.

[0003] In the related art, a processor chip handles data movement between different devices, which usually requires a central processing unit (CPU) to first move the data from the memory of the device being moved out to a general register, and then move the data from the general register to the memory of the device being moved in.

[0004] However, this data movement method requires moving the data into a general register first and then out of the general register, which takes up a large amount of CPU resources. In addition, the CPU may interrupt the current data movement task to execute a higher priority task, resulting in a large data movement delay. Therefore, the data movement method of the related technology has a large CPU resource overhead and low efficiency. Summary of the invention

[0005] The present application provides a data acceleration processing method, device, chip, equipment and readable storage medium that can save CPU resource overhead and improve efficiency.

[0006] In a first aspect, the present application provides a data acceleration processing method, comprising:

[0007] Receive a trigger message of a data processing task, wherein the trigger message includes pointer information of a queue, wherein the pointer information of the queue is address information of the queue in a memory, and the queue is used to store a task descriptor of the data processing task;

[0008] Updating the pointer information of the queue to the queue manager for scheduling by the queue scheduler;

[0009] When the queue is selected by the queue scheduler, the pointer information of the queue is passed to the descriptor cache acquisition unit to notify the descriptor cache acquisition unit to acquire the task descriptor of the data processing task from the memory;

[0010] An idle engine is selected from a plurality of identical data acceleration processing engines as a target engine, and the data processing task is executed according to the task descriptor by the target engine.

[0011] In one embodiment, the data acceleration processing engine includes a descriptor parsing unit, a state machine unit reading data load unit and a data calculation processing unit, and the target engine executes the data processing task according to the task descriptor, including:

[0012] Parsing the task descriptor by a descriptor parsing unit to determine a data structure of the task descriptor;

[0013] Obtaining a target field from the data structure of the task descriptor through a descriptor parsing unit, and encapsulating the target field into a state machine instruction, and sending it to a state machine unit;

[0014] The state machine unit controls the state machine to switch between different states according to the instruction type of the state machine instruction, so as to notify the data reading load unit or the data calculation processing unit to execute the data processing task.

[0015] In one embodiment, the state of the state machine includes an idle state, a read / write control state, and a write-back state; the idle state is a state in which the data processing task is not executed;

[0016] The notifying the read data load unit or the data calculation processing unit to perform the data processing task includes:

[0017] When the state machine is in the read-write control state, the read data load unit or the data calculation processing unit is notified by the state machine unit to execute the data processing task;

[0018] When the state machine is in the write-back state, the state machine unit sends a task completion unit or an interrupt message corresponding to the data processing task to the queue manager according to the write-back control information.

[0019] In one embodiment, the control state machine switches between different states, including:

[0020] If the state machine unit receives the state machine instruction, the state machine is switched from the idle state to the read-write control state by the state machine unit;

[0021] If the read data load unit or the data calculation processing unit completes the data processing task, the state machine is switched from the read-write control state to the write-back state through the state machine unit;

[0022] If the target engine receives a feedback message corresponding to the task completion unit or the interrupt message, the state machine unit switches the state machine from the write-back state to the idle state.

[0023] In one of the embodiments, the read data load unit is used to notify the direct memory access unit to carry out data transfer according to the read data request information when the state machine is in the read-write control state, so as to perform the data processing task;

[0024] The data calculation processing unit is used to perform the data calculation operation in the data processing task through the arithmetic logic component according to the calculation request information when the state machine is in the read-write control state; and to notify the direct memory access unit to carry out data movement through the write data processing component according to the write data request information to execute the data processing task.

[0025] In one of the embodiments, the task descriptor includes an operation field, and the operation field is used to indicate at least one data processing operation in the data processing task.

[0026] In one embodiment, the queue manager and the data acceleration processing engine respectively maintain a reversal indication information, and the method further includes:

[0027] The queue manager marks the task descriptor with reversal indication information, and sends the task descriptor marked with the reversal indication information to the target engine;

[0028] If the reversal indication information marked in the received task descriptor is the same as the reversal indication information maintained by the data acceleration processing engine, the target engine executes the data processing task according to the task descriptor; after the data processing task is completed, the target engine generates a task completion unit and sends the task completion unit back to the queue manager; the queue manager updates the task completion unit to the task completion queue;

[0029] If the reversal indication information marked in the received task descriptor is different from the reversal indication information maintained by the data acceleration processing engine, the target engine abandons executing the data processing task, generates a task completion unit, and sends the task completion unit back to the queue manager; the queue manager does not update the task completion unit in the task completion queue.

[0030] In one of the embodiments, if the received reversal indication information marked in the task descriptor is the same as the reversal indication information maintained by the data acceleration processing engine, the method further includes:

[0031] If it is identified that the received task descriptor carries a fence identifier, and there are other in-transit task descriptors in the current queue that have not been processed by the data acceleration processing engine, the target engine inverts the reversal indication information maintained by the data acceleration processing engine; the target engine generates a rollback request and sends the rollback request to the queue manager, the rollback request is used to instruct the queue manager to stop scheduling the current queue, and the rollback request includes the address information of the task descriptor carrying the fence identifier; the queue manager waits for the data acceleration processing engine to complete processing of the other in-transit task descriptors, and then restarts scheduling the current queue from the task descriptor carrying the fence identifier;

[0032] If it is identified that the received task descriptor carries a fence identifier, and there are no other in-transit task descriptors in the current queue that have not been processed by the data acceleration processing engine, the target engine executes the data processing task according to the received task descriptor; after executing the task, the target engine generates a task completion unit and sends the task completion unit back to the queue manager; the queue manager updates the task completion unit to the task completion queue.

[0033] In one embodiment, the data processing task includes a batch processing task, the batch processing task includes a plurality of subtasks, the batch processing task includes message tail indication information, and the message tail indication information is used to indicate the last subtask in the batch processing task;

[0034] The task completion unit corresponding to the batch processing task is triggered after the last subtask is executed.

[0035] In one embodiment, the task descriptor includes at least one of the following information:

[0036] The source address of the task data, the destination address of the task data, the operator of the task data, and the data volume of the task data.

[0037] In a second aspect, the present application provides a data acceleration processing device, including:

[0038] A queue management module, used for receiving a trigger message of a data processing task, wherein the trigger message includes pointer information of a queue, the pointer information of the queue is address information of the queue in a memory, and the queue is used to store a task descriptor of the data processing task; updating the pointer information of the queue to a queue manager for scheduling by a queue scheduler; when the queue is selected by the queue scheduler, passing the pointer information of the queue to a descriptor cache acquisition unit, so as to notify the descriptor cache acquisition unit to acquire the task descriptor of the data processing task from a memory;

[0039] The data processing acceleration module is used to select an idle engine from a plurality of identical data acceleration processing engines as a target engine, and execute the data processing task according to the task descriptor through the target engine.

[0040] In a third aspect, the present application further provides a chip including a memory and a processor, wherein the memory stores a computer program, and the processor implements the data acceleration processing method of the first aspect when executing the computer program.

[0041] In a fourth aspect, the present application further provides a network interface card, the network interface card comprising the chip provided in the third aspect and a plurality of interfaces, the chip communicating externally through the interfaces.

[0042] In a fifth aspect, the present application also provides a computer device, comprising a processor and the network interface card provided in the fourth aspect, wherein the network interface card is used to dispatch messages to the processor or the network interface card itself for processing, and the processor is used to process the messages dispatched by the network interface card.

[0043] In a sixth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the data acceleration processing method of the first aspect described above is implemented.

[0044] In a seventh aspect, the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the data acceleration processing method of the first aspect mentioned above.

[0045] The above-mentioned data acceleration processing method, device, chip, equipment and readable storage medium first receive a trigger message of a data processing task, the trigger message includes the pointer information of the queue, the pointer information of the queue is the address information of the queue in the memory, and the queue is used to store the task descriptor of the data processing task. Secondly, the pointer information of the queue is updated to the queue manager for scheduling by the queue scheduler. Again, when the queue is selected by the queue scheduler, the pointer information of the queue is passed to the descriptor cache acquisition unit to notify the descriptor cache acquisition unit to obtain the task descriptor of the data processing task from the memory. Finally, an idle engine is selected as the target engine from multiple identical data acceleration processing engines, and the data processing task is executed according to the task descriptor by the target engine. Since an idle target engine can be directly selected from multiple identical data acceleration processing engines to process the task descriptor of the data processing task issued by the system software, the data processing can be completed by relying on the data acceleration processing engine hardware itself, without the need for CPU instruction processing, so that the data acceleration processing method provided by the present application has low CPU resource overhead, high efficiency, and versatility. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0047] Figure 1 A schematic diagram of the structure of a SDAE provided in an embodiment of the present application;

[0048] Figure 2 A flowchart of a data acceleration processing method provided in an embodiment of the present application;

[0049] Figure 3 A state transition diagram of an acceleration engine provided in an embodiment of the present application;

[0050] Figure 4 A flowchart of another data acceleration processing method provided in an embodiment of the present application;

[0051] Figure 5 A flowchart of another data acceleration processing method provided in an embodiment of the present application;

[0052] Figure 6 A structural block diagram of a data acceleration processing device provided in an embodiment of the present application;

[0053] Figure 7An internal structure diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0055] First, the related technology will be described below.

[0056] With the development of chip technology, the amount of data processed by processor chips continues to increase. Correspondingly, it is becoming increasingly important to move data between different devices through processor chips.

[0057] In the related art, the processor chip handles the data movement between different devices, usually through the central processing unit (CPU) to first move the data from the memory of the device being moved out to the general register, and then move the data from the general register to the memory of the device being moved in. For example, to move data from memory A to memory B, the CPU needs to first move the data from memory A to the general register, and then move the data from the general register to memory B.

[0058] However, this data movement method requires moving the data into a general register and then out of the general register, which takes up a large amount of CPU resources. In addition, the CPU may interrupt the current data movement task to execute a higher priority task, resulting in a large data movement delay. Therefore, the data movement method of the related technology has a large CPU resource overhead and low efficiency.

[0059] In addition, the processor chip can also handle data movement between different devices through direct memory access (DMA). DMA is usually used to move memory. DMA operations can operate the bus and move data directly from memory A to memory B without occupying CPU resources. Moreover, as long as DMA starts to execute the data movement task, it will not be interrupted. Therefore, compared with the method of moving data through the CPU, the method of moving data through DMA has lower CPU resource overhead and higher efficiency.

[0060] However, currently DMA operations generally only complete data movement, and are usually provided separately based on a certain device or a certain service. That is, each device requires independent DMA operation logic, and it is a single-function DMA operation. For example, a single-channel big data upload and download scenario performed by a certain device or a certain service is not universal.

[0061] To solve the above problems, the embodiments of the present application provide a data acceleration processing method, device, chip, equipment and readable storage medium. Since an idle target engine can be directly selected from multiple identical data acceleration processing engines to process the task descriptor of the data processing task issued by the system software, the data processing can be completed by the data acceleration processing engine hardware itself without CPU instruction processing, so that the data acceleration processing method provided by the present application has low CPU resource overhead, high efficiency and universality.

[0062] The data acceleration processing method provided in the embodiment of the present application can be applied to a chip or a smart data acceleration engine (SDAE) on a chip.

[0063] Among them, SDAE can be a new generation of input and output local bus standard (Peripheral Component Interconnect Express, PCIe) device for the central processing unit (CPU) in the server. SDAE can be a hardware module based on an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC). SDAE can be used as a stateless accelerator, that is, there is no correlation between the tasks processed by SDAE. The stateless accelerator can provide a throughput far greater than the actual requirements of the CPU, ensuring the efficiency and timeliness of the task. In addition, SDAE can also provide flexible data movement and computing services for the system, including cyclic redundancy check (CRC), cumulative check (CheckSum) calculation, AI full reduction algorithm (allreduce) operation, T10 generation, deletion, update and other operations, as well as data backup, duplicate checking, deletion and other operations. It should be noted that the system in the embodiment of the present application can be an operating system on a server or chip, and the operating system can be run on the server and the operating system can also be run on the chip.

[0064] In this application, SDAE provides a programmable data movement and processing method for the CPU: by sending Doorbell through the system software, it carries programmable data processing information such as data movement and calculation commands that need to be completed, and the hardware SDAE completes data processing tasks such as priority scheduling, data movement, simple data processing and calculation, so as to provide a public or general programmable data acceleration channel for various system applications in the upper layer of the system, while releasing the CPU's workload and providing sufficient flexibility for the CPU. It should be noted that in this application, software can refer to an operating system, or a computer program running on an operating system.

[0065] Among them, the above-mentioned system applications may include single root input and output virtualization (SRIOV) applications, scalable input and output virtualization (SIOV) applications, network processing applications, storage applications, memory initialization applications, security management applications, etc.

[0066] Figure 1 A schematic diagram of the structure of a SDAE provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, SDAE may include a queue manager (Queue Management, QM) module, a host-oriented direct memory access (HOST DMA, HDMA) module, and a data processing state machine (Data Process FSM (Finite State Machine, DPF) module.

[0067] Among them, the QM module can complete queue management, priority-based Class of Service (COS) scheduling, and read task descriptors. The HDMA module can complete DMA read and write requests from different sources. The DPF module can include multiple identical data acceleration processing engines. The data acceleration processing engine obtains the task descriptor from the QM module, obtains data information through DMA operations according to the operator type in the task descriptor, and the data acceleration processing engine executes the corresponding related instructions.

[0068] In this application, through SDAE, only one SDAE general DMA channel is needed to realize the DMA migration work between other devices. Compared with the related art that each device requires independent DMA operation logic and is a single-function DMA, SDAE is equivalent to a general DMA device, which saves CPU resource overhead, improves efficiency and has versatility.

[0069] In an exemplary embodiment, Figure 2 As shown, the embodiment of the present application provides a data acceleration processing method, which is applied to Figure 1 The SDAE in FIG. 1 is used as an example to illustrate the method, which includes the following steps S201 to S204.

[0070] S201. Receive a trigger message for a data processing task.

[0071] It should be understood that the embodiments of the present application do not limit the above-mentioned trigger message. In some embodiments, the above-mentioned trigger message may include a doorbell message. When a data processing task needs to be executed, the software can send the doorbell message to the SDAE through the CPU.

[0072] The trigger message includes the pointer information of the queue, which is the address information of the queue in the memory, and the queue is used to store the task descriptor of the data processing task. The queue can be a send queue or a submission queue (SendQueue, SQ), which is not limited in the embodiment of the present application.

[0073] Exemplarily, the task descriptor may be stored in the memory in the form of a submission queue so that the SDAE can subsequently obtain it from the memory. Accordingly, the address information of the submission queue in the memory may be indicated by the queue pointer information.

[0074] In some embodiments, when generating a data processing task, the software (e.g., an application) can fill in a task descriptor through the CPU and save the task descriptor to a memory, which can be a double data rate (DDR) memory. The memory can be set in a server or a chip.

[0075] It should be noted that the above queue pointer information can be updated in real time. Accordingly, the queue pointer information included in the trigger message can be the current latest queue pointer information.

[0076] It should be understood that the embodiments of the present application do not limit the above-mentioned task descriptors. In some embodiments, the task descriptor includes at least one of the following information: the source address of the task data, the destination address of the task data, the operator of the task data, and the data volume of the task data.

[0077] The operator may be an operation field segment and is used to indicate at least one data processing operation in a data processing task.

[0078] Exemplarily, the DPF module in SDAE can determine at least one data processing operation in the data processing task according to the operation field in the task descriptor. Exemplarily, the data processing operation may include data movement, cyclic redundancy check (CRC), cumulative check (CheckSum) calculation, AI allreduce operation, T10 generation, T10 deletion, T10 update and other operations, as well as data backup, duplicate checking, deletion and other operations.

[0079] S202: Update the queue pointer information to the queue manager for scheduling by the queue scheduler.

[0080] In this step, after SDAE receives the trigger message of the data processing task sent by the software, it can update the pointer information of the queue to the queue manager for scheduling by the queue scheduler.

[0081] In some embodiments, before scheduling a queue, the queue scheduler may determine whether a queue pointer is offset by comparing the queue pointer in the trigger message with the queue pointer in the queue manager.

[0082] Further, if there is no offset between the queue pointer in the trigger message and the queue pointer in the queue manager, it can be determined that the queue corresponding to the queue pointer in the trigger message is an empty queue. If there is an offset between the queue pointer in the trigger message and the queue pointer in the queue manager, it can be determined that the queue corresponding to the queue pointer in the trigger message is a non-empty queue.

[0083] It should be noted that, in this application, if the queue is empty, the queue scheduler cannot schedule the empty queue. If the queue is not empty, the queue scheduler can schedule the empty queue.

[0084] S203: When the queue is selected by the queue scheduler, the pointer information of the queue is passed to the descriptor cache acquisition unit to notify the descriptor cache acquisition unit to obtain the task descriptor of the data processing task from the memory.

[0085] In this step, after the pointer information of the queue is updated to the queue manager, the queue scheduler can select one of the queues. The queue manager can manage multiple queues. When a queue is selected by the queue scheduler, the pointer information of the queue is passed to the descriptor cache acquisition unit to notify the descriptor cache acquisition unit to obtain the task descriptor of the data processing task from the memory.

[0086] Exemplarily, the QM module of SDAE may include a queue scheduler (QSCH) and a buffer descriptor fetcher (BDF) unit. The QSCH may schedule and select a submission queue from a non-empty queue based on a scheduling rule. The QSCH may send information of the selected submission queue to the BDF unit. Subsequently, the BDF unit locates the submission queue where the task descriptor is located in the memory based on the information of the submission queue, and extracts the task descriptor of the data processing task from it.

[0087] It should be understood that the embodiments of the present application do not limit the scheduling rules of the QSCH device. In some embodiments, the scheduling rules of the QSCH device may be scheduling rules corresponding to scheduling based on the class of service (CoS) of the data processing task.

[0088] S204: Select an idle engine from a plurality of identical data acceleration processing engines as a target engine, and execute the data processing task according to the task descriptor through the target engine.

[0089] In this step, after the descriptor cache acquisition unit obtains the task descriptor of the data processing task from the memory, SDAE can select an idle engine from multiple identical data acceleration processing engines as the target engine, and execute the data processing task according to the task descriptor through the target engine.

[0090] It should be understood that the embodiments of the present application do not limit how to select a target engine from multiple identical data acceleration processing engines. In some embodiments, an idle engine can be determined from multiple identical data acceleration processing engines based on status information of the data acceleration processing engines.

[0091] The state information of the data acceleration processing engine is used to indicate whether the data acceleration processing engine is in an engine idle state or an engine occupied state. The same data acceleration processing engine may mean that each data acceleration processing engine is a homogeneous component, that is, at least includes the same components. The target engine may be the data acceleration processing engine that processes the task descriptor.

[0092] Exemplarily, the DPF module can determine a data acceleration processing engine in an engine idle state from multiple data acceleration processing engines according to the engine status information. Subsequently, the DPF module performs polling scheduling among all data acceleration processing engines in an engine idle state, selects one of the data acceleration processing engines in an engine idle state as the target engine, and allocates the task descriptor in the task submission unit (Submitted queue entry, SQE) of the submission queue to the target engine.

[0093] Exemplarily, each data acceleration processing engine includes engine status information (engine busy bitmap). The engine busy bitmap can indicate different engine states by setting the corresponding bit mark to 1 or 0. If the corresponding bit mark of the engine busy bitmap is 1, it indicates that the data acceleration processing engine is in the engine occupied state. If the corresponding bit mark of the engine busy bitmap is 0, it indicates that the data acceleration processing engine is in the engine idle state.

[0094] For example, after the task descriptor is assigned to the target engine, the engine busy bitmap corresponding to the target engine can be marked as 1, indicating that it is occupied. After the task descriptor of the target engine is processed, the corresponding bit of the engine busy bitmap can be marked as 0, indicating that it is idle and available for scheduling.

[0095] In some embodiments, after selecting the target engine, the DPF module may send a resource application request to two storage resource pools, where the resource application request is used to request storage entries from the two storage resource pools respectively.

[0096] For example, two static random access memories (SRAMs) can be used as two storage resource pools for the cache, so that the storage entries can be dynamically managed and scheduled through the two storage resource pools and the corresponding storage entry allocators. Before any data acceleration processing engine needs to perform DMA transfer, it can apply for storage entries from the storage entry allocator. When allocating entries, the storage entry allocator can interleave the entries of the two storage resource pools to the greatest extent. For example, each time an application is made, half of the entries are allocated from each of the two storage resource pools.

[0097] It should be noted that the storage entry allocator needs to handle the odd number of entry requests and the instantaneous asymmetry of the resources in the two storage resource pools when allocating storage entries. When the SQE processing in the engine is completed and the entry is not needed or is not needed temporarily, the storage entry allocator can also release the entry back to the two storage resource pools.

[0098] It should be understood that the embodiments of the present application do not limit how to execute data processing tasks through the target engine according to the task descriptor. In some embodiments, each data acceleration processing engine can include a descriptor parsing (DescriptorDecode, DSD) unit, a state machine (Finite State Machine, FSM) unit, a read data payload (Read DataPayload, RDP) unit and a data compute processing (Data Compute Process) unit.

[0099] In some embodiments, the task descriptor can be parsed by the descriptor parsing unit, the data structure of the task descriptor can be determined, the target field can be obtained from the data structure of the task descriptor, and the target field can be encapsulated into a state machine instruction and sent to the state machine unit. The state machine unit can control the state machine to switch between different states according to the instruction type of the state machine instruction to notify the read data load unit or the data calculation processing unit to perform the data processing task.

[0100] Exemplarily, the DSD unit can complete the parsing of the task descriptor, parse the data structure of the task descriptor, perform preprocessing of the task descriptor, extract the valid target field of the task descriptor and encapsulate it into a very long instruction word (VLIW) instruction word for FSM operation, and then send the VLIW instruction word to the FSM. Exemplarily, the FSM unit can determine the VLIW instruction type based on the VLIW instruction word, and then control the state machine to switch between different states according to the VLIW instruction type.

[0101] In some embodiments, the states of the state machine include an idle (IDLE) state, a read-write control (RWC) state, and a write-back (CMW) state.

[0102] The idle state is a state where no data processing task is executed. When the state machine is in the read-write control state, the state machine unit can notify the read data load unit or the data calculation processing unit to execute the data processing task; when the state machine is in the write-back state, the state machine unit can send the task completion unit (Completion Queue Entry, CQE) or interrupt message corresponding to the data processing task to the queue manager according to the write-back control information.

[0103] Exemplarily, after the DPF module performs data processing tasks, completes the movement and calculation, and receives responses to all write-back data, the state machine unit can also write back the CQE to the QM module. After receiving the CQE, the QM module can determine whether to send an interrupt message based on the CQE information. If necessary, the interrupt message is sent to the application to notify the application to read the CQE.

[0104] Figure 3 A state transition diagram of a data acceleration processing engine provided in an embodiment of the present application. Figure 3 As shown, if the state machine unit receives a state machine instruction, the state machine is switched from the idle state to the read-write control state through the state machine unit. If the read data load unit or the data calculation processing unit completes the data processing task, the state machine is switched from the read-write control state to the write-back state through the state machine unit. If the target engine receives a feedback message corresponding to the task completion unit or the interrupt message, the state machine is switched from the write-back state to the idle state through the state machine unit.

[0105] Exemplarily, the IDLE state is the initial state of the state machine, which is a state in which no data processing task is executed. After receiving the VLIW, the state machine first jumps from the IDLE state to the RWC state. In the RWC state, the state machine unit will call the RDP unit and the DCP unit according to the read and write request information and the calculation request information to complete the corresponding data reading, calculation, write-back and other functions. In addition, the state machine unit can control the state machine to jump from the RWC state to the CMW state after the data processing task is completed. In the CMW state, the state machine unit can issue a write-back CQE and a message signaled interrupt (MSI) request to the QM module, and control the state machine to jump from the CMW state to the IDLE state after the QM module updates the CQE to the completion queue manager (CQM) and generates a feedback message.

[0106] In some embodiments, the read data load unit is used to notify the direct memory access unit to carry out data transfer according to the read data request information when the state machine is in the read-write control state, so as to perform the data processing task. The data calculation processing unit is used to perform the data calculation operation in the data processing task through the arithmetic and logic unit (ALU) component according to the calculation request information when the state machine is in the read-write control state, and the data calculation processing unit is also used to notify the direct memory access unit to carry out data transfer according to the write data request information through the write data process (WDP) component to perform the data processing task.

[0107] It should be noted that, from the perspective of hardware implementation, different data processing operations can be normalized and executed in the assigned target engine. Different operations call the ALU components or WDP components in different DCP units to implement corresponding functions, thereby making the data acceleration processing engine universal.

[0108] In some embodiments, the queue manager and the data acceleration processing engine respectively maintain a reversal indication information. The queue manager marks the task descriptor with the reversal indication information and sends the task descriptor marked with the reversal indication information to the target engine.

[0109] In some embodiments, the reversal indication information marked in the task descriptor received by the target engine may be the same as the reversal indication information maintained by the data acceleration processing engine, or may be different from the reversal indication information maintained by the data acceleration processing engine.

[0110] If the reversal indication information marked in the received task descriptor is the same as the reversal indication information maintained by the data acceleration processing engine, the target engine executes the data processing task according to the task descriptor. After the data processing task is completed, the target engine generates a task completion unit CQE and sends the task completion unit CQE back to the queue manager. The queue manager updates the task completion unit CQE to the task completion queue (CQ).

[0111] If the reversal indication information marked in the received task descriptor is different from the reversal indication information maintained by the data acceleration processing engine, the target engine abandons executing the data processing task, generates a task completion unit CQE, and sends the task completion unit CQE back to the queue manager; the queue manager does not update the task completion unit CQE in the task completion queue CQ.

[0112] Wherein, the above-mentioned reversal indication information can be a pre-set signal (for example, rb_toggle_flg). Exemplarily, when the QM module sends the task descriptor to the DPF module, it needs to mark the task descriptor with the reversal indication information. Exemplarily, the value of the initial mark of the reversal indication information can be 0, and the value of the reversal indication information mark can be changed from 0 to 1 when flipping, or, the value of the reversal indication information mark can be changed from 1 to 0 when flipping. It should be noted that, initially, the values ​​of the initial marks of the reversal indication information maintained by the queue manager and the data acceleration processing engine are the same.

[0113] The following describes how to process data processing tasks and schedule the current queue based on the fence identifier when the inversion indication information marked in the received task descriptor is the same as the inversion indication information maintained by the data acceleration processing engine.

[0114] In some embodiments, if it is identified that the received task descriptor carries a fence identifier, and there are other in-transit task descriptors in the current queue that have not been processed by the data acceleration processing engine, the target engine inverts the reversal indication information maintained by the data acceleration processing engine. Subsequently, the target engine generates a rollback request and sends the rollback request to the queue manager. Finally, the queue manager waits for the data acceleration processing engine to process other in-transit task descriptors, and then restarts scheduling the current queue from the task descriptor carrying the fence identifier.

[0115] The rollback request is used to instruct the queue manager to stop scheduling the current queue, and the rollback request includes address information of a task descriptor carrying a fence identifier.

[0116] In other embodiments, if it is identified that the received task descriptor carries a fence identifier, and there are no other in-transit task descriptors in the current queue that have not been processed by the data acceleration processing engine, the target engine executes the data processing task according to the received task descriptor. Subsequently, after executing the task, the target engine generates a task completion unit and sends the task completion unit back to the queue manager. Finally, the queue manager updates the task completion unit to the task completion queue.

[0117] Among them, other in-transit task descriptors refer to: among the task descriptors that have been scheduled out of the current queue and sent to the data acceleration processing engine for processing, except for the task descriptors with fence identifiers, the remaining task descriptors that have not been processed by the data acceleration processing engine.

[0118] Among them, the above-mentioned fence identifier is used to constrain the execution order of the task descriptors issued by the software, and to isolate the task descriptors or data processing tasks that are executed first and later. The task descriptor that is executed first cannot be executed after the task descriptor that is executed later is executed, and the task descriptor that is executed later cannot be executed before the task descriptor that is executed first.

[0119] For example, if it is identified that the received task descriptor carries a fence identifier, and there are other in-flight task descriptors in the current queue that have not been processed by the data acceleration processing engine (i.e., there are inflight SQEs), the target engine will invert the reversal indication information maintained by the data acceleration processing engine, generate a rollback request, and send the rollback request to the queue manager. After the queue manager waits for the data acceleration processing engine to process other in-flight task descriptors, it uses a pointer rollback method to restart scheduling the current queue from the task descriptor carrying the fence identifier.

[0120] For example, if it is identified that the received task descriptor carries a fence identifier, and there are no other in-flight task descriptors in the current queue that have not been processed by the data acceleration processing engine (that is, there is no inflight SQE), the target engine processes according to the normal process, that is, the target engine executes the data processing task according to the received task descriptor. After executing the data processing task, the target engine generates a task completion unit CQE and sends the task completion unit CQE back to the queue manager. The queue manager updates the task completion unit CQE to the task completion queue.

[0121] In the present application, since the target engine can determine the order of data processing tasks and whether to roll back based on whether the task descriptor carries a fence identifier and whether there are other in-transit task descriptors in the current queue that have not been processed by the data acceleration processing engine, the disorder of multiple channels in parallel during data movement can be solved within a certain range. When the software has no order preservation requirements for the data, the fence identifier can be used for order preservation, thereby supporting more concurrency to improve performance.

[0122] In some embodiments, the data processing task includes a batch processing task, the batch processing task includes multiple subtasks, the batch processing task includes message tail indication information, and the message tail indication information is used to indicate the last subtask in the batch processing task. The task completion unit corresponding to the batch processing task can be triggered after the last subtask is executed.

[0123] Exemplarily, the above data processing tasks include batch tasks, which are continuously stored in SQ. The batch task also provides End Of Packet (EOP) indication information to mark the last subtask of the batch task. Accordingly, QM can only write back the CQE of the batch task after processing all subtasks.

[0124] For example, different subtasks of a batch task have no sequential relationship and can be distributed in parallel to different data acceleration processing engines for processing.

[0125] In some embodiments, similar to non-batch tasks, the QM module in the embodiments of the present application will not read all subtasks of the batch task continuously. If the task descriptors corresponding to the subtasks of the batch task also carry fence identifiers, when reading the subtasks of the batch task, the order relationship of the subtasks can also be determined according to the fence identifiers carried by the task descriptors corresponding to the subtasks of the batch task.

[0126] In some embodiments, in order to enable the data acceleration processing engine to support batch tasks without the need for additional logical algorithms, the SQE corresponding to the last subtask of the batch task can be set to a no operation instruction (No operation, NOP), and indicate the generation of the corresponding CQE. At the same time, the fence flag can also be set to be valid, and the task descriptors corresponding to each subtask of the batch task can carry the fence flag, so that each subtask is executed in sequence. In this application, since the data acceleration processing engine of SDAE can support batch tasks, it supports centralized data collection within a specific range, and divides the centralized collected data into multiple subtasks for reporting through batch tasks, thereby reducing the CPU load.

[0127] In addition, the data acceleration processing method provided in the embodiment of the present application greatly improves the performance of data migration (for example, a data migration can be completed in only 16 cycles), which exceeds the performance requirements of the CPU, thereby meeting the CPU's requirements for data migration.

[0128] The data acceleration processing method provided by the embodiment of the present application first receives a trigger message of a data processing task, wherein the trigger message includes pointer information of a queue, and the pointer information of the queue is the address information of the queue in the memory, and the queue is used to store the task descriptor of the data processing task. Secondly, the pointer information of the queue is updated to the queue manager for scheduling by the queue scheduler. Again, when the queue is selected by the queue scheduler, the pointer information of the queue is passed to the descriptor cache acquisition unit to notify the descriptor cache acquisition unit to obtain the task descriptor of the data processing task from the memory. Finally, an idle engine is selected as a target engine from a plurality of identical data acceleration processing engines, and the data processing task is executed according to the task descriptor by the target engine. Since an idle target engine can be directly selected from a plurality of identical data acceleration processing engines to process the task descriptor of the data processing task issued by the system software, data processing can be completed by relying on the data acceleration processing engine hardware itself, without the need for CPU instruction processing, so that the data acceleration processing method provided by the present application has low CPU resource overhead, high efficiency, and versatility.

[0129] The following describes how to perform data processing tasks. Figure 4 A flow chart of another data acceleration processing method provided in an embodiment of the present application is shown as follows: Figure 4 As shown, the data acceleration processing method includes steps S301 to S307:

[0130] S301. Receive a trigger message of a data processing task. The trigger message includes pointer information of a queue. The pointer information of the queue is address information of the queue in the memory. The queue is used to store a task descriptor of the data processing task.

[0131] S302: Update the queue pointer information to the queue manager for scheduling by the queue scheduler.

[0132] S303: When the queue is selected by the queue scheduler, the pointer information of the queue is passed to the descriptor cache acquisition unit to notify the descriptor cache acquisition unit to obtain the task descriptor of the data processing task from the memory.

[0133] S304: Select an idle engine from a plurality of identical data acceleration processing engines as a target engine.

[0134] S305 , parsing the task descriptor through a descriptor parsing unit to determine a data structure of the task descriptor.

[0135] S306 . Obtain the target field from the data structure of the task descriptor through the descriptor parsing unit, encapsulate the target field into a state machine instruction, and send it to the state machine unit.

[0136] S307 , controlling the state machine to switch between different states according to the instruction type of the state machine instruction through the state machine unit, so as to notify the data reading load unit or the data calculation processing unit to execute the data processing task.

[0137] The following describes how to process a task descriptor that carries fence information. Figure 5 A flowchart of another data acceleration processing method provided in an embodiment of the present application is shown as follows: Figure 5 As shown, the data acceleration processing method includes steps S401 to S411:

[0138] S401. Receive a trigger message of a data processing task. The trigger message includes pointer information of a queue. The pointer information of the queue is address information of the queue in the memory. The queue is used to store a task descriptor of the data processing task.

[0139] S402: Update the queue pointer information to the queue manager for scheduling by the queue scheduler.

[0140] S403: When the queue is selected by the queue scheduler, the pointer information of the queue is passed to the descriptor cache acquisition unit to notify the descriptor cache acquisition unit to obtain the task descriptor of the data processing task from the memory.

[0141] S404: Determine whether the reversal indication information marked in the task descriptor is the same as the reversal indication information maintained by the data acceleration processing engine.

[0142] If yes, execute S405, if no, execute S409.

[0143] S405: The target engine executes the data processing task according to the task descriptor.

[0144] S406: After the data processing task is completed, the target engine generates a task completion unit.

[0145] S407: Send the task completion unit back to the queue manager.

[0146] S408: The queue manager updates the task completion unit to the task completion queue.

[0147] S409: The target engine abandons the execution of the data processing task and generates a task completion unit.

[0148] S410: The target engine sends the task completion unit back to the queue manager.

[0149] S411. The queue manager does not update the task completion unit in the task completion queue.

[0150] In some embodiments, when the reversal indication information marked in the received task descriptor is the same as the reversal indication information maintained by the data acceleration processing engine, if it is recognized that the received task descriptor carries a fence identifier, and there are other in-transit task descriptors in the current queue that have not been processed by the data acceleration processing engine, the target engine inverts the reversal indication information maintained by the data acceleration processing engine; the target engine generates a rollback request and sends the rollback request to the queue manager, the rollback request is used to instruct the queue manager to stop scheduling the current queue, and the rollback request includes the address information of the task descriptor carrying the fence identifier; the queue manager waits for the data acceleration processing engine to process other in-transit task descriptors, and then restarts scheduling the current queue from the task descriptor carrying the fence identifier.

[0151] If it is recognized that the received task descriptor carries a fence identifier, and there are no other in-transit task descriptors in the current queue that have not been processed by the data acceleration processing engine, the target engine executes the data processing task according to the received task descriptor; after executing the task, the target engine generates a task completion unit and sends the task completion unit back to the queue manager; the queue manager updates the task completion unit to the task completion queue.

[0152] The data acceleration processing method provided by the embodiment of the present application first receives a trigger message of a data processing task, wherein the trigger message includes pointer information of a queue, and the pointer information of the queue is the address information of the queue in the memory, and the queue is used to store the task descriptor of the data processing task. Secondly, the pointer information of the queue is updated to the queue manager for scheduling by the queue scheduler. Again, when the queue is selected by the queue scheduler, the pointer information of the queue is passed to the descriptor cache acquisition unit to notify the descriptor cache acquisition unit to obtain the task descriptor of the data processing task from the memory. Finally, an idle engine is selected as a target engine from a plurality of identical data acceleration processing engines, and the data processing task is executed according to the task descriptor by the target engine. Since an idle target engine can be directly selected from a plurality of identical data acceleration processing engines to process the task descriptor of the data processing task issued by the system software, data processing can be completed by relying on the data acceleration processing engine hardware itself, without the need for CPU instruction processing, so that the data acceleration processing method provided by the present application has low CPU resource overhead, high efficiency, and versatility.

[0153] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0154] Based on the same inventive concept, the embodiment of the present application also provides a data acceleration processing device for implementing the data acceleration processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more data acceleration processing device embodiments provided below can refer to the limitations on the data acceleration processing method above, and will not be repeated here.

[0155] In an exemplary embodiment, Figure 6 As shown, a data acceleration processing device 500 is provided, comprising: a queue management module 501 and a data acceleration processing module 502, wherein:

[0156] The queue management module 501 is used to receive a trigger message of a data processing task, where the trigger message includes pointer information of the queue, which is the address information of the queue in the memory. The queue is used to store the task descriptor of the data processing task; the pointer information of the queue is updated to the queue manager for scheduling by the queue scheduler; when the queue is selected by the queue scheduler, the pointer information of the queue is passed to the descriptor cache acquisition unit to notify the descriptor cache acquisition unit to obtain the task descriptor of the data processing task from the memory.

[0157] The data acceleration processing module 502 is used to select an idle engine from a plurality of identical data acceleration processing engines as a target engine, and execute the data processing task according to the task descriptor through the target engine.

[0158] In one of the embodiments, the data acceleration processing engine includes a descriptor parsing unit, a state machine unit read data load unit or a data calculation processing unit;

[0159] The data acceleration processing module 502 is also used to parse the task descriptor through the descriptor parsing unit to determine the data structure of the task descriptor; obtain the target field from the data structure of the task descriptor through the descriptor parsing unit, and encapsulate the target field into a state machine instruction, and send it to the state machine unit; control the state machine to switch between different states according to the instruction type of the state machine instruction through the state machine unit to notify the read data load unit or the data calculation processing unit to perform the data processing task.

[0160] In one of the embodiments, the states of the state machine include an idle state, a read / write control state, and a write-back state; the idle state is a state in which no data processing task is executed.

[0161] The data acceleration processing module 502 is also used to notify the read data load unit or the data calculation processing unit to perform data processing tasks through the state machine unit when the state machine is in the read-write control state; when the state machine is in the write-back state, the state machine unit sends the task completion unit or interrupt message corresponding to the data processing task to the queue manager according to the write-back control information.

[0162] In one of the embodiments, the data acceleration processing module 502 is also used to switch the state machine from the idle state to the read-write control state through the state machine unit if the state machine unit receives a state machine instruction; if the read data load unit or the data calculation processing unit completes the data processing task, the state machine is switched from the read-write control state to the write-back state through the state machine unit; if the target engine receives a feedback message corresponding to the task completion unit or the interrupt message, the state machine is switched from the write-back state to the idle state through the state machine unit.

[0163] In one of the embodiments, the read data load unit is used to notify the direct memory access unit to carry out data transfer according to the read data request information when the state machine is in the read-write control state, so as to perform the data processing task.

[0164] The data calculation processing unit is used to perform data calculation operations in data processing tasks through the arithmetic logic component according to calculation request information when the state machine is in the read-write control state; and to notify the direct memory access unit to move data through the write data processing component according to write data request information to execute data processing tasks.

[0165] In one of the embodiments, the task descriptor includes an operation field, and the operation field is used to indicate at least one data processing operation in the data processing task.

[0166] In one embodiment, the queue manager and the data acceleration processing engine respectively maintain a reversal indication information.

[0167] The queue management module 501 is further configured to mark the task descriptor with the reversal indication information, and send the task descriptor marked with the reversal indication information to the target engine.

[0168] The data acceleration processing module 502 is also used for, if the reversal indication information marked in the received task descriptor is the same as the reversal indication information maintained by the data acceleration processing engine, the target engine executes the data processing task according to the task descriptor; after the data processing task is completed, the target engine generates a task completion unit and sends the task completion unit back to the queue manager; the queue manager updates the task completion unit to the task completion queue.

[0169] The data acceleration processing module 502 is also used to, if the reversal indication information marked in the received task descriptor is different from the reversal indication information maintained by the data acceleration processing engine, then the target engine abandons the execution of the data processing task, generates a task completion unit, and sends the task completion unit back to the queue manager; the queue manager does not update the task completion unit in the task completion queue.

[0170] In one of the embodiments, if the reversal indication information marked in the received task descriptor is the same as the reversal indication information maintained by the data acceleration processing engine, the data acceleration processing module 502 is also used to, if it is recognized that the received task descriptor carries a fence identifier and there are other in-transit task descriptors in the current queue that have not been processed by the data acceleration processing engine, then the target engine will invert the reversal indication information maintained by the data acceleration processing engine; the target engine generates a rollback request and sends the rollback request to the queue manager, the rollback request is used to instruct the queue manager to stop scheduling the current queue, and the rollback request includes the address information of the task descriptor carrying the fence identifier; the queue manager waits for the data acceleration processing engine to process other in-transit task descriptors, and then restarts scheduling the current queue from the task descriptor carrying the fence identifier.

[0171] The data acceleration processing module 502 is also used to, if it is recognized that the received task descriptor carries a fence identifier, and there are no other in-transit task descriptors in the current queue that have not been processed by the data acceleration processing engine, then the target engine executes the data processing task according to the received task descriptor; after executing the task, the target engine generates a task completion unit and sends the task completion unit back to the queue manager; the queue manager updates the task completion unit to the task completion queue.

[0172] In one of the embodiments, the data processing task includes a batch processing task, the batch processing task includes multiple subtasks, the batch processing task includes message end indication information, and the message end indication information is used to indicate the last subtask in the batch processing task; the task completion unit corresponding to the batch processing task is triggered after the last subtask is executed.

[0173] In one of the embodiments, the task descriptor includes at least one of the following information: a source address of the task data, a destination address of the task data, an operator of the task data, and a data volume of the task data.

[0174] Each module in the above data acceleration processing device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0175] In one embodiment, a computer device is provided, which may be a server. The server is equipped with a network interface card, which includes a chip, and the chip can implement the above data acceleration processing method. The internal structure diagram of the server can be as follows: Figure 7As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection.

[0176] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0177] In an exemplary embodiment, the present application also provides a chip including a memory and a processor, wherein the memory stores a computer program, and the processor implements the above-mentioned data acceleration processing method when executing the computer program.

[0178] In an exemplary embodiment, the present application also provides a network interface card, which includes the above chip and multiple interfaces, such as a PCI / PCIE interface, a network interface, etc. The chip communicates externally through the interface.

[0179] In an exemplary embodiment, the present application also provides a computer device, which includes a processor and the above-mentioned network interface card, the network interface card is used to dispatch messages to the processor or the network interface card itself for processing, and the processor is used to process the messages dispatched by the network interface card.

[0180] In an exemplary embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned data acceleration processing method is implemented.

[0181] In an exemplary embodiment, a computer program product is provided, including a computer program, which implements the above-mentioned data acceleration processing method when executed by a processor.

[0182] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0183] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0184] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A data acceleration processing method, characterized in that: The method comprises: Receive a trigger message of a data processing task, wherein the trigger message includes pointer information of a queue, wherein the pointer information of the queue is address information of the queue in a memory, and the queue is used to store a task descriptor of the data processing task; Updating the pointer information of the queue to the queue manager for scheduling by the queue scheduler; When the queue is selected by the queue scheduler, the pointer information of the queue is passed to the descriptor cache acquisition unit to notify the descriptor cache acquisition unit to acquire the task descriptor of the data processing task from the memory; An idle engine is selected from a plurality of identical data acceleration processing engines as a target engine, and the data processing task is executed according to the task descriptor by the target engine.

2. The method according to claim 1, characterized in that: The data acceleration processing engine includes a descriptor parsing unit, a state machine unit, a data load reading unit and a data calculation processing unit. The target engine executes the data processing task according to the task descriptor, including: Parsing the task descriptor by a descriptor parsing unit to determine a data structure of the task descriptor; Obtaining a target field from the data structure of the task descriptor through a descriptor parsing unit, and encapsulating the target field into a state machine instruction, and sending it to a state machine unit; The state machine unit controls the state machine to switch between different states according to the instruction type of the state machine instruction, so as to notify the data reading load unit or the data calculation processing unit to execute the data processing task.

3. The method according to claim 2, characterized in that The states of the state machine include an idle state, a read-write control state, and a write-back state; the idle state is a state in which the data processing task is not executed; The notifying the read data load unit or the data calculation processing unit to perform the data processing task includes: When the state machine is in the read-write control state, the read data load unit or the data calculation processing unit is notified by the state machine unit to execute the data processing task; When the state machine is in the write-back state, the state machine unit sends a task completion unit or an interrupt message corresponding to the data processing task to the queue manager according to the write-back control information.

4. The method according to claim 3, characterized in that The control state machine switches between different states, including: If the state machine unit receives the state machine instruction, the state machine is switched from the idle state to the read-write control state by the state machine unit; If the read data load unit or the data calculation processing unit completes the data processing task, the state machine is switched from the read-write control state to the write-back state through the state machine unit; If the target engine receives a feedback message corresponding to the task completion unit or the interrupt message, the state machine is switched from the write-back state to the idle state through the state machine unit.

5. The method according to claim 3, characterized in that: The read data load unit is used to notify the direct memory access unit to carry out data transfer according to the read data request information of the state machine unit when the state machine is in the read-write control state, so as to execute the data processing task; The data calculation processing unit is used to perform the data calculation operation in the data processing task through the arithmetic logic component according to the calculation request information of the state machine unit when the state machine is in the read-write control state; and to notify the direct memory access unit to carry out data movement through the write data processing component according to the write data request information of the state machine unit to execute the data processing task.

6. The method according to claim 1, characterized in that The task descriptor includes an operation field segment, and the operation field segment is used to indicate at least one data processing operation in the data processing task.

7. The method according to claim 1, characterized in that The queue manager and the data acceleration processing engine respectively maintain a reversal indication information, and the method further includes: The queue manager marks the task descriptor with reversal indication information, and sends the task descriptor marked with the reversal indication information to the target engine; If the reversal indication information marked in the received task descriptor is the same as the reversal indication information maintained by the data acceleration processing engine, the target engine executes the data processing task according to the task descriptor; after the data processing task is completed, the target engine generates a task completion unit and sends the task completion unit back to the queue manager; the queue manager updates the task completion unit to the task completion queue; If the reversal indication information marked in the received task descriptor is different from the reversal indication information maintained by the data acceleration processing engine, the target engine abandons executing the data processing task, generates a task completion unit, and sends the task completion unit back to the queue manager; the queue manager does not update the task completion unit in the task completion queue.

8. The method according to claim 7, characterized in that If the received reversal indication information marked in the task descriptor is the same as the reversal indication information maintained by the data acceleration processing engine, the method further includes: If it is identified that the received task descriptor carries a fence identifier, and there are other in-transit task descriptors in the current queue that have not been processed by the data acceleration processing engine, the target engine inverts the reversal indication information maintained by the data acceleration processing engine; the target engine generates a rollback request and sends the rollback request to the queue manager, the rollback request is used to instruct the queue manager to stop scheduling the current queue, and the rollback request includes the address information of the task descriptor carrying the fence identifier; the queue manager waits for the data acceleration processing engine to complete processing of the other in-transit task descriptors, and then restarts scheduling the current queue from the task descriptor carrying the fence identifier; If it is identified that the received task descriptor carries a fence identifier, and there are no other in-transit task descriptors in the current queue that have not been processed by the data acceleration processing engine, the target engine executes the data processing task according to the received task descriptor; after executing the task, the target engine generates a task completion unit and sends the task completion unit back to the queue manager; the queue manager updates the task completion unit to the task completion queue.

9. The method according to claim 1, characterized in that: The data processing task includes a batch processing task, the batch processing task includes a plurality of subtasks, the batch processing task includes message tail indication information, and the message tail indication information is used to indicate the last subtask in the batch processing task; The task completion unit corresponding to the batch processing task is triggered after the last subtask is executed.

10. The method according to any one of claims 1 to 9, characterized in that: The task descriptor includes at least one of the following information: The source address of the task data, the destination address of the task data, the operator of the task data, and the data volume of the task data.

11. A data acceleration processing device, characterized in that: The device comprises: A queue management module, used for receiving a trigger message of a data processing task, wherein the trigger message includes pointer information of a queue, the pointer information of the queue is address information of the queue in a memory, and the queue is used to store a task descriptor of the data processing task; updating the pointer information of the queue to a queue manager for scheduling by a queue scheduler; when the queue is selected by the queue scheduler, passing the pointer information of the queue to a descriptor cache acquisition unit, so as to notify the descriptor cache acquisition unit to acquire the task descriptor of the data processing task from a memory; The data processing acceleration module is used to select an idle engine from a plurality of identical data acceleration processing engines as a target engine, and execute the data processing task according to the task descriptor through the target engine.

12. A chip, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and wherein the processor implements the steps of the method according to any one of claims 1 to 10 when executing the computer program.

13. A network interface card, characterized in that: The network interface card comprises the chip as claimed in claim 12 and a plurality of interfaces, and the chip communicates externally through the interfaces.

14. A computer device, characterized in that: The computer device comprises a processor and a network interface card as claimed in claim 13, wherein the network interface card is used to dispatch messages to the processor or the network interface card itself for processing, and the processor is used to process the messages dispatched by the network interface card.

15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.

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

Citation Information

Cited By

  • Accelerator, request processing method and device, network equipment, medium and product

    CN118842844A

  • Computing system, data processing method, equipment, device, medium and program product

    CN119201481A

  • Tensor memory accelerator and tensor memory acceleration method

    CN121143876A

  • Tensor memory accelerator and tensor memory acceleration method

    CN121143876B

  • Server-side device and data processing method based on finite state machine for data processing

    TWI931002B