drm kmod with Vega 3
Andriy Gapon
avg at FreeBSD.org
Wed Apr 15 06:49:46 UTC 2020
On 12/04/2020 17:17, Andriy Gapon wrote:
> 5.0.g20200320 has it, but it appears to be incomplete.
> I see that the latest Linux driver reports the error (the message has a
> different format) but does not abort driver loading.
> I'll try to patch up the driver and test.
> Commit 466bcb75b0791b seems to be the earliest change in that area.
A progress report.
I patched drm-v5.0 with changes based on this upstream commit:
commit 466bcb75b0791ba301817cdadeed20398f2224fe
Author: Aaron Liu <aaron.liu at amd.com>
Date: Mon Jan 14 16:08:32 2019 +0800
drm/amdgpu/psp: ignore psp response status
In some cases, psp response status is not 0 even there is no
problem while the command is submitted. Some version of PSP FW
doesn't write 0 to that field.
So here we would like to only print a warning instead of an error
during psp initialization to avoid breaking hw_init and it doesn't
return -EINVAL.
After that the driver attaches successfully and produces dmesg output very
similar to that of Linux 5.3.0.
Still, that's not a success. The screen remains totally blank / black after the
driver attaches. Whether I stay in the console or start X (via startx) it
remains the same. In Xorg.log I see that the X server successfully loads amdgpu
and there are no errors. I can interact with the system in blind mode, it still
accepts input and reacts to it.
Patched FreeBSD amdgpu dmesg: https://people.freebsd.org/~avg/amdgpu.dmesg.txt
Full Linux dmesg: https://people.freebsd.org/~avg/linux-5.3.0-28.dmesg.out
--
Andriy Gapon
More information about the freebsd-x11
mailing list