From owner-freebsd-stable Fri Jan 10 16:22: 6 2003 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7618937B401 for ; Fri, 10 Jan 2003 16:22:04 -0800 (PST) Received: from mailg.telia.com (mailg.telia.com [194.22.194.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6590743F5F for ; Fri, 10 Jan 2003 16:21:58 -0800 (PST) (envelope-from david@realityrift.com) Received: from d1o836.telia.com (d1o836.telia.com [213.65.240.241]) by mailg.telia.com (8.12.5/8.12.5) with ESMTP id h0B0LvBT007478 for ; Sat, 11 Jan 2003 01:21:57 +0100 (CET) X-Original-Recipient: Received: from rift.ath.cx (h23n2fls32o836.telia.com [217.208.105.23]) by d1o836.telia.com (8.10.2/8.10.1) with SMTP id h0B0Lt608999 for ; Sat, 11 Jan 2003 01:21:56 +0100 (CET) Date: Sat, 11 Jan 2003 01:21:50 +0100 From: David Holm To: freebsd-stable@FreeBSD.org Subject: NVidia driver misbehaving on FreeBSD Message-Id: <20030111012150.57693aac.david@realityrift.com> X-Mailer: Sylpheed version 0.8.8claws (GTK+ 1.2.10; i386-portbld-freebsd4.7) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I have now tried every combination that I could come up with and find on the FreeBSD mailing-list, unofficial FAQs etc etc. I have tried getting the driver to work on both STABLE and CURRENT with the exact same result on both. I have a GeForce2/GTS. 2D wise the nVidia driver seems to work great, my system has been up for 9 days without a single problem with X. But as soon as I use nvidias OpenGL drivers strange things start happening. I have tried the following: I have lowered the maximum allowed AGP rate in the BIOS from 4 to 2. (I have a via 694X chipset) I have tried using FreeBSD's agpgart as well as using nvidias, when using FreeBSD's I changed the #undef to #define in nv-freebsd.h. When using nvidias I have had agp.ko unloaded. I also tried enabling the ReqAGPRate sysctl so that I was able to change it to set the speed to 2 and 1. I've also tried disabling AGP by adding option "NvAgp" "0" to my XF86Config. I have also recompiled my kernel and XFree86 without any CPUTYPE or CFLAGS in /etc/make.conf glxinfo seems to return correct information. I have checked to make sure I have no libGL from Mesa etc, I have checked the existing libGL to make sure it was nvidias. I have option "IgnoreEDID" in my XF86Config in order to be able to use 1400x1050, this was never a problem in Linux but could this cause OpenGL to act up? I am not loading dri and I see no errors or relevant warnings in /var/log/XFree86.0.log I'm attaching 3 truss outputs from when glxgears failed (I hope they are useful). In ginfo.log and ginfo3.log the computer just hung. I had to reboot with reset, when I ran CURRENT it would hang for about 5 seconds than automatically reboot. With ginfo2.log glxgears just segfaulted. glxinfo also caused the machine to hang once. (the logs are gzipped, my uuencode seems broken) Two times the reboots caused data corruption, one time it even seemed to have broken gcc (I was compiling code at the same time as running glxgears). When trying to use gcc afterwards it would fail with "internal compiler error...". As far as I could tell it only corrupted open files. I have searched /var/log after crashes but I never found anything relating to nvidia or agp etc. sysctl -a|grep nvidia returns: hw.nvidia.agp.host-bridge.rates: 2x 1x hw.nvidia.agp.host-bridge.fw: not supported hw.nvidia.agp.host-bridge.sba: supported hw.nvidia.agp.host-bridge.registers: 0x1f000203:0x00000000 hw.nvidia.agp.card.rates: 4x 2x 1x hw.nvidia.agp.card.fw: supported hw.nvidia.agp.card.sba: not supported hw.nvidia.agp.card.registers: 0x1f000017:0x00000000 hw.nvidia.agp.status.status: disabled hw.nvidia.agp.status.driver: n/a hw.nvidia.agp.status.rate: n/a hw.nvidia.agp.status.fw: n/a hw.nvidia.agp.status.sba: n/a hw.nvidia.version: NVIDIA FreeBSD x86 nvidia.ko Kernel Module 1.0-3203 Wed Oct 30 06:06:58 PST 2002 hw.nvidia.registry.ReqAGPRate: 4 hw.nvidia.registry.EnableAGPSBA: 0 hw.nvidia.registry.EnableAGPFW: 0 hw.nvidia.registry.SoftEDIDs: 1 hw.nvidia.registry.Mobile: 4294967295 hw.nvidia.cards.0.model: GeForce2 GTS hw.nvidia.cards.0.irq: 11 hw.nvidia.cards.0.vbios: 02.15.01.07.00 hw.nvidia.cards.0.type: AGP //David Holm, Reality Rift Studios Get the logs here: http://www.nvnews.net/vbulletin/showthread.php?s=&threadid=6148 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message