All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Danilo Krummrich" <dakr@kernel.org>
To: "Javier Martinez Canillas" <javierm@redhat.com>
Cc: <linux-kernel@vger.kernel.org>,
	"Maxime Ripard" <mripard@kernel.org>,
	"Dave Airlie" <airlied@redhat.com>,
	"Peter Robinson" <pbrobinson@gmail.com>,
	"Hans de Goede" <johannes.goede@oss.qualcomm.com>,
	"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	"Luis Chamberlain" <mcgrof@kernel.org>,
	"Rafael J. Wysocki" <rafael@kernel.org>,
	"Russ Weight" <russ.weight@linux.dev>,
	<driver-core@lists.linux.dev>, <clabbe@baylibre.com>
Subject: Re: [PATCH] firmware_loader: Expose requested firmware names as sysfs entries
Date: Sun, 01 Nov 2026 22:56:18 +0100	[thread overview]
Message-ID: <DMK7KD9A3LR1.25UWRP5SLKQDD@kernel.org> (raw)
In-Reply-To: <20261017142826.2668881-1-javierm@redhat.com>

(Cc: Corentin)

On Sat Oct 17, 2026 at 4:27 PM CEST, Javier Martinez Canillas wrote:
> Most initramfs image creation tools (e.g., dracut or initramfs-tools) have
> options to create initramfs images that are either generic or tailored to
> a running system. For example, dracut has the --host-only option for this.
>
> That option allows to have a smaller initramfs image which only contains a
> sub-set of the kernel modules, libraries, binaries and configuration data.
>
> One thing that can't be queried in a running system is the set of firmware
> names that were requested by the kernel to support the different devices.
>
> Let's expose this information as sysfs entries to allow initramfs creation
> tools to determine the set of firmware names that are needed by a system.
>
> On an AM625 BeaglePlay board, the following will be exposed through sysfs:
>
>   $ grep -H . /sys/class/firmware/requested*
>   /sys/class/firmware/requested0:powervr/rogue_33.15.11.3_v1.fw
>   /sys/class/firmware/requested1:ath3k-1.fw
>   /sys/class/firmware/requested2:regulatory.db
>   /sys/class/firmware/requested3:regulatory.db.p7s
>   /sys/class/firmware/requested4:ti-connectivity/wl1271-nvs.bin
>   /sys/class/firmware/requested5:ti-connectivity/wl18xx-conf.bin
>   /sys/class/firmware/requested6:ti-connectivity/wl18xx-fw-4.bin
>
> Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>

This was discussed before in [1]. I rejected it back then because userspace can
already collect this information through existing interfaces.

However, I can see how having a queryable history could simplify automated
tooling like dracut. Has this been discussed with the dracut maintainers, and is
there a concrete plan to use this interface?

[1] https://lore.kernel.org/all/20260715131325.26099-1-clabbe@baylibre.com/

  reply	other threads:[~2026-11-01 21:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-17 14:27 [PATCH] firmware_loader: Expose requested firmware names as sysfs entries Javier Martinez Canillas
2026-11-01 21:56 ` Danilo Krummrich [this message]
2026-11-02 11:18   ` Javier Martinez Canillas

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=DMK7KD9A3LR1.25UWRP5SLKQDD@kernel.org \
    --to=dakr@kernel.org \
    --cc=airlied@redhat.com \
    --cc=clabbe@baylibre.com \
    --cc=driver-core@lists.linux.dev \
    --cc=gregkh@linuxfoundation.org \
    --cc=javierm@redhat.com \
    --cc=johannes.goede@oss.qualcomm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mcgrof@kernel.org \
    --cc=mripard@kernel.org \
    --cc=pbrobinson@gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.