From owner-freebsd-questions@freebsd.org Wed Jan 2 13:54:23 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9A948141FBED for ; Wed, 2 Jan 2019 13:54:23 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: from out.migadu.com (out.migadu.com [91.121.223.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.migadu.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8D3A88D154 for ; Wed, 2 Jan 2019 13:54:22 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: (Migadu outbound); Wed, 02 Jan 2019 13:54:20 +0000 Received: from [192.168.1.141] ([62.122.208.146]) by out.migadu.com (Haraka/2.8.16) with ESMTPSA id 9F9A5B2E-E8FE-4D80-8ECB-A98A70ABF45E.1 envelope-from (authenticated bits=0) (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 verify=FAIL); Wed, 02 Jan 2019 13:54:20 +0000 Date: Wed, 02 Jan 2019 16:54:17 +0300 From: Greg V Subject: Re: AMDGPU RX580 OpenCL To: Steve O'Hara-Smith Cc: Tomasz CEDRO , freebsd-x11@freebsd.org, FreeBSD Questions Mailing List Message-Id: <1546437257.1787.3@smtp.migadu.com> In-Reply-To: <20190102132548.ec76b2b64d64cbf16c8006e1@sohara.org> References: <20190102070113.1e9781fc9ac1c37bba8f1800@sohara.org> <1546428264.1787.1@smtp.migadu.com> <20190102132548.ec76b2b64d64cbf16c8006e1@sohara.org> X-Mailer: geary/0.12.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed DKIM-Signature: v=1; a=rsa-sha256; bh=gIc9KMxOMoqVJiAW+xPZq6+dkilouoq5CdWkemc9tyc=; c=relaxed/simple; d=unrelenting.technology; h=from:subject:date:to; s=default; b=PHkPmGQMtFLQ6ezPB7mRXnPi2gYzJP0O0162V/PyqmAFarH3XTd4TEiUKpSEGkt2iOj7e5Gr5SmEIEiqiwOtKsDHYp+Bo49VYIO+1Cv3FRuI04KzX8asiL1oIto30GRWuGRmH+FtwgQIGuEgX6njnz+4NbrKacJufB5sdHl43MY= X-Rspamd-Queue-Id: 8D3A88D154 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=unrelenting.technology header.s=default header.b=PHkPmGQM; dmarc=pass (policy=none) header.from=unrelenting.technology; spf=pass (mx1.freebsd.org: domain of greg@unrelenting.technology designates 91.121.223.63 as permitted sender) smtp.mailfrom=greg@unrelenting.technology X-Spamd-Result: default: False [-6.68 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[unrelenting.technology:s=default]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+ip4:91.121.223.63]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[unrelenting.technology:+]; MX_GOOD(-0.01)[cached: aspmx1.migadu.com]; DMARC_POLICY_ALLOW(-0.50)[unrelenting.technology,none]; NEURAL_HAM_SHORT(-0.98)[-0.983,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-2.68)[ip: (-9.87), ipnet: 91.121.0.0/16(-3.98), asn: 16276(0.45), country: FR(-0.02)]; ASN(0.00)[asn:16276, ipnet:91.121.0.0/16, country:FR]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jan 2019 13:54:23 -0000 On Wed, Jan 2, 2019 at 4:25 PM, Steve O'Hara-Smith wrote: > On Wed, 02 Jan 2019 14:24:24 +0300 > Greg V wrote: > >> >> >> On Wed, Jan 2, 2019 at 10:01 AM, Steve O'Hara-Smith >> >> wrote: >> > On Wed, 2 Jan 2019 01:35:58 +0100 >> > Tomasz CEDRO 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