aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorMansur Alisha Shaik <mansur@codeaurora.org>2021-04-08 15:35:00 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-04-15 13:13:05 +0200
commitbcf6b264a806295cd4578aa7a03b3bcb15b1ab30 (patch)
tree98469fa6b90d16c9f60e8e1977e65de6a6a698ed /drivers/media
parentmedia: venus: core: correct firmware name for sm8250 (diff)
downloadlinux-dev-bcf6b264a806295cd4578aa7a03b3bcb15b1ab30.tar.xz
linux-dev-bcf6b264a806295cd4578aa7a03b3bcb15b1ab30.zip
media: venus: fix hw overload error log condition
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>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/platform/qcom/venus/pm_helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/qcom/venus/pm_helpers.c b/drivers/media/platform/qcom/venus/pm_helpers.c
index 5c0a9aa23e83..abb4b69783b2 100644
--- a/drivers/media/platform/qcom/venus/pm_helpers.c
+++ b/drivers/media/platform/qcom/venus/pm_helpers.c
@@ -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);