【PCIe】P2P DMA

PCIe P2P (peer-to-peer communication)是PCIe的一种特性,它使两个PCIe设备之间可以直接传输数据,而不需要使用主机RAM作为临时存储。如下图3的走向

比如EP1要发送和数据给EP2,操作流程如下:

  1. 打开EP1的dma控制器;--client侧

2.src=EP1的内存地址,dst=EP2的BAR地址空间(provider),EP2的BAR地址一般会与自己的某段内存空间有一个映射关系,也就是将EP2的bar暴漏给了EP1去操作。

3.开启dma传输,将EP1的ddr数据搬运到EP2 bar空间

思考:

Why would you want peer to peer DMA?

没有CPU开销或同步的处理管道;

节省数据流行程

附:

Providers -- Expose P2P resources to other drivers

◢ Clients -- Make use of P2P resources via DMA

◢ Orchestrators -- Enables data flow between clients and providers

◢ Memory is allocated on the client side

接口参考:

PCI Peer-to-Peer DMA Support --- The Linux Kernel documentation

相关推荐
FakeOccupational17 小时前
【p2p、分布式,区块链笔记 MESH】Bluetooth蓝牙通信拓扑与操作 BR/EDR(经典蓝牙)和 BLE
笔记·分布式·p2p
FakeOccupational2 天前
【p2p、分布式,区块链笔记 MESH】 论文阅读 Thread/OpenThread Low-Power Wireless Multihop Net
分布式·区块链·p2p
黑石云3 天前
大宽带怎么做
服务器·边缘计算·p2p
htt7893 天前
[P2P]并发模式
服务器·网络协议·p2p
黑石云8 天前
ipv6与p2p的关系
边缘计算·p2p
黑石云8 天前
5G-A时代与p2p
5g·边缘计算·p2p
metaRTC11 天前
君正Ingenic webRTC P2P库libyangpeerconnection7编程指南
webrtc·p2p
黑石云17 天前
P2P最佳网络类型
服务器·边缘计算·p2p
ikkkkkkkl19 天前
P2P架构
网络协议·计算机网络·p2p
若风的雨23 天前
【deekseek】P2P通信路由过程
服务器·网络协议·p2p