View Single Post
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, 174 views)
File Type: txt mptable.txt (3.5 KB, 162 views)

Last edited by SirDice; 10-04-06 at 12:08 PM.
SirDice is offline   Reply With Quote