[Bug 276451] graphics/gpu-firmware-intel-kmod: causes loading of i915kms to lock system hard

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 19 Jan 2024 07:57:49 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276451

            Bug ID: 276451
           Summary: graphics/gpu-firmware-intel-kmod: causes loading of
                    i915kms to lock system hard
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: x11@FreeBSD.org
          Reporter: portmaster@bsdforge.com
             Flags: maintainer-feedback?(x11@FreeBSD.org)
          Assignee: x11@FreeBSD.org

I recently got an Alder Lake based system, but had problems when loading
i915kms. It would lockup hard and the power button was the only way out.
I was given some support on the mailing list. But nothing worked. On a
hunch I removed gpu-firmware-intel-kmod. And i915kms loaded w/o issue.
Specifically, adlp_dmc_ver2_12.bin is the one being called.

System:
releng/14.0-n265380-f9716eee8ab4

Graphics:
vgapci0@pci0:0:2:0:     class=0x030000 rev=0x0c hdr=0x00 vendor=0x8086
device=0x46b3 subvendor=0x17aa subdevice=0x3b3a
    vendor     = 'Intel Corporation'
    device     = 'Alder Lake-UP3 GT1 [UHD Graphics]'
    class      = display
    subclass   = VGA

PORTVERSION=    20230625

The following is from the system when loading i915kms w/o
gpu-firmware-intel-kmod
(I can't get any output to logs when the system locks up):

drmn0: <drmn> on vgapci0
vgapci0: child drmn0 requested pci_enable_io
vgapci0: child drmn0 requested pci_enable_io
drmn0: [drm] Incompatible option enable_guc=-1 - undocumented flag
[drm] Unable to create a private tmpfs mount, hugepage support will be
disabled(-19).
[drm] Got stolen memory base 0x4c800000, size 0x3c00000
drmn0: could not load firmware image 'i915/adlp_dmc_ver2_12.bin'
drmn0: [drm] Failed to load DMC firmware i915/adlp_dmc_ver2_12.bin. Disabling
runtime power management.
drmn0: [drm] Run pkg install gpu-firmware-kmod to install it
drmn0: Adding i2c adapter i915 gmbus dpa
lkpi_iic0: <LinuxKPI I2C> on drmn0
drmn0: Adding i2c adapter i915 gmbus dpb
lkpi_iic1: <LinuxKPI I2C> on drmn0
drmn0: Adding i2c adapter i915 gmbus dpc
lkpi_iic2: <LinuxKPI I2C> on drmn0
drmn0: Adding i2c adapter i915 gmbus tc1
lkpi_iic3: <LinuxKPI I2C> on drmn0
drmn0: Adding i2c adapter i915 gmbus tc2
lkpi_iic4: <LinuxKPI I2C> on drmn0
drmn0: Adding i2c adapter i915 gmbus tc3
lkpi_iic5: <LinuxKPI I2C> on drmn0
drmn0: Adding i2c adapter i915 gmbus tc4
lkpi_iic6: <LinuxKPI I2C> on drmn0
drmn0: Adding i2c adapter i915 gmbus tc5
lkpi_iic7: <LinuxKPI I2C> on drmn0
drmn0: Adding i2c adapter i915 gmbus tc6
lkpi_iic8: <LinuxKPI I2C> on drmn0
[drm] Connector eDP-1: get mode from tunables:
[drm]  - kern.vt.fb.modes.eDP-1
[drm]  - kern.vt.fb.default_mode
[drm] Connector HDMI-A-1: get mode from tunables:
[drm]  - kern.vt.fb.modes.HDMI-A-1
[drm]  - kern.vt.fb.default_mode
[drm] Connector DP-1: get mode from tunables:
[drm]  - kern.vt.fb.modes.DP-1
[drm]  - kern.vt.fb.default_mode
drmn0: could not load firmware image 'i915/adlp_guc_62.0.3.bin'
drmn0: [drm] GuC firmware i915/adlp_guc_62.0.3.bin: fetch failed with error -2
drmn0: [drm] GuC firmware(s) can be downloaded from
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/i915
drmn0: 0xfffffe00c7142638Vdrmn0: Please file a bug on drm/i915; see
https://gitlab.freedesktop.org/drm/intel/-/wikis/How-to-file-i915-bugs for
details.drmn0: 0xfffffe00c7142698Vdrmn0: 0xfffffe00c71426d8Vdrmn0:
[drm:0xffffffff82c9dc00s] 0xfffffe00c7142738Vuhub0: 16 ports with 16 removable,
self powered
drm1: Adding i2c adapter AUX A/DDI A/PHY A
lkpi_iic9: <LinuxKPI I2C> on drm1
drm3: Adding i2c adapter AUX USBC1/DDI TC1/PHY TC1
lkpi_iic10: <LinuxKPI I2C> on drm3
[drm] Initialized i915 1.6.0 20201103 for drmn0 on minor 0
name=drmn0 flags=0x0 stride=6400 bpp=32

Thanks.

--Chris

-- 
You are receiving this mail because:
You are the assignee for the bug.