Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp92042lqc; Thu, 7 Mar 2024 11:10:35 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVhicSAxLflfB9hM7KCtXPfDfx1xthWvxLQdEmNEozLGdLdOgRhQAMPAMwsk+WcZuHz+RVpMGfI1XGODfOuASzteEP6PyXmfczhCh/uSg== X-Google-Smtp-Source: AGHT+IG8JlfwPpci0V4h2qPHiCIUqkStIYXJq/xJ+LRsxB/oZoLT4N2UgmzrkAW4y2jD0RsL9ksj X-Received: by 2002:a05:6871:1c9:b0:21e:d92b:ef39 with SMTP id q9-20020a05687101c900b0021ed92bef39mr861211oad.27.1709838634789; Thu, 07 Mar 2024 11:10:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709838634; cv=pass; d=google.com; s=arc-20160816; b=SDw2PtCyEvMymOG4Avewu0L3QG95RJ/D4MgzBR54YtpLQ3ie04je/VhASQRCRFEgGl ONKkXaXfoYyGskRxuUXRST+I0dvEZlHvDBTOW3QxEJ0tfhMnPBO6KQd+L4oZt0tUwsI6 fF0dEaJO/4uIqK6x4uZkFD+XAuTo3fibmC2/Dp83J57Ek6cmK+5DKk68q52q/9tlOA86 mdOTWWwLCIGtbEYgHBlhIoasfq7BFWPMq5u8t53a2BZb7cvt+uOtBRVoK1DeuePDOZq1 ZIWzjDNUx7QAPc4yaiIwUF/6e/WdfZJmAaRo14g/JXnS8H5EynAZq3koNG8tiTVlE6BR FZsw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=fydQVkF0garfV4Gf9sE7CtobZYinyD+u+y9FOzLDfy8=; fh=60cRSu97UVGhuO2oJpzNMzFXw2GWq2Q4sLplb0hqSSY=; b=qjXW2/6mPfspZnt9DbB8+z+yqbF4iE3/8zoPko8HxawHub68Kg4kN7SjZ53k1+LSNE dbA3H0yk+dIBptAgr5XXwI1M/7c2NcoAACm1xbZuRBR5eBV1kgrt9pidYUwzyi586WnF MP2k4pYkGEXcRnSF5w35DxIny6modm7scyBDyrhg2j3pOV0yxuwmb5+UK+BPSlVOvVxD /ypYobEe649LlqgqdX+rCZe3y81JKvOdMna7mp1ANW68INZ2KZZ3bwc73D9kJtZFlDLe Nu1o7lRHZLimoSg5LILQ/pP1QAmpUkezURFxC96BWD5uvPatwmIlQ6SVgrWi/nEMCyxe VYxg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-96070-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96070-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id xy13-20020a05620a5dcd00b007882aba13d7si8973343qkn.780.2024.03.07.11.10.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 11:10:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96070-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-96070-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96070-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7CD481C2175F for ; Thu, 7 Mar 2024 19:10:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 035A31369AF; Thu, 7 Mar 2024 19:07:14 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 76534135A75 for ; Thu, 7 Mar 2024 19:07:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709838433; cv=none; b=jkm+Ow3s/LAMnCptH9SMR6KwH2iyktKRTmUaRm0tq7GGzF8DJupwnjdyTYXHqNAaArxN+WUumSd1S9/+jtJfrukP5zXEJkS643ZrzrgBMKRxkWwAwj83z23z9VVIDpTU37NMq9/4OvwVGGdtA4qlr8eNxZReVUPQUZGNZs6NHAE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709838433; c=relaxed/simple; bh=Lyu7iqd37tK2KplVnInLMebFUrfTWMiG+GzPElQoE3A=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=D8c6rM9G7BUwypT0QXQWuDfpoJutGnE16yI4vL8P0cpcV/O59T8yE0Wsrsv5yumwk42LcT4HT7lC1kaGGkM7iMs5mLktaq+1aFjvBRHxrURKE0Sodxr+o4ACyklN37V7pEfJ9a4ebv41VCHlwKm/e3SNvypL++vgmpZkZnHz6Sc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 84DB9C43390; Thu, 7 Mar 2024 19:07:09 +0000 (UTC) From: Catalin Marinas To: Mark Rutland , "Christoph Lameter (Ampere)" Cc: Will Deacon , Jonathan.Cameron@huawei.com, Matteo.Carlini@arm.com, akpm@linux-foundation.org, anshuman.khandual@arm.com, Eric Mackay , dave.kleikamp@oracle.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux@armlinux.org.uk, robin.murphy@arm.com, vanshikonda@os.amperecomputing.com, yang@os.amperecomputing.com, Valentin Schneider Subject: Re: [PATCH v3] ARM64: Dynamically allocate cpumasks and increase supported CPUs to 512 Date: Thu, 7 Mar 2024 19:07:07 +0000 Message-Id: <170983839495.1825460.8461454086733296317.b4-ty@arm.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <37099a57-b655-3b3a-56d0-5f7fbd49d7db@gentwo.org> References: <37099a57-b655-3b3a-56d0-5f7fbd49d7db@gentwo.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit On Wed, 06 Mar 2024 17:45:04 -0800, Christoph Lameter (Ampere) wrote: > Currently defconfig selects NR_CPUS=256, but some vendors (e.g. Ampere > Computing) are planning to ship systems with 512 CPUs. So that all CPUs on > these systems can be used with defconfig, we'd like to bump NR_CPUS to 512. > Therefore this patch increases the default NR_CPUS from 256 to 512. > > As increasing NR_CPUS will increase the size of cpumasks, there's a fear that > this might have a significant impact on stack usage due to code which places > cpumasks on the stack. To mitigate that concern, we can select > CPUMASK_OFFSTACK. As that doesn't seem to be a problem today with > NR_CPUS=256, we only select this when NR_CPUS > 256. > > [...] Applied to arm64 (for-next/misc), thanks! I dropped the config entry and comment, replaced it with a select as per Mark's suggestion. [1/1] ARM64: Dynamically allocate cpumasks and increase supported CPUs to 512 https://git.kernel.org/arm64/c/0499a78369ad -- Catalin