Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3058913pxk; Mon, 28 Sep 2020 07:25:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUva4YQlAWw0FfqY6+/6Wy5zhjzuC4d5lmSnBGHwqeUM7yqMlJITr6/LzHQr87FbRSfCUz X-Received: by 2002:a17:906:b28d:: with SMTP id q13mr1879716ejz.378.1601303107129; Mon, 28 Sep 2020 07:25:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601303107; cv=none; d=google.com; s=arc-20160816; b=j5r8gPrUumQ0J8BrUY3kA5KaDQJBg/fl+CbqptGsxMJRHzIlKOzwTeBd2ZqZrFE1Q+ k265Aznx8P4peEUGVs2fXE/aBVv127nN7joxzBf+0/qIyNiDLkCpvbk3cyIRKXF/YjfC nQUgjjB8d6B8GYISXj9hU6zaZ09JRI8u69l5iJXd9UtcxK0W5BBiHjW2JQ1tvfRTcr08 7ne+dlySlg2wlrEnj7jHtosyhDxGWQgc5GasdQRpqbxGDD8Jrxiw81DZhHfzhtqvDtVn GPjwaVtmKP7OqFMbP1oSRngsxdyv0jfOnHhlhWA5pIweaDtoEN6+DHh5kmmLCfSBRQvy fuJQ== 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=nSErDuiWQTkb8o5dlIX02HOwXE61IfM2ukmrIBNsyYk=; b=V9byjn8++GeYrd0lIJhhPLqc/8c3KGk8qQ0bcM/Tn8vca/hwNxcz13ZPOhqyiPK8GY sVS/O2ADACgly/DITYlxP9v88hFwSHf9FRkRoVDctNdmtdNnm3vwv7vtUhqSB8ANftL9 thkL9SvkAzg23vXCvxYJzb/0aEU3wQmRQF9yg90ufPEZN2R8td/hI9xKpNBRWJxCCZHK 8S5sWMsFMs6dEmWSbc36LUT8/dSHHUd4tRTSUyUaXqUxIUBEt85e6jGgsELvDNhSxeVv FHoVG3/0Uff068ZKQr0khn8jbTqmckFgLZQZn6bp6q1LARSBoNhFwEeGzydJSA3bO5J9 3siQ== 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 ng3si666152ejb.720.2020.09.28.07.24.40; Mon, 28 Sep 2020 07:25:07 -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 S1726485AbgI1OXh (ORCPT + 99 others); Mon, 28 Sep 2020 10:23:37 -0400 Received: from foss.arm.com ([217.140.110.172]:52392 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726327AbgI1OXh (ORCPT ); Mon, 28 Sep 2020 10:23:37 -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 765FD1063; Mon, 28 Sep 2020 07:23:36 -0700 (PDT) Received: from localhost (unknown [10.1.199.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1756D3F73B; Mon, 28 Sep 2020 07:23:35 -0700 (PDT) Date: Mon, 28 Sep 2020 15:23:34 +0100 From: Ionela Voinescu To: Dietmar Eggemann Cc: Quentin Perret , mingo@redhat.com, peterz@infradead.org, vincent.guittot@linaro.org, catalin.marinas@arm.com, will@kernel.org, rjw@rjwysocki.net, viresh.kumar@linaro.org, valentin.schneider@arm.com, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] arm64: rebuild sched domains on invariance status changes Message-ID: <20200928142334.GA19372@arm.com> References: <20200924123937.20938-1-ionela.voinescu@arm.com> <20200924123937.20938-4-ionela.voinescu@arm.com> <20200924133925.GC3920949@google.com> <20200924161002.GC17927@arm.com> <20200925135900.GA11648@google.com> <626062da-1d0e-3095-dd6f-f909a60a7de3@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <626062da-1d0e-3095-dd6f-f909a60a7de3@arm.com> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi guys, On Monday 28 Sep 2020 at 13:55:49 (+0200), Dietmar Eggemann wrote: > On 25/09/2020 15:59, Quentin Perret wrote: > > Hey Ionela, > > > > On Thursday 24 Sep 2020 at 17:10:02 (+0100), Ionela Voinescu wrote: > >> I'm not sure what is a good way of fixing this.. I could add more info > >> to the warning to suggest it might be temporary ("Disabling EAS: > >> frequency-invariant load tracking currently not supported"). For further > >> debugging there are the additional prints guarded by sched_debug(). > >> > >> I'll look over the code some more to see if other ideas pop out. Any > >> suggestions are appreciated. > > > > Right, I'm not seeing anything perfect here, but I think I'd be > > personally happy with this message being entirely guarded by > > sched_debug(), like we do for asym CPU capacities for instance. > > > > It's not easy to see if EAS has started at all w/o sched debug anyway, > > so I expect folks who need it to enable the debug stuff during > > bring-up. With a descriptive enough warn message, that should be just > > fine. But that's my 2p, so I'm happy to hear if others disagree. > > Are you discussing a scenario where the system doesn't have FI via > CPUfreq but only via AMU? And then we would get the pr_warn > > "rd %*pbl: Disabling EAS: frequency-invariant load tracking not > supported" > Yes, that is correct. Unfortunately for !sched_debug, even if we have FI via AMUs, the EAS enablement message "sched_energy_set: starting EAS" won't appear, and therefore one would only see the warnings above, giving the wrong impression that EAS is disabled. > in (1)-(3)? > > (1) initial sd build > (2) update_topology_flags_workfn() > (3) rebuild_sched_domains_energy() > (4) init_amu_fie() > > Today (e.g. on Juno( we start EAS within (1) > > root@juno:~# dmesg | grep "build_perf_domains\|EAS" > [ 3.491304] *** build_perf_domains: rd 0-5 > [ 3.574226] sched_energy_set: starting EAS <--- !!! > [ 3.847584] *** build_perf_domains: rd 0-5 > [ 3.928227] *** build_perf_domains: rd 0-5 > > And on a future AMU FI only system it would look like: > > Disabling EAS: frequency-invariant load tracking not supported" > Disabling EAS: frequency-invariant load tracking not supported" > Disabling EAS: frequency-invariant load tracking not supported" > sched_energy_set: starting EAS > Correct (with the same mention that "sched_energy_set: starting EAS" is guarded by sched debug). > I guess it's a good idea to put all those warnings which indicate why > EAS can't be started under sched_debug(). > > The warning "rd %*pbl: CPUs do not have asymmetric capacities" already > is. This one is actually very similar to the FI related one, since > 'asymmetric capacities' could only exist starting with (2) (big.LITTLE > based entirely on CPUfreq diffs) Yes, this seems the right solution, as suggested by Quentin as well. I'll do this together with the other suggestions and submit v2. Thank you both, Ionela.