Data transmission method and device

Through direct register driving, the problem of data inconsistency in zero-copy data transmission is solved, efficient and consistent data transmission is achieved, and the impact of the operating system kernel driving the DMA engine is avoided.

CN118860922APending Publication Date: 2024-10-29BOE TECHNOLOGY GROUP CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310477797.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-27
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

The existing technology has the problem of data inconsistency when implementing zero-copy data transmission, and is affected by the DMA engine framework driven by the operating system kernel, making it difficult to guarantee data transmission efficiency and consistency.

Method used

Through direct register driving, we avoid using the DMA engine, directly configure and manage the DMA hardware, realize data transmission, and establish a communication channel between the user mode and the kernel mode to ensure data consistency.

Benefits of technology

It achieves data transmission while maintaining data consistency, avoids the impact of the operating system kernel driving the DMA engine, and improves data transmission efficiency and consistency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118860922A_ABST
    Figure CN118860922A_ABST
Patent Text Reader

Abstract

The invention discloses a data transmission method and device and relates to the technical field of computers. The method comprises the following steps that: an ARM establishes a communication channel with a DMA (Direct Memory Access), and sends indication information for indicating to execute data transmission operation on target data in a virtual memory in a user mode to the DMA through the communication channel, so that the DMA can transmit the target data in the virtual memory according to the indication information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a data transmission method and device. Background Art

[0002] In computer technology, in order to reduce the consumption of the central processing unit (CPU), data transmission can be achieved based on zero copy technology. Zero copy technology is a method of copying data from one storage area to another storage area without using the CPU, saving CPU resources. At the same time, zero copy technology reduces the overhead caused by context switching between the user state address space and the kernel state address space. Summary of the invention

[0003] On the one hand, a data transmission method is provided, the method comprising: an advanced reduced instruction set computer (ARM) establishes a communication channel with a direct memory access (DMA), and sends first indication information for instructing the ARM to perform a data transmission operation on target data in a virtual memory to the DMA through the communication channel, wherein the virtual memory is in a user state.

[0004] In some embodiments, the method further includes: ARM mapping the physical memory used by DMA to virtual memory, and storing the target data in the virtual memory.

[0005] In some embodiments, the method further includes: the ARM sending second indication information for indicating a data length of the target data to the DMA.

[0006] In some embodiments, the method further includes: obtaining a DMA execution result, the execution result including one or more of whether the DMA transfer of target data has timed out, whether the transfer of target data has been completed, and whether the transfer of target data has been successful. Based on the execution result, the ARM determines whether the DMA data transfer operation is abnormal.

[0007] In some embodiments, the method further includes: the ARM sends a plurality of incrementing numbers to the DMA, and obtains the incrementing numbers received by the receiving end from the receiving end. The plurality of incrementing numbers include a plurality of numbers that increase in sequence. The ARM confirms whether the data transmitted by the DMA is consistent based on the plurality of incrementing numbers sent and the incrementing numbers received by the receiving end.

[0008] In some embodiments, the method further includes: the ARM is connected to the FPGA, the FPGA is used to obtain data related to the DMA transmission through a logic analyzer and determine whether the increment number of the DMA transmission is consistent according to the data related to the DMA transmission, wherein the data related to the DMA transmission includes data sent and received by the FIFO module connected to the DMA, data on the DMA transmission bus, and data sent by the DMA

[0009] On the other hand, a data transmission method is provided, the method comprising: DMA establishes a communication channel with ARM, and receives first indication information from ARM through the communication channel for instructing ARM to perform a data transmission operation on target data. The data transmission operation on the target data comprises obtaining the target data according to the memory address of the target data, or sending the target data to the memory address of the target data. The DMA performs a transmission operation on the target data according to the first indication information.

[0010] In some embodiments, the method further includes: DMA receiving second indication information from ARM for indicating the data length of the target data.

[0011] In some embodiments, the execution result of DMA transmitting target data includes one or more of whether DMA transmitting target data has timed out, whether the transmission of target data has been completed, and whether the target data has been successfully transmitted. The execution result is used to reflect whether the operation of DMA performing data transmission is abnormal.

[0012] In some embodiments, the method further includes: the DMA receives a plurality of incrementing numbers from the ARM, the plurality of incrementing numbers comprising a plurality of numbers increasing in sequence, and the DMA sends the plurality of incrementing numbers to a receiving end, the receiving end being used to receive data sent by the DMA.

[0013] On the other hand, a data transmission device is provided, which is applied to ARM and includes: an establishing unit and a sending unit.

[0014] Wherein, the establishing unit is configured to: establish a communication channel with the DMA.

[0015] The sending unit is configured to send first instruction information for instructing the ARM to perform a data transfer operation on target data in the virtual memory to the DMA through the communication channel, wherein the virtual memory is in the user state.

[0016] In some embodiments, the device further comprises a mapping unit, which is configured to: map the physical memory used by the DMA to a virtual memory in a user state, and store the target data in the virtual memory.

[0017] In some embodiments, the sending unit is further configured to: send second indication information for indicating the data length of the target data to the DMA.

[0018] In some embodiments, the device further includes an acquisition unit. The acquisition unit is configured to: acquire an execution result of the DMA, the execution result including one or more of whether the DMA transfer of target data has timed out, whether the transfer of target data has been completed, and whether the transfer of target data has been successful. The ARM determines whether the operation of the DMA to perform data transfer is abnormal based on the execution result.

[0019] In some embodiments, the sending unit is further configured to: send multiple increasing numbers to the DMA, and obtain the increasing numbers received by the receiving end from the receiving end. The multiple increasing numbers include multiple numbers that increase in sequence. The ARM confirms whether the data transmitted by the DMA is consistent based on the multiple increasing numbers sent and the increasing numbers received by the receiving end.

[0020] In some embodiments, ARM is connected to FPGA, and FPGA is used to obtain data related to DMA transmission through a logic analyzer and determine whether the increment number of DMA transmission is consistent based on the data related to DMA transmission, wherein the data related to DMA transmission includes data sent and received by a FIFO module connected to DMA, data on the DMA transmission bus, and data sent by DMA.

[0021] On the other hand, a data transmission device is provided, which includes: an establishment unit, a receiving unit, and a processing unit. The establishment unit is configured to: establish a communication channel with ARM in response to a configuration operation. The receiving unit is configured to: receive first indication information from ARM through the communication channel for instructing to perform a data transmission operation on target data in a virtual memory. The virtual memory is in a user state. The processing unit is configured to: transmit the target data in the virtual memory according to the first indication information.

[0022] In some embodiments, the receiving unit is further configured to: receive second indication information from the ARM for indicating the data length of the target data. The processing unit is further configured to: determine the data length of the transmitted target data according to the second indication information.

[0023] In some embodiments, the execution result of DMA transmitting the target data includes one or more of whether the DMA transmitting the target data has timed out, whether the transmission of the target data has been completed, and whether the target data has been successfully transmitted.

[0024] In some embodiments, the receiving unit is further configured to: receive multiple increasing numbers from the ARM, the multiple increasing numbers including multiple numbers increasing in sequence. The sending unit is further configured to: send the multiple increasing numbers to the receiving end.

[0025] In another aspect, a data transmission device is provided, comprising a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run a computer program or instruction to implement the data transmission method of any of the above embodiments.

[0026] In another aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed on a computer (eg, a server), the computer executes the data transmission method as described in any of the above embodiments.

[0027] In another aspect, a computer program product is provided, wherein the computer program product comprises computer program instructions, and when the computer program instructions are executed on a computer (eg, a server), the computer program instructions cause the computer to execute the data transmission method as described in any one of the above embodiments.

[0028] In another aspect, a computer program is provided. When the computer program is executed on a computer (eg, a server), the computer program enables the computer to execute the data transmission method as described in any one of the above embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solutions in the present disclosure, the following briefly introduces the drawings required to be used in some embodiments of the present disclosure. Obviously, the drawings described below are only drawings of some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can also be obtained based on these drawings. In addition, the drawings described below can be regarded as schematic diagrams, and are not limitations on the actual size of the product involved in the embodiments of the present disclosure, the actual process of the method, the actual timing of the signal, etc.

[0030] Figure 1 is a schematic diagram of a driving process of a DMA client according to some embodiments;

[0031] Figure 2 is a schematic diagram of a hardware device according to some embodiments;

[0032] Figure 3 is a structural diagram of a signal transmitting end and a signal receiving end according to some embodiments;

[0033] Figure 4 is a schematic diagram of a data processing apparatus according to some embodiments;

[0034] Figure 5 is a flowchart of a data transmission method according to some embodiments;

[0035] Figure 6is a flow chart of a DMA method according to some embodiments;

[0036] Figure 7 is a schematic diagram of a data transmission device according to some embodiments;

[0037] Figure 8 is a schematic diagram of a data transmission device according to some embodiments;

[0038] Fig. 9 is a structural diagram of a data transmission device according to some embodiments. DETAILED DESCRIPTION

[0039] The following will be combined with the accompanying drawings to clearly and completely describe the technical solutions in some embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments provided by the present disclosure, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of the present disclosure.

[0040] Unless the context requires otherwise, throughout the specification and claims, the term "comprise" and other forms thereof, such as the third person singular form "comprises" and the present participle form "comprising", are to be interpreted as open, inclusive, that is, "including, but not limited to". In the description of the specification, the terms "one embodiment", "some embodiments", "exemplary embodiments", "example", "specific example" or "some examples" and the like are intended to indicate that specific features or characteristics associated with the embodiment or example are included in at least one embodiment or example of the present disclosure. The schematic representation of the above terms does not necessarily refer to the same embodiment or example. In addition, the specific features or characteristics described may be included in any one or more embodiments or examples in any appropriate manner.

[0041] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present disclosure, unless otherwise specified, "plurality" means two or more.

[0042] When describing some embodiments, the expressions "coupled" and "connected" and their derivatives may be used. For example, when describing some embodiments, the term "connected" may be used to indicate that two or more components are in direct physical or electrical contact with each other. For another example, when describing some embodiments, the term "coupled" may be used to indicate that two or more components are in direct physical or electrical contact. However, the term "coupled" or "communicatively coupled" may also refer to two or more components that are not in direct contact with each other, but still cooperate or interact with each other. The embodiments disclosed herein are not necessarily limited to the contents of this document.

[0043] “At least one of A, B, and C” has the same meaning as “at least one of A, B, or C” and both include the following combinations of A, B, and C: A only, B only, C only, the combination of A and B, the combination of A and C, the combination of B and C, and the combination of A, B, and C.

[0044] “A and / or B” includes the following three combinations: A only, B only, and a combination of A and B.

[0045] As used herein, the term "if" is optionally interpreted to mean "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined that" or "if [a stated condition or event] is detected" are optionally interpreted to mean "upon determining that" or "in response to determining that" or "upon detecting [a stated condition or event]" or "in response to detecting [a stated condition or event]," depending on the context.

[0046] The use of "adapted to" or "configured to" herein is meant to be open and inclusive language that does not exclude devices adapted or configured to perform additional tasks or steps.

[0047] Additionally, the use of “based on” is meant to be open and inclusive, as a process, step, calculation, or other action “based on” one or more stated conditions or values ​​may, in practice, be based on additional conditions or values ​​beyond those stated.

[0048] In some scenarios, in order to achieve zero copy, it can be implemented through the data transfer function of the advanced extensible interface direct memory access (AXIDMA) core. For example, in a device configured with a LINUX operating system, the function of the AXIDMA core can be implemented through the client (CLIENT)-driver of the driver layer in the system, combined with the system's DMA engine framework application programming interface (application programming interface, API) and the system's underlying driver code.

[0049] In one example, Figure 1 The figure shows a driving process of a DMA client, which may include S1 to S6.

[0050] S1. The user layer calls the transceiver interface.

[0051] The user layer calling the sending / receiving interface may include: opening a virtual hardware device, the ARM side program mapping the physical memory used by DMA to the virtual memory, and operating the sending / receiving interface.

[0052] S2. The user interface triggers the operating system soft interrupt.

[0053] S3. The operating system calls the driver interface through the ARM user mode application.

[0054] Among them, the operating system can call the interface to jump from the user-state application to the kernel-state driver through the software interrupt method to execute the driver program work (such as running the corresponding registration function of the kernel). After the driver work is completed, the operating system jumps back to the user-state application and feeds back the execution result of the kernel-state driver.

[0055] S4. The kernel state completes the mapping of the physical memory used by DMA to the virtual memory of the user state through the DMA client driver, or completes the respective interface calls in response to the user state application.

[0056] Among them, the kernel state driver can establish a communication channel with the user state application program. In this way, the kernel state can complete the configuration operation (such as memory mapping, function callback, etc.) of DMA through the communication channel.

[0057] S5, the kernel state is driven by the DMA client, which jumps to the DMA engine driver through the API interface, and the DMA engine driver drives the underlying DMA controller to complete DMA channel application, channel management for sending and receiving data, status monitoring, queue control and other operations.

[0058] S6. The DMA controller driver configures and accesses the DMA hardware to implement the actual driving of the DMA hardware.

[0059] Based on the above driving process, a block diagram of a hardware device is also provided. Figure 2 As shown, the hardware device may include multiple modules. For example, the multiple modules may include xlconstant module, axcache_coherent module, core module, interconnect module (ps8_0_axi_periph), tready_high module, axi_smc module, DMA, axi_gpio module, FIFO module, logic module (util_reduced_logic), Xlconcat module 0, reset module (rst_ps8_0_99M). The interfaces and connection methods in the above multiple modules can refer to Figure 2 As shown, no further elaboration is given.

[0060] Specifically, in combination with the above-mentioned hardware device, the process of DMA data transfer may include: the DMA module obtains the data to be transferred from the ARM side through the S01_AXI interface of the axi_smc module, and inputs the data into the DMA IP core through the M_AXI_MM2S interface of the DMA, and passes the data to the S_AXIS interface of the FIFO module through the M_AXIS_MM2S interface, and passes the data to the S_AXIS_S2MM port of the DMA through the M_AXIS port of the FIFO module, and finally passes it to the S02_AXI port of the axi_smc module through the M_AXI_S2MM port, and returns it to the core module through the M00_AXI port in the axi_smc module.

[0061] The above-mentioned hardware method realizes a coherent system on hardware by configuring a cache coherent interconnect (CCI) configuration and a bootgen tool before the kernel is cut off.

[0062] In the embodiment of the present application, in order to prevent the operating system and key data from being destroyed by the user program, the execution state of the processor is divided into kernel state and user state. The user program runs in the user state, and the operating system kernel runs in the kernel state. The kernel state is the state when the operating system hypervisor is executed, and it can execute all instructions including privileged instructions and can access all storage spaces of the system. The user state is the state when the user program is executed, and it cannot execute privileged instructions and can only access the user address space.

[0063] In another example, a driver code is provided to verify whether the data transmission is consistent. For example, the driver code may be as follows:

[0064]

[0065] Based on the above driver code, DMA data transmission can be realized based on the above hardware device, but data inconsistency problem occurs. Among them, through data verification on the ARM side and data verification on the field programmable gate array (FPGA) side, the verification data has jump phenomenon.

[0066] In view of this, the embodiment of the present application provides a technical solution, which solves the problem of data inconsistency by directly driving the register instead of using the DMA engine. At the same time, during the DMA data transmission process, it will not be affected by the kernel-driven DMA engine framework of the operating system (such as parameter mismatch), and does not require the driver of the DMA controller and the DMA engine driver. In this way, the DMA is directly driven to configure the read and write operations, and the hardware address memory is allocated to the DMA, so that the DMA engine driver of the LINUX operating system can be avoided, thereby avoiding the adaptation of the DMA engine interface and the call of the DMA controller driver.

[0067] In the embodiment of the present application, the consistency of data in the memory of the user side and the data in the memory of the kernel side can be verified, and a loopback test can be performed on ARM to verify the technical solution provided in the embodiment of the present application. It is determined that the technical solution in the embodiment of the present application can both transmit data and maintain data consistency.

[0068] It should be pointed out that the embodiments of the present application involve multiple technical fields, for example, may involve one or more technical fields of UNIX-C programming, LINUX user state and kernel state architecture, technical implementation of LINUX user state and kernel state jump, AXIDMA-internet protocol (internet protocol, IP) core control, DMA engine, DMA controller driver, and DMA-client driver.

[0069] Among them, UNIX-C programming can include: how to implement the user-side program calling the kernel driver to send and receive data, how to open the hardware device file of the DMA channel, how to map the physical address memory of the DMA, etc.

[0070] In LINUX user state and kernel state, how does the user state interact with the corresponding interface in the kernel state through the corresponding interface, and how to achieve seamless jump between user state and kernel state.

[0071] The implementation methods of LINUX user mode and kernel mode soft interrupts include: how to jump to the corresponding driver interface through the underlying interrupt mapping, and how to bind the jump relationship between the corresponding file operations.

[0072] The control of AXIDMA-IP core includes: how to implement the control of soft core, including data start sending, whether the data transmission is completed, data transmission byte alignment, data transmission completion cleanup, how to initialize the software core and other processes.

[0073] In one application scenario, the technical solution of the embodiment of the present application can be applied to a millimeter wave satellite communication system. Among them, the millimeter wave satellite communication system may include a signal transmitting end and a signal receiving end. The signal transmitting end is communicatively connected with the signal receiving end. For example, the signal transmitting end may be a satellite, or other device with a data transmission function (such as a drone or other device). The signal receiving end may be a mobile device, a network device, a ground receiving device, etc.

[0074] Among them, the signal sending end can send data to the signal sending end, for example, the data may include video data, audio data, and / or other types of data (such as fifth generation (5G) data).

[0075] In one example, taking the example of a signal transmitting end sending video data to a signal receiving end, the signal transmitting end may be provided with a plurality of devices, and the plurality of devices may implement the transmission of the video data. Figure 3 As shown, the multiple devices may include a camera (such as a high definition multimedia interface (HDMI) camera), a video encoder, an FPGA core board, a radio frequency board, an antenna (also referred to as a transmitting antenna, a radio frequency signal antenna), etc. The multiple devices may be connected in series via a data link.

[0076] The camera can be used to capture video data and transmit the captured video data to the video encoder. The resolution of the video data depends on the hardware configuration of the camera. For example, the resolution can be 1920 / 1280 or 1280 / 720.

[0077] After receiving the video data from the camera, the video encoder can encode the received video data to obtain the corresponding bitstream data and send the bitstream data to the FPGA core board. After receiving the bitstream data from the video encoder, the FPGA core board can work in conjunction with the RF board. In this way, the RF board can send the bitstream data through the antenna. For example, the RF board can convert the bitstream data into a microwave signal for transmission.

[0078] For the signal receiving end, after receiving the code stream data from the signal sending end, the signal receiving end can decode the code stream data and display the video data.

[0079] In one example, Figure 3 As shown, a signal receiving end provided in an embodiment of the present application is provided. The signal receiving end may include multiple devices, for example, an antenna (also referred to as a receiving antenna, a radio frequency signal antenna), an FPGA core board, a radio frequency board, a video decoder, a display (such as an HDMI display), etc. Among them, the multiple devices can be connected through a network cable, a switch, a radio frequency device, etc.

[0080] The antenna can be used to transmit or receive microwave signals and convert the microwave signals into analog electrical signals. After the received microwave signals are converted into analog electrical signals, the antenna can also transmit the analog electrical signals to the radio frequency board.

[0081] The radio frequency board can be used to convert analog electrical signals into digital signals through DAC and transmit the digital signals to the FPGA core board. The digital signals may include symbol information, that is, orthogonal vectors and in-phase vectors in orthogonal frequency division multiplexing (OFDM) technology.

[0082] After receiving the digital signal from the radio frequency board, the FPGA core board can analyze the received digital signal through an algorithm and transmit the analyzed data to the ARM, where the analyzed data is code stream data.

[0083] ARM can be used to transmit bitstream data to the video decoder.

[0084] The video decoder can be used to decode the bitstream data, obtain corresponding video data, and transmit the video data to the display. For example, the video decoder can transmit the video data to the display through the HDMI interface. The display can be used to display the received video data.

[0085] The video decoder may use a decoding algorithm to decode the bitstream data to obtain video data. The decoding algorithm may be set as required, for example, the H265 algorithm, which is not limited.

[0086] From the above description, it can be seen that at the signal sending end, after the data reaches the ARM end of the FPGA core board through the video encoder, the ARM program of the FPGA core board needs to send the code stream data to the PL side (that is, the FPGA end) of the FPGA core board so that the FPGA end can obtain the processed data.

[0087] At the same time, at the signal receiving end, when the FPGA core board successfully receives the data through the RF board and uses the algorithm to parse the corresponding bit stream data, the bit stream data needs to be transmitted from the FPGA end to the ARM end.

[0088] In one example, the signal receiving end can realize data transmission between the FPGA end and the ARM end by means of DMA. DMA can use the hardware function of the DMA device to quickly transfer a large amount of data from the ARM end to the FPGA end, or from the FPGA end to the ARM end without consuming the CPU.

[0089] For example, the signal receiving end can be transferred to the ARM side through DMA, and then the program on the ARM side calls the driver mode of the AXIDMA core to obtain data from the FPGA and pass the bit stream data to the video encoder.

[0090] For another example, the driver mode of the DMA hardware module can be written so that the ARM-side program can call the driver to realize the function of hardware-driven DMA work. In this way, the code stream data received by the ARM side can be transmitted to the FPGA side to establish a data link channel.

[0091] In the embodiment of the present application, in order to realize that the data on the PS side memory of the FPGA can be transferred to the memory on the PL side, the data in the data source connected to the mainboard of the signal node end can be transferred to the memory on the PS side through a network cable, and then the data can be moved to the memory on the PL side by means of DMA. In this way, the FPGA can modulate the data into a microwave signal and send it through an antenna. After receiving the microwave signal, the antenna at the signal receiving end can demodulate the received microwave signal and then store the data in the PL side memory of the FPGA core board. The mainboard at the signal receiving end can transfer the data of the PL side memory to the memory on the PS side by means of DMA, and continue to transmit the data by means of a network cable to form a closed loop of data transmission.

[0092] Based on the technical solution of the embodiment of the present application, by implementing DMA-based hardware driver configuration on the kernel side, all hardware-related operations are set in the driver work on the kernel side. The driver layer directly provides drivers for user layer programs so that the user layer can directly call DMA read and write operations.

[0093] In one possible implementation, Figure 4 As shown, a processing device provided in an embodiment of the present application can be applied to Figure 3 The FPGA in the signal transmitting end and / or the FPGA in the signal receiving end shown.

[0094] The processing device may include a clock management module (rst_clk_wiz_100M), a channel interconnect module (axi_interconnect_0), a data shift channel module (xlconcat_0), a DMA (axi_dma_0), a system data acquisition module (system_ila_0), a FIFO module (axi_data_fifo_0), an AXI interconnect module (ps7_0_axi_periph), and a processing system module (processing_system). The ports and connection methods of the multiple modules can refer to Figure 4 As shown, no further elaboration is given.

[0095] The functions of the above modules are described below.

[0096] 1. Clock management module.

[0097] The clock management module can be used to generate multiple application clocks through the standard clock. In the embodiment of the present application, the clock management module can be used to achieve the same frequency of the clocks of all modules, thereby ensuring synchronization between the modules.

[0098] 2. Channel inline module.

[0099] Among them, the channel inline module can provide one input and multiple outputs, or provide one output and multiple inputs. In the embodiment of the present application, two data channels are generated at the output end through a data channel on the ARM side. Among them, one data channel can be used to send data to DMA, and the other data channel can be used to transfer the looped data to ARM through DMA.

[0100] 3. Data displacement channel module.

[0101] Among them, the data shift channel module can be used to move the input data to a high position, so that the data of multiple inputs can be combined into the data of one channel for output through the high and low positions. In the embodiment of the present application, based on the data shift channel module, the DMA can send a receiving completion interrupt signal to the ARM end through a data channel, or send a completion interrupt signal.

[0102] 4.DMA.

[0103] Wherein, DMA can also be an IP core of DMA. DMA can realize DMA data transfer. In the embodiment of the present application, based on DMA and corresponding drivers, data transmission from ARM end to FPGA end and data reading from FPGA end to ARM end can be realized.

[0104] 5. System data acquisition module.

[0105] The system data acquisition module may be a soft core of an FPGA. In the embodiment of the present application, the system data acquisition module may be used to capture data of a FIFO module, data in a data channel, and verify whether the sent data is consistent with the received data.

[0106] 6. FIFO module.

[0107] Among them, the FIFO module can be used to control the stream input and output of the FPGA. In the embodiment of the present application, after receiving the data, the DMA can transmit it to the FIFO module. The FIFO module can transmit the data to the DMA in a first-in-first-out manner, and realize the data loop through the output drive of the DMA.

[0108] 7. Processing system module.

[0109] The processing system module may be an FPGA core board. The processing system module may call DMA to implement data transmission and reception. In the embodiment of the present application, the processing system module may be used to configure DMA to implement data transmission between the ARM end and the FPGA end.

[0110] It should be noted that the above multiple modules can all be IP cores of FPGA. In addition, in the embodiment of the present application, the processing device can also include other modules, which are not limited.

[0111] The implementation of the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings.

[0112] like Figure 5 As shown, “the technical solution provided in the embodiment of the present application may include: S501~S503.

[0113] S501. ARM establishes a communication channel with DMA.

[0114] The communication channel may also be referred to as a communication channel or a communication route. The communication channel may be used to transmit data / information between the ARM and the DMA.

[0115] In one example, the ARM may be configured with an application program. The application program may, in response to a build operation, open a driver device file provided by the driver layer, and establish a communication channel with the DMA based on the driver device file.

[0116] The driver device file may also be referred to as a character device file. In the embodiment of the present application, based on the DMA method, the DMA operation can be implemented in the driver layer, and the driver device file for generating the communication channel, the registered character device and the corresponding driver framework window are configured, and the calling interface corresponding to the driver device file is registered in the file operation interface of the kernel.

[0117] It should be noted that, in the embodiment of the present application, DMA can be configured with multiple drivers. For example, it can include a DMA client driver, an engine driver, and a controller driver. Among them, the DMA client driver and the engine driver can call each other through an interface. The controller driver and the engine driver can also call each other through an interface.

[0118] Among them, the client driver can be used to create and manage communication channels, manage the data buffer area of ​​the communication channel, and provide a calling interface and a driver interface for the device file serving the application layer. The engine driver can be used to abstract the DMA driver. In this way, for different types of DMA hardware controller drivers, the client driver does not need to be changed. For any type of DMA hardware controller driver, by writing the controller driver, you can associate it with the LINUX kernel.

[0119] Furthermore, in the embodiment of the present application, the registration of the driver device file, the registration of the calling interface corresponding to the driver device file, and the automatic creation of / sys / class and / proc / devices devices can be realized through the character device and the corresponding driver framework window.

[0120] In the embodiment of the present application, multiple communication channels can be established between the ARM and the DMA, and each communication channel can have a corresponding calling interface and physical memory.

[0121] S502: ARM sends first indication information to DMA via a communication channel. Correspondingly, DMA receives the first indication information from ARM.

[0122] The first indication information is used to indicate a data transfer operation for target data in the virtual memory. The virtual memory is in user mode, and there is a mapping relationship between the virtual memory and the physical memory of the DMA. For example, the first indication information may include address information of the virtual memory corresponding to the target data, and a first indicator. The first indicator may be used to indicate the target data in the virtual memory according to the transmission. The first indicator may be a number and / or a character.

[0123] In one example, ARM can send a first indication message to a kernel driver through an operating system. After receiving the first indication message, the kernel driver can determine the virtual memory corresponding to the data according to the first indication message, and determine the data transfer operation to be performed according to the first indicator. The kernel-state driver can use the configuration information corresponding to the first indication message and send the configuration information to DMA. In this way, DMA can determine the data transfer operation to be performed based on the configuration information.

[0124] Further, in an embodiment of the present application, in order to facilitate DMA to perform data transmission more accurately, ARM may also send second indication information to DMA. The second indication information may be used to indicate the data length of the target data. For example, the second indication information may include the number of bytes or the number of characters of the target data. DMA may determine the data length of the target data to be acquired or sent based on the second indication information. Subsequently, DMA may accurately determine the size of the target data to be transmitted based on the data length of the target data.

[0125] S503. DMA transmits target data according to the first instruction information.

[0126] Among them, DMA transmitting the target data according to the first indication information may include DMA obtaining the target data from the virtual memory of the ARM side and transmitting the target data to the FPGA side, or obtaining the target data from the virtual memory of the FPAG side and transmitting the target data to the ARM side.

[0127] In one example, combining the above Figure 4 After receiving the first indication information, the DMA can send data to the FIFO or obtain data from the FIFO module to achieve a closed loop of data.

[0128] In another example, in combination with the above-mentioned video data transmission scenario, Figure 4 When the device shown is applied to the FPGA of the above-mentioned signal sending end, the first indication information can be used to instruct the transmission of the parsed data from the FPGA end to the ARM end.

[0129] In another example, in combination with the above-mentioned video data transmission scenario, Figure 4When the device shown is applied to the FPGA of the above-mentioned signal receiving end, the first indication information can be used to instruct the code stream data to be transmitted from the FPGA end to the ARM end.

[0130] based on Figure 5 According to the technical solution, after ARM establishes a communication channel with DMA, data transmission can be realized through DMA. For example, ARM can indicate information to DMA through the established communication channel, so that DMA can perform corresponding data transmission operations according to the indication information. In this way, data transmission can be realized without the participation of CPU.

[0131] In some embodiments, in the embodiments of the present application, ARM can also map the physical memory used by DMA to the virtual memory of the user state, and store the target data in the virtual memory.

[0132] Among them, the physical memory used by DMA can be an external DDR4 memory connected to the ARM side.

[0133] In one example, ARM can map the physical memory used by DMA into user-mode virtual memory through memory mapping, so that user-mode applications can directly manage the physical memory of DMA according to the address access method.

[0134] In the embodiment of the present application, the operating system may include a user space and a kernel space. For example, for a 32-bit operating system, 0-3G may be used as the user space and 3-4G may be used as the kernel space. The user space or the user-side application cannot directly access the physical address of the kernel space.

[0135] In one possible implementation, ARM can allocate two blocks of memory of a certain size from the physical memory by reserving memory, and use them as the physical memory of DMA. ARM can remap the reserved physical memory to the user-mode virtual memory by remapping virtual memory. In this way, the user-mode application can directly control the physical memory of DMA by means of virtual memory through address access.

[0136] In the embodiment of the present application, the physical memory of DMA can also be mapped to the user state via the driver, so that the physical memory of DMA can be directly managed by the user state. During the data transmission process, the data in the user state does not need to be moved to the physical memory of the kernel state, but directly moved to the virtual memory of the user state. Thereby, zero copy of data can be achieved, and the data transmission speed is improved.

[0137] In some embodiments, after DMA completes the data transfer operation, the method provided in the embodiment of the present application may further include: ARM obtains the execution result of the DMA data transfer.

[0138] The execution result of the DMA data transmission can be used to indicate the situation of the DMA data transmission execution. For example, the execution result can include one or more of whether the data transmission execution timeout, whether the data can be transmitted, and whether the data is successfully transmitted.

[0139] In a possible implementation, the DMA hardware driver can return the DMA execution result to the ARM kernel-mode driver. Correspondingly, the ARM user-mode application can obtain the DMA execution result through the DMA hardware driver.

[0140] In one example, the indication information may also include the duration of executing the data transmission. Thus, after the DMA completes the data transmission, it may determine whether the data transmission has timed out according to the duration of executing the data transmission.

[0141] In another example, after the DMA completes the data transmission operation, it can determine whether the data is successfully transmitted according to the response information. For example, if the DMA receives the response information from the data receiving end, it is determined that the data is successfully transmitted. If the DMA does not receive the response information from the data receiving end, it is determined that the data transmission fails.

[0142] Based on this embodiment, ARM can determine the data transmission status of DMA execution according to the execution result fed back by DMA. In this way, ARM can determine whether there is an abnormality in the data transmission process of DMA execution according to the data transmission status of DMA.

[0143] In some embodiments, in order to detect whether data is consistent during DMA data transmission, the method provided in the embodiment of the present application may further include: verifying the DMA data transmission.

[0144] In one example, the data transmission verification of DMA may include verification at the software level and verification at the hardware level. The verification at the software level and verification at the hardware level are described below respectively.

[0145] 1. Verification at the software level.

[0146] The software-level verification may include: verifying whether the data transmission is consistent through a set of increasing numbers. A set of increasing numbers may include multiple values ​​that increase in sequence. For example, a set of increasing numbers may include 11, 12, 13, etc.

[0147] In a possible implementation, for the signal transmitting end, the signal transmitting end can send a set of increasing numbers through ARM. ARM can send the set of increasing numbers to DMA through a communication channel. After receiving the increasing numbers sent from ARM, DMA can send the received increasing numbers to FPGA. In this way, the signal transmitting end can compare the increasing numbers received by FPGA with the increasing numbers sent by ARM to determine whether the data transmitted by DMA is consistent. For example, the increasing numbers sent by ARM are 11, 12, 13, and the increasing numbers received by FPGA are 11, 12, 13, which means that the data transmitted by DMA is consistent. For another example, the increasing numbers sent by ARM are 11, 12, 13, and the increasing numbers received by FPGA are 11, 12, 14, which means that there is a data jump in the data transmitted by DMA, that is, the data transmitted by DMA is inconsistent.

[0148] Furthermore, the DMA can perform cyclic verification to verify the data transmission process of the DMA. For example, the DMA can continuously increase the amount of data in the incrementing number until a data jump occurs.

[0149] In another possible implementation, for the signal receiving end, the signal receiving end can store a set of incrementing numbers in the memory of ARM, and instruct ARM to transmit the data in the memory to FPGA. After receiving the instruction information, ARM can read the stored incrementing numbers from the memory of ARM, and transmit the acquired incrementing numbers to FPGA. In this way, the signal receiving end can compare the incrementing numbers in the ARM memory with the incrementing numbers received by FPGA to determine whether the data transmitted by DMA is consistent.

[0150] 2. Verification at the hardware level.

[0151] The hardware level verification may refer to verifying whether the data transmitted in the above-mentioned multiple modules are consistent through a logic analyzer. Figure 4 For the processing device shown, a logic analyzer can be used to verify whether the data transmitted by the modules in the processing device are consistent.

[0152] In one example, the signal receiving end and / or the signal sending end may detect, through a logic analyzer, whether the data sent by the FIFO module is consistent with the data received.

[0153] In another example, the signal receiving end and the signal sending end can detect whether the data on the DMA transmission bus is consistent with the currently transmitted data.

[0154] Based on the above technical solution, by verifying the consistency of DMA transmission data, it is possible to detect whether DMA transmission is abnormal.

[0155] In some embodiments, Figure 6As shown, in the embodiment of the present application, the DMA method may include S601 to S604.

[0156] S601. The user layer calls the transceiver interface.

[0157] Among them, S601 can refer to the above Figure 1 S1 in the text will not be described in detail.

[0158] S602: The user interface triggers a system interrupt.

[0159] S603: The application program on the ARM side initiates a jump request, triggering a soft interrupt of the operating system, so that the operating system jumps to the kernel state.

[0160] The kernel state finds the corresponding registered kernel state program interface according to the soft interrupt number and the program list corresponding to the user program request function, thereby continuing the kernel state operation.

[0161] S604. After jumping to the kernel state, the operating system opens the registered driver function bound to the driver device file according to the instruction matching the soft interrupt of the user state, and implements the function of the driver device file through the calling interface corresponding to the registered driver function.

[0162] Among them, the application on the ARM side will trigger multiple soft interrupt jumps. When the kernel starts, the kernel-state driver will register all interfaces in the corresponding system call list. The kernel driver will also create device driver files and register device driver files. When the application opens the device driver file, the corresponding function interface in the kernel-state driver can be bound to the call interface in the user-state application. Subsequent applications can use the corresponding operation interface to control hardware device operations.

[0163] For example, the functions of calling the interface may include memory mapping or transceiver functions.

[0164] In the kernel state, the three-layer model of the DMA engine is no longer used, and the operation of the DMA hardware is implemented through direct register driving. Corresponding to the data transmission direction of the DMA driver, the receiving channel and the sending channel are separated into different drivers, and the DMA channel management is implemented.

[0165] Based on this technical solution, by writing the corresponding device tree file, and through the driver, the properties and characteristic values ​​of the corresponding device tree node are obtained, such as register address, physical memory address and length mapping, etc. In this way, the matching of different startup firmware is achieved through the linkage between the device driver and the corresponding device tree.

[0166] In some embodiments, in the embodiments of the present application, a software development kit (SDK) is used to complete the debugging of the driver and verify the function of the DMA. For example, the read and write functions of the ARM side can be mapped to corresponding call instructions so that the user-mode application can instruct the ARM side to perform read and write operations through the call instructions.

[0167] In some other embodiments, in the embodiments of the present application, the read and write operations of DMA can also be controlled by the application in the user state. For example, the read and write process of the entire processing device can be controlled by the application in the user state. In this way, the memory application and interface call in the kernel state can be bypassed.

[0168] In some other embodiments, data transmission and processing are directly implemented through the FPGA end, so that the ARM end is not required to read the data.

[0169] In some embodiments, in combination with the above-mentioned device driver files, in the embodiments of the present application, corresponding device description texts can be generated for different device driver files. The device description file can include the name, function, etc. of the device driver file.

[0170] For different device driver files, the device driver file on the client driver side only needs to modify its mapping name and then match its corresponding client driver, so that the software layer can find the corresponding communication channel through the platform driver and map the corresponding hardware interface to achieve convenient access at the driver level.

[0171] The embodiment of the present application can divide the data transmission device into functional modules or functional units according to the above method example. For example, each functional module or functional unit can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules or functional units. Among them, the division of modules or units in the embodiment of the present application is schematic, which is only a logical function division, and there may be other division methods in actual implementation.

[0172] like Figure 7 , which is a schematic diagram of the structure of a data transmission device provided in an embodiment of the present application, the device includes: an establishing unit 701 and a sending unit 702.

[0173] The establishing unit 701 is configured to establish a communication channel with the DMA.

[0174] The sending unit 702 is configured to send first instruction information for instructing the ARM to perform a data transfer operation on target data in the virtual memory to the DMA through the communication channel. The virtual memory is in the user state.

[0175] In some embodiments, the device further includes a mapping unit 703. The mapping unit 703 is configured to: map the physical memory used by DMA to the virtual memory of the user state.

[0176] In some embodiments, the sending unit 702 is further configured to: send second indication information for indicating the data length of the target data to the DMA.

[0177] In some embodiments, the device further includes an acquisition unit 704. The acquisition unit 704 is configured to: acquire an execution result from the DMA, the execution result including one or more of whether the DMA transfer of target data has timed out, whether the transfer of target data has been completed, and whether the transfer of target data has been successful. The ARM determines whether the operation of the DMA to perform data transfer is abnormal based on the execution result.

[0178] In some embodiments, the sending unit 702 is further configured to: send multiple increasing numbers to the DMA, and obtain the increasing numbers received by the receiving end from the receiving end. The multiple increasing numbers include multiple numbers that increase in sequence. The ARM confirms whether the data transmitted by the DMA is consistent based on the multiple increasing numbers sent and the increasing numbers received by the receiving end.

[0179] In some embodiments, ARM is connected to FPGA, and FPGA is used to obtain data related to DMA transmission through a logic analyzer and determine whether the increment number of DMA transmission is consistent based on the data related to DMA transmission, wherein the data related to DMA transmission includes data sent and received by a FIFO module connected to DMA, data on the DMA transmission bus, and data sent by DMA.

[0180] like Figure 8 , which is a schematic diagram of the structure of a data transmission device provided in an embodiment of the present application, the device includes: an establishing unit 801, a receiving unit 802, and a processing unit 803.

[0181] The establishing unit 801 is configured to: establish a communication channel with the ARM in response to a configuration operation.

[0182] The receiving unit 802 is configured to: receive first instruction information from the ARM through a communication channel for instructing to perform a data transfer operation on target data in the virtual memory, wherein the virtual memory is in a user state.

[0183] The processing unit 803 is configured to: transmit the target data in the virtual memory according to the first indication information.

[0184] In some embodiments, the receiving unit 802 is further configured to: receive second indication information from the ARM for indicating the data length of the target data. The processing unit is further configured to: transmit the target data according to the second indication information.

[0185] In some embodiments, the execution result of DMA data transmission is used to reflect whether the operation of DMA data transmission is abnormal. The execution result includes one or more of whether DMA transmission of target data has timed out, whether the transmission of target data has been completed, and whether the target data has been successfully transmitted.

[0186] In some embodiments, the receiving unit 802 is further configured to receive multiple increasing numbers from the ARM, the multiple increasing numbers including multiple numbers increasing in sequence. The sending unit 804 is further configured to send the multiple increasing numbers to the receiving end.

[0187] When implemented by hardware, the acquisition unit in the embodiment of the present application can be integrated on the communication interface, and the processing unit can be integrated on the processor. Fig. 9 shown.

[0188] Fig. 9 The processing device involved in the above embodiment is shown, which can be or be applied to the above data processing device. Processor 902 and communication interface 903. Processor 902 is used to control and manage the actions of the device, for example, to execute the steps performed by the above processing unit 803, and / or to execute other processes of the technology described herein. Communication interface 903 is used to support communication between the device and other network entities, for example, to execute the steps performed by the above sending unit 702 or receiving unit 802. The device may also include a memory 901 and a bus 904, and the memory 901 is used to store program codes and data of the device.

[0189] Among them, the memory 901 can be a memory in the device, etc., and the memory can include a volatile memory, such as a random access memory; the memory can also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory can also include a combination of the above types of memory.

[0190] The processor 902 may be a processor that implements or executes various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of the present application. The processor may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The processor may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of the present application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

[0191] The bus 904 may be an Extended Industry Standard Architecture (EISA) bus, etc. The bus 904 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0192] Fig. 9 The device in the embodiment may also be a chip. The chip includes one or more than two (including two) processors 902 and a communication interface 903.

[0193] Optionally, the chip further includes a memory 905, which may include a read-only memory and a random access memory, and provides operation instructions and data to the processor 902. A portion of the memory 905 may also include a non-volatile random access memory (NVRAM).

[0194] In some implementations, the memory 905 stores the following elements, execution modules or data structures, or a subset thereof, or an extended set thereof.

[0195] In the embodiment of the present application, the corresponding operation is performed by calling the operation instruction stored in the memory 905 (the operation instruction may be stored in the operating system).

[0196] Some embodiments of the present disclosure provide a computer-readable storage medium (e.g., a non-transitory computer-readable storage medium), which stores computer program instructions. When the computer program instructions are executed on a computer (e.g., a server), the computer executes the model training method and the face recognition method as described in any of the above embodiments.

[0197] Exemplarily, the above-mentioned computer-readable storage media may include, but are not limited to: magnetic storage devices (e.g., hard disks, floppy disks or magnetic tapes, etc.), optical disks (e.g., CDs (Compact Disks), DVDs (Digital Versatile Disks), etc.), smart cards and flash memory devices (e.g., EPROMs (Erasable Programmable Read-Only Memory), cards, sticks or key drives, etc.). The various computer-readable storage media described in the present disclosure may represent one or more devices and / or other machine-readable storage media for storing information. The term "machine-readable storage medium" may include, but is not limited to, wireless channels and various other media capable of storing, containing and / or carrying instructions and / or data.

[0198] Some embodiments of the present disclosure also provide a computer program product, for example, the computer program product is stored on a non-transitory computer-readable storage medium. The computer program product includes computer program instructions, and when the computer program instructions are executed on a computer (for example, a server), the computer program instructions cause the computer to execute the model training method and face recognition method described in the above embodiments.

[0199] Some embodiments of the present disclosure also provide a computer program. When the computer program is executed on a computer (eg, a server), the computer program enables the computer to execute the model training method and the face recognition method as described in the above embodiments.

[0200] The beneficial effects of the above-mentioned computer-readable storage medium, computer program product and computer program are the same as the beneficial effects of the model training method and face recognition method described in some of the above-mentioned embodiments, and will not be repeated here.

[0201] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0202] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0203] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0204] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any changes or substitutions that can be thought of by any person skilled in the art within the technical scope disclosed in the present disclosure should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A data transmission method, characterized in that: Applied to an advanced reduced instruction set computer ARM, the method comprises: Establish a communication channel with direct memory access DMA; First indication information is sent to the DMA through the communication channel, where the first indication information is used to instruct to perform a data transfer operation on target data in a virtual memory, where the virtual memory is in a user state.

2. The method according to claim 1, characterized in that The method further comprises: The physical memory used by the DMA is mapped to a user-mode virtual memory, and the target data is stored in the virtual memory.

3. The method according to claim 1 or 2, characterized in that: The method further comprises: Second indication information is sent to the DMA, where the second indication information is used to indicate a data length of the target data.

4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Acquire an execution result of the DMA, wherein the execution result includes one or more of whether the DMA transmission of the target data has timed out, whether the transmission of the target data has been completed, and whether the target data has been successfully transmitted; According to the execution result, it is determined whether the operation of the DMA to execute data transmission is abnormal.

5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: Sending a plurality of increasing numbers to the DMA, and acquiring the increasing numbers received by the receiving end from a receiving end; wherein the plurality of increasing numbers include a plurality of numbers increasing in sequence, and the receiving end is used to receive the data sent by the DMA; Whether the data of the DMA transmission is consistent is determined according to the multiple incrementing numbers sent and the incrementing numbers received by the receiving end.

6. The method according to claim 5, characterized in that The ARM is connected to a field programmable gate array FPGA, and the FPGA is used to obtain data related to DMA transmission through a logic analyzer, and determine whether the increment number of the DMA transmission is consistent based on the data related to the DMA transmission, wherein the data related to the DMA transmission includes data sent and received by a FIFO module connected to the DMA, data on a transmission bus of the DMA, and data sent by the DMA.

7. A data transmission method, characterized in that: Applied to DMA, the method comprises: In response to the configuration operation, establishing a communication channel with the ARM; Receiving first indication information from the ARM through the communication channel, the first indication information is used to instruct to perform a data transfer operation on target data in a virtual memory, the virtual memory being in a user state; According to the first indication information, the target data in the virtual memory is transmitted.

8. The method according to claim 7, characterized in that The method further comprises: receiving second indication information from the ARM, where the second indication information is used to indicate a data length of the target data; The data length of the target data to be transmitted is determined according to the second indication information.

9. The method according to claim 7 or 8, characterized in that: The execution result of the DMA transmitting the target data includes one or more of whether the DMA transmitting the target data has timed out, whether the transmission of the target data has been completed, and whether the target data has been successfully transmitted; the execution result is used to reflect whether the operation of the DMA executing the data transmission is abnormal.

10. The method according to any one of claims 7 to 9, characterized in that: The method further comprises: receiving a plurality of incrementing numbers from the ARM, the plurality of incrementing numbers comprising a plurality of sequentially increasing numbers; The plurality of incrementing numbers are sent to a receiving end.

11. A data transmission device, characterized in that: Applied to ARM, the device comprises: The establishing unit is configured to: establish a communication channel with the DMA; The sending unit is configured to: send first indication information to the DMA through the communication channel, wherein the first indication information is used to indicate to perform a data transfer operation on target data in the virtual memory, and the target memory is in the user state.

12. A data transmission device, characterized in that: Applied to DMA, the device comprises: An establishing unit is configured to: establish a communication channel with the ARM in response to a configuration operation; A receiving unit is configured to: receive first indication information from the ARM through the communication channel, wherein the first indication information is used to indicate to perform a data transmission operation on target data, wherein the data transmission operation includes transmitting target data in a virtual memory, wherein the virtual memory is in a user state; The processing unit is configured to: transmit the target data in the virtual memory according to the first indication information.

13. A data transmission device, characterized in that: include: Processor and memory; The memory stores computer instructions, and the processor is used to run the computer program to implement the data transmission method according to any one of claims 1 to 6.

14. A data transmission device, characterized in that: include: A processor and a memory; the memory stores computer instructions, and the processor is used to run the computer program to implement the data transmission method as described in any one of claims 7 to 10.

15. A non-transitory computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions. When a computer executes the instructions, the computer executes the data transmission method described in any one of claims 1 to 6, or executes the data transmission method described in any one of claims 7 to 10.