Received: by 10.213.65.68 with SMTP id h4csp980539imn; Tue, 20 Mar 2018 22:36:05 -0700 (PDT) X-Google-Smtp-Source: AG47ELuWDBThj2tvJiZWIxa6FLiEtRFf2bJF4Bd+CsfjNjePxvymwHvzs+vWSvChS23iOdd7IT3r X-Received: by 2002:a17:902:f64:: with SMTP id 91-v6mr19333658ply.232.1521610565173; Tue, 20 Mar 2018 22:36:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521610565; cv=none; d=google.com; s=arc-20160816; b=ufqUpjVhPB+mLADMLj16qEKY9BqAh8FibhLNTFR7YPkeP+W27sfiUPGu+DtXW/WL6s Rdtky+FzszD5DWmi+iRx0kh2NgniKowoYINBE1ODJWTyRYqmzDtMJA2DD5b7HLRnx7dU iVQx4xXL9dg8aUTo3M18T5ZuTFe9gVodwy8WnvLAE8BH6oX4fJkpCzNVChny6fNY8uTi r3mi8HGTK0h2t1pubyioc6AET9MbMGkWgVVtb0559UnfvWl6HhNElhkiobs1isxWo98b 6xzYBNIkDOFSgtwT21RcXavWq2gldkSuk15/VK1QuZWHYOHegDog/A4sb8NEI6dkZGcc 6MgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=QsO7U7Q/GQ1L14mf4Lw3rVW2RbqKtbaIL780UgGYe+Y=; b=fxvzk3q74wSuHp+KQh7lm5RDVtkKozDCoK9L8/PB6blY3ioCyd63xVweGPKiA1Qq5e kvkEioH0H0KF2lSLl+o9qIcOYnMsJWLE32sQHe6LoLbAy0BzTeWDO7JPAjA+uANTfo/+ rs4f+cZByyqjWdYHZrtAdxrN6QkcAivky1laJHJtbVNbFueHo7Jjf64w8DgqWg38tnmC hyHCh5xy8hNqLtFSYsqBEgJZcYv34pGmRNBJvC227Oqb0PViMEKrKuoH8gcTxpTTe3zR DKC+hsDjEg81DHPC4siZiO2wE4s31wFTVtKYqVO5kwOc+Wwjoc4Ju06yO+qQTkyq81FQ x/pQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y15si2306366pgs.71.2018.03.20.22.35.50; Tue, 20 Mar 2018 22:36:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751546AbeCUFdd (ORCPT + 99 others); Wed, 21 Mar 2018 01:33:33 -0400 Received: from mail.cn.fujitsu.com ([183.91.158.132]:39022 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751382AbeCUFd2 (ORCPT ); Wed, 21 Mar 2018 01:33:28 -0400 X-IronPort-AV: E=Sophos;i="5.43,368,1503331200"; d="scan'208";a="38028661" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 21 Mar 2018 13:33:26 +0800 Received: from G08CNEXCHPEKD02.g08.fujitsu.local (unknown [10.167.33.83]) by cn.fujitsu.com (Postfix) with ESMTP id 2B3454D0EFC9; Wed, 21 Mar 2018 13:33:27 +0800 (CST) Received: from localhost.localdomain (10.167.226.106) by G08CNEXCHPEKD02.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.361.1; Wed, 21 Mar 2018 13:33:26 +0800 Subject: Re: [PATCH 1/5] x86/smpboot: Add the missing description of possible_cpus To: Peter Zijlstra CC: , , , , , , , , , References: <20180320110432.28127-1-douly.fnst@cn.fujitsu.com> <20180320110432.28127-2-douly.fnst@cn.fujitsu.com> <20180320123712.GR4043@hirez.programming.kicks-ass.net> From: Dou Liyang Message-ID: Date: Wed, 21 Mar 2018 13:33:24 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180320123712.GR4043@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.167.226.106] X-yoursite-MailScanner-ID: 2B3454D0EFC9.AA8F3 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: douly.fnst@cn.fujitsu.com X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Peter, At 03/20/2018 08:37 PM, Peter Zijlstra wrote: > On Tue, Mar 20, 2018 at 07:04:28PM +0800, Dou Liyang wrote: > >> + possible_cpus= [s390,x86_64] Use this to set hotpluggable cpus. >> + This option sets possible_cpus bits in cpu_possible_map. >> + Thus keeping the numbers of bits set constant even if >> + the machine gets rebooted. > > That description, esp. the last sentence, doesn't make any kind of sense > to me. What? > Ah, sure enough, I can't be lazy. :-) I stole that from the commit   3b11ce7f542e ("x86: use possible_cpus=NUM to extend the possible cpus allowed") How about: possible_cpus= [s390,x86_64] Set the number of possible CPUs which are determined by the ACPI tables MADT or mptables by default. possible_cpus=n : n >= 1 enforces the possible number to be 'n'. While nr_cpus is also be set: nr_cpus=m, choice the minimum one for the number of possible CPUs. Thank, dou