From owner-FreeBSD-users-jp@jp.FreeBSD.org Wed Feb 19 17:51:10 2003
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6+3.4W/8.11.3) id h1J8pAK68305;
	Wed, 19 Feb 2003 17:51:10 +0900 (JST)
	(envelope-from owner-FreeBSD-users-jp@jp.FreeBSD.org)
Received: from TYO201.gate.nec.co.jp (TYO201.gate.nec.co.jp [210.143.35.51])
	by castle.jp.FreeBSD.org (8.11.6+3.4W/8.11.3) with ESMTP/inet id h1J8p9i68299
	for <FreeBSD-users-jp@jp.FreeBSD.org>; Wed, 19 Feb 2003 17:51:09 +0900 (JST)
	(envelope-from ishidakz@hml.cl.nec.co.jp)
Received: from mailgate4.nec.co.jp ([10.7.69.197])
	by TYO201.gate.nec.co.jp (8.11.6/3.7W01080315) with ESMTP id h1J8p9w25666
	for <FreeBSD-users-jp@jp.FreeBSD.org>; Wed, 19 Feb 2003 17:51:09 +0900 (JST)
Received: from mailsv4.nec.co.jp (mailgate52.nec.co.jp [10.7.69.198]) by mailgate4.nec.co.jp (8.11.6/3.7W-MAILGATE-NEC) with ESMTP
	id h1J8p8a07100 for <FreeBSD-users-jp@jp.FreeBSD.org>; Wed, 19 Feb 2003 17:51:08 +0900 (JST)
Received: from ikoma.hml.cl.nec.co.jp (ikoma.hml.cl.nec.co.jp [10.56.192.1]) by mailsv4.nec.co.jp (8.11.6/3.7W-MAILSV4-NEC) with ESMTP
	id h1J8p8H29248 for <FreeBSD-users-jp@jp.FreeBSD.org>; Wed, 19 Feb 2003 17:51:08 +0900 (JST)
Received: from athena.hml.cl.nec.co.jp by ikoma.hml.cl.nec.co.jp (8.8.8+2.7Wbeta7/HML-980508) with ESMTP
	id RAA07656; Wed, 19 Feb 2003 17:50:48 +0900 (JST)
Received: from localhost
	by athena.hml.cl.nec.co.jp (8.11.3/HML-01071213) with ESMTP id h1J8omD52236;
	Wed, 19 Feb 2003 17:50:48 +0900 (JST)
Message-Id: <20030219.174807.59699237.ishidakz@hml.cl.nec.co.jp>
To: FreeBSD-users-jp@jp.FreeBSD.org
From: Kazuo ISHIDA <ishidakz@hml.cl.nec.co.jp>
In-Reply-To: <20030218.130925.41674259.ishidakz@hml.cl.nec.co.jp>
References: <200302141750.CAA16770@mx.alles.or.jp>
	<20030218.130925.41674259.ishidakz@hml.cl.nec.co.jp>
X-Mailer: Mew version 2.0 on Emacs 20.6 / Mule 4.1 (AOI)
Mime-Version: 1.0
Content-Type: Multipart/Mixed;
 boundary="--Next_Part(Wed_Feb_19_17:48:07_2003_727)--"
Content-Transfer-Encoding: 7bit
Reply-To: FreeBSD-users-jp@jp.FreeBSD.org
Precedence: list
Date: Wed, 19 Feb 2003 17:48:07 +0900
X-Sequence: FreeBSD-users-jp 73494
Subject: [FreeBSD-users-jp 73494] Re: nVidia
 =?ISO-2022-JP?B?GyRCJUklaSUkJVAkRxsoQg==?= OpenGL
 =?ISO-2022-JP?B?GyRCJCxGMDpuJDckSiQkGyhC?=
Errors-To: owner-FreeBSD-users-jp@jp.FreeBSD.org
Sender: owner-FreeBSD-users-jp@jp.FreeBSD.org
X-Originator: ishidakz@hml.cl.nec.co.jp
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+030107

----Next_Part(Wed_Feb_19_17:48:07_2003_727)--
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit

$B$I$&$b(B $B$$$7$@!w(BNEC $B$G$9(B

$B<+8J%U%)%m!<(B

>>>>> On Tue, 18 Feb 2003 13:09:25 +0900, Kazuo ISHIDA <ishidakz@hml.cl.nec.co.jp> said:
!> !> FreeBSD 4.7-RELEASE + XFree86-4.2.0_1,1 $B$K!"(B
!> !> nVidia$B=c@5$N%I%i%$%P(B
!> !> 	NVIDIA_FreeBSD-1.0-3203.tar.gz
!> !> $B$rF~$l$F;H$C$F$$$k$N$G$9$,!"$I$&$K$b(BOpenGL$B$,$&$^$/F0:n$7$^$;$s!#(B
!> $B$3$A$i$N4D6-(B (2/17 $B$N(B 5-CURRENT, XFree86-4.2.1) $B$G$O!"(B
!> $BNc$($P(B XFree86 $BIUB0$N(B glxgears $B$J$I$O(B
!> $B$$$A$*$&5/F0$7$FF0:n$7$F$$$^$9(B
!> $B$7$+$7!"%W%m%0%i%`=*N;;~$K(B OS $B$4$H%U%j!<%:$7$F$7$^$$$^$9(B
!> $B$5$i$K!"(BX $B%5!<%P<+BN$b!"=*N;;~$K(B
!>   Fatal trap 12: page fault while in kernel mode
!>   fault code = supervisor read, page not present
!> $B$N$h$&$J(B panic $B$r5/$3$7$F(B OS $B$4$H(B $B$*$J$/$J$j$K$J$C$F$7$^$$$^$9(B

$B$H$j$"$($:!"E:IU$7$?$h$&$J%Q%C%A$rEv$F$F(B
$BF0$/$h$&$K$J$j$^$7$?(B
$B$^$@D9;~4V;H$$9~$s$@$o$1$G$O$J$$$N$G$9$,(B
glxgears $B$O2wD4$KF0$$$F$*$j$^$9(B

$B$7$+$7!"$I$&9M$($F$b>lEvE*$J%Q%C%A$J$N$G(B
$B$*;H$$$K$J$k>l9g$O<+8J@UG$$G$*4j$$CW$7$^$9(B

$B!t(B $BAa$/(B 5.0-RELEASE $BBP1~HG$,=P$J$$$G$9$+$M$'(B


----Next_Part(Wed_Feb_19_17:48:07_2003_727)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="Patch.030219"

diff -ru NVIDIA_FreeBSD-1.0-3203.orig/src/nv-freebsd.h NVIDIA_FreeBSD-1.0-3203/src/nv-freebsd.h
--- NVIDIA_FreeBSD-1.0-3203.orig/src/nv-freebsd.h	Wed Oct 30 23:30:58 2002
+++ NVIDIA_FreeBSD-1.0-3203/src/nv-freebsd.h	Wed Feb 19 16:56:44 2003
@@ -27,11 +27,13 @@
  * active development and also unsupported.
  */
 
+#if 0
 #if __FreeBSD_version >= 500000
 #error This driver does not support FreeBSD 5.0/-CURRENT!
 #elif __FreeBSD_version < 470000
 #error This driver requires FreeBSD 4.7 or later!
 #endif
+#endif
 
 #include <sys/systm.h>
 #include <sys/types.h>
@@ -131,7 +133,7 @@
  * use AGPGART, the agp.ko module must be preloaded from loader.conf.
  */
 
-#undef USE_OS_AGP_GART
+#define USE_OS_AGP_GART
 
 /*
  * This flag determines if system memory for use with the NVIDIA AGP GART
diff -ru NVIDIA_FreeBSD-1.0-3203.orig/src/nvidia_subr.c NVIDIA_FreeBSD-1.0-3203/src/nvidia_subr.c
--- NVIDIA_FreeBSD-1.0-3203.orig/src/nvidia_subr.c	Wed Oct 30 23:30:58 2002
+++ NVIDIA_FreeBSD-1.0-3203/src/nvidia_subr.c	Wed Feb 19 16:57:24 2003
@@ -12,6 +12,7 @@
 #include "os-interface.h"
 #include "nv.h"
 #include "nv-freebsd.h"
+#include <sys/filedesc.h>
 
 
 devclass_t nvidia_devclass;
@@ -314,7 +315,7 @@
 {
     nv_state_t *nv = &nvidia_ctl_state;
 
-    if (__TD_FDT_CNT(td) == 0) {
+    if (td->td_proc->p_fd == 0 || __TD_FDT_CNT(td) == 0) {
         /*
          * The global open/close count allows us to determine when we can
          * safely reset this device; tracking of resource manager clients
@@ -367,7 +368,7 @@
 {
     nv_state_t *nv = sc->nv_state;
 
-    if (__TD_FDT_CNT(td) == 0) {
+    if (td->td_proc->p_fd == 0 || __TD_FDT_CNT(td) == 0) {
         /*
          * The global open/close count allows us to determine when we can
          * safely reset this device; tracking of resource manager clients

----Next_Part(Wed_Feb_19_17:48:07_2003_727)----
