From: Greg KH <gregkh@linuxfoundation.org>
To: "Robin H. Johnson" <robbat2@gentoo.org>
Cc: mcgrof@kernel.org, linux-kernel@vger.kernel.org, sir@cmpwn.com,
~sircmpwn/public-inbox@lists.sr.ht, rafael@kernel.org
Subject: Re: [PATCH v3] firmware: log name & outcome of loaded firmware
Date: Mon, 18 Nov 2019 18:53:12 +0100 [thread overview]
Message-ID: <20191118175312.GA602012@kroah.com> (raw)
In-Reply-To: <20191117234734.27101-1-robbat2@gentoo.org>
On Sun, Nov 17, 2019 at 03:47:34PM -0800, Robin H. Johnson wrote:
> It's non-trivial to figure out names of firmware that was actually
> loaded, add a debug statement at the end of _request_firmware that logs
> the name & result of each firmware.
>
> This is esp. valuable early in boot, before logging of UEVENT is
> available.
>
> v3:
> - Log at dev_dbg level per maintainer.
> - HOWTO: Enable at boot via kernel boot param
> dyndbg="func _request_firmware +p"
> - Credit to Drew DeVault for parallel creation and help promoting the
> idea.
These "v3.." lines need to go below the --- line.
>
> Alternate-Creation: Drew DeVault <sir@cmpwn.com>
Is that a valid tag? You can have co-developed-by (or something like
that, read the documentation for the real name), but I have never seen
this one before.
> Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
> ---
> drivers/base/firmware_loader/main.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/drivers/base/firmware_loader/main.c b/drivers/base/firmware_loader/main.c
> index bf44c79beae9..84a879608ca4 100644
> --- a/drivers/base/firmware_loader/main.c
> +++ b/drivers/base/firmware_loader/main.c
> @@ -791,6 +791,13 @@ _request_firmware(const struct firmware **firmware_p, const char *name,
> fw = NULL;
> }
>
> + /* Provide a consistent way to capture the result of trying to load any
> + * firmware. As a potential future improvement, this might include
> + * persistent state that firmware is loaded (or failed to load for some
> + * reason). See Message-ID: <20191113205010.GY11244@42.do-not-panic.com>
Just provide a lore link with the message id if you really want this.
But really, this type of thing belongs in the changelog text, not in a
comment, right?
> + * for background */
> + dev_dbg(device, "%s %s ret=%d\n", __func__, name, ret);
That does not provide any real information as to what is going on, why
doesn't ftrace suffice for this?
thanks,
greg k-h
prev parent reply other threads:[~2019-11-18 17:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-03 18:06 [PATCH v2] firmware loader: log path to loaded firmwares Drew DeVault
2019-11-13 0:56 ` Luis Chamberlain
2019-11-13 14:05 ` Drew DeVault
2019-11-13 20:19 ` Robin H. Johnson
2019-11-13 20:50 ` Luis Chamberlain
2019-11-17 18:46 ` Drew DeVault
2019-11-17 23:47 ` [PATCH v3] firmware: log name & outcome of loaded firmware Robin H. Johnson
2019-11-18 17:53 ` Greg KH [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191118175312.GA602012@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mcgrof@kernel.org \
--cc=rafael@kernel.org \
--cc=robbat2@gentoo.org \
--cc=sir@cmpwn.com \
--cc=~sircmpwn/public-inbox@lists.sr.ht \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox