media: venus: vdec: decoded picture buffer handling during reconfig sequence
authorMansur Alisha Shaik <mansur@codeaurora.org>
Wed, 20 Oct 2021 06:44:08 +0000 (07:44 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 21 Oct 2021 13:24:48 +0000 (14:24 +0100)
commit40d87aafee29fb01ce1e1868502fb2059a6a7f34
tree3c5e01b3202fa82f67381021d5837accc200f7b7
parent3227a8f7cf331ed5be4b6c26339366b8d2d83b09
media: venus: vdec: decoded picture buffer handling during reconfig sequence

In existing implementation, driver is freeing and un-mapping all the
decoded picture buffers(DPB) as part of dynamic resolution change(DRC)
handling. As a result, when firmware try to access the DPB buffer, from
previous sequence, SMMU context fault is seen due to the buffer being
already unmapped.

With this change, driver defines ownership of each DPB buffer. If a buffer
is owned by firmware, driver would skip from un-mapping the same.

Signed-off-by: Mansur Alisha Shaik <mansur@codeaurora.org>
Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/qcom/venus/core.h
drivers/media/platform/qcom/venus/helpers.c
drivers/media/platform/qcom/venus/helpers.h
drivers/media/platform/qcom/venus/vdec.c