diff options
author | Pawel Osciak <[email protected]> | 2019-01-24 07:51:55 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <[email protected]> | 2019-01-31 09:28:44 -0200 |
commit | 2cc1802f62e562611e86f04d9dae1337c824991e (patch) | |
tree | 1f79b20a16b9036a30bda8e6fd76ccbc0b83a5a6 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | 826ef7508833f8bae928ccae4071b6efa6ba6184 (diff) |
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 <[email protected]>
Signed-off-by: Paul Kocialkowski <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions