Linux driver-core infrastructure
 help / color / mirror / Atom feed
From: "Danilo Krummrich" <dakr@kernel.org>
To: "Corentin Labbe" <clabbe@baylibre.com>
Cc: <gregkh@linuxfoundation.org>, <mcgrof@kernel.org>,
	<rafael@kernel.org>, <russ.weight@linux.dev>,
	<linux-kernel@vger.kernel.org>, <driver-core@lists.linux.dev>
Subject: Re: [PATCH] firmware: maintain a firmware list
Date: Wed, 15 Jul 2026 19:23:25 +0200	[thread overview]
Message-ID: <DJZBI1NIB539.2WG8TLYV4ZXDV@kernel.org> (raw)
In-Reply-To: <20260715131325.26099-1-clabbe@baylibre.com>

(Cc: driver-core; please make sure to Cc all relevant mailing lists)

On Wed Jul 15, 2026 at 3:13 PM CEST, Corentin Labbe wrote:
> From: Corentin LABBE <clabbe@baylibre.com>
>
> Checking if some firmware is missing need to check dmesg for error message,
> and on some machine this information could be lost since dmesg uses a ring buffer.
> Having the list of all firmware requests is useful in many situations,
> like selecting the minimal list when doing some buildroot config
> or reducing the size of linux-firmware on gentoo via saveconfig.

The proposed implementation aside, I don't see why this needs a new kernel
interface.

  - Why can't you use 'modinfo -F firmware' for all compiled modules?

  - Don't you have a journal persisting the dmesg logs?

  - Why can't you use kprobe_event on the kernel command line if you really need
    a runtime trace?

Untested, but something like

	kprobe_event=p:fw_req,_request_firmware,name=+0(%si):string

should work I think.

Thanks,
Danilo

       reply	other threads:[~2026-07-15 17:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20260715131325.26099-1-clabbe@baylibre.com>
2026-07-15 17:23 ` Danilo Krummrich [this message]
2026-07-16  9:29   ` [PATCH] firmware: maintain a firmware list Corentin LABBE
2026-07-16 20:12     ` Danilo Krummrich

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=DJZBI1NIB539.2WG8TLYV4ZXDV@kernel.org \
    --to=dakr@kernel.org \
    --cc=clabbe@baylibre.com \
    --cc=driver-core@lists.linux.dev \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mcgrof@kernel.org \
    --cc=rafael@kernel.org \
    --cc=russ.weight@linux.dev \
    /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