Received: by 10.213.65.68 with SMTP id h4csp3704239imn; Tue, 10 Apr 2018 03:26:21 -0700 (PDT) X-Google-Smtp-Source: AIpwx48ZTKUYWAbkNnkjOgjBtdUX/HhEe7uXUpRZRvvQ2IPuz1i8OMOc9+1kjtt9ErD/am5IY6jM X-Received: by 2002:a17:902:784c:: with SMTP id e12-v6mr12920428pln.60.1523355981625; Tue, 10 Apr 2018 03:26:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523355981; cv=none; d=google.com; s=arc-20160816; b=pzdceeSHxZi4rCpOp1AuEKcvpYSCJvN02N4MI21Lno17as1MD9nCKoXmk4xcQv/PK5 FHT5aw/J7oiJV/ymo9BoEXKnKhx/Lg43wj0+DFlOgynbkN+Pz/73lDQssGC3bIGyrDOK OCl/APX0+7qqtx8mbVAlXhfZVPizIe/hvg3hj5wuuPnhZJB8uHWWZvh5MNpZ4LXIBDL7 +LiQ92RoLxmR7OTbtlh9pZEUjkKegq9s/l1wk9XnYEbfgeJtLzmLcNOwd4T3uHlfzuLC kNGcndExDmdWvu6gdP/ldB7AjdLJrZmXNkRLloEmh9+cdXFnn6wQ0qNfFEmdR2bFeQR4 wg2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=m/LVKi7NFB+sYyyJyzzrubyeOgEEe1CZRMmMNPYhfJw=; b=CWq5FE6Ft3Uwj+FsbwvqJs7ebvl+25tDA7NxHRCN0mYcS8ZumgyyGDK69qrTVmJviw WY1KiCiHc28Pnp+uPP1t/YAx8M/UAp9tSsqsfKN6PLZyTMTfVjuaJNAGx/k1eTvhAvR4 u1z9gb8meq5mpkqT1bWcjs+1hpDCm7kIkOGvBWv4rdMSow9gap4q31cIHH8DxQUjlTxg 6/LgJEHYQrJ7BFlp+LNXMVzBKKyLkaEU8GbC6PrJodCg6I2TqURVRrd+zLfEJp2768Tt kZIlFCNmwvMQ1ewvoQZCKbItolYBbwdFT+5cm1xAvJ7/bP6Lm8SEfa36tqstLqGvOtvg Kc3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=bXlw5Bl1; 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 r14-v6si2478125pli.324.2018.04.10.03.25.44; Tue, 10 Apr 2018 03:26:21 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=bXlw5Bl1; 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 S1752389AbeDJKUD (ORCPT + 99 others); Tue, 10 Apr 2018 06:20:03 -0400 Received: from mail-ot0-f195.google.com ([74.125.82.195]:42846 "EHLO mail-ot0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751914AbeDJKUB (ORCPT ); Tue, 10 Apr 2018 06:20:01 -0400 Received: by mail-ot0-f195.google.com with SMTP id h55-v6so12105567ote.9; Tue, 10 Apr 2018 03:20:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=m/LVKi7NFB+sYyyJyzzrubyeOgEEe1CZRMmMNPYhfJw=; b=bXlw5Bl1/58OVemehhf+Ww3OGKF18/VmrPIIE/GEPlhoAEXcemdJb1cOXAUxq9hjU0 tl0LdyjXdkZNdfGS2YYxt143IWcgIiAyCOsw4HYiAWqxaMeYJE92MuhhuJ9aY4ujZyf8 XmUeppulLmkiyI9c5OTbNIE4dS8B1DJ0EkPHkwGEXhja8y+2Wh/gAbFMmlF0RdjnzDfV CWg3rE0GJ/G5H1YIOXvNxYGnWby7VIuXHP5mn5HrNS7FE+rMUJ7ExY5/1zOOOa4Th1Dx +8JSKUcaIGJacVSvzU44Sh66GjXpOaZH6xKFFBUW47nM2ETuZ4hQTM0XbaakkFMvoOpU pXPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=m/LVKi7NFB+sYyyJyzzrubyeOgEEe1CZRMmMNPYhfJw=; b=NjDiE4bnWE7WEXmFE88wpjVsyiBLWkPVwtAHgPpu3BhOZKsOCmsvtAdm7LTi501B9Y RdBvvZ7+X6LwiOej0fYSyDf7j52Vzhg/taM38CQw/ROvJnNNdj37LoOl28SpDA0LCxdA vZBYyj5eaKojDPIHFOXC6X6AzeQymKeoDKhZcf2Epmp97U9u7+SKqDTjaJUj4VL6IDz/ w2vGRL9lA/hglyMnOweVNk/G7ArCAaYIBbw00Vi+6c9EJyu5MvlxvhC2WFKWEOJ2noyH mtnY/YrcyiOdvQNyIy9K3Dn19oUCQFUtfprxQ2IKQ6HoSsbY0aGfyxTgsxUoUVqptARl x8Pg== X-Gm-Message-State: AElRT7FgwRizBRLRmnfVT93GlgIMY5ya0i7WUnVsaUxeZp/uyMNiLVzD 9ZYBjocWrs6N7g9m0SN9XZkK/xPOsh+zZQd7p9g= X-Received: by 2002:a9d:5b44:: with SMTP id e4-v6mr23480141otj.305.1523355600738; Tue, 10 Apr 2018 03:20:00 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:9f7:0:0:0:0:0 with HTTP; Tue, 10 Apr 2018 03:20:00 -0700 (PDT) In-Reply-To: <20180410093022.GA26106@e108498-lin.cambridge.arm.com> References: <20180320094312.24081-1-dietmar.eggemann@arm.com> <20180320094312.24081-3-dietmar.eggemann@arm.com> <20180409120111.GA4043@hirez.programming.kicks-ass.net> <20180409134510.GA4577@e108498-lin.cambridge.arm.com> <20180409153233.GA4082@hirez.programming.kicks-ass.net> <20180409164205.GA3520@e108498-lin.cambridge.arm.com> <20180410093022.GA26106@e108498-lin.cambridge.arm.com> From: "Rafael J. Wysocki" Date: Tue, 10 Apr 2018 12:20:00 +0200 X-Google-Sender-Auth: OkohVfDGrJWtn6bH_WwQtPzaFSs Message-ID: Subject: Re: [RFC PATCH 2/6] sched: Introduce energy models of CPUs To: Quentin Perret Cc: "Rafael J. Wysocki" , Peter Zijlstra , Dietmar Eggemann , Linux Kernel Mailing List , Thara Gopinath , Linux PM , Morten Rasmussen , Chris Redpath , Patrick Bellasi , Valentin Schneider , "Rafael J . Wysocki" , Greg Kroah-Hartman , Vincent Guittot , Viresh Kumar , Todd Kjos , Joel Fernandes Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 10, 2018 at 11:31 AM, Quentin Perret wrote: > On Tuesday 10 Apr 2018 at 08:55:14 (+0200), Rafael J. Wysocki wrote: >> On Mon, Apr 9, 2018 at 6:42 PM, Quentin Perret wrote: >> > On Monday 09 Apr 2018 at 17:32:33 (+0200), Peter Zijlstra wrote: >> >> On Mon, Apr 09, 2018 at 02:45:11PM +0100, Quentin Perret wrote: > > [...] > >> > I quiet like the first idea from a pure design standpoint, but I could >> > also understand if maintainers of other archs were reluctant to >> > have new dependencies on PM_OPP ... >> >> Not just reluctant I would think. >> >> Depending on PM_OPP directly here is like depending on ACPI directly. >> Would you agree with the latter? > > Right, I see your point. I was suggesting to use PM_OPP only to make the > OPPs *visible*, nothing else. That doesn't mean all archs would have > to use dev_pm_opp_set_rate() or anything, they could just keep on doing > DVFS their own way. PM_OPP would just be a common way to make OPPs > visible outside of their subsystem, which should be harmless. The point > is to keep the energy model loading code common to all archs. > > Another solution would be to let the archs populate the energy model > data-structures themselves, and turn the current energy.c file into > arm/arm64-specific code for ex. > > Overall, I guess the question is whether or not PM_OPP is the right > interface for EAS of multiple archs ... That sounds like an interesting > discussion topic for OSPM next week, I agree. > so thanks a lot for raising this point ! And moreover, we already have cpufreq and cpuidle that use their own representations of the same information, generally coming from lower layers. They do that, because they need to work with different platforms that generally represent the low-level information differently. I don't see why that principle doesn't apply to EAS. Maybe there should be a common data structure to be used by them all, but I'm quite confident that PM_OPP is not suitable for this purpose in general.