Bug 278639 - graphics/drm-515-kmod: System freezes up loading "i915kms.ko" on Alder Lake-S (Core i7)
Summary: graphics/drm-515-kmod: System freezes up loading "i915kms.ko" on Alder Lake-S...
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-x11 (Nobody)
URL:
Keywords: i915
Depends on:
Blocks:
 
Reported: 2024-04-28 16:13 UTC by Gerard Seibert
Modified: 2024-04-29 07:14 UTC (History)
2 users (show)

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


Attachments
dmesg file with -v option without loading the i919ms.ko module (84.18 KB, text/plain)
2024-04-28 16:13 UTC, Gerard Seibert
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gerard Seibert 2024-04-28 16:13:19 UTC
Created attachment 250283 [details]
dmesg file with -v option without loading the i919ms.ko module

FreeBSD mystic.seibercom.net 14.0-RELEASE-p6 FreeBSD 14.0-RELEASE-p6 #0: Tue Mar 26 20:26:20 UTC 2024     root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64

I cannot load the "/boot/modules/i915kms.ko" module I have tried loading it via the rc.config file: kld_list="/boot/modules/i915kms.ko"
and via kldload -v "/boot/modules/i915kms.ko" Both instanses freeze up the machine immediatly. The only way to get control is to manually shutdown the system.

Attempting to use kldload -v /boot/modules/i915kms.ko produces this output:
iic0: <12C generic I/O> on iicbus0
The system then immediately freezes up.

I have attached a copy of the output of "dmesg" created with the "-v" option on bootup.

The last output in the dmesg file before the system freezes up using kld_list="/boot/modules/i915kms.ko"

	Loading KernelModules
	1indebugfs registered

I build the module with poudriere (graphics/drm-515-kmod). I also installed (graphics/drm-kmod) because I thought that I was missing some module.

This is the output of kldstat -h
~ $ kldstat -h
Id Refs Address             Size Name
 1   77 0xffffffff80200000   29M kernel
 2    1 0xffffffff81f35000  157K fusefs.ko
 3    1 0xffffffff81f5d000  5.8M zfs.ko
 4    1 0xffffffff82534000   30K cryptodev.ko
 5    1 0xffffffff83110000   13K acpi_wmi.ko
 6    1 0xffffffff83114000   13K ichsmb.ko
 7    1 0xffffffff83118000  8.4K smbus.ko
 8    1 0xffffffff8311b000   24K ig4.ko
 9    1 0xffffffff83121000   13K uhid.ko
10    1 0xffffffff83125000   17K ums.ko
11    1 0xffffffff8312a000   13K usbhid.ko
12    1 0xffffffff8312e000   13K hidbus.ko
13    1 0xffffffff83132000   19K ng_ubt.ko
14    6 0xffffffff83137000   43K netgraph.ko
15    2 0xffffffff83142000   41K ng_hci.ko
16    4 0xffffffff8314d000  9.6K ng_bluetooth.ko
17    1 0xffffffff83150000   57K ng_l2cap.ko
18    1 0xffffffff8315f000  112K ng_btsocket.ko
19    1 0xffffffff8317b000   14K ng_socket.ko
20    1 0xffffffff8317f000   26K cuse.ko
21    1 0xffffffff83186000  161K ipfw.ko
22    1 0xffffffff831af000   11K mac_ntpd.ko
23    1 0xffffffff831b2000   13K fdescfs.ko

This is the output from "cpu-x"
CPU
xx        Vendor: Intel                                                   xx
xx     Code Name: Alder Lake-S (Core i7)                                  xx
xx       Package: U3E1                                                    xx
xx    Technology: Intel 7     Voltage: 0.900 V                            xx
xx Specification: 12th Gen Intel(R) Core(TM) i7-12700                     xx
xx        Family: 0x6           Model: 0x7          Temp.: 33°C           xx
xx  Disp. Family: 0x6     Disp. Model: 0x97      Stepping: 2              xx
xx  Instructions: HT, MMX, SSE(1, 2, 3, 3S, 4.1, 4.2), AVX(1, 2), FMA(3), xx
xx                AES, CLMUL, RdRand, SHA, VT-x, x86-64                   xx
xmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqjx
xlqClocksqqqqqqqqqqqqqqqqqqqqqqqqqqqqklqCacheqqqqqqqqqqqqqqqqqqqqqqqqqqqqqkx
xx    Core Speed: 2110 MHz           xx     L1 Data: 8 x 48 kB, 12-way    xx
xx    Multiplier: x21.0 (8-49)       xx    L1 Inst.: 8 x 32 kB, 8-way     xx
xx     Bus Speed: 100.47 MHz         xx     Level 2: 8 x 1280 kB, 10-way  xx
xx         Usage:   1.02 %           xx     Level 3: 25 MB, 10-way        xx
xmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqjmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqjx
xlqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqkx
xx  Type #0       P-core #0         Cores:  8         Threads: 16         xx
xmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqjx

Graphics
xlqCard 0qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqkx
xx      Vendor: Intel                        Driver:                      xx
xx UMD Version:                                                           xx
xx       Model: AlderLake-S GT1                                           xx
xx Compute Unit:                    DeviceID: 0x4680:0x0C                 xx

Card
xlqCardsqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqkx
xx #0: AlderLake-S GT1                                                    xx
Comment 1 rkoberman 2024-04-29 05:58:43 UTC
Unfortunately, drm-515-kmod and FreeBSD-14 don't quite work properly. You may be able to get the graphics to work, though not well, by deleting the firmware so that it is not loaded. You can simply delete the gpu-firmware port from the system. That will leave you with working graphics, but no acceleration. The only real solution is to run CURRENT and drm-61-kmod, which is what I do. It provides fully functional graphics on the Alder Lake GPU.

I have no idea whether a minor 14 release will support drm-61-kmod. It seems a bit unlikely as it would require an update to the LKPI to 6.1 and that usually means that it will require a major version update.
Comment 2 Emmanuel Vadot freebsd_committer freebsd_triage 2024-04-29 07:14:48 UTC
As said drm-515-kmod don't support well Alderlake GPU.
14.1 will support drm-61-kmod, so either update to current or stable/14 now or wait for 14.1 to be released.

Cheers,