ipq806x: do not allocate coherent memory in dma engine hotpath
authorFelix Fietkau <nbd@nbd.name>
Mon, 13 Mar 2017 11:31:19 +0000 (12:31 +0100)
committerFelix Fietkau <nbd@nbd.name>
Mon, 13 Mar 2017 12:40:56 +0000 (13:40 +0100)
commit6006227cb70bd96dcf13bbe473ca53f5af9b3f76
treed25f77e2b76274582702c667455fa7ec18999417
parent1adf51702e94063fb058ce13226ec5a04d15cfd4
ipq806x: do not allocate coherent memory in dma engine hotpath

The available amount of coherent DMA memory is very limited. On Linux
4.4 this issue was worked around by increasing the pool size.

It turns out that using coherent memory here is completely unnecessary.
This change reworks the driver code to use kzalloc+dma_map_single
instead.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
target/linux/ipq806x/patches-4.9/0002-dmaengine-Add-ADM-driver.patch