Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp476009rdh; Wed, 14 Feb 2024 02:35:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXNaI2Cs6CHWG0RWssn/nkqOZFBf8m8ILhHzqlTXOkg6LCSxPm5K/6tYMFqwji1JOSrLZeobshs8+GIbZxXIRqu9TLp22pIsu5gpYFnYQ== X-Google-Smtp-Source: AGHT+IFvKAEHUXHCA17u4Jso/OR9oNLK7jEKalWhUj9gcXEGB4oA8wsKJzf2Hy/x2vdFa/1s+yhh X-Received: by 2002:a05:6512:234f:b0:511:a90b:5334 with SMTP id p15-20020a056512234f00b00511a90b5334mr1038086lfu.20.1707906906336; Wed, 14 Feb 2024 02:35:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707906906; cv=pass; d=google.com; s=arc-20160816; b=xooW294GVAWsmiHj/B1smmcS6Yy2y6oKaaeFm8dVYTHkVd/uPQn++StNrbUhz2+wIK 9SzMDcq9eTSU9RVdb0PIj9Qb8S4CnCeDzWd9q9LaKgRtOAnY/+AYH5D55h/uMuPvPkmT Q4RyZYbuFR++TggToTj5H7EMhyDUcNqGVnR/dbToD6Sl6M9CoM+6zju1iWy/UW6zx0L7 xeAGXqzJWqjFe3PVdY4VbdJKmd2H0FykCq5m9JN2Kc/f5giwNiJ7aVU7A5EqMmJqvqQv xkiNokobv775YoMYE/3/RPDAvZXwnmmNM2aOIrD8wgJgFEjD64J3ujOAbHzaLFpv7JCZ uRhQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=oXOXdlKbQ7b8gP1IjielEHY25ZzqNlF3NYnAzC4w8e0=; fh=SjGGUxrhSUXWVJ4k6GUERcdXRfvC2PfbSa0pl0U58Wk=; b=xDglPAfrdJCzJrHJNQ6gTb7mU5FIC3ut8go8BHCryZyfcCkdNK8Wd1mzHllaNVOgme NEvEVLjUJK3tO1kCxUMDATEdteqCDknBQlbtJ/n4M34wGLr0jAmq75Z6WOBFn9hVK/NT hjNarU938CIr8owrKMQRYW9cZvwW69tw+r9+0Yf2qJn7f+MfUiKgAIzKI3i6zfSAq7pW JbpE29EvMQLuOx1+7aqjCGeV+3G3DYzwoCa1N/fAyebCel7/8m7nQAuQfmbnAIbDd07I maK+sp6vMC1H9vTEPOX8VqfLXPQJDABSffFtGmSqGqY/5+oqMIVJNHBOJ6TjxK3WWpWD 1VbA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@conchuod.ie header.s=google header.b=P7uy1aO3; arc=pass (i=1 spf=pass spfdomain=conchuod.ie dkim=pass dkdomain=conchuod.ie dmarc=pass fromdomain=conchuod.ie); spf=pass (google.com: domain of linux-kernel+bounces-65055-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65055-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=conchuod.ie X-Forwarded-Encrypted: i=2; AJvYcCVa8teEXpnC8bOnIp/tRXeAKknUP9CrghmRMxWg+m6ucZx7sKMy78fY7YDlpqJReLGmHeQlRtabRse+NBEjDWOini2mteMYzFotFUzYUw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id e2-20020a50d4c2000000b005617d522454si4073760edj.80.2024.02.14.02.35.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 02:35:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65055-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=@conchuod.ie header.s=google header.b=P7uy1aO3; arc=pass (i=1 spf=pass spfdomain=conchuod.ie dkim=pass dkdomain=conchuod.ie dmarc=pass fromdomain=conchuod.ie); spf=pass (google.com: domain of linux-kernel+bounces-65055-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65055-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=conchuod.ie 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 146841F299AF for ; Wed, 14 Feb 2024 10:35:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 16A2A17541; Wed, 14 Feb 2024 10:34:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=conchuod.ie header.i=@conchuod.ie header.b="P7uy1aO3" Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (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 100A810A3C for ; Wed, 14 Feb 2024 10:34:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707906898; cv=none; b=lzrWbfQ9VDbTqQvZ6Fc5Liu6QjVFwur/SAuCB/0yp2z1HAYeOWTmWGZg8S8u7lTxF579Hjjt7BNLY8hDE+S7YapGAAUJ+CCIDKg1EY3zvTHi+11mCb1oovv28caotMLZZ/ZkQPRlY4f/1ZEqWPZO71MF8Lyr2KBdHARUmPmtp/8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707906898; c=relaxed/simple; bh=wbjPOlP8cdqurBcP+Z0XkFrHb9mtDoRebK8Q/r9vXPQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=g5yek6BjQjuzGMuAV3Ga9d8WeroN4uJM2AALkuyvg+mv7JXH3T4zPNA4Max2p8b45EEaplZ7z+CRJ5KsyU4cQ8zJN4dQW5tkdexZe9xkHKG15w/eb3IeyVLVCVab6qfswPA7hLYSRDSRLJrT/z7+hMYsMUDft3TcUu7ENKGZOgg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=conchuod.ie; spf=pass smtp.mailfrom=conchuod.ie; dkim=pass (2048-bit key) header.d=conchuod.ie header.i=@conchuod.ie header.b=P7uy1aO3; arc=none smtp.client-ip=209.85.221.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=conchuod.ie Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=conchuod.ie Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-33ce55ab993so439669f8f.1 for ; Wed, 14 Feb 2024 02:34:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conchuod.ie; s=google; t=1707906894; x=1708511694; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=oXOXdlKbQ7b8gP1IjielEHY25ZzqNlF3NYnAzC4w8e0=; b=P7uy1aO30lT++dDhT9U4L55OYAIlB9jV8ym0OfgLDDqE5E0fNTv70hT+lxfKxxJ3P1 Os+r0qtPLJt1pFXZSlTW+/pIfc+TO/GQeMxybprhZFkZ5eWiOwEFuBfUJssexRfUwIcs kaFAcdEPsztNquhZ9L7gwLIhfAROZmMyQsl6bCGe1CPcP8YaWnvSTdPfHar28Bzuwn7M B8M3gRVNefQT6NbO0lk9K4zQORJ6/uRJxjrx9TUg71qDiMEZyjkFbFkm++y0ZOGIhVd6 gr1StJMytzDGItyqAGpWF2AhcWEtt31vp3k7UZuVXCwnBCdiFfOYUpGBNBP07Fk6SEZ/ goyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707906894; x=1708511694; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=oXOXdlKbQ7b8gP1IjielEHY25ZzqNlF3NYnAzC4w8e0=; b=uIWKw9stSTDNGy4Mij6+TjYlo08jxP/gNB5b+nl1fMWzxJY5obIj7aaqXWLedq8FMs AKD6KThfjFf2VSncZri+JsFOpLr8aUwTlUIz0qANFIorHYkzSvgEFOT5ySwdrMSdVFQ0 wO82/ELogdXNvY/j5g1QiEemiXcvs4BCsqif3/0yaMuOq6I3oemBKs3yp/tv75vhSUeS tKUP42mgzlVBDA47kfyLhTFB1g0PHquQDaHL1s7rDrF3WNFaHvYLY8mcs7txCzNPzGv5 u+bDwwuYcccoFqEGpNDn4DGJ5i6g0B9E1mxz1Kaqq9slups6K/MJ4HRN2UMp2LwZC+zJ n5Rw== X-Forwarded-Encrypted: i=1; AJvYcCWnADqGdk9oHATSvnQyD1AciMNDgQiySznHEgmMZ3fmgnErxgY97D2xaTctVf5GojGuHTNQyQCKF0TFSMs7B8R6pMv6XEvE6E0+49oZ X-Gm-Message-State: AOJu0YxRjWMxVYp5UIc68HrLKldVH73/VlpHtIPEh8+TJvOfdwTviL+/ +qIK0uZhuXu6ZS2jfaIKnhQyyFkURy+EJoquTVxG6qi48D2ZH5blB9VY0caO3lSgrKEiQe4Cbia P X-Received: by 2002:a5d:50d1:0:b0:33b:433d:e1d7 with SMTP id f17-20020a5d50d1000000b0033b433de1d7mr1515184wrt.1.1707906894167; Wed, 14 Feb 2024 02:34:54 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCV74FnXZgGq7FLgYrggZY2ycn0bi0uPib5wlWD/R5foh16pmW1mMSUZ8MKgolPvYKxbwkB5Tb2ORQTJzTyV6tnIc7dMp8C5IgUco11J/NRLki8V5qTDkoQzUYbjkZ1A8XE/NDvqGTXJn1Gmb+9TCsy6xwZsfB6E+eOZaCgLf4p92JA+RaN6XglKaS7iO/FjueR2FKEQMp+V+FUUO/dThdc= Received: from [192.168.2.9] ([109.77.20.129]) by smtp.gmail.com with ESMTPSA id bt9-20020a056000080900b0033b75d0993esm10923171wrb.74.2024.02.14.02.34.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 14 Feb 2024 02:34:53 -0800 (PST) Message-ID: <4cd7cee5-7943-42eb-bd26-c0e782f29a48@conchuod.ie> Date: Wed, 14 Feb 2024 10:34:51 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] riscv: use KERN_INFO in do_trap Content-Language: en-US To: Andreas Schwab , Conor Dooley Cc: linux-riscv@lists.infradead.org, Palmer Dabbelt , Yunhui Cui , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , linux-kernel@vger.kernel.org References: <20240214-exclusion-pluck-fcb6352a8393@spud> From: Conor Dooley In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 14/02/2024 10:10, Andreas Schwab wrote: > On Feb 14 2024, Conor Dooley wrote: > >> 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. > > The first line is printed with pr_info. Yah, that's what I meant with "more consistent" :) > Perhaps __show_regs should gain > a level argument. I wouldn't be averse. There's 3 users, of which one is show_regs(). I think we could easily add an argument that sets the printk level to match the other outputs from the non show_regs() callers. I suppose show_regs() could retain the KERN_DEFAULT behaviour unless you've got a better idea.