-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
panic loading amdgpu #255
Comments
Well do you have the firmware installed? It's packaged as |
Yes I have the latest |
Weird. Can you manually |
I will try right now. |
So that loads fine, but it seems that amdgpu dies with a backtrace which I need to get with |
Drop the |
Nice, thank you, I will try that. |
I set the resolution to 1440p and the framebuffer started at 1600x1200. I ran: kldload amdgpu_navi10_gpu_info_bin
kldload amdgpu I got this backtrace: Here is my system information: Motherboard: Supermicro H11DSi If you would like to debug this, I'll be happy to do whatever is needed. |
huh. well the panic is that the driver is trying to create Can you scroll up (with Scroll Lock) in the console to see what's up with the first GPU? |
This time I got somewhat different behavior, I ran: kldload amdgpu and it initialized the first card and loaded the firmware, I could see the firmware modules in Here is the first card being successfully initialized: Here is the second card failing to initialize: I then tried running xorg with amdgpu to see if it would start on the first card, but I got a panic: |
hm, same trace as freebsd/drm-kmod#36 with the Try building the newer driver from freebsd/drm-kmod#40 (https://github.com/myfreeweb/drm-kmod/tree/5.5-wip-amd-pr) |
welcome to the navi FPU kernel context issues suffering club :D (freebsd/drm-kmod#42 etc) Please try again ( |
Oh, right. *facepalm* Try again freebsd/drm-kmod@7693e3a |
hm. Does it work with only one GPU installed? |
Will try today! |
Miraculously, it works. I am typing this in KDE on amdgpu now! Some problems with KDE, but I'll try to work on that. So what are the next steps here. I can play with the code a bit if you tell me where to look and what to look at. |
Works for Renoir 4750G. Update: FreeBSD current, https://github.com/freebsd/freebsd-src, before commit 50180d2b52cc16ecb6a6617fdc53f5d83c71a8b4 (included), and patched with commit 9f47eeffa3cfdcb512e2011fb00fc23c7c1a7d75 for this issue. |
As a temporary measure, since I do want to put my second GPU back in, is there some way, perhaps in loader.conf, to disable my second GPU so that amdgpu does not try to initialize it? |
Maybe in Something like |
I will try, thank you very much. |
Huh. So reproducibly, always when the second GPU is present (but not even initialized, no dmesg lines for it), there are |
Well I could try playing with the code to at least get more information about this, do you have any tips for working with this codebase and debugging etc. and any specific places I should look at to start? Also I wanted to say that I really appreciate all your help on this, can I buy you a case of beer? |
https://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug.html
Well the functions in the backtrace here I guess.. (Really, first just confirm that this is reproducible, i.e. every time you have a second GPU this crash happens and every time you don't have it, it doesn't.)
I don't drink :P |
Sure that's easy enough to do, I can just unplug the power cable. |
I meant like, do you have a paypal or patreon or whatever link for sponsoring freebsd development, using your beverage of choice. |
@myfreeweb I have once again verified that this is the case. If I unplug the pcie power from my second GPU then I can start xorg on amdgpu. Also I realized that I can just do this for now, unplug the pcie power when I want to boot FreeBSD. At least for now. This is a huge improvement over my previous situation where my only choices where an NVIDIA GPU or scfb, thank you very much. KDE does not seem to be working very well for me here, I'll do the necessary follow up work on that, but in the meantime if I can't fix it I"ll just install xfce so I have a working desktop and can start playing with FreeBSD as a daily driver. Once I do that, I will look at this backtrace and see if I can do anything. |
I get this in /var/log/messages:
I am using latest git current with latest git drm-devel-kmod and gpu-firmware-kmod from ports.
My card is a 5700xt.
Any help much appreciated.
The text was updated successfully, but these errors were encountered: