Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A data transfer buffer design method of Scatter-Gather DMA

A technology of data transmission and design method, which is applied in the field of data transmission, can solve the problems of not being able to participate in data transmission at the same time, and the data cannot make full use of the DMA data transmission bandwidth, so as to achieve the effect of improving efficiency

Inactive Publication Date: 2019-01-11
SHANDONG CHAOYUE DATA CONTROL ELECTRONICS CO LTD
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In this transmission mode, the data copy from user space to memory space is serially transmitted from memory space data to the device through DMA. CPU and DMA cannot participate in data transmission at the same time, resulting in the data not being able to fully utilize the data transmission bandwidth of DMA.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A data transfer buffer design method of Scatter-Gather DMA

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] The invention provides a data transmission buffer design method of Scatter-Gather DMA. When using scatter-gather DMA for data transmission, two scatter-gather DMA linked lists are created, and the two scatter-gather DMA linked lists are respectively pointed to two sets of cores Space buffer, the number of each group of kernel space buffers corresponds to the corresponding number of scatter-gather DMA linked list nodes,

[0021] While copying the user space data to a set of kernel space buffers and performing DMA transfer, use the CPU to copy the user space data to be transmitted next time into another set of kernel space buffers. When the last DMA transfer is completed, use the interrupt handler Initiate the next DMA transfer until the user space data is completely written to the device.

[0022] Utilize the method of the present invention to create two scatter-gather DMA linked lists when using scatter-gather DMA to carry out data transmission between computer main mem...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a data transfer buffer design method of Scatter-Gather DMA and relates to the technical field of data transmission. When scatter-gather DMA is used for transferring data, two scatter-gather DMA linked lists are created, and the two scatters-gather DMA linked lists point to two sets of kernel space buffers, and the number of each set of kernel space buffers corresponds to thenumber of nodes of the corresponding scatter-gather DMA linked list; while user space data is copied into a set of kernel space buffers for DMA transfer, the next user space data to be transferred iscopied into another set of kernel space buffers by the CPU. When the last DMA transfer is completed, the next DMA transfer is initiated by the interrupt handler until the user space data is completely written to the device.

Description

technical field [0001] The invention discloses a data transmission buffer design method, relates to the technical field of data transmission, in particular to a Scatter-Gather DMA data transmission buffer design method. Background technique [0002] DMA (Direct Memory Access), that is, direct memory access, is a mechanism for quickly transferring data. Data transfer can be from IO device to memory, from memory to IO device or from one piece of memory to another. It does not require the participation of the CPU when using it for data transfer. Every computer motherboard has a DMA controller, which is usually programmed by the computer and uses a ROM on the adapter (such as the ROM on the floppy disk drive controller) to store programs that control the DMA to transfer data. Once the controller is initialized and the data is transferred, the DMA can complete the data transfer independently from the CPU. [0003] The Scatter-gather DMA method is a DMA method corresponding to ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F13/28G06F13/12
CPCG06F13/126G06F13/28G06F2213/2806
Inventor 赵瑞东王朝晖陈亮甫吴登勇
Owner SHANDONG CHAOYUE DATA CONTROL ELECTRONICS CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products