Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3165639imu; Fri, 23 Nov 2018 23:07:39 -0800 (PST) X-Google-Smtp-Source: AFSGD/XoAeB7Wcyra8dFnyAFG4pBYkveBtblpgHfxFHgrvAAAg6RHcJQb1MuXmkx2d9seer4FHAH X-Received: by 2002:a63:f515:: with SMTP id w21mr16940555pgh.220.1543043259234; Fri, 23 Nov 2018 23:07:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543043259; cv=none; d=google.com; s=arc-20160816; b=tU7M+8A/xPvDWTclbuTdvJqLpSldjm4Dd7J+d8ZOmteBo8xcqU/akqBVQh9oQUH5iL LyJa24pgK0+aAUhQXnArexc8b2Iy5BBVm4CQUvA7za/BqYNlwbl3xRZII7V03dIJWrtY Qh2D9SVZUFBcQu9pURdzuzg5P7EnsyHRkeyH5VepKfMNeNFkKFrHR2XXSOHmOd1D+IRR PGftNC0cuKzUPiRiCjcRhMLy/BaFP9hZQ972Xy5E24IgI4qQVsKfCIpRi0Qik7w1TSlG gfcuR44UJVpfKkjnBwei3HiI1Boo/gUIMhrXN/cd6fpbDqtBG+y2HeYNrOFrgL6b0ZpK KkSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:cc:to:subject:dkim-signature :dkim-filter; bh=6OpKffNPyTf6bD7r1zmErLdYfZYZWIrSuKk926FurGo=; b=sAWwvJ/ACIPK2GqsYAQxkvRsgpsNCd98N5YKwzen37cmkGbYo3AyqFS2aZXha17MEh tYhCKJbW2MLddM7t8k05ktVwZkBb1NZDC/3YQC8LtLJ8gTKZwChDSUyQYmwYS83XUwbt UZbnOw8JKVV1v+S1cdU+Pn5l74StvYPgrbkM+7wsgTowWoEPE+hb5OpeuNZDaOuCgmaZ tve6JhJduYItzTQrvR/9HPdGHBlinH12WT0/l2shM8ghG34Vc2M3K3ywLYawaNd9vz2O jocFDc+kKesxwY6K3SQ9zaJQbaS6Dykk35J4bUwzEb312780gGeGujRD8IBZzliiH3ed IdfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=buCJjSA9; 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 t12si34340635plq.190.2018.11.23.23.07.24; Fri, 23 Nov 2018 23:07:39 -0800 (PST) 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=buCJjSA9; 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 S2406470AbeKWEZF (ORCPT + 99 others); Thu, 22 Nov 2018 23:25:05 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:52404 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389307AbeKWEZF (ORCPT ); Thu, 22 Nov 2018 23:25:05 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20181122174440euoutp0270bf64862d43d9e277c4a52eb13f69cc~pg0U307z91385513855euoutp02T for ; Thu, 22 Nov 2018 17:44:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20181122174440euoutp0270bf64862d43d9e277c4a52eb13f69cc~pg0U307z91385513855euoutp02T DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1542908680; bh=6OpKffNPyTf6bD7r1zmErLdYfZYZWIrSuKk926FurGo=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=buCJjSA9Jm9+c7mMmRuBYjp6vbEZruFrCFnyuZTDFnfLpcBjnNf/MdhEW1SNhMw56 mn3jvojmoOcQjEa/HkfexXqY4ZfeZ6mLXqoF7XY6ASvXSl0IOIngcQ+3wGLfLaIb87 FSyiERTI9dlkc5pOqBa/i1B3RGA73dkMHw2lcKnU= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181122174439eucas1p2c58b0daa8d45b78d1d868ab14b8f8f69~pg0TrV7Ve2468424684eucas1p2F; Thu, 22 Nov 2018 17:44:39 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id AE.16.04441.60BE6FB5; Thu, 22 Nov 2018 17:44:39 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20181122174438eucas1p13eb29eefa78d8555b967f05b1c4492f0~pg0SxiK8b0614206142eucas1p1j; Thu, 22 Nov 2018 17:44:38 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20181122174438eusmtrp1a681e7f9cd7e46d3760ba31419a946d2~pg0SgenHw0757007570eusmtrp1H; Thu, 22 Nov 2018 17:44:38 +0000 (GMT) X-AuditID: cbfec7f2-5e3ff70000001159-f4-5bf6eb069e27 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id DC.B8.04284.50BE6FB5; Thu, 22 Nov 2018 17:44:37 +0000 (GMT) Received: from [106.120.51.20] (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20181122174437eusmtip26ed8396e46a651b65be9ccbfd81f89bc~pg0RmGZYf1886018860eusmtip2P; Thu, 22 Nov 2018 17:44:37 +0000 (GMT) Subject: Re: [PATCH 0/6] devfreq: handle suspend/resume To: Tobias Jakobi , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org Cc: myungjoo.ham@samsung.com, kyungmin.park@samsung.com, cw00.choi@samsung.com, rjw@rjwysocki.net, len.brown@intel.com, pavel@ucw.cz, gregkh@linuxfoundation.org, keescook@chromium.org, anton@enomsg.org, ccross@android.com, tony.luck@intel.com, robh+dt@kernel.org, mark.rutland@arm.com, kgene@kernel.org, krzk@kernel.org, m.szyprowski@samsung.com, b.zolnierkie@samsung.com From: Lukasz Luba Message-ID: <36b5f798-e2ce-f23e-f469-98b5d385fcde@partner.samsung.com> Date: Thu, 22 Nov 2018 18:44:35 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <1d9cf1b6-b625-4b6d-7578-0f02f7efdb8a@math.uni-bielefeld.de> Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA02Sa1BMYRjHvedenDqtyz5Thpk1SJNcxvC6TMOMy2FMGD6Y+sDBmTLasKdy nVEkSbTurHWZZGRbqm1tuWVKFym2TRQmmcm4ZV2KjAnpdDL69nv+z/O+z///zsuROisTyK2P i5dNcVKsgfGlXJU/3ePZts6oiY8PE7j0+jhccCqPxkUFnTRu/PaWxufLH9F4z8U8BtceMOLM 1jYSu935LH64+yOLLcfuENjR+pTGj29aGdxxsBzhU+4SAl8tb2bxpUYPgV8k5zC4+UFFz/ma ehrvvVPO4tTcLzT+WPeSmq0XXbdctGg/Z0fimSQPJZoz25F48fZ7QnTY9jPi3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+jUTDrf3ExiDB+cBJCtYiKxCuZrURQv7F70AoffgZExyWM5Tw6LqVFipvHhN+N9FC 1ZtThHChygKEsvIxWhhxLN7BxqmjjIYMk7RUZ5BNG1TxPApT85FIHbYuUs1rtPvWh4WrQqOj DkgpyYckY2h0glp3rvEjkZbjd9hq6yOygJPNAwoGcuvg9JVsLA/MZpTcLQDzmwcoX2EevFxb TfvYH0525lG+piEApztPkHmAYfw5LXw6afTmA7gOALsGe2lvgHNTGBwsGv83tg9A+3A35TUo Tg1dlnQvstwWOJm7zbuA4JbD6mc5mJcDuT2w5fNd4GWW84PPrwwQXlZwMXCitvIv41wELKp8 j/s4CPYMFGM+XgKrv1zD84HSPEM3z1DMMxTzDKUEEBYQIGXI+iS9zKtlUS9npCapEw16B/B8 i7PpZ6ULtNt31gGOAaq5rM0+Gq8kxUNypr4OQAZXBbBCvSfFHhAzj0hGw35jRook14Fwz3GX 8ODARIPn91JN+/lwXosiea1Gq4lAqiDWvTYzTskliSbpoCSlScb/HsYogrNAYdCmBTtibmpO t8aK7hDhsbmkXeekTh+zTDQtdBV0TAC/3BzXopieLV82d7qnxH77O7r7RtXWcXtJ95Q76t2D wPie2Pze0FXmX7umb4/NaTlTUVr7aX7s9vrzxx3LvkWHJH+dSBiJWFBq47dpCvfutrLm5lkF oSOrx9YrGs8ejU5XEbJO5FfiRln8A26t3KZDAwAA X-CMS-MailID: 20181122174438eucas1p13eb29eefa78d8555b967f05b1c4492f0 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20181121180156eucas1p225af7f4341a039264ff26f2a9ad9bb12 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181121180156eucas1p225af7f4341a039264ff26f2a9ad9bb12 References: <1542823301-23563-1-git-send-email-l.luba@partner.samsung.com> <1d9cf1b6-b625-4b6d-7578-0f02f7efdb8a@math.uni-bielefeld.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tobias, On 11/22/18 6:24 PM, Tobias Jakobi wrote: > Hey Lukasz, > > just wanted to say hi and thanks for picking this up. Sadly my work no longer > permits me to spend time working on the kernel. Fingers crossed for your current work and maybe for come back to kernel development in the future! > > Anyway, great that this issue finally gets solved! :) Thank you for your idea and development of these patches in v1 and v2. This functionality is really needed. Regards, Lukasz > > With best wishes, > Tobias > > > Lukasz Luba wrote: >> Hi all, >> >> This patch set aims to address the issue with devfreq devices' frequency >> during suspend/resume. It extends suspend/resume by calls to Devfreq >> framework. In the devfreq framework there is a small refactoring to avoid >> code duplication in changging frequency (patch 2) and there are extensions >> for suspending devices. >> >> It has been tested on Odroid u3 with Exynos 4412. >> >> The patch set draws on Tobias Jakobi's work posted ~2 years ago, who tried >> to solve issue with devfreq device's frequency during suspend/resume. >> During the discussion on LKML some corner cases and comments appeared >> related to the design. This patch set address them keeping in mind >> suggestions from Chanwoo Choi. >> Tobias's paches: >> https://www.spinics.net/lists/linux-samsung-soc/msg56602.html >> >> Regards, >> Lukasz Luba >> >> Lukasz Luba (6): >> devfreq: add basic fileds supporting suspend functionality >> devfreq: refactor set_target frequency function >> devfreq: add support for suspend/resume of a devfreq device >> devfreq: add devfreq_suspend/resume() functions >> drivers: power: suspend: call devfreq suspend/resume >> arm: dts: exynos4: set opp-suspend for DMC and leftbus >> >> arch/arm/boot/dts/exynos4210.dtsi | 2 + >> arch/arm/boot/dts/exynos4412.dtsi | 2 + >> drivers/base/power/main.c | 3 + >> drivers/devfreq/devfreq.c | 159 ++++++++++++++++++++++++++++++-------- >> include/linux/devfreq.h | 11 +++ >> 5 files changed, 146 insertions(+), 31 deletions(-) >> > > >