Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752135AbdI0IPH (ORCPT ); Wed, 27 Sep 2017 04:15:07 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:14019 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751787AbdI0IPB (ORCPT ); Wed, 27 Sep 2017 04:15:01 -0400 X-AuditID: b6c32a36-c09ff70000018158-57-59cb5e02df26 MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset="utf-8" Message-id: <59CB5E04.6050001@samsung.com> Date: Wed, 27 Sep 2017 17:15:00 +0900 From: Chanwoo Choi Organization: Samsung Electronics User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 To: myungjoo.ham@samsung.com, Kyungmin Park Cc: "rafael.j.wysocki@intel.com" , "chanwoo@kernel.org" , Inki Dae , "linux-pm@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2 0/8] PM / devfreq: Use OPP interface to handle the frequency In-reply-to: <20170927080922epcms1p3c8f87f8f55d753f57afe053d5750ebfc@epcms1p3> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrKKsWRmVeSWpSXmKPExsWy7bCmvi5T3OlIgzcvNSwm3rjCYjHp/gQW i7NNb9gtLu+aw2bxufcIo8XtxhVsFo9XvGV3YPdYvOclk8emVZ1sHn1bVjF6fN4kF8ASlWqT kZqYklqkkJqXnJ+SmZduq+QdHO8cb2pmYKhraGlhrqSQl5ibaqvk4hOg65aZA3SBkkJZYk4p UCggsbhYSd/Opii/tCRVISO/uMRWKdrQ0EjP0MBcz8jISM/EONbKyBSoJCE1o+/laeaCqyIV E/u72BoYzwp0MXJySAiYSLTe/c7axcjFISSwg1Hiw+xHzBDOd0aJ5eubGGGqNjefYAKxhQR2 M0qcuOILYvMKCEr8mHyPpYuRg4NZQF7iyKVskDCzgKbEiy+TWCDm3GOU+LX5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ptewTGAVmITl0FsKhsxAOXcDIvIpRMrWgODc9t9io wDAvtVyvODG3uDQvXS85P3cTIzC0tx3W6tvBeH9J/CFGAQ5GJR7eiLBTkUKsiWXFlbmHGCU4 mJVEeHeFno4U4k1JrKxKLcqPLyrNSS0+xCjNwaIkzns771ikkEB6YklqdmpqQWoRTJaJg1Oq gXFCWVukjsPsCRN2zVP318nt/6+mHKC1qOphHp/4w6gkH8ZN2ncjlKaJMBXP2H31neCB4+/y pvhtFtvL7SF/kWH72TslehE33r3SbIgSrBf+x/PjgtRLi7KpBuvUpjPsqGLMX2H9rvCG7u/8 KpEXvlcWLrANEr1azNHg+VDX226LRk5aQqKKgBJLcUaioRZzUXEiAJp39ZVpAgAA X-CMS-MailID: 20170927081458epcas1p4c633ff41173d9f5d35755c1eb0d4cf32 X-Msg-Generator: CA X-Sender-IP: 182.195.42.142 X-Local-Sender: =?UTF-8?B?7LWc7LCs7JqwG1RpemVuIFBsYXRmb3JtIExhYihTL1fshLw=?= =?UTF-8?B?7YSwKRvsgrzshLHsoITsnpAbU2VuaW9yIEVuZ2luZWVy?= X-Global-Sender: =?UTF-8?B?Q2hhbndvbyBDaG9pG1RpemVuIFBsYXRmb3JtIExhYi4bU2Ft?= =?UTF-8?B?c3VuZyBFbGVjdHJvbmljcxtTZW5pb3IgRW5naW5lZXI=?= X-Sender-Code: =?UTF-8?B?QzEwG1RFTEUbQzEwVjgxMTE=?= CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20170921003355epcas1p1d1bbb04ff7a7c46946f62a91883bd6a6 X-RootMTR: 20170921003355epcas1p1d1bbb04ff7a7c46946f62a91883bd6a6 References: <59CAFEA7.10007@samsung.com> <1505954032-3327-1-git-send-email-cw00.choi@samsung.com> <20170927080922epcms1p3c8f87f8f55d753f57afe053d5750ebfc@epcms1p3> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2569 Lines: 74 On 2017년 09월 27일 17:09, MyungJoo Ham wrote: >> Hi Myungjoo, >> >> Could you please review this patchset? > > > I ignored your v2 patchset because of the follow-up message: > > | Re: [PATCH v2 8/8] PM / devfreq: exynos-bus: Register cooling device > | > | Dear all, > | > | Please ignore this patch. It has some problem. > | I'll fix and resend this patch on v2. > > I thought you'd send another series with [PATCH v3 x/8]... I'm sorry. It is my mistake about the ambiguous my comment. (The 'ignore' comment was only for patch8.) > > (I've just noticed that [PATCH v2.1] was sent yesterday. > Is the patchsetv2 ready with the replacement of 8th commit?) Yes. I modified the patch8 on 'patch v2.1'. > > Cheers, > MyungJoo > > ps. you know I'm going to be away for a long vacation > starting this week. > I can't gurantee that I'll see all of the set before the vacation. I knew of the vacation. Thanks for reply. Regards, Chanwoo Choi > >> >> On 2017년 09월 21일 09:33, Chanwoo Choi wrote: >>> These patches makes the devfreq to use the OPP interface and clean-up codes. >>> - patch 1~5 are related to the OPP interfaces. >>> - patch 6 removes the unneeded code. >>> - patch 7 clean-up for the governor name. >>> - patch 8 registers the cooling device for exynos-bus. >>> >>> [Detaild Descripion] >>> The commit a76caf55e5b3 ("thermal: Add devfreq cooling") provides >>> the devfreq cooling device by using the OPP interface such as >>> dev_pm_opp_disable() and dev_pm_opp_enable(). It means that >>> the OPP interface is able to change the available status of the frequency. >>> >>> Firstly, the existing devfreq doesn't use the OPP interface when showing >>> the minimum and maximum frequency through the following sysfs nodes: >>> It shows the wrong frequency value because min_freq/max_freq don't >>> consider the frequency status by handling OPP interface >>> (opp_dev_pm_opp_{disable|add}()). So, these patches fix this issue. >>> - /sys/class/devfreq/devfreqX/min_freq >>> - /sys/class/devfreq/devfreqX/max_freq >>> >>> Second, the 'available_frequencies' should show the all supported frequencis >>> even if the specific frequency is not available. It doesn't matter whether >>> frequneyc is available or not. Because the role of 'available_frequencies' >>> shows the all frequencies. Also, these patches fix this issue. >>> - /sys/class/devfreq/devfreqX/available_frequencies >>> >>> Third, update_devfreq() get the available next frequency by using >>> the devfreq_recommended_opp() in order to consider the disabled OPP. > > >