View Single Post
Old 12-27-06, 02:27 AM   #6
jtsn
Registered User
 
Join Date: Dec 2006
Posts: 12
Default Re: AGP not working (FreeBSD 6.1, NVIDIA 96.31)

Thanks for the interim solution. The following patch brings AGP back:
Code:
--- src/nvidia_subr.c.orig      Tue Dec 19 22:50:17 2006
+++ src/nvidia_subr.c   Wed Dec 27 06:23:16 2006
@@ -698,7 +698,7 @@
      * the kernel mappings of system memory mapped into the AGP
      * aperture.
      */
-    return 0;
+    return 1; /* force AGP GART usage anyway */
 #endif
 }
AGP status:
Code:
hw.nvidia.agp.card.rates: 8x 4x 
hw.nvidia.agp.card.fw: supported
hw.nvidia.agp.card.sba: supported
hw.nvidia.agp.card.registers: 0xff000e1b:0x1b000312
hw.nvidia.agp.status.status: enabled
hw.nvidia.agp.status.driver: freebsd (agp.ko)
hw.nvidia.agp.status.rate: 8x
hw.nvidia.agp.status.fw: enabled
hw.nvidia.agp.status.sba: enabled
hw.nvidia.version: NVIDIA UNIX x86 Kernel Module  1.0-9746  Tue Dec 19 13:20:59 PST 2006
hw.nvidia.registry.EnableVia4x: 0
hw.nvidia.registry.EnableALiAGP: 0
hw.nvidia.registry.NvAGP: 3
hw.nvidia.registry.EnableAGPSBA: 0
hw.nvidia.registry.EnableAGPFW: 1
hw.nvidia.registry.SoftEDIDs: 1
hw.nvidia.registry.Mobile: 4294967295
hw.nvidia.registry.ResmanDebugLevel: 4294967295
hw.nvidia.registry.FlatPanelMode: 0
hw.nvidia.registry.DevicesConnected: 0
hw.nvidia.registry.RmLogonRC: 1
hw.nvidia.registry.DetectPrimaryVga: 1
hw.nvidia.registry.dwords: 
hw.nvidia.cards.0.model: GeForce 6800
hw.nvidia.cards.0.irq: 5
hw.nvidia.cards.0.vbios: 05.40.02.26.00
hw.nvidia.cards.0.type: AGP
I have tested glxgears, fsv, nexuiz, neverball, linux-doom3-demo, linux-quake4-demo and not encountered any stability problems. Performance is now on par with the Linux driver. With pre-80.xx NVIDIA the machine even crashes when calling glxinfo, but with 97.46 everything runs fine so far.

Of course, ģit works for meĢ is not a general solution and if there is a problem in FreeBSD, it needs to be solved. It seems the Linux AGP GART driver does something different than the FreeBSD counterpart, because with Linux everything is working out the box. I will investigate this. If my knowledge suffices, I will try to fix the AGP GART support in FreeBSD.

As ULi now belongs to nVidia, another obvious option would be the integration of native ULi AGP support into the nVidia driver.

ciao, jtsn
jtsn is offline   Reply With Quote