From owner-freebsd-emulation@FreeBSD.ORG Fri Oct 19 15:03:29 2007 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BC45416A419 for ; Fri, 19 Oct 2007 15:03:29 +0000 (UTC) (envelope-from freebsd-emulation@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 316A213C46B for ; Fri, 19 Oct 2007 15:03:27 +0000 (UTC) (envelope-from freebsd-emulation@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IitNa-0001NI-Jo for freebsd-emulation@freebsd.org; Fri, 19 Oct 2007 15:03:14 +0000 Received: from c-71-193-243-110.hsd1.or.comcast.net ([71.193.243.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Oct 2007 15:03:14 +0000 Received: from zephiris by c-71-193-243-110.hsd1.or.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Oct 2007 15:03:14 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-emulation@freebsd.org From: Zephiris Date: Fri, 19 Oct 2007 08:02:48 -0700 Lines: 63 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-71-193-243-110.hsd1.or.comcast.net User-Agent: KNode/0.10.5 Sender: news Subject: Nvidia LibGL and RELENG_7 linuxulator X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Oct 2007 15:03:29 -0000 I've been getting a rather strange issue between Nvidia driver and the linux compatibility. I've tried this with default Fedora Core 4 libraries, default 2.4 version emulation, 2.6.16, FC6, F7, and now Gentoo. With older Linux X11 libraries (eg, those from ports), anything trying to use Nvidia's libGL that installs into the linux compat area will crash immediately. To get this working at all, I had to install the Gentoo linux dist and install with newer versions of everything (except glibc). This will get far enough that it notes things like: NVIDIA: Direct rendering failed; attempting indirect rendering. /sbin/modprobe, as per suggestions and documentation, is symlinked to ../bin/true, and that allows many things to work rather than complaining that the module can't be loaded. Linux glxgears gets roughly the same speed as on native host, but Linux glxinfo reports no direct rendering is enabled, and a number of extensions aren't reported. This means for basically all Linux games and most 3D apps, they get a small fraction of the normal speed. In addition, I have devfs mounted on /compat/linux/dev (also per various suggestions found), but if I run Linux glxinfo or glxgears or something else that loads OpenGL several times, but keeps complaining that it can't enable direct rendering, it erases nvidiactl and nvidia0 from devfs. That also obviously disables accelerated rendering on host unless the files are remade. I haven't seen this issue before in the past, and I've been wrestling around with it for several weeks. I specifically waited until after the latest Nvidia driver release, because I thought it may have been a strange fault on Nvidia's part. I get a little hesitant to post to the mailing list when I get an issue that I haven't seen reported anywhere yet, but given how hard I've been trying to sort this out, I'm not even sure of any other direction to try to get this working correctly. I can't see anything about my configuration that would be affecting the way Linux emulation works, let alone in such a strange way. FreeBSD 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #17: Fri Oct 19 07:04:40 PDT 2007 :/usr/obj/usr/src/sys/ i386 CPU: AMD Athlon(tm) 64 Processor 3500+ (2188.81-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x20ff2 Stepping = 2 Features=0x78bfbff Features2=0x1 AMD Features=0xe2500800 AMD Features2=0x1 real memory = 1609498624 (1534 MB) avail memory = 1559240704 (1487 MB) nvidia0: mem 0xfa000000-0xfaffffff,0xd0000000-0xdfffffff,0xfb000000-0xfbffffff irq 18 at device 0.0 on pci1 nvidia0: [GIANT-LOCKED] nvidia0: [ITHREAD] compat.linux.oss_version: 198144 compat.linux.osrelease: 2.6.16 compat.linux.osname: Linux glxinfo: http://www.pastebin.ca/742439