Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp65042ybm; Tue, 26 May 2020 10:51:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcMOdHLACzpNQFSEsphBXpd7vk3ZY0hDowyaTu/u0HXbMM8aYLtzfognbjTzkbdFhUHYKr X-Received: by 2002:a17:906:f891:: with SMTP id lg17mr2077269ejb.405.1590515460261; Tue, 26 May 2020 10:51:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590515460; cv=none; d=google.com; s=arc-20160816; b=c5b2PLXHwloSFhkwchPHeO0gDDO4TtqyznBWPHybdLHaU4mmcETbw8wTXNt7IWxLBw qqbu6t8bA8aV89pF0XQ3tthWhayZFV4Ez2Piv4jk+39VZV6REnyxiGAQfUFyhSVgO5pW ldsrkkH3iYJ9aFwgTR1em5IBiMJuIgIvqd8rTj4g/QOhm6PWel64ozV5m2ctJTs2n8Wo Hmcp7P7/UkqJJDbWgRnMDG+pgF2qNOsrlCUV5yZ3apcKr/dwWqQ6UZBDVC9V8IJ7Ev/z aVRtXesL6GT4Z2KRBKYzgAAn2tD2amW1m+vmfiE99Vi/odo54/XvsZGmBrAfTslC8bNz F8Ag== 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:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=7keFiYQqaL3DuPDgQ1CTQxclwRsZANwrQiftoCTSuPc=; b=aEBHm5pHpdFv5I5f2tv7YNpZMggZ8yqR9YccIOpnBVP4u34KNjrBFPokjHtJ9MPsgh ZA8ePi3cFF53FxL8dSeiMLWJbXnhVxF8zTH0ysd541zH/C6O7HGO/aTK6Sc6Yk0anOHP qthf2PGyC7UhyHaJqhlxR/F8chbjtulrU83MsmyaDUJKe+i7TDTedQH0GLyRoxC2oR+l u1cxMEwc+UA/IKq7wBHYcLQUDAnNoejise4EjVUuYA6gQa+VX9TqntTASjJ2Sqw0MEPY 46Vd+mCnhEInYefKD7zXBErpqmh6XS2HnlTG0oFIBUqRtW6VSBLDb0dF6ppWIStNZmRS M3qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=XkwRM41V; 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 y13si263538ejb.599.2020.05.26.10.50.35; Tue, 26 May 2020 10:51:00 -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=XkwRM41V; 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 S2389183AbgEZRsY (ORCPT + 99 others); Tue, 26 May 2020 13:48:24 -0400 Received: from mail27.static.mailgun.info ([104.130.122.27]:24478 "EHLO mail27.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389134AbgEZRsX (ORCPT ); Tue, 26 May 2020 13:48:23 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1590515302; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=7keFiYQqaL3DuPDgQ1CTQxclwRsZANwrQiftoCTSuPc=; b=XkwRM41VQoE2z6WPeVMUcXAEE1zpSYS9Cm5Dq9A0decz072TXMvKy7nKOr2QyFJZCnhGr1u4 v4jhL6Xil5BrXsr3We8giWGvUEWMQr8WjYMQc7MqbkzMOwXMr1e/SwknTad881JagOklEFVk kktJZg1nYrbjspXJ9bjIaguslXc= X-Mailgun-Sending-Ip: 104.130.122.27 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-n03.prod.us-east-1.postgun.com with SMTP id 5ecd5665cb04586933a7b976 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 26 May 2020 17:48:21 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 6262DC433AD; Tue, 26 May 2020 17:48:20 +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=-1.0 required=2.0 tests=ALL_TRUSTED 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: sibis) by smtp.codeaurora.org (Postfix) with ESMTPSA id 73091C433C6; Tue, 26 May 2020 17:48:19 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 26 May 2020 23:18:19 +0530 From: Sibi Sankar To: Viresh Kumar Cc: sboyd@kernel.org, georgi.djakov@linaro.org, bjorn.andersson@linaro.org, saravanak@google.com, mka@chromium.org, nm@ti.com, agross@kernel.org, david.brown@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, rjw@rjwysocki.net, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, dianders@chromium.org, vincent.guittot@linaro.org, amit.kucheria@linaro.org, ulf.hansson@linaro.org, lukasz.luba@arm.com, sudeep.holla@arm.com Subject: Re: [PATCH v4 06/12] cpufreq: qcom: Update the bandwidth levels on frequency change In-Reply-To: <8fc5b72c9af6fd6a707a280cfc678677@codeaurora.org> References: <20200504202243.5476-1-sibis@codeaurora.org> <20200504202243.5476-7-sibis@codeaurora.org> <20200505045012.zfx2e6chqo5f3e4n@vireshk-i7> <8fc5b72c9af6fd6a707a280cfc678677@codeaurora.org> Message-ID: X-Sender: sibis@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-05-05 12:49, Sibi Sankar wrote: > On 2020-05-05 10:20, Viresh Kumar wrote: >> On 05-05-20, 01:52, Sibi Sankar wrote: >>> Add support to parse optional OPP table attached to the cpu node when >>> the OPP bandwidth values are populated. This allows for scaling of >>> DDR/L3 bandwidth levels with frequency change. >>> >>> Signed-off-by: Sibi Sankar >> >> What about using opp_set_rate instead ? > > I can't use opp_set_rate since > the cpu dev does not have a > clock associated with it and the > scaling is done through writing > on perf state register. Viresh, https://patchwork.kernel.org/cover/11548479/ GPU driver uses Georgi's series for scaling and will need a way to remove the icc votes in the suspend path, (this looks like a pattern that might be used by other clients as well) I could probably update opp_set_bw to support removing bw when NULL opp is specified. Similarly opp_set_rate will need to support set bw to 0 when set_rate is passed 0 as target freq for the same use case. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project.