Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp438575pxk; Thu, 24 Sep 2020 09:10:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrR8bGOHlrI2k7aoWpqYnDN5ekVoakI0NO+xc3jWnZ4udFri2mBO7Xqi/o4KN71OUX7w8W X-Received: by 2002:a17:906:7d0d:: with SMTP id u13mr658221ejo.448.1600963821495; Thu, 24 Sep 2020 09:10:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600963821; cv=none; d=google.com; s=arc-20160816; b=s3+r/q29FqDbgl8NfSlz0o1GGMy8rioswwOw3UIcZTncuj027EYOJssQFeSRER9zF3 flJIqqRvLfMQeUWD4QKRUKVLjAwOd+5S7D84J1w9cSnwzUh0DSEiLMfiiy1hzQti9pfA mUiYOCRQ9rB0bBjjQpYA1WBnqL2NzxSa+JueDoTPz/F4m0rLS6hgGCfs3V2NX1DidHCF DmxNyqR5Rr8GSTFRYGo/3R8hk/H9IHYYAdPkBWTvgvimIRAJtGoP7sLBrrpM6I07DJmN 8F8Np85MH01OGarCCDQl04Ayn3k1I1/G+0Qs/q87lNfgwmEsOz0eYRJab3tduSHPnGCH M6rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=N/brkI7bkWIoFZFmRnLxOJ+m0VLOLAeAorCdfoN9m5c=; b=rtmGscMyAAKROE9n/6ZWaJP2F+HB1amAC0aial5wJVqpEFGYhafzPxuQYalFo56rBE 0miDr0GdFTuYKfGyciOazqJSJlWRdO5/BDlkEz2nYSTxHLBWt8AqwV1b7YqNJ+6ZENlD xF44KxvZTgLNcZK3dzy2HMW3bpXlveowTE3HOWi9Gey5eoOVl7/9k1GPlBaKpa3VQ0Fi aDcEt7zSIXPIjbaoNAp33f78PCtdaxKRWJIfzYtA3PORMscrfTqO74zRacQU7L6sSG2s FW3peX8PAaDzArtfDTByvctzrbsivF4eRmXybUvTmKnX6r6m1CksVHLIdd/mBzznbDa3 Fa+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mh6si2090694ejb.243.2020.09.24.09.09.55; Thu, 24 Sep 2020 09:10:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728533AbgIXQIt (ORCPT + 99 others); Thu, 24 Sep 2020 12:08:49 -0400 Received: from foss.arm.com ([217.140.110.172]:50000 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728448AbgIXQIt (ORCPT ); Thu, 24 Sep 2020 12:08:49 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 91D601396; Thu, 24 Sep 2020 09:08:48 -0700 (PDT) Received: from localhost (unknown [10.1.199.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 329063F718; Thu, 24 Sep 2020 09:08:48 -0700 (PDT) Date: Thu, 24 Sep 2020 17:08:46 +0100 From: Ionela Voinescu To: Quentin Perret Cc: mingo@redhat.com, peterz@infradead.org, vincent.guittot@linaro.org, catalin.marinas@arm.com, will@kernel.org, rjw@rjwysocki.net, viresh.kumar@linaro.org, dietmar.eggemann@arm.com, valentin.schneider@arm.com, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/3] condition EAS enablement on FI support Message-ID: <20200924160846.GB17927@arm.com> References: <20200924123937.20938-1-ionela.voinescu@arm.com> <20200924133727.GB3920949@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200924133727.GB3920949@google.com> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday 24 Sep 2020 at 14:37:27 (+0100), Quentin Perret wrote: > On Thursday 24 Sep 2020 at 13:39:34 (+0100), Ionela Voinescu wrote: > > Given the maturity gained by cpufreq-based Frequency Invariance (FI) > > support following the patches at [1], this series conditions Energy > > Aware Scheduling (EAS) enablement on a frequency invariant system. > > > > Currently, EAS can be enabled on a system without FI support, leading > > to incorrect (energy-wise) task placements. As no warning is emitted, > > it could take some debugging effort to track the behavior back to the > > lack of FI support; this series changes that by disabling EAS > > (and advertising it) when FI support is missing. > > > > The series is structured as follows: > > - 1/3 - create function that can rebuild the scheduling and EAS' > > performance domains if EAS' initial conditions change > > - 2/3 - condition EAS enablement on FI support > > - 3/3 - arm64: rebuild scheduling and performance domains in the > > case of late, counter-driven FI initialisation. > > I'm still reading through this, but shouldn't patch 2 and 3 be swapped? > Otherwise we have a weird state at patch 2 where EAS will fail to start > (IIUC), which might not be ideal for bisection. > > Thoughts? I probably invented myself reasons for not doing it, like: without 2/3, 3/3 does not make any sense having and the scenario at 3/3 is currently unlikely. But it would definitely make it safer, so I'll change the order. Thanks, Ionela. > > Cheers, > Quentin