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 88759606A322 for ; Thu, 3 Dec 2026 15:09:19 +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=RSpofdgr; dkim=pass (1024-bit key, unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=YTPNFnnX 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=L5n5Jwbo7m/9cgtxTt5grtuxL+Yrj0JLBlmT1BTgt8Y=; b=RSpofdgr3X0e05 aYvTCw4bIgX94Fy9QHl9/oinZxELu99s93yaEKTMwCHtaMvLXWeG+kkytdeueRwAzWuoLrLjHqpc9 HU5XF5nBVBZtQWVcRd/vC5BdLzliQojdwd0NXJsjKWBfwwXs4CKkfQnf4rpK2MiR9rDP/RjsQFULx G/Z13eiIpGOxObP4p1fq3WTYbAldswuDn0BCLJ3e2UpEw4xt0sia8cyamy5jmLqgrvyE2yXBuzgEt 45L2sFvrWUgHxh6R39Q8VkYFiKHeIt76eAGB5K0g35nVo+uPj8xk1NpxaMEkWs9945ESvFFzxlfyZ 0tz84Y3WX0x2j8Kw8g7Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZ8Qr-0000000F4X2-0E43; Thu, 03 Dec 2026 15:09:13 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZ8Qo-0000000F4WM-2hEi for linux-arm-kernel@lists.infradead.org; Thu, 03 Dec 2026 15:09:11 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3B7D9497; Thu, 3 Dec 2026 07:09:06 -0800 (PST) Received: from [10.0.154.42] (e121487-lin.cambridge.arm.com [10.0.154.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BB74E3F7D8; Thu, 3 Dec 2026 07:09:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796310549; bh=8ZyM2p86dIcmlLq5+E+FMg2vRO9ydUrZWXfSwfPizJ0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=YTPNFnnXHyrcq+uPrZKJpFs3TAS7AljSHZ/K4OHx/lJ8SZbKkzG6piPIkmXhmR8Kr Gq1t7sSP5VYe9VQnSzvJAWZndvuWqzJU3YowDSJO/mflRO+Vx09vgZiFC1RS+RPDqL 1cdg/7iVj9H6millfjgbQDyEzbsYpdnYvPU9XXro= Message-ID: Date: Thu, 3 Dec 2026 15:09:05 +0000 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 , linux-arm-kernel@lists.infradead.org Cc: 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> Content-Language: en-GB From: Vladimir Murzin In-Reply-To: <20261202030705.702947-1-leeonion.muyu@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261203_070910_724078_12284690 X-CRM114-Status: GOOD ( 11.81 ) X-Spam-Score: -4.4 (----) 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 Hi, On 12/2/26 03:07, Ping Li wrote: > 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]. > > 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/ > IMO, we have to live with all three for the forseeable future, so users can do migration over to FEAT_NMI. Cheers Vladimir