Discussion:
amdgpu.ko crashes on Radeon Vega
George Mitchell
2021-05-08 22:34:01 UTC
Permalink
I have (per dmesg): AMD Ryzen 3 2200G with Radeon Vega Graphics.
(pciconf -lv reports:
***@pci0:6:0:0: class=0x030000 card=0xd0001458 chip=0x15dd1002
rev=0xc8 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'Raven Ridge [Radeon Vega Series / Radeon Vega Mobile
Series]')
I am running FreeBSD 12.2-RELEASE-p6 r369558.
I built amdgpu.ko from drm-fbsd12.0-kmod-4.16.g20201016_1.
When I boot single-user, with only kernel, vboxdrv.ko, and sem.ko
loaded, and I type "kldload amdgpu", I get about six or seven lines
of output, ending with "pci i/o bar is not found." After a couple
more seconds, the screen goes blank and the machine is as frozen as
can be, and I have to cycle power to recover. I've tried all four
combinations of hw.vga.textmode and hw.syscons.disable, but it
crashes each time. Help! -- George
Hans Petter Selasky
2021-05-08 22:38:42 UTC
Permalink
Post by George Mitchell
I have (per dmesg): AMD Ryzen 3 2200G with Radeon Vega Graphics.
rev=0xc8 hdr=0x00
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Raven Ridge [Radeon Vega Series / Radeon Vega Mobile
Series]')
I am running FreeBSD 12.2-RELEASE-p6 r369558.
I built amdgpu.ko from drm-fbsd12.0-kmod-4.16.g20201016_1.
When I boot single-user, with only kernel, vboxdrv.ko, and sem.ko
loaded, and I type "kldload amdgpu", I get about six or seven lines
of output, ending with "pci i/o bar is not found."  After a couple
more seconds, the screen goes blank and the machine is as frozen as
can be, and I have to cycle power to recover.  I've tried all four
combinations of hw.vga.textmode and hw.syscons.disable, but it
crashes each time.  Help!                              -- George
Hi,

If you hook up a USB serial adapter and redirect the console to it using:

hw.usb.ucom.cons_baud: 9600
hw.usb.ucom.cons_subunit: 0
hw.usb.ucom.cons_unit: -1


Then you might get the prints from the panic which is happening. Also
try to build a kernel with debugging support to get an automatic core dump.

It is also recommended to try 13-stable. The DRM code there is much newer.

--HPS
George Mitchell
2021-05-08 22:51:52 UTC
Permalink
Post by Hans Petter Selasky
Post by George Mitchell
I have (per dmesg): AMD Ryzen 3 2200G with Radeon Vega Graphics.
rev=0xc8 hdr=0x00
     vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
     device     = 'Raven Ridge [Radeon Vega Series / Radeon Vega Mobile
Series]')
I am running FreeBSD 12.2-RELEASE-p6 r369558.
I built amdgpu.ko from drm-fbsd12.0-kmod-4.16.g20201016_1.
When I boot single-user, with only kernel, vboxdrv.ko, and sem.ko
loaded, and I type "kldload amdgpu", I get about six or seven lines
of output, ending with "pci i/o bar is not found."  After a couple
more seconds, the screen goes blank and the machine is as frozen as
can be, and I have to cycle power to recover.  I've tried all four
combinations of hw.vga.textmode and hw.syscons.disable, but it
crashes each time.  Help!                              -- George
Hi,
hw.usb.ucom.cons_baud: 9600
hw.usb.ucom.cons_subunit: 0
hw.usb.ucom.cons_unit: -1
Then you might get the prints from the panic which is happening. Also
try to build a kernel with debugging support to get an automatic core dump.
It is also recommended to try 13-stable. The DRM code there is much newer.
--HPS
Thanks -- trying 13-stable sounds simpler, but for the moment I may
just stick with VESA mode ... -- George
Nenhum_de_Nos
2021-05-15 17:29:35 UTC
Permalink
Post by George Mitchell
Post by Hans Petter Selasky
Post by George Mitchell
I have (per dmesg): AMD Ryzen 3 2200G with Radeon Vega Graphics.
chip=0x15dd1002
rev=0xc8 hdr=0x00
     vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
     device     = 'Raven Ridge [Radeon Vega Series / Radeon
Vega Mobile
Series]')
I am running FreeBSD 12.2-RELEASE-p6 r369558.
I built amdgpu.ko from drm-fbsd12.0-kmod-4.16.g20201016_1.
When I boot single-user, with only kernel, vboxdrv.ko, and sem.ko
loaded, and I type "kldload amdgpu", I get about six or seven lines
of output, ending with "pci i/o bar is not found."  After a couple
more seconds, the screen goes blank and the machine is as frozen as
can be, and I have to cycle power to recover.  I've tried all four
combinations of hw.vga.textmode and hw.syscons.disable, but it
crashes each time. 
Help!                              --
George
Hi,
hw.usb.ucom.cons_baud: 9600
hw.usb.ucom.cons_subunit: 0
hw.usb.ucom.cons_unit: -1
Then you might get the prints from the panic which is happening. Also
try to build a kernel with debugging support to get an automatic core dump.
It is also recommended to try 13-stable. The DRM code there is much newer.
--HPS
Thanks -- trying 13-stable sounds simpler, but for the moment I may
just stick with VESA mode ... -- George
George,

I'm about to try this on Ryzen 3400G here, where can I find this step by
step to try to repeat what you did? My box has just basic FreeBSD install,
cause I couldn't use Xorg at all. When I finish something on another OS I
will try this.

Thanks,

matheus
--
"We will call you Cygnus,
the God of balance you shall be."
George Mitchell
2021-05-15 17:50:25 UTC
Permalink
Post by Nenhum_de_Nos
[...]
George,
I'm about to try this on Ryzen 3400G here, where can I find this step by
step to try to repeat what you did? My box has just basic FreeBSD install,
cause I couldn't use Xorg at all. When I finish something on another OS I
will try this.
Thanks,
matheus
1. Install FreeBSD 12.
2. Install drm-fbsd12.0-kmod.
3. Boot into single-user mode.
4. Type "kldload amdgpu".

When you say you can't use Xorg at all, does that mean VESA mode is not
working? -- George
Loading...