]> git.baikalelectronics.ru Git - kernel.git/commit
media: coda: request to skip kernel mapping for decoded buffers
authorLucas Stach <l.stach@pengutronix.de>
Thu, 24 Oct 2019 10:32:49 +0000 (07:32 -0300)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 5 Nov 2019 11:59:50 +0000 (08:59 -0300)
commit9010f9cb4c5f27696b0489f5e50441cf5816df1c
tree9bb9c85702f6d3095be62a183783eea8c8cf572c
parentc41b4e61b91228710a750fd5b7b1c4e8f2bb1ad0
media: coda: request to skip kernel mapping for decoded buffers

The kernel driver never touches the decoded buffers with the CPU.
All accesses are either done by hardware DMA masters or userspace
mapping the buffers. This means we don't need a kernel virtual
address mapping for those buffers at all. As those buffers are
usually quite large, we can save a good deal of kernel vmalloc
space by requesting to not have a kernel mapping set up for them.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/coda/coda-common.c