From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 22032606A335 for ; Thu, 19 Nov 2026 17:09:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=Pk//FJOn; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=WyEP66l5 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=ZZYo7BTg/OspHW2z+gQ20fY3LpZ1647QT3K57+/Cseo=; b=Pk//FJOnFAFtUF5MCibx1fIwEs mjIOdLZ6L2aOtcdOF2YC2yPogWMDmQw4wbbN7JLdn9wKxdbmSyg84xpN9xt0r3v1yL9ow9MRKVcAB YtLDwwFOaUcokhSgIci1FnBPi3JpX9ohDnvx8I0hr7x8b18EpPOUIpRJvFDYd7MfniUYafyEXlBDL LL0uT0klkL94nY8DAqQ8rPbbYu/xeB4GWe4NXmieQTQX8x1LYBXxHAF0lvq/OMhnoNP7Db+e4uwjx gxSkVW7mL9h9V/g7zzou1gm8prytPEfLeDp96oHaMz7NzWY7PEA+O7h7AMxV8VnQ8plUhpwyVbWEH R3Q7/95A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xU5dV-0000000CnBk-13O1; Thu, 19 Nov 2026 17:09:25 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xU5dS-0000000CnAC-0pz7 for linux-arm-kernel@lists.infradead.org; Thu, 19 Nov 2026 17:09:22 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id A39A840194; Thu, 19 Nov 2026 17:09:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0595E1F000C6; Thu, 19 Nov 2026 17:09:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795108161; bh=ZZYo7BTg/OspHW2z+gQ20fY3LpZ1647QT3K57+/Cseo=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=WyEP66l5JpaErMF73MU6HcqTO/M++5tngLzysUJRKl4DMcy6KKPXXT1sFCiazU+ps WDGglzAiDhECZdZv5IeCvDm/zAiuoCdCKS0PjVu5/89VVaohKevUxqwNyATRobn+Ki /rAZM6Dekh6nwdm+7q0PdPb5uscehC2F2KaxRrvloSUHgwtqxG7oF4tC5JpZRekiyT kmPDw/K8CTFEvYLJigAgXT7L4JAXbEUbEnIs5N/tqFmG3l2Xmd90LyBB8MxBC7bOqZ REMA/rOJoxKQznLUHvsduxWTuvHsSfAQEzpv/4W2l/vKYcDD9G93+FMhocs6z5Yci2 LAooyPDNmMKXQ== Received: from phl-compute-11.internal (phl-compute-11.internal [10.202.2.51]) by mailfauth.ams.internal (Postfix) with ESMTP id 927D3198003A; Thu, 19 Nov 2026 12:09:15 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-11.internal (MEProxy); Thu, 19 Nov 2026 12:09:18 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTEF3TVf5r7IbOXhtuYDc0PGVM21qzYzb8+T9W0KgkbjJ3b8gi4CUwjGWKEkHnDJui OR/IDs+HZxIewK1JeuXrcsR9e7dAC6wOXoHLV/Y54rheFmUdT+GdQf4/K73KmiOVUPU7Jb ofCwxmqEEJbKJ/2Frpwv7FS/IX/dxgP7NjDV9c6EkG6LPusKlkj4dpXwdUfm18Em+T1iWm CAnPHjGMGeOuF6ekQ+68Oz9/0kXo0d/O2QrlnXoOEuUnIRP6tU82U5mQthrfKiiUUulsg6 +j6Ze6V5gvYgODAuc3LfdKbCHPfOrOdwvBIwce+TLkvvuDZtpjnKmJ6q+3QflnW9P/47Nb s/8fRSkUoLsaPdPhOBpBzTB6Uw80s6E6SnF75MWg4cD5XB94Xd4Y+616OsLdJLmXDzY6P9 BrlGAroCYNw8Z+yyvPjmqeIMZDcl+pQ7OMzT/kkbnK5+Dcr5J0AOpoBPfrLFSnNAaLRWrW WEm6rJoGwFmBx1vBw9DzFmcu/i5l3b3aSS5ph2sdsHi+y+kojJ1sGnsdnkm15JsApHryDK CvyU5owdnbqzmwp+PWtjAjk0MRK/extFEOa9pT3tYtu32PjAhvGAkFkvpq//vAxuZ0ewse r5lWsSST02dH4yRaaBkG2VjtAzAJ8xBt197agVKAuKFO93PYQ/PiS5PaDl6g X-ME-Proxy: Feedback-ID: i10464835:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 19 Nov 2026 12:09:14 -0500 (EST) Date: Thu, 19 Nov 2026 17:09:13 +0000 From: "Kiryl Shutsemau (Meta)" To: Ada Couprie Diaz Cc: Vladimir Murzin , linux-arm-kernel@lists.infradead.org, Will Deacon , Mark Rutland , Catalin Marinas , Marc Zyngier , Breno Leitao , Jinjie Ruan , Doug Anderson , Linus Walleij , Peter Zijlstra , Thomas Huth , Dawei Li , mrigendrachaubey , kernel-team@meta.com, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH 3/3] arm64: head: set __entry_task along with task setup Message-ID: References: <20261117174814.95936-1-ada.coupriediaz@arm.com> <20261117174814.95936-4-ada.coupriediaz@arm.com> <2ce350f9-4dc4-480f-8a53-07ef9586d49b@arm.com> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2ce350f9-4dc4-480f-8a53-07ef9586d49b@arm.com> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-5.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Wed, Nov 18, 2026 at 03:30:06PM +0000, Ada Couprie Diaz wrote: > However, as far as I can tell this is not the case for secondaries : > their first task on boot is set to the idle task, which they go to > without switching until (and unless) something gets scheduled on the core. > This would be the same path taken for CPU hotplug. Secondaries brought up at boot have run their cpuhp thread before SDEI probes: smp_init() comes before the initcalls. A CPU that was online before still has its idle task in __entry_task. So only a CPU onlined for the first time after SDEI probed can see NULL there. -- Kiryl Shutsemau / Kirill A. Shutemov