Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3633317pxk; Mon, 7 Sep 2020 20:45:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwv5m3ybEUIoB93jYOjlx4Z1BxK5PxtvtMTg/REZW8gDAWNfCiOuDh7IBG5e9sUmFeL99f+ X-Received: by 2002:a17:906:660f:: with SMTP id b15mr24943238ejp.333.1599536747272; Mon, 07 Sep 2020 20:45:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599536747; cv=none; d=google.com; s=arc-20160816; b=YXN6niBPbxyPA/SEvcuaElMjSYVvlSCeTmnHf1UV/HLPcqgZ6KzwChjR9uYBgUPrEY gaBnEIoORIFxaOTt+vU3EXkznxNZvLTrx4yXQ5dBMI1BuCzv9U0xoa1nd4E4Qi5/Kg1C UTdyhcUPCqfX6axPOH7f1gzfYfaWe9LZY8HiM7Fu/GC29Z0cHr5lxDqxAOiDcAwWdig4 H9d4S9tLSrBiTVxUMeSy0ouPJlB4S1gfzI2QpQIr+HpOm5cn9hEkouUAZPGiLdM+TF/G 2elubOISDMx/68OYc/Tt2vtOMIixr5SX5Zh+WafdwsV8qNZkIO+Pa4Ahmo6m1n/40eW3 sRnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=p3XK8VeFEcfkulZlfy6JI8MguD7Noe9vbgwM/TKJeN4=; b=pUvZH9+9GqppkN0wA0cEeiY5YOnNunMExLEX5Crgdr5x4FSUgU800MjoIlZODTHdon qTQBq6at1c5/Uv7bbt5l62Aloh0g3XIDq2hn7E+3Dm9lehOgwgPgmJFq0BxsAwrzIpdC 9jIXfVtKMUjm15VJVbmZ/xLF+rqNNA3l6KwyGhS/aawQwU8yPJOqY+DECGOv5/peRqs8 /ri/j/DBDxRpTj0tLdzbVtNT7SOKVEmDlQHSRLp9IZYZbzOfrHJlFF8VRWn43+F/6TZT 0q5Sh1Q3/2IZCrD0Vt2EMlM3fsgziFERC0wMQZRO0/OGtr0nX6SObgA7NjFFP5Tnhb3J Lc2w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n20si11584564ejo.160.2020.09.07.20.45.25; Mon, 07 Sep 2020 20:45:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728591AbgIHDoq (ORCPT + 99 others); Mon, 7 Sep 2020 23:44:46 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:59425 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728327AbgIHDop (ORCPT ); Mon, 7 Sep 2020 23:44:45 -0400 Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 07 Sep 2020 20:44:44 -0700 Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg-lv-alpha.qualcomm.com with ESMTP/TLS/AES256-SHA; 07 Sep 2020 20:44:43 -0700 Received: from c-mansur-linux.qualcomm.com ([10.204.90.208]) by ironmsg01-blr.qualcomm.com with ESMTP; 08 Sep 2020 09:14:41 +0530 Received: by c-mansur-linux.qualcomm.com (Postfix, from userid 461723) id D348521D04; Tue, 8 Sep 2020 09:14:39 +0530 (IST) From: Mansur Alisha Shaik To: linux-media@vger.kernel.org, stanimir.varbanov@linaro.org Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, vgarodia@codeaurora.org, Mansur Alisha Shaik Subject: [PATCH 2/2] venus: core: vote for video-mem icc path and change avg, peak bw Date: Tue, 8 Sep 2020 09:14:38 +0530 Message-Id: <1599536678-4666-1-git-send-email-mansur@codeaurora.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently we are voting for venus0-ebi path during buffer processing with an average bandwidth of all the instances and unvoting during session release. While video streaming when we try to do XO-SD using the command "echo mem > /sys/power/state command" , device is not entering to suspend state and from interconnect summary seeing votes for venus0-ebi Corrected this by voting for venus0-ebi path in venus_runtime_resume and unvote during venus_runtime_suspend. Signed-off-by: Mansur Alisha Shaik --- drivers/media/platform/qcom/venus/core.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/qcom/venus/core.c b/drivers/media/platform/qcom/venus/core.c index 4857bbd..79d8600 100644 --- a/drivers/media/platform/qcom/venus/core.c +++ b/drivers/media/platform/qcom/venus/core.c @@ -373,6 +373,10 @@ static __maybe_unused int venus_runtime_suspend(struct device *dev) if (ret) return ret; + ret = icc_set_bw(core->video_path, 0, 0); + if (ret) + return ret; + return ret; } @@ -382,7 +386,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->cpucfg_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, kbps_to_icc(1000), 0); if (ret) return ret; -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation