graphics on amd radeon vega

Vasily Postnicov shamaz.mazum at
Tue Dec 29 13:14:20 UTC 2020

The interesting part of dmesg seems to be truncated:

> [drm] radeon kernel modesetting enabled.
> acpi_video0: <ACPI video extension> on vgapci0
> ...

General hint: do not forget to add your user to the group called "video"
(this is not relevant to driver loading, but you will not be able to use
/dev/dri/* devices without this step). Also, for FreeBSD 12 with EFI
bootloader add the following line to /boot/loader.conf:

and this line in /etc/rc.conf:

Warning! That line in /boot/loader.conf will disable your console driver
(vt(4) that is), so you will see garbage on your display until AMD driver
is loaded. So check if amdgpu driver detects your card first (with kldload

вт, 29 дек. 2020 г. в 15:56, Oskar Sharipov <oskarsh at>:

> Hello!
> I'm using FreeBSD 12.1-RELEASE-p10 (amd64) on Lenovo S340. There is an
> AMD Ryzen CPU with Radeon Vega Mobile Gfx as it's printed in dmesg.
> The problem is I cannot use amdgpu drivers. I built them from ports, I
> wrote kld_list="/boot/modules/amdgpu.ko" in /etc/rc.conf, I added myself
> in "video" group. When I boot the laptop I can notice interface is
> laggy. Video in mpv is lagging, switching windows in wm is lagging and
> so on.
> I checked glxheads information, it prints GL_RENDERER is "llvmpipe". As
> I understand it means X11 uses default llvm drivers.
> I checked Xorg.0.logs, there are these lines:
>         ...
>         [     9.738] (EE) open /dev/dri/card0: No such file or directory
>         [     9.738] (WW) Falling back to old probe method for modesetting
>         [     9.738] (EE) open /dev/dri/card0: No such file or directory
>         [     9.738] (WW) Falling back to old probe method for scfb
>         ...
> which also shows something is wrong with loading drivers, as I
> understand.
> Experimenting I ended up with radeonkms module in rc.conf but I see
> no difference, everything is the same with radeon and amdgpu drivers.
> I attached graphics_on_vega.tar.gz archive which contains:
>         graphics_on_vega/devinfo        that's `devinfo -vr` output
>         graphics_on_vega/dmesg  that's `dmesg` output
>         graphics_on_vega/hw.model       that's `sysctl hw.model` output
>         graphics_on_vega/pciconf        that's `pciconf -lvbce` output
>         graphics_on_vega/pkg_info       that's `pkg info` output
>         graphics_on_vega/Xorg.0.log     that's `cat /var/log/Xorg.0.log`
> output
> Is it a problem with my understandings how to set up drivers, with Radeon
> Vega GPUs or with drivers themselves? Should I file a bug report to
> freebsd-x11 at
> --
> Oskar Sharipov
> site (might be unpaid and cancelled):
> e-mail (replace asterisk with dot): oskarsh at riseup * net
> secondary e-mail (same): oskar * sharipov at tutanota * org
> gpg fingerprint: BAC3 F049 748A D098 A144  BA89 0DC4 EA75 714C 75B5

More information about the freebsd-questions mailing list