Data transmission method, and apparatus
Through direct register driver and logic analyzer verification, the problem of CPU resource consumption and inconsistency in data transmission is solved, efficient and accurate data transmission is achieved, and the impact of DMA engine and controller driver is avoided.
Patent Information
- Application Number
- PCT/CN2024/081539
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-27
- Filing Date
- 2024-03-13
- Publication Date
- 2024-10-31
AI Technical Summary
When implementing data transmission with existing technology, it is difficult to avoid the problems of CPU resource consumption and data inconsistency. Especially in zero-copy technology, the adaptation of the DMA engine driver and the call of the controller driver affect the efficiency and consistency of data transmission.
Through direct register driving, avoid using DMA engine and DMA controller driver, directly configure the hardware address memory for read and write operations, establish a communication channel between ARM and DMA, realize data transmission, and verify data consistency through a logic analyzer .
It realizes efficient data transmission and maintains data consistency without using DMA engine and DMA controller driver, avoids the influence of operating system kernel driver, and improves the speed and accuracy of data transmission.
Smart Images

Figure CN2024081539_31102024_PF_FP_ABST
Abstract
Description
Data transmission method and device
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on April 27, 2023, with application number 202310477797.3 and application name “Data Transmission Method and Device”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present disclosure relates to the field of computer technology, and in particular to a data transmission method and device. Background Art
[0003] In computer technology, data transmission can be achieved using zero-copy technology to reduce CPU (central processing unit) usage. Zero-copy technology allows data to be copied from one storage area to another without requiring the CPU, thus conserving CPU resources. Furthermore, zero-copy technology reduces the overhead associated with context switching between user-mode and kernel-mode address spaces.
[0004] Summary of the Invention
[0005] In one aspect, a data transmission method is provided, comprising: establishing a communication channel between an advanced reduced instruction set computer (ARM) and a direct memory access (DMA) device, and sending, via the communication channel, first instruction information to the DMA device for instructing the ARM device to perform a data transmission operation on target data in a virtual memory, wherein the virtual memory is in user mode.
[0006] In some embodiments, the method further includes: ARM mapping the physical memory used by the DMA into a virtual memory, and storing the target data in the virtual memory.
[0007] 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.
[0008] 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 the target data has been completed, and whether the transfer of the target data has been successful. Based on the execution result, the ARM determines whether the DMA data transfer operation is abnormal.
[0009] In some embodiments, the method further includes: the ARM sending a plurality of incrementing numbers to the DMA, and obtaining the incrementing numbers received by the receiving end from the receiving end. The plurality of incrementing numbers includes a plurality of sequentially increasing numbers. 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.
[0010] 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 based on 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.
[0011] In another aspect, a data transfer method is provided, comprising: establishing a communication channel between a DMA and an ARM, and receiving, through the communication channel, first instruction information from the ARM, instructing the ARM to perform a data transfer operation on target data. Performing the data transfer operation on the target data includes obtaining the target data based on a memory address of the target data, or sending the target data to the memory address of the target data. The DMA performs the transfer operation on the target data based on the first instruction information.
[0012] In some embodiments, the method further includes: the DMA receiving second indication information from the ARM for indicating the data length of the target data.
[0013] In some embodiments, the execution result of DMA transmission of target data includes one or more of whether DMA transmission of target data has timed out, whether transmission of target data has been completed, and whether transmission of target data has been successful. The execution result is used to reflect whether the operation of DMA transmission of data is abnormal.
[0014] In some embodiments, the method further includes: the DMA receiving a plurality of incrementing numbers from the ARM, the plurality of incrementing numbers including a plurality of sequentially increasing numbers, and the DMA sending the plurality of incrementing numbers to a receiving end, the receiving end being configured to receive the data sent by the DMA.
[0015] On the other hand, a data transmission device is provided, which is applied to ARM and includes: an establishing unit and a sending unit.
[0016] The establishing unit is configured to establish a communication channel with the DMA.
[0017] 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 a user state.
[0018] In some embodiments, the device further includes a mapping unit configured to: map the physical memory used by the DMA to a user-mode virtual memory, and store the target data in the virtual memory.
[0019] 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.
[0020] In some embodiments, the apparatus further includes an acquisition unit configured to acquire 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 the target data has been completed, and whether the transfer of the target data has been successful. Based on the execution result, the ARM determines whether the DMA data transfer operation is abnormal.
[0021] In some embodiments, the transmitting unit is further configured to: transmit a plurality of incrementing numbers to the DMA and obtain the incrementing numbers received by the receiving end from the receiving end. The plurality of incrementing numbers includes a plurality of sequentially increasing numbers. The ARM confirms whether the data transmitted by the DMA is consistent based on the plurality of incrementing numbers transmitted and the incrementing numbers received by the receiving end.
[0022] In some embodiments, the ARM is connected to the FPGA, and 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 based on 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.
[0023] In another aspect, a data transmission device is provided, comprising: an establishing unit, a receiving unit, and a processing unit. The establishing unit is configured to establish a communication channel with the ARM in response to a configuration operation. The receiving unit is configured to receive, via the communication channel, first indication information from the ARM indicating a data transmission operation to be performed on target data in a virtual memory. The virtual memory is in user mode. The processing unit is configured to transmit the target data in the virtual memory according to the first indication information.
[0024] In some embodiments, the receiving unit is further configured to: receive second indication information from the ARM 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.
[0025] In some embodiments, the execution result of the DMA transmission of the target data 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.
[0026] In some embodiments, the receiving unit is further configured to receive a plurality of incrementing numbers from the ARM, wherein the plurality of incrementing numbers include a plurality of numbers that increase in sequence. The sending unit is further configured to send the plurality of incrementing numbers to the receiving end.
[0027] 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 configured to execute a computer program or instruction to implement the data transmission method of any of the above embodiments.
[0028] In another aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer program instructions, which, when executed on a computer (eg, a server), cause the computer to execute the data transmission method as described in any of the above embodiments.
[0029] In another aspect, a computer program product is provided, comprising computer program instructions, which, when executed on a computer (eg, a server), cause the computer to perform the data transmission method according to any one of the above embodiments.
[0030] 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 according to any one of the above embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] To more clearly illustrate the technical solutions of the present disclosure, the following briefly introduces the drawings required for use in some embodiments of the present disclosure. Obviously, the drawings described below are only drawings of some embodiments of the present disclosure, and those skilled in the art can also derive other drawings based on these drawings. Furthermore, the drawings described below are schematic diagrams and are not intended to limit the actual dimensions of the products, actual processes of the methods, actual timing of signals, and the like involved in the embodiments of the present disclosure.
[0032] FIG1 is a schematic diagram of a driving process of a DMA client according to some embodiments;
[0033] FIG2 is a schematic diagram of a hardware device according to some embodiments;
[0034] FIG3 is a structural diagram of a signal transmitting end and a signal receiving end according to some embodiments;
[0035] FIG4 is a schematic diagram of a data processing apparatus according to some embodiments;
[0036] FIG5 is a flow chart of a data transmission method according to some embodiments;
[0037] FIG6 is a flow chart of a DMA method according to some embodiments;
[0038] FIG7 is a schematic diagram of a data transmission device according to some embodiments;
[0039] FIG8 is a schematic diagram of a data transmission device according to some embodiments;
[0040] FIG9 is a structural diagram of a data transmission device according to some embodiments. DETAILED DESCRIPTION
[0041] 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 embodiments described are only some embodiments of the present disclosure, not all embodiments. Based on the embodiments provided by the present disclosure, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of the present disclosure.
[0042] Unless the context requires otherwise, throughout the specification and claims, the term "comprise" and its other forms, 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" are intended to indicate that a particular feature or characteristic associated with the embodiment or example is 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 may be included in any one or more embodiments or examples in any appropriate manner.
[0043] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of the technical features indicated. Therefore, 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.
[0044] 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.
[0045] “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.
[0046] “A and / or B” includes the following three combinations: A only, B only, and a combination of A and B.
[0047] 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 [stated condition or event] is detected" are optionally interpreted to mean "upon determining" or "in response to determining" or "upon detecting [stated condition or event]" or "in response to detecting [stated condition or event]," depending on the context.
[0048] The use of "adapted to" or "configured to" herein is intended to be open and inclusive language that does not exclude devices adapted or configured to perform additional tasks or steps.
[0049] 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.
[0050] In some scenarios, zero-copy can be achieved through the data transfer functionality of the Advanced Extensible Interface Direct Memory Access (AXIDMA) core. For example, on devices running the Linux operating system, the AXIDMA core functionality can be implemented through the client driver layer of the system, combined with the system's DMA engine framework application programming interface (API) and the system's underlying driver code.
[0051] In one example, as shown in FIG1 , a DMA client driving process is shown, which may include S1 to S6 .
[0052] S1. The user layer calls the transceiver interface.
[0053] The user layer calling the sending / receiving interface may include: opening a virtual hardware device, an ARM side program mapping the physical memory used by DMA to virtual memory, and operating the sending / receiving interface.
[0054] S2. The user interface triggers a soft interrupt in the operating system.
[0055] S3. The operating system calls the driver interface through the ARM user mode application.
[0056] The operating system can call an interface to enable the user-mode application to jump to the kernel-mode driver through a software interrupt to execute the driver's program work (such as running the kernel's corresponding registration function). After the driver's work is completed, the operating system jumps back to the user-mode application and feedbacks the kernel-mode driver's execution results.
[0057] 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.
[0058] Among them, the kernel state driver can establish a communication channel with the user state application. In this way, the kernel state can complete the configuration operations (such as memory mapping, function callback, etc.) of DMA through the communication channel.
[0059] S5. The kernel state is driven by the DMA client and jumps to the DMA engine through the API interface. The DMA engine driver drives the underlying DMA controller and completes DMA channel application, channel management for sending and receiving data, status monitoring, queue control and other operations.
[0060] S6. The DMA controller driver configures and accesses the DMA hardware to implement the actual driving of the DMA hardware.
[0061] Based on the above-mentioned driving process, a block diagram of a hardware device is also provided. As shown in Figure 2, the hardware device may include multiple modules. For example, the multiple modules may include an xlconstant module, an axcache_coherent module, a core module, an interconnect module (ps8_0_axi_periph), a tready_high module, an axi_smc module, a DMA, an axi_gpio module, a FIFO module, a logic module (util_reduced_logic), an Xlconcat module 0, and a reset module (rst_ps8_0_99M). The interfaces and connection methods in the above-mentioned multiple modules can be shown in Figure 2 and will not be described in detail.
[0062] 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 it 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.
[0063] The above-mentioned hardware-based coherent system is implemented by configuring a cache coherent interconnect (CCI) configuration and a bootgen tool before the core is disconnected.
[0064] In the embodiments of the present application, to prevent the operating system and critical data from being corrupted by user programs, the processor's execution state is divided into kernel state and user state. User programs run in user state, and the operating system kernel runs in kernel state. Kernel state is the state in which the operating system hypervisor is executed. It can execute all instructions, including privileged instructions, and can access all storage spaces in the system. User state is the state in which user programs are executed. They cannot execute privileged instructions and can only access user address space.
[0065] 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:
[0066] Based on the above driver code, DMA data transmission can be implemented based on the above hardware device, but data inconsistency issues may occur. In particular, through data verification on the ARM side and data verification on the field programmable gate array (FPGA) side, the verification data may jump.
[0067] In view of this, the embodiment of the present application provides a technical solution that 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 there is no need for 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.
[0068] In the embodiment of the present application, the consistency of the 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.
[0069] 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 mode and kernel mode architecture, technical implementation of LINUX user mode and kernel mode jump, AXIDMA-internet protocol (IP) core control, DMA engine, DMA controller driver, and DMA-client driver.
[0070] Among them, UNIX-C programming can include: how to implement the user-side program to call 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 DMA, etc.
[0071] In LINUX user state and kernel state, how does user state interact with the corresponding interface in kernel state through the corresponding interface, and how to achieve seamless jump between user state and kernel state.
[0072] The implementation of LINUX user mode and kernel mode soft interrupts includes: how to jump to the corresponding driver interface through the underlying interrupt mapping, and how to bind the jump relationship between corresponding file operations.
[0073] 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.
[0074] In one application scenario, the technical solutions of the embodiments of the present application can be applied to a millimeter wave satellite communication system. The millimeter wave satellite communication system may include a signal transmitter and a signal receiver. The signal transmitter is communicatively connected to the signal receiver. For example, the signal transmitter may be a satellite or other device capable of transmitting data (such as a drone). The signal receiver may be a mobile device, a network device, a ground receiving device, or the like.
[0075] The signal transmitting end may transmit data to the signal transmitting end. For example, the data may include video data, audio data, and / or other types of data (such as fifth generation (5G) data).
[0076] 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 multiple devices that can realize the transmission of video data. For example, as shown in FIG3 , 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.
[0077] 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.
[0078] After receiving the video data from the camera, the video encoder can encode the received video data to obtain corresponding code stream data and send the code stream data to the FPGA core board.
[0079] After receiving the bitstream data from the video encoder, the FPGA core board can work in conjunction with the radio frequency board. This allows the radio frequency board to transmit the bitstream data via the antenna. For example, the radio frequency board can convert the bitstream data into a microwave signal for transmission.
[0080] For the signal receiving end, after receiving the code stream data from the signal transmitting end, the signal receiving end can decode the code stream data and display the video data.
[0081] In one example, as shown in FIG3 , a signal receiving end is provided in an embodiment of the present application. 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. The multiple devices may be connected via a network cable, a switch, a radio frequency device, etc.
[0082] 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.
[0083] The RF board can be used to convert analog electrical signals into digital signals through a 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.
[0084] After receiving the digital signal from the RF board, the FPGA core board can analyze the received digital signal through an algorithm and transmit the analyzed data to the ARM. The analyzed data is the bit stream data.
[0085] ARM can be used to transmit code stream data to the video decoder.
[0086] The video decoder can be used to decode the bitstream data to obtain the corresponding video data and transmit the video data to the display. For example, the video decoder can transmit the video data to the display via the HDMI interface. The display can be used to display the received video data.
[0087] The video decoder can use a decoding algorithm to decode the bitstream data to obtain video data. The decoding algorithm can be set as needed, for example, it can be an H265 algorithm, without limitation.
[0088] From the above description, it can be seen that at the signal sending end, after the data reaches the ARM side 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 of the FPGA core board (that is, the FPGA side) for the FPGA side to obtain processed data.
[0089] 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 code stream data, the code stream data needs to be transmitted from the FPGA end to the ARM end.
[0090] In one example, the signal receiving end can use DMA to transfer data between the FPGA and ARM. DMA can leverage the hardware capabilities of DMA devices to quickly transfer large amounts of data from the ARM to the FPGA, or vice versa, without requiring CPU time.
[0091] 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 of the AXIDMA core to obtain data from the FPGA and pass the code stream data to the video encoder.
[0092] For example, you can write a driver for the DMA hardware module so that the ARM program can call the driver and implement the hardware-driven DMA function. In this way, the code stream data received by the ARM side can be transmitted to the FPGA side, establishing a data link channel.
[0093] In an 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 of 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 data by means of a network cable to form a closed loop of data transmission.
[0094] 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 up in the kernel-side driver work. The driver layer directly provides drivers for user-level programs, allowing the user level to directly call DMA read and write operations.
[0095] In one possible implementation, as shown in FIG4 , a processing device is provided in an embodiment of the present application. The processing device can be applied to the FPGA in the signal transmitting end and / or the FPGA in the signal receiving end shown in FIG3 .
[0096] 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 these multiple modules can be shown in Figure 4 and are not described in detail.
[0097] The functions of the above modules are described below.
[0098] 1. Clock management module.
[0099] The clock management module can be used to generate multiple application clocks from a 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.
[0100] 2. Channel inline module.
[0101] The channel inline module can provide one input and multiple outputs, or one output and multiple inputs. In the embodiment of the present application, two data channels are generated on the output side through a data channel on the ARM side. One data channel can be used to send data to the DMA, and the other data channel can be used to transfer the looped data to the ARM via DMA.
[0102] 3. Data displacement channel module.
[0103] Among them, the data shift channel module can be used to shift the input data to the high bit, so that the data of multiple inputs can be combined into the data of one channel for output in the form of high and low bits. In the embodiment of the present application, based on the data shift channel module, the DMA can send a receive completion interrupt signal to the ARM side through a data channel, or send a completion interrupt signal.
[0104] 4.DMA.
[0105] The DMA can also be a DMA IP core. The DMA can implement DMA data transfer. In the embodiment of the present application, based on the DMA and the corresponding driver, data transmission from the ARM end to the FPGA end and data reading from the FPGA end to the ARM end can be implemented.
[0106] 5. System data acquisition module.
[0107] 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 from the FIFO module, data in the data channel, and verify whether the sent data is consistent with the received data.
[0108] 6. FIFO module.
[0109] The FIFO module can be used to control the flow input and output of the FPGA. In the embodiment of the present application, after receiving the data, the DMA can transfer it to the FIFO module. The FIFO module can transfer the data to the DMA in a first-in, first-out manner and realize data looping through the DMA output driver.
[0110] 7. Processing system module.
[0111] 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 side and the FPGA side.
[0112] It should be noted that the above-mentioned 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.
[0113] The following will describe in detail the implementation of the embodiment of the present application in conjunction with the accompanying drawings.
[0114] As shown in FIG5 , the technical solution provided in the embodiment of the present application may include: S501 to S503 .
[0115] S501. ARM establishes a communication channel with DMA.
[0116] 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.
[0117] In one example, the ARM may be configured with an application. The application 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.
[0118] 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, DMA operation can be implemented at the driver layer, and the driver device file for generating the communication channel, registering the 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.
[0119] It should be noted that in the embodiments of the present application, a DMA can be configured with multiple drivers. For example, it can include a DMA client driver, an engine driver, and a controller driver. 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.
[0120] The client driver is used to create and manage communication channels, manage data buffers within these channels, and provide a calling interface and driver interface for device files serving the application layer. The engine driver abstracts the DMA driver. This allows the client driver to remain unchanged for different types of DMA hardware controller drivers. By writing a driver for any type of DMA hardware controller, it can be linked to the Linux kernel.
[0121] Furthermore, in an embodiment of the present application, the registration of driver device files, the registration of calling interfaces corresponding to driver device files, and the automatic creation of / sys / class and / proc / devices devices can be realized through character devices and corresponding driver framework windows.
[0122] 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.
[0123] S502: ARM sends first indication information to DMA via a communication channel. Correspondingly, DMA receives the first indication information from ARM.
[0124] 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 a mapping relationship exists 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 to be transferred. The first indicator may be a number and / or a character.
[0125] In one example, the ARM may send a first indication message to the kernel driver through the operating system. After receiving the first indication message, the kernel driver may determine the virtual memory corresponding to the data based on the first indication message, and determine the data transfer operation to be performed based on the first indicator. The kernel-mode driver may receive the configuration information corresponding to the first indication message and send the configuration information to the DMA. In this way, the DMA may determine the data transfer operation to be performed based on the configuration information.
[0126] Furthermore, in an embodiment of the present application, to facilitate more accurate data transmission by the DMA, the ARM may also send second indication information to the 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 characters of the target data. The DMA may determine the data length of the target data to be acquired or sent based on the second indication information. Subsequently, the DMA may accurately determine the size of the target data to be transmitted based on the data length of the target data.
[0127] S503. DMA transmits target data according to the first instruction information.
[0128] 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.
[0129] In one example, in combination with FIG. 4 , after receiving the first indication information, the DMA may send data to the FIFO or obtain data from the FIFO module to implement a closed loop of data.
[0130] In another example, in combination with the above-mentioned video data transmission scenario, when the device shown in Figure 4 is applied to the FPGA of the above-mentioned signal sending end, the first indication information can be used to instruct the parsed data to be transmitted from the FPGA end to the ARM end.
[0131] In another example, in combination with the above-mentioned video data transmission scenario, when the device shown in Figure 4 is applied to the FPGA of the above-mentioned signal receiving end, the first indication information can be used to indicate that the code stream data is transmitted from the FPGA end to the ARM end.
[0132] Based on the technical solution in Figure 5, after the ARM establishes a communication channel with the DMA, it can use the DMA to perform data transfers. For example, the ARM can indicate information to the DMA through the established communication channel, so that the DMA can perform the corresponding data transfer operation based on the indicated information. In this way, data transfer can be achieved without the involvement of the CPU.
[0133] In some embodiments, in the embodiments of the present application, ARM can also map the physical memory used by DMA to user-mode virtual memory and store the target data in the virtual memory.
[0134] The physical memory used by DMA can be an external DDR4 memory connected to the ARM side.
[0135] 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.
[0136] In the embodiments of the present application, the operating system may include user space and kernel space. For example, for a 32-bit operating system, 0-3G may be used as user space, and 3-4G may be used as kernel space. User space or user-side applications cannot directly access the physical addresses of kernel space.
[0137] In one possible implementation, ARM can allocate two blocks of memory of a certain size from physical memory using reserved memory as physical memory for DMA. ARM can then remap the reserved physical memory to user-mode virtual memory using virtual memory remapping. This allows user-mode applications to directly control DMA physical memory using virtual memory methods through address access.
[0138] In the embodiments of the present application, the DMA physical memory can also be mapped to the user state via the driver. In this way, the DMA physical memory 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 is directly moved to the virtual memory of the user state. This can achieve zero copy of data and improve the data transmission speed.
[0139] In some embodiments, after the DMA completes the data transmission operation, the method provided in the embodiment of the present application may further include: the ARM obtains the execution result of the DMA data transmission.
[0140] 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 may include one or more of whether the data transmission execution timed out, whether the data can be transmitted, and whether the data is successfully transmitted.
[0141] In one 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.
[0142] In one example, the indication information may further include a duration of executing the data transmission. Thus, after completing the data transmission, the DMA may determine whether the data transmission has timed out based on the duration of executing the data transmission.
[0143] In another example, after completing a data transfer operation, the DMA can determine whether the data was successfully transferred based on the response information. For example, if the DMA receives a response from the data receiving end, the data transfer is determined to be successful. If the DMA does not receive a response from the data receiving end, the data transfer is determined to have failed.
[0144] Based on this embodiment, the ARM can determine the DMA data transmission status according to the execution result fed back by the DMA. In this way, the ARM can determine whether there is an abnormality in the DMA data transmission process according to the DMA data transmission status.
[0145] 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.
[0146] In one example, the data transmission verification of DMA may include software-level verification and hardware-level verification. The software-level verification and the hardware-level verification are described below.
[0147] 1. Verification at the software level.
[0148] Software-level verification can include verifying data transmission consistency using a set of incrementing numbers. The set of incrementing numbers can include multiple, sequentially increasing values. For example, the set of incrementing numbers can include 11, 12, 13, and so on.
[0149] In one possible implementation, the signal transmitter can send a set of incrementing numbers through the ARM. The ARM can send the set of incrementing numbers to the DMA through a communication channel. After receiving the incrementing numbers sent from the ARM, the DMA can send the received incrementing numbers to the FPGA. In this way, the signal transmitter can compare the incrementing numbers received by the FPGA with the incrementing numbers sent by the ARM to determine whether the data transmitted by the DMA is consistent. For example, if the incrementing numbers sent by the ARM are 11, 12, and 13, and the incrementing numbers received by the FPGA are 11, 12, and 13, it means that the data transmitted by the DMA is consistent. For another example, if the incrementing numbers sent by the ARM are 11, 12, and 13, and the incrementing numbers received by the FPGA are 11, 12, and 14, it means that there is a data jump in the data transmitted by the DMA, that is, the data transmitted by the DMA is inconsistent.
[0150] Furthermore, the DMA can perform cyclic verification to verify the DMA data transmission process. For example, the DMA can continuously increase the amount of data in the incrementing number until a data jump occurs.
[0151] In another possible implementation, the signal receiving end can store a set of incrementing numbers in the ARM's memory and instruct the ARM to transfer the data in the memory to the FPGA. After receiving the instruction, the ARM can read the stored incrementing numbers from the ARM's memory and transmit the obtained incrementing numbers to the FPGA. In this way, the signal receiving end can compare the incrementing numbers in the ARM's memory with the incrementing numbers received by the FPGA to determine whether the data transferred by DMA is consistent.
[0152] 2. Verification at the hardware level.
[0153] The hardware level verification may refer to verifying whether the data transmitted in the above-mentioned multiple modules are consistent through a logic analyzer. In conjunction with the processing device shown in FIG4 , the logic analyzer can be used to verify whether the data transmitted by the modules in the processing device are consistent.
[0154] In one example, the signal receiving end and / or the signal sending end may use a logic analyzer to detect whether the data sent by the FIFO module is consistent with the data received.
[0155] 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.
[0156] Based on the above technical solution, by verifying the consistency of DMA transmission data, it is possible to detect whether the DMA transmission is abnormal.
[0157] In some embodiments, as shown in FIG6 , in the embodiment of the present application, the DMA method may include S601 to S604 .
[0158] S601: The user layer calls the transceiver interface.
[0159] Here, S601 may refer to S1 in FIG1 , and will not be described in detail.
[0160] S602: The user interface triggers a soft interrupt of the operating system.
[0161] 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.
[0162] Among them, 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.
[0163] 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 in the user state, and implements the function of the driver device file through the calling interface corresponding to the registered driver function.
[0164] The ARM application triggers multiple soft interrupts. When the kernel boots, the kernel-mode driver registers all interfaces in the corresponding system call list. The kernel driver also creates and registers the device driver files. When the application opens the device driver file, it binds the corresponding function interface in the kernel-mode driver to the call interface in the user-mode application. The application can then use the corresponding operation interface to control the hardware device.
[0165] For example, the functions of calling the interface may include memory mapping or transceiver functions.
[0166] In kernel mode, the three-layer DMA engine model is no longer used. Instead, DMA hardware operations are implemented through direct register drivers. Corresponding to the data transfer direction of the DMA driver, the receive and transmit channels are separated into different drivers, and DMA channel management is implemented.
[0167] Based on this technical solution, by writing the corresponding device tree file and using the driver, the properties and feature values of the corresponding device tree node, such as register address, physical memory address, and length mapping, are obtained. In this way, through the linkage between the device driver and the corresponding device tree, compatibility of different boot firmware is achieved.
[0168] In some embodiments, a software development kit (SDK) is used to debug the driver and verify the DMA functionality. 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.
[0169] In some other embodiments, in the embodiments of the present application, the read and write operations of DMA can also be controlled by the user-mode application. For example, the read and write process of the entire processing device can be controlled by the user-mode application. In this way, the memory application and interface call in the kernel mode can be bypassed.
[0170] In some other embodiments, data transmission and processing are directly achieved through the FPGA side, so that the ARM side does not need to read the data.
[0171] 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.
[0172] 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.
[0173] In the embodiment of the present application, the data transmission device can be divided 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-mentioned 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 and is only a logical functional division. In actual implementation, there may be other division methods.
[0174] As shown in FIG7 , it is a structural diagram 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 .
[0175] The establishing unit 701 is configured to establish a communication channel with the DMA.
[0176] 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.
[0177] In some embodiments, the apparatus further includes a mapping unit 703. The mapping unit 703 is configured to map the physical memory used by the DMA to a user-mode virtual memory.
[0178] 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.
[0179] In some embodiments, the apparatus further includes an acquisition unit 704. 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 the target data has been completed, and whether the transfer of the target data has been successful. Based on the execution result, the ARM determines whether the DMA data transfer operation is abnormal.
[0180] In some embodiments, the sending unit 702 is further configured to send a plurality of incrementing numbers to the DMA and obtain the incrementing numbers received by the receiving end from the receiving end. The plurality of incrementing numbers includes a plurality of sequentially increasing numbers. 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.
[0181] In some embodiments, the ARM is connected to the FPGA, and 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 based on 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.
[0182] As shown in FIG8 , it is a schematic structural diagram 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 .
[0183] The establishing unit 801 is configured to establish a communication channel with the ARM in response to a configuration operation.
[0184] The receiving unit 802 is configured to receive, through a communication channel, first instruction information from the ARM for instructing to perform a data transfer operation on target data in the virtual memory, wherein the virtual memory is in a user state.
[0185] The processing unit 803 is configured to: transmit the target data in the virtual memory according to the first instruction information.
[0186] In some embodiments, the receiving unit 802 is further configured to: receive second indication information indicating the data length of the target data from the ARM. The processing unit is further configured to: transmit the target data according to the second indication information.
[0187] In some embodiments, the execution result of the DMA data transfer is used to reflect whether the DMA data transfer operation is abnormal. The execution result includes 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.
[0188] In some embodiments, the receiving unit 802 is further configured to receive a plurality of incrementing numbers from the ARM, wherein the plurality of incrementing numbers include a plurality of numbers that increase in sequence. The sending unit 804 is further configured to send the plurality of incrementing numbers to the receiving end.
[0189] When implemented through hardware, the acquisition unit in the embodiment of the present application can be integrated into the communication interface, and the processing unit can be integrated into the processor. The specific implementation is shown in Figure 9.
[0190] Figure 9 illustrates the data transmission device involved in the above embodiments, which can be or be applied to the above-described data processing device. It includes a processor 902 and a communication interface 903. Processor 902 is used to control and manage the operation of the device, for example, executing the steps performed by the processing unit 803 and / or other processes for performing the techniques described herein. Communication interface 903 is used to support communication between the device and other network entities, for example, executing the steps performed by the sending unit 702 or the receiving unit 802. The device may also include a memory 901 and a bus 904. Memory 901 is used to store program code and data for the device.
[0191] 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.
[0192] The processor 902 may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this 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 device, a transistor logic device, a hardware component, or any combination thereof. The processor may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, or a combination of a DSP and a microprocessor.
[0193] Bus 904 may be an Extended Industry Standard Architecture (EISA) bus, etc. Bus 904 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, FIG9 shows only one thick line, but this does not mean that there is only one bus or only one type of bus.
[0194] The device in FIG9 may also be a chip, which includes one or more (including two) processors 902 and a communication interface 903 .
[0195] 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).
[0196] In some embodiments, the memory 905 stores the following elements, execution modules or data structures, or a subset thereof, or an extended set thereof.
[0197] 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).
[0198] 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 data transmission method described in any of the above embodiments.
[0199] 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.
[0200] Some embodiments of the present disclosure further provide a computer program product, for example, stored on a non-transitory computer-readable storage medium. The computer program product includes computer program instructions that, when executed on a computer (e.g., a server), cause the computer to perform the data transmission method described in the above embodiments.
[0201] Some embodiments of the present disclosure further 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 data transmission method described in the above embodiments.
[0202] 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 data transmission method described in some of the above-mentioned embodiments, and will not be repeated here.
[0203] In the several embodiments provided in this 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 merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, 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.
[0204] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0205] 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.
[0206] The above description is merely a specific embodiment of the present disclosure, but the scope of protection of the present disclosure is not limited thereto. Any changes or substitutions that a person skilled in the art can conceive within the technical scope disclosed in the present disclosure should be included within the scope of protection of the present disclosure. Therefore, the scope of protection of the present disclosure should be based on the scope of protection of the claims.
Claims
1. A data transmission method, wherein: 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, wherein: 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, wherein: 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, wherein: 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, wherein: 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, wherein: 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, wherein: Applied to DMA, the method comprises: In response to the configuration operation, establishing a communication channel with the ARM; receiving, via the communication channel, first indication information from the ARM, the first indication information being used to instruct to perform a data transmission operation on target data in the virtual memory, the virtual memory being In user mode; According to the first indication information, the target data in the virtual memory is transmitted.
8. The method according to claim 7, wherein: 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, wherein: 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, wherein: 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, wherein: 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, wherein: 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, wherein: 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, wherein: 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 7 to 10.
15. A non-transitory computer-readable storage medium, wherein: 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.
Citation Information
Patent Citations
Data transmission method, device and system
CN105404597A
Data memory mapping method and device, electronic equipment and storage medium
CN113835831A
Data transmission method, device and equipment based on Linux operating system
CN114911568A
Data transmission method and device, computer equipment and storage medium
CN115718707A
Device and system for dma transfer control
JP2000276434A
Cited By
Data processing method and device, electronic equipment and readable storage medium
CN119781835A
User mode driven cross-platform support method and device based on equipment tree and medium
CN119883410A
