Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1260364lqt; Tue, 19 Mar 2024 19:20:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUZxJ2OFBBuqR+VA5Y90AaFJIoqRpBKdkyrNv/aR54PdSpDyHAxcRWesl/eequlAWdLv4jZZsDMH1+V3tHM2WDaqmzPiWxCEKQESFLr3w== X-Google-Smtp-Source: AGHT+IG67pb4coA7aMjwooSkvuJlRVLh9ARSVlNDfOCKp+dujt/5NTRVVNybmG92yKWoDE0KmHhx X-Received: by 2002:a0c:d988:0:b0:691:43ce:b76f with SMTP id y8-20020a0cd988000000b0069143ceb76fmr15770176qvj.64.1710901236813; Tue, 19 Mar 2024 19:20:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710901236; cv=pass; d=google.com; s=arc-20160816; b=RLiiU1Xyh7vDnJMQIQi544JWvlz21Ju6hqu6NiCwlH3/p+Je11KcisPlDVhL1KGHRi CsAcvwTo2iG8OV4TYH+KALBUCMcHzy9gl9Y/JBzBLMbLcZ9aXL6I6RwQsUVwxEX5FnnN e3Q4+hNQQRNnKZHWXde9GbFboMllR29kGFIvmn5r3Q1DVKyKArXifZCkHzoZ4J57syDR BOcfc2H+HbE83oSW1ZME1Uum/j/yUa9Dhs1x0zkWvRYwPr4DEEkYo1GJ9fkudiUuw87R ut8RLPJBkxr0TWhe2KsqK0j+Z4/qB9ax0g4eSRa33nhjvyTGA/G7CrJPstZ6BT6Ou6j3 ZoqA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=OOyJHHqFC/8u3+w4ikgJUO8ZFv830cLwlnuWmCFNnBM=; fh=TIIjiRfw/CJ/gPNr4TqHcTzvLwLbQs45PrYsyNU+IMg=; b=PScYoC0brqd30w5mFdof5swgTjV60Zfg4P/s+LnAnfm5EEx0fKWbqw/NVLT66BSJqf 97fQ/9H+K/qB1H9bGog6QwecV2uDdZjTLJ0KezlMOYiz/CLQnSqwC73JGJpT8Cl68axj P8gYVejYyW1IohifRCvmF5B9YX3xVuqvOr8hB28WoV+TcPqHtp+KUMU9LZqOWrhZPv2Q LE+ys7kJxEgRfyWfaVWCV+lWJZwyBxwaosoGwShfi7is6ypGWQuqVHAT9HrCSFyWQIXt qm2xSCTihziH+kMDwdti/HOkVl8MfOudobCzcnUIf8qM07IRCbkMZqSNBzbP5t6/tSht J7uA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=D7FppUSG; arc=pass (i=1 spf=pass spfdomain=bytedance.com dkim=pass dkdomain=bytedance.com dmarc=pass fromdomain=bytedance.com); spf=pass (google.com: domain of linux-kernel+bounces-108354-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108354-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id gc13-20020a056214230d00b006915ae114edsi11624572qvb.337.2024.03.19.19.20.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 19:20:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-108354-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=D7FppUSG; arc=pass (i=1 spf=pass spfdomain=bytedance.com dkim=pass dkdomain=bytedance.com dmarc=pass fromdomain=bytedance.com); spf=pass (google.com: domain of linux-kernel+bounces-108354-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108354-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 88EAA1C22A96 for ; Wed, 20 Mar 2024 02:20:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4E1FF11712; Wed, 20 Mar 2024 02:20:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b="D7FppUSG" Received: from mail-oa1-f43.google.com (mail-oa1-f43.google.com [209.85.160.43]) (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 3683C11182 for ; Wed, 20 Mar 2024 02:20:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710901226; cv=none; b=f3J8QnpDYwPkRaWNWJfDEzx7icC1Gm/dpq/vxESS/ZgD+DIWUh78Osmi6t26uhYH5sgZLymx37f/AqmPMRyjhyr9ABzcijc3hYk0Fy3+bXe5Qs5+vVDA2wi9RD04NWcW9/KmQ8trv3rt4zSbOhSPL9+AhZ/dK7JL/iyGTECAMms= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710901226; c=relaxed/simple; bh=r1a2dQmso7WmPn6SVeXwodMlSbIH+idSKJIJvPtb1Es=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=ExQQKLwHNL/ZCycFrWqJB54tYcao17qzRCL2M270sTkzcKmTpATmOdbxX1uBGUTsLREogoYTEGfDsyrN01tqx+O6xzj8uyUYNzPXSPKkJPh71dJFUQfm6+HLg40kk0D5x92rEHFEqBCi02/3/uqtxdMZz3SF2+/bvLVvyJ3i5Nk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com; spf=pass smtp.mailfrom=bytedance.com; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b=D7FppUSG; arc=none smtp.client-ip=209.85.160.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bytedance.com Received: by mail-oa1-f43.google.com with SMTP id 586e51a60fabf-2218da9620cso3933777fac.3 for ; Tue, 19 Mar 2024 19:20:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1710901223; x=1711506023; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=OOyJHHqFC/8u3+w4ikgJUO8ZFv830cLwlnuWmCFNnBM=; b=D7FppUSG14qP71gSkaJoqQjKCJ6cyNY5tx8dTFRsNp3AlDgZ0eXR1oFSCGL6p59VTr KMzTdzTFNOheUTitsHl6ip7XlYK6srzhDfF2Mf6d9qaxv8QSr5gTE99KJxbtyW3hUJvq mJeweWpd2xEiYpcZxnO2qmtWCiP8OWVE8jzwwVFCrQPqpVGWOE6aVKlEcyeqQry+z0er PJBUzAmW30Pa1xhNOFJQSq5hH5fJGFz/tkUwRbcamDdZhy1sLdCEarNi9RvNUNC4FXJc f+J/Cfpb1r8wU5WaHP8KJrW3eYuHvJahbZUtm8Gkjt5gQuFwGDFI3yxtUmy77PYhW+MD ucnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710901223; x=1711506023; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OOyJHHqFC/8u3+w4ikgJUO8ZFv830cLwlnuWmCFNnBM=; b=UA7Gw3ggdZ21AyL6ZR0E7ydNIQDs4WnKBA9XEOTsdc+9bFYFEKHp7bC9tIkj05b9uB XBgcmi/RcRzDnZlRNxPY0PuZyBYhag9Gr+6tQKU0pM9IV5hbW/9IwyKXz38hMko4pDpy ergO/nqZbeYOP1MKYTW3xeqjhkwTRuCGc2bCk0tYAisgwSF/V6cOhfG49v5e6MCpuHgd +IGgSvhKcrkAptHE0H91TnYguwXacxQJZv5MDus+WtrqL9fLAP7ueJna2jX2jfj5+cCY bp9dv5saH6fh4fBB6C7Gbtife6TgzqhQHLFErJ7aIGiJs/Ovv3Gd5zQYF9PnXnC933I7 v0YQ== X-Forwarded-Encrypted: i=1; AJvYcCUAa7UtgoBzrUsYvpfzO1zJdycjfNND65ATLSb19J2R1AhbNDSKIsIz1nBkRZbzlx8axX93TJZNe/GBHM4I1vA500Jmj7d8+WdJj5dV X-Gm-Message-State: AOJu0YxXqrDbyGEOmy0OmIuvi0R+7p+rgj2hsZkNm1u4hBOkj7UsQHtj jxkVf8tpfJm7+1oR+QsrNapfWwSJRggh8WyV44w1fzDl0eYtokmWvmLxS3LDsrwKeQQDnlxwf6f vJGdLSZK5MpgmBVe7sty2oWzwC0E/GuGEyPMUyg== X-Received: by 2002:a05:6870:218a:b0:221:3ba2:fff0 with SMTP id l10-20020a056870218a00b002213ba2fff0mr18600721oae.45.1710901223344; Tue, 19 Mar 2024 19:20:23 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: In-Reply-To: From: yunhui cui Date: Wed, 20 Mar 2024 10:20:12 +0800 Message-ID: Subject: Re: [External] [PATCH v2] riscv: use KERN_INFO in do_trap To: Andreas Schwab Cc: linux-riscv@lists.infradead.org, Conor Dooley , Palmer Dabbelt , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Andreas, On Tue, Mar 19, 2024 at 11:40=E2=80=AFPM Andreas Schwab wr= ote: > > 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 spla= ts") > Signed-off-by: Andreas Schwab > Reviewed-by: Conor Dooley > --- > 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 cod= e, 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); > -- > 2.44.0 > > > -- > Andreas Schwab, SUSE Labs, schwab@suse.de > GPG Key fingerprint =3D 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D= 7 > "And now for something completely different." Reviewed-by: Yunhui Cui Thanks, Yunhui