drm-kmod icon indicating copy to clipboard operation
drm-kmod copied to clipboard

Kernel panic when unloading i915drm

Open khorben opened this issue 1 year ago • 7 comments

Describe the bug When unloading the i915drm kernel module on a machine with supported Intel-based graphics, the system crashes and instantly reboots. (Black screen and then POST)

FreeBSD version

# uname -aKU
FreeBSD. 14.0-RC4 FreeBSD 14.0-RC4 #0 releng/14.0-n265374-d59533eaf942: Fri Nov  3 05:51:43 UTC 2023    [email protected]:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 1400097 1400097

PCI Info

Intel HD Graphics 610 on an ASRock H110M-ITX

DRM KMOD version Paste the output of pkg query -x '%n %v' 'drm.*kmod'

To Reproduce Steps to reproduce the behavior:

# pkg install drm-kmod
[...]
# kldload i915drm
# kldunload i915drm

khorben avatar Nov 13 '23 19:11 khorben

errrmm....

For Intel: kld_list="i915kms"

thesunexpress avatar Nov 24 '23 08:11 thesunexpress

kld_list=... in rc.conf(5) is picked up by /etc/rc.d/kld, which calls load_kld() from rc.subr(8), which ultimately calls kldload(8). The instructions I gave here represent the most concise yet efficient way I could find to reliably reproduce the issue, unambiguously, without having to modify any local files.

khorben avatar Nov 24 '23 11:11 khorben

Yes this is known, drm unloading never really worked reliably for us and yes we should fix that one day (tm).

evadot avatar Jan 05 '24 06:01 evadot

so suspend/resume should be work?

huanghwh avatar Jun 11 '24 07:06 huanghwh

so suspend/resume should be work?

Yes, suspend/resume have nothing to do with unloading.

evadot avatar Jun 11 '24 07:06 evadot

so suspend/resume should be work?

Suspend/resume generally does not work on modern hardware due to missing S0ix support

wulf7 avatar Jun 11 '24 10:06 wulf7

I have macbookpro 2017, supend/resume works on drm-5.15, I try to make MateBook X Pro works under drm-6.1, but it is not, when suspend, the Caps LED is always on, never resume:(

huanghwh avatar Jun 11 '24 13:06 huanghwh