** Description changed:

+ SRU Justification
+ 
+ [Impact]
+ 
+ Intel IPU drivers request firmwares but did not declare them with 
MODULE_FIRMWARE:
+ ```
+ $ modinfo intel-ipu6 -k 7.0.0-29-generic | grep ^firmware
+ (empty output)
+ $ modinfo intel-ipu7 -k 7.0.0-29-generic | grep ^firmware
+ (empty output)
+ ```
+ 
+ And when intel-ipu6/intel-ipu7 were loaded in early boot stage:
+ ```
+ intel-ipu7 0000:00:05.0: firmware cpd file: intel/ipu/ipu7ptl_fw.bin
+ intel-ipu7 0000:00:05.0: Direct firmware load for intel/ipu/ipu7ptl_fw.bin 
failed with error -2
+ intel-ipu7 0000:00:05.0: error -ENOENT: Requesting signed firmware 
intel/ipu/ipu7ptl_fw.bin failed
+ intel-ipu7 0000:00:05.0: probe with driver intel-ipu7 failed with error -2
+ ```
+ 
+ [Fix]
+ 
+ No public fix yet. Add MODULE_FIRMWARE to ipu6/ipu6 module drivers. No
+ firmware requested for usbio/cvs so no fix for them.
+ 
+ [Test Plan]
+ 
+ 1. explicitly add intel-ipu6 and intel-ipu7 to initramfs creating tools 
configs
+    - for initramfs-tools, add intel-ipu6-isys and intel-ipu7-isys to 
/etc/initramfs-tools/modules or /etc/initramfs-tools/conf.d/ipu.conf
+    - for dracut, add `add_drivers+="intel-ipu6-isys intel-ipu7-isys"` to 
/etc/dracut.conf or /etc/dracut.conf.d/ipu.conf
+ 2. sudo update-initramfs -u [-k <installed-kernel-version>]
+ 3. mkdir initrd && unmkinitramfs /boot/initrd.img-<installed-kernel-version> 
initrd
+ 4. ls -al initrd/early3/usr/lib/firmware/intel/ipu/
+ 
+ [Where problems could occur]
+ 
+ Intel IPU drivers should usually be loaded after change root to the disk
+ with all the firmware blobs by default. Adding MODULE_FIRMWARE doesn't
+ change runtime functions.
+ 
+ [Other Info]
+ 
+ ipu6-drivers is available since Ubuntu Lunar, and ipu7-drivers since
+ Questing. Nominate J/N/R/S for ipu6-drivers and R/S for ipu7-drivers.
+ 
+ ========== original bug report ==========
+ 
  Intel IPU7 ISYS drivers landed drivers/staging in v6.17-rc1 commit
  b7fe4c0019b12 ("media: staging/ipu7: add Intel IPU7 PCI device driver"),
  and IPU6 ISYS in v6.10-rc1 commit 25fedc021985a ("media: intel/ipu6: add
  Intel IPU6 PCI device driver"). Neither has any MODULE_FIRMWARE
  declarations.
  
  intel-ipu7 0000:00:05.0: firmware cpd file: intel/ipu/ipu7ptl_fw.bin
  intel-ipu7 0000:00:05.0: Direct firmware load for intel/ipu/ipu7ptl_fw.bin 
failed with error -2
  intel-ipu7 0000:00:05.0: error -ENOENT: Requesting signed firmware 
intel/ipu/ipu7ptl_fw.bin failed
  intel-ipu7 0000:00:05.0: probe with driver intel-ipu7 failed with error -2

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2164611

Title:
  ipu firmware not packed into initramfs automatically

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ipu6-drivers/+bug/2164611/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to