Bug 276451 - graphics/gpu-firmware-intel-kmod: causes loading of i915kms to lock system hard
Summary: graphics/gpu-firmware-intel-kmod: causes loading of i915kms to lock system hard
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-x11 (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-19 07:57 UTC by Chris Hutchinson
Modified: 2024-02-14 01:42 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (x11)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Hutchinson 2024-01-19 07:57:49 UTC
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 rx4c800000, 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
Comment 1 Emmanuel Vadot freebsd_committer freebsd_triage 2024-01-19 08:37:43 UTC
Alderlake isn't well supported in 5.15-lts, you need to use CURRENT with 6.1-lts to have it working properly. Based on previous reports (see https://github.com/freebsd/drm-kmod/issues/252) i915kms will load fine without firmware but you won't have gpu acceleration.
Comment 2 Chris Hutchinson 2024-01-19 19:30:42 UTC
(In reply to Emmanuel Vadot from comment #1)
Thank you very much for the information (however regrettable).
Are there plans to add support to 14 anytime soon? Apologies
for using the bugtracker for this. But I haven't found anywhere to
get this information.

Thanks again

--Chris
Comment 3 Emmanuel Vadot freebsd_committer freebsd_triage 2024-01-19 19:37:37 UTC
(In reply to Chris Hutchinson from comment #2)

14.0 no plan, for 14.1 there is a bigger chance.
Comment 4 Chris Hutchinson 2024-02-13 23:50:21 UTC
(In reply to Emmanuel Vadot from comment #3)
Thanks!

--Cheis
Comment 5 Alex Bylund 2024-02-14 01:42:56 UTC
If it's any use, deleting the tgl firmware (.bin) is the part that's hanging it. It's being loaded after the adlp firmware somewhere for whatever reason.