Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Apr 2020 09:49:41 +0300
From:      Andriy Gapon <avg@FreeBSD.org>
To:        Grzegorz Junka <list1@gjunka.com>, freebsd-x11@freebsd.org
Subject:   Re: drm kmod with Vega 3
Message-ID:  <1abf8e1e-8a5a-e9fe-a45b-eb5cb20f03f7@FreeBSD.org>
In-Reply-To: <e0d95bf8-babb-a9e3-60f8-6c90484067b4@FreeBSD.org>
References:  <2ca574c4-431e-7387-cea0-7563ef301df7@FreeBSD.org> <6c8c7e81-8abd-a8d7-f4cf-3e26fc328bcd@gjunka.com> <e0d95bf8-babb-a9e3-60f8-6c90484067b4@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1abf8e1e-8a5a-e9fe-a45b-eb5cb20f03f7>