Bug 250791

Summary: graphics/drm-kmod : Using kld_list for Radeon HD 5450 panics RELEASE-12.2
Product: Ports & Packages Reporter: kenneth.freidank
Component: Individual Port(s)Assignee: freebsd-x11 (Nobody) <x11>
Status: Open ---    
Severity: Affects Only Me CC: grahamperrin, kenneth.freidank, lwhsu
Priority: --- Flags: bugzilla: maintainer-feedback? (x11)
Version: Latest   
Hardware: Any   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250700
Attachments:
Description Flags
dmesg of 12.1 GENERIC kernel running on 12.2 system
none
dmesg of 12.2 GENERIC kernel running on 12.2 system
none
xrandr of X11 using 12.1 kernel
none
xrandr of X11 using 12.2 kernel none

Description kenneth.freidank 2020-11-01 22:54:41 UTC
Created attachment 219287 [details]
dmesg of 12.1 GENERIC kernel running on 12.2 system

Radeon HD 5450 causes kernel panic after upgrade to RELEASE 12.2 with GENERIC kernel, /etc/rc.conf is using kld_list="/boot/modules/radeonkms.ko", installed drm-kmod-g20190710.  Only way to boot 12.2 kernel is to comment out the kld_list line from /etc/rc.conf.  Currently running old 12.1 GENERIC kernel on updated 12.2 system -- strange but it is working.

Other info that might be important.
/boot/loader.conf has only 1 line:  amdtemp_load="YES"
Comment 1 kenneth.freidank 2020-11-01 23:03:01 UTC
When running the 12.1 kernel on the 12.2 system, I am using the Radeon card & kld_list.
When running the 12.2 kernel on the 12.2 system, I am using the motherboard graphics without kld_list.
Comment 2 kenneth.freidank 2020-11-01 23:14:14 UTC
Created attachment 219289 [details]
dmesg of 12.2 GENERIC kernel running on 12.2 system
Comment 3 kenneth.freidank 2020-11-01 23:20:41 UTC
(In reply to kenneth.freidank from comment #1)
Please disregard comment #1.  I am running the 12.2 kernel on the 12.2 system, however the display is no where as crisp as when running the 12.1 kernel with the kld_list="/boot/modules/radeonkms.ko" in the /etc/rc.conf.
Comment 4 kenneth.freidank 2020-11-01 23:51:52 UTC
Created attachment 219290 [details]
xrandr of X11 using 12.1 kernel
Comment 5 kenneth.freidank 2020-11-01 23:54:15 UTC
Created attachment 219291 [details]
xrandr of X11 using 12.2 kernel
Comment 6 Li-Wen Hsu freebsd_committer 2020-11-02 00:25:06 UTC
Does build drm-kmod from ports help? Please refer to bug 250700 (comment #1) for more information.
Comment 7 kenneth.freidank 2020-11-08 00:59:53 UTC
No.  I installed drm-kmod from a poudriere build in a 12.2 Release jail and a new ports pull.  I built using the 12.2 kernel (remember I kept the old 12.1 kernel in the boot menu).  I un-commented "kld_list=/boot/modules/radeonkms.ko" and the kernel panicked.
Comment 8 kenneth.freidank 2020-11-28 05:21:49 UTC
Fixed!
I only removed drm-kmod when installing my previous build. A "pkg info | grep drm" showed 3 drm packages, and a "pkg info | grep kmod" showed 1 additional package.  I removed all 4.  After this, I changed to graphics/drm-kmod, did a "make clean", and "make install".  I did not try using the Poudriere builds again.
I restored my rc.conf line and I have my graphics back.
Side Note:  I completely rebuilt and installed 12.2 RELEASE world with GENERIC from releng.