From owner-freebsd-questions@FreeBSD.ORG Mon Nov 29 21:58:52 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 E778016A4CE for ; Mon, 29 Nov 2004 21:58:52 +0000 (GMT) Received: from out004.verizon.net (out004pub.verizon.net [206.46.170.142]) by mx1.FreeBSD.org (Postfix) with ESMTP id 62E7F43D1D for ; Mon, 29 Nov 2004 21:58:52 +0000 (GMT) (envelope-from leblanc@keyslapper.org) Received: from keyslapper.org ([68.163.166.57]) by out004.verizon.net (InterMail vM.5.01.06.06 201-253-122-130-106-20030910) with ESMTP id <20041129215851.SECO1365.out004.verizon.net@keyslapper.org> for ; Mon, 29 Nov 2004 15:58:51 -0600 Received: from keyslapper.org (localhost [127.0.0.1]) by keyslapper.org (8.12.11/8.12.11) with ESMTP id iATLwosU038644 for ; Mon, 29 Nov 2004 16:58:50 -0500 (EST) (envelope-from leblanc@keyslapper.org) Received: (from leblanc@localhost) by keyslapper.org (8.12.11/8.12.11/Submit) id iATLwoLU038643 for freebsd-questions@freebsd.org; Mon, 29 Nov 2004 16:58:50 -0500 (EST) (envelope-from leblanc) Date: Mon, 29 Nov 2004 16:58:50 -0500 From: Louis LeBlanc To: freebsd-questions@freebsd.org Message-ID: <20041129215849.GH23654@keyslapper.org> Mail-Followup-To: freebsd-questions@freebsd.org References: <200411291513.35761.kirk@strauser.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200411291513.35761.kirk@strauser.com> User-Agent: Mutt/1.5.6i X-Authentication-Info: Submitted using SMTP AUTH at out004.verizon.net from [68.163.166.57] at Mon, 29 Nov 2004 15:58:51 -0600 Subject: Re: NVidia driver not using AGP? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Nov 2004 21:58:53 -0000 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" 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) 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. HTH Lou -- Louis LeBlanc FreeBSD@keyslapper.org Fully Funded Hobbyist, KeySlapper Extrordinaire :) http://www.keyslapper.org ԿԬ Sattinger's Law: It works better if you plug it in.