Upgrade to FreeBSD 14.0-RC3, Intel-alderlake load gpu-firmware-intel-kmod-alderlake, the system HALT!

Hi all.
I just upgrade FreeBSD 13.2 to 14.0-RC3, and I try to driver my i5-1240P's alderlake GPU,
when I first run as root
Code:
#kldload i915kms
It run normal in kldstat:
```txt
Id Refs Address                Size Name
 1   91 0xffffffff80200000  1d34598 kernel
 2    1 0xffffffff81f35000    27540 fusefs.ko
 3    1 0xffffffff81f5e000   5d51b0 zfs.ko
 4    1 0xffffffff82534000     7718 cryptodev.ko
 5    1 0xffffffff82fe5000     3558 fdescfs.ko
 6    1 0xffffffff82fe9000     3390 acpi_wmi.ko
 7    1 0xffffffff82fed000     3250 ichsmb.ko
 8    1 0xffffffff82ff1000     2178 smbus.ko
 9    1 0xffffffff82ff4000     5f00 ig4.ko
10    1 0xffffffff82ffa000     b6e0 if_lagg.ko
11    1 0xffffffff83006000     20c0 if_infiniband.ko
12    1 0xffffffff83009000     7798 if_bridge.ko
13    1 0xffffffff83011000     60e0 bridgestp.ko
14    1 0xffffffff83018000     2260 pflog.ko
15    1 0xffffffff8301b000    4d038 pf.ko
16    1 0xffffffff83200000   33e438 vmm.ko
17    1 0xffffffff83069000     21dc nmdm.ko
18    1 0xffffffff8306c000     2a68 mac_ntpd.ko
19    1 0xffffffff8306f000     4758 nullfs.ko
20    1 0xffffffff83074000     52a4 if_epair.ko
21    1 0xffffffff8353f000   1b3920 i915kms.ko
22    2 0xffffffff8307a000    7c050 drm.ko
23    1 0xffffffff830f7000     22b8 iic.ko
24    3 0xffffffff830fa000     3080 linuxkpi_hdmi.ko
25    3 0xffffffff830fe000     6350 dmabuf.ko
26    3 0xffffffff83105000     3378 lindebugfs.ko
27    1 0xffffffff83109000     b360 ttm.ko
But demsg get the following messages:
Code:
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 0x3c800000, size 0x3c00000
drmn0: could not load firmware image 'i915/adlp_dmc_ver2_10.bin'
drmn0: [drm] Failed to load DMC firmware i915/adlp_dmc_ver2_10.bin. Disabling runtime power management.
drmn0: [drm] Run pkg install gpu-firmware-kmod to install it
lkpi_iic0: <LinuxKPI I2C> on drmn0
iicbus4: <Philips I2C bus> on lkpi_iic0
iic4: <I2C generic I/O> on iicbus4
lkpi_iic1: <LinuxKPI I2C> on drmn0
iicbus5: <Philips I2C bus> on lkpi_iic1
iic5: <I2C generic I/O> on iicbus5
lkpi_iic2: <LinuxKPI I2C> on drmn0
iicbus6: <Philips I2C bus> on lkpi_iic2
iic6: <I2C generic I/O> on iicbus6
lkpi_iic3: <LinuxKPI I2C> on drmn0
iicbus7: <Philips I2C bus> on lkpi_iic3
iic7: <I2C generic I/O> on iicbus7
lkpi_iic4: <LinuxKPI I2C> on drmn0
iicbus8: <Philips I2C bus> on lkpi_iic4
iic8: <I2C generic I/O> on iicbus8
lkpi_iic5: <LinuxKPI I2C> on drmn0
iicbus9: <Philips I2C bus> on lkpi_iic5
iic9: <I2C generic I/O> on iicbus9
lkpi_iic6: <LinuxKPI I2C> on drmn0
iicbus10: <Philips I2C bus> on lkpi_iic6
iic10: <I2C generic I/O> on iicbus10
lkpi_iic7: <LinuxKPI I2C> on drmn0
iicbus11: <Philips I2C bus> on lkpi_iic7
iic11: <I2C generic I/O> on iicbus11
lkpi_iic8: <LinuxKPI I2C> on drmn0
iicbus12: <Philips I2C bus> on lkpi_iic8
iic12: <I2C generic I/O> on iicbus12
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 [URL]https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/i915[/URL]
drmn0: 0xfffffe01d38e4638Vdrmn0: Please file a bug on drm/i915; see [URL]https://gitlab.freedesktop.org/drm/intel/-/wikis/How-to-file-i915-bugs[/URL] for details.drmn0: 0xfffffe01d38e4698Vdrmn0: 0xfffffe01d38e46d8Vdrmn0: [drm:0xffffffff8364d1a0s] 0xfffffe01d38e4738Vsysctl_warn_reuse: can't re-use a leaf (hw.dri.debug)!
lkpi_iic9: <LinuxKPI I2C> on drm1
iicbus13: <Philips I2C bus> on lkpi_iic9
iic13: <I2C generic I/O> on iicbus13
lkpi_iic10: <LinuxKPI I2C> on drm4
iicbus14: <Philips I2C bus> on lkpi_iic10
iic14: <I2C generic I/O> on iicbus14
[drm] Initialized i915 1.6.0 20201103 for drmn0 on minor 0
drmn0: [drm] Cannot find any crtc or sizes
drmn0: [drm] Cannot find any crtc or sizes
then I following the message , I install gpu-firmware-intel-kmod-alderlake
Code:
# pkg install gpu-firmware-intel-kmod-alderlake
# pkg info | grep gpu-firmware-intel-kmod-alderlake
gpu-firmware-intel-kmod-alderlake-20230210_1 Firmware modules for alderlake Intel GPUs
then run
Code:
#kldunload i915kms
#kldload i915kms
and the system is halt!
Does anybody can help, please!
 
Afaik the drm kernel modules like i915kms do not support being unloaded.
thanks a lot!
But, by comment "kld_list="i915kms" line in /etc/rc.conf, that is, without autoload,
I reboot the system, just manual as root:
```sh
#kldload i915kms
```
but the system halt also.
 
Afaik the drm kernel modules like i915kms do not support being unloaded.

Some are OK, some not. I can't find a reference, but I vaguely recall some improvements.

hopper886 this might be of interest, although I can't say that it's a match:


Side note: many of the links in issue 3 are irrelevant. <https://codeberg.org/grahamperrin/freebsd-doc/issues/42> suggests an improvement to FreeBSD documentation, to help avoid the unwanted noise.

My <https://github.com/freebsd/drm-kmod/issues/168#issue-1242141237> includes a quote from 2022. In part: "… Subsequent unload of radeonkms succeeds, subsequent load of i915kms causes a panic …"
 
thx!

But when I reboot , not autoload, just manual run `kldload i915kms` as root, It halt also.

BTW: I try two method:
1. pkg remove gpu-firmware-intel-kmod-alderlake, reboot system , manual kldload i915kms, the system loaded without halt, but show message by dmesg that need load gpu-firmware, and gpu seems not work probably。
2. pkg install gpu-firmware-intel-kmod-alderlake, reboot system, manual kldload i915kms, then system halt!


Some are OK, some not. I can't find a reference, but I vaguely recall some improvements.

hopper886 this might be of interest, although I can't say that it's a match:


Side note: many of the links in issue 3 are irrelevant. <https://codeberg.org/grahamperrin/freebsd-doc/issues/42> suggests an improvement to FreeBSD documentation, to help avoid the unwanted noise.

My <https://github.com/freebsd/drm-kmod/issues/168#issue-1242141237> includes a quote from 2022. In part: "… Subsequent unload of radeonkms succeeds, subsequent load of i915kms causes a panic …"
 
In method 1 the system is loading the built-in i915kms module which is not compatible with your GC.
Try build the driver from ports.
 
There's no built-in module.

For quarterly graphics/drm-510-kmod, the most recent success was built for version 1400097 of FreeBSD. Does release candidate 3 have a different version number?

<http://beefy8.nyi.freebsd.org/data/...b41c26148c4f/logs/drm-510-kmod-5.10.163_7.log>
thx ur reply!

FreeBSD 14.0-RC3 ports include drm-510-kmod (drm-510-kmod-5.10.163_7) and drm-515-kmod (drm-515-kmod-5.15.118_1)
and I try install krm-510-kmod, and kldload i915, the system run and not halt, but the gpu can't work properly
( whenever install port gpu-firmware-intel-kmod-alderlake-20230210_1 or not )
 
Back
Top