Linux Media Controller development
 help / color / mirror / Atom feed
* [PATCH] media: staging: ipu7: declare firmware files with MODULE_FIRMWARE
@ 2026-09-03  8:40 German
  2026-09-04  8:31 ` Sakari Ailus
  0 siblings, 1 reply; 2+ messages in thread
From: German @ 2026-09-03  8:40 UTC (permalink / raw)
  To: linux-media
  Cc: German, Bingbu Cao, Tianshu Qiu, Sakari Ailus,
	Mauro Carvalho Chehab

drivers/staging/media/ipu7/ipu7.h already defines the three firmware
blob names the driver can request at runtime depending on the SoC
generation:

    IPU7_FIRMWARE_NAME    "intel/ipu/ipu7_fw.bin"
    IPU7P5_FIRMWARE_NAME  "intel/ipu/ipu7ptl_fw.bin"
    IPU8_FIRMWARE_NAME    "intel/ipu/ipu8_fw.bin"

but ipu7.c never declares them via MODULE_FIRMWARE(), so tools that
rely on modinfo to discover firmware dependencies (most initramfs/
initrd generators, e.g. mkinitcpio, dracut) can't automatically
include the right blob for this driver.

  $ modinfo -k $(uname -r) intel_ipu7 | grep -iE "firmware|filename"
  filename:       /lib/modules/7.2.2-arch1-1/kernel/drivers/staging/media/ipu7/intel-ipu7.ko.zst

No "firmware:" line is printed at all, even though the driver does
load one of the three blobs above at probe time (confirmed separately
via dmesg on real Lunar Lake/IPU7 hardware - "firmware cpd file:
intel/ipu/ipu7_fw.bin" - so the dependency is real, just not declared
to modinfo).

This is low priority/cosmetic on distros that ship the full
linux-firmware package unconditionally (as Arch does), but matters
for anyone building a minimal initramfs, or packaging this driver
for a distro that only pulls in firmware modinfo declares.

Signed-off-by: German <germanpapulindez@gmail.com>
---
 drivers/staging/media/ipu7/ipu7.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/staging/media/ipu7/ipu7.c b/drivers/staging/media/ipu7/ipu7.c
index ee6b63717ed3..77c474f8a5c0 100644
--- a/drivers/staging/media/ipu7/ipu7.c
+++ b/drivers/staging/media/ipu7/ipu7.c
@@ -2774,3 +2774,7 @@ MODULE_AUTHOR("Qingwu Zhang <qingwu.zhang@intel.com>");
 MODULE_AUTHOR("Intel");
 MODULE_LICENSE("GPL");
 MODULE_DESCRIPTION("Intel ipu7 pci driver");
+
+MODULE_FIRMWARE(IPU7_FIRMWARE_NAME);
+MODULE_FIRMWARE(IPU7P5_FIRMWARE_NAME);
+MODULE_FIRMWARE(IPU8_FIRMWARE_NAME);
-- 
2.51.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-09-04  8:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-03  8:40 [PATCH] media: staging: ipu7: declare firmware files with MODULE_FIRMWARE German
2026-09-04  8:31 ` Sakari Ailus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox