intel-gpu/intel-gpu-i915-backports

Can't run without GuC if GuC has previously been enabled

Deathproof76 opened this issue · 2 comments

Hello I'm a Linuxbeginner so please do say if something should be missing,
so I was using Ubuntu 22.04 with Kernel 6.07 https://kernel.ubuntu.com/~kernel-ppa/mainline/v6.0.7/ using this tutorial https://bioslevel.com/articles/2022/intel-arc-dedicated-gpus-linux-kernel-60-and-latest-mesa-on-ubuntu-2204 trying to get my A380 running. I also enabled echo "options i915 enable_guc=2" > /etc/modprobe.d/i915.conf for low power transcoding support,
but couldn't get ffmpeg running quiet right. Because of that I followed the tutorial from https://dgpu-docs.intel.com/installation-guides/ubuntu/ubuntu-jammy-arc.html and downgraded to 5.17.0-1019-oem accordingly. Once I made sure I was using the correct Kernel and installed all dependencies I rebooted. Upon reboot the Desktop wouldn't start. Looking at dmesg this stuck out:

[ 12.223758] ---[ end trace 0000000000000000 ]---
[ 12.224976] i915 0000:03:00.0: [drm] Finished loading DMC firmware i915/dg2_dmc_ver2_07.bin (v2.7)
[ 12.238332] i915 0000:03:00.0: Direct firmware load for i915/dg2_guc_70.2.0.bin failed with error -2
[ 12.238334] i915 0000:03:00.0: [drm] GuC firmware i915/dg2_guc_70.2.0.bin: fetch failed with error -2
[ 12.238335] i915 0000:03:00.0: [drm] GuC firmware(s) can be downloaded from https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/i915
[ 12.240345] i915 0000:03:00.0: [drm] GuC firmware i915/dg2_guc_70.2.0.bin version 0.0
[ 12.240371] i915 0000:03:00.0: Can't run without GuC if GuC has previously been enabled
[ 12.240459] i915 0000:03:00.0: GuC initialization failed -2
[ 12.240460] i915 0000:03:00.0: Enabling uc failed (-5)
[ 12.240461] i915 0000:03:00.0: Failed to initialize GPU, declaring it wedged!
[ 12.241382] i915 0000:03:00.0: [drm:add_taint_for_CI [i915]] CI tainted:0x9 by intel_gt_set_wedged_on_init+0x40/0x50 [i915]
[ 12.274864] intel_rapl_common: Found RAPL domain package
[ 12.274872] intel_rapl_common: Found RAPL domain core
[ 12.274876] intel_rapl_common: Found RAPL domain uncore
[ 12.276085] mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_component_ops [i915])
[ 12.320183] Process accounting resumed

I already tried alternating between "options i915 enable_guc=2" and "options i915 enable_guc=0" but this doesn't seem to solve anything. Would be glad for some help!

edit: here is the full output for
dmesg | grep -i -e i915 -e drm -e vga
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-5.17.0-1019-oem root=UUID=d7cfbe4d-9b7f-4681-a523-be 5706fab8a9 ro quiet splash i915.force_probe=56a5 vt.handoff=7
[ 0.120515] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.17.0-1019-oem root=UUID=d7cfbe4d-9b7f-4681- a523-be5706fab8a9 ro quiet splash i915.force_probe=56a5 vt.handoff=7
[ 1.068793] pci 0000:00:02.0: vgaarb: setting as boot VGA device
[ 1.068793] pci 0000:00:02.0: vgaarb: VGA device added: decodes=io+mem,owns=io+mem,locks=none
[ 1.068793] pci 0000:03:00.0: vgaarb: VGA device added: decodes=io+mem,owns=none,locks=none
[ 1.068793] pci 0000:00:02.0: vgaarb: no bridge control possible
[ 1.068793] pci 0000:03:00.0: vgaarb: bridge control possible
[ 1.068793] pci 0000:03:00.0: vgaarb: overriding boot device
[ 1.068793] vgaarb: loaded
[ 3.520911] fb0: EFI VGA frame buffer device
[ 4.082060] ata1.00: supports DRM functions and may not be fully accessible
[ 4.085979] ata3.00: supports DRM functions and may not be fully accessible
[ 4.095765] ata1.00: supports DRM functions and may not be fully accessible
[ 4.099256] ata3.00: supports DRM functions and may not be fully accessible
[ 4.464422] ata8.00: supports DRM functions and may not be fully accessible
[ 4.482612] ata8.00: supports DRM functions and may not be fully accessible
[ 11.740634] systemd[1]: Starting Load Kernel Module drm...
[ 11.750501] ACPI: bus type drm_connector registered
[ 11.754173] systemd[1]: modprobe@drm.service: Deactivated successfully.
[ 11.754307] systemd[1]: Finished Load Kernel Module drm.
[ 12.087234] [drm] I915 BACKPORTED INIT
[ 12.088360] i915 0000:00:02.0: [drm] Bumping pre-emption timeout from 640 to 7500 on rcs'0.0 to allow s low compute pre-emption
[ 12.088517] i915 0000:00:02.0: [drm] VT-d active for gfx access
[ 12.088607] i915 0000:00:02.0: [drm] Using Transparent Hugepages
[ 12.090965] i915 0000:00:02.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=io+mem
[ 12.094802] i915 0000:00:02.0: [drm] Finished loading DMC firmware i915/rkl_dmc_ver2_03.bin (v2.3)
[ 12.097620] i915 0000:00:02.0: Direct firmware load for i915/tgl_guc_70.2.0.bin failed with error -2
[ 12.097625] i915 0000:00:02.0: [drm] GuC firmware i915/tgl_guc_70.2.0.bin: fetch failed with error -2
[ 12.097627] i915 0000:00:02.0: [drm] GuC firmware(s) can be downloaded from https://git.kernel.org/pub/ scm/linux/kernel/git/firmware/linux-firmware.git/tree/i915
[ 12.098515] i915 0000:00:02.0: [drm] GuC firmware i915/tgl_guc_70.2.0.bin version 0.0
[ 12.098585] i915 0000:00:02.0: [drm] GuC is uninitialized
[ 12.127052] [drm] Initialized i915 1.6.0 20201103 for 0000:00:02.0 on minor 0
[ 12.173273] i915 0000:00:02.0: [drm] Cannot find any crtc or sizes
[ 12.173402] i915 0000:00:02.0: [drm] Cannot find any crtc or sizes
[ 12.173411] i915 0000:03:00.0: [drm] Bumping pre-emption timeout from 640 to 7500 on rcs'0.0 to allow s low compute pre-emption
[ 12.173414] i915 0000:03:00.0: [drm] Disabling pre-emption timeout to work around forced preemption for rcs'0.0
[ 12.173445] i915 0000:03:00.0: [drm] Bumping pre-emption timeout from 640 to 7500 on ccs'1.0 to allow s low compute pre-emption
[ 12.173446] i915 0000:03:00.0: [drm] Disabling pre-emption timeout to work around forced preemption for ccs'1.0
[ 12.173832] i915 0000:03:00.0: [drm] VT-d active for gfx access
[ 12.173837] fb0: switching to i915 from EFI VGA
[ 12.174076] i915 0000:03:00.0: vgaarb: deactivate vga console
[ 12.174115] i915 0000:03:00.0: [drm] Using Transparent Hugepages
[ 12.174201] i915 0000:03:00.0: [drm] Local memory available: 0x000000017c800000
[ 12.223269] WARNING: CPU: 8 PID: 521 at /var/lib/dkms/intel-i915-dkms/0.6043.220805.0.1014/build/driver s/gpu/drm/i915/display/intel_bios.c:2547 intel_bios_init+0x1cb6/0x2ad0 [i915]
[ 12.223350] Modules linked in: chromeos_pstore(-) intel_rapl_common x86_pkg_temp_thermal intel_powercla mp kvm_intel crct10dif_pclmul ghash_clmulni_intel aesni_intel crypto_simd kvm cryptd i915(OE+) binfmt_misc nls_iso8859_1 snd_hda_intel snd_intel_dspcfg snd_intel_sdw_acpi snd_hda_codec snd_hda_core snd_hwdep snd_ pcm intel_cstate snd_seq_midi snd_seq_midi_event gigabyte_wmi snd_rawmidi intel_wmi_thunderbolt wmi_bmof c ompat(OE) snd_seq ee1004 drm_kms_helper snd_seq_device cec joydev input_leds snd_timer rc_core sch_fq_code l mei_me i2c_algo_bit snd fb_sys_fops syscopyarea mei sysfillrect soundcore sysimgblt coretemp msr mac_hid acpi_pad acpi_tad parport_pc ppdev lp drm parport ramoops pstore_blk reed_solomon pstore_zone efi_pstore ip_tables x_tables autofs4 btrfs blake2b_generic zstd_compress raid10 raid456 async_raid6_recov async_memc py async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear hid_generic usbhid hid crc32_pclmul nvme i2c_i801 r8169 i2c_smbus
[ 12.223387] RIP: 0010:intel_bios_init+0x1cb6/0x2ad0 [i915]
[ 12.223456] intel_modeset_init_noirq+0x3a/0x260 [i915]
[ 12.223517] i915_driver_probe+0xe0d/0x17c0 [i915]
[ 12.223569] i915_pci_probe+0xc5/0x410 [i915]
[ 12.223635] i915_register_pci_driver+0x23/0x30 [i915]
[ 12.223678] __init_backport+0x4c/0xfc [i915]
[ 12.224976] i915 0000:03:00.0: [drm] Finished loading DMC firmware i915/dg2_dmc_ver2_07.bin (v2.7)
[ 12.238332] i915 0000:03:00.0: Direct firmware load for i915/dg2_guc_70.2.0.bin failed with error -2
[ 12.238334] i915 0000:03:00.0: [drm] GuC firmware i915/dg2_guc_70.2.0.bin: fetch failed with error -2
[ 12.238335] i915 0000:03:00.0: [drm] GuC firmware(s) can be downloaded from https://git.kernel.org/pub/ scm/linux/kernel/git/firmware/linux-firmware.git/tree/i915
[ 12.240345] i915 0000:03:00.0: [drm] GuC firmware i915/dg2_guc_70.2.0.bin version 0.0
[ 12.240371] i915 0000:03:00.0: Can't run without GuC if GuC has previously been enabled
[ 12.240459] i915 0000:03:00.0: GuC initialization failed -2
[ 12.240460] i915 0000:03:00.0: Enabling uc failed (-5)
[ 12.240461] i915 0000:03:00.0: Failed to initialize GPU, declaring it wedged!
[ 12.241382] i915 0000:03:00.0: [drm:add_taint_for_CI [i915]] CI tainted:0x9 by intel_gt_set_wedged_on_i nit+0x40/0x50 [i915]
[ 12.276085] mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hd cp_component_ops [i915])
[ 12.423247] [drm] Initialized i915 1.6.0 20201103 for 0000:03:00.0 on minor 1
[ 12.424554] snd_hda_intel 0000:04:00.0: bound 0000:03:00.0 (ops i915_audio_component_bind_ops [i915])
[ 12.549060] ata1.00: supports DRM functions and may not be fully accessible
[ 12.562736] ata1.00: supports DRM functions and may not be fully accessible
[ 12.754536] ata3.00: supports DRM functions and may not be fully accessible
[ 12.768027] ata3.00: supports DRM functions and may not be fully accessible
[ 12.974643] ata8.00: supports DRM functions and may not be fully accessible
[ 12.992482] ata8.00: supports DRM functions and may not be fully accessible
[ 13.783111] fbcon: i915drmfb (fb0) is primary device
[ 13.808672] i915 0000:03:00.0: [drm] fb0: i915drmfb frame buffer device
[ 13.832334] [drm] I915 SPI BACKPORTED INIT
[ 13.858066] Creating 4 MTD partitions on "i915.spi.768":
[ 13.858071] 0x000000000000-0x000000001000 : "i915.spi.768.DESCRIPTOR"
[ 13.859574] 0x000000001000-0x0000005f0000 : "i915.spi.768.GSC"
[ 13.862017] 0x0000005f0000-0x0000007f0000 : "i915.spi.768.OptionROM"
[ 13.863105] 0x0000007f0000-0x000000800000 : "i915.spi.768.DAM"

edit 2: I can see that /opt/drivers-linux-firmware/i915/ is missing dg2_guc_70.2.0.bin but I don't know where to get it from.

Request you to please follow Readme doc in this repo. https://github.com/intel-gpu/intel-gpu-i915-backports

Firmware link is provided : https://github.com/intel-gpu/intel-gpu-firmware

that was it, thank you!
edit: spoke too soon, now it's the same as with #34