Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp447667rdh; Wed, 14 Feb 2024 01:26:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX3yVGoJ0As3MuzNgk2VaCapJERugc67DoJtqPYNHxewrt71/ACCCoGVq8b31H3BF4eSpJFn6cY7CZHCCGWzuxrzEdvEJafA4BTsmh9Iw== X-Google-Smtp-Source: AGHT+IFlmcAjPR96Da+ut9LkK1NqXyvzRrqVlWxtJ2Qv8S+MajExI64D+4pX10+/LTBXaQ4eiXfX X-Received: by 2002:a17:906:4c57:b0:a3d:60da:19ce with SMTP id d23-20020a1709064c5700b00a3d60da19cemr203963ejw.75.1707902792954; Wed, 14 Feb 2024 01:26:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707902792; cv=pass; d=google.com; s=arc-20160816; b=x95FkZwquSCXvofSGiuRuNKBxSpJHFBeoZBe0Mw96h5YdIEiBb8qILGya2/EVfbkFn Dlsl4FBxWql5RbdezgauUwO+cvBNk3iTbvafDEjEjLlccFbaExhYsgOUw3ZLqxx/RC9/ wMUjgZHqoXrPZAyMc/3SKgPdq3c0SxOYCyq/9S508+AuOLYkKfjFbo7D1G8lYFp+A+cI ZRP19Aqmle7t3IcMDA/M56Yb9CalTx9D0Lx7fqe6+bR1aVFTStyRvF25oswXisOy3V3d jkcFwkDcUH6jb9yv20cep5aWdh1862aLxazRn3aGkbV4p2MBkaAu6msNko6QIFFYh5jj Vzkw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=AvyNvhwOkZXaTVNxgVkMhMnsEjQNLlULU81SslEtofA=; fh=q3lNihkvHcP50W6Ug0x9m9taRjkEoAnc3njpQdKBRSc=; b=TKxTk3qUHLW6ue5MSwWilMVLTfEFL3aeghhdXfj74nZL/KvMYjnJzKDcNA6tgscAru CVeUSEbngAYnENufQMdOiWpUHsNsY5226L6MDKNcxcIOZCjHj2X5RIW/ExQQ/RY19kYx q7HS6S/04WBsDLWg35C8z7JQ3c27u6ww/7lhnkrhPvSgaWQJBADmKOxbxZelThiFoWMt c41/5ME/3BdzmhfDBhvQ8AovHGa1QAdABIRfUk9i1mNdw+xWVwE36SmFrgVI0HIdnqqp d+TngYGwN6XsH1A3q85TkbEiMc2La9RTf49UVcYRpUWbLjtKhU4iIJLMwAjRR9z5wMD+ R0vw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OGX+vX+j; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-64939-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64939-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCWp3JToNJUfU3PrTw2IRD23uW7MdmHiJGsgxAw+rXkfk0j83r146oZi21hdkGQ7fH5y3xkLdSC8Likl7PLF/lFXqFFPmuNI/8rBPtuozQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id i15-20020a1709061ccf00b00a3cf224c06fsi1708847ejh.284.2024.02.14.01.26.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 01:26:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64939-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OGX+vX+j; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-64939-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64939-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 859DA1F2AC73 for ; Wed, 14 Feb 2024 09:19:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B408E12B8F; Wed, 14 Feb 2024 09:19:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OGX+vX+j" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DF98112B6F for ; Wed, 14 Feb 2024 09:19:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707902354; cv=none; b=l9yEHIHhyL4ouVxB4HUnIeA4nejR6axAZZbPukQ0JKecIdVUjWGT8N2sZhbAykHPMm6kXAK8ye5dL81HrhiCYl4VIY2ip4Dyh8nl1S2AZct8e8PzDhDUWBG/AtK3ZT6qOszSNvyBbWQeDZaAjloyWm4gRcux5IwZqSRo34uyTjw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707902354; c=relaxed/simple; bh=YCSAwDQum/HxDd2CoT/zfQABImWt9YwxCQNEzNNOs6o=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GTJUqJTnXwB94vcb8KU7OeMT4P+y4BYOKzz2eSJYyU+ov5Dii2PsS9N7JcUQBmwnVu7FBzSiDxm5GoCflfdrNl6o2ViZjIybsudV6rPjJqrh2RR06QlzAd5UrFbnVtHQkBfsse+hiJZ6qC4v3eByA+kImi2torjtin4MeouPB88= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OGX+vX+j; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E8D38C433C7; Wed, 14 Feb 2024 09:19:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707902353; bh=YCSAwDQum/HxDd2CoT/zfQABImWt9YwxCQNEzNNOs6o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OGX+vX+jqWd4FMHHYyQs7KvfeIWQXq1ET9WH4GMh4nM/EhaJ/n2zF99u0VXsLZgrj 3T16McQ+pNGc7vqJFEp2tPHoMRjrzaKwHisxxuPoZ5k2lFmj+W3A9ldEh7OXjlSdBS N6f41/3AKiOQdCkLbbpUb+8oVxFYRI0G+KxGSnIkwPWFSAEuj7B24mL2r7plqCs4Od z9ofPvVPtrQA/S4DWaWAfADk6auEhY2MHTXLNf72xShUkWCBBwmRsT5/rAKQkxVuGk o64HlApoifdeC5kjuP/ahD/6L/E2o19Fq8owNeYIFs7d4svhK5Esdl64v0nsk04Qdl na15RMV3D7Q9A== Date: Wed, 14 Feb 2024 09:19:09 +0000 From: Conor Dooley To: Andreas Schwab Cc: linux-riscv@lists.infradead.org, Palmer Dabbelt , Yunhui Cui , =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= , linux-kernel@vger.kernel.org Subject: Re: [PATCH] riscv: use KERN_INFO in do_trap Message-ID: <20240214-exclusion-pluck-fcb6352a8393@spud> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="7nijc44WcYvCtDli" Content-Disposition: inline In-Reply-To: --7nijc44WcYvCtDli Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 13, 2024 at 10:59:58AM +0100, Andreas Schwab wrote: > Print the instruction dump with info instead of emergency level like the > rest of the output when printing the information for an unhandled signal. I'm not entirely sure that this is true, __show_regs() prints with KERN_DEFAULT, but this certainly is more consistent than it was before. Dumping at EMERG doesn't make sense to me though, so Reviewed-by: Conor Dooley Cheers, Conor. > --- > arch/riscv/kernel/traps.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > 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); > } > =20 > force_sig_fault(signo, code, (void __user *)addr); --7nijc44WcYvCtDli Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZcyFjQAKCRB4tDGHoIJi 0ocxAQDIDrzXGnsjXbqIAyAI1TJRyReiKYUuA7v74VxwywCPJgD8DRsTyGfmrBJF zc+tsX0xyLCpEcYQjJd9jXUpZ91/xgc= =uk/t -----END PGP SIGNATURE----- --7nijc44WcYvCtDli--