Re: drm kmod with Vega 3

Andriy Gapon <[email protected]>
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <[email protected]>
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 <[email protected]>
    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
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-x11
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.