From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) (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 50AD3408606; Thu, 11 Jun 2026 13:38:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.187 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781185126; cv=none; b=Jo/CuvEpp+AMuFbC3OQnnoSVzPs8pBX7OZJmyzjDcrRI7lqmcFSIoueIGW2suvLunPyWZI2xcYvX3OCvkgK5pZmhXpKKVmod4DvMf0bjeOmujjx6XhNWnDXixaJ0eBVQQENXfhM3JcABdcLFRb78eahT+3GiTgTJYz1nk9zp7A8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781185126; c=relaxed/simple; bh=Y0eYG4JjRCRyiW6drRchJ7OcmOhXIR3VQR9tnjixIXU=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=Yy9dwlYgSrCibcc4HYtbTTI1OSPxLPoO94Cv809wcw+lajReLzw7WVM8aHyEpsTzhqwwmnkkm4/m7lqMREuzQGCnxR3dJzOa7dvT9M8q8uSRNyq9u9CDtwe/BX+zKz4EJdvStQfQPx/+IJiQpBepmFcSe/3FM5UN80245waE4UE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b=Q4cb6JW+; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b=Q4cb6JW+; arc=none smtp.client-ip=45.249.212.187 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b="Q4cb6JW+"; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b="Q4cb6JW+" dkim-signature: v=1; a=rsa-sha256; d=huawei.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=L5MJGjgiyYXsGkeqYYWhkEAYdplRJ6vM+lP/xwLDgU0=; b=Q4cb6JW+tb/S8ENElUjH4KZyfImN5RGVPnZfI7NXL/rAmJKrC3Sh97W+MX4BH5/cwOIWm/4Qj Zy2AajxJdY4DEt7ohGWoNyl6COw6QY7IpcyV2LYvtH5i74eUVyi2vf7nuTL7sDs/lbY+juMBjyZ RH56YBf0rJdEHJgrb8Fchew= Received: from canpmsgout06.his.huawei.com (unknown [172.19.92.157]) by szxga01-in.huawei.com (SkyGuard) with ESMTPS id 4gbkHZ0DgSz1BFMZ; Thu, 11 Jun 2026 21:38:18 +0800 (CST) dkim-signature: v=1; a=rsa-sha256; d=huawei.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=L5MJGjgiyYXsGkeqYYWhkEAYdplRJ6vM+lP/xwLDgU0=; b=Q4cb6JW+tb/S8ENElUjH4KZyfImN5RGVPnZfI7NXL/rAmJKrC3Sh97W+MX4BH5/cwOIWm/4Qj Zy2AajxJdY4DEt7ohGWoNyl6COw6QY7IpcyV2LYvtH5i74eUVyi2vf7nuTL7sDs/lbY+juMBjyZ RH56YBf0rJdEHJgrb8Fchew= Received: from mail.maildlp.com (unknown [172.19.162.223]) by canpmsgout06.his.huawei.com (SkyGuard) with ESMTPS id 4gbk6b0dP8zRhQv; Thu, 11 Jun 2026 21:30:31 +0800 (CST) Received: from dggpemf500011.china.huawei.com (unknown [7.185.36.131]) by mail.maildlp.com (Postfix) with ESMTPS id AA07B40670; Thu, 11 Jun 2026 21:38:25 +0800 (CST) Received: from huawei.com (10.90.53.73) by dggpemf500011.china.huawei.com (7.185.36.131) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Thu, 11 Jun 2026 21:38:23 +0800 From: Jinjie Ruan To: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [PATCH RFC 0/3] arm64: Add HOTPLUG_PARALLEL support for secondary CPUs Date: Thu, 11 Jun 2026 21:38:06 +0800 Message-ID: <20260611133809.3854977-1-ruanjinjie@huawei.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: kwepems500001.china.huawei.com (7.221.188.70) To dggpemf500011.china.huawei.com (7.185.36.131) Support for parallel secondary CPU bringup is already utilized by x86, MIPS, and RISC-V. This patch brings this capability to the arm64 architecture. Introduce CONFIG_PARALLEL_SMT_PRIMARY_FIRST to avoid primary SMT threads to boot first constraint. And Add a 'cpu' parameter to update_cpu_boot_status() to allow updating the boot status at a per-CPU granularity during parallel bringup. Rework the global `secondary_data` accessed during early boot into a per-CPU array. This array maps logical CPU IDs to MPIDR_EL1 values, enabling the early boot code in head.S to resolve each secondary CPU's logical ID concurrently. Jinjie Ruan (3): cpu/hotplug: Introduce CONFIG_PARALLEL_SMT_PRIMARY_FIRST arm64: smp: Pass CPU ID to update_cpu_boot_status() arm64: Add HOTPLUG_PARALLEL support for secondary CPUs arch/Kconfig | 4 ++++ arch/arm64/Kconfig | 1 + arch/arm64/include/asm/smp.h | 14 +++++++++++--- arch/arm64/kernel/cpufeature.c | 2 +- arch/arm64/kernel/head.S | 23 ++++++++++++++++++++++ arch/arm64/kernel/smp.c | 35 ++++++++++++++++++++++++++++++---- arch/arm64/mm/context.c | 2 +- arch/mips/Kconfig | 1 + arch/riscv/Kconfig | 1 + arch/x86/Kconfig | 1 + kernel/cpu.c | 6 +++++- 11 files changed, 80 insertions(+), 10 deletions(-) -- 2.34.1