]> asedeno.scripts.mit.edu Git - linux.git/commit
media: venus: firmware: check fw size against DT memory region size
authorStanimir Varbanov <stanimir.varbanov@linaro.org>
Thu, 6 Dec 2018 13:28:43 +0000 (11:28 -0200)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 25 Jan 2019 20:41:35 +0000 (18:41 -0200)
commit5792ae7c3dd41883cdfa91284b802104b75c59d4
tree65bdccc2ddd0f56b8ef76f1430e4445265259493
parentadbd2969afbb9868f9a480cee4234455577a93c8
media: venus: firmware: check fw size against DT memory region size

By historical reasons we defined firmware memory size to be 6MB even
that the firmware size for all supported Venus versions is 5MBs. Correct
that by compare the required firmware size returned from mdt loader and
the one provided by DT reserved memory region. We proceed further if the
required firmware size is smaller than provided by DT memory region.

Reviewed-by: Alexandre Courbot <acourbot@chromium.org>
Tested-by: Alexandre Courbot <acourbot@chromium.org>
Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/qcom/venus/core.h
drivers/media/platform/qcom/venus/firmware.c