Received: by 10.213.65.68 with SMTP id h4csp2760732imn; Mon, 9 Apr 2018 08:36:55 -0700 (PDT) X-Google-Smtp-Source: AIpwx48MF7atIOZ1DZktx5d0WnxLqjkN+6SGmOkjtQ+5/Qa6LNXEnfhVoctkeyN0fmAUu0ZX6kwk X-Received: by 10.99.143.3 with SMTP id n3mr25262724pgd.136.1523288215476; Mon, 09 Apr 2018 08:36:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523288215; cv=none; d=google.com; s=arc-20160816; b=ofnbXkl8dDTSgyLbzOsDyuWYT7tMqXfx/tK6MyrP46iB55jtt55BXRQifA+UOCMZuu Z8Jq7xRQemS4f7jX8/Zyw6wagW8kdJQsBVLMjRGk6yoyUjzEoc7YHve+Q4bIBS8G/B+O jdXGuMIDla7vG+jDnUdA3CVZQIPG37XiVW2Iq+i02ILIB7kUC/Hd3PKro3JD/dv+zFIU BFVNSFMg8dIsRm0QistankAt3b2YTqYaEnEBGaW6amp5zGMyqx8cmJzuEbMlYceIwhNY ZDAr2fvnaKgldMcWqaMHELFi3ocV/QSTC+6lpc6gLz4h/JZoMzqHWbqR0/xPqZ/94X2O 4mOg== 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:dkim-signature:arc-authentication-results; bh=NOl0zw4jUepmJD7CM24FH6GHdvdIbJxz7aNV453UEus=; b=LGoXLXbSUaAUhDP4cphxCxGTXLgQewPK3O/pf4PWMPpgQiEVAs0yme1p1rCpY+8HnC y/OefauCAuPNG1YeyX4QkMKD1FULKYEp+4w27+xXUvbNzS8Vpnu4INKueyzROBE4H08x YEFnHXtyt8HmTNvqMxxnOpszLqX6Kae5AKtvk372LyshBU0oPn0MhpHsS/k1CT7i2tJp 5nzaz2hiui37v/SJlTnZQooVHfWY7eyQ2VWNdlCRFah5Cb2Qr3l4/xEStl9JzV6oE8U8 RPTHW6MTjLIfJLOtaRQpbRv/908/1ypjDPXwLaoFzcVz4xG33ZzDogHNpk8p+TTYvvJL l68g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=yPwuVk+6; 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 u1-v6si490262pls.426.2018.04.09.08.36.18; Mon, 09 Apr 2018 08:36:55 -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=@infradead.org header.s=merlin.20170209 header.b=yPwuVk+6; 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 S1753036AbeDIPcs (ORCPT + 99 others); Mon, 9 Apr 2018 11:32:48 -0400 Received: from merlin.infradead.org ([205.233.59.134]:55252 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752314AbeDIPcq (ORCPT ); Mon, 9 Apr 2018 11:32:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=NOl0zw4jUepmJD7CM24FH6GHdvdIbJxz7aNV453UEus=; b=yPwuVk+66r9ZmqP7i9LPyh+uJ dneGOYQcr837fhg3eIU+0scpjiC6+c6m5VEjKKVSYaqLjkVW9Wm3g7gEUOeHxpFVyIYLkLWTQcRrn nZNrmJbY63AASf4fbBM6gYdKD8FIH4LDGg0n21BIEo8o+/31Jy7g8AyLp1pxTqZccPds8JtPZlpsk ZH81Az1TmuJFAKn+A93r/i9j6ha9Uc/rP5EkKiJlDtu+yvXMHQ3mG0eQdVM/fz16WAVvaqZ7zaxmJ 2ahWsnFKA28TkYu16ccFegCjI1gYyssRaKhAzSVszPXGg43WwsdfsOadUiLslzlJV/pVk5A34o0Lf B8Gi3Azvw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1f5Yma-00071e-MZ; Mon, 09 Apr 2018 15:32:37 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id E5449202A29FD; Mon, 9 Apr 2018 17:32:33 +0200 (CEST) Date: Mon, 9 Apr 2018 17:32:33 +0200 From: Peter Zijlstra To: Quentin Perret Cc: Dietmar Eggemann , linux-kernel@vger.kernel.org, Thara Gopinath , linux-pm@vger.kernel.org, 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: <20180409153233.GA4082@hirez.programming.kicks-ass.net> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180409134510.GA4577@e108498-lin.cambridge.arm.com> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 09, 2018 at 02:45:11PM +0100, Quentin Perret wrote: > In this specific patch, we are basically trying to figure out the > boundaries of frequency domains, and the power consumed by each CPU > at each OPP, to make them available to the scheduler. The important > thing here is that, in both cases, we rely on the OPP library to > keep the code as platform-agnostic as possible. AFAICT the only users of this PM_OPP stuff is a bunch of ARM platforms. Granted, body else has build a big.little style system, so that might all be fine I suppose. It won't be until some !ARM chip comes along that we'll know how generically usable any of this really is. > In the case of the frequency domains for example, the cpufreq driver is > in charge of specifying the CPUs that are sharing frequencies. That > information can come from DT, or SCPI, or SCMI, or whatever -- we > probably shouldn't have to care about that from the scheduler's > standpoint. That's why using dev_pm_opp_get_sharing_cpus() is handy, > the OPP library gives us the digested information we need. So I kinda would've expected to just ask cpufreq, that after all already knows these things. Why did we need to invent this pm_opp thing? Cpufreq has a tons of supported architectures, pm_opp not so much. > The power values (dev_pm_opp_get_power) we use right now are those > already used by the thermal subsystem (IPA), which means we don't have I love an IPA style beer, but I'm thinking that's not the same IPA, right :-) > to introduce any new DT binding whatsoever. In a close future, the power > values could also come from other sources (SCMI for ex), and again it's > probably not the scheduler's job to care about those things, so the OPP > library is helping us again. As mentioned in the notes, as of today, this > approach has dependencies on other patches relating to these things which > are already on the list [1]. Is there any !ARM thermal driver? (clearly I'm not up-to-date on things thermal).