Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 May 2018 09:13:46 +0100
From:      Johannes Lundberg <johalun0@gmail.com>
To:        Yuri <yuri@rawbw.com>
Cc:        x11-list freebsd <freebsd-x11@freebsd.org>
Subject:   Re: Radeon R2/R3/R4/R5 Graphics card fails: open /dev/dri/card0: No such file or directory
Message-ID:  <CAECmPwsVbPwFiBRn3HhBPJX_=EEy5io%2BVQLu2GrPsfm_7EmBOg@mail.gmail.com>
In-Reply-To: <1fb3a90e-3d4f-0593-b844-4ea19ad01eac@rawbw.com>
References:  <4fe27b64-9837-8ca6-1678-d140388db8a8@rawbw.com> <1fb3a90e-3d4f-0593-b844-4ea19ad01eac@rawbw.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, May 26, 2018 at 8:16 AM Yuri <yuri@rawbw.com> wrote:

> I've managed to make it work using just one section in xorg config:
>
> Section "Device"
>          Identifier "Card0"
>          Driver "scfb"
>          BusID "pci0:0:1:0"
> EndSection
>
>
Hi

Unfortunately, scfb is software rendering so won't give you the benefits of
the GPU.

On my Kaveri APU (Sea Islands I think) I can run both amdgpu and radeonkms
drivers. To enable amdgpu on older cards I put this in /boot/loader.conf

compat.linuxkpi.cik_support=1
compat.linuxkpi.si_support=1

If your card is newer it is only supported by amdgpu so you can ignore the
above.

For amdgpu:
/etc/rc.conf:
kld_list="amdgpu"
/etc/X11/xorg.conf (in Device section)
Driver "amdgpu"

For radeonkms:
/etc/rc.conf:
kld_list="radeonkms"
/etc/X11/xorg.conf (in Device section)
Driver "radeon"

And you'll need at least FreeBSD 11.2 as mentioned before.
To make sure there are no collisions with older drm2 from base,I usually do
#mv /boot/kernel/drm.ko /root/
to make sure the correct drm (/boot/modules/drm.ko) is loaded as dependency.

Some further googling show that Stoney is Volcanic Islands so that would be
the amdgpu case above^

PS, before you put the kld_list in /etc/rc.conf make sure that the driver
loads with kldload so you don't end up in a nasty crash loop...



> No drivers from drm-next-kmod are loaded. xf86-video-ati is installed.
>
>
> Yuri
>
> _______________________________________________
> freebsd-x11@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-x11
> To unsubscribe, send any mail to "freebsd-x11-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAECmPwsVbPwFiBRn3HhBPJX_=EEy5io%2BVQLu2GrPsfm_7EmBOg>