]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit741d0616d2a1748b38efdbbd5490f1865a4db964
tree3c5e01b3202fa82f67381021d5837accc200f7b7
parent0a47b81a1155438269d4c603da8596b974deb70f
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