Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp478960pxx; Mon, 26 Oct 2020 12:57:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuaTEL+oJ4F3al+ETO3U/n6Ws7v+ZjGNkJYM6+W8SkUNvEjwIrTnh/nMUqI+azwqBD73YL X-Received: by 2002:a17:906:6409:: with SMTP id d9mr17073463ejm.344.1603742224792; Mon, 26 Oct 2020 12:57:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603742224; cv=none; d=google.com; s=arc-20160816; b=eJ1jD/gU8/nH3rjVRcIiO279VJurbnKRJbG7QuReiUo48fT2GCPWGgM/Cl+MelD+Pk cZv2s8f8DR4H5lGfTlMdGequRPnvedXfIKL68PzDZYOPCzZw18NEqRmJQGczeRCyTver g/OpZKFkNNTz15brjbXMDkHml8lJBnvOwTH4hkKcP0s1q0hYpLl+l3rFZZXqWQ28xWsZ 1sOJaB+M+T1+6nPLXfDFO3umhfkEMPxfAC/nXk8eehD6hOU4UsW+uroJP8yRD6jGPEo/ Gz5Gh48Xu2Kl8B85iK2XgzB0XaQFmMs1qQZrQeKFiXQ0Q1JohTN0f8Fq6fVaw2Mif8lT lliA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=bGAwmL6gfMcp3WiAjsNWhDoMjBOZZo4qp5DW0lOE1kQ=; b=AOBigVRQRqLnbyZeQdmv9ewfuTML0INLZLYTrrNIKLLpL/Ts9kVJHh9EGAjSNUhZvw 96fNjwoqynVcLr6HLYJXGUnlVONLXs2tWQ1csBcEnd/NA6I1vFbuyiLstM/Dj8UVRzLk fBo9q9oLkR8sanHu73tf11zcUgjbt0AhEgdg9yikQDMbb1SD9CWMFHVYm3pIrksGgPia +knYsadHKZAVUFQyyiiPjtk25ajFGk+2TM0D2ohGH/+l81C3XTnI8xtPa+AFl532V8qP CpAAxcAbK8nln7ovACfWLE11CeckwdI1hm7HOvKxd4eJups/AKcs/nygsgaTJwTMtDp9 oFWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=rHBnXExz; 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 zh8si9827670ejb.123.2020.10.26.12.56.42; Mon, 26 Oct 2020 12:57:04 -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=@mg.codeaurora.org header.s=smtp header.b=rHBnXExz; 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 S1787203AbgJZRIv (ORCPT + 99 others); Mon, 26 Oct 2020 13:08:51 -0400 Received: from z5.mailgun.us ([104.130.96.5]:17404 "EHLO z5.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404185AbgJZRIt (ORCPT ); Mon, 26 Oct 2020 13:08:49 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1603732128; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=bGAwmL6gfMcp3WiAjsNWhDoMjBOZZo4qp5DW0lOE1kQ=; b=rHBnXExzXhciO7ueJK6b8YZ81wv6sHOPWWM450c59MQB28T0+BAztX8EfsSJoOwsHjQHICWJ w1Dso/teWeY9gKc4XB9IQ+76y3OtgM/84Lgkf/fR0jdeQ02CgHV1YiZI9xjO05JoZ4dmgWnN y2UUOgs/JyssKgkk8qaWOv8zxL0= X-Mailgun-Sending-Ip: 104.130.96.5 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n03.prod.us-west-2.postgun.com with SMTP id 5f9702a05c97867ace16d6c5 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 26 Oct 2020 17:08:48 GMT Sender: psodagud=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 6F74AC43387; Mon, 26 Oct 2020 17:08:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: psodagud) by smtp.codeaurora.org (Postfix) with ESMTPSA id CDF9AC433F0; Mon, 26 Oct 2020 17:08:47 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 26 Oct 2020 10:08:47 -0700 From: psodagud@codeaurora.org To: Thomas Gleixner Cc: Elliot Berman , Peter Zijlstra , "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 In-Reply-To: <87v9f04n8r.fsf@nanos.tec.linutronix.de> References: <1603404243-5536-1-git-send-email-eberman@codeaurora.org> <87v9f04n8r.fsf@nanos.tec.linutronix.de> Message-ID: X-Sender: psodagud@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > > Thanks, > > tglx