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

Newegg Daily Deals

Reply
 
Thread Tools
Old 10-04-06, 11:48 AM   #1
SirDice
Registered User
 
Join Date: Jul 2005
Posts: 79
Default Freeze on redraw

Hi,

I cannot seem to get the 8774 driver stable
I've tried every combination of build options.
With (fbsd) agp as a module, build into the kernel, with the Nvidia agp. With/without acpi.. It's always the same result..

After opening a few gnome-terminals and usually gthumb, I move the windows, scroll through them then suddenly everything freezes during the redraw of the window. Xorg will use up all cpu and it'll stay that way until I ssh into the machine and reboot.

I'm using a dual athlon MP 2400+, Gigabyte GA-7DPX, 1GB Ram, 5200FX.
Tried the same options with the same results on my other machine, an AMD64 (running freebsd-i386), MSI K8T-Neo, 6600GT.

I read a thread somewhere about possible problems with interrupt sharing. This is the case on the amd64, the 6600GT shares the same interrupt with the onboard USB and NIC (re0). On the dual athlon however the 5200FX isn't sharing any interrupts. So that shouldn't be the case here.

Let's focus on the dual athlon first

uname -a
FreeBSD molly.w2k.home 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #56: Wed Oct 4 16:49:43 CEST 2006 root@molly.w2k.home:/usr/obj/usr/src/sys/MOLLY i386

Tried it with a stock GENERIC kernel too, same problem.

sysctl -a hw.nvidia (before startx):
hw.nvidia.agp.card.rates: 4x 2x 1x
hw.nvidia.agp.card.fw: supported
hw.nvidia.agp.card.sba: supported
hw.nvidia.agp.card.registers: 0x1f000217: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 Kernel Module 1.0-8774 Tue Aug 1 22:04:23 PDT 2006
hw.nvidia.registry.EnableVia4x: 0
hw.nvidia.registry.EnableALiAGP: 0
hw.nvidia.registry.NvAGP: 1
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.registry.DevicesConnected: 0
hw.nvidia.registry.VideoEnhancement: 0
hw.nvidia.registry.RmLogonRC: 1
hw.nvidia.registry.DetectPrimaryVga: 1
hw.nvidia.cards.0.model: GeForce FX 5200
hw.nvidia.cards.0.irq: 17
hw.nvidia.cards.0.vbios: ??.??.??.??.??
hw.nvidia.cards.0.type: AGP

After startx (with NvAGP=1):
hw.nvidia.agp.card.rates: 4x 2x 1x
hw.nvidia.agp.card.fw: supported
hw.nvidia.agp.card.sba: supported
hw.nvidia.agp.card.registers: 0x1f000217:0x0f000104
hw.nvidia.agp.status.status: enabled
hw.nvidia.agp.status.driver: nvidia
hw.nvidia.agp.status.rate: 4x
hw.nvidia.agp.status.fw: disabled
hw.nvidia.agp.status.sba: disabled
hw.nvidia.version: NVIDIA FreeBSD x86 Kernel Module 1.0-8774 Tue Aug 1 22:04:23 PDT 2006
hw.nvidia.registry.EnableVia4x: 0
hw.nvidia.registry.EnableALiAGP: 0
hw.nvidia.registry.NvAGP: 1
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.registry.DevicesConnected: 0
hw.nvidia.registry.VideoEnhancement: 0
hw.nvidia.registry.RmLogonRC: 1
hw.nvidia.registry.DetectPrimaryVga: 1
hw.nvidia.cards.0.model: GeForce FX 5200
hw.nvidia.cards.0.irq: 17
hw.nvidia.cards.0.vbios: 04.34.20.27.02
hw.nvidia.cards.0.type: AGP

It usually freezes with the following in /var/log/messages:
Oct 4 13:55:31 molly kernel: NVRM: Xid (0001:05): 6, PE0002 181c 00000000 00414a3c 0005381c ffffff04
Oct 4 13:55:31 molly kernel: NVRM: Xid (0001:05): 28, L1 -> L0
Oct 4 14:01:00 molly kernel: NVRM: Xid (0001:05): 6, PE0002 0680 40a00000 00110664 0005381c ffffff34
Oct 4 14:01:00 molly kernel: NVRM: Xid (0001:05): 28, L1 -> L0
Oct 4 14:05:54 molly kernel: NVRM: Xid (0001:05): 6, PE0000 02fc 00000001 00414a3c 9d30a2fc ffffffff
Oct 4 14:05:54 molly kernel: NVRM: Xid (0001:05): 28, L1 -> L0

Oct 4 15:03:43 molly kernel: NVRM: Xid (0001:05): 6, PE0000 0400 00c0b5a9 0000f388 00096400 fff3f3f3
Oct 4 15:03:43 molly kernel: NVRM: Xid (0001:05): 28, L1 -> L0

Oct 4 16:01:01 molly kernel: NVRM: Xid (0001:05): 6, PE0000 0400 00c0b5a9 00414a3c 00096400 ffd7d7d7
Oct 4 16:01:01 molly kernel: NVRM: Xid (0001:05): 28, L1 -> L0

Oct 4 18:07:40 molly kernel: NVRM: Xid (0001:05): 6, PE0000 0444 00086400 00009894 00000000 00086400
Oct 4 18:07:40 molly kernel: NVRM: Xid (0001:05): 28, L1 -> L0

These I got using different build options..

IIRC the previous driver did run stable by building it WITHOUT_LINUX, WITH_FREEBSD_AGP and WITH_ACPI. The kernel needed device agp. Building agp as a module would freeze Xorg.

Removed /etc/make.conf, same results..

I'm about to give up Let me know if you need more info..
Attached Files
File Type: txt bootverbose.txt (39.8 KB, 177 views)
File Type: txt mptable.txt (3.5 KB, 164 views)

Last edited by SirDice; 10-04-06 at 12:08 PM.
SirDice is offline   Reply With Quote
Old 10-04-06, 12:31 PM   #2
SirDice
Registered User
 
Join Date: Jul 2005
Posts: 79
Default Re: Freeze on redraw

Oh.. Forgot to mention I'm using X.org 6.9.0 and X freezes but the mouse still moves.. Heck, even glxgears keeps rotating?!? But even that stops after a while..

Last edited by SirDice; 10-04-06 at 01:21 PM.
SirDice is offline   Reply With Quote
Old 10-06-06, 11:26 AM   #3
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: Freeze on redraw

Does the problem reproduce if you disable AGP support with Option "NvAGP" "0"? If not, is it possible that AGP was disabled when you were using nvidia.ko built with FreeBSD AGPGART support?
zander is offline   Reply With Quote
Old 10-06-06, 03:26 PM   #4
SirDice
Registered User
 
Join Date: Jul 2005
Posts: 79
Default Re: Freeze on redraw

Thanks for taking the time.. I tried a few things..

Build a kernel without device agp.
Build nvidia driver WITHOUT_FREEBSD_AGP
kldstat shows nvidia.ko and no agp.ko
Nothing agp related in device.hints

startx with NvAGP=1; freezes
syslog message:
kernel: NVRM: Xid (0001:05): 6, PE0000 0444 00086400 0000684c 00000000 00086400

startx with NvAGP=0; couldn't reproduce

---

Build a kernel with device agp
Build nvidia driver WITH_FREEBSD_AGP
agp shows up in dmesg, nvidia.ko in dmesg and kldstat

startx with NvAGP=2; freezes
nothing in syslog

startx with NvAGP=0; couldn't reproduce
SirDice is offline   Reply With Quote
Old 10-07-06, 07:52 AM   #5
SirDice
Registered User
 
Join Date: Jul 2005
Posts: 79
Default Re: Freeze on redraw

Is there a way I can tell where or why Xorg is taking all cpu?

I could recompile everything with debugging options (kernel and X) and do some backtraces. I've seen a couple of threads here about setting up remote debugging. Would that help pin down the source of the problem?
It would take me some time to setup and I'm not that savvy with a debugger but if it would help I'll do it.
SirDice is offline   Reply With Quote
Old 10-07-06, 11:09 AM   #6
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: Freeze on redraw

Judging from the error messages you posted, data transferred via the AGP port is likely being corrupted in flight, which results in an irrecoverable error; the 1.0-9625 BETA driver might be able to deal with this problem better, but the real solution is to investigate whether lowering the AGP rate, etc., improves stability with AGP enabled (please see the README for details).
zander is offline   Reply With Quote
Old 10-09-06, 02:06 PM   #7
SirDice
Registered User
 
Join Date: Jul 2005
Posts: 79
Default Re: Freeze on redraw

Odd.. I cannot seem to use any of the sysctls to set the AGP rate..

hw.nvidia.agp.card.rates ; read-only
hw.nvidia.agp.status.rate ; read-only

hw.nvidia.registry.rate ; oid doesn't exist?!?
None of the hw.nvidia.registry.* oid's mentioned in the README exists btw.
http://download.nvidia.com/freebsd/1...ppendix-e.html
Tried it WITH and WITHOUT_FREEBSD_AGP.

So I used the BIOS to set the AGP rate to 1x/2x instead of 4x.
Installed a kernel without device agp. Rebuild nvidia-driver WITHOUT_FREEBSD_AGP. Checked kldstat, nvidia.ko is there, no agp.ko

After starting X:
dice@molly:~>sysctl hw.nvidia
hw.nvidia.agp.card.rates: 4x 2x 1x
hw.nvidia.agp.card.fw: supported
hw.nvidia.agp.card.sba: supported
hw.nvidia.agp.card.registers: 0x1f000217:0x0f000102
hw.nvidia.agp.status.status: enabled
hw.nvidia.agp.status.driver: nvidia
hw.nvidia.agp.status.rate: 2x
hw.nvidia.agp.status.fw: disabled
hw.nvidia.agp.status.sba: disabled
hw.nvidia.version: NVIDIA FreeBSD x86 Kernel Module 1.0-8774 Tue Aug 1 22:04:23 PDT 2006
hw.nvidia.registry.EnableVia4x: 0
hw.nvidia.registry.EnableALiAGP: 0
hw.nvidia.registry.NvAGP: 1
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.registry.DevicesConnected: 0
hw.nvidia.registry.VideoEnhancement: 0
hw.nvidia.registry.RmLogonRC: 1
hw.nvidia.registry.DetectPrimaryVga: 1
hw.nvidia.cards.0.model: GeForce FX 5200
hw.nvidia.cards.0.irq: 17
hw.nvidia.cards.0.vbios: 04.34.20.27.02
hw.nvidia.cards.0.type: AGP

Setting AGP to 2x does seem to help.. So far I couldn't reproduce the problem

Perhaps later I'll try the beta driver to see if it can handle the errors better at 4xAGP.
Right now I'm happy
SirDice is offline   Reply With Quote
Old 10-09-06, 02:41 PM   #8
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: Freeze on redraw

The sysctl OID for the AGP rate would be hw.nvidia.registry.ReqAGPRate, but it's disabled by default. You'd need to edit src/nvidia_os_registry.c after extracting the NVIDIA driver .tar.gz archive and enable the key in the nv_parms[] table befor executing `make install`.
zander is offline   Reply With Quote

Old 10-11-06, 06:27 AM   #9
SirDice
Registered User
 
Join Date: Jul 2005
Posts: 79
Default Re: Freeze on redraw

Quote:
Originally Posted by zander
The sysctl OID for the AGP rate would be hw.nvidia.registry.ReqAGPRate, but it's disabled by default. You'd need to edit src/nvidia_os_registry.c after extracting the NVIDIA driver .tar.gz archive and enable the key in the nv_parms[] table befor executing `make install`.
I probably have to play around with this on my AMD64 system as it doesn't have a BIOS option to lower the AGP rate.

Lowering the rate (in the BIOS) on my dual athlon works btw. It hasn't frozen since. I'm currently running it with the NVidia AGP driver.
SirDice 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
302.17 and total PC freeze on 7600GT Milos_SD NVIDIA Linux 8 07-14-12 01:56 PM
Screen freeze NVRM: Xid error ciancaroll NVIDIA Linux 0 06-05-12 01:05 PM
Why in Spider-Man The Movie PC Game only some levels i go to will freeze? imtim83 Gaming Central 5 10-03-02 09:21 PM
bttv and xawtv freeze drifter NVIDIA Linux 7 09-17-02 09:52 PM
Overlay Freeze on video mirroring PeQuE NVIDIA Windows Graphics Drivers 1 09-06-02 05:26 AM

All times are GMT -5. The time now is 05:42 PM.


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