Skip to content

Commit

Permalink
media: venus: fix hw overload error log condition
Browse files Browse the repository at this point in the history
In current video driver, frequency is calculated for all the
running video instances and check aganist maximum supported frequency.
If both calculated frequency and maximum supported frequency are same,
even then HW overload error is printed.
Fix this by printing error log only when frequency is greater than
maximum supported frequency.

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>
  • Loading branch information
Mansur Alisha Shaik authored and Mauro Carvalho Chehab committed Apr 15, 2021
1 parent fb2b008 commit bcf6b26
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 @@ -1083,7 +1083,7 @@ static int load_scale_v4(struct venus_inst *inst)

freq = max(freq_core1, freq_core2);

if (freq >= table[0].freq) {
if (freq > table[0].freq) {
freq = table[0].freq;
dev_warn(dev, "HW is overloaded, needed: %lu max: %lu\n",
freq, table[0].freq);
Expand Down

0 comments on commit bcf6b26

Please sign in to comment.