From patchwork Tue Feb 13 09:59:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Schwab X-Patchwork-Id: 200347 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp444438dyb; Tue, 13 Feb 2024 02:26:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXK81bYpXWLEE0OiFGwgQgeldkrKTq1EkSuFMYiB9s/mZz7IwsYHBcEKN+RYzmQcCz8LFKS6lAMbOURJWBS/xj5Z2HlFQ== X-Google-Smtp-Source: AGHT+IEUDsn/XxkxcWuNrIinVfcX0CmHnkbkbBM75ju3Ybem0uAOljj/Fs8/+/10/qzPqvCY0BVc X-Received: by 2002:a17:90a:3ec3:b0:297:803:924a with SMTP id k61-20020a17090a3ec300b002970803924amr6899143pjc.23.1707819982323; Tue, 13 Feb 2024 02:26:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707819982; cv=pass; d=google.com; s=arc-20160816; b=S8iUb2nv30irN5GdyyXtHERnUj3UBOCH5+sG+dk7H0qfuFOxAEMLqOTzsVaY350cup AuPFeNv0Vsb1Yhcmpoq8xokQSQnIWq1tqgctQJPd59S0npuc6UU1krb+EcgVSjOA9XFy UXzlRug6+iwywGmb82rOm0zwFULVx13MRr7ZZHusS1ADP1amYgqW92nLocCFx7ufML4k /BfJzOEkd5+sQX1hSfQwbT23NymtXZcIP78RU9gqCJvYpHyoxLO0mdR2a9Gek3wDxeeZ 3diTg/UjkjGnGCtSc/BWoPLVSb8ejHtDKlgYqZnxj7P9g6F8V5xvA7NG7c5kgSdLg3t5 dUFQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:date:cc:subject:to:from:dkim-signature :dkim-signature:dkim-signature:dkim-signature; bh=1ZWzJ3oPo3Ib0Ua7vx9StT0Wv7lYZFu4fgLyeQS1pes=; fh=s0Y+xJw9rVChBnZFnK413+ywsKC+rFJsz0RjyL/vxgQ=; b=SH/FSz91QivAA7kfDjMAGCcmjmhISDeXFL9sxRCASqpESgCi/9SPjP6qu5GavxnCXB Fdw9VvQj1UulhiMF3FhyEuoM7+AzWLefErGMF2WkeMSMm29LX81akm5SBrIYxSJw3R1c A13vdNGfR9g1sgeXwhx7XcaIy8cSdtmgcomXitOAQgMi7gurQxME+DgBvplFiCVcghrz TIb9OFE90kANLgFkt1K+Ma6tsjEFz9Al3QxiXITszMwoASfpDMpHtVF0rWS93HyrbWeC mh0qqP8oAnAFi5shrj5wmIYOxmaBaLk4jPoEBPtqG+g4J8lh9p7Bw5HoaQf4uJrX8js/ Jm8A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=aazcc5te; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=aazcc5te; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-63293-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63293-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de X-Forwarded-Encrypted: i=2; AJvYcCVWsi2mCHv9fbz1xLhCKKLn8Xoc242z0YtmY+kpSk4owZVui4hAU1yvyuHUx7EQ219gHsXGPnLM10+kYLpXNqiFlnAzKQ== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id pg17-20020a17090b1e1100b00297334e58b4si1867326pjb.59.2024.02.13.02.26.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 02:26:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63293-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=aazcc5te; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=aazcc5te; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-63293-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63293-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id B5C15B299C8 for ; Tue, 13 Feb 2024 10:02:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EFCBA23754; Tue, 13 Feb 2024 10:00:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="aazcc5te"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="15BrQU++"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="aazcc5te"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="15BrQU++" Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7A5C9225A8 for ; Tue, 13 Feb 2024 10:00:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707818402; cv=none; b=CUFu2cHOUc8tGQNFdj/uvz+KKTCI/fE6NwsTKx+n/9GXwh4cdAdQtHhE0dTK9MVx3uk7poFiKVJC6WAjWWFq1e4ngNI0SfSkCEdoPo77uOHKPGWZygOBb8gLhGZGyCoK4zxKRYi+OUQ302+3PuLawWwpoeHhB1tq4y0o1zb+1jA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707818402; c=relaxed/simple; bh=E/IbOFAywgL9hGvboiVidh21zqG92M7SuaadVUy4GJw=; h=From:To:Subject:CC:Date:Message-ID:MIME-Version:Content-Type; b=Q5ABBMvQkQ7zr2nJ4CSosiXE5Wvpvv0egs0rVktKE1TGwLTI4ad0TtED7nm9UAZGWP3MypiD87MLSyVDK5EEEwRHDE3PjU7cs2SmiKHigenZo+/SVjZXT5Lm0N5dYF8kGg00mh4VMmOKuS/Mijqno0Tt+gR31m14rtjH6t/Gews= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=aazcc5te; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=15BrQU++; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=aazcc5te; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=15BrQU++; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from hawking.nue2.suse.org (unknown [10.168.4.11]) by smtp-out1.suse.de (Postfix) with ESMTP id B674D22002; Tue, 13 Feb 2024 09:59:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1707818398; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type; bh=1ZWzJ3oPo3Ib0Ua7vx9StT0Wv7lYZFu4fgLyeQS1pes=; b=aazcc5tevLdTt0WjT8FzXkfjI+oKNQaGJ5R6n524YasDA1Q0fQAL0btyFuZCUz9PMvRpLb 1gH3VuTwB16qrJlDFyYNHn0LSdzFez9QmuCeeFPdUu+ekkA3mmwg5k6i6eZPVkKafowYh9 TgJbzB/XWnhXdbLEui9LXX1eOQLDr5c= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1707818398; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type; bh=1ZWzJ3oPo3Ib0Ua7vx9StT0Wv7lYZFu4fgLyeQS1pes=; b=15BrQU++xcqWxIGQDgUi/HLbUrr9JpnjDLv1l873/VEJjdCBaFEeRBl8WVQz9dFB5Px6p3 PNjYQj5UX82yQZCw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1707818398; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type; bh=1ZWzJ3oPo3Ib0Ua7vx9StT0Wv7lYZFu4fgLyeQS1pes=; b=aazcc5tevLdTt0WjT8FzXkfjI+oKNQaGJ5R6n524YasDA1Q0fQAL0btyFuZCUz9PMvRpLb 1gH3VuTwB16qrJlDFyYNHn0LSdzFez9QmuCeeFPdUu+ekkA3mmwg5k6i6eZPVkKafowYh9 TgJbzB/XWnhXdbLEui9LXX1eOQLDr5c= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1707818398; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type; bh=1ZWzJ3oPo3Ib0Ua7vx9StT0Wv7lYZFu4fgLyeQS1pes=; b=15BrQU++xcqWxIGQDgUi/HLbUrr9JpnjDLv1l873/VEJjdCBaFEeRBl8WVQz9dFB5Px6p3 PNjYQj5UX82yQZCw== Received: by hawking.nue2.suse.org (Postfix, from userid 17005) id A038A4A03A6; Tue, 13 Feb 2024 10:59:58 +0100 (CET) From: Andreas Schwab To: linux-riscv@lists.infradead.org Subject: [PATCH] riscv: use KERN_INFO in do_trap CC: Palmer Dabbelt , Yunhui Cui , =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= , linux-kernel@vger.kernel.org X-Yow: What GOOD is a CARDBOARD suitcase ANYWAY? Date: Tue, 13 Feb 2024 10:59:58 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Authentication-Results: smtp-out1.suse.de; none X-Spam-Level: X-Spam-Score: -1.81 X-Spamd-Result: default: False [-1.81 / 50.00]; TO_DN_SOME(0.00)[]; RCPT_COUNT_FIVE(0.00)[5]; NEURAL_HAM_SHORT(-0.17)[-0.842]; 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.54)[80.78%]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:email]; FUZZY_BLOCKED(0.00)[rspamd.com] X-Spam-Flag: NO X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790779045402436846 X-GMAIL-MSGID: 1790779045402436846 Print the instruction dump with info instead of emergency level like the rest of the output when printing the information for an unhandled signal. Fixes: b8a03a634129 ("riscv: add userland instruction dump to RISC-V splats") Signed-off-by: Andreas Schwab Reviewed-by: Conor Dooley --- 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);