Received: by 10.213.65.68 with SMTP id h4csp3662063imn; Tue, 10 Apr 2018 02:37:02 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/ZebfAKUc9J32P5e9eqcoT4+gPG3ryLVbpceZlVKJmZWVtFC3ixIM71uiprcmsI2FSlQd8 X-Received: by 2002:a17:902:8212:: with SMTP id x18-v6mr43766159pln.372.1523353022535; Tue, 10 Apr 2018 02:37:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523353022; cv=none; d=google.com; s=arc-20160816; b=AzrjWMDl6799s4vfuLWPcPI5sSChgAXrMwdDVj+jGqaJZWBx0CEB97HfReZTw0tieB 4KK6LiQpVGCV7vs1U6+w2YV5vSXOkJK06VR+3ZidIv/ukX7xT7oPI2BxtPJvvjiMbGhs BznUzPfW+TU5yc7SP+ua3G/vYHSCFUquwDpnKf9S/V4uVVqAuKMEjjor9xbSrW6xmULQ cNt0xxFNugdAarOJa9nEvKBqqjmNuNiBWDESn8uuhCDsORL6ynUgEJZ6EbL39OTiwfcL YCSpSZKmaV4ysb/qr8BaiZA3G5B7jAN9w7YkqQkcnEfQ1ET1kmfNgCY328TrLe2ge85Z UQZw== 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:arc-authentication-results; bh=tuLy75nsiq1if3SJquuF4l++9xHECosVC/CJpP0bp0Y=; b=PkwYMh9YTg62NjoOrISrL6giNmBk3MIuxgmQY15i6mqoTbU5llFO1iA8XfZ1iA3eV5 Ci3Hv9xRi6egQ4iOuaLtlUUlXFlU0w7VCy4yNkkQTpJEdW7VH2biPuK2iBJ43G4zbIYE 6YjjTbdR1K3B8OPFQMomtk+/5jRnLTjvgdO2NRd80r+2NocfwuHor++KaDFaolzf+p+G A0fEljW4teionWh7JnJKOhroDkKeuNbb9QtV8Q8r4N1VRK9fLt/P662J4kW8Kk8u5GKk 9QfLoHlJvlyJ/r6ViyeUMYkkMw5gDtwRO+6v5Iig9iPFLx/d93MjkeFATgZlFLjHlqKW 8IoA== 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 f21si1777018pfa.377.2018.04.10.02.36.00; Tue, 10 Apr 2018 02:37:02 -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 S1752136AbeDJJbo (ORCPT + 99 others); Tue, 10 Apr 2018 05:31:44 -0400 Received: from foss.arm.com ([217.140.101.70]:35740 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751781AbeDJJbn (ORCPT ); Tue, 10 Apr 2018 05:31:43 -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 B400D1435; Tue, 10 Apr 2018 02:31:42 -0700 (PDT) Received: from e108498-lin.cambridge.arm.com (e108498-lin.cambridge.arm.com [10.1.210.38]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0BD583F487; Tue, 10 Apr 2018 02:31:39 -0700 (PDT) Date: Tue, 10 Apr 2018 10:31:35 +0100 From: Quentin Perret To: "Rafael J. Wysocki" Cc: 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 Subject: Re: [RFC PATCH 2/6] sched: Introduce energy models of CPUs Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.3 (2017-05-23) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, so thanks a lot for raising this point ! Regards, Quentin