Commit 745e6d8b authored by Mansur Alisha Shaik's avatar Mansur Alisha Shaik Committed by Greg Kroah-Hartman
Browse files

media: venus: vdec: decoded picture buffer handling during reconfig sequence



[ Upstream commit 40d87aaf ]

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: default avatarMansur Alisha Shaik <mansur@codeaurora.org>
Signed-off-by: default avatarStanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Stable-dep-of: 6c9934c5 ("media: venus: fix enc/dec destruction order")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent b75d87df
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment