Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 02 Jan 2019 16:54:17 +0300
From:      Greg V <greg@unrelenting.technology>
To:        Steve O'Hara-Smith <steve@sohara.org>
Cc:        Tomasz CEDRO <tomek@cedro.info>, freebsd-x11@freebsd.org, FreeBSD Questions Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: AMDGPU RX580 OpenCL
Message-ID:  <1546437257.1787.3@smtp.migadu.com>
In-Reply-To: <20190102132548.ec76b2b64d64cbf16c8006e1@sohara.org>
References:  <CAFYkXjnVOspenga%2BM0oP-0pS=vxr4gmqs7XcrJZdSjnf1geEZA@mail.gmail.com> <20190102070113.1e9781fc9ac1c37bba8f1800@sohara.org> <1546428264.1787.1@smtp.migadu.com> <20190102132548.ec76b2b64d64cbf16c8006e1@sohara.org>

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


On Wed, Jan 2, 2019 at 4:25 PM, Steve O'Hara-Smith <steve@sohara.org> 
wrote:
> On Wed, 02 Jan 2019 14:24:24 +0300
> Greg V <greg@unrelenting.technology> wrote:
> 
>> 
>> 
>>  On Wed, Jan 2, 2019 at 10:01 AM, Steve O'Hara-Smith 
>> <steve@sohara.org>
>>  wrote:
>>  > On Wed, 2 Jan 2019 01:35:58 +0100
>>  > Tomasz CEDRO <tomek@cedro.info> wrote:
>>  >
>>  >>  Hello world in 2019 :-)
>>  >>
>>  >>  I have recently upgraded 11.2 to 12.0. I made AMDGPU work as my
>>  >>  desktop Xorg driver. However I still did not make it work with
>>  >
>>  > 	Do you not get this in Xorg.0.log ?
>>  >
>>  > [    45.939] (EE) AIGLX error: dlopen of
>>  > /usr/local/lib/dri/amdgpu_dri.so
>>  > failed (Cannot open "/usr/local/lib/dri/amdgpu_dri.so")
>>  >
>>  > 	If not what did you do to prevent it ?
>> 
>>  This should never happen. I'm curious as to how you even got this
> 
> 	Hmm there is no such file - there are a bunch of files in lib.dri
> but not that one.

It shouldn't exist, that's fine.

It's a detection problem. Mesa is supposed to read GPU info and find 
out that
the driver is actually radeonsi_dri.so, not the nonexistent 
amdgpu_dri.so.

You can try setting the environment variable 
MESA_LOADER_DRIVER_OVERRIDE=radeonsi
as a workaround, but this really shouldn't happen.

> 	Oh interesting. All I've done is install the drm-kmod port, put
> kld_list="amdgpu" in /etc/rc.conf and start Xorg up, there's nothing
> driver related in xorg.conf just some screen definition and layout 
> stuff.

Have you tried not having an xorg.conf at all?

Or install xf86-video-amdgpu and configure it in xorg.conf:

Section "Device"
        Identifier "Card0"
        Driver "amdgpu"
        Option "AccelMethod" "glamor"
        Option "DRI" "3"
        Option "TearFree" "true"
EndSection

> 	No, everything is working fine except that it reverts to software
> rendering after modeset hsd set up DRI and VDPAU viz:
> 
> [    45.928] (==) modeset(0): DPMS enabled
> [    45.928] (II) modeset(0): [DRI2] Setup complete
> [    45.929] (II) modeset(0): [DRI2]   DRI driver: amdgpu
> [    45.929] (II) modeset(0): [DRI2]   VDPAU driver: amdgpu
> [    45.929] (--) RandR disabled
> ...
> [    45.939] (EE) AIGLX error: dlopen of 
> /usr/local/lib/dri/amdgpu_dri.so
> failed (Cannot open "/usr/local/lib/dri/amdgpu_dri.so") [    45.939] 
> (EE)
> AIGLX: reverting to software rendering

Well that's not fine.

Do GL applications use the GPU, at least?

Try running:
MESA_DEBUG=1 LIBGL_DEBUG=verbose glxgears




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1546437257.1787.3>