FreeBSDDesktop / kms-drm

the DRM part of the linuxkpi-based KMS
63 stars 26 forks source link

amdgpu crashes during load (rx580) #127

Closed graudeejs closed 5 years ago

graudeejs commented 5 years ago

Hello!

When amdgpu is loaded by rc.conf via kld_list="amdgpu" FreeBSD crashes and hard resed is required. In order to get out of crash -> reset -> crash -> reset loop I entered single user mode and disabled amdgpu loading with kld_list.

Once in multi-user mode, I can load amdgpu with kldload without problems (most of the time)

Crash photo: https://share.berjoza.lv/freebsd-kms-drm/crash-20190113_011513.jpg

uname -a:

FreeBSD home 12.0-RELEASE-p2 FreeBSD 12.0-RELEASE-p2 GENERIC  amd64

dmesg/Xorg.log/clinfo: https://gist.github.com/graudeejs/cf5fecc90d36983c8abf1ba35bb79bf3

drm-fbsd12.0-kmod-4.16.g20181215
drm-kmod-g20181126
libdrm-2.4.96,1
opencl-2.2_1
mesa-demos-8.4.0_2
mesa-dri-18.1.9_3
mesa-libs-18.1.9_4

/boot/loader.conf:

hw.sysconf.disable=1
zfs_load="YES"
kern.vty="vt"

Let me know if there's any more info I can provide.

valpackett commented 5 years ago

Booting with UEFI? Looks like the EFI framebuffer conflict https://github.com/FreeBSDDesktop/DEPRECATED-freebsd-base-graphics/issues/170 though I'm surprised it works when loaded manually, for me it never works when efifb is active.

The current workaround is to set hw.syscons.disable=1 in /boot/loader.conf and add to kld_list (you'll lose the console before the driver loads, but you can always SSH in)

kern.vty="vt"

That's been the default for ages, you don't have to list that explicitly.

graudeejs commented 5 years ago

Booting with UEFI?

Unfortunately yes. Otherwise my screen blows up like disco and I have to reset PC.

The current workaround is to set hw.syscons.disable=1 in /boot/loader.conf

I have that

and add to kld_list (you'll lose the console before the driver loads, but you can always SSH in)

If I do that, PC hands and I need to reboot.

juikim commented 5 years ago

hw.sysconf.disable=1

Do you really have sysconf, not syscons, in the file? ;-)

graudeejs commented 5 years ago

hw.sysconf.disable=1

Do you really have sysconf, not syscons, in the file? ;-)

Snap, I missed that.

graudeejs commented 5 years ago

I will check this weekend (need to swap GPU)

graudeejs commented 5 years ago

I fixed typo and for what it's worth my PC booted 3 out of 3 times to XDM (that is with hw.syscons.disable=1 and kld_list) However I don't like losing console until driver is loaded. :(