Skip to content

Commit

Permalink
media: venus: helpers: keep max bandwidth when mbps exceeds the suppo…
Browse files Browse the repository at this point in the history
…rted range

When the video usecase have macro blocks per sec which is  more than
supported, keep the required bus bandwidth as the maximum supported.

Signed-off-by: Vikash Garodia <vgarodia@codeaurora.org>
Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
  • Loading branch information
Vikash Garodia authored and Mauro Carvalho Chehab committed Apr 15, 2021
1 parent bcf6b26 commit 7bf28a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/platform/qcom/venus/pm_helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ static void mbs_to_bw(struct venus_inst *inst, u32 mbs, u32 *avg, u32 *peak)
return;

for (i = 0; i < num_rows; i++) {
if (mbs > bw_tbl[i].mbs_per_sec)
if (i != 0 && mbs > bw_tbl[i].mbs_per_sec)
break;

if (inst->dpb_fmt & HFI_COLOR_FORMAT_10_BIT_BASE) {
Expand Down

0 comments on commit 7bf28a2

Please sign in to comment.