cache coherency when using dma
来源:互联网 发布:淘宝外贸鞋店推荐 编辑:程序博客网 时间:2024/05/16 11:55
linux提供两种方式,来保证使用dma时,内存和硬件cache的一致性:
1.Coherent DMA mapping
When using this mapping, the kernel ensures that there will be no cache coherency problems between the memory and the hardware device; this means that every write operation performed by the CPU on a RAM location is immediately visible to the hardware device, and vice versa. This type of mapping is also called "synchronous" or "consistent."
2.Streaming DMA mapping
When using this mapping, the device driver must take care of cache coherency problems by using the proper synchronization helper functions. This type of mapping is also called "asynchronous" or "non-coherent."
说白了,如果采用第一种方式的话,就是由kernel来保证一致性,驱动程序是不用考虑的,这种方法的缺点是
在某些体系结构上,效率很低;如果采用第二种方式的话,那么是有驱动程序来保证一致性的,所以当驱动
要使用dma来进行数据传输时,必须首先检测内存和硬件cache的一致性,linux提供了这类方法。
- cache coherency when using dma
- cache Coherency
- cache coherency
- 3.1 Cache Coherency
- cache coherency VS memory consistency
- PIO Cache Coherency Issue on Cortex A9
- 缓存一致性(Cache Coherency)入门
- 缓存一致性(Cache Coherency)入门
- 缓存一致性(Cache Coherency)入门
- 缓存一致性(Cache Coherency)入门
- 缓存一致性(Cache Coherency)入门
- 缓存一致性(Cache Coherency)入门
- 缓存一致性(Cache Coherency)入门
- 缓存一致性(Cache Coherency)入门
- 聊聊FPGA/CPU/PCIE/Cache-Coherency/CAPI
- linux dma cache
- DMA和cache不一致
- DMA及cache一致性
- 指针与C++ 基本原理
- 只要有固定步骤都可以程序化
- "中国象棋将帅问题"的一种解法
- 随感(1)
- java.lang.File类解析
- cache coherency when using dma
- 九九乘法表
- 关于Graphics的一个应用实例
- 谈谈云计算的部署方式——关于分布化实现
- Flex开发流程设计器的经验之谈
- 发布数据库表结构导出成WORD文档工具 DBExportDoc V1.0 For MySQL
- 什么是SEO?!我也能做SEO高手!
- (转)经典正则表达式
- 浪潮之巅 第五章 奔腾的芯 Intel(2)英特尔摩托罗拉之战