From bacon@smithers.neuro.mcw.edu  Tue Dec  9 14:35:07 2003
Return-Path: <bacon@smithers.neuro.mcw.edu>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id EE61C16A4CF
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  9 Dec 2003 14:35:07 -0800 (PST)
Received: from smithers.neuro.mcw.edu (smithers.neuro.mcw.edu [141.106.106.66])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D368443D2E
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  9 Dec 2003 14:35:06 -0800 (PST)
	(envelope-from bacon@smithers.neuro.mcw.edu)
Received: from smithers.neuro.mcw.edu (localhost [127.0.0.1])
	by smithers.neuro.mcw.edu (8.12.9/8.12.9) with ESMTP id hB9MZ5gv091616
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 9 Dec 2003 16:35:05 -0600 (CST)
	(envelope-from bacon@smithers.neuro.mcw.edu)
Received: (from bacon@localhost)
	by smithers.neuro.mcw.edu (8.12.9/8.12.9/Submit) id hB9MZ5US091615;
	Tue, 9 Dec 2003 16:35:05 -0600 (CST)
Message-Id: <200312092235.hB9MZ5US091615@smithers.neuro.mcw.edu>
Date: Tue, 9 Dec 2003 16:35:05 -0600 (CST)
From: Jason Bacon <bacon@smithers.neuro.mcw.edu>
Reply-To: Jason Bacon <bacon@smithers.neuro.mcw.edu>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: NVIDIA drivers + SMP causes hard lock up
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         60094
>Category:       kern
>Synopsis:       NVIDIA drivers + SMP causes hard lock up
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 09 14:40:14 PST 2003
>Closed-Date:    Tue Aug 24 12:31:06 GMT 2004
>Last-Modified:  Tue Aug 24 12:31:06 GMT 2004
>Originator:     Jason Bacon
>Release:        FreeBSD 5.1-RELEASE i386
>Organization:
Medical College of Wisconsin
>Environment:
System: FreeBSD smithers.neuro.mcw.edu 5.1-RELEASE FreeBSD 5.1-RELEASE #0: Thu Jun 5 02:55:42 GMT 2003 root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC i386

Latest 5.1-RELEASE, installed from ftp6.freebsd.org on 12-9-2003.
(ENV above is from a different machine with an older install)

Motherboard is ASUS P2B-D, BIOS 1013.

>Description:
	After installing latest NVIDIA drivers with SMP enabled, the
	system locks up completely after starting XFree86.  ( Fairly
	late in the KDE loading process )

	Serious damage
	to the filesystem resulted in every one of five attempts.
	Completely removing all X and KDE packages didn't restore 
	functionality, so to control variables, I reformatted and reinstalled 
	following each lockup.

	Following NVIDIA README suggestions, I also tried using
	the FreeBSD AGP-GART:

	/boot/loader.conf:	agp_load="YES"
	XF86Config:		Option "NvAGP" "2"
	nv-freebsd.h:		#define USE_OS_AGP_GART

	This time, the system locked during the NVIDIA splash screen.

>How-To-Repeat:
	Install SMP and NVIDIA GEFORCE drivers, in either order.

>Fix:
	Workarounds:

	1. Don't enable SMP with NVIDIA GEFORCE drivers.

	2. Disable AGP-GART: In XF86Config: Option "NvAGP" "0".  This
	   must be done before starting X for the first time with SMP enabled
	   or the system may damaged beyond reasonable repair.  ( This will
	   also presumably impair performance, although I don't know how much )
>Release-Note:
>Audit-Trail:

From: Simun Mikecin <sime@logos.hr>
To: freebsd-gnats-submit@FreeBSD.org, bacon@smithers.neuro.mcw.edu
Cc:  
Subject: Re: kern/60094: NVIDIA drivers + SMP causes hard lock up
Date: Mon, 15 Dec 2003 10:53:27 +0100

 Try this:
 
 1) use kernel AGPGART (either compile it in the kernel, or put 
 agp_load="YES" in /boot/loader.conf
 2) do:
 	cd /usr/ports/x11/nvidia-driver
 	make -DWITH_FREEBSD_AGP install clean
 	reboot
 3) after rebooting:
 	kldload nvidia
 	sysctl -w hw.nvidia.registry.UpdateKernelAGP=0
 	startx
 
 If it still doesn't work remove agp from the kernel if you compiled it in 
 and remove agp_load line from the /boot/loader.conf. After booting with a 
 new kernel try "make install clean" instead of the above make command. 
 That will use NVidia's AGP driver instead of the one from the kernel.
State-Changed-From-To: open->closed 
State-Changed-By: arved 
State-Changed-When: Tue Aug 24 12:30:21 GMT 2004 
State-Changed-Why:  
Most likely not a FreeBSD problem, but of the NVidia driver. 

Maybe the new version of the driver fixes this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=60094 
>Unformatted:
