Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3743282pxk; Tue, 29 Sep 2020 05:18:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+RXaoX1Y1hzfDKzflihUSwZ4VQ++muTjbsHPILnUb5zI8dC2KGF/3CWAObqcC3CxILatz X-Received: by 2002:a17:906:b813:: with SMTP id dv19mr3494538ejb.70.1601381911285; Tue, 29 Sep 2020 05:18:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601381911; cv=none; d=google.com; s=arc-20160816; b=Y8MkoHrHrds4Vna5WXy3GRjiaZDrxdwr9uXxcdVKzii3ihFmMtXGbsM9KLQjDU0mLM srC6Z50V2qqB2Zg1x9t5JpxW7q9viOhtF1ye1MliGtf61m5M3rwieG5f1fzTSE/auY6V fod+8a+uOyIAaw7+AhoNLyJWacIm4+pAvWusxv+BRk3HWWSQCB5nPKgWxwwt9lVceK7r xBsbAcUV+lu6b7wsbV+5yIAPdgW5uC/sMvVdRaF++bgtkN9VeLFtsXZcAo7YwSqXPfPD /h33O5cLufGHOWFQJ23q8bXVtL2aqtvh+KUnYTd+n6Zq937M5kbkSYCBqiKwjDvj7npq Gmwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=WmQ4HXFZOiQNgwplnNphS1aF43ZxufpXoarc3usGdEM=; b=0IfVSfGdVgwQP/q0jBRKN3OHZfz5Mew+pmKiFryxM/GlVLAEQQTkTVRIu1XDkWvXRQ PXryQWdc+6/mNDKCtSWEufNbLfQ+BFPDkC79nZQaiJ79KSDOHF632Oj3OZgpbPN7LbCZ 20f32ry670dn/h/J7SwHs97GUm2bKoe70YvL/VnfJNbe3z7241LFBaP22QR/B4c1kHdx OCMmzSOi/ZpQ1/I2C4+2+tOHhqc1MOftqZreYmSDDpalhQ3MTPNqxbn3nnF3gOuu/1jW OwwSuTDHMLicAgr1eKnkQ+P8MYugX01RepeYVm9PyybMDHm6TUWuBj1+195NPcQrmHnI k3pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qpKdWznE; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m11si2516200edp.265.2020.09.29.05.18.08; Tue, 29 Sep 2020 05:18:31 -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=@linaro.org header.s=google header.b=qpKdWznE; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732311AbgI2MRQ (ORCPT + 99 others); Tue, 29 Sep 2020 08:17:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730047AbgI2MQ7 (ORCPT ); Tue, 29 Sep 2020 08:16:59 -0400 Received: from mail-ed1-x541.google.com (mail-ed1-x541.google.com [IPv6:2a00:1450:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B0FDC061755 for ; Tue, 29 Sep 2020 05:16:59 -0700 (PDT) Received: by mail-ed1-x541.google.com with SMTP id t16so6087271edw.7 for ; Tue, 29 Sep 2020 05:16:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=WmQ4HXFZOiQNgwplnNphS1aF43ZxufpXoarc3usGdEM=; b=qpKdWznEoF0VXNEXTayLjtsb2T+jAgRhbs/Zn/wYm6lpxIzMUgO8OS1OwVkbrPgcjq C64VyNgFzie4RdTaGZ5U03PUJ2/kRUJTZ/OI2HJi+dC8TWHvKyHQwBxig86wTzJsQntR OGaWIeqcGWN7uiIhW4KY9EIF1VzVVFgTOeQLtVADHY+PkGNt69YEYEI7rif8U42S02Rt i86vmYCPL3srS5mRbmElsm3INvC4TsXuCxmrqsJ6mM7TCAkJmIx52uSTmUZOl9lgAdcK dwKHaRWJMXJ1pnq6hKGzJWm+apPp/zaAmZI31iGgF55sAAHqOWYJWAysdSABbAdLTsaQ ic5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=WmQ4HXFZOiQNgwplnNphS1aF43ZxufpXoarc3usGdEM=; b=WV0t97ONkvjG2pSjZh89M/p9rdr7uW3ENNf6l3+9Fiw6+oe5lpQac35xl4Art/xMwW NQqgADe0Q2xacLbhW5s48q6xi5/WGKrITkD9tja1z04bU67ZOvmjoHtUrt//lsoinbl/ 5gidJA1395NYD6R2TuP4C05ui3+tmTeGegN8bb0SEUP+F14bNjAtBhqH9CsMhZ5fwsUx L3GZ8Lt0tpkfn4N9W4zmv1H6ksc2R7iWtZ3Y39rWxKPsDO/tNaMikJ8fZ53Fmh0gSPck blBed0Rg7ici3yncxsa/wzscsBL7BHzWtDX4vZ5aphHR1Prdii3Uenvc4MU6aZM7+qGt BdpA== X-Gm-Message-State: AOAM530t7sK2B+O4SOOAb9Thsh4d5V+gtQYoeI9lUNv2YWbadqOdc+8y 9uDqtrYkjw1vobvwPjHBLA1YcA== X-Received: by 2002:a05:6402:6c1:: with SMTP id n1mr2958666edy.215.1601381818107; Tue, 29 Sep 2020 05:16:58 -0700 (PDT) Received: from [192.168.1.7] ([195.24.90.54]) by smtp.googlemail.com with ESMTPSA id r16sm5120171ejb.110.2020.09.29.05.16.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 29 Sep 2020 05:16:57 -0700 (PDT) Subject: Re: [RESEND v3 2/4] venus: core: vote for video-mem path To: Mansur Alisha Shaik , linux-media@vger.kernel.org, stanimir.varbanov@linaro.org Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, vgarodia@codeaurora.org, swboyd@chromium.org References: <1601262496-27026-1-git-send-email-mansur@codeaurora.org> <1601262496-27026-3-git-send-email-mansur@codeaurora.org> From: Stanimir Varbanov Message-ID: <339d0c7e-a5ba-400d-e733-3ede8d20dc7f@linaro.org> Date: Tue, 29 Sep 2020 15:16:55 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <1601262496-27026-3-git-send-email-mansur@codeaurora.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mansur, On 9/28/20 6:08 AM, Mansur Alisha Shaik wrote: > Currently video driver is 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(). > > Fixes: 7482a983d ("media: venus: redesign clocks and pm domains control") In fact all changes in this series are related to interconnect. The interconnect calls are moved to venus_runtime_suspend/resume by commit [1], that's why I think the Fixes: tag for all patches in this series should be [1]. [1] 07f8f22a33a9e ("media: venus: core: remove CNOC voting while device suspend") > Signed-off-by: Mansur Alisha Shaik > Reviewed-by: Stephen Boyd > --- > drivers/media/platform/qcom/venus/core.c | 17 ++++++++++++++++- > 1 file changed, 16 insertions(+), 1 deletion(-) > > diff --git a/drivers/media/platform/qcom/venus/core.c b/drivers/media/platform/qcom/venus/core.c > index 52a3886..fa363b8 100644 > --- a/drivers/media/platform/qcom/venus/core.c > +++ b/drivers/media/platform/qcom/venus/core.c > @@ -363,7 +363,18 @@ static __maybe_unused int venus_runtime_suspend(struct device *dev) > > ret = icc_set_bw(core->cpucfg_path, 0, 0); > if (ret) > - return ret; > + goto err_cpucfg_path; > + > + ret = icc_set_bw(core->video_path, 0, 0); > + if (ret) > + goto err_video_path; > + > + return ret; > + > +err_video_path: > + icc_set_bw(core->cpucfg_path, kbps_to_icc(1000), 0); > +err_cpucfg_path: > + pm_ops->core_power(dev, POWER_ON); > > return ret; > } > @@ -374,6 +385,10 @@ 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)); > + if (ret) > + return ret; > + > ret = icc_set_bw(core->cpucfg_path, 0, kbps_to_icc(1000)); > if (ret) > return ret; > -- regards, Stan