Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp580202pxx; Mon, 26 Oct 2020 15:53:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweXCKC7K+Ec6da0fK6NCDEvLhuuvYDzwZ83Zx740i0g+vogLfedTagP37t4mT21ld6T4SD X-Received: by 2002:a17:906:66d2:: with SMTP id k18mr17338480ejp.113.1603752799055; Mon, 26 Oct 2020 15:53:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603752799; cv=none; d=google.com; s=arc-20160816; b=oXDsDqFF8auOzKYfur7JJxSpGKRFMld5AY3J4FWwheZE9r2tCGpQvVDY+9nN3RxhAO Stk0Uk+u5n1SrW4Kcf/1zqkoRi1Pg+QgkG8RgDffgnhotPKBZy9bdizhRvwekTGz3sPe IU4EF2YWxGZdGveM3TKEEP+QKY7PvK78CbXQVgV/m5yihASUpEZdh78Dr9kROh3REMNy Hj1+3FOFbeIWUpGA3WEaND68PGvCC/e68N7ythO8uvJqRD1XOpQj4hi2+YJXSA1Ad5CP 51f2SKW0I2znCcEYCwfsYUMh6nWtgB25Mu3+i1f4703LVx52Gfu1S/dJ2+OP5TGT8TkY sgnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6BL74GG/GU7T+OZHWA4ZwCz98Vw3V+JJr/MYkeOc1pw=; b=avP8t9b+Bw5DSo7tfv/Y+XiiOsTH1fsMBHD2F4fnRkI2LhBCjg9PgV45F3NbSzMAqc Q8A1Ula8J7wUPd/Zm7BZVuhnndZ/PWHTEtG/Q97WZRLdG93odzdCRvDKuqO7R1iEm0Gw MB1nzmtOiGn/U1nG6S1VU+O88LxqWcXB4q9cWJSoxgNga23NSpJzsu/KSWw3m05wjUTA 6vSlTkdHhxD9T8TNakyhybkN/d8s0wsgX3uZ+pGBIxZ6Er0kLW49bmCMu1zvyKWUF/fA RNt6zGqUHmOWPD6+gLDMRv2Ve63j1t0I56V1LnlAA1DvReLYp82tPQJu1NBELgdrRL82 xfNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=KMYHIio0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b16si8009206edn.23.2020.10.26.15.52.56; Mon, 26 Oct 2020 15:53:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=KMYHIio0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1787381AbgJZRM3 (ORCPT + 99 others); Mon, 26 Oct 2020 13:12:29 -0400 Received: from merlin.infradead.org ([205.233.59.134]:34504 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1787215AbgJZRM3 (ORCPT ); Mon, 26 Oct 2020 13:12:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=6BL74GG/GU7T+OZHWA4ZwCz98Vw3V+JJr/MYkeOc1pw=; b=KMYHIio0bD27ubImFg/uC09LdZ ThlxstJV1PpLhIweeWjkIbu6I85HAlUOTHo0lBd8V8wR5woEWEB9hWGnGv+bnSh/UmMB23PNAQUwp PvgxPDYtlI8CU5il6r3tJrozpU5+/odZQK5/APHnUzyrxL/m9H5RRrqSsbnpfUtcvO9L040izpkT7 5XoPdYkYQ5rVmodTu2F94mjEYaJFWLmHLpTD+ZSr0tZA6nHIFNsf1MVrm+QnvRu6RlK6XA6hSi1C5 QIfWyndmIdnnS68XgLd6PvV1T6bW3hyiS5CKJD4eB/tXJetGqEadYX2o36sRVAZVtID702biRTGhR 2wTYyCDg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kX62j-0000OZ-Hs; Mon, 26 Oct 2020 17:12:25 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 39F873006D0; Mon, 26 Oct 2020 18:12:24 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 2C5E02BAA7DD6; Mon, 26 Oct 2020 18:12:24 +0100 (CET) Date: Mon, 26 Oct 2020 18:12:24 +0100 From: Peter Zijlstra To: psodagud@codeaurora.org Cc: Thomas Gleixner , Elliot Berman , "Paul E. McKenney" , Jonathan Corbet , Trilok Soni , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH] smp: Add bootcpus parameter to boot subset of CPUs Message-ID: <20201026171224.GV2611@hirez.programming.kicks-ass.net> References: <1603404243-5536-1-git-send-email-eberman@codeaurora.org> <87v9f04n8r.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 26, 2020 at 10:08:47AM -0700, psodagud@codeaurora.org wrote: > On 2020-10-23 14:59, Thomas Gleixner wrote: > > On Thu, Oct 22 2020 at 15:04, Elliot Berman wrote: > > > In a heterogeneous multiprocessor system, specifying the 'maxcpus' > > > parameter on kernel command line does not provide sufficient control > > > over which CPUs are brought online at kernel boot time, since CPUs may > > > have nonuniform performance characteristics. Thus, add bootcpus kernel > > > parameter to control which CPUs should be brought online during kernel > > > boot. When both maxcpus and bootcpus is set, the more restrictive of > > > the > > > two are booted. > > > > What for? 'maxcpus' is a debug hack at best and outright dangerous on > > certain architectures. Why do we need more of that? Just let the machine > > boot and offline the CPUs from user space. > > Hi Thomas and Peter, > > Based on my understanding with maxcpus option provides, maximum no of CPUs > are brough up during the device boot up. There is a different case, in which > we want to restrict which CPUs to be brough up. > On a system with 8 cpus, if we set maxcpus as 3, cpu0, cpu1, and cpu2 are > brough up during the bootup. For example, if we want to bring core0, core3 > and core4 current maxcpu(as 3) setting would not help us. > On some platform we want the flexibility on which CPUs to bring up during > the device bootup. bootcpus command line is helping to bring specific CPUs > and these patches are working downstream. That's a lot of words, but exactly 0 on _WHY_ you would want to do that.