Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp430195pxa; Wed, 12 Aug 2020 05:54:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytvxaZAnTfDjBAt42qwJHAjmnn0jydVzblc0mP9nBdY1C3nk0gEGXY7Q+KuN4JdzYOpL0/ X-Received: by 2002:a17:906:b082:: with SMTP id x2mr32503845ejy.349.1597236870601; Wed, 12 Aug 2020 05:54:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597236870; cv=none; d=google.com; s=arc-20160816; b=zXiuKcswnVio6R4XdGeBbxIRuh8GAQofzFj9IDdO+UDPxXyvbv22lm+pG11kaPWy9D 48K2YkwI048TN7U6LYvumeKbvCoJl1AXNUtucaP3I+UIP2YEk6zjMniMcentmbY02dy2 Z9+JY+JOh8avtcyABjEk4idCN+IdeZ/RcC7+P04CMsr/osrfVkFgu1gEtl8RostLg+eo Y9/ObNyXuC/OM5zXcN7pIwkgt2y2Jv6UhPb6kz/WM4WbmudTrIMIMk+syZ17EwB6NkTw xwttrYy1P8D5HyN1Hm4HNezPPYHsPbNdBHcnw3Ard8ZSFvUpcZDLHAthYceDJV/ZNRjs izdA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=v6nhfq9/AVXBLWDpi8ExT12dejTPml5PbbVqgj8NiAY=; b=uHcf6ejs+YOXn8TvuW3/jqoHlxhIRq1fWRgzWUOKJuTQG+JPhAL96bD5t5IkreDMK+ UzW/W62dcLzbaoIrsjCdjImX+/ARnDrr+hQfX3fpFMKXoq+egjQJXrAjP8zZrABqxHJ6 s/IIeiEii5/6EuRS2GAHOEF9DRUxnjXgqHP6SfRk1n2EUmSoA5eRtiIJlvqPuQqWNtgt r9QvuoTZwoGUsphZ43jPlRad5AwGL53uZIU8M9CIx+SjqPNc3M/hZEKos4UT36xV9ghl Kr5lxN6Fqtq9zT7H+a+2zM6qRudWL42PZEQ5wfkZlQZSk1D768UhvbEku3XRr4YqqkcP 9JRw== 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 d8si1257520edl.399.2020.08.12.05.54.07; Wed, 12 Aug 2020 05:54:30 -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 S1727982AbgHLMxU (ORCPT + 99 others); Wed, 12 Aug 2020 08:53:20 -0400 Received: from foss.arm.com ([217.140.110.172]:44516 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727906AbgHLMxQ (ORCPT ); Wed, 12 Aug 2020 08:53:16 -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 C677211B3; Wed, 12 Aug 2020 05:53:15 -0700 (PDT) Received: from e113632-lin.cambridge.arm.com (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 778873F70D; Wed, 12 Aug 2020 05:53:14 -0700 (PDT) From: Valentin Schneider To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Russell King , Dietmar Eggemann , mingo@kernel.org, peterz@infradead.org, vincent.guittot@linaro.org, morten.rasmussen@arm.com, Quentin Perret Subject: [PATCH v5 02/17] ARM: Revert back to default scheduler topology. Date: Wed, 12 Aug 2020 13:52:45 +0100 Message-Id: <20200812125300.11889-3-valentin.schneider@arm.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200812125300.11889-1-valentin.schneider@arm.com> References: <20200812125300.11889-1-valentin.schneider@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The ARM-specific GMC level is meant to be built using the thread sibling mask, but no devicetree in arch/arm/boot/dts uses the 'thread' cpu-map binding. With SD_SHARE_POWERDOMAIN gone, this topology level can be removed, at which point ARM no longer benefits from having a custom defined topology table. Delete the GMC topology level by making ARM use the default scheduler topology table. This essentially reverts commit fb2aa85564f4 ("sched, ARM: Create a dedicated scheduler topology table") Cc: Russell King Suggested-by: Dietmar Eggemann Reviewed-by: Dietmar Eggemann Signed-off-by: Valentin Schneider --- arch/arm/kernel/topology.c | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/arch/arm/kernel/topology.c b/arch/arm/kernel/topology.c index 353f3ee660e4..ef0058de432b 100644 --- a/arch/arm/kernel/topology.c +++ b/arch/arm/kernel/topology.c @@ -177,15 +177,6 @@ static inline void parse_dt_topology(void) {} static inline void update_cpu_capacity(unsigned int cpuid) {} #endif -/* - * The current assumption is that we can power gate each core independently. - * This will be superseded by DT binding once available. - */ -const struct cpumask *cpu_corepower_mask(int cpu) -{ - return &cpu_topology[cpu].thread_sibling; -} - /* * store_cpu_topology is called at boot when only one cpu is running * and with the mutex cpu_hotplug.lock locked, when several cpus have booted, @@ -241,20 +232,6 @@ void store_cpu_topology(unsigned int cpuid) update_siblings_masks(cpuid); } -static inline int cpu_corepower_flags(void) -{ - return SD_SHARE_PKG_RESOURCES; -} - -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 +242,4 @@ void __init init_cpu_topology(void) smp_wmb(); parse_dt_topology(); - - /* Set scheduler topology descriptor */ - set_sched_topology(arm_topology); } -- 2.27.0