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 9D232606A322 for ; Thu, 3 Dec 2026 22:41:27 +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=ZOeZx27e; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=QyUgfBPG DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To: Content-Type:MIME-Version:References:Message-ID:Subject: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=4AKPBjZdngaqTvA4cvEPUI9YdABk24CjhexkEArBMLc=; b=ZOeZx27eA1ltVh/b2d73Xi8D7z 07/u0ZqbJgiGRlHv82Cp6tmTggUUwphV0sn3qp6T/qWgX5UsZUOONAQL0D7qgBpwRV4Xo873s4fRt aTl5kdAcNwlha1dLbVZRnK704e9rrAR0Y+rHM+RzrIR2alp2850eYkfLWdJrMc069et142ku1kVCv uQ1faqiVZvZRi3Ye8lWpvK6aTQCERNUs8isrEe8dl0xHrcx3tNogRDqTtHzdf+6LcE/YmdGwZlmss heLFlY6Y203CsxKzj2bebfEGOyFCeKgTXdr+OIRrQfCd2NwJ5RTDQgEUe5l8zx4t59c5UMa3ARdt7 oEzoWhaQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZFUO-0000000G7uZ-1E3U; Thu, 03 Dec 2026 22:41:20 +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 1xZFUN-0000000G7uE-0So7 for linux-arm-kernel@lists.infradead.org; Thu, 03 Dec 2026 22:41:19 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 8D7DA43BD2 for ; Thu, 3 Dec 2026 22:41:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C19971F0092C; Thu, 3 Dec 2026 22:41:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796337678; bh=4AKPBjZdngaqTvA4cvEPUI9YdABk24CjhexkEArBMLc=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=QyUgfBPG+PnH5GktCWOvoIyGsScgMMQKL0RtPxloh2bF4MU02/yutDsUPnQD93mJD vkvpXJd0FkndT5DIDO7wPLvuSiRC/zM40iAEOHOkP5vzoFgTwFn8+lgzM2g/2I03ce UTGUJesvnSuU/dGokCB8VbLMptJJsUh/e/08Tr/PSR3ca0MyLDPaFGRiUZ1MuwpSsl 4sIfQipmVl4UfEACtukwbZErVSkFGbRqjXlcIEkBrCMZshxolK/gdfuJ+WW9SvRpY9 qfqDp8HY/s/5Ys4p2FLOs/8eU5S7RACngzU6TEmehoOuH+Wn2TAfdw9DacgaQP6MlR zaLxJJ51PQmEA== Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfauth.ams.internal (Postfix) with ESMTP id 4C2BA198003A; Thu, 3 Dec 2026 17:41:14 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-03.internal (MEProxy); Thu, 03 Dec 2026 17:41:16 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTGsg23B0uuwr6CFzBcKyUckMMbFAlz46EEP0CYRECtqplYoYKs0extbGbGUCwf4X3 EQTthy74GAgZLMpDR8vWm/mHRTOghrv8bvQYNuR+iJcirSzeImHW2zjux6ysXqLd69Ao9F JnmBN/2gdym3IqixsVVUwHoYCRehhtkVciKwLPw+qtTmna5hx63U5YUiVZAiY6LuwzqmSZ 6Q38bbCzmnWaW8LHLcQallclsw+IQ+lB3b14kgJ8SSI4NNexw0CDMtvq+q1jurYwooVL78 czi7PXarhKsVz4FjHmVq2vhb0jO2Ka6mAfb6g3xHB+cQ8hipKVDMnbl6xU9aAqd7Hpdnck +szZYi0hLUcoLrgL/62pZHBo/jqByynbp0a7GSmcUbJ7hgD6WYwguN92HcXFcJXOgeBASq GdJEctuBuS2DPO/9hYW1qnBZwEE7WJcMyUc6Su7oTeiXeDyu5mMPFqThyfsciTW/p6KG36 ldih+ctXQoX4der0co9IBKNkX2zQ1vRrJhonItzeXu8tFSHibNIYdFc2jowiABLE+Nng/o 3ZhkrhrIDaAPoRh2gqq/10ZfG4opTskijSmmtg/+mZHKLGAGI0ecLKP1TbR6vicPW6A9gD 2xPIF0cEuwGTchEWEuohTAbvy2hTpwKJCAnDC1PVrm1+5qZXC2AlsWx9o/Tw X-ME-Proxy: Feedback-ID: i10464835:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 3 Dec 2026 17:41:12 -0500 (EST) Date: Thu, 3 Dec 2026 14:41:11 -0800 From: "Kiryl Shutsemau (Meta)" To: Vladimir Murzin Subject: Re: [PATCH v2 00/39] arm64: Add support for FEAT_NMI Message-ID: References: <20261112132042.129062-1-vladimir.murzin@arm.com> <58a4c350-539d-49ca-826f-d19563895a29@huawei.com> <17149b32-6b9c-4364-b664-5789f0633e9d@huawei.com> <57757469-2545-4fc6-a7be-ccc133555052@arm.com> <38d04e8b-2f31-4616-8a8e-2747c7ce114d@huawei.com> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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: , Cc: mark.rutland@arm.com, catalin.marinas@arm.com, Jinjie Ruan , liaochang1@huawei.com, ashok.raj@oss.qualcomm.com, maz@kernel.org, will@kernel.org, lpieralisi@kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" X-Spam-Status: No, score=-3.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 Tue, Dec 01, 2026 at 11:35:12AM +0000, Vladimir Murzin wrote: > IIUC, the fix is making its way into TF-A and is also being > considered for an LTS backport. That should make it easier for > vendors to pick it up in a firmware update. > > I'm not sure a kernel-side change is justified. We can't assume > that affected systems that miss the firmware update will get a > kernel update. For those systems, we seem to have a workaround > already: cpuidle.off=1 which we might want to document. Expecting all firmware to get fixed is way too optimistic. The missing EOI has been in TF-A since the SDEI dispatcher went in, in 2017, and is in every release. Jinjie's HIP12 firmware does not even refuse to signal a masked CPU, which TF-A has done since v2.13. The affected systems do get kernel updates. Nothing signalled event 0 before v7.3, where the SDEI NMI backtrace went in, so every system that hits this runs v7.3 or later. The fix is tagged for stable. cpuidle.off=1 gives up power-down idle on every CPU to keep a debug path from wedging the machine. And nobody learns they need it until a backtrace locks the machine up, as one sysrq-l did on Jinjie's. The kernel fix is posted: https://lore.kernel.org/r/20261124194707.1030653-1-kas@kernel.org It costs a per-CPU lock on the way into power-down idle and works with the firmware already out there. -- Kiryl Shutsemau / Kirill A. Shutemov