Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4036077rdh; Tue, 28 Nov 2023 10:02:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IEdu5jCoeh1DqxKwjIu9b1KHl6yZCJIW8cCSCHHsURI/p9EMpl0FGU4OIwayyY5CJJ6Bf3q X-Received: by 2002:a5b:2cf:0:b0:da0:93bf:2691 with SMTP id h15-20020a5b02cf000000b00da093bf2691mr14053770ybp.26.1701194575802; Tue, 28 Nov 2023 10:02:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701194575; cv=none; d=google.com; s=arc-20160816; b=SQv+GTLqskOhV9eBFt/SQvnGedueVwNsON5Kx4Lf860GOqaUQhAzL/m73PBZ5cZuh5 MwrYmGvzUuQVd21Xf/IEb9dopjwVYUqH/kQt7hW/i3kiXJA9WauQpp2QzNYxfKZtwpWC C/hNbpTx9T2L6pLPkj3I9HZrR0nD1tVcNbvl3LjDshexp4znqekGYm5cVwe8M4YhS7xN EOBL1l8UVV+Aqg2sBGiawVVvAb1sAtDzyz+qqYzpCaKYl46IbsqEgEPlzVd/UqwsOYNE E7B3iCjGZ00nRz0Evf5PK2j1vP99WvG+bHf/egSlTrEW7bvKhyc4cdArQykGsVNjoqDj XCVw== 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=HqiUgsc5fgsnL5oosrcRxULS7o+HfXt/J9GLGe64kIc=; fh=VN3pkmOcLATtVIxrvRYnRrlCsRsXC6U0bOU90kpvvVU=; b=hZFZHHA7sg+bD2Utl2tF02A4nJILPOJrr9VHYqT/ZG2vDe9zkb/6d+e1SuBmt8ATPw fcXVdHqUyE5hZaP2/LyJ/U2WI29j8ZBUKNpMdcTl2+lnb7Zf6LHhF+NABAENiuz9QD4h /Hv4Qqo0OF3OpUv+YnWLfs0E8jLU2byQ/TW6mFhvd5IQfXJDuQNaTU0v+IrYgI+YmGGX f+c7TyyIGVtsV9X9kVp2I16QZ+PmJkB4EqeBLfMgrvaHpaAue5H2R1BHd1y1JHjw4uGc uhtG4LP3mPiJjKc6JtH/WN5WpxvOoegmuEmfitb1BF5SHJ5xS/EMxDiHorTM3J0IXhNf Yrlg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id b6-20020a25ae86000000b00d7fd681a51asi8563050ybj.732.2023.11.28.10.02.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 10:02:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 4833B804B03A; Tue, 28 Nov 2023 10:02:53 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345135AbjK1SCn (ORCPT + 99 others); Tue, 28 Nov 2023 13:02:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229921AbjK1SCn (ORCPT ); Tue, 28 Nov 2023 13:02:43 -0500 Received: from gentwo.org (gentwo.org [IPv6:2a02:4780:10:3cd9::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F39F191 for ; Tue, 28 Nov 2023 10:02:45 -0800 (PST) Received: by gentwo.org (Postfix, from userid 1003) id 5DF5F46624; Tue, 28 Nov 2023 10:02:45 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id 5CC1341AEC; Tue, 28 Nov 2023 10:02:45 -0800 (PST) Date: Tue, 28 Nov 2023 10:02:45 -0800 (PST) From: "Christoph Lameter (Ampere)" To: Anshuman Khandual cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Valentin.Schneider@arm.com, Vanshidhar Konda , Jonathan Cameron , Catalin Marinas , Robin Murphy , Dave Kleikamp , Matteo Carlini Subject: Re: [PATCH ARM64]: Introduce CONFIG_MAXSMP to allow up to 512 cpus In-Reply-To: <52b8a7d8-aa4c-46db-a7f5-f36c92ad5380@arm.com> Message-ID: <01d7531b-3d5c-989d-58ac-60861249fd3e@linux.com> References: <6a854175-5f89-c754-17b8-deda18447f1f@gentwo.org> <52b8a7d8-aa4c-46db-a7f5-f36c92ad5380@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Tue, 28 Nov 2023 10:02:53 -0800 (PST) On Tue, 28 Nov 2023, Anshuman Khandual wrote: > > > On 11/21/23 06:34, Christoph Lameter (Ampere) wrote: >> Ampere Computing develops high end ARM processors that support an ever >> increasing number of processors. The current default of 256 processors is >> not enough for our newer products. The default is used by Linux >> distros and therefore our customers cannot use distro kernels because >> the number of processors is not supported. > > In the previous thread mentioned below, Catalin had mentioned that the > distros do tweak the config for their needs. The default is applicable > for an wide range systems, hence just wondering why default NR_CPUS be > changed for all. We would like the standard kernel to be able to boot on our systems and those have more than the current NR_CPU processors. The distros only tweaks things on request and with this change the tweaking is no longer necessary. > Also just curious, what might be the concern for distros to have large > platform specific configs overriding the default. There are numerous distributions as well as individuals who built kernels. It is surprising if someone builds an upstream kernel with the defaults that should fit all supported platforms only to find that only a portion of their cpus come up. The work of discovery why this is and how to fix it has to be done by numerous individuals and organizations in order to enable all cpus. That work is not necessary if the default is such that a sufficient number of processors are supported by the default configuration accommodating all ARM hardware. The CONFIG_MAXSMP configuration on X86 was developed exactly for these situations and we have a special KCONFIG option to have potentially large bitmaps for cpus allocated as needed in the kernel core. The patch enables the use of that facility.