Go Back   nV News Forums > Linux Support Forums > NVIDIA FreeBSD

Newegg Daily Deals

Reply
 
Thread Tools
Old 12-05-06, 07:03 PM   #1
jtsn
Registered User
 
Join Date: Dec 2006
Posts: 12
Default AGP not working (FreeBSD 6.1, NVIDIA 96.31)

With the lastest nVidia Driver version 96.31 on FreeBSD 6.1 AGP GART does not work on my system.

Starting the X server (Xorg 6.9) leads to this message:
Code:
NVRM: AGP cannot be enabled on this combination of the AMD CPU and OS kernel
NVRM: kernel upgrade recommended.
The driver is compiled with FreeBSD AGP GART support, because it does not support the M1689 AGP northbridge by itself.

My system configuration:
dmesg:
Code:
Copyright (c) 1992-2006 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 6.1-RELEASE-p10 #3: Sat Oct 21 21:24:01 CEST 2006
    root@plex:/var/spool/src/sys/i386/compile/PLEX
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm) 64 Processor 3700+ (2200.08-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x30f72  Stepping = 2
  Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2>
  Features2=0x1<SSE3>
  AMD Features=0xe2500800<SYSCALL,NX,MMX+,FFXSR,LM,3DNow+,3DNow>
  AMD Features2=0x1<LAHF>
real memory  = 2147155968 (2047 MB)
avail memory = 2092113920 (1995 MB)
acpi0: <A M I OEMRSDT> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
cpu0: <ACPI CPU> on acpi0
powernow0: <Cool`n'Quiet K8> on cpu0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> irq 10 at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pcib2: <ACPI PCI-PCI bridge> irq 11 at device 2.0 on pci0
pci2: <ACPI PCI bus> on pcib2
agp0: <ULi M1689 AGP Controller> mem 0xc0000000-0xcfffffff at device 4.0 on pci0
pcib3: <ACPI PCI-PCI bridge> at device 5.0 on pci0
pci3: <ACPI PCI bus> on pcib3
nvidia0: <GeForce 6800> mem 0xf6000000-0xf6ffffff,0xd8000000-0xdfffffff,0xf5000000-0xf5ffffff irq 5 at device 0.0 on pci3
nvidia0: [GIANT-LOCKED]
pcib4: <ACPI PCI-PCI bridge> at device 6.0 on pci0
pci4: <ACPI PCI bus> on pcib4
rl0: <RealTek 8139 10/100BaseTX> port 0xe800-0xe8ff mem 0xf7fffc00-0xf7fffcff irq 3 at device 6.0 on pci4
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:30:84:27:e3:3f
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
pci0: <bridge> at device 7.1 (no driver attached)
pci0: <network, ethernet> at device 17.0 (no driver attached)
atapci0: <AcerLabs M5229 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xff00-0xff0f at device 18.0 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
ohci0: <AcerLabs M5237 (Aladdin-V) USB controller> mem 0xf4ffe000-0xf4ffefff irq 11 at device 19.0 on pci0
ohci0: [GIANT-LOCKED]
usb0: OHCI version 1.0, legacy support
usb0: <AcerLabs M5237 (Aladdin-V) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: AcerLabs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1: <AcerLabs M5237 (Aladdin-V) USB controller> mem 0xf4ffd000-0xf4ffdfff irq 3 at device 19.1 on pci0
ohci1: [GIANT-LOCKED]
usb1: OHCI version 1.0, legacy support
usb1: <AcerLabs M5237 (Aladdin-V) USB controller> on ohci1
usb1: USB revision 1.0
uhub1: AcerLabs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
ohci2: <AcerLabs M5237 (Aladdin-V) USB controller> mem 0xf4ffc000-0xf4ffcfff irq 11 at device 19.2 on pci0
ohci2: [GIANT-LOCKED]
usb2: OHCI version 1.0, legacy support
usb2: <AcerLabs M5237 (Aladdin-V) USB controller> on ohci2
usb2: USB revision 1.0
uhub2: AcerLabs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 3 ports with 3 removable, self powered
ehci0: <ALi M5239 USB 2.0 controller> mem 0xf4fff800-0xf4fff8ff irq 5 at device 19.3 on pci0
ehci0: [GIANT-LOCKED]
usb3: EHCI version 1.0
usb3: companion controllers, 3 ports each: usb0 usb1 usb2
usb3: <ALi M5239 USB 2.0 controller> on ehci0
usb3: USB revision 2.0
uhub3: AcerLabs EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub3: 8 ports with 8 removable, self powered
acpi_button0: <Power Button> on acpi0
speaker0: <PC speaker> port 0x61 on acpi0
ppc0: <ECP parallel printer port> port 0x378-0x37f,0x778-0x77f irq 7 drq 3 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/9 bytes threshold
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse, device ID 3
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
pmtimer0 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
uhub4: vendor 0xffa1 product 0x0201, class 9/0, rev 1.10/1.10, addr 2
uhub4: 4 ports with 4 removable, self powered
ums0: Logitech USB-PS/2 Optical Mouse, rev 2.00/20.00, addr 3, iclass 3/1
ums0: 3 buttons and Z dir.
uaudio0: vendor 0x0d8c PnP Audio Device, rev 1.10/0.10, addr 2
uaudio0: audio rev 1.00
pcm0: <USB Audio> on uaudio0
Timecounter "TSC" frequency 2200082792 Hz quality 800
Timecounters tick every 1.000 msec
IPv6 packet filtering initialized, default to accept, logging disabled
ipfw2 (+ipv6) initialized, divert loadable, rule-based forwarding enabled, default to accept, logging disabled
ad0: 238475MB <HDT722525DLAT80 V44OA70A> at ata0-master UDMA133
acd0: DVDROM <ASUS DVD-E616A/1.08> at ata1-master UDMA100
acd1: DVDR <MAT****ADVD-RAM SW-9574S/A100> at ata1-slave UDMA66
cd0 at ata1 bus 0 target 0 lun 0
cd0: <ASUS DVD-E616A 1.08> Removable CD-ROM SCSI-0 device 
cd0: 100.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed
cd1 at ata1 bus 0 target 1 lun 0
cd1: <MAT****A DVD-RAM SW-9574S A100> Removable CD-ROM SCSI-0 device 
cd1: 66.000MB/s transfers
cd1: Attempt to query device size failed: NOT READY, Medium not present
Trying to mount root from ufs:/dev/ad0s1a
pciconf:
Code:
hostb0@pci0:0:0:	class=0x060000 card=0x00000000 chip=0x169510b9 rev=0x00 hdr=0x00
    vendor   = 'Acer Labs Incorporated (ALi)'
    class    = bridge
    subclass = HOST-PCI
pcib1@pci0:1:0:	class=0x060400 card=0x00000040 chip=0x524b10b9 rev=0x00 hdr=0x01
    vendor   = 'Acer Labs Incorporated (ALi)'
    class    = bridge
    subclass = PCI-PCI
pcib2@pci0:2:0:	class=0x060400 card=0x00000040 chip=0x524c10b9 rev=0x00 hdr=0x01
    vendor   = 'Acer Labs Incorporated (ALi)'
    class    = bridge
    subclass = PCI-PCI
agp0@pci0:4:0:	class=0x060000 card=0x00000000 chip=0x168910b9 rev=0x00 hdr=0x00
    vendor   = 'Acer Labs Incorporated (ALi)'
    class    = bridge
    subclass = HOST-PCI
pcib3@pci0:5:0:	class=0x060400 card=0x00000000 chip=0x524610b9 rev=0x00 hdr=0x01
    vendor   = 'Acer Labs Incorporated (ALi)'
    class    = bridge
    subclass = PCI-PCI
pcib4@pci0:6:0:	class=0x060401 card=0x00000000 chip=0x524910b9 rev=0x00 hdr=0x01
    vendor   = 'Acer Labs Incorporated (ALi)'
    device   = 'M5249 HyperTransport to PCI Bridge'
    class    = bridge
    subclass = PCI-PCI
isab0@pci0:7:0:	class=0x060100 card=0x15631849 chip=0x156310b9 rev=0x70 hdr=0x00
    vendor   = 'Acer Labs Incorporated (ALi)'
    device   = 'ALI M1563 South Bridge with Hypertransport Support'
    class    = bridge
    subclass = PCI-ISA
none0@pci0:7:1:	class=0x068000 card=0x71011849 chip=0x710110b9 rev=0x00 hdr=0x00
    vendor   = 'Acer Labs Incorporated (ALi)'
    device   = 'ALI M7101 Power Management Controller'
    class    = bridge
none1@pci0:17:0:	class=0x020000 card=0x52631849 chip=0x526310b9 rev=0x40 hdr=0x00
    vendor   = 'Acer Labs Incorporated (ALi)'
    class    = network
    subclass = ethernet
atapci0@pci0:18:0:	class=0x01018a card=0x52291849 chip=0x522910b9 rev=0xc7 hdr=0x00
    vendor   = 'Acer Labs Incorporated (ALi)'
    device   = 'M1543 Southbridge EIDE Controller'
    class    = mass storage
    subclass = ATA
ohci0@pci0:19:0:	class=0x0c0310 card=0x52371849 chip=0x523710b9 rev=0x03 hdr=0x00
    vendor   = 'Acer Labs Incorporated (ALi)'
    device   = 'M5237 OpenHCI 1.1 USB Controller'
    class    = serial bus
    subclass = USB
ohci1@pci0:19:1:	class=0x0c0310 card=0x52371849 chip=0x523710b9 rev=0x03 hdr=0x00
    vendor   = 'Acer Labs Incorporated (ALi)'
    device   = 'M5237 OpenHCI 1.1 USB Controller'
    class    = serial bus
    subclass = USB
ohci2@pci0:19:2:	class=0x0c0310 card=0x52371849 chip=0x523710b9 rev=0x03 hdr=0x00
    vendor   = 'Acer Labs Incorporated (ALi)'
    device   = 'M5237 OpenHCI 1.1 USB Controller'
    class    = serial bus
    subclass = USB
ehci0@pci0:19:3:	class=0x0c0320 card=0x52391849 chip=0x523910b9 rev=0x01 hdr=0x00
    vendor   = 'Acer Labs Incorporated (ALi)'
    device   = 'USB 2.0 Enhanced Host Controller'
    class    = serial bus
    subclass = USB
hostb1@pci0:24:0:	class=0x060000 card=0x00000000 chip=0x11001022 rev=0x00 hdr=0x00
    vendor   = 'Advanced Micro Devices (AMD)'
    device   = 'Athlon 64 / Opteron HyperTransport Technology Configuration'
    class    = bridge
    subclass = HOST-PCI
hostb2@pci0:24:1:	class=0x060000 card=0x00000000 chip=0x11011022 rev=0x00 hdr=0x00
    vendor   = 'Advanced Micro Devices (AMD)'
    device   = 'Athlon 64 / Opteron Address Map'
    class    = bridge
    subclass = HOST-PCI
hostb3@pci0:24:2:	class=0x060000 card=0x00000000 chip=0x11021022 rev=0x00 hdr=0x00
    vendor   = 'Advanced Micro Devices (AMD)'
    device   = 'Athlon 64 / Opteron DRAM Controller'
    class    = bridge
    subclass = HOST-PCI
hostb4@pci0:24:3:	class=0x060000 card=0x00000000 chip=0x11031022 rev=0x00 hdr=0x00
    vendor   = 'Advanced Micro Devices (AMD)'
    device   = 'Athlon 64 / Opteron Miscellaneous Control'
    class    = bridge
    subclass = HOST-PCI
nvidia0@pci3:0:0:	class=0x030000 card=0x310f1458 chip=0x004110de rev=0xa1 hdr=0x00
    vendor   = 'NVIDIA Corporation'
    device   = 'GeForce 6800 [NV40.1]'
    class    = display
    subclass = VGA
rl0@pci4:6:0:	class=0x020000 card=0x25031259 chip=0x813910ec rev=0x10 hdr=0x00
    vendor   = 'Realtek Semiconductor'
    device   = 'RT8139 (A/B/C/810x/813x/C+) Fast Ethernet Adapter'
    class    = network
    subclass = ethernet
xorg.conf:
Code:
Section "ServerLayout"
	Identifier     "Layout0"
	Screen      0  "Screen0" 0 0
	InputDevice    "Keyboard0" "CoreKeyboard"
	InputDevice    "Mouse0" "CorePointer"
	Option	    "BlankTime" "3"
	Option	    "StandbyTime" "45"
	Option	    "SuspendTime" "60"
	Option	    "OffTime" "90"
EndSection

Section "Files"
	FontPath     "unix/:7100"
EndSection

Section "Module"
	Load  "freetype"
	Load  "extmod"
	Load  "glx"
	Load  "dri"
	Load  "dbe"
	Load  "record"
	Load  "xtrap"
	Load  "type1"
	Load  "speedo"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "SysMouse"
	Option	    "Device" "/dev/sysmouse"
	Option	    "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "keyboard"
	Option	    "XkbModel" "pc102"
	Option	    "XkbLayout" "de_dvorak,de_dvorak(prog)"
	Option	    "XkbOptions" "grp:alt_shift_toggle"
	Option      "AutoRepeat" "250 32"
EndSection

Section "Monitor"
 ### Uncomment if you don't want to default to DDC:
	Identifier   "Monitor0"
	DisplaySize  360 270
 ### Uncomment if you don't want to default to DDC:
	HorizSync    60.0 - 120.0
	VertRefresh  74.0 - 86.0
	Gamma        1.25
EndSection

Section "Device"
	Identifier  "Card0"
	Driver      "nvidia"
	Option	    "DPMS"
	Option	    "UseEdidDpi" "False"
	Option      "RenderAccel"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	DefaultDepth     24
	SubSection "Display"
		Viewport   0 0
		Depth     24
		Modes    "1280x960" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
EndSection
Any suggestions would be appreciated.

ciao, jtsn
jtsn is offline   Reply With Quote
Old 12-08-06, 03:46 AM   #2
tbyte
Registered User
 
tbyte's Avatar
 
Join Date: Apr 2003
Location: Europe, Bulgaria
Posts: 28
Default Re: AGP not working (FreeBSD 6.1, NVIDIA 96.31)

Same here ( (FreeBSD 6.2 + Nvidia 6200 on AGP). Driver ver 8178 works fine but anything after it fails to use AGP with the same message or directly crashes.
tbyte is offline   Reply With Quote
Old 12-08-06, 08:12 AM   #3
tbyte
Registered User
 
tbyte's Avatar
 
Join Date: Apr 2003
Location: Europe, Bulgaria
Posts: 28
Default Re: AGP not working (FreeBSD 6.1, NVIDIA 96.31)

Now something new has happend ... after upgrading to 9631 (this time by portupgrade -a from ports) I'm unable to rollback to 8178. If I install 8178 and start X the monitor goes black then turns off after a few seconds and around that time system becomes totally unresponsive (even Num Lock doesn't work). After reinstalling 9631 driver X starts but everything is laggish and working in console emulator is *PAINFUL*. Moving the cursor in mc in console emulator is more than painful - cursor is not moving smoothly but jumps some rows stops then jumps again ... With the 8178 it console worked very fast and smooth and it's so awful that I'm switching to text console and the go back to X when I need a console. Please FIX IT . And one good thing - Quake3 works OK but I need to work too .
tbyte is offline   Reply With Quote
Old 12-25-06, 05:31 PM   #4
jtsn
Registered User
 
Join Date: Dec 2006
Posts: 12
Default Re: AGP not working (FreeBSD 6.1, NVIDIA 96.31)

Driver updated to version 97.46. Problem still persists.

ciao, jtsn
jtsn is offline   Reply With Quote
Old 12-26-06, 01:26 PM   #5
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: AGP not working (FreeBSD 6.1, NVIDIA 96.31)

This actually is the intended/correct behavior (aside from the crash tbyte mentioned, I'd be interested in more details on it) with driver releases more recent than 1.0-81xx when using the FreeBSD AGP GART driver; this driver does not update the kernel mappings of memory mapped into the AGP aperture, which typically leads to severe stability problems with AMD Athlon processors.

You can force the driver to allow this configuration at your own risk by editing the file src/nvidia_subr.c (search for nv_no_incoherent_mappings()), but this will only work reliably if the AGPGART driver is fixed.
zander is offline   Reply With Quote
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
Old 12-27-06, 01:35 PM   #7
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: AGP not working (FreeBSD 6.1, NVIDIA 96.31)

You will need to do something along the lines of the memory type patchup logic in nv_alloc_system_pages() in the FreeBSD AGP GART driver; in FreeBSD 7.0-CURRENT, the pmap_change_attr() interface can be used for this (at the time of this writing, 1.0-9631 does not work with FreeBSD 7.0-CURRENT, though).
zander is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
FreeBSD 9 Release with Nvidia 550 Ti configuration issues goga NVIDIA FreeBSD 0 05-23-12 08:34 AM
Need Help Installing NVIDIA Tesla M2070Q in Linux RHEL5 Ferianto85 NVIDIA Linux 0 05-18-12 08:35 PM
Nvidia 3123 not working on Mandrake 8.2 UP with Geforce 440 MMX tariqf NVIDIA Linux 1 09-17-02 08:22 AM
nvidia drivers in a motherboard with AGP 1.0 (motherboard MVP3+) knocker NVIDIA Linux 1 08-19-02 01:57 AM

All times are GMT -5. The time now is 05:52 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright Š1998 - 2014, nV News.