From patchwork Mon Oct 23 08:29:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Lu X-Patchwork-Id: 156739 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp1151250vqx; Mon, 23 Oct 2023 01:31:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFKIEVKoRMzWr3Q8SzRYbRlwQSolIQOe5KDe3HuegCtzf6kP6/ANL420UHHnqEHfIP3DbKy X-Received: by 2002:a17:902:7c95:b0:1c3:3c91:61cc with SMTP id y21-20020a1709027c9500b001c33c9161ccmr5645737pll.13.1698049894622; Mon, 23 Oct 2023 01:31:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698049894; cv=none; d=google.com; s=arc-20160816; b=RS/4ksIBzeU4/P5sHaIan7luJCIanGmj0YVx2qt3Z6d/uWQmypboBu/xQaRu5FWxW0 12r5Ie2YM/iiS56ncqw7clak290Dk4Og+UuIg9IbX1NfoeorEwP3Ppxsf7Ao63CnFChn mo/zK8qWNvbkzWvu6gp/rTZB9iHXawwvWfC618GysVKi+tKHnggol7e/Zj3s54Ut/R9e y828DFZ4ft93eU0obf78SIA16eKyUAqtUHBQsBaTZD6JxnSVD/+gHp8SsKIjUSMzRq4G XvoObFadFasHyD32ZvVJW+kmORctGUF7+NJs3uln8YK+YcQvRu3izDMRFySz4TSqUGD5 ZBug== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qwqRYcNnh3bL2bnUHbsBXwm7mmQqzZo0pVLQzAgbeF0=; fh=O4eOVhHjKTyaSORSQqoF+Vv6GYDagG+8LotEUwhRqvg=; b=DPX13H+N2ysmcTMvMPuxuV8xkAbuVPM7BEx+vYL2Jd/xKTshtjroyTDPuwQEa7nhak 9GnfD/osxNhZ8vETkHYMolssAc+qKGui+9uioyENPOVFZBRkuKf+5al38YsvD0RSZtLS QL+oOHgw4D1KqbJsXeQWnE8NasLaEqZnlhE3NOFg6HAX1cIS4jdx65VT/M/iMDTZrzzA NaHPNGB2bpziQX916Dewom5n38fxZihOhcmLE2LukkiB2LeMVeZAtJlikm8dgB8eUiTP 0xkJyut5HaqY+87faVQHqb2A1ziuaKrX0aCpY8brnVa2HPSQKe1VH/gDCO1MDU2YBUVo wq6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=ZIJ3GaaK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id k2-20020a170902c40200b001b674055d72si6173533plk.621.2023.10.23.01.31.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 01:31:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=ZIJ3GaaK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id D8D028096FE8; Mon, 23 Oct 2023 01:31:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233068AbjJWIbW (ORCPT + 26 others); Mon, 23 Oct 2023 04:31:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233303AbjJWIa5 (ORCPT ); Mon, 23 Oct 2023 04:30:57 -0400 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAA36D7F for ; Mon, 23 Oct 2023 01:30:30 -0700 (PDT) Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-6bd0e1b1890so2155755b3a.3 for ; Mon, 23 Oct 2023 01:30:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1698049829; x=1698654629; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=qwqRYcNnh3bL2bnUHbsBXwm7mmQqzZo0pVLQzAgbeF0=; b=ZIJ3GaaKbcga50C/dczsvfOIZV8U+JvyFtPaKRxNMgLu+KiqGYMhAuw9avgnk2yeLy QbP+xyj7FkSP5VtNlHnJU3B3WNh+9ZN8GudRSuoeLVkfdEpCj4VI1t0eedIL2S9HKTAQ JwI1VKPPYAMvmo42+zqvG2EiubACFBU25T1aTw6UNruI+zHShNBsD9+pcH399WQ8y2kT utVRjCq4num5qoPFTx70Wu8FPRJcTvvn8KKygVbqPFyQF7/U49hwMwZaqFpOYGxNs3Hd LfUB0+Li3YduCbfadzRq8Gv1ymQPz+gW+jhWZnXHiG/ur5TyQRk+4neH/SbnuV5WmXq/ /tYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698049829; x=1698654629; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qwqRYcNnh3bL2bnUHbsBXwm7mmQqzZo0pVLQzAgbeF0=; b=ihWK3M5ys8WzQSut+0G6tssraBCjuIy/uNGHd0NdAydjX3fnV+9IspqKaXyNpwhmaD GilFsKf8aYI5Hi0Y2H8yC2/RpuTf9OSHbYwZain/wMiCr2C9tECG3ylZ6yH4cemWkMNs WYRAlKhtnQtZ68K3VZU5mFQd5Y5jM+/PbSLNR4EMuPKujOBhnIpNiPsav+IfFAzLfCcH ldmJC0BBpvxhHWfgYFBRAkn8siaE626uCll4oKViDakWziEEk7tcymf3jo66oQnx8Las lExMAiqHceegs+kVBQwb4UFWtgZvF6+Bu2hCVIrqgiuGTGsIi2vXq4HChdBIpcw2FMuW rCiw== X-Gm-Message-State: AOJu0YxzMkFwo/TGjdCOkpvdBcGtDkP6iPmawvQU8Wg5E/dbYqBXIjCu P6TwgyA/eE2mJ3Q9Z1OrDZztXw== X-Received: by 2002:a05:6a21:498b:b0:17b:d39c:1d6 with SMTP id ax11-20020a056a21498b00b0017bd39c01d6mr5328684pzc.30.1698049829431; Mon, 23 Oct 2023 01:30:29 -0700 (PDT) Received: from J9GPGXL7NT.bytedance.net ([203.208.167.147]) by smtp.gmail.com with ESMTPSA id d15-20020a170903230f00b001b8b07bc600sm5415805plh.186.2023.10.23.01.30.23 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 23 Oct 2023 01:30:28 -0700 (PDT) From: Xu Lu To: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, tglx@linutronix.de, maz@kernel.org, anup@brainfault.org, atishp@atishpatra.org Cc: 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, Xu Lu Subject: [RFC 12/12] riscv: Enable CONFIG_RISCV_PSEUDO_NMI in default Date: Mon, 23 Oct 2023 16:29:11 +0800 Message-Id: <20231023082911.23242-13-luxu.kernel@bytedance.com> X-Mailer: git-send-email 2.39.3 (Apple Git-145) In-Reply-To: <20231023082911.23242-1-luxu.kernel@bytedance.com> References: <20231023082911.23242-1-luxu.kernel@bytedance.com> MIME-Version: 1.0 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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Mon, 23 Oct 2023 01:31:32 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780534366362345067 X-GMAIL-MSGID: 1780534366362345067 This commit enables CONFIG_RISCV_PSEUDO_NMI in default. Now pseudo NMI feature is defaultly enabled on RISC-V. Signed-off-by: Xu Lu --- arch/riscv/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 487e4293f31e..ecccdc91563f 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -672,7 +672,7 @@ config RISCV_BOOT_SPINWAIT config RISCV_PSEUDO_NMI bool "Support for NMI-like interrupts" depends on !RISCV_M_MODE - default n + default y help Adds support for mimicking Non-Maskable Interrupts through the use of CSR_IE register.