Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp605736rdb; Mon, 15 Jan 2024 07:39:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IGyEjD8256+QGy5YFEL2yijT2J5pd4skzfxs6gFF4F3ARUjjjR4maNnOYV6zzSQz3HNHiJF X-Received: by 2002:a17:907:1b1f:b0:a2a:327a:2bfa with SMTP id mp31-20020a1709071b1f00b00a2a327a2bfamr2214070ejc.135.1705333166659; Mon, 15 Jan 2024 07:39:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705333166; cv=none; d=google.com; s=arc-20160816; b=Pp5GzZZlqR/fj0UkePC5VlK+Q52JT9DQmwVgwe6NysoBjftxkO2NSSerLnIWNoP178 hvRFJk7qlX3U6HhO3P71K3fnyIX4HljnjZg83DPPKP+3U0OiPlnDgBYNIzwLMTcGv+gR kd5yQtHCnGE8jMdzHP4eb4lfe2rJXRUmY+CPrw1n6pPain9EAGX6LewvGngJSi/rjfE2 xXAt6+UnQPcyGJbWtrC/EHjnyHLIjw1KdrgWGXrf2MxojGDWVxKGbOQlpvKtaTaCN7gr 8loVSg67nkMPMxB3p69iIM+mlbIpxPfBT5bzc8/57GZCia7rRdD4E1YNHBEgiCYlALAg quKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=vca8iHXjvx6ztiPlpy6hQMT//Mi2gmGf4is7seIfbys=; fh=SR0C3+NoRoHrBxKaJGtIljG7+lkTl0T4gvGJjR76K+o=; b=gir3IQsf6bnqHCrzSA+4lvSMjYXi6E7S8CI7FtQiyirhCh0P+p4ZrLkDNzoO0M9b1B Vuuq0mJav9Qx4Okj/o+itBvEUa+ETSBAsI8lYVoea8J4i9o2yXaXVX7/U8Mf1cL1nO00 rt5g87QyCCbV4Pmx3QaFGfvkkF44USMQHKXFjgwRmg8SNmKObDiwXSZXedW0WOB7a4a3 AjcMbd2uOgTSPu800rG029S88W5WLHYTmJt/UDaGAzVxMwet9FPsZBxt/lTjbT+JUy1X qWaLh3UrStgaMjGSMilM5AW6tgV/FBzDuiyVQvMud+Z48lgIcwG7tJaBcB548prlZsIL rrZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=XCQfBpQK; spf=pass (google.com: domain of linux-kernel+bounces-26183-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26183-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id s10-20020a1709066c8a00b00a2b8388a93bsi3960524ejr.841.2024.01.15.07.39.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 07:39:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-26183-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=XCQfBpQK; spf=pass (google.com: domain of linux-kernel+bounces-26183-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26183-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 45C981F22448 for ; Mon, 15 Jan 2024 15:39:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7E81917753; Mon, 15 Jan 2024 15:39:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="XCQfBpQK" Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (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 3BD5817743 for ; Mon, 15 Jan 2024 15:39:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=vca8iHXjvx6ztiPlpy6hQMT//Mi2gmGf4is7seIfbys=; b=XCQfBpQKZngHjvlBVESIc86brt vTkq4l1ip+CFF6LRkAeRRjtdSs/7zrkoDb+havr/JEUNz1IWft0tCbe4EXKR5ZoQu7VSs/zaxOcL3 qwma/q46xM1fSlh4NVtO6iDvbPgiGDs7MavHEfrgYgFVvSS5cotGRSWZSxeuaL8KBtJtyg7TAN9+T xIjd2z+BI1NrTzNZGoIoI7/UsKNdojDw6bJfMfYrrC8TRPRUpqG/vFKRNeAZCKfclQnTP3N3P5skA qHi1ym2QciFsSK8seffAg7lg5I/7b7HapWBoZa4j3eNr6+ZvWvsLazUX6HVGA0kRAAbnUYWMOITe3 8h9Vtp0Q==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:53076) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rPP3I-0002Wd-2a; Mon, 15 Jan 2024 15:39:04 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1rPP3E-00033W-BK; Mon, 15 Jan 2024 15:39:00 +0000 Date: Mon, 15 Jan 2024 15:39:00 +0000 From: "Russell King (Oracle)" To: "Christoph Lameter (Ampere)" Cc: Anshuman Khandual , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Valentin.Schneider@arm.com, Vanshidhar Konda , Jonathan Cameron , Catalin Marinas , Robin Murphy , Dave Kleikamp , Matteo Carlini , akpm@linux-foundation.org, yang@os.amperecomputing.com Subject: Re: [PATCH] ARM64: Dynamically allocate cpumasks and increase supported CPUs to 512 Message-ID: References: <794a1211-630b-3ee5-55a3-c06f10df1490@linux.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <794a1211-630b-3ee5-55a3-c06f10df1490@linux.com> Sender: Russell King (Oracle) On Thu, Dec 14, 2023 at 04:05:56PM -0800, Christoph Lameter (Ampere) wrote: > Index: linux/arch/arm64/Kconfig > =================================================================== > --- linux.orig/arch/arm64/Kconfig > +++ linux/arch/arm64/Kconfig > @@ -1407,7 +1407,21 @@ config SCHED_SMT > config NR_CPUS > int "Maximum number of CPUs (2-4096)" > range 2 4096 I think your mailer got to your patch and messed up the white space. There are two spaces before each of these lines rather than the usual one. > - default "256" > + default 512 > + > +# > +# Determines the placement of cpumasks. > +# > +# With CPUMASK_OFFSTACK the cpumasks are dynamically allocated. > +# Useful for machines with lots of core because it avoids increasing > +# the size of many of the data structures in the kernel. > +# > +# If this is off then the cpumasks have a static sizes and are > +# embedded within data structures. > +# > +config CPUMASK_OFFSTACK > + def_bool y > + depends on NR_CPUS > 256 Should that be ">= 256" ? > > config HOTPLUG_CPU > bool "Support for hot-pluggable CPUs" Same here. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!