Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp57241pxk; Wed, 16 Sep 2020 18:46:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+BB9OGoj1IH/bIwsEMTdP74yagdpqIkXvgCvgo/IzFlcHCo/RpcgtAkOsXn4PkVlxPiFt X-Received: by 2002:a17:906:70d4:: with SMTP id g20mr29867953ejk.413.1600307210081; Wed, 16 Sep 2020 18:46:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600307210; cv=none; d=google.com; s=arc-20160816; b=QUUYyCzxFvD1nb3jmvFx2B/UFri3+0T6tIsw9NOt09XqfGrIzg2Ym33aIAWWsda2nJ ynerDv027eES0MiDa8fy/kZm6ZhAkgAhtpWU2aYU7BebgNsZV5H+2HYeLnfAieMNkfF8 S5NumnBabsurdFXQ4GMCP2vzl9Iq9lkJVTv/JrtRmfOQAzC77g/cRofMwI22zZmv0WRX InjS3W7hxiUrdIa576/Ug537zXamnwhVZSJcsCGbjOKaVSgvKFvePZ0BGDkRuA4Krs91 jXzoiqcoW/uFtFeyh7Q1jFkT9ixJTzDjIcKYEyqt56+Qj7wvCKwjNQ276zkGO7SXU0qB 4tFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=bs58Ng6kyMcqvwBvNdPkE2BNArpEi+g/GUcaUJv2s7Y=; b=IyBQ12H+a0Mrgs1XP+2FIrkTMq9iRKTFCMxc1VGTo893dJEr/cULOCK5xjqnjE95X1 41vRo4SPrabS9pxIMHwC6tqSV5kfKA4bRQrbvr6l4xABmAVn7UYgMFDL39i/EeaU5mXy YaJSGF/gIjiVMR6WD3yuTBwZCruwDGTPSaQVZisJbT5ZPbxO4PcuW12vP/ST+gEOZOtW NV97KxsNC0Fjh93dKFlbop85n3ysXKoJjbJrjillrtkSUFEabZTcohpHD6nJKTldruxT LE5vlh/iYRgvcEc0YkLI8zzomxPKI5EvoL7GYqgGgART/eyDgiQ3/lpojgZU5zPyuLWt X1Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=K0SNe9Ec; 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 p9si12424879ejx.463.2020.09.16.18.46.26; Wed, 16 Sep 2020 18:46:50 -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; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=K0SNe9Ec; 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 S1726043AbgIQBpX (ORCPT + 99 others); Wed, 16 Sep 2020 21:45:23 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:28635 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725858AbgIQBpW (ORCPT ); Wed, 16 Sep 2020 21:45:22 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1600307122; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=bs58Ng6kyMcqvwBvNdPkE2BNArpEi+g/GUcaUJv2s7Y=; b=K0SNe9EcUyXYgispkoVuOP+eBDhgcV4OHvQCh5NxsQSDhpybzJPH7qTnAhWyFc4EECmx4efU Fs9bc954opKFwS309Nxu2PQUzCH6e9mYoHYgiCVzokx0+dpAxJqUUsRdxIOPMQnRbvQwfonf IAzASOrsjn/mo4urIvNtWAVKL5g= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n06.prod.us-west-2.postgun.com with SMTP id 5f62bf98aac0601354b16774 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 17 Sep 2020 01:44:56 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 7A430C433F0; Thu, 17 Sep 2020 01:44:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: mansur) by smtp.codeaurora.org (Postfix) with ESMTPSA id C280CC433CA; Thu, 17 Sep 2020 01:44:55 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 17 Sep 2020 07:14:55 +0530 From: mansur@codeaurora.org To: Stephen Boyd Cc: linux-media@vger.kernel.org, stanimir.varbanov@linaro.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, vgarodia@codeaurora.org Subject: Re: [PATCH 2/2] venus: core: vote for video-mem icc path and change avg, peak bw In-Reply-To: <159959029779.454335.10674172341529908104@swboyd.mtv.corp.google.com> References: <1599536678-4666-1-git-send-email-mansur@codeaurora.org> <159959029779.454335.10674172341529908104@swboyd.mtv.corp.google.com> Message-ID: <30ad67bf36be40c6a2b395962f8e918f@codeaurora.org> X-Sender: mansur@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On 2020-09-09 00:08, Stephen Boyd wrote: >> Quoting Mansur Alisha Shaik (2020-09-07 20:44:38) >>> 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 >> >> venus_runtime_resume() please so we know it's a function. Changed to function like notation and RESEND v2 https://lore.kernel.org/patchwork/project/lkml/list/?series=463283 >> >>> and unvote during venus_runtime_suspend. >> >> venus_runtime_suspend(). >> >>> >>> Signed-off-by: Mansur Alisha Shaik >>> --- >> >> Any Fixes: tag? Added the Fixes tag >> >>> 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); >> >> This also shows that the arguments to icc_set_bw() we're backwards? >> Can >> that be fixed in another patch instead of putting it in this one? posted as another patch set. https://lore.kernel.org/patchwork/project/lkml/list/?series=463283