Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1625983ybt; Thu, 2 Jul 2020 09:45:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbD+TA/jFAxgOcg8p2kuw5nnowQ0OfLWEKbf/aIrdM2VN2ELtoji4TBINAOsoBoMaRebiU X-Received: by 2002:aa7:d2d2:: with SMTP id k18mr34771004edr.16.1593708339434; Thu, 02 Jul 2020 09:45:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593708339; cv=none; d=google.com; s=arc-20160816; b=mbF+AdLs7VwPtjM+SrPhMBTiHfCNNSDGIpU6fDIEQUMfs9Ei/2tR6GfMApRCl/JiG9 ood/2pNJviOt6BBuWh9QpbmfnG6jL9ldQcm177DfKJm/t9tMbLkm4n4XixwlFyMr+ZGf /FQfiWxP+WqKLOlpHL7jd7X0TIi9k58MXGduOn66ptgA0cGOfvoz9k+gABZdeTNN/9ef ihNRmUdcSOcBvptzjzEouPLjCpeYDGIVTDdzwKEpiJ6IAKEGbbsAbIyujZtYtDT5+N8T x89/BffzMpd90+nk5UzOSh6QyA15hFI/xxg47vosYz50WE1urCozpxg/q/wLkOfdNEUV HLyA== 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; bh=pt3W6PzQ4nxwUCTXE7Yjl0fxktLIKOPfaq1aMiCR2+U=; b=HSDV1LGVxP1m0/MFkVzvgHSESFi69c45UZ8lmc1332jbb/5LxwZ+Jtl7YlfFipNM7p pRn/wKULCt+JLoCRgzFiu8CMQMdSirzfsukNmZph7KQWsgkii6g7VLIYNOW95SPOpNTL FT7QRFBFbwB2zbBy6BOzbspfVsXZ5DAecOKSKPrShZPwJ7RA6HeJjw/rrYd62obBLdZu IB1l97rr0hl2xEevxAUlCDvjb3AbQ5u9cgLV/QphIZ+sp8NdG+g1+75++dKdbYJYbVhf eDxH+aaYN/9h60y+gslrGiUY4GJ/uSvxmJxg/pD4eAlbTotKlftA4aBOjgMugKjsNWbY 9+GQ== 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 dp14si7534634ejc.412.2020.07.02.09.45.16; Thu, 02 Jul 2020 09:45:39 -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 S1726865AbgGBQpA (ORCPT + 99 others); Thu, 2 Jul 2020 12:45:00 -0400 Received: from foss.arm.com ([217.140.110.172]:42530 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726147AbgGBQo4 (ORCPT ); Thu, 2 Jul 2020 12:44:56 -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 3B7921FB; Thu, 2 Jul 2020 09:44:55 -0700 (PDT) Received: from [192.168.178.2] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 363973F71E; Thu, 2 Jul 2020 09:44:54 -0700 (PDT) Subject: Re: [PATCH v3 4/7] arm, sched/topology: Remove SD_SHARE_POWERDOMAIN To: Valentin Schneider , linux-kernel@vger.kernel.org Cc: Morten Rasmussen , mingo@kernel.org, peterz@infradead.org, vincent.guittot@linaro.org References: <20200701190656.10126-1-valentin.schneider@arm.com> <20200701190656.10126-5-valentin.schneider@arm.com> From: Dietmar Eggemann Message-ID: Date: Thu, 2 Jul 2020 18:44:18 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200701190656.10126-5-valentin.schneider@arm.com> Content-Type: text/plain; charset=utf-8 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 01/07/2020 21:06, Valentin Schneider wrote: > This flag was introduced in 2014 by commit > > d77b3ed5c9f8 ("sched: Add a new SD_SHARE_POWERDOMAIN for sched_domain") > > but AFAIA it was never leveraged by the scheduler. The closest thing I can > think of is EAS caring about frequency domains, and it does that by > leveraging performance domains. ... and even this was purely out of tree (SD_SHARE_CAP_STATES). > Remove the flag. > > Suggested-by: Morten Rasmussen > Signed-off-by: Valentin Schneider > --- > arch/arm/kernel/topology.c | 2 +- > include/linux/sched/sd_flags.h | 20 ++++++-------------- > kernel/sched/topology.c | 10 +++------- > 3 files changed, 10 insertions(+), 22 deletions(-) > > diff --git a/arch/arm/kernel/topology.c b/arch/arm/kernel/topology.c > index b5adaf744630..353f3ee660e4 100644 > --- a/arch/arm/kernel/topology.c > +++ b/arch/arm/kernel/topology.c > @@ -243,7 +243,7 @@ void store_cpu_topology(unsigned int cpuid) > > static inline int cpu_corepower_flags(void) > { > - return SD_SHARE_PKG_RESOURCES | SD_SHARE_POWERDOMAIN; > + return SD_SHARE_PKG_RESOURCES; > } > > static struct sched_domain_topology_level arm_topology[] = { I guess with SD_SHARE_POWERDOMAIN gone, arch arm can even use the default_topology[]: diff --git a/arch/arm/kernel/topology.c b/arch/arm/kernel/topology.c index b5adaf744630..87dd193165cc 100644 --- a/arch/arm/kernel/topology.c +++ b/arch/arm/kernel/topology.c @@ -241,20 +241,6 @@ void store_cpu_topology(unsigned int cpuid) update_siblings_masks(cpuid); } -static inline int cpu_corepower_flags(void) -{ - return SD_SHARE_PKG_RESOURCES | SD_SHARE_POWERDOMAIN; -} - -static struct sched_domain_topology_level arm_topology[] = { -#ifdef CONFIG_SCHED_MC - { cpu_corepower_mask, cpu_corepower_flags, SD_INIT_NAME(GMC) }, - { cpu_coregroup_mask, cpu_core_flags, SD_INIT_NAME(MC) }, -#endif - { cpu_cpu_mask, SD_INIT_NAME(DIE) }, - { NULL, }, -}; - /* * init_cpu_topology is called at boot when only one cpu is running * which prevent simultaneous write access to cpu_topology array @@ -265,7 +251,4 @@ void __init init_cpu_topology(void) smp_wmb(); parse_dt_topology(); - - /* Set scheduler topology descriptor */ - set_sched_topology(arm_topology); }