Commit e44fb034 authored by Mansur Alisha Shaik's avatar Mansur Alisha Shaik Committed by Mauro Carvalho Chehab
Browse files

media: venus: core: vote with average bandwidth and peak bandwidth as zero



As per bandwidth table video driver is voting with average bandwidth
for "video-mem" and "cpu-cfg" paths as peak bandwidth is zero
in bandwidth table.

suspend")

Fixes: 07f8f22a ("media: venus: core: remove CNOC voting while device
Signed-off-by: default avatarMansur Alisha Shaik <mansur@codeaurora.org>
Reviewed-by: default avatarStephen Boyd <swboyd@chromium.org>
Signed-off-by: default avatarStanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 9e8efdb5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -385,11 +385,11 @@ static __maybe_unused int venus_runtime_resume(struct device *dev)
	const struct venus_pm_ops *pm_ops = core->pm_ops;
	int ret;

	ret = icc_set_bw(core->video_path, 0, kbps_to_icc(1000));
	ret = icc_set_bw(core->video_path, kbps_to_icc(20000), 0);
	if (ret)
		return ret;

	ret = icc_set_bw(core->cpucfg_path, 0, kbps_to_icc(1000));
	ret = icc_set_bw(core->cpucfg_path, kbps_to_icc(1000), 0);
	if (ret)
		return ret;