Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp928742pxb; Fri, 15 Oct 2021 20:28:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyW/aqwDnNCLQ2YDxXJpBtwW1ot9XGQbRvwelYWUq+sk6ZjVAIxG8LfHA1Gxa3DHeYQbFH X-Received: by 2002:a17:906:5e52:: with SMTP id b18mr12055725eju.560.1634354929777; Fri, 15 Oct 2021 20:28:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634354929; cv=none; d=google.com; s=arc-20160816; b=wa1siMPdTWxAXK10lwNkl6ceabluzMKfzrj4jEXEp2Hu7TMBFthaVpN5BPnH+nk4nU X/l3y6azTyYUVzQ8TXnjPVmO8G602/Mw/l7jf8RVPa5ka97rN/ZO6iVbSgMttDAhQn1M aIIQU+0gKxvLCOgxNECu9Ig+ugzPSBmeCZIkydwKKrnP5RbRvMF3GIBnUraYBMoFNZh0 KtN8vF39clszjisO2IETwXN7t4/SWa4jba3X6a9f7qaq6Pv6T4LrLaDvGXrkrlHGtlv0 qrUD7Kj8D5LX3WrbBiBhKmIwBM6+Xs+E3wtLbpFXKCHkNLPfiPvqGyWr6CrnR3yiQumb Orlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GcG/LD4wXLRkh+mkTSYxktAgp6NtEFjg5wt7NUrIBQ8=; b=qxDp+vTbZ0KmEoAfluCQw56qZQ9OH73tcwMiAWGB5X7rESRRqWrxSmC3YC+9y1gSGf TJNbSaA+c3iw8Y8RVXuzbuEvYARtTNWVVcAQ7MzDGyDIAeDjqf/nIo/nM6BaCnDfhjIR NWLOCTJEypmb47Zi7rD6Jrxkxdikhuq2jQkX5KdvFRg6WgHEPD3k/Qhad2QgrNEvGgCQ 6Gw9DFkJ/e8lV9HE1pqSnepErystU/+9nQsLbTogna7ZwiOQvqpne4YTsGbMOJBJpMh9 DdSNvvpFwMy9m38ThsOjWJ2tQWA3hx6w2hJPerOi3j3YkbTYtQLqp1UHSQRYxHfTorAo yroA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=uayJR1a2; 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 p5si10073052ejj.74.2021.10.15.20.28.26; Fri, 15 Oct 2021 20:28:49 -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; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=uayJR1a2; 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 S239213AbhJONJD (ORCPT + 99 others); Fri, 15 Oct 2021 09:09:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235689AbhJONJB (ORCPT ); Fri, 15 Oct 2021 09:09:01 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E09EC061570; Fri, 15 Oct 2021 06:06:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=GcG/LD4wXLRkh+mkTSYxktAgp6NtEFjg5wt7NUrIBQ8=; b=uayJR1a282ytfFfr7pGkZzKhEI IluB/YpfG7Onwx7r1QjKfC1tsftLKfxav3VC38k67GpIyk/1ybeAGQUxvDR+zHqr8EKJVPlRZBA9/ /wpTA2a/mIgs+KwDypwHUlt5exYlO5YauSTxiForL6Zk2ddG+l9BfoSzKxtnDQxKPvn5PwybVyKMr 2sXVB6PGJ0CaomGm5OmpmwcYJjrxCbBh03Lz6TD+0UpZALAbk0Ks+Tm2EO0gwNMexvTrd+iVHfAOl L1EzBGZvN5/X+htNwR68fjDLwpfpBBFno+c1d7bIoN6mV3eoharT65WSKmRRs2o1NAkDG7hXrV1hK 6PnwqnJg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mbMtI-0091pf-5y; Fri, 15 Oct 2021 13:05:05 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 1918F300577; Fri, 15 Oct 2021 15:04:50 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id C9DB5212B43C0; Fri, 15 Oct 2021 15:04:50 +0200 (CEST) Date: Fri, 15 Oct 2021 15:04:50 +0200 From: Peter Zijlstra To: Valentin Schneider Cc: Barry Song <21cnbao@gmail.com>, LKML , LAK , linux-ia64@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, Aubrey Li , Barry Song , Tim Chen , Jonathan Cameron , Russell King , Catalin Marinas , Will Deacon , Thomas Bogendoerfer , "James E.J. Bottomley" , Helge Deller , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Yoshinori Sato , Rich Felker , "David S. Miller" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86 , "H. Peter Anvin" , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Arnd Bergmann , Linus Walleij , Geert Uytterhoeven , Andrew Morton , Anshuman Khandual , Mike Rapoport , Mark Rutland , Ard Biesheuvel , YiFei Zhu , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Kefeng Wang , Sergei Trofimovich , David Hildenbrand , Randy Dunlap , Masahiro Yamada , Kees Cook , Nathan Chancellor , Nick Desaulniers , Chris Down , Vipin Sharma , Rasmus Villemoes , Daniel Borkmann , Vlastimil Babka , Frederic Weisbecker , Hugh Dickins , Michal Hocko Subject: Re: [PATCH 2/2] sched: Centralize SCHED_{SMT, MC, CLUSTER} definitions Message-ID: References: <20211008115347.425234-1-valentin.schneider@arm.com> <20211008115347.425234-3-valentin.schneider@arm.com> <87bl3zlex8.mognet@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87bl3zlex8.mognet@arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 08, 2021 at 04:22:27PM +0100, Valentin Schneider wrote: > So x86 has it default yes, and a lot of others (e.g. arm64) have it default > no. > > IMO you don't gain much by disabling them. SCHED_MC and SCHED_CLUSTER only > control the presence of a sched_domain_topology_level - if it's useless it > gets degenerated at domain build time. Some valid reasons for not using > them is if the architecture defines its own topology table (e.g. powerpc > has CACHE and MC levels which are not gated behind any CONFIG). > > SCHED_SMT has an impact on code generated in sched/core.c, but that is also > gated by a static key. > > So I'd say having them default yes is sensible. I'd even say we should > change the "If unsure say N here." to "Y". Right, so I tend to agree (and also that we should fix that Kconfig help text). But it would be very nice to have feedback from the affected arch maintainers.