GETB, PUTB, GETF, and PUTF are the primary fence and barrier-related DMA commands for single buffers.
对于单一缓冲区,GETB、PUTB、GETF和PUTF是与fence和barrier相关的主要dma命令。
Remember that DMA transfers of 16 bytes or more must be in 16-byte multiples and aligned to 16-byte boundaries on both the SPE and the PPE.
记住,传输16字节或更多字节的dma在spe和PPE上必须是16字节的整数倍,并按照16字节边界进行对齐。
Instead of having multiple directly accessible arguments, you get a pointer into main memory and the SPE has to issue DMA requests to get the pointed-to data from main memory.
它没有使用多个可直接访问的参数,而是使用一个指向主存的指针,SPE需要发出dma请求来从主存中获取指针所指向的数据。
The spu_mfcdma32() function allows DMA from a 32-bit subset of the PPE's theoretical 64-bit address space which is plenty for our purposes.
spu_mfcdma32()函数允许从PPE的(理论上)64位地址空间中的32 位子集中使用DMA 方式获取数据,这对于我们的目的来说已经足够了。
In this application, you will only have one DMA command active at a time, so all of your operations will use 0 as the DMA tag.
在这个应用程序中,一次只有一个dma命令是激活的,所以所有的操作都将使用0作为DMA标签。
The experiment results show that the algorithms are effective and efficient. Algorithm DCAR is faster 2 to3 times than algorithm DMA-IC.
将本文提出的算法加以实现,实验结果表明DCAR算法高效可行,其效率大约是DMA - IC算法的2 - 3倍。
You then use a DMA command to fetch the full structure, and wait for the DMA to complete.
然后使用dma命令来获取整个结构,等待DMA完成。
Therefore, they cannot be accessed directly, but must be moved in through DMA.
因而,它们不能被直接访问,而必须通过DMA 移进来。
Queue DMA GETs for all buffers.
对所有缓冲区的DMA GET进行排队。
Before getting into the details of the main program, I'll explore the DMA utility functions.
在深入介绍主程序细节之前,我要先来探讨一下dma实用函数。
Each buffer gets a unique DMA tag ID.
每个缓冲区获得一个惟一的DMA标记ID。
The real power of mailboxes comes when a program combines the mailbox and the DMA approach.
当程序组合使用了邮箱和DMA方法时,才会显出邮箱的真正实力。
When the command is written, the DMA request is enqueued into the MFC provided it has available slots -- yours certainly does as you are not doing any other concurrent DMA requests.
当命令被写入时,DMA请求会被排队放入MFC,条件是 MFC具有可用的槽 —— 本例中自然如此,原因是本例没有进行任何并发的 DMA 请求。
The SPU queues a DMA PUT to transmit the buffer back to main memory.
SPU对DMA PUT进行排队,从而将缓冲区传输回主内存。
This command causes the SPE to immediately return with the status of the DMA channels.
这个命令会导致SPE立即返回dma通道的状态。
Queue a DMA GETB to refill the buffer with more data after the existing data is stored back.
对DMAGETB进行排队,从而在将现有数据存储回去之后,用更多数据重新填充缓冲区。
The third copy happens as the DMA engine passes the data from the kernel socket buffers to the protocol engine.
数据的第三次复制发生在dma引擎将数据从内核套接字缓冲区传到协议引擎时。
The SPU queues a DMA GET to pull a portion of the problem data set from main memory to a buffer.
SPU对DMA GET进行排队,从而将涉及的数据集的一部分从主内存传输到一个缓冲区。
Whether it's an argument passed in or an address gotten some other way, the DMA targets must be aligned on cache lines (16 bytes).
不管是传入的参数还是通过其他方式获得的地址,DMA的目标地址必须要与缓存线路(16字节)进行对齐。
A DMA request always involves moving data between the SPE local store and a virtual address space on the PPE side.
dma请求通常会涉及数据在SPE本地存储与ppe端虚拟地址空间之间进行移动。
Note that all of the declared variables which will be copied using DMA are aligned on quadword boundaries and are multiples of quadwords.
注意所有声明的变量(使用DMA复制的)都是按四字边界对齐的且都是四字的整数倍。
For instance, one of the problems with the original code is that it is limited to the size of a DMA transfer.
举例来说,原来代码的一个问题是一次dma传输的大小有限制。
Think of this as a specialized version of the C library function select, but for DMA transfers.
可以把它看作C库函数select的特殊版本,但是针对的是DMA传输。
This code relies on some utility functions for handling DMA commands. Enter those functions as dma_utils.s
这段代码依赖于一些实用函数来处理DMA命令。
All DMA commands issued with the same tag are considered a single group, and status updates and sequencing operations apply to the group as a whole.
所有用相同的标签发出的dma命令被认为是单一一个组,并且状态更新和排序操作都会作用于整个组。
By mapping multiple SPUs into a single process, it becomes possible to use DMA to transfer data between the local store of two SPUs directly.
通过将多个SPU映射到一个进程中,就可以使用DMA来在两个SPU的本地存储之间直接传输数据。
Using spu_mfcstat allows you to both check on the status of DMA requests and wait for them.
使用spu_mfcstat让您可以既检查dma请求的状态,又进行等待。
This is because you are using barriers with your transfers, and you are using the same DMA tag for them.
这是因为正在对传输使用barrier,并对它们使用相同的DMA标签。
The SPU (a) queues a DMA PUT to transmit the contents of buffer #1 and then (b) queues a DMA GETB to execute after the PUT to refill the buffer with the next portion of data from main memory.
SPU (a) 对DMAPUT 进行排队来传输一号缓冲区的内容,然后 (b) 对 DMAGETB 进行排队,从而在 PUT之后用主内存中的下一部分数据重新填充这个缓冲区。
The transferTo() method causes the file contents to be copied into a read buffer by the DMA engine.
transferTo()方法引发DMA引擎将文件内容拷贝到一个读取缓冲区。
应用推荐