Bug 259455

Summary: graphics/drm-devel-kmod: loading i915kms from rc.conf cause system freeze
Product: Ports & Packages Reporter: Oleksandr Kryvulia <shuriku>
Component: Individual Port(s)Assignee: freebsd-x11 (Nobody) <x11>
Status: New ---    
Severity: Affects Only Me CC: grahamperrin
Priority: --- Flags: bugzilla: maintainer-feedback? (x11)
Version: Latest   
Hardware: amd64   
OS: Any   

Description Oleksandr Kryvulia 2021-10-26 09:12:44 UTC
On my Lenovo Thinkpad T490 system freezes while loading i915kms (both drm-devel-kmod and drm-current-kmod) from rc.conf as port's description suggested. This on latest 14.0-CURRENT. System boots normally when:
- goes into single user mode, waits about 10 seconds and exit single user mode
or
-load i915kms from /boot/loader.conf instead kld_list in /etc/rc.conf
or
- boot when dock station with external monitor attached


FreeBSD 14.0-CURRENT #12 main-n250238-dfd704b7fb2-dirty
drm-devel-kmod-5.5.19.g20211013 from ports

Thank you.
Comment 1 Graham Perrin 2021-12-02 08:17:25 UTC
What's in /var/log/messages around the time of the freeze?

If you refrain from using rc.conf or loader.conf to load the module, then does a freeze occur in response to this? 

kldload i915kms

----

(In reply to Oleksandr Kryvulia from comment #0)

> drm-devel-kmod-5.5.19.g20211013 from ports

Built and installed from ports source whilst running OS dfd704b7fb2, yes?

----

Reference: 

<https://cgit.freebsd.org/src/log/?qt=range&q=dfd704b7fb2> (2021-10-23)
Comment 2 Oleksandr Kryvulia 2021-12-02 10:07:23 UTC
(In reply to Graham Perrin from comment #1)
> What's in /var/log/messages around the time of the freeze?
Nothing, system freezes just after booting kernel and loading module

> If you refrain from using rc.conf or loader.conf to load the module, then does a freeze occur in response to this? 
>
> kldload i915kms
module loads fine and system works.

> Built and installed from ports source whilst running OS dfd704b7fb2, yes?
Yes.