Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Nov 2018 13:16:56 -0500
From:      Daniel Eischen <deischen@freebsd.org>
To:        Johannes Lundberg <johalun0@gmail.com>
Cc:        x11-list freebsd <freebsd-x11@freebsd.org>
Subject:   Re: drm-devel-kmod amdgpu
Message-ID:  <C1ECF137-D3F8-4419-9CFF-73C575248ED2@freebsd.org>
In-Reply-To: <CAECmPwvdB7ec26qBOTrDDBcwKDLNonLeodV6z09zBxhp5X7ZiQ@mail.gmail.com>
References:  <Pine.GSO.4.64.1811171352290.14741@sea.ntplx.net> <CAECmPwvdB7ec26qBOTrDDBcwKDLNonLeodV6z09zBxhp5X7ZiQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

> On Nov 18, 2018, at 12:53 PM, Johannes Lundberg <johalun0@gmail.com> wrote=
:
>=20
>=20
>=20
>> On Sat, Nov 17, 2018 at 7:08 PM Daniel Eischen <deischen@freebsd.org> wro=
te:
>> Greetings,
>>=20
>> I'm trying to get amdgpu to work with my AMD Ryzen 5 2400G (onboard
>> graphics).  I guess it is Vega 11.
>>=20
>> I'm running:
>>=20
>>    FreeBSD vega 13.0-CURRENT FreeBSD 13.0-CURRENT r340429 vega  amd64
>>    (my machine name was chosen years ago, long before AMD Vega)
>>=20
>>    $ pkg info drm-devel-kmod
>>    drm-devel-kmod-4.16.g20181027_1
>>    Name           : drm-devel-kmod
>>    Version        : 4.16.g20181027_1
>>    Installed on   : Sat Nov 10 22:09:05 2018 EST
>>    ...
>>=20
>> I'm using radeonkms=3D"/boot/modules/radeonkms.ko" in /etc/rc.conf
>> for now, as it works (mostly, the screen blanks briefly sometimes
>> when playing videos or sometimes using firefox, always comes back.
>> And VT switching works also).
>>=20
>> If I try using amdgpu, the screen will blank permanently, no VT
>> switching is possible, or at least no consoles can be shown.
>> Making sure that radeonkms is not loaded and X/KDE is not enabled,
>> I tried booting single user and manually loading amdgpu, as well
>> as letting it load from rc.conf.  But a blank screen is all I
>> get.
>>=20
>> X doesn't seem to detect my monitor when using amdgpu, which
>> is probably part of the problem.  I've attached both Xorg logs
>> from radeonkms and amdgpu, as well as 'pciconf -lv' and
>> 'devinfo -rv' output.
>>=20
>> I'm booting from a GPT partition, the default FreeBSD ZFS
>> installation.
>=20
> Hi=20
>=20
> Thanks for the report.
>=20
> First, I can't believe that radeonkms does anything, unless you have an ol=
der discrete GPU in your machine. In your case it's falling back to VESA acc=
ording to Xorg log.

Yes, I believe it is using the VESA driver.

> Vega is still experimental as of 4.16. According to various online sources=
, it seems like we have to wait for 4.18 until Vega can be considered stable=
 (meaning we won't spend time trying to fix bugs that are not obviously a Fre=
eBSD problem). I think we can reach 4.18 before the end of this year.=20

I see reports of the AMD 2400G running fine on the Linux 4.17 kernel.

> Until then, your best option is probably booting with UEFI if you can and u=
sing the scfb driver. It's much nicer than VESA...

If I can find a spare disk, I may try that.

--
DE=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C1ECF137-D3F8-4419-9CFF-73C575248ED2>