Restricted DMA
Restricted DMA
Posted Jan 11, 2021 23:58 UTC (Mon) by florianfainelli (subscriber, #61952)In reply to: Restricted DMA by pabs
Parent article: Restricted DMA
In the case of networking/WLAN you have socket buffers you want to transmit that are coming from user-space that are scattered in virtual and physical address space and you need to shove them through a restricted region of DRAM from which the PCIe bridge is allowed to read and write from. Bounce buffering is pretty much the only way for that direction of transfers. For receiving buffers the OS needs to allocate data buffers for the WLAN chips to put data into, so you can allocate from the restricted DMA region already and avoid the bounce buffering in that case.