Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp258840rdh; Mon, 18 Dec 2023 19:34:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IGu/TjmcRvPw8AJ9LzJKzWvpZIYuTB1ZxyWQFRNPs9toCPMubN3WKJwo+8HhxfyL1VeLqCB X-Received: by 2002:a05:620a:1994:b0:77f:69ed:7f5a with SMTP id bm20-20020a05620a199400b0077f69ed7f5amr965115qkb.65.1702956877209; Mon, 18 Dec 2023 19:34:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702956877; cv=none; d=google.com; s=arc-20160816; b=sBZGTZYMWvZO6JtP+irMks8p8a8GhJNU7nPAXF3Nb+u6U+CzxdrBolppBSUFzB7n5F LjHwZEKQ+GrW9qIRYRgQ0iCAHwQxe/Xd7lSwVYGVatfcBXTcosyVtQHeHs3bVbtVWJtc gVn+I90zVriGv7Ty+9RL96czLoAfE2vkvBTxmKokGxJ1fJ1Sh1ZjcwX4RIVrXgtW61mM fwFJ4bvITwVTJ2ltDItnIoa/bHsPqYDRqKHPeKPHlpr8W9AS8Es9udMtqAsqO8SGf79n r9skigjSAv4551rIk0ScfwR2RNKgfpDNNr3N2B7xdRW0R6HESKoHYU6E/ajNYO9PDZsF wpMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=qXAfZ6ZgBN+I/yXCLoc6fRRopft2A9go/Xq+9NoHMNs=; fh=1FLeZ+LVmVldX5IHI+1Z18FNE7vM9uA//8ku/bUTayg=; b=szyEkDjFGENFaXufl89W7mYc8uCxjq37qxp1rhS27NzGr09YQmvpuM/hZeKCUdRvV8 Mq4QBPLEnpWjLe04rAqvvB0XKF0TedDmw3ddowuQY2ifpCCgtVIQH3YfX4kB87HIrGCg NoCOl7+TRUBgFgv3jt88k4aBpGPLi6H4TWVQAe7rZleSjW1x0eRbMnnEmYAUa0er7fsd 00xdaCwDcw3YHxlSlSrOO5U0Gp0qGC4Hk6tpPH7FIgUHSClG5YjOBFrdJLlE0FEsLeqz sSaG4rvGbJU7a2tTsa3ZnXdVa8nNthFyhrshZTpBCqnwTd5ab2QlIrh/3NOfVPNZBCVw 7aXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YM1dNkFb; spf=pass (google.com: domain of linux-kernel+bounces-4646-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4646-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id w7-20020a05620a444700b0077efd5c2af0si1108296qkp.170.2023.12.18.19.34.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 19:34:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4646-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YM1dNkFb; spf=pass (google.com: domain of linux-kernel+bounces-4646-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4646-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id EDA911C22D37 for ; Tue, 19 Dec 2023 03:34:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4FAD45380; Tue, 19 Dec 2023 03:34:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="YM1dNkFb" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (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 CC989522B for ; Tue, 19 Dec 2023 03:34:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702956870; x=1734492870; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=jqer3xFMkpeqKTm36ptRc9Jv5vHMsw9msSMXd9F6Hh4=; b=YM1dNkFbmnyDtd0ZS113OVOW1oPzY9suUSELN1mfpC0r+OVEwsT7MxTk H51WctT92is4uwedEG6VOhFn/QX3jy3Qbbb2ygtspgHdYrqwBM9iTtvyn VeHqq0TD6a84o9PP9MQCo4XIlAPXgJoVq7hsSZzhUqM8pgEwooMr7tUCL Pc+wRr1hm12rgICkJccGlpZQkux3hcFVtVu7rmzTXwS7aNFL2jER4bMDa nOqvsowF+weOWQ0V0az0K3EyJIHdASYNabSPuC+SNo0DxyxXsx7mcvfCu yzOPjeEymZF436c51foSjVe3A6XS5HDA6JUetGMQJxJqbR2yEan5L6Eox w==; X-IronPort-AV: E=McAfee;i="6600,9927,10928"; a="2694481" X-IronPort-AV: E=Sophos;i="6.04,287,1695711600"; d="scan'208";a="2694481" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Dec 2023 19:34:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,287,1695711600"; d="scan'208";a="24028278" Received: from tgl-lenovo-03.sh.intel.com ([10.239.87.93]) by orviesa001.jf.intel.com with ESMTP; 18 Dec 2023 19:34:28 -0800 From: wangxiaoming321 To: tglx@linutronix.de, peterz@infradead.org, linux-kernel@vger.kernel.org Cc: wangxiaoming321 Subject: [PATCH] cpu/hotplug: Increase the number of dynamic states Date: Tue, 19 Dec 2023 11:34:11 +0800 Message-Id: <20231219033411.816100-1-xiaoming.wang@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231212025235.775986-1-xiaoming.wang@intel.com> References: <20231212025235.775986-1-xiaoming.wang@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The dynamically allocatable hotplug state space can be exhausted by the existing drivers and infrastructure which install CPU hotplug states dynamically. That prevents new drivers and infrastructure from installing dynamically allocated states. Increase the size of the CPUHP_AP_ONLINE_DYN state by 10 to make room. Signed-off-by: wangxiaoming321 --- include/linux/cpuhotplug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/cpuhotplug.h b/include/linux/cpuhotplug.h index efc0c0b07efb..c88a58c363f1 100644 --- a/include/linux/cpuhotplug.h +++ b/include/linux/cpuhotplug.h @@ -251,7 +251,7 @@ enum cpuhp_state { CPUHP_AP_RCUTREE_ONLINE, CPUHP_AP_BASE_CACHEINFO_ONLINE, CPUHP_AP_ONLINE_DYN, - CPUHP_AP_ONLINE_DYN_END = CPUHP_AP_ONLINE_DYN + 30, + CPUHP_AP_ONLINE_DYN_END = CPUHP_AP_ONLINE_DYN + 40, /* Must be after CPUHP_AP_ONLINE_DYN for node_states[N_CPU] update */ CPUHP_AP_MM_DEMOTION_ONLINE, CPUHP_AP_X86_HPET_ONLINE, -- 2.25.1