Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3351293rdh; Mon, 27 Nov 2023 11:58:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IGiLA7iHUmgUfCyqlE5TjTf4+f3CZJUTcNjaxKj+K+O+96zkkOIcX96jKOYj309X3FKhEro X-Received: by 2002:a17:90a:d987:b0:27d:10b1:5deb with SMTP id d7-20020a17090ad98700b0027d10b15debmr12058592pjv.31.1701115121501; Mon, 27 Nov 2023 11:58:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701115121; cv=none; d=google.com; s=arc-20160816; b=fehBhBep8EuF6EMX9pCEPd4ZKscULEwyE2MFzE7rAh3f7i6FVY4xrnapDRs3bl7W86 gs19gTYMrTkJEoVNLIe2+lGE8e4LjbsU7GjvBsXSN1mc+VqBiuiskMHOWctb1ZBc3fhK nTHzRE5/UtCmXcIe5C1pwxn0gR3Be8yZuiwT/hAdFIrzjoQisBDwXIUDX1HVFMfoDxiM lJSYjTrYDx4wIKROp9CpHUYQUE6bgAKWo+tZmYY1HZkeZRxOvrSd0YN47W/4ggB4dMK0 NFIhka2WMX5FlpVITWEU31XFGE2rrHmHDPP/l2k1Yp6Ns60C3nNV5IzzAA+E+84tNmui V06w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date; bh=7P60Wm+zdRE606BddHrDvL+8ripMm6JdEIRbRI1qnVU=; fh=h+fnXQKMgPieBHZAuthGMzBPPAABe5oVZKVAJm6Tiwg=; b=fJHvNDkSiFaqDCiPCHYivPI29f92X2QzXgNHKgeLhAXzkZtmOSZAVM4T2jX37LDu6m BMuVHxHzwUvmsl1Kw8sMqsqjd1SLdxY8tXsHVhOcO+vsgVWt+v//2ABsvChLu6nX1rnm RDsTrCyo6oPjD0cXheNfPno2tEYI/5Qx+YkNBiTDYlYmZdVKGLm6NUmlO5tEqlXsifNm 8TbLjXpWhVVT3t9VfUTUeowR1qHrWk1va5pAsuzx507CselmT33SNYkH9q8rvUuclziA T5gW1os8JpEqAAXtGwqpJNBCDOgi+IVWXD9L05opKjpzjrRLYJTpPj2kb5OoJsmNOw8T JFfQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linux.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id i15-20020a17090adc0f00b002810ae70420si10655665pjv.121.2023.11.27.11.58.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 11:58:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linux.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 282DF8077442; Mon, 27 Nov 2023 11:58:34 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231545AbjK0T6S (ORCPT + 99 others); Mon, 27 Nov 2023 14:58:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229527AbjK0T6R (ORCPT ); Mon, 27 Nov 2023 14:58:17 -0500 Received: from gentwo.org (gentwo.org [62.72.0.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44E0CB8 for ; Mon, 27 Nov 2023 11:58:23 -0800 (PST) Received: by gentwo.org (Postfix, from userid 1003) id AFF3341AEE; Mon, 27 Nov 2023 11:58:22 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id AF4FC41AED; Mon, 27 Nov 2023 11:58:22 -0800 (PST) Date: Mon, 27 Nov 2023 11:58:22 -0800 (PST) From: "Christoph Lameter (Ampere)" To: Catalin Marinas cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Anshuman.Khandual@arm.com, Valentin.Schneider@arm.com, Vanshidhar Konda , Jonathan Cameron , Robin Murphy , Dave Kleikamp , Matteo Carlini Subject: Re: [PATCH ARM64]: Introduce CONFIG_MAXSMP to allow up to 512 cpus In-Reply-To: Message-ID: References: <6a854175-5f89-c754-17b8-deda18447f1f@gentwo.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 27 Nov 2023 11:58:34 -0800 (PST) On Thu, 23 Nov 2023, Catalin Marinas wrote: >> +config NR_CPUS_RANGE_BEGIN >> + int >> + default NR_CPUS_RANGE_END if MAXSMP >> + default 1 if !SMP >> + default 2 > > We don't support !SMP on arm64. Ok we can drop that. >> + This is purely to save memory: each supported CPU adds about 8KB >> + to the kernel image. > > Is this all needed just to select CPUMASK_OFFSTACK if larger NR_CPUS? > Would something like this do: > > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > index 7b071a00425d..697d5700bad1 100644 > --- a/arch/arm64/Kconfig > +++ b/arch/arm64/Kconfig > @@ -119,6 +119,7 @@ config ARM64 > select CLONE_BACKWARDS > select COMMON_CLK > select CPU_PM if (SUSPEND || CPU_IDLE) > + select CPUMASK_OFFSTACK if NR_CPUS > 512 > select CRC32 > select DCACHE_WORD_ACCESS > select DYNAMIC_FTRACE if FUNCTION_TRACER > > togehther with a larger NR_CPUS in defconfig? Well that is certainly better because it does not introduce an additional kernel config option.