From owner-freebsd-x11@freebsd.org Thu Apr 20 21:27:00 2017 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 98189D48D81 for ; Thu, 20 Apr 2017 21:27:00 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7B63A310; Thu, 20 Apr 2017 21:27:00 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1033) id A3A564D69; Thu, 20 Apr 2017 21:26:59 +0000 (UTC) Date: Thu, 20 Apr 2017 21:26:59 +0000 From: Alexey Dokuchaev To: Arto Pekkanen Cc: freebsd-x11@freebsd.org Subject: Re: Hardware acceleration broken for AMD Norther Islands cards? Message-ID: <20170420212659.GA34324@FreeBSD.org> References: <20170420184951.GA4950@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.1 (2016-10-04) X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Apr 2017 21:27:00 -0000 On Thu, Apr 20, 2017 at 10:06:42PM +0300, Arto Pekkanen wrote: > I don't know why mesa fails to recognize the dri driver based on this > info alone, but I do know that the reason why glxinfo reports 16G > graphics memory is because, in case it cannot initialize hardware > acceleration, libGL defaults to using the software renderer which uses > system RAM for buffers. > > I am not a specialist in regards to the graphics subsystem, but to make > even an uneducated guess the following information is required: > - dmesg > - pciconf -lbev > - /var/log/Xorg.0.log > - your X.org configuration file, if any I guess those would not be needed. I've noticed r438989 and decided to update `graphics/libdrm'; I had to de/reinstall another big round of ports but after I did that, hw accel is back. Yet not the same as before: Goods: glxgears and games, and even `multimedia/vdpauinfo' now work. Bads: mplayer (fresh rebuild) /tmp/any-movie segfauls the entire thing: (EE) 0: /usr/local/bin/X (OsInit+0x37a) [0x59ca2a] (EE) 1: /lib/libthr.so.3 (_pthread_sigmask+0x504) [0x8025bfcb4] (EE) 2: /lib/libthr.so.3 (_pthread_getspecific+0xe5f) [0x8025bfc2f] (EE) 3: ? (?+0xe5f) [0x7ffffffffe62] (EE) 4: ? (?+0xe5f) [0xe5f] (EE) 5: /usr/local/lib/xorg/modules/libglamoregl.so (glamor_back_pixmap_from_fd+0xcb) [0x806bb5efb] (EE) 6: /usr/local/lib/xorg/modules/libglamoregl.so (glamor_pixmap_from_fd+0x57) [0x806bb5fa7] (EE) 7: /usr/local/lib/xorg/modules/drivers/radeon_drv.so (_init+0x3e1f2) [0x8063848e2] (EE) 8: /usr/local/bin/X (dri3_send_open_reply+0xb9a) [0x56ea7a] (EE) 9: /usr/local/bin/X (dri3_send_open_reply+0x3f2) [0x56da42] (EE) 10: /usr/local/bin/X (UpdateCurrentTimeIf+0x288) [0x430a18] (EE) 11: /usr/local/bin/X (remove_fs_handlers+0x527) [0x43a217] (EE) 12: /usr/local/bin/X (_start+0x17f) [0x42508f] (EE) 13: ? (?+0x17f) [0x80082b17f] (EE) (EE) Segmentation fault at address 0x0 ./danfe