Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp983908rdh; Fri, 27 Oct 2023 00:56:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEu/WA70GDCKojBx1V7/SINo2SupZRcXoi2u9CbfffHQdkcPmCVBX+HxkH7ib926hSa+dps X-Received: by 2002:a25:f621:0:b0:d9a:5a04:bad with SMTP id t33-20020a25f621000000b00d9a5a040badmr1600163ybd.48.1698393401725; Fri, 27 Oct 2023 00:56:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698393401; cv=none; d=google.com; s=arc-20160816; b=wsLttN7joHHWToLZyOsuhxabt5Yf8be7weLu1Z1Wf/RK3zn7YqAuacEHMx/QaCgCgM 7rV+ZzO7FZtm2OTioKNeqCOvB8RCyPozQBHyZfKAWzkH5tb+r2aPv9HwdJ+wYKLJypCX jTe8+f9XRXFz0u5tWkMPyga5aYC9nlKAAUF5Gd7Pp+nk45Xskk02QuY8AMH1hXNbW1tu ZB49gAsJySLBlFAUJ4rkGQaHWJ0zAQjDB3UNv8lNUl6EW+aYXySshi+dmN5HNwO0yDuC eHcbj6+j3sii7sIm58xWT1fkSXspR0qO3aFWi9gCcy4K0C3qmNyx9VVFcAOcrZpjChet lMQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=K9MwbxYo3Zz+s8wlirve5DUtjL3E5sUtORHfIvxUsRc=; fh=2XaummhWneqUg+SK5TtZsPTL5wNqerQiXVKKvZDAc5s=; b=crsA+d2PanKeHgiPMdsNgvkSrrgcm+xEd0AXHd5DDyOZX5yefo3s4vNSN5+M+KhRtg lNyqxBaxN/D+6v3VrvBAEN/CdO7EJ3ofI+CwMrzp5WCMip7BSg8FmSJxiS3VNjS0kKb6 4xCoF6tsJd/lQtbLqBSvquyT7xaPT1ACClecwVAKtu7g5TZ31r6M2EE0+F3kRn91pQMd eWsGk4uSqf+NTDCkX7cD3D1yiWVhTH7/WOjbx8+tWdVs+05LosiN4YFqtq8flEEcyQ+5 dCxKDrhU4SrRaSAz8zuqk2/ZgksPYdj6BO5CrMMUBbjkdhP2osCW+rfNcLuPsoBek5xz fCJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="zY4beSu/"; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id a6-20020a259386000000b00d9a4245b1besi1550695ybm.310.2023.10.27.00.56.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 00:56:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="zY4beSu/"; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id DA631807C86C; Fri, 27 Oct 2023 00:55:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231420AbjJ0HzZ (ORCPT + 99 others); Fri, 27 Oct 2023 03:55:25 -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 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 27 Oct 2023 00:55:35 -0700 (PDT) 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