public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Bryan O'Donoghue <bod@kernel.org>
To: Christopher Obbard <christopher.obbard@linaro.org>
Cc: Vikash Garodia <vikash.garodia@oss.qualcomm.com>,
	Dikshita Agarwal <dikshita.agarwal@oss.qualcomm.com>,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] media: venus: declare firmware files via MODULE_FIRMWARE
Date: Tue, 21 Apr 2026 02:23:32 +0100	[thread overview]
Message-ID: <148e8b79-25d9-471b-b3ac-35f944aae927@kernel.org> (raw)
In-Reply-To: <CACr-zFBV0p_61ZA6QDLXDqtUqnqajyqHhC9H2SFJ2kSZHevwVA@mail.gmail.com>

On 20/04/2026 20:57, Christopher Obbard wrote:
> Hi Bryan,
> 
> The background for this was to ensure the firmware is available in a
> system image
> or copied into the initrd if the driver is built-in. This is done in a
> CI environment without
> access to the hardware.
> 
> Debian's initramfs-tools looks at MODULE_FIRWMARE and copies those
> files into the
> initrd if the driver is built-in. For now, a workaround for me could
> be to just manually copy
> the firmware into the initrd and drop this patch.
> 
> I didn't get to the bottom of modifying the firmware loading code to
> make the driver
> defer probe to when the rootfs was ready and instead just threw the
> firmware into
> the initrd, but that's another story.
> 
> On Mon, 20 Apr 2026 at 11:20, Bryan O'Donoghue <bod@kernel.org> wrote:
>>
>> On 19/04/2026 23:39, Christopher Obbard wrote:
>>> The driver loads firmware blobs at runtime via request_firmware()
>>> but does not currently advertise the possible filenames. Add
>>> MODULE_FIRMWARE() entries for all known firmware variants so they are
>>> visible via modinfo and can be picked up by user space tooling.
>>
>> What about the board dtsi files ?
> 
> I really am not keen on adding all of the firmware from the board dts files as
> MODULE_FIRMWARE entries into the driver, it then becomes two lists to
> maintain. What do you think?
> 
> BUT talking of two lists to maintain, I am essentially duplicating fwname in
> MODULE_FIRMWARE, so perhaps my argument is moot.
> 
> For my use-case, it may make sense to "teach" the initrd generator to look at
> the firmware-name entries from the dts files I am building for. But that is also
> not ideal.
> 
> 
> Cheers!
> 
> Chris

I think its reasonable to keep a list of firmware that is supplied in 
linux-firmware in the MODULE_FIRMWARE() list.

AFAIK paths such as "qcom/sdm845/SHIFT/axolotl/venus.mbn"; are not in 
linux-firmware so .. we shoudln't expect tooling to populate them into 
initrd.

Reviewed-by: Bryan O'Donoghue <bod@kernel.org>

---
bod

  reply	other threads:[~2026-04-21  1:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <5RSTHU5_nsLp9gy49GbhT_8mHBjtBeKDsC6F1ABHCU9ZdpW9A8692UruVYnsCexIJGWsWiW2R5WtPULge31Gyw==@protonmail.internalid>
2026-04-19 22:39 ` [PATCH] media: venus: declare firmware files via MODULE_FIRMWARE Christopher Obbard
2026-04-20 10:20   ` Bryan O'Donoghue
2026-04-20 19:57     ` Christopher Obbard
2026-04-21  1:23       ` Bryan O'Donoghue [this message]
2026-04-21 21:10         ` Christopher Obbard
2026-04-22  0:26           ` Dmitry Baryshkov

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=148e8b79-25d9-471b-b3ac-35f944aae927@kernel.org \
    --to=bod@kernel.org \
    --cc=christopher.obbard@linaro.org \
    --cc=dikshita.agarwal@oss.qualcomm.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=vikash.garodia@oss.qualcomm.com \
    /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