From owner-freebsd-questions@FreeBSD.ORG Mon Nov 29 22:19:56 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A8CFE16A4CE for ; Mon, 29 Nov 2004 22:19:56 +0000 (GMT) Received: from mailhub.sweetdreamsracing.biz (mailhub.sweetdreamsracing.biz [66.92.171.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 151AD43D5E for ; Mon, 29 Nov 2004 22:19:56 +0000 (GMT) (envelope-from culverk@sweetdreamsracing.biz) Received: by mailhub.sweetdreamsracing.biz (Postfix, from userid 80) id 9C5E461BA; Mon, 29 Nov 2004 17:16:11 -0500 (EST) Received: from 141.156.69.109 ([141.156.69.109]) by www.sweetdreamsracing.biz (Horde) with HTTP for ; Mon, 29 Nov 2004 17:16:11 -0500 Message-ID: <20041129171611.eqs4wkgok080swcg@www.sweetdreamsracing.biz> Date: Mon, 29 Nov 2004 17:16:11 -0500 From: Kenneth Culver To: freebsd-questions@freebsd.org, Louis LeBlanc References: <200411291513.35761.kirk@strauser.com> <20041129215849.GH23654@keyslapper.org> In-Reply-To: <20041129215849.GH23654@keyslapper.org> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) 4.0-cvs Subject: Re: NVidia driver not using AGP? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Nov 2004 22:19:56 -0000 Quoting Louis LeBlanc : > On 11/29/04 03:13 PM, Kirk Strauser sat at the `puter and typed: >> On my 5.3 system (recompiled completely, including ports, one week >> ago), the NVidia driver (for a GeForce MX 400) from ports doesn't >> seem to be using AGP: >> >> $ sysctl hw.nvidia.agp.status.status >> hw.nvidia.agp.status.status: disabled >> >> I've built a new kernel with "device agp" commented out, and kldstat >> verifies that it's not loaded. I set 'Option "NvAGP" "1"' in >> /etc/X11/xorg.conf. I've read all of the READMEs that seemed >> relevant. Still, I seem to be running in PCI mode and display >> updates are painfully slow and CPU-intensive. >> >> I'm running out of things to check. Any idea what combination of >> settings would result in a system where the display seems to run >> correctly, but is much slower than expected? > > I noticed a few people on this thread with similar problems, and I > don't know if any of this info will be of any use since I have a > different card, but here's what I have in my working setup: > > FreeBSD 5.3 RELEASE > xorg-6.7.0_1 > nvidia-driver-1.0.6113_2 > > My dmesg.boot log has the following: > agp0: mem 0xe8000000-0xefffffff at > device 0.0 on pci0 > > I guess that means my chipset is the Intel 82875P? Don't know if > that's useful at all. > > The xorg.conf card section is: > Section "Device" > Identifier "NV TwinView" > VendorName "nVidia Corporation" > Driver "nvidia" > # update this with the PCI id of your card. Consult the output > # of the 'lspci' command. The BusID is usually optional when > # only using one graphics card. > BusID "PCI:1:0:0" > BoardName "NV34 [GeForce FX 5200]" > > # These are extras that may need removal > Option "NoLogo" "True" > Option "RenderAccel" "True" > Option "NvAGP" "0" The above line turns of AGP altogether. > Option "HWCursor" "True" > Option "CursorShadow" "True" > > # twinview setup > Option "TwinView" > Option "SecondMonitorHorizSync" "31-80" > Option "SecondMonitorVertRefresh" "56-75" > Option "TwinViewOrientation" "RightOf" > Option "MetaModes" "1280x1024,1280x1024; 1024x768,1024x768" > Option "ConnectedMonitor" "crt,crt" > EndSection > > That should look familiar. It's a modified version of the NVIDIA > sample xorg config. If you don't have the twin monitors, just leave > out the twinview section. > > > And my hw.nvidia sysctls are: > > # sysctl hw.nvidia > hw.nvidia.agp.card.rates: 8x 4x > hw.nvidia.agp.card.fw: supported > hw.nvidia.agp.card.sba: supported > hw.nvidia.agp.card.registers: 0x1f000e1b:0x00000000 > hw.nvidia.agp.status.status: disabled > hw.nvidia.agp.status.driver: n/a (unused) The above lines confirm that AGP is off. > hw.nvidia.agp.status.rate: n/a (disabled) > hw.nvidia.agp.status.fw: n/a (disabled) > hw.nvidia.agp.status.sba: n/a (disabled) > hw.nvidia.version: NVIDIA FreeBSD x86 NVIDIA Kernel Module 1.0-6113 > Mon Aug 2 16:08:32 PDT 2004 > hw.nvidia.registry.EnableVia4x: 0 > hw.nvidia.registry.EnableALiAGP: 0 > hw.nvidia.registry.NvAGP: 3 > hw.nvidia.registry.EnableAGPSBA: 0 > hw.nvidia.registry.EnableAGPFW: 0 > hw.nvidia.registry.SoftEDIDs: 1 > hw.nvidia.registry.Mobile: 4294967295 > hw.nvidia.registry.ResmanDebugLevel: 4294967295 > hw.nvidia.registry.FlatPanelMode: 0 > hw.nvidia.cards.0.model: GeForce FX 5200 > hw.nvidia.cards.0.irq: 16 > hw.nvidia.cards.0.vbios: 04.34.20.22.bf > hw.nvidia.cards.0.type: AGP > > I AM using the FreeBSD AGP driver, I had trouble with the nvidia > driver, and it kept falling back to the FreeBSD driver. when I > removed the agp device from the kernel, X wouldn't start at all. > > I've built the nvidia drivers port with "WITH_FREEBSD_AGP=true" in my > /etc/make.conf and I don't have the try/fallback behavior now. > > I know my card isn't the same as anyone else's mentioning this > problem, but I've found that the Linux readme that comes with the > drivers is much more exhaustive than any other docs on these drivers - > and bloody long too. I'd check that file for your specific card - it > installed at /usr/X11R6/share/doc/NVIDIA_GLX-1.0/README.Linux on my > system. > According to your system, AGP isn't working on your system either. Ken