From owner-freebsd-questions@freebsd.org Wed Jan 2 13:26:03 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 47AB8141EDE0 for ; Wed, 2 Jan 2019 13:26:03 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) Received: from s1-b0c6.socketlabs.email-od.com (s1-b0c6.socketlabs.email-od.com [142.0.176.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C77DC8C28B for ; Wed, 2 Jan 2019 13:26:02 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) DKIM-Signature: v=1; a=rsa-sha256; d=email-od.com;i=@email-od.com;s=dkim; c=relaxed/relaxed; q=dns/txt; t=1546435563; x=1549027563; h=content-transfer-encoding:content-type:mime-version:references:in-reply-to:message-id:subject:cc:to:from:date:x-thread-info; bh=5p2HNip4yMzGMyRssBf+DB4JhsxhN4jCusnJnhEcuz8=; b=uxBirzKjaYYVMaJJnT//Q8KWMQY5m+GvwfT9E+5KNSE2M08LhsNIaBH8GW3rX8935HR0p6LZG5fuW1WQa6FIkyFH9RMdkdjfoZwRjVXQGeQiHp9HkMpahm6gec+Bu3mFtPq+NlYf/jSmDD8PsghJuRgolI9auP6UTAlnbnwXsUw= X-Thread-Info: NDI1MC4xMi4xYTEwMDAwMDM5NmRkNjAuZnJlZWJzZC1xdWVzdGlvbnM9ZnJlZWJzZC5vcmc= Received: from r1.us-west-2a.aws.in.socketlabs.com (r1.us-west-2a.aws.in.socketlabs.com [54.186.235.111]) by mxsg2.email-od.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Wed, 2 Jan 2019 08:25:58 -0500 Received: from smtp.lan.sohara.org (EMTPY [89.127.62.20]) by r1.us-west-2a.aws.in.socketlabs.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Wed, 2 Jan 2019 08:25:51 -0500 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.91 (FreeBSD)) (envelope-from ) id 1gegWq-0000bW-Tc; Wed, 02 Jan 2019 13:25:49 +0000 Date: Wed, 2 Jan 2019 13:25:48 +0000 From: Steve O'Hara-Smith To: Greg V Cc: Tomasz CEDRO , freebsd-x11@freebsd.org, FreeBSD Questions Mailing List Subject: Re: AMDGPU RX580 OpenCL Message-Id: <20190102132548.ec76b2b64d64cbf16c8006e1@sohara.org> In-Reply-To: <1546428264.1787.1@smtp.migadu.com> References: <20190102070113.1e9781fc9ac1c37bba8f1800@sohara.org> <1546428264.1787.1@smtp.migadu.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: C77DC8C28B X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=email-od.com header.s=dkim header.b=uxBirzKj; spf=pass (mx1.freebsd.org: domain of 4250.10.freebsd-questions=freebsd.org@email-od.com designates 142.0.176.198 as permitted sender) smtp.mailfrom=4250.10.freebsd-questions=freebsd.org@email-od.com X-Spamd-Result: default: False [-2.92 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:142.0.176.0/20]; MV_CASE(0.50)[]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[email-od.com:+]; MX_GOOD(-0.01)[cached: mxbh.socketlabs.com]; NEURAL_HAM_SHORT(-0.70)[-0.704,0]; FORGED_SENDER(0.00)[steve@sohara.org,4250.10.freebsd-questions=freebsd.org@email-od.com]; IP_SCORE(-0.22)[ip: (-0.55), ipnet: 142.0.176.0/22(-0.27), asn: 7381(-0.21), country: US(-0.08)]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7381, ipnet:142.0.176.0/22, country:US]; RCVD_TLS_LAST(0.00)[]; FROM_NEQ_ENVFROM(0.00)[steve@sohara.org,4250.10.freebsd-questions=freebsd.org@email-od.com]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.993,0]; R_DKIM_ALLOW(-0.20)[email-od.com:s=dkim]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-0.99)[-0.990,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[sohara.org]; FORGED_SENDER_VERP_SRS(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[198.176.0.142.list.dnswl.org : 127.0.15.0]; ENVFROM_VERP(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:26:03 -0000 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. > message :) 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. > Do you have permissions to /dev/drm/* and /dev/dri/*? (video group) Yes I'm in the video group. > Do you have the latest libdrm and mesa installed? I've up to date packages installed - do some need to be ports ? > Try running with MESA_DEBUG=1 LIBGL_DEBUG=verbose to see more debug > info, > but you're probably already getting 'MESA-LOADER: failed to retrieve > device information', right? 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 -- Steve O'Hara-Smith | Directable Mirror Arrays C:\>WIN | A better way to focus the sun The computer obeys and wins. | licences available see You lose and Bill collects. | http://www.sohara.org/