Miouyouyou / Mainline-Rockchip-VPU

WIP.
0 stars 0 forks source link

User MMAP is broken #3

Closed Miouyouyou closed 6 years ago

Miouyouyou commented 6 years ago

The memory isn't mapped correctly. What's mapped instead is a random memory location (logs from systemd in this case).

Miouyouyou commented 6 years ago

Using dma_map_attrs instead of dma_common_mmap solved the issue. Maybe I should also use dma_mmap_coherent, instead of dma_map_attrs.

However, anyway, the buffer is mapped correctly.