From owner-freebsd-x11@freebsd.org Sat Oct 6 12:38:12 2018 Return-Path: Delivered-To: freebsd-x11@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 4997010B8CFE for ; Sat, 6 Oct 2018 12:38:12 +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 94D1C732EF for ; Sat, 6 Oct 2018 12:38:11 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: (Migadu outbound); Sat, 06 Oct 2018 12:38:04 +0000 Authentication-Results: out.migadu.com; auth=pass (plain) Received: from [192.168.1.141] ([62.122.208.146]) by out.migadu.com (Haraka/2.8.16) with ESMTPSA id 4DBA20CE-F3FF-4192-BC0D-BC79FBB68E39.1 envelope-from (authenticated bits=0) (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 verify=FAIL); Sat, 06 Oct 2018 12:38:03 +0000 Date: Sat, 06 Oct 2018 15:38:00 +0300 From: Greg V Subject: Re: linux-c7 and opengl apps? To: Theron Cc: FreeBSD Current , x11-list freebsd Message-Id: <1538829480.11691.0@smtp.migadu.com> In-Reply-To: References: X-Mailer: geary/0.12.4 MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; bh=8aBVUM4Ox/pNV5WgKCkXbftK97IRdhwd4h9MzAyszVI=; c=relaxed/simple; d=unrelenting.technology; h=from:subject:date:to; s=default; b=Bmg6L99qo48ERfW6BY307mRXUWF+1mAVCMCQpYZ0NlwMtpTh3z72yKFKQsGriDH6F/dImxBGWyfeg3YG9ZdGnULJytkTckQm2zy2USMOVaFJbE7dP6llPQjsbYp2cfKtRrs7le28GKN9fjwQXIHIFMdC+3Zqwc5Whh8GqCuqQz0= X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Oct 2018 12:38:12 -0000 On Fri, Oct 5, 2018 at 11:21 PM, Theron wrote: > % /compat/linux/opt/VirtualGL/bin/glxinfo | grep OpenGL > libGL error: MESA-LOADER: failed to retrieve device information Do you have linsysfs mounted? Try reading /compat/linux/sys/class/drm/card0/device/uevent. Mesa won't retrieve device information without linsysfs. I wrote the linsysfs patch that exposed the info there so that recent=20 Mesa would work :) https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222375 (Wow, that was a year ago=85 interesting note from there: you might=20 need to set LIBGL_DRI3_DISABLE=3D1 for Linux apps) Also, what's with the "/opt/VirtualGL"? Are you using mesa from=20 linux-c7 or something=85 weird? > This problem has existed forever. I am not sure it is actually a=20 > fault in Linux emulation, as these very same symptoms ("failed to=20 > retrieve device information" message, console freeze) existed back in=20 > FreeBSDDesktop/freebsd-base-graphics days when attempting to run=20 > purely FreeBSD OpenGL apps. At the time the workaround was a patch=20 > to Mesa's GPU detection; the underlying kernel problem wasn't=20 > addressed. There was a somewhat related issue (but not the same one, FreeBSD and=20 Linux versions of mesa/libdrm use different mechanisms to get device=20 info). Mostly affected Wayland-EGL clients =97 they would try to access=20 /dev/dri/card408 instead of /dev/dri/card0, fail to get info and fall=20 back to software rendering. I fixed it a while ago:=20 https://gitlab.freedesktop.org/mesa/mesa/commit/db8519a369261cdedda50852fac= c45616d4eba28 But I never saw console freezes when Mesa couldn't properly detect the=20 GPU o_0 =