Received: by 10.213.65.68 with SMTP id h4csp3806793imn; Tue, 10 Apr 2018 05:07:56 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+7t3ZSJ0wmlXTcCuobo/Ovbx9G5G/1Y2Bklw3mEUSHSNKKwZxGX9hSeEff8pCNmgLMC3bH X-Received: by 2002:a17:902:8481:: with SMTP id c1-v6mr151637plo.310.1523362076444; Tue, 10 Apr 2018 05:07:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523362076; cv=none; d=google.com; s=arc-20160816; b=IHxkqGa5XrxzCUmy0K6+2j7cHnngMJnCR9HESQOv9ZefXsRra3mjD+ztfj/adRkafK unPDFbhHhV4DPC5+1wEMiwBHBYq2euNh3twB9C7nE80Ul7cbOWq014Tl1S+px6ymjbTj wOy8D+n9I/7NWTNqb9QiU7nqWZZ3x2ijJUQBT8cei/x5IEEbxe4OFh4i1WIvWytM6cs3 5zH/LnMBMTqKwb+VWjZEV8NNBw3nLtDFYC7h//qBtEC8o1VlWd4IHpBAcKdYwaT5Pgjy ZcvUvRXUMrsiSvYCnISfuFI8VlZmWb0ZxVH8gl0lGonk+AYxZBqj0BhBrimYpjpuMsdb ttvQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=8rC8o5CTTVpcH9+Oit7h7urY7qdn+bu4K+pHaozfUkU=; b=mHofyaC75j9j79pA8lm79MMJTOvf+Sea+a8B2C5Slgd9+LOJZmnPfTyZdi0r4xZAWx g1eqnXa7j5Ri4RPlMF6+BVeqbt0GH9D2oWDxGzQNmIVlvmdscdKoMBS8HB7rBk0Mb8Gs 9eWU+/fFrtaLYFLvr9HtUIB7i1swLbc1G7PPws/s2N632nG/Q02H7/bcCRqX10guOlUA hzZlim83xZAIERal2rs0naxfUi3KzI5i21KKNXnbOXHYss5pbGwbagng7DilPXG28DI0 zB8JjdsTu6LB8blJSIGL7bLFgtz7j1ufFmCdVAFuqesRxPT4DGE88g9KECdqgmfzT/tT lcTA== 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 d5-v6si2599094plo.405.2018.04.10.05.07.19; Tue, 10 Apr 2018 05:07:56 -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 S1752770AbeDJMDe (ORCPT + 99 others); Tue, 10 Apr 2018 08:03:34 -0400 Received: from foss.arm.com ([217.140.101.70]:37124 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752534AbeDJMDc (ORCPT ); Tue, 10 Apr 2018 08:03:32 -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 381A080D; Tue, 10 Apr 2018 05:03:32 -0700 (PDT) Received: from [0.0.0.0] (e107985-lin.cambridge.arm.com [10.1.210.41]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DC65B3F24A; Tue, 10 Apr 2018 05:03:27 -0700 (PDT) Subject: Re: [RFC PATCH v2 2/6] sched: Introduce energy models of CPUs To: Peter Zijlstra Cc: linux-kernel@vger.kernel.org, Quentin Perret , 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 , Juri Lelli , Steve Muckle , Eduardo Valentin References: <20180406153607.17815-1-dietmar.eggemann@arm.com> <20180406153607.17815-3-dietmar.eggemann@arm.com> <20180410115457.GB4043@hirez.programming.kicks-ass.net> From: Dietmar Eggemann Message-ID: <2e35ede9-0926-836b-4068-8d12b6296597@arm.com> Date: Tue, 10 Apr 2018 14:03:25 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180410115457.GB4043@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/10/2018 01:54 PM, Peter Zijlstra wrote: > On Fri, Apr 06, 2018 at 04:36:03PM +0100, Dietmar Eggemann wrote: >> + /* >> + * Build the energy model of one CPU, and link it to all CPUs >> + * in its frequency domain. This should be correct as long as >> + * they share the same micro-architecture. >> + */ > > Aside from the whole PM_OPP question; you should assert that assumption. > Put an explicit check for the uarch in and FAIL the init if that isn't > met. > > I don't think it makes _ANY_ kind of sense to share a frequency domain > across uarchs and we should be very clear we're not going to support > anything like that. > > I know DynamiQ strictly speaking allows that, but since it's insane, we > should consider that a bug in DynamiQ. Totally agree! We will add this assert. One open question of the current EAS design solved ;-)