Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2521614ybx; Fri, 8 Nov 2019 05:34:28 -0800 (PST) X-Google-Smtp-Source: APXvYqyrtHtjVyopDOf3Z9H3QQbIwk63O1Hzsd12XGlAS+vOYdqIcVGHQmcu/y/mvPTXn6vOAOUZ X-Received: by 2002:a05:6402:158d:: with SMTP id c13mr10144142edv.62.1573220068492; Fri, 08 Nov 2019 05:34:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573220068; cv=none; d=google.com; s=arc-20160816; b=jccE+Xzs+W0geh6zVsTUqViDqB6TZ1i8sy5l/ERwgFFfALaHEuVnI3iKO06sypgVX4 ImHt3Qg7MjaPq7Bc/yJwYX+LmNQZR+QueN2v54EhFvSn3qbgOhahXGeP5HWPKNqJAUxn EJoQMOuhqo78JJvdI0EB/H92lBikt7EL2fqN2bP50LpY9nvVyPSasfJDo5RM6tFfH3Ns y42fkRmLzc5gGwfNrD/NLf5vbTrgjpPtDy/VL+CydkCEI0Ru57C0qrY6OJB49MLsB1IL 9C7b6BklCspatyhT//YAnHv4YiONeCSOIJkRtZzJaukU/et63Y0E2FXNxhF4cUpxVWul AHGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject :dkim-signature; bh=ACIMBrgborIoC2m5uBLNb/+jxkzjuWQrkN4+mG5Y4nw=; b=YCuUtdqchp7e2RMd4ICVydIIk8kjEmDodi+KWSV5MO2vH6OkBWG2oHdv0yrKYCz+pz vl5W3VzRoVXT1D+v6GYH2NJ50DNgDqGyP8IEUZ/0Hkjzd49S+pmiLkEVxdfRMNg22poK qC8sAs/D/O/ahBv02Z43mXCsa/kR0yZVzUM2b3MC9TiXASVWCaFPpRY/yMaFDakJ9I/b hKLNSKURD+v+UOU2+qdmSnSQ98BRYRHBJRoQcbcb3P1BSOm/cT44g14apGz8XzrdOAbb vUYyWiL3dxVbIybxQwICE4x3IcTa1cUmSQUjakcpuIh5147qmIn1RffAg8yyclHQ7I04 AJcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bc0Hy4iA; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g6si4037107edf.256.2019.11.08.05.34.03; Fri, 08 Nov 2019 05:34:28 -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=@linaro.org header.s=google header.b=bc0Hy4iA; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728441AbfKHNdF (ORCPT + 99 others); Fri, 8 Nov 2019 08:33:05 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:38764 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728265AbfKHNdF (ORCPT ); Fri, 8 Nov 2019 08:33:05 -0500 Received: by mail-wm1-f68.google.com with SMTP id z19so6243343wmk.3 for ; Fri, 08 Nov 2019 05:33:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ACIMBrgborIoC2m5uBLNb/+jxkzjuWQrkN4+mG5Y4nw=; b=bc0Hy4iALAMrNp4pnfyzxtBbc84tSMVdLA4lsNwjRwXGDFUyOPj91GTtLelzer2ElA WQccCP2qQ9uECW5kzPw88X5f7oC0+InTjNs39lTh+DpTEKoB7ChvK02xsajzjPt7cyDZ aJwUiPCir2rLHNoXHOpdg8CwiGD3ocdazsoU2e1kMNSXDhhdU3d+RBay5vZvNmzEtML0 e9v9vCXVRFchRxYD3o9B+AqbfpCQ/m6VqyX23yZzB9xK6lP2JJxAzOHvNrmam16eKvsa xoiRZRmHM/6O2tjKNlF7wBcd1LR3x24ZWPW/dVSc22xEdyZepKsuzffmcaV95+45lisJ Ulnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=ACIMBrgborIoC2m5uBLNb/+jxkzjuWQrkN4+mG5Y4nw=; b=TAvo4t+L7KWPDIWFEZmt3TbdPegeWBhHJB3xCS8VqFfJkWp3bj8I58fb1vJ0aqgIS6 cVVo6wgFrtaN+T1Wl0cUlRloMV0FdhT2XAQQRINFzI1B9J69KbApCw9LEK9E27h+C1i7 BwnkJgD3cZozMKH/8rxd2xAZmN+cZ2lqsu9ggR4qx2Xf3dSd0XRrg2J4k5N3C6gwFZV8 42ROv7eyzzPn+szNZ3/Lhm0USQeor4Mmxw4mYt7nVncTORznb/mUPNGJBQeivlZNTp+y Ki4HPqlc5eM+7dd2BH3aLq/VKoPwwJhP+jpJG40cAyRJi2n1UniiUoX/dug0XjZvqTrt eg6w== X-Gm-Message-State: APjAAAWiMOtVvnppS7T7WzXb/BL2Q0BxfX6KbHlkh+cifrlwk64HjULM Tvy507CYNxEwvQoZx9f4fUOcDw== X-Received: by 2002:a7b:c181:: with SMTP id y1mr7980211wmi.16.1573219981044; Fri, 08 Nov 2019 05:33:01 -0800 (PST) Received: from ?IPv6:2a01:e34:ed2f:f020:85c9:ca0d:aae1:f680? ([2a01:e34:ed2f:f020:85c9:ca0d:aae1:f680]) by smtp.googlemail.com with ESMTPSA id g184sm9504356wma.8.2019.11.08.05.32.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Nov 2019 05:33:00 -0800 (PST) Subject: Re: [PATCH V6 2/3] cpuidle: play_idle: Specify play_idle with an idle state To: "Rafael J. Wysocki" Cc: "Rafael J. Wysocki" , Mathieu Poirier , Ingo Molnar , Peter Zijlstra , Linux PM , Linux Kernel Mailing List , Ulf Hansson References: <20191030075141.1039-1-daniel.lezcano@linaro.org> <20191030075141.1039-2-daniel.lezcano@linaro.org> <143021538.HHUP3Pj7i7@kreacher> <9dfe3bd3-1903-4dc4-0605-27cc867d87ad@linaro.org> From: Daniel Lezcano Openpgp: preference=signencrypt Autocrypt: addr=daniel.lezcano@linaro.org; prefer-encrypt=mutual; keydata= mQINBFv/yykBEADDdW8RZu7iZILSf3zxq5y8YdaeyZjI/MaqgnvG/c3WjFaunoTMspeusiFE sXvtg3ehTOoyD0oFjKkHaia1Zpa1m/gnNdT/WvTveLfGA1gH+yGes2Sr53Ht8hWYZFYMZc8V 2pbSKh8wepq4g8r5YI1XUy9YbcTdj5mVrTklyGWA49NOeJz2QbfytMT3DJmk40LqwK6CCSU0 9Ed8n0a+vevmQoRZJEd3Y1qXn2XHys0F6OHCC+VLENqNNZXdZE9E+b3FFW0lk49oLTzLRNIq 0wHeR1H54RffhLQAor2+4kSSu8mW5qB0n5Eb/zXJZZ/bRiXmT8kNg85UdYhvf03ZAsp3qxcr xMfMsC7m3+ADOtW90rNNLZnRvjhsYNrGIKH8Ub0UKXFXibHbafSuq7RqyRQzt01Ud8CAtq+w P9EftUysLtovGpLSpGDO5zQ++4ZGVygdYFr318aGDqCljKAKZ9hYgRimPBToDedho1S1uE6F 6YiBFnI3ry9+/KUnEP6L8Sfezwy7fp2JUNkUr41QF76nz43tl7oers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zgo3NsOpATFObyK3N5lhb1G9tN Lrev/4WVxNr0LPXl9bdCbQGzIQK+kAPcg8u9f2MMhHQiQX8FAjhP3wtACRhfUz9RaQykxiwv y0s5uI05ZSXhqFs9iLlh3zNU1i6J1cdzA8BReoa3cKz4UiGKEffT857iMvT/ZmgSdYY57EgV UWm57SN2ok2Ii8AXlanH5SJPkbwJZhiB7kO0cjebmoA/1SA+5yTc3zEKKFuxcpfiXxt0d/OJ om6jCJ5/uKB5Cz9bJj0WdlvS2Xb11Jrs90MoVa74H5me4jOw7m9Yyg3qExOFOXUPFL6N Message-ID: <59f10030-cef0-4d75-5135-9d0590385fda@linaro.org> Date: Fri, 8 Nov 2019 14:32:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/11/2019 11:56, Rafael J. Wysocki wrote: > On Fri, Nov 8, 2019 at 11:47 AM Daniel Lezcano > wrote: >> >> On 08/11/2019 02:20, Rafael J. Wysocki wrote: >>> On Wednesday, October 30, 2019 8:51:40 AM CET Daniel Lezcano wrote: >>>> Currently, the play_idle function does not allow to tell which idle >>>> state we want to go. Improve this by passing the idle state as >>>> parameter to the function. >>>> >>>> Export cpuidle_find_deepest_state() symbol as it is used from the >>>> intel_powerclamp driver as a module. >>>> >>>> There is no functional changes, the cpuidle state is the deepest one. >>>> >>>> Signed-off-by: Daniel Lezcano >>>> Acked-by: Mathieu Poirier >>>> Reviewed-by: Ulf Hansson >>>> --- >>>> V6: >>>> - Change variable name 'state' -> 'index': >>>> https://lkml.org/lkml/2019/10/28/874 >>>> V4: >>>> - Add EXPORT_SYMBOL_GPL(cpuidle_find_deepest_state) for the >>>> intel_powerclamp driver when this one is compiled as a module >>>> V3: >>>> - Add missing cpuidle.h header >>>> --- >>>> drivers/cpuidle/cpuidle.c | 1 + >>>> drivers/powercap/idle_inject.c | 4 +++- >>>> drivers/thermal/intel/intel_powerclamp.c | 4 +++- >>>> include/linux/cpu.h | 2 +- >>>> kernel/sched/idle.c | 4 ++-- >>>> 5 files changed, 10 insertions(+), 5 deletions(-) >>>> >>>> diff --git a/drivers/cpuidle/cpuidle.c b/drivers/cpuidle/cpuidle.c >>>> index 18523ea6b11b..b871fc2e8e67 100644 >>>> --- a/drivers/cpuidle/cpuidle.c >>>> +++ b/drivers/cpuidle/cpuidle.c >>>> @@ -126,6 +126,7 @@ int cpuidle_find_deepest_state(void) >>>> >>>> return find_deepest_state(drv, dev, UINT_MAX, 0, false); >>>> } >>>> +EXPORT_SYMBOL_GPL(cpuidle_find_deepest_state); >>> >>> That doesn't appear to be really necessary to me. >>> >>>> >>>> #ifdef CONFIG_SUSPEND >>>> static void enter_s2idle_proper(struct cpuidle_driver *drv, >>>> diff --git a/drivers/powercap/idle_inject.c b/drivers/powercap/idle_inject.c >>>> index cd1270614cc6..233c878cbf46 100644 >>>> --- a/drivers/powercap/idle_inject.c >>>> +++ b/drivers/powercap/idle_inject.c >>>> @@ -38,6 +38,7 @@ >>>> #define pr_fmt(fmt) "ii_dev: " fmt >>>> >>>> #include >>>> +#include >>>> #include >>>> #include >>>> #include >>>> @@ -138,7 +139,8 @@ static void idle_inject_fn(unsigned int cpu) >>>> */ >>>> iit->should_run = 0; >>>> >>>> - play_idle(READ_ONCE(ii_dev->idle_duration_us)); >>>> + play_idle(READ_ONCE(ii_dev->idle_duration_us), >>>> + cpuidle_find_deepest_state()); >>> >>> The next patch changes this again and I'm not sure why this intermediate >>> change is useful. >>> >>>> } >>>> >>>> /** >>>> diff --git a/drivers/thermal/intel/intel_powerclamp.c b/drivers/thermal/intel/intel_powerclamp.c >>>> index 53216dcbe173..b55786c169ae 100644 >>>> --- a/drivers/thermal/intel/intel_powerclamp.c >>>> +++ b/drivers/thermal/intel/intel_powerclamp.c >>>> @@ -29,6 +29,7 @@ >>>> #include >>>> #include >>>> #include >>>> +#include >>>> #include >>>> #include >>>> #include >>>> @@ -430,7 +431,8 @@ static void clamp_idle_injection_func(struct kthread_work *work) >>>> if (should_skip) >>>> goto balance; >>>> >>>> - play_idle(jiffies_to_usecs(w_data->duration_jiffies)); >>>> + play_idle(jiffies_to_usecs(w_data->duration_jiffies), >>>> + cpuidle_find_deepest_state()); >>> >>> I don't see a reason for changing the code here like this. >>> >>> What you really need is to have a way to set a limit on the idle >>> state exit latency for idle injection on ARM. >> >> Mmh, yes you are right. The idle state number is part of the internals >> of the cpuidle framework while the exit latency is an input (from user >> or kernel). >> >>> For that you can pass the exit latency limit to play_idle(), but then >>> you need to change powerclamp to pass UNIT_MAX or similar which is >>> ugly, or you can redefine cpuidle_use_deepest_state() to take the >>> exit latency limit as the arg (with 0 meaning use_deepest_state == false). >> >> Should it make sense to just get the resume latency in >> cpuidle_use_deepest_state() and pass the value to find_deepest_state()? > > Yes, I would change cpuidle_use_deepest_state() to take the max exit > latency as the arg (maybe with 0 meaning "don't use the deepest state > only any more"). Why not simply ? int cpuidle_find_deepest_state(struct cpuidle_driver *drv, struct cpuidle_device *dev) { int latency = cpuidle_governor_latency_req(dev->cpu); return find_deepest_state(drv, dev, latency_req, 0, false); } >> It is the only code path where the constraint is not taken into account >> AFAICT. >> >> With this simple change, we can manage everything from the pm_qos API >> then and this series is no longer needed. > > OK > -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog