Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4141208pxk; Tue, 8 Sep 2020 11:42:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztbFJAEMqvNWj1AikCRVQj58rriYrthrpvDoRfGfsgrqizlM1/9tQPeQxjEYK82HVfQQXj X-Received: by 2002:a50:fa88:: with SMTP id w8mr335212edr.179.1599590521525; Tue, 08 Sep 2020 11:42:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599590521; cv=none; d=google.com; s=arc-20160816; b=CnpNSAJO1Z005Bt1OZxTEPWFtlR08kvyoPQehY1KViCHXj0EnB+2erq4vdzod+u5wi I9uOmvI6Ul0untVGkIPsaEN/1ORiRx98DqLB3r3ICcGLuk9VFIeFeIPb+pPtYoGMbYSF PZV4qpbZrwnShplMuhD4b1zBM72UgO+5GyTndHkxS2DrZbohISYPdq5UYI/nXiabgQWg ms3X3vDIzzVLw/4FrswSF0LO885aLJONhE5luILNy2kIxj8lsOVfaIGazHoLJ5iR5CCg zCvCwdYoBsHnXCbuc4HrSnT3y7gRPvi7BAIAc4ohYxlFPojc4cofc4sTgXdTruLgCn6i NPmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:date:to:cc:from :subject:references:in-reply-to:content-transfer-encoding :mime-version:dkim-signature; bh=DjkIx1P1Yaxa+Auz4Hv5F6fQbSDCX4zGHI1CORxsnvo=; b=hkq/6rHcE8YdIFmJiPdGX+k5OZ2VHd625h6t9MIXTWlmpU48Vt03a1sdYiHzBG3fbl Urbdv8ztv4sH8qfU6g8gtAIFALzgaOEjmTrn5CRxkWEzzlWmKlMsSK+IwqRrWKiEU/wO RRnekkqnwEELQVbV1yAJJCFyee1IXdnKoGyDVNqgFDGcxvwt5PvZ+hSXng61JdiqNW89 hve0Dzz20fbzewyIFcAlSnUYVFrm83LK+fb/tGYVgd5CJFqf6knFoqPhcYEKXwf8jS/l e3oLrMNIuAIx+6rmQmwWDkivUMk0eld/Z4QVZwBkXVM8vWL0rw5p8wtdzBPk5+WsfOPY dc0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Ch5116YJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mh6si12217997ejb.243.2020.09.08.11.41.39; Tue, 08 Sep 2020 11:42:01 -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=pass header.i=@chromium.org header.s=google header.b=Ch5116YJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731397AbgIHSiz (ORCPT + 99 others); Tue, 8 Sep 2020 14:38:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731222AbgIHSiU (ORCPT ); Tue, 8 Sep 2020 14:38:20 -0400 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87A86C061756 for ; Tue, 8 Sep 2020 11:38:20 -0700 (PDT) Received: by mail-pj1-x1041.google.com with SMTP id n3so138456pjq.1 for ; Tue, 08 Sep 2020 11:38:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:content-transfer-encoding:in-reply-to:references :subject:from:cc:to:date:message-id:user-agent; bh=DjkIx1P1Yaxa+Auz4Hv5F6fQbSDCX4zGHI1CORxsnvo=; b=Ch5116YJyepkGpw+1UW17XG01LG/Pm90dnlvn725RqhqaU4K8logIxM79H9+sIUoQ8 OiB2hKqFTTb/CrA4MTXj0FA17E0hyz3kemhaxUxNt+kgpXnoSGgFoS2faieUZXeiearM Bq3F/+1d+pj1Mc5PD3zu/eq5qxogXCWs0O71k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding :in-reply-to:references:subject:from:cc:to:date:message-id :user-agent; bh=DjkIx1P1Yaxa+Auz4Hv5F6fQbSDCX4zGHI1CORxsnvo=; b=iOsSxZ21s6j8EpSoZPCDzK0pVqs9ZvpcyUdqkP745u8b8Re4Gc/MzMeadTwRkWeUyK BkOi7apndZQ/2z/A5+Hhf3gGjhUdzhfRxNcjMqmXSvbUZIwzqBdugN9aOwhQoOa1XeqG XgIw+E9d5Rb/aHX3NIXikU1AfgDHWEVaSp1nMpcE+TG8rvEOCPmWBKDItduNlLUVtw4m V58scTg0UGv0NZ6pDkTy6T1R8OT1I1VhYWqtlMxAfof+VAI6zlO+rgT0uJ3V+jvGmE1N orK17w55ITx57qj7wwa++4XusKZxnxTPac0733JRqWuiUJNtg46jVgXiLLCiKKGJpL8D 5S5g== X-Gm-Message-State: AOAM533Z0GXTOoUmYo46zM5Zon5pMl8bEwI6wrBVeKdG7Ij7v1ngJP7E q6JxIAfpC6zSRYUMgcHL08ZgjFLGen+XRQ== X-Received: by 2002:a17:90a:930e:: with SMTP id p14mr171770pjo.49.1599590299498; Tue, 08 Sep 2020 11:38:19 -0700 (PDT) Received: from chromium.org ([2620:15c:202:1:3e52:82ff:fe6c:83ab]) by smtp.gmail.com with ESMTPSA id e123sm133688pfh.167.2020.09.08.11.38.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:38:19 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <1599536678-4666-1-git-send-email-mansur@codeaurora.org> References: <1599536678-4666-1-git-send-email-mansur@codeaurora.org> Subject: Re: [PATCH 2/2] venus: core: vote for video-mem icc path and change avg, peak bw From: Stephen Boyd Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, vgarodia@codeaurora.org, Mansur Alisha Shaik To: Mansur Alisha Shaik , linux-media@vger.kernel.org, stanimir.varbanov@linaro.org Date: Tue, 08 Sep 2020 11:38:17 -0700 Message-ID: <159959029779.454335.10674172341529908104@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. >=20 > 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 >=20 > Corrected this by voting for venus0-ebi path in venus_runtime_resume venus_runtime_resume() please so we know it's a function. > and unvote during venus_runtime_suspend. venus_runtime_suspend(). >=20 > Signed-off-by: Mansur Alisha Shaik > --- Any Fixes: tag? > drivers/media/platform/qcom/venus/core.c | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/media/platform/qcom/venus/core.c b/drivers/media/pla= tform/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(stru= ct device *dev) > if (ret) > return ret; > =20 > + ret =3D icc_set_bw(core->video_path, 0, 0); > + if (ret) > + return ret; > + > return ret; > } > =20 > @@ -382,7 +386,11 @@ static __maybe_unused int venus_runtime_resume(struc= t device *dev) > const struct venus_pm_ops *pm_ops =3D core->pm_ops; > int ret; > =20 > - ret =3D icc_set_bw(core->cpucfg_path, 0, kbps_to_icc(1000)); > + ret =3D 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?