Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp28790ybb; Tue, 31 Mar 2020 16:22:03 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuKv988mqcUpL6Csk2BIL2oDT7j6uHZ4BKkn1ggC6klCraYMPS0TN+w4K8FKtHfMZs4THNj X-Received: by 2002:a4a:b507:: with SMTP id r7mr15322768ooo.70.1585696922906; Tue, 31 Mar 2020 16:22:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585696922; cv=none; d=google.com; s=arc-20160816; b=rk4K2WmAPF2CF8ycCnoiAg1pxOScD+9X3bpcUv+kVtBBkXzlH45L50I7eJpcdX2cAd tmryGcdGebQC8vHF+kCQj+ZTnXV4Kyb9sDL+eM2zDS9o7kAr2B4mcLdGboD1VT0nIDYt hnzHmEy3haeqbAbSTDXyOY4cX+Pm+B83yp1EPz2B7L+GWEIPPpFTI5jnwO+cIJQIpHbu Stq/I4H2+3Jod1xN7vmKf6G+SzDIPAtE/5th2VZ6HWCj2yDPvWgw7RYt3EqHEZDVGF7p I33gokNL5x6biIqgW2UtidZikHkUv4xdqpMe5SCDUiOUesUpPKlSR8/pD0naFO7CEZMr +5Zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:dlp-filter:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:organization:from:cc:to:subject :dkim-signature:dkim-filter; bh=Ykc51i8hr0AncU8IY+n1mU9alBghALWWelj6pYw7wT8=; b=KWvWhzsV7I+T0RnXSX6JpqHdgNyKiZmIH92G4g1QmrMLqqx6O5f45E9I0CCNpTnpc7 bkx4IqjUKWO6f93OO841+HvicjxCgjucRa36Lh9eZDJZoWo+5R99DfGgCHIe5O9quCPO 6SdMUDPQBQYIalxgLH3He7DeRSFhjQZV4lP4BHzIRW/0Qqfi4KrHI+rf1NmUpbT5nb9J 4jE/28DYFskfYSHAcaLmE7vfan6w+UKcMPnfprUVSQaPmD5GTs4lIzXNN0FPiCiPdKmQ rShis2AVECPBP93bxMWbtwumKzq8hySYtWGOPCsDsrGfZkC4siI7x+88KwqFOwoBU1Rm yeUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=GbksPALQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z6si136063oia.219.2020.03.31.16.21.48; Tue, 31 Mar 2020 16:22:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=GbksPALQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731506AbgCaXUf (ORCPT + 99 others); Tue, 31 Mar 2020 19:20:35 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:25348 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731331AbgCaXUe (ORCPT ); Tue, 31 Mar 2020 19:20:34 -0400 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20200331232032epoutp04c387904a3e05ec333a7d4a0f789f1dfb~Bht4dpAlH2426024260epoutp04x for ; Tue, 31 Mar 2020 23:20:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20200331232032epoutp04c387904a3e05ec333a7d4a0f789f1dfb~Bht4dpAlH2426024260epoutp04x DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1585696832; bh=Ykc51i8hr0AncU8IY+n1mU9alBghALWWelj6pYw7wT8=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=GbksPALQYDbyuDVhQCba/AjdCK+F2JEAMKWVpG8p3Tt1tD6Toq1s8QxqbjNI5gSn5 0RgsOJ5ya1KDaOcBbb+1WvTrquOZU7yhskk088pyJBR17DpDG0MKbytJLXR8GonkME S0/G/RbAQ20Dnf70Psq5dikp4IbRjHtB/oAYTeq0= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20200331232031epcas1p198ac5d860533e73152c178ceb5a8b4d6~Bht3uqVc91864018640epcas1p10; Tue, 31 Mar 2020 23:20:31 +0000 (GMT) Received: from epsmges1p2.samsung.com (unknown [182.195.40.157]) by epsnrtp1.localdomain (Postfix) with ESMTP id 48sQKn0WwbzMqYm1; Tue, 31 Mar 2020 23:20:29 +0000 (GMT) Received: from epcas1p4.samsung.com ( [182.195.41.48]) by epsmges1p2.samsung.com (Symantec Messaging Gateway) with SMTP id CE.1F.04140.A30D38E5; Wed, 1 Apr 2020 08:20:26 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200331232025epcas1p242a0b7a24c7a68d679ae6b42a40e3985~BhtyRVhZH3036430364epcas1p2I; Tue, 31 Mar 2020 23:20:25 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200331232025epsmtrp1b84b8180cf280a74e93bbd400b0d6324~BhtyQa0M02638126381epsmtrp1I; Tue, 31 Mar 2020 23:20:25 +0000 (GMT) X-AuditID: b6c32a36-fbbff7000000102c-57-5e83d03a5b87 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id D6.75.04024.930D38E5; Wed, 1 Apr 2020 08:20:25 +0900 (KST) Received: from [10.113.221.102] (unknown [10.113.221.102]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200331232025epsmtip29ebcd9c061df67d3a392e4649743f696~BhtyAla7I2561625616epsmtip24; Tue, 31 Mar 2020 23:20:25 +0000 (GMT) Subject: Re: [PATCH v1 5/5] PM / devfreq: tegra30: Make CPUFreq notifier to take into account boosting To: Dmitry Osipenko , Thierry Reding , MyungJoo Ham , Kyungmin Park , Jonathan Hunter , Michael Turquette , Stephen Boyd Cc: linux-clk@vger.kernel.org, linux-pm@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org From: Chanwoo Choi Organization: Samsung Electronics Message-ID: Date: Wed, 1 Apr 2020 08:29:31 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Thunderbird/59.0 MIME-Version: 1.0 In-Reply-To: <20200330231617.17079-6-digetx@gmail.com> Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrPJsWRmVeSWpSXmKPExsWy7bCmga7VheY4g5erxCxWf3zMaNEyaxGL xdmmN+wWH3vusVpc3jWHzeJz7xFGi84vs9gsLp5ytbjduILN4t+1jSwWP3fNY3Hg9nh/o5Xd Y+esu+wem1Z1snn0Nr9j8+jbsorR4/MmuQC2qGybjNTElNQihdS85PyUzLx0WyXv4HjneFMz A0NdQ0sLcyWFvMTcVFslF58AXbfMHKDzlBTKEnNKgUIBicXFSvp2NkX5pSWpChn5xSW2SqkF KTkFlgV6xYm5xaV56XrJ+blWhgYGRqZAhQnZGRNaWlgKHnBU9Lxay9TAOI+9i5GTQ0LAROJy wxTWLkYuDiGBHYwSpxc1s0A4nxgl5n1qZIJwvjFKHF64A65l78fbUIm9jBLbJj9nh3DeM0p8 +LaXD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0JLY/+IGG4jN L6AocfXHY7A4r4CdxMFD18DiLAIqEp+e/mACsUUFwiR2LnnMBFEjKHFy5hMWEJtTwEyife4f Zohl6hJ/5l2CssUlbj2ZzwRhy0tsfzuHeQKj8Cwk7bOQtMxC0jILScsCRpZVjJKpBcW56bnF hgWGeanlesWJucWleel6yfm5mxjBEailuYPx8pL4Q4wCHIxKPLwKVs1xQqyJZcWVuYcYJTiY lUR42fwb4oR4UxIrq1KL8uOLSnNSiw8xSnOwKInzPs07FikkkJ5YkpqdmlqQWgSTZeLglGpg 9LC/mrlrVVeUq/kT58cLavNYXQ5zntzGY3Nqb/Ce3H260oEMsbtuBbPfq2UynarzMHu7mf+U lx0HX/f+4xKNc9SIb/6yOdVL9pPoDONHQUqXZsdbveUQSzJZIZKsGyanlL4+4U+RutxPxady 9zi49F5seHNNRFXGdvWy9dfLFe2yrHqyqy8qsRRnJBpqMRcVJwIAo1QZCLwCAAA= X-CMS-MailID: 20200331232025epcas1p242a0b7a24c7a68d679ae6b42a40e3985 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20200330232026epcas1p2234ae241b9693555b4df74aab3d8aee9 References: <20200330231617.17079-1-digetx@gmail.com> <20200330231617.17079-6-digetx@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dmitry, On 3/31/20 8:16 AM, Dmitry Osipenko wrote: > MCCPU frequency boosting needs to be taken into account in order to avoid > scheduling of unnecessary devfreq updates. "in order to avoid scheduling of unnecessary devfreq updates." I don't understand the correct meaning of following description. Could you explain it more detailed? > > Signed-off-by: Dmitry Osipenko > --- > drivers/devfreq/tegra30-devfreq.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/devfreq/tegra30-devfreq.c b/drivers/devfreq/tegra30-devfreq.c > index 34f6291e880c..3b57aac9894c 100644 > --- a/drivers/devfreq/tegra30-devfreq.c > +++ b/drivers/devfreq/tegra30-devfreq.c > @@ -420,7 +420,7 @@ tegra_actmon_cpufreq_contribution(struct tegra_devfreq *tegra, > > static_cpu_emc_freq = actmon_cpu_to_emc_rate(tegra, cpu_freq); > > - if (dev_freq >= static_cpu_emc_freq) > + if (dev_freq + actmon_dev->boost_freq >= static_cpu_emc_freq) > return 0; > > return static_cpu_emc_freq; > -- Best Regards, Chanwoo Choi Samsung Electronics