From patchwork Tue Mar 19 15:40:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Schwab X-Patchwork-Id: 13596795 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2D8E6CD11C2 for ; Tue, 19 Mar 2024 15:40:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=nwmsF/1cGvfqBT2er+Ph3UPn9Bq9p0E7QrKneMmQkXI=; b=LBzQIO1Evq458x i6iIwsH7pkEl1zuaHjgA7GOUsk5GFgWIkkvPf+5txJ8wNLhRS6ZqRKvFpTmk1jGqtZeeq/4a1gE7i V49VBvOJC0iS92zByMjPc0S/QkkSZMvLo7AgumpAtRRVE1VtZ/1ITk3nnHhX6fBPp2Q3xNjX673uE 19nooxhRYZyLJgfkLMiUVCuBgjF//C1eIVHiQhzyX6MkL9JeHrsJchFa34VrRd/tlDnsXJBLYki82 FWAtmNQni9UeGVmhpPbAQ30xYgfKf1TOk75WimKRsamUqm1IrAud4bBbyso3E7HlhL5e/M+a32n4l OQ5qYEFc/6OLTomH75oA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rmbZb-0000000DBlA-0ORZ; Tue, 19 Mar 2024 15:40:19 +0000 Received: from smtp-out1.suse.de ([2a07:de40:b251:101:10:150:64:1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rmbZV-0000000DBir-1RNZ for linux-riscv@lists.infradead.org; Tue, 19 Mar 2024 15:40:16 +0000 Received: from hawking.nue2.suse.org (unknown [10.168.4.11]) by smtp-out1.suse.de (Postfix) with ESMTP id 69C7137A2C; Tue, 19 Mar 2024 15:40:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1710862805; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type; bh=TZWTavSqBaUZhtUPGIn6VRcLs9MngZ5lHHdh7u0xSfg=; b=arHKAD1FkoFGB6DuKK/caMfG/tbgO7uis+wBO1AHhMEaAbAwMnCpJYVOzzUlQuYQnw+UXv fd40OS3Al0K6+OMdWIHNIoY78nFTaTzGWDiv33nsPP/8i0xROZrUA2l74HPpoXcvwQGKf9 v3Bfos+N1AFuSLKsgplKn1wrw5xjIr4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1710862805; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type; bh=TZWTavSqBaUZhtUPGIn6VRcLs9MngZ5lHHdh7u0xSfg=; b=8GBMOv7AI2fiiopC4Bpxd2hpDZONoE47VCPtAqpU8eOsUan3108BL72gjTDkSYOddADQ6c h+hYJVqHaYR5RPDw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1710862805; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type; bh=TZWTavSqBaUZhtUPGIn6VRcLs9MngZ5lHHdh7u0xSfg=; b=arHKAD1FkoFGB6DuKK/caMfG/tbgO7uis+wBO1AHhMEaAbAwMnCpJYVOzzUlQuYQnw+UXv fd40OS3Al0K6+OMdWIHNIoY78nFTaTzGWDiv33nsPP/8i0xROZrUA2l74HPpoXcvwQGKf9 v3Bfos+N1AFuSLKsgplKn1wrw5xjIr4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1710862805; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type; bh=TZWTavSqBaUZhtUPGIn6VRcLs9MngZ5lHHdh7u0xSfg=; b=8GBMOv7AI2fiiopC4Bpxd2hpDZONoE47VCPtAqpU8eOsUan3108BL72gjTDkSYOddADQ6c h+hYJVqHaYR5RPDw== Received: by hawking.nue2.suse.org (Postfix, from userid 17005) id 59FBA4AA2BF; Tue, 19 Mar 2024 16:40:05 +0100 (CET) From: Andreas Schwab To: linux-riscv@lists.infradead.org Cc: Conor Dooley , Palmer Dabbelt , Yunhui Cui , =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= , linux-kernel@vger.kernel.org Subject: [PATCH v2] riscv: use KERN_INFO in do_trap X-Yow: Dehydrated EGGS are STREWN across ROULETTE TABLES.. Date: Tue, 19 Mar 2024 16:40:05 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 X-Spamd-Result: default: False [-1.19 / 50.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.995]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_FIVE(0.00)[6]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.06)[-0.291]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:email]; FUZZY_BLOCKED(0.00)[rspamd.com]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; BAYES_HAM(-0.03)[56.71%] Authentication-Results: smtp-out1.suse.de; none X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240319_084013_566046_011A1765 X-CRM114-Status: UNSURE ( 9.16 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Print the instruction dump with info instead of emergency level. The unhandled signal message is only for informational purpose. Fixes: b8a03a634129 ("riscv: add userland instruction dump to RISC-V splats") Signed-off-by: Andreas Schwab Reviewed-by: Conor Dooley Reviewed-by: Atish Patra Reviewed-by: Yunhui Cui --- v2: clarify commit message --- arch/riscv/kernel/traps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/kernel/traps.c b/arch/riscv/kernel/traps.c index a1b9be3c4332..142f5f5168fb 100644 --- a/arch/riscv/kernel/traps.c +++ b/arch/riscv/kernel/traps.c @@ -121,7 +121,7 @@ void do_trap(struct pt_regs *regs, int signo, int code, unsigned long addr) print_vma_addr(KERN_CONT " in ", instruction_pointer(regs)); pr_cont("\n"); __show_regs(regs); - dump_instr(KERN_EMERG, regs); + dump_instr(KERN_INFO, regs); } force_sig_fault(signo, code, (void __user *)addr);