Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1756897ybx; Thu, 7 Nov 2019 16:54:32 -0800 (PST) X-Google-Smtp-Source: APXvYqwUE4L3UujUXBsX57yP0lc2l6n5KxASGuvBjytWH4lBq/8qqh67R/ojj6sCUJVZNwWHy0Wi X-Received: by 2002:a17:906:5e05:: with SMTP id n5mr6051010eju.116.1573174472002; Thu, 07 Nov 2019 16:54:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573174471; cv=none; d=google.com; s=arc-20160816; b=hWFX7Hns/RVzia2DPcatVO0pkrdFqHdg+1QgyrPZtbaf9D26nGLTrzKj3MdUXsHILm Wqh7vbrVPz4hCgEKK6VgfQxaqlmwbzFAFLO4aUYrWYV1csyrIN/sQpra7EYmQ0EAd8tO N1OkQHzU3v/xqZvV7ovpO8hHPu03NWgXOSOHVy6sZwdTn/kagztMQE8Iy7VU319BYGhx 50+orgo6Dxd0wNFoPW+JMsqHmM/nqqyHAJB3DgQ7UjN3Jk16H9O+Z0mCPXK9CwbJ180l WUxzgvSFa0rodgm6TO8vXl1mLABEszagdHC/ehnWZfc2tiF6d4ImMlLKkevXO3ewHJRZ a5HQ== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=E0APP28ehdeHgvNCW6CFE+F0XbZW72QipG5ErJpBe+o=; b=DQvsTRZTE6tuA+wnQXM2mxXYUdsYWQgzzd6aEDxNxqShcN45rYgtlm6cW3CvsX+HZ8 rJgu1h9GP0/NMhA1gkOHcZTVbbX+ZgPJNjOVYNJAet/l/idcuCkEf1T9m4WfiHTFqKFx qZ4Fdn6QpJ6I80ZHsZy+g7ThRQeXL8U0GKVrykPWFABlvBHi8qZVU8LSZbFmuArluoMu f9asyUS9gEez6z0OTiTgtf9N/8ni2+ygy2TANew2iQrW0LNjUe4owSU4XR//HjzjpJDR IkaUy4y8f4NoPqfa2pIpULTVXQmd910fAbhy6WeCWldZ8xZxHGWUjv0gqz1VhwtkhQT8 2NaA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y11si2675317ejw.201.2019.11.07.16.54.07; Thu, 07 Nov 2019 16:54:31 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727813AbfKHAx2 (ORCPT + 99 others); Thu, 7 Nov 2019 19:53:28 -0500 Received: from cloudserver094114.home.pl ([79.96.170.134]:57212 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726094AbfKHAx2 (ORCPT ); Thu, 7 Nov 2019 19:53:28 -0500 Received: from 79.184.254.83.ipv4.supernova.orange.pl (79.184.254.83) (HELO kreacher.localnet) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.292) id ce3d5ac9ff617bdc; Fri, 8 Nov 2019 01:53:26 +0100 From: "Rafael J. Wysocki" To: Daniel Lezcano Cc: mathieu.poirier@linaro.org, mingo@redhat.com, peterz@infradead.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, ulf.hansson@linaro.org Subject: Re: [PATCH V6 1/3] cpuidle: play_idle: Make play_idle more flexible Date: Fri, 08 Nov 2019 01:53:25 +0100 Message-ID: <11162801.HHDnLhZHqx@kreacher> In-Reply-To: References: <20191030075141.1039-1-daniel.lezcano@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday, November 6, 2019 7:27:47 PM CET Daniel Lezcano wrote: > > Hi Rafael, > > > On 30/10/2019 08:51, Daniel Lezcano wrote: > > The play_idle function has two users, the intel powerclamp and the > > idle_injection. > > > > The idle injection cooling device uses the function via the > > idle_injection powercap's APIs. Unfortunately, play_idle is currently > > limited by the idle state depth: by default the deepest idle state is > > selected. On the ARM[64] platforms, most of the time it is the cluster > > idle state, the exit latency and the residency can be very high. That > > reduces the scope of the idle injection usage because the impact on > > the performances can be very significant. > > > > If the idle injection cycles can be done with a shallow state like a > > retention state, the cooling effect would eventually give similar > > results than the cpufreq cooling device. > > > > In order to prepare the function to receive an idle state parameter, > > let's replace the 'use_deepest_state' boolean field with 'use_state' > > and use this value to enter the specific idle state. > > > > The current code keeps the default behavior which is go to the deepest > > idle state. > > > > Signed-off-by: Daniel Lezcano > > Acked-by: Mathieu Poirier > > Reviewed-by: Ulf Hansson > > Is it possible to merge this series so I can make some progress on > upstreaming the idle cooling device which depends on these three patches? That would be possible if the series had no problems, but it appears to have some. Let me reply to the patches.