Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp429256yba; Wed, 15 May 2019 03:59:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqytMLbEj80dxddFr9Pl6nGJbuUMQtvRLPeSpbmlBWI3ILk1uR7RkhpczEPpqbvpZz8oCPJG X-Received: by 2002:a62:4118:: with SMTP id o24mr16086775pfa.17.1557917954026; Wed, 15 May 2019 03:59:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557917954; cv=none; d=google.com; s=arc-20160816; b=mG0mwZISkg7MR93vYor4njUdGGKAGbNY9sBomNgbUG5QWt5QXPm8fw54Om0jHRlXDK idV+/UY3JIU8vFM7ryX+PPiruNTVtD2uS919sFxFMav8VikaggpxQEzwZe/a8HRlgtdN M4jX0PPDDQOB3OtIJI55Z0kC3PGj2pvumnOdjKgH/idX46razLIaUMdXKIRtdHYe7LtX L1L1EvIpkFn66lCCbM5Oskj6EWf41NHmLmuaIMuwoTRPsAi8fSH8JvEdhshVVPus4S6e fHwQEauqLoGZbY51RBjwKQ/OG2O6g0XbMXvw24LgOJsJGeCefhAI33IRmQO5VOLGUQ2s 4JLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=xhW8RaN6VusuSTNJycWkRUo3miIiFRLcrlyzqe2EVg0=; b=sdAbEy+o0qZopBaJ5qQaQnw7dpLGY0YTQ4bNeZMArFTfFWvj+cP9IbvqPUmQMB9s7K 223eGCt+jKFibRuJHGrr1EC2ZkZY2lso/8LbmwNd7qUz8dFg8A+829ra6necXjJyinrV mkZUxDo+OsNkoBRBStVw6hOOuAt75wKqekxpgjDm61T530glgqqhBOulV62UvB+WWM40 IrZDOh5X5kLOimInYsSZN5XmSfv/+W/ufOhVXr1qPITKVPM50zolFmINbVjYXD8TvGpq FuPun9P/4dj1ZiQ9OhMq7E9UvI5GDBJBiSIjG6sy0O0VD1pl9C64ocZhMHGcib4UI36C SsdQ== 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 b36si1486605pla.353.2019.05.15.03.58.58; Wed, 15 May 2019 03:59:14 -0700 (PDT) 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 S1726296AbfEOK53 (ORCPT + 99 others); Wed, 15 May 2019 06:57:29 -0400 Received: from foss.arm.com ([217.140.101.70]:40662 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725953AbfEOK53 (ORCPT ); Wed, 15 May 2019 06:57:29 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 543A580D; Wed, 15 May 2019 03:57:28 -0700 (PDT) Received: from queper01-lin (queper01-lin.cambridge.arm.com [10.1.195.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C83613F703; Wed, 15 May 2019 03:57:25 -0700 (PDT) Date: Wed, 15 May 2019 11:57:24 +0100 From: Quentin Perret To: Daniel Lezcano Cc: Viresh Kumar , edubezval@gmail.com, rui.zhang@intel.com, javi.merino@kernel.org, amit.kachhap@gmail.com, rjw@rjwysocki.net, will.deacon@arm.com, catalin.marinas@arm.com, dietmar.eggemann@arm.com, ionela.voinescu@arm.com, mka@chromium.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v4 2/3] PM / EM: Expose perf domain struct Message-ID: <20190515105723.3ltui3l75hbuskmk@queper01-lin> References: <20190515082318.7993-1-quentin.perret@arm.com> <20190515082318.7993-3-quentin.perret@arm.com> <0ced18eb-e424-fe6b-b11e-165a3c108170@linaro.org> <20190515091658.sbpg6qiovhtblqyr@queper01-lin> <698400c0-e0a4-4a86-b9df-cdb9bd683c0f@linaro.org> <20190515100748.q3t4kt72h2akdpcs@queper01-lin> <20190515102200.s6uq63qnwea6xtpl@vireshk-i7> <20190515104043.vogspxgkapp6qsny@queper01-lin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday 15 May 2019 at 12:54:10 (+0200), Daniel Lezcano wrote: > On 15/05/2019 12:40, Quentin Perret wrote: > > On Wednesday 15 May 2019 at 15:52:00 (+0530), Viresh Kumar wrote: > >> On 15-05-19, 12:16, Daniel Lezcano wrote: > >>> Viresh what do you think ? > >> > >> I agree with your last suggestions. They do make sense. > > > > Good :-) > > > > So, FWIW, the below compiles w/ or w/o THERMAL_GOV_POWER_ALLOCATOR. I'll > > test it and clean it up some more and put it as patch 1 in the series if > > that's OK. > > > > Thanks, > > Quentin > > > > > > diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c > > index f7c1f49ec87f..ee431848ef71 100644 > > --- a/drivers/thermal/cpu_cooling.c > > +++ b/drivers/thermal/cpu_cooling.c > > @@ -58,7 +58,9 @@ > > */ > > struct freq_table { > > u32 frequency; > > I suspect we will have a problem here as cpufreq_set_cur_state uses the > frequency and when switching to EM, we will still need a freq table. Indeed, I'll need a bit of ifdefery in the get_state_freq() function introduced in patch 3, but nothing too horrible I hope. Thanks, Quentin