Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp3350856rdb; Tue, 6 Feb 2024 15:18:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWH7pEPj0p/8FT9uhZYUTe4TLnvwDqOMcw3vzLSv2PH1jGsNHlgHZTr8OAj76UHmHrAnc4KycIRv7LwypuKX9DJlZIVs2caOE3nwnPIRg== X-Google-Smtp-Source: AGHT+IF0xLBmRZt0X72XPeUXBnFz9jEj040zUQhds5ls0GALZ0xZbOoss+0ptmxma0j3zakyGlKh X-Received: by 2002:a17:906:2dc7:b0:a36:7b45:1304 with SMTP id h7-20020a1709062dc700b00a367b451304mr2160948eji.77.1707261513319; Tue, 06 Feb 2024 15:18:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707261513; cv=pass; d=google.com; s=arc-20160816; b=egf9j995V7IHnlRLu4lS/UkQFxnu1aL+CoHyA4Gx8MgTVclyGNrYzAWBDyTgd8kuXO mJ3y1hfHWdp3JdaW/vk8uSppHbrXOMNS4VN3aqrTQC94/Z7xNB+C+8mIiYiGgkSlVjFa MTAjlmoy43iuiH8FCr3NAymgx3lPAjYMiiPwW4kqy7SZvk2egdEaQ16vIi3IU5nJ37qP oIwEy1pMOKe/eo2G1IH1oNHfAZ8aD6DmS084RgsMMAnhdnwjCNc5nxxkdK1741CAWTEA TH7+VLYxlTmrWTDbQSnu169CdAfi5PnHWjscpsNeC9tUNAUbxF6Lv8BKLlaPNVDT/zVT jiVA== ARC-Message-Signature: i=2; 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=DKdDlBaoWLD1i+SswtNzDM+hpIQ9ywhkR3LkK9m+G3w=; fh=MKbU1M7pwugsTW7V0bMoMCHu/vZLz1LMl2tIXXr2DpA=; b=KUAWMpPXJMKGdzGdEfXKyjK7rKGXUL3Vj2lK7bqLQOptTpBGWNFBJS2ls9DBT9CF74 elB99MEDIbNYia4Pv3enUFbu4mt6htMVvx6RYi2eKC6A0BgCvAWu2agDSR9/TLeyHyIW yY0yVb0SDN7axwIrojbKUoc0GaxonJGRRYZhuh7SxgFXLxJ1nmA7a5CUHocauRYua7Pl 25w3nT5cxusNVzJSM5iZZ38Od8pg+kBmB6M2vMnzsbM0Uld9L3sFfy5fej9qBHiayrWk 3ow01yk0GaxVzF9E/ZtDXHnGP7fEr6cc068NbdeZGqL2oVvKBGd3rLPj3y2mFVr2BJYy sYjg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=StElRlcS; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-55718-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55718-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk X-Forwarded-Encrypted: i=2; AJvYcCUdbCBruOlDnQzDd4RgS5l3/Fzv3ueXFNfXfEvxV8fDLWfHawKaZ9QxneGvAiu2fUOhtNEsJXhvBa1FvLuFE5+oRF9cQ0HtlUBYOcmvAw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id lk11-20020a170906cb0b00b00a37baa6a0e6si69022ejb.286.2024.02.06.15.18.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 15:18:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55718-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=StElRlcS; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-55718-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55718-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 139111F24810 for ; Tue, 6 Feb 2024 23:18:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 701AF1CABD; Tue, 6 Feb 2024 23:18:25 +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="StElRlcS" 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 C34A41C29C for ; Tue, 6 Feb 2024 23:18:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.32.30.218 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707261504; cv=none; b=TPqomC+AYckfzjeEfQC2DXLehOlMW7yHVkNdFvzQyMBW2fX2SWtDIySepDbjkIA1FrpVWDVf+Y/2yotpABHxYBqCgXh6h3KvMcv0nv643wB3QT/4X222C2wWXU4PemH+YNedHKxzqqDyflVE/Ir2/SfC7jg4NVGx8CIm+TpxoxE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707261504; c=relaxed/simple; bh=6k2/v7t4Lc7qS2f3uGGBR4lHof09wjKlY6e2xCdE8G8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UQsnfVeIcGIwGyN4rJBk5t1r7VOI5hI2pTwobDeYmDYicdIV8Hk4f5RAHfLNIykm42zFWazXqBUS6pAC1HM1zF6SmC4BIw1/dbfNyQhtg0A91npL3bisQCAz00603/N5PcdCS1a9kjYWpQ2k2e/QneeSDD68HCleg6aNk6Qu89k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk; spf=none smtp.mailfrom=armlinux.org.uk; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b=StElRlcS; arc=none smtp.client-ip=78.32.30.218 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=DKdDlBaoWLD1i+SswtNzDM+hpIQ9ywhkR3LkK9m+G3w=; b=StElRlcSH9oSxj07zjDse4KeZb JMadwTYZgV3Oekw3j3odYlubfWwU2FxbHxxfvbtmPerYRfD2Fdz/rT5qsS/cYwagrYJqiUP9rnG6/ rRQnXey/kmQsTp1DUG7bi1vkNhSSGhbvkNmYGokw9mx12+pPUqUnMrLnZBFgzqIYXdZnfKAhL8isj 2S2hCuTWe5Mdcd19mk4IR4l80NSKrjqvRUpXfIfHS32mg01WRGowqs7MZbVshbCqrHQp/84zuJiIh TN1VWOm++QJRkeafxPtYvXNZAvhNga5IGoksfC4ys0rskp+Wol5sb4EV+vpkHX2Nh6+EhptKuBUMq bVdXUw0g==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:39202) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rXUhY-0002bh-1q; Tue, 06 Feb 2024 23:18:04 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1rXUhS-00040V-VN; Tue, 06 Feb 2024 23:17:59 +0000 Date: Tue, 6 Feb 2024 23:17:58 +0000 From: "Russell King (Oracle)" To: "Christoph Lameter (Ampere)" Cc: catalin.marinas@arm.com, Will Deacon , Jonathan.Cameron@huawei.com, Matteo.Carlini@arm.com, Valentin.Schneider@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, robin.murphy@arm.com, vanshikonda@os.amperecomputing.com, yang@os.amperecomputing.com Subject: Re: [PATCH REPOST v2] ARM64: Dynamically allocate cpumasks and increase supported CPUs to 512 Message-ID: References: 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: Sender: Russell King (Oracle) On Tue, Feb 06, 2024 at 10:09:59AM -0800, Christoph Lameter (Ampere) wrote: > Can we get this merged for 6.9? The patch has been around for awhile now. > > > > Ampere Computing develops high end ARM processor that support an ever > increasing number of processors. The default 256 processors are > not enough for our newer products. The default is used by > distros and therefore our customers cannot use distro kernels because > the number of processors is not supported. > > One of the objections against earlier patches to increase the limit > was that the memory use becomes too high. There is a feature called > CPUMASK_OFFSTACK that configures the cpumasks in the kernel to be > dynamically allocated. This was used in the X86 architecture in the > past to enable support for larger CPU configurations up to 8k cpus. > > With that is becomes possible to dynamically size the allocation of > the cpu bitmaps depending on the quantity of processors detected on > bootup. > > This patch enables that logic if more than 256 processors > are configured and increases the default to 512 processors. > > Further increases may be needed if ARM processor vendors start > supporting more processors. Given the current inflationary trends > in core counts from multiple processor manufacturers this may occur. > > Tested-by: Eric Mackay Reviewed-by: Russell King (Oracle) Thanks! > Signed-off-by: Christoph Lameter (Ampere) -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!