Data processing module and multi-core processing system of DPU (Data Processing Unit)
By setting the metadata read-only cache area and the metadata write-only cache area in the data processing module, the problem of resource preemption in the existing technology is solved, and resource utilization and data processing efficiency are improved.
Patent Information
- Application Number
- CN202410790149.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-09-17
AI Technical Summary
Existing data processors are prone to resource preemption problems when processing data from multiple signal sources, especially when there is only one cache area, resulting in low resource utilization.
By setting the metadata read-only cache area and the metadata write-only cache area in the data processing module, metadata writing of pending data packets and post-processing metadata writing operations are allowed to be performed at the same time to avoid resource preemption.
It improves resource utilization, avoids resource preemption problems, supports simultaneous execution of multiple operations, and enhances data processing efficiency.
Smart Images

Figure CN118656336A
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a DPU data processing module and a multi-core processing system. Background Art
[0002] With the development of information technology, data processors receive data from multiple signal sources and process and forward the received data. However, when allocating different services, resource preemption may occur due to excessive data from signal sources.
[0003] The resource allocation method in the prior art is mainly to perform resource scheduling by setting up multiple cores in the architecture of the data processor. The entire processor has multiple sets of programmable processing engines, and the processing engines perform flow scheduling according to the calculation of the software to reduce the resource preemption problem caused by the data processor processing data from multiple signal sources.
[0004] However, in existing processing engines, generally only one cache area is used. When multiple operations need to be performed at the same time, the processing operations need to be executed in sequence, which may cause the problem of resource preemption. Summary of the invention
[0005] In view of this, the present application provides a DPU data processing module and a multi-core processing module to solve the technical problem of low resource utilization in the data processing process of traditional solutions.
[0006] In a first aspect, the present application provides a data processing module of a DPU, comprising: a metadata interaction submodule, a metadata read-only cache area, a metadata write-only cache area, a pipeline processing submodule and a program storage submodule; the metadata interaction submodule is used to receive metadata of a data packet sent by an input module of the DPU, and write the metadata into the metadata read-only cache area, wherein the metadata is generated after the input module writes the data packet into a first storage area of the DPU; the pipeline processing submodule is used to process the metadata cached in the metadata read-only cache area according to the processing instructions in the program storage submodule, and write the processed metadata into the metadata write-only cache area; the metadata interaction submodule is used to send the processed metadata to a corresponding first data receiving end.
[0007] Optionally, the data processing module may also include: a data packet interaction submodule, a data packet read-only cache area and a data packet write-only cache area; the data packet interaction submodule is used to obtain at least part of the data packets from the first storage area according to the metadata in the metadata read-only cache area, and write the obtained data packets into the data packet read-only cache area; the pipeline processing submodule is used to process the data packets cached in the data packet read-only cache area according to the processing instructions in the program storage submodule, process the metadata cached in the metadata read-only cache area according to the processed data packets, write the processed data packets into the data packet write-only cache area, and write the processed metadata into the metadata write-only cache area; the data packet interaction submodule is used to send the processed data packets to the first storage area.
[0008] Optionally, the data packet interaction sub-module is used to pull data of the same size as the data packet read-only cache area from at least part of the data packets obtained in the first storage area and write them into the data packet read-only cache area when the size of at least part of the data packets obtained in the first storage area exceeds the size of the data packet read-only cache area; if the size of the remaining data packets is smaller than the size of the data packet read-only cache area, write the remaining data packets into the data packet read-only cache area again.
[0009] Optionally, the data processing module may also include: a configuration table interaction submodule, a table read-only cache area and a table write-only cache area; the pipeline processing submodule is used to construct configuration query information and write it into the table write-only cache area; the configuration table interaction submodule is used to send configuration query instructions to the second storage area of the DPU according to the configuration query information in the table write-only cache area, and write the queried configuration information into the table read-only cache area; the pipeline processing submodule is used to update the processing instructions in the program storage submodule according to the configuration information in the table read-only cache area, and process the data packets cached in the data packet read-only cache area according to the updated processing instructions.
[0010] Optionally, the data processing module may also include: a configuration table interaction submodule, a table read-only cache area and a table write-only cache area; the pipeline processing submodule is used to construct configuration query information and write the configuration query information into the table write-only cache area; the configuration table interaction submodule is used to send a configuration query instruction to the second storage area of the DPU according to the configuration query information in the table write-only cache area, and write the queried configuration information into the table read-only cache area; the pipeline processing submodule is used to update the processing instructions in the program storage submodule according to the configuration information in the table read-only cache area, and process the metadata cached in the metadata read-only cache area according to the updated processing instructions.
[0011] Optionally, the pipeline processing submodule is used to construct configuration table update information based on the metadata, and write the configuration table update information into the table write-only cache area; the configuration table interaction submodule is used to send a configuration table update instruction to the second storage area based on the configuration table update information in the table write-only cache area, so that the second storage area updates the configuration table stored therein according to the configuration table update instruction.
[0012] Optionally, the pipeline processing submodule is used to write the query key value and the configuration query information into the table write-only cache area; the configuration table interaction submodule is used to send a configuration query instruction to the second storage area of the DPU according to the configuration query information and the query key value in the table write-only cache area, and write the queried configuration information into the table read-only cache area.
[0013] Optionally, the data processing module may also include: a register, an arithmetic logic unit and a working cache area; the pipeline processing sub-module is used to write the metadata cached in the metadata read-only cache area into the working cache area through the register, execute the processing instruction according to the arithmetic logic unit, process the metadata cached in the working cache area, and write the processed metadata cached in the working cache area into the metadata write-only cache area through the register.
[0014] Optionally, the register is a general register GPR, a special register SR, or a stack register SP.
[0015] A second aspect of the present application provides a multi-core processing system, comprising: an input module, a plurality of multi-core processing modules including a plurality of data processing modules as described in any one of the first aspect of the embodiment, a first storage area, and an output module;
[0016] The input module is used to generate a data packet according to the received data stream, write the data packet to the first storage area, and send the metadata of the data packet to the first multi-core processing module, wherein the metadata at least includes the storage information of the data packet in the first storage area; the multi-core processing module is used to process the metadata after receiving the metadata sent by the input module to obtain the first intermediate metadata; the output module is used to obtain processed metadata from the multiple multi-core processing modules, obtain the data packet from the first storage area according to the processed metadata, and send the obtained data packet to the corresponding second data receiving end, wherein the processed metadata is obtained based on the first intermediate metadata.
[0017] By setting a metadata read-only cache area and a metadata write-only cache area in the data processing module, the present application can support the data processing module to simultaneously execute the operations of writing the metadata of the data packet to be processed into the cache area and writing the processed metadata into the cache area, thereby avoiding the resource preemption problem caused when there is only one cache area. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0019] Figure 1 is a structural diagram of a data processing module of a DPU according to an embodiment of the present application;
[0020] Figure 2 is a structural schematic diagram of a data processing module of a DPU according to another embodiment of the present application;
[0021] Figure 3 is a structural diagram of a data processing module of a DPU according to another embodiment of the present application;
[0022] Figure 4 is a structural diagram of a data processing module of a DPU according to another embodiment of the present application;
[0023] Figure 5 It is a structural schematic diagram of a data processing module of a DPU including an arithmetic logic unit according to an embodiment of the present application;
[0024] Figure 6 It is a schematic diagram of the structure of a multi-core processing system according to an embodiment of the present application. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the embodiments of the present application should fall within the scope of protection of the embodiments of the present application.
[0026] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0027] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0028] The technical solutions in the embodiments of the present application are clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application. In the absence of conflict, the following embodiments and their technical features can be combined with each other.
[0029] Figure 1 : is a structural diagram of a data processing module of a DPU according to an embodiment of the present application. Figure 1 The data processing module 100 of the DPU includes: a metadata interaction submodule 101 , a metadata read-only cache area 102 , a metadata write-only cache area 103 , a pipeline processing submodule 104 and a program storage submodule 105 .
[0030] The metadata interaction submodule 101 is used to receive metadata of a data packet sent by the input module 201 of the DPU, and write the metadata into the metadata read-only cache area 102, wherein the metadata is generated after the input module 201 writes the data packet into the first storage area 202 of the DPU. The pipeline processing submodule 104 is used to process the metadata cached in the metadata read-only cache area 102 according to the processing instructions in the program storage submodule 105, and write the processed metadata into the metadata write-only cache area 103. The metadata interaction submodule 101 is used to send the processed metadata to the corresponding first data receiving end 300.
[0031] When the data processor processes the metadata of a data packet, the metadata will be sent to multiple data processing modules included in the data processor. For the data processing module, there are two operations in the process of processing the metadata. One is to write the metadata of the data packet to be processed into the cache area, and take the data from the cache area to the working cache area for processing, and the other is to write the processed metadata from the working cache area into the cache area. Since the data processing module uses the instruction pipeline for multi-threaded processing, it is inevitable that the above two operations will be performed simultaneously. At the same time, since there is only one cache area, there will be a problem of resource preemption.
[0032] In order to solve the above problems, the cache area in the data processing module 100 can be divided into two cache areas: a metadata read-only cache area 102 and a metadata write-only cache area 103. The data processing module 100 receives the metadata of the data packet sent by the input module 201 of the DPU through the metadata interaction sub-module 101. The metadata of the data packet is generated after the input module 201 writes the data packet into the first storage area 202 of the DPU. The metadata interaction submodule 101 writes the metadata into the metadata read-only cache 102, and then the pipeline processing submodule 104 processes the metadata cached in the metadata read-only cache 102, and writes the processed metadata into the metadata write-only cache 103. Since the metadata read-only cache 102 and the metadata write-only cache 103 exist at the same time, the pipeline processing submodule 104 can simultaneously perform the writing operation of the metadata of the data packet to be processed and the writing operation of the processed metadata. Finally, the metadata interaction submodule 101 sends the processed metadata to the corresponding first data receiving end 300. The first data receiving end 300 can be an output port of a multi-core processing module including multiple data processing modules 100, or it can be an output module of a DPU.
[0033] In an embodiment of the present application, by setting a metadata read-only cache area 102 and a metadata write-only cache area 103 in the data processing module 100, it is possible to support the data processing module 100 to simultaneously execute the operations of writing the metadata of the data packet to be processed into the cache area and writing the processed metadata into the cache area, thereby avoiding the resource preemption problem caused when there is only one cache area.
[0034] Figure 2 is a structural diagram of a data processing module of a DPU according to another embodiment of the present application. Figure 2 As shown, the data processing module 100 further includes: a data packet interaction submodule 106, a data packet read-only buffer 107 and a data packet write-only buffer 108;
[0035] The data packet interaction submodule 106 is used to obtain at least part of the data packets from the first storage area 202 according to the metadata in the metadata read-only cache area 102, and write the obtained data packets into the data packet read-only cache area 103. The pipeline processing submodule 104 is used to process the data packets cached in the data packet read-only cache area 107 according to the processing instructions in the program storage submodule 105, process the metadata cached in the metadata read-only cache area 102 according to the processed data packets, write the processed data packets into the data packet write-only cache area 108, and write the processed metadata into the metadata write-only cache area 103. The data packet interaction submodule 106 is used to send the processed data packets to the first storage area 202.
[0036] The data processing module 100 supports the processing of data packets. On the basis of the above-mentioned embodiment, a data packet read-only cache area 107 and a data packet write-only cache area 108 are additionally divided in the cache area of the data processing module 100 to support the data packet interaction submodule 106 to obtain at least part of the data packet from the first storage area 202 according to the metadata in the metadata read-only cache area 102. The metadata in the metadata read-only cache area 102 includes a data packet offset address and a required data packet length. Therefore, the data packet interaction submodule 106 can determine the storage location of the data packet in the first storage area 202 according to the data packet offset address, and obtain at least part of the data packet according to the data packet length.
[0037] In an embodiment of the present application, by dividing the cache area of the data processing module 100 into a data packet read-only cache area 107 and a data packet write-only cache area 108, the data processing module 100 can be supported to simultaneously execute the operations of writing at least part of the data packets into the cache area and writing the processed data packets into the cache area, thereby further avoiding the problem of resource preemption.
[0038] In one possible implementation, the data packet interaction submodule 106 is used to pull data of the same size as the data packet read-only buffer 107 from at least part of the data packets and write them into the data packet read-only buffer 107 when the size of at least part of the data packets obtained in the first storage area 202 exceeds the size of the data packet read-only buffer 107; if the size of the remaining data packets is smaller than the size of the data packet read-only buffer 107, the remaining data packets are written into the data packet read-only buffer 107 again.
[0039] When the data packet interaction submodule 106 writes data packets into the data packet read-only buffer 107, it is possible that the data packets that need to be written exceed the capacity of the data packet read-only buffer 107. In this case, the data packet interaction submodule 106 will write in batches, and the size of the data packet written each time is the size of the capacity of the data packet read-only buffer 107, until the size of the unwritten data packet is smaller than the capacity of the data packet read-only buffer 107, at which time the unwritten data packet is directly written into the data packet read-only buffer 107. For example, if the size of the data packet read-only buffer 107 is 256B, and the size of the data packet that needs to be written is 1000B, the data packet interaction submodule 106 writes in four times, with 256B data packets being written each time for the first three times and 232B data packets being written for the fourth time, so as to write the data packet into the data packet read-only buffer 107.
[0040] In the embodiment of the present application, by setting the data packet interaction submodule 106 to write the data packet into the data packet read-only buffer area 107, it is possible to ensure that the data packet is written normally while achieving the writing of the data packet with higher efficiency.
[0041] Figure 3 is a structural diagram of a data processing module of a DPU according to another embodiment of the present application. Figure 3 As shown, the data processing module 100 further includes: a configuration table interaction submodule 109 , a table read-only buffer area 110 , and a table write-only buffer area 111 .
[0042] The pipeline processing submodule 104 is used to construct the configuration query information and write it into the table write-only buffer 111. The configuration table interaction submodule 109 is used to send the configuration query instruction to the second storage area 203 of the DPU according to the configuration query information in the table write-only buffer 111, and write the queried configuration information into the table read-only buffer 110. The pipeline processing submodule 104 is used to update the processing instruction in the program storage submodule 105 according to the configuration information in the table read-only buffer 110, and process the data packets cached in the data packet read-only buffer 107 according to the updated processing instruction.
[0043] The data processing module 100 also supports the configuration of the processing instructions of 105 in its internal program storage submodule. The configuration information can be written into the second storage area 203 of the DPU by an external communication device such as a central processing unit. When the data processing module 100 needs to be configured, the pipeline processing submodule 104 constructs the configuration query information and writes it into the table write-only cache area 111. Then, the configuration table interaction submodule 109 sends the configuration query instruction to the second storage area 203 of the DPU according to the configuration query information in the table write-only cache area 111, and writes the queried configuration information into the table read-only cache area 110, thereby enabling the pipeline processing submodule 104 to update the processing instructions of 105 in the program storage submodule according to the configuration information in the table read-only cache area 110.
[0044] In the embodiment of the present application, by setting the table read-only cache area 110 and the table write-only cache area 111, the data processing module 100 is supported to simultaneously execute the operations of writing configuration query information into the cache area and writing configuration query information into the cache area.
[0045] Figure 4 : is a structural diagram of a data processing module of a DPU according to another embodiment of the present application. Figure 4 As shown, the data processing module 100 further includes: a configuration table interaction submodule 112 , a table read-only buffer area 113 , and a table write-only buffer area 114 .
[0046] The pipeline processing submodule 104 is used to construct configuration query information and write the configuration query information into the table write-only cache area 114. The configuration table interaction submodule 112 is used to send a configuration query instruction to the second storage area 203 of the DPU according to the configuration query information in the table write-only cache area 114, and write the queried configuration information into the table read-only cache area 113. The pipeline processing submodule 104 is used to update the processing instructions in the program storage submodule 105 according to the configuration information in the table read-only cache area 114, and process the metadata cached in the metadata read-only cache area 102 according to the updated processing instructions.
[0047] The data processing module 100 may only include: a metadata interaction submodule 101, a metadata read-only cache area 102, a metadata write-only cache area 103, a pipeline processing submodule 104, a program storage submodule 105, a configuration table interaction submodule 112, a table read-only cache area 113, and a table write-only cache area 114. The pipeline processing submodule 104 updates the processing instructions of the program storage submodule 105 according to the queried configuration information, so as to process the metadata cached in the metadata read-only cache area 102 according to the updated processing instructions.
[0048] In the embodiment of the present application, the configuration table interaction submodule 112 can receive configuration information sent by an external configuration module so that the data processing module 100 can perform more operations to adapt to a wider range of business needs.
[0049] In a possible implementation, the pipeline processing submodule 104 is used to construct configuration table update information according to the metadata, and write the configuration table update information into the table write-only buffer area 114. The configuration table interaction submodule 112 is used to send a configuration table update instruction to the second storage area 203 according to the configuration table update information in the table write-only buffer area 114, so that the second storage area 203 updates the configuration table stored therein according to the configuration table update instruction.
[0050] The data processing module 100 can also support updating the configuration information in the second storage area 203. The pipeline processing submodule 104 constructs the configuration table update information according to the metadata, and writes the configuration table update information into the table write-only buffer area 114. The data processing module 100 further sends the configuration table update instruction to the second storage area 203 through the configuration table interaction submodule 112. After receiving the configuration table update instruction, the second storage area 203 updates the configuration information stored therein, and then the data processing module 100 and / or other data processing modules query the second storage area 203 to obtain the updated configuration information.
[0051] In the embodiment of the present application, since the pipeline processing submodule 104 can construct configuration table update information according to metadata, the second storage area 203 can eventually update the configuration information stored therein according to the configuration table update information, thereby supporting more business scenarios.
[0052] In one possible implementation, the pipeline processing submodule 104 is used to write the query key value and the configuration query information into the table write-only buffer 114. The configuration table interaction submodule 112 is used to send a configuration query instruction to the second storage area 203 of the DPU according to the configuration query information and the query key value in the table write-only buffer 114, and write the queried configuration information into the table read-only buffer 113.
[0053] In order to improve query efficiency, the pipeline processing submodule 104 can simultaneously write the query key value and the configuration query information into the table write-only cache area 114, and the configuration table interaction submodule 112 can directly match the query key value to the corresponding storage area in the second storage area 203, and then obtain the configuration information through the configuration query information.
[0054] In the embodiment of the present application, since the pipeline processing submodule 104 sends the query key value to the configuration table interaction submodule 112, the efficiency of the configuration table interaction submodule 112 in querying the configuration information in the second storage area 203 can be improved.
[0055] Figure 5 is a structural diagram of a data processing module of a DPU including an arithmetic logic unit according to an embodiment of the present application, such as Figure 5 As shown, the data processing module 100 further includes: a register 115 , an arithmetic logic unit 116 and a working buffer 117 .
[0056] The pipeline processing submodule 104 is used to write the metadata cached in the metadata read-only cache area 102 into the working cache area 117 through the register 115, execute the processing instructions according to the arithmetic logic unit 116, process the metadata cached in the working cache area 117, and write the processed metadata cached in the working cache area 117 into the metadata write-only cache area 103 through the register 115.
[0057] The pipeline processing submodule 104 can read data at any position in the buffer area, and then move the data to the working buffer area 117 through the register 115. The working buffer area 117 serves as the running memory (such as function stack, temporary data, etc.) when the pipeline processing submodule 104 processes data. After the data enters the working buffer area 117, the pipeline processing submodule 104 can execute the processing instructions according to the arithmetic logic unit 116, process the metadata cached in the working buffer area 117, and further move the processed data back to the buffer area through the register 115.
[0058] In the embodiment of the present application, data transfer is implemented through register 115, which can improve the efficiency of data transfer. Data is processed through the working buffer area 117 and transferred back to the buffer area, which can avoid data processing in the buffer area and improve the efficiency of data processing.
[0059] In a possible implementation, the register 115 is a general register GPR or a special register SR or a stack register SP.
[0060] The general register GPR, special register SR and stack register SP are registers that can store 32 groups of 16-bit data in total. By processing the size identifier carried in the instruction, the registers can be read and written based on 16-bit data, 32-bit data, or 64-bit data.
[0061] In the embodiment of the present application, by setting the register 115 to be a general register GPR or a special register SR or a stack register SP, various types of data operations can be supported.
[0062] Figure 6 is a schematic diagram of the structure of a multi-core processing system according to an embodiment of the present application. Figure 6As shown, the multi-core processing system 200 includes: an input module 201 , a plurality of multi-core processing modules 203 including a plurality of data processing modules 100 as in any of the aforementioned embodiments, a first storage area 202 and an output module 204 .
[0063] The input module 201 is used to generate a data packet according to the received data stream, write the data packet into the first storage area 202, and send metadata of the data packet to the first multi-core processing module, wherein the metadata at least includes storage information of the data packet in the first storage area. The multi-core processing module 203 is used to process the metadata after receiving the metadata sent by the input module to obtain the first intermediate metadata. The output module 204 is used to obtain processed metadata from multiple multi-core processing modules 203, obtain a data packet from the first storage area 202 according to the processed metadata, and send the obtained data packet to the corresponding second data receiving end, wherein the processed metadata is obtained based on the first intermediate metadata.
[0064] The input module 201 receives the input data stream and stores the data stream in the form of a data packet to the first storage area 202, and then sends the metadata of the data packet composed of the storage information of the data packet in the first storage area to the first multi-core processing module. The first multi-core processing module is one of the multi-core processing modules 203. When the input module 201 sends the metadata of the data packet, one of the multiple multi-core processing modules 203 can be selected as the first multi-core processing module. After determining the first multi-core processing module, the input module 201 sends the metadata of the data packet to the first multi-core processing module. The multi-core processing module 203 can forward, merge, discard and modify the metadata of the data packet sent by the input module 201 through the multiple data processing modules 100 it includes. The data processing module 100 receives the metadata of the data packet sent by the input module of the DPU through the metadata interaction submodule. The metadata of the data packet is generated after the input module writes the data packet into the first storage area of the DPU. The metadata interaction submodule writes the metadata into the metadata read-only cache area, and then the pipeline processing submodule processes the metadata cached in the metadata read-only cache area, and writes the processed metadata into the metadata write-only cache area. Since there are both metadata read-only cache areas and metadata write-only cache areas, the pipeline processing submodule can simultaneously perform the metadata writing operation of the data packet to be processed and the metadata writing operation after processing. After obtaining the first intermediate metadata, the metadata interaction submodule sends the first intermediate metadata to the corresponding first data receiving end 300, and the first data receiving end 300 can be an output module 204 or an output module of a DPU. After one or more multi-core processing modules 203 have completed processing, the output module 204 receives the processed metadata sent by the multi-core processing module 203. When the metadata is processed by only one multi-core processing module 203, the first intermediate metadata is the processed metadata. When the metadata is processed by multiple multi-core processing modules 203, the metadata obtained by the multi-core processing module 203 that performs the processing operation last is the processed metadata.
[0065] In an embodiment of the present application, by setting a metadata read-only cache area and a metadata write-only cache area in the data processing module, the data processing module can be supported to simultaneously execute the operations of writing the metadata of the data packet to be processed into the cache area and writing the processed metadata into the cache area, thereby avoiding the resource preemption problem caused when there is only one cache area.
[0066] In order to enable any technician in the field to implement and use the application, the application provides the above description. In the above description, various details are listed for the purpose of explanation. It should be understood that those of ordinary skill in the art can recognize that the application can also be implemented without using these specific details. In other embodiments, the well-known process will not be elaborated in detail to avoid unnecessary details that make the description of the application obscure. Therefore, the application is not intended to be limited to the embodiments shown, but is consistent with the widest range of principles and features disclosed in the application.
[0067] It should be noted that, under the premise of no conflict, the various embodiments and / or the technical features in the various embodiments described in this application can be arbitrarily combined with each other, and the technical solution obtained after the combination should also fall within the protection scope of this application.
[0068] It should be understood that the specific examples in the embodiments of the present application are only to help those skilled in the art to better understand the embodiments of the present application, rather than to limit the scope of the embodiments of the present application. Those skilled in the art can make various improvements and modifications based on the above embodiments, and these improvements or modifications all fall within the scope of protection of the present application.
[0069] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A data processing module of a DPU, comprising: Metadata interaction submodule, metadata read-only cache area, metadata write-only cache area, pipeline processing submodule and program storage submodule; The metadata interaction submodule is used to receive metadata of a data packet sent by an input module of the DPU, and write the metadata into the metadata read-only cache area, wherein the metadata is generated after the input module writes the data packet into the first storage area of the DPU; The pipeline processing submodule is used to process the metadata cached in the metadata read-only cache area according to the processing instructions in the program storage submodule, and write the processed metadata into the metadata write-only cache area; The metadata interaction submodule is used to send the processed metadata to the corresponding first data receiving end.
2. The data processing module according to claim 1, characterized in that: Also includes: A data packet interaction submodule, a data packet read-only buffer area, and a data packet write-only buffer area; The data packet interaction submodule is used to obtain at least part of the data packets from the first storage area according to the metadata in the metadata read-only cache area, and write the obtained data packets into the data packet read-only cache area; The pipeline processing submodule is used to process the data packets cached in the data packet read-only cache area according to the processing instructions in the program storage submodule, process the metadata cached in the metadata read-only cache area according to the processed data packets, write the processed data packets into the data packet write-only cache area, and write the processed metadata into the metadata write-only cache area; The data packet interaction submodule is used to send the processed data packet to the first storage area.
3. The data processing module according to claim 2, characterized in that: The data packet interaction submodule is used to pull data of the same size as the data packet read-only cache area from at least part of the data packets obtained in the first storage area and write them into the data packet read-only cache area when the size of at least part of the data packets obtained in the first storage area exceeds the size of the data packet read-only cache area; if the size of the remaining data packets is smaller than the size of the data packet read-only cache area, write the remaining data packets into the data packet read-only cache area again.
4. The data processing module according to claim 2, characterized in that: Also includes: Configure table interaction submodule, table read-only buffer area and table write-only buffer area; The pipeline processing submodule is used to construct configuration query information and write it into the table write-only buffer area; The configuration table interaction submodule is used to send a configuration query instruction to the second storage area of the DPU according to the configuration query information in the table write-only cache area, and write the queried configuration information into the table read-only cache area; The pipeline processing submodule is used to update the processing instructions in the program storage submodule according to the configuration information in the table read-only cache area, and process the data packets cached in the data packet read-only cache area according to the updated processing instructions.
5. The data processing module according to claim 1, characterized in that: Also includes: Configure table interaction submodule, table read-only buffer, and table write-only buffer; The pipeline processing submodule is used to construct configuration query information and write the configuration query information into the table write-only buffer area; The configuration table interaction submodule is used to send a configuration query instruction to the second storage area of the DPU according to the configuration query information in the table write-only cache area, and write the queried configuration information into the table read-only cache area; The pipeline processing submodule is used to update the processing instructions in the program storage submodule according to the configuration information in the table read-only cache area, and process the metadata cached in the metadata read-only cache area according to the updated processing instructions.
6. The data processing module according to claim 5, characterized in that: The pipeline processing submodule is used to construct configuration table update information according to the metadata, and write the configuration table update information into the table write-only buffer area; The configuration table interaction submodule is used to send a configuration table update instruction to the second storage area according to the configuration table update information in the table write-only buffer area, so that the second storage area updates the configuration table stored therein according to the configuration table update instruction.
7. The data processing module according to claim 5, characterized in that: The pipeline processing submodule is used to write the query key value and the configuration query information into the table write-only buffer area; The configuration table interaction submodule is used to send a configuration query instruction to the second storage area according to the configuration query information and the query key value in the table write-only cache area, and write the queried configuration information into the table read-only cache area.
8. The data processing module according to any one of claims 1 to 7, characterized in that: Also includes: Registers, arithmetic logic unit, and working buffer; The pipeline processing submodule is used to write the metadata cached in the metadata read-only cache area into the working cache area through the register, execute the processing instruction according to the arithmetic logic unit, process the metadata cached in the working cache area, and write the processed metadata cached in the working cache area into the metadata write-only cache area through the register.
9. The data processing module according to claim 8, characterized in that: The register is a general register GPR, a special register SR or a stack register SP.
10. A multi-core processing system, characterized in that: include: An input module, a plurality of multi-core processing modules including a plurality of data processing modules as described in any one of claims 1 to 9, a first storage area and an output module; The input module is used to generate a data packet according to the received data stream, write the data packet into the first storage area, and send metadata of the data packet to the first multi-core processing module, wherein the metadata at least includes storage information of the data packet in the first storage area; The multi-core processing module is used to process the metadata after receiving the metadata sent by the input module to obtain the first intermediate metadata; The output module is used to obtain processed metadata from the multiple multi-core processing modules, obtain data packets from the first storage area according to the processed metadata, and send the obtained data packets to the corresponding second data receiving end, wherein the processed metadata is obtained based on the first intermediate metadata.
Citation Information
Cited By
Method for endowing input three-dimensional data information with synchronous control information
CN119045748A
A method for assigning synchronous control information to input three-dimensional data information
CN119045748B
