Comment 5 for bug 1728238

Revision history for this message
Paul Malmsten (pmalmsten) wrote : Re: update-initramfs not adding i915 GuC firmware, firmware fails to load

Also hit this issue on a Dell XPS 13 9360 (i7-8550U) running 17.10 and initramfs-tools 0.125ubuntu12. Until a fix is available, I was able to workaround the issue by adding my own initramfs-tools hook.

I created a hook script to copy the firmware:

$ cat /etc/initramfs-tools/hooks/i915_add_kbl_guc_ver9_14
#!/bin/sh

PREREQ=""
prereqs()
{
   echo "$PREREQ"
}

case $1 in
prereqs)
   prereqs
   exit 0
   ;;
esac

. /usr/share/initramfs-tools/hook-functions
# Begin real processing below this line

copy_file firmware /lib/firmware/i915/kbl_guc_ver9_14.bin /lib/firmware/i915/kbl_guc_ver9_14.bin
exit 0

Marked the script as executable, and updated all initramfs images:

$ sudo chmod u+x /etc/initramfs-tools/hooks/i915_add_kbl_guc_ver9_14
$ sudo update-initramfs -k all -u
$ sudo update-grub

After reboot, success:

$ sudo cat /sys/kernel/debug/dri/0/i915_guc_load_status
GuC firmware status:
 path: i915/kbl_guc_ver9_14.bin
 fetch: SUCCESS
 load: SUCCESS
 version wanted: 9.14
 version found: 9.14
 header: offset is 0; size = 128
 uCode: offset is 128; size = 142272
 RSA: offset is 142400; size = 256

GuC status 0x800330ed:
 Bootrom status = 0x76
 uKernel status = 0x30
 MIA Core status = 0x3

Scratch registers:
  0: 0xf0000000
  1: 0x0
  2: 0x0
  3: 0x5f5e100
  4: 0x600
  5: 0xd5fd3
  6: 0x0
  7: 0x8
  8: 0x3
  9: 0x74240
 10: 0x0
 11: 0x0
 12: 0x0
 13: 0x0
 14: 0x0
 15: 0x0