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 54EA3606A33B for ; Thu, 3 Dec 2026 03:19:32 +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=F8ObykBq; dkim=pass (1024-bit key, unprotected) header.d=huawei.com header.i=@huawei.com header.a=rsa-sha256 header.s=dkim header.b=CAI2a68J 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:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:CC:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=YMUK4xZ+IKmNx/3qxDcfo2LnjH8oeSbMsoFCQkEL0Rk=; b=F8ObykBqzyYJK6 3hZCWjEXp8xLvSjYiKlpOcbPu6DSqKFAVy5gfGtn2w0Ab4k3FJtQkaiJSs44GABRT41tVUqNi+1yJ y1FIzShuNR75P9FntT1CAK5MWRZWVTfzwEGVGjYwYkEXeZq3FgPNtxHqxxtGW5L81/X3pR7gSIpEB RXE0ZrBfNa5I/Qpt6qsnzb06vYF5FrIMqiIPETifWypR1uQFc0Phe6vB+Rb1MxLOBkGxFr4WfTzV4 LydTKl6JZt9CsDVQpGmGJNscxD5XQFV8jT82VKtieTvW50Z2TQpHu7Eet6FlgUm/1sKTgK2PQnBjM H6Q6R5x0mhqy0MynGrIw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYxLv-0000000DLp6-2RHo; Thu, 03 Dec 2026 03:19:23 +0000 Received: from [113.46.200.218] (helo=canpmsgout03.his.huawei.com) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYxLp-0000000DLnb-2Rgu for linux-arm-kernel@lists.infradead.org; Thu, 03 Dec 2026 03:19:20 +0000 dkim-signature: v=1; a=rsa-sha256; d=huawei.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=YMUK4xZ+IKmNx/3qxDcfo2LnjH8oeSbMsoFCQkEL0Rk=; b=CAI2a68Jg5meIjUM9Ypwnl9RYfWEK7FkCJv8rK/48Yjhql0+ro/QcQR9/IYtEWPa4d8t1gzYb WpAbOO3h92whiUbZApof76e8ngBN6Eg8GSiJgqeT0NBBuo9tLrdUjt1LUM6ZaDS5aBWpLYZbpia WoxuLxL+ZwMfodYy/9IS1D0= Received: from mail.maildlp.com (unknown [172.19.163.0]) by canpmsgout03.his.huawei.com (SkyGuard) with ESMTPS id 4jg0Dh32FKzpSvd; Thu, 3 Dec 2026 11:17:40 +0800 (CST) Received: from kwepemk200008.china.huawei.com (unknown [7.202.194.74]) by mail.maildlp.com (Postfix) with ESMTPS id 8D9B540537; Thu, 3 Dec 2026 11:18:56 +0800 (CST) Received: from [10.67.110.68] (10.67.110.68) by kwepemk200008.china.huawei.com (7.202.194.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.45; Thu, 3 Dec 2026 11:18:55 +0800 Message-ID: Date: Thu, 3 Dec 2026 11:18:55 +0800 X-Archived-By: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 00/44] arm64: Add support for FEAT_NMI To: Ping Li , CC: Vladimir Murzin , Alexandru Elisei , Kiryl Shutsemau , Will Deacon , Catalin Marinas , Mark Rutland References: <20261130155506.118408-1-vladimir.murzin@arm.com> <20261202030705.702947-1-leeonion.muyu@gmail.com> From: Jinjie Ruan In-Reply-To: <20261202030705.702947-1-leeonion.muyu@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ClientProxiedBy: kwepems500001.china.huawei.com (7.221.188.70) To kwepemk200008.china.huawei.com (7.202.194.74) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261202_191918_228097_4ECA1D5E X-CRM114-Status: GOOD ( 10.49 ) X-Spam-Score: -2.0 (--) 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=-7.4 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,USER_AGENT_SANE_1 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 在 2026/12/2 11:07, Ping Li 写道: > Hi all, > > Before FEAT_NMI arrives, dropping pseudo-NMI in favour of SDEI-NMI > looks like a pure win: the PMR tax on every irq disable/enable goes > away, and backtrace/stop still reach IRQ-masked CPUs. > > But it silently loses one thing: with pseudo-NMI gone, the PMU > interrupt falls back from NMI to a plain IRQ, so perf's old sampling > inaccuracy comes back -- samples miss every IRQ-off critical section > and pile up on the spin_unlock_irq* boundaries instead [1]. Hi Ping, Enable SDEI does not drop pseudo-NMI, and perf keeps its NMI. The only place SDEI now takes over is arch_trigger_cpumask_backtrace() ( IPI as NMI, and the last rung of smp_send_stop()); arm_pmu_request_irq() is untouched and still calls request_nmi() for the PMU interrupt Best regards, Jinjie > > How is the perf use case expected to be handled during this > transition? Is SPE the expected answer? > > Would appreciate your thoughts. > > [1] https://lore.kernel.org/all/20200924110706.254996-1-alexandru.elisei@arm.com/