Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756140AbcKXHNW (ORCPT ); Thu, 24 Nov 2016 02:13:22 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:42012 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751146AbcKXHNS (ORCPT ); Thu, 24 Nov 2016 02:13:18 -0500 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 X-AuditID: cbfee61a-f79916d0000062de-0e-5836927b8b6b Content-transfer-encoding: 8BIT Message-id: <5836927B.9010205@samsung.com> Date: Thu, 24 Nov 2016 16:10:51 +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: hl , myungjoo.ham@samsung.com Cc: "linux-pm@vger.kernel.org" , "dbasehore@chromium.org" , "dianders@chromium.org" , "linux-kernel@vger.kernel.org" , "linux-rockchip@lists.infradead.org" , "linux-arm-kernel@lists.infradead.org" , Tobias Jakobi Subject: Re: [PATCH v1 & v6 1/2] PM/devfreq: add suspend frequency support References: <20161124061416epcms1p44a0152bca14312f1229cab835ea0297f@epcms1p4> <58368C91.8030502@rock-chips.com> In-reply-to: <58368C91.8030502@rock-chips.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrNIsWRmVeSWpSXmKPExsVy+t9jAd3qSWYRBi2fBS1ebd7DZnF22UE2 ix8bTjFbbHp8jdXi8q45bBafe48wWnx68J/Z4nbjCjaLttUfWB04PWY3XGTx2Lyk3uPfMXaP v7P2s3j0bVnF6PF5k1wAW5SbTUZqYkpqkUJqXnJ+SmZeuq1SaIibroWSQl5ibqqtUoSub0iQ kkJZYk4pkGdkgAYcnAPcg5X07RLcMq72vGUvuCtSsWvuW8YGxn8CXYycHBICJhK7Pjxkg7DF JC7cWw9kc3EICSxllFh5/iQzSIJXQFDix+R7LF2MHBzMAvISRy5lQ5jqElOm5EKUP2CUmHPn LRtEuZbE7On/wFpZBFQlml7OZASx2YDi+1/cAKvhF1CUuPrjMSPIHFGBCInuE5UgYRGgczac nM8MMpNZYCOzxJWe72BzhAW8JCbMPskEsWw3o8S0yZNYQBKcAnoSEz8/ZZzAKDgLyamzEE6d hXDqAkbmVYwSqQXJBcVJ6bmGeanlesWJucWleel6yfm5mxjBEflMagfjwV3uhxgFOBiVeHgf mJlFCLEmlhVX5h5ilOBgVhLhVesFCvGmJFZWpRblxxeV5qQWH2I0Bfp1IrOUaHI+MFnklcQb mpibmBsbWJhbWpoYKYnzNs5+Fi4kkJ5YkpqdmlqQWgTTx8TBKdXAWMTQ4CttoZAdtzl0ewLT rTANpcN8AW/lPq87LbvB2iTg3p5Z5hULFu84tqZsbsh5hbzUO3GB6sdLhXomS3wNP+25ao9w wQmtNbp+BYzRSn1nNc8LMogzCp+dq/6A9Xu2Kv85vZUB1Y65jukvBd7ZSAgvvtR9cZrDFamv qg+k+VVf1d/IVpuhxFKckWioxVxUnAgAz7sAm94CAAA= X-MTR: 20000000000000000@CPGS Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2571 Lines: 80 + Tobias Jakobi, Hi Lin, We need to discuss how to support the suspend-opp of devfreq device. Now, there are two patch thread for suspend-opp of devfreq. The Lin's approach modify the devfreq_suspend_device() to support suspend-opp. The Tobias's approach[1] add new devfreq_suspend() and then call it on dpm_suspend() when entering the suspend state. [1] [RFC 0/4] PM / devfreq: draft for OPP suspend impl - https://patchwork.kernel.org/patch/9443323/ - https://patchwork.kernel.org/patch/9443325/ - https://patchwork.kernel.org/patch/9443329/ - https://patchwork.kernel.org/patch/9443331/ I think we need to discuss it together. Regards, Chanwoo Choi On 2016년 11월 24일 15:45, hl wrote: > Hi MyungJoo Ham, > > On 2016年11月24日 14:14, MyungJoo Ham wrote: >> On Thu, Nov 24, 2016 at 11:18 AM, hl wrote: >>> Hi MyungJoo Ham, >> [] >>>> We still need to sync the all status even i call target() in >>>> devfreq_suspend/resume_device >>>> directly, so still need update_devfreq() other setp except >>>> devfreq->governor->get_target_freq(devfreq, &freq); >>> And i think it better to be governor behaviors, for userspace they may not >>> want to change >>> the suspend frequency like other governor, the frequency should decide by >>> the user, if they >>> want this function, they should like other governor to rigister a >>> devfreq_monitor_suspend(). >> >>> What do you think about my rev6 patch? >> If I understand the intention correctly, this is for the stability of >> the device due to the behavior or bootloader/SoC-initializer, which >> has nothing to do with governors. >> >> Even if users are using userspace, as long as they set the custom >> frequencies lower than the default, they have the possibility of >> being unstable as ondemand is going to have. >> >> >> To reuse the update_devfreq() code, you may do something like: >> >> static int _update_freq(struct devfreq *devfreq, bool is_suspending) >> { >> /* original contents of update_freq with if statement with is_suspending wrapping get_target_freq */ >> } >> int update_freq(struct devfreq *devfreq) >> { >> return _update_freq(devfreq, false); >> } >> >> >> There should be other good non-invasive methods that are not governoe-specific as well. >> > Thanks for your suggestion, i will update the new version soon. >> >> Cheers, >> MyungJoo >> >> >> >> >> _______________________________________________ >> Linux-rockchip mailing list >> Linux-rockchip@lists.infradead.org >> http://lists.infradead.org/mailman/listinfo/linux-rockchip > > -- > Lin Huang >