Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1797480pxk; Sun, 13 Sep 2020 17:04:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBT5N7YAS8k8jXydwHsBiwzTqvZBdcj2zJv+v37yKUVkZmi6Ds0IMiZa7RkHnAyD5PwfPy X-Received: by 2002:a17:906:2552:: with SMTP id j18mr11892970ejb.476.1600041853754; Sun, 13 Sep 2020 17:04:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600041853; cv=none; d=google.com; s=arc-20160816; b=OcF6AcTmv1eM3QTKgbNTqYBGCeqUm+WyjAqeYcNd7LytJxdAh00MAN6CdsJfXzcNvT LtvHEFKXfMDJaFgaNs9cX9rTCM25hCA/1oFf//U4L2GaPOaVuUnTPyMiehccMkgqBPK+ OABed1tRbY2DeLzIFewm04wB698USwQrMqcznR6Bobs6D2VA9Ev25080RTm0mInA01/u V4Ou1Hb27ACsjZOlJHzmLA6QZvslGJprwnuBNXyudDj4l9+qI3xZcbktbYwUBHhp42EC OORiaIfMWM6/ub2sNmhuxMXDEhLFZHReCv1ocS0QQS6duSqbN5nArcGvhhkF4I2nvEiC LOBg== 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=zD3gLmTYhnddHFCsa6cntVi8nNSLykR1usqvZQp7WT4=; b=JG0nqBNs2FCCa6EkljQ0WQex1oFxhSbrLJO4EuAV8Xhed7rCdxoUzHWgCuJT4DaGLz AHHho9d85v9TdVVXAjxjLXxM8uSTiXFLpUfLKZxkf/uyBVk/mhjbJKJq9jyL1aQKsvOR FGfjzk6ffgiXXFTQnMBs5TahluHUhgA4j+2LQdOfFi3giTwl3S69MKrLOfRTnMhVLN0o 1fiY5sTZye79GTZAXBw0PLeyGngGcUzFZNZ5eBP2EorrL0EkzJvSPEV4WSPILM9wStK5 fHK6oT8bjFZrF/HtMYb5Q3xiNbLMAjgJVrvE+S5Sl0ZkuczTLC8QYbqlNViDOClh5WDz SOEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=GTH0kISh; 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=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k6si6352756edr.111.2020.09.13.17.03.50; Sun, 13 Sep 2020 17:04:13 -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=@samsung.com header.s=mail20170921 header.b=GTH0kISh; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725966AbgINADT (ORCPT + 99 others); Sun, 13 Sep 2020 20:03:19 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:23934 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725950AbgINADP (ORCPT ); Sun, 13 Sep 2020 20:03:15 -0400 Received: from epcas1p3.samsung.com (unknown [182.195.41.47]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20200914000312epoutp03c44a440384fc4b50a0ef7616d6820f82~0fYhoOIUM1482414824epoutp036 for ; Mon, 14 Sep 2020 00:03:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20200914000312epoutp03c44a440384fc4b50a0ef7616d6820f82~0fYhoOIUM1482414824epoutp036 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1600041792; bh=zD3gLmTYhnddHFCsa6cntVi8nNSLykR1usqvZQp7WT4=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=GTH0kISh5tNImTuIi0ev2fgwM3JBJ930Ud4Ec6uBCJk0JriB1Xd3VG3TVhyAMWhtW vQdSS84lzjsOmv6henCE/Ru/4oBadYK5LQPmDbfA3eiZgO5aKfoYjllaRA3hubo4ct Rkn1nK3E+WTbmzb/Y+caDpOz5ZZzTM7Th6T6YpBc= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20200914000311epcas1p43fc273c362e0cb8d2ba842ed6c90fceb~0fYhH53Qa0935009350epcas1p4W; Mon, 14 Sep 2020 00:03:11 +0000 (GMT) Received: from epsmges1p1.samsung.com (unknown [182.195.40.154]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4BqRQP5MdczMqYkh; Mon, 14 Sep 2020 00:03:09 +0000 (GMT) Received: from epcas1p3.samsung.com ( [182.195.41.47]) by epsmges1p1.samsung.com (Symantec Messaging Gateway) with SMTP id A8.A5.18978.B33BE5F5; Mon, 14 Sep 2020 09:03:07 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p4.samsung.com (KnoxPortal) with ESMTPA id 20200914000306epcas1p424ad2c28e76185e55b8db51d7f987027~0fYcM7Oym0935409354epcas1p4n; Mon, 14 Sep 2020 00:03:06 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200914000306epsmtrp19b22c3cae49db1ab8432c8adc6837908~0fYcMDcGk0656106561epsmtrp1m; Mon, 14 Sep 2020 00:03:06 +0000 (GMT) X-AuditID: b6c32a35-b8298a8000004a22-8d-5f5eb33b8dc7 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 14.4E.08303.A33BE5F5; Mon, 14 Sep 2020 09:03:06 +0900 (KST) Received: from [10.113.221.102] (unknown [10.113.221.102]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200914000306epsmtip1ee2f606f3184bc53cccecb14dfa8fe3e~0fYb-A76V2589225892epsmtip1Q; Mon, 14 Sep 2020 00:03:06 +0000 (GMT) Subject: Re: [PATCH] PM / devfreq: Add timer type to devfreq_summary debugfs To: myungjoo.ham@samsung.com, kyungmin.park@samsung.com, lukasz.luba@arm.com, b.zolnierkie@samsung.com Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org From: Chanwoo Choi Organization: Samsung Electronics Message-ID: Date: Mon, 14 Sep 2020 09:15:18 +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: <20200908110853.19277-1-cw00.choi@samsung.com> Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupik+LIzCtJLcpLzFFi42LZdlhTX9d6c1y8wbJHqhYbZ6xntTjb9Ibd 4vKuOWwWn3uPMFosbGpht7jduILNgc1jzbw1jB59W1YxenzeJBfAHJVtk5GamJJapJCal5yf kpmXbqvkHRzvHG9qZmCoa2hpYa6kkJeYm2qr5OIToOuWmQO0V0mhLDGnFCgUkFhcrKRvZ1OU X1qSqpCRX1xiq5RakJJTYFmgV5yYW1yal66XnJ9rZWhgYGQKVJiQnbHy7Ha2gjcaFZtn32Jr YFwo1cXIySEhYCJxZflFli5GLg4hgR2MEt+WHGWFcD4xSnz9uAYq85lRYmXzKUaYlnUTnkEl djFKdPe1s0E47xklLp9vZwWpEhbwkfj35iYTiC0ikCGx9NoxMJtZwEri9cdudhCbTUBLYv+L G2wgNr+AosTVH4/BNvAK2Ems3PocrJ5FQFVi9+WnYPWiAmESJ7e1QNUISpyc+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+AUUJa7+eMwIYvMK2Ems3PocbBCLgKrE7stPwepFBcIkdi55zARRIyhx cuYTFhCbU8BaYltLIwvEMnWJP/MuMUPY4hK3nsxngrDlJba/ncM8gVF4FpL2WUhaZiFpmYWk ZQEjyypGydSC4tz03GLDAqO81HK94sTc4tK8dL3k/NxNjOCI0dLawbhn1Qe9Q4xMHIyHGCU4 mJVEeF1TYuOFeFMSK6tSi/Lji0pzUosPMUpzsCiJ836dtTBOSCA9sSQ1OzW1ILUIJsvEwSnV wOSvstp8lmVqiNLswqwipatS/Q1l4c9Y/6dcOvRL4njGpTk8r5QOSIUs06q4pvb/8bszC1Pk Zn8RnHCjwdCzODjIs37ylyX390187fkyz5QpfVp+3EK5XubPi14+MFkjHmhQe2VLTFaihkPy r0kzD1n3fX5xwP/b9qtTkhr9jNlsJlz6E/zL+NklkyXv9FtyNxv26Af/LsvbffHkJEN3/9VS MvMvH1r80/gcV+vfShvvj3pLOw6861IyWXno0qt3YtHyGzrm7bXynuXIJ8+xacUl2aO+QvKS T5aLWe/+cTFQf/dymbe1rMI7+PZVPbuxXFqRifF7HG9tqtX92X+XTeh1t+y/H3DoUfnsyjCf rl1KLMUZiYZazEXFiQD0zW3uBwMAAA== X-CMS-MailID: 20200914000306epcas1p424ad2c28e76185e55b8db51d7f987027 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: 20200908105636epcas1p20ca5e07616e942c3b2a47fc5716c14ed References: <20200908110853.19277-1-cw00.choi@samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/8/20 8:08 PM, Chanwoo Choi wrote: > The commit 4dc3bab8687f ("PM / devfreq: Add support delayed timer for > polling mode") supports the delayed timer but this commit missed > the adding the timer type to devfreq_summary debugfs node. > Add the timer type to devfreq_summary debugfs. > > Fixes: 4dc3bab8687f ("PM / devfreq: Add support delayed timer for polling mode") > Signed-off-by: Chanwoo Choi > --- > drivers/devfreq/devfreq.c | 11 ++++++++--- > 1 file changed, 8 insertions(+), 3 deletions(-) > > Example after adding 'timer' information to debugfs_summary debugfs node > on Odroid-XU3 board as following: > root@localhost:~# cat /sys/kernel/debug/devfreq/devfreq_summary > dev parent_dev governor timer polling_ms cur_freq_Hz min_freq_Hz max_freq_Hz > ------------------------------ ------------------------------ --------------- ---------- ---------- ------------ ------------ ------------ > 10c20000.memory-controller null simple_ondemand delayed 100 825000000 165000000 825000000 > 11800000.gpu null simple_ondemand deferrable 50 420000000 177000000 600000000 > soc:bus_wcore null simple_ondemand deferrable 50 532000000 88700000 532000000 > soc:bus_noc soc:bus_wcore passive null 0 111000000 66600000 111000000 > soc:bus_fsys_apb soc:bus_wcore passive null 0 222000000 111000000 222000000 > soc:bus_fsys2 soc:bus_wcore passive null 0 200000000 75000000 200000000 > soc:bus_mfc soc:bus_wcore passive null 0 333000000 83250000 333000000 > soc:bus_gen soc:bus_wcore passive null 0 266000000 88700000 266000000 > soc:bus_peri soc:bus_wcore passive null 0 66600000 66600000 66600000 > soc:bus_g2d soc:bus_wcore passive null 0 333000000 83250000 333000000 > soc:bus_g2d_acp soc:bus_wcore passive null 0 266000000 66500000 266000000 > soc:bus_jpeg soc:bus_wcore passive null 0 300000000 75000000 300000000 > soc:bus_jpeg_apb soc:bus_wcore passive null 0 166500000 83250000 166500000 > soc:bus_disp1_fimd soc:bus_wcore passive null 0 200000000 120000000 200000000 > soc:bus_disp1 soc:bus_wcore passive null 0 300000000 120000000 300000000 > soc:bus_gscl_scaler soc:bus_wcore passive null 0 300000000 150000000 300000000 > soc:bus_mscl soc:bus_wcore passive null 0 666000000 84000000 666000000 > > > diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c > index b9b27fb3291e..d4424b5d8306 100644 > --- a/drivers/devfreq/devfreq.c > +++ b/drivers/devfreq/devfreq.c > @@ -1790,20 +1790,23 @@ static int devfreq_summary_show(struct seq_file *s, void *data) > struct devfreq *p_devfreq = NULL; > unsigned long cur_freq, min_freq, max_freq; > unsigned int polling_ms; > + unsigned int timer; > > - seq_printf(s, "%-30s %-30s %-15s %10s %12s %12s %12s\n", > + seq_printf(s, "%-30s %-30s %-15s %-10s %10s %12s %12s %12s\n", > "dev", > "parent_dev", > "governor", > + "timer", > "polling_ms", > "cur_freq_Hz", > "min_freq_Hz", > "max_freq_Hz"); > - seq_printf(s, "%30s %30s %15s %10s %12s %12s %12s\n", > + seq_printf(s, "%30s %30s %15s %10s %10s %12s %12s %12s\n", > "------------------------------", > "------------------------------", > "---------------", > "----------", > + "----------", > "------------", > "------------", > "------------"); > @@ -1827,13 +1830,15 @@ static int devfreq_summary_show(struct seq_file *s, void *data) > cur_freq = devfreq->previous_freq; > get_freq_range(devfreq, &min_freq, &max_freq); > polling_ms = devfreq->profile->polling_ms; > + timer = devfreq->profile->timer; > mutex_unlock(&devfreq->lock); > > seq_printf(s, > - "%-30s %-30s %-15s %10d %12ld %12ld %12ld\n", > + "%-30s %-30s %-15s %-10s %10d %12ld %12ld %12ld\n", > dev_name(&devfreq->dev), > p_devfreq ? dev_name(&p_devfreq->dev) : "null", > devfreq->governor_name, > + polling_ms ? timer_name[timer] : "null", > polling_ms, > cur_freq, > min_freq, > Applied it. -- Best Regards, Chanwoo Choi Samsung Electronics