From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4C981C25B47 for ; Fri, 27 Oct 2023 07:55:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345374AbjJ0Hz0 (ORCPT ); Fri, 27 Oct 2023 03:55:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231233AbjJ0HzX (ORCPT ); Fri, 27 Oct 2023 03:55:23 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B00C10A for ; Fri, 27 Oct 2023 00:55:21 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1698393320; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=K9MwbxYo3Zz+s8wlirve5DUtjL3E5sUtORHfIvxUsRc=; b=zY4beSu/dNr7NSzuAbiWXWwCRmzGSK8niU5q5UR/0g8S9qhdBxuJyuH1QleEkLkPii7RX8 ZaQA/FbxAD7rHKfdqfs6VjMiAKZ6Vb+6tGAxWnr3H7T3msT7UsA9ti+wxoOnEKZY7JNB0B KUDHObh+oRFHpkWfN7hJg/hs5drG8HezUaAMhV6yPcXZfehpNoByScCxZf2SoTM4gNSAg9 lFb/zT9P0YtWMGwJuAIZ1TtCrtp+hqQ58K7j+mRlzPQgZ8WL0ElGisdCAzRz2GTbtz8cWb Ymqyb2HkdJN4AmIrcUJxS1diVFgvVT2gqae/T4ego5l7trEC1TlC3Uke8QkiWA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1698393320; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=K9MwbxYo3Zz+s8wlirve5DUtjL3E5sUtORHfIvxUsRc=; b=lP8/WtOtKOMDyrsK6buyb7JVHrWWMzUf/RiJr1PjEWwjhrVbk4cxhJpDcWOQamu+VfrIRj JzACS02tOWD7cKBw== To: Xu Lu , Atish Patra Cc: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, maz@kernel.org, anup@brainfault.org, dengliang.1214@bytedance.com, liyu.yukiteru@bytedance.com, sunjiadong.lff@bytedance.com, xieyongji@bytedance.com, lihangjing@bytedance.com, chaiwen.cc@bytedance.com, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, =?utf-8?Q?Cl=C3=A9ment_L=C3=A9ger?= Subject: Re: [External] Re: [RFC 00/12] riscv: Introduce Pseudo NMI In-Reply-To: References: <20231023082911.23242-1-luxu.kernel@bytedance.com> Date: Fri, 27 Oct 2023 09:55:19 +0200 Message-ID: <874jic4hzs.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 26 2023 at 21:56, Xu Lu wrote: > On Thu, Oct 26, 2023 at 7:02=E2=80=AFAM Atish Patra wrote: > First, please allow me to explain that CSR_IE Pseudo NMI actually can sup= port > more than PMU profiling. For example, if we choose to make external major > interrupt as NMI and use ithreshold or eithreshold in AIA to control whic= h minor > external interrupts can be sent to CPU, then we actually can support mult= iple > minor interrupts as NMI while keeping the other minor interrupts still > normal irqs. What is the use case for these NMIs? Anything else than profiling is not really possible in NMI context at all. Thanks, tglx