linux_dsm_epyc7002/drivers/media
Pawel Osciak 2cc1802f62 media: vb2: Keep dma-buf buffers mapped until they are freed
When using vb2 for video decoding, dequeued capture buffers may still
be accessed by the hardware: this is the case when they are used as
reference frames for decoding subsequent frames.

When the buffer is imported with dma-buf, it needs to be mapped before
access. Until now, it was mapped when queuing and unmapped when
dequeuing, which doesn't work for access as a reference frames.

One way to solve this would be to map the buffer again when it is
needed as a reference, but the mapping/unmapping operations can
seriously impact performance. As a result, map the buffer once (when it
is first needed when queued) and keep it mapped until it is freed.

Reviewed-on: https://chromium-review.googlesource.com/334103
[Paul: Updated for mainline and changed commit message]

Signed-off-by: Pawel Osciak <posciak@chromium.org>
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-01-31 09:28:44 -02:00
..
cec media: cec: keep track of outstanding transmits 2018-11-23 05:56:14 -05:00
common media: vb2: Keep dma-buf buffers mapped until they are freed 2019-01-31 09:28:44 -02:00
dvb-core media: dvb_frontend: add debug message for frequency intervals 2018-11-23 11:59:45 -05:00
dvb-frontends media: dvb: Add check on sp8870_readreg 2019-01-16 11:45:33 -05:00
firewire media: firewire: Fix app_info parameter type in avc_ca{,_app}_info 2018-12-05 05:34:33 -05:00
i2c media: ov2640: fix initial try format 2019-01-25 11:02:04 -02:00
mmc media: siano: use GFP_DMA only for smssdio 2018-05-15 08:04:42 -04:00
pci media: ivtv: add parameter to enable ivtvfb on x86 PAT systems 2019-01-21 15:33:26 -02:00
platform media: mtk-vcodec: Using common interface to manage vdec/venc clock 2019-01-31 09:24:54 -02:00
radio media: si470x-i2c: Add optional reset-gpio support 2019-01-21 15:36:18 -02:00
rc Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2018-12-27 13:04:52 -08:00
spi media: cxd2880-spi: fix two memory leaks of dvb_spi 2019-01-16 11:44:29 -05:00
tuners media: si2157: declare its own pads 2018-09-17 13:16:19 -04:00
usb media: gspca: ov534-ov772x: remove unnecessary COM3 initialization 2019-01-16 14:00:46 -05:00
v4l2-core media: media/v4l2-core/videobuf-vmalloc.c: Remove dead code 2019-01-21 15:46:22 -02:00
Kconfig media: Add a Kconfig option for the Request API 2018-12-05 13:07:43 -05:00
Makefile media: media-request: implement media requests 2018-08-31 11:04:51 -04:00
media-device.c media: Add a Kconfig option for the Request API 2018-12-05 13:07:43 -05:00
media-devnode.c MAINTAINERS & files: Canonize the e-mails I use at files 2018-05-04 06:21:06 -04:00
media-entity.c media: v4l2-mc: switch it to use the new approach to setup pipelines 2018-09-17 13:16:19 -04:00
media-request.c media: media-request: Add compat ioctl 2018-11-20 12:53:27 -05:00