]> git.baikalelectronics.ru Git - kernel.git/commit
media: venus: use contig vb2 ops
authorAlexandre Courbot <acourbot@chromium.org>
Mon, 14 Dec 2020 12:57:03 +0000 (13:57 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 12 Jan 2021 17:26:17 +0000 (18:26 +0100)
commitc13c4835c8168170384ebb3354cbbfe820629cb0
treec96bed9cce47fd26e04984ad4f59c2eef6a14aff
parentc052eaa98ad6540f5e272c9aadd2ff91c0811210
media: venus: use contig vb2 ops

This driver uses the SG vb2 ops, but effectively only ever accesses the
first entry of the SG table, indicating that it expects a flat layout.
Switch it to use the contiguous ops to make sure this expected invariant
is always enforced. Since the device is supposed to be behind an IOMMU
this should have little to none practical consequences beyond making the
driver not rely on a particular behavior of the SG implementation.

Reported-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Alexandre Courbot <acourbot@chromium.org>
Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/Kconfig
drivers/media/platform/qcom/venus/helpers.c
drivers/media/platform/qcom/venus/vdec.c
drivers/media/platform/qcom/venus/venc.c