diff options
author | Bryan Wu <pengw@nvidia.com> | 2013-04-23 15:27:40 -0700 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2013-06-12 21:43:53 +0200 |
commit | bb608d8f147839a4c8e53476fb97f1f3eaff3db5 (patch) | |
tree | 4bc26b7847abbf99c9e042aca7b52d5581c2fe9c /virt/kvm | |
parent | 6a319070d30e2a25805fcd9278a4f10736ee1dea (diff) |
media: videobuf2: fix buffer management issues
Use right buffer flag NVMAP_HANDLE_WRITE_COMBINE to allocate buffer,
which can be shared by VI/CSI and CPU. Don't use NVMAP_HEAP_SYSMEM.
It is validated to old T20 silicon and can't support big buffers. By
default, our nvmap_alloc() will use IOVMM to allocate buffers.
nvmap_pin() gives us IOVA for hardware engines like VI/CSI module
with IOMMU enabled in kernel. nvmap_mmap() gives us VA for CPU
read/write operations. So we need to convert VA address to physical
address of the buffer and map that buffer to user space processor's
memory space "page by page".
Change-Id: I543d9d95fc14395200647e09480f25d9bc001e00
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Diffstat (limited to 'virt/kvm')
0 files changed, 0 insertions, 0 deletions