From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795108161; b=E3sIUzmyaL58+ZA4RzmkLXdB1gs1puNp810/vmaWYcwl48YwqG4E8heW3pznzsFFTlFn sRfQzOld8t5qDdv5BXWx9SIIy1c8VSjscRY6BIskEyub8W5kEfinmlEZnfINjEQoM7Rzv DmuNKHWRqfHOREz7Au2C/1JWvsVTwBrycSu4glTPEmoTPJn8lBHUQ27MooiClU6sQQIQm Oshm6UFBt0BdNUqoPFOzyABvvAyGS1Tf7jXDiM9U1Fa8hYdOtJkdJNlaebwHUQXLBDDxA Ndqgl4oIzbvbLn8lukb6UWhgdRNuWus+f2S6oeqi3BeiOFmKeuf3w8kvZRMEJl0Z6fw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795108161; h=Received:DKIM-Signature:Received:Received:X-ME-Sender:X-ME-Received: X-ME-Proxy-Cause:X-ME-Proxy:Feedback-ID:Received:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=ZZYo7BTg/OspHW2z+gQ20fY3LpZ1647QT3K57+/Cseo=; b=25nVldLzTjhrmnAIdtwR1HuJM9DjNtRHz6lq6G+bbCQaMR5xpPugVnOKVKh/LqPO6MK0 88HpZyI5sqR4YaYtp++EjCNdosdIXQQYGvfoFivdosTRHSXG46u8QIaJc5QnMvCPSClJ1 FBlDkNFer7mpr/F5PruXrwa0C/B/XSryz86HkJDNqF5dW9WruLNVDVGKqjsSQ2+s15nKQ eajOkP2v4OeMayWbw9zFy9OYu6p549lMEianVe69eZp2wI9j8uByDim5HwS66CbRNgnDg cUh+nqP4AUhLEb8Xd3dNrbI4YI9o2ZYCFJs4XdKNcud+NfTHngHx3ToNKpE7XZ3Q6WQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=WyEP66l5; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A9327606A609 for ; Thu, 19 Nov 2026 17:09:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=WyEP66l5 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-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2ce350f9-4dc4-480f-8a53-07ef9586d49b@arm.com> 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