Skip to contentSkip to conversation

How to disable slow agpgart in kernel config?

DISCUSSION Marcus Hartig 3 participants 5 messages Feb 12, 2005 – Feb 13, 2005

lore
Share & tools
lore
#0 lore raw
Quoted 7 lines · Terence Ripperda

I wouldn't expect even falling back to pci dma would have this big of an impact on 2d performance, but perhaps there's enough bus activity for this to happen. Marcus, can you verify that you're actually using agpgart in that situation? do you possibly have our XF86Config option set to nvagp only? (with IOMMU compiled in or agpgart loaded, our driver won't allow nvagp) you can verify whether agp is enabled with this command when our driver is loaded and X is started up:

No, IOMMU is now off, too. And I have always used nv_agp with:

Option "NvAgp" "1"

If the nvidia driver detects the kernel agpgart, it doesn't load nv_agp with a big message in the kernel log.

I've just short tested it again:

Doom3 with medium standard settings in 800x600@24bit:

agpgart: 58,1 frames
nv_agp: 63,1 frames

Its a lot in Doom3.

(Simple) 2D test 1280x1024@24bit with x11perf --> http://www.marcush.de/bench/

Same gcc, xorg 6.8.2, 2.6.11-rc3-bk8 kernel, patched (minion.de) 6629 nvidia drivers to run with newer 2.6.11-rcX kernel,... here was only nv_agp and agpgart the difference. In the past without an patched driver the same difference.

And again using agpgart with GNOME under X and moving this thunderbird mail window or other bigger ones like mozille or firefox over an gnome-terminal pulls/draws a ca. 5cm shadow like field slowly after the main window. It seems so not fast enough writing to the screen, when moving. With nv_agp its really faster and you do not see this.

Bad english... I know. ;)

Greetings,
Marcus

#1 lore raw
Quoted 5 lines

agpgart: 58,1 frames
nv_agp: 63,1 frames

Its a lot in Doom3.

hmm I wonder.. .could you collect lspci -vxxx settings for the AGP device (lspci -vxxx gives you lots of devices, but only one is relevant) in both cases, maybe the difference between the two shows something useful...

#2 lore raw
Quoted 4 lines · Arjan van de Ven

hmm I wonder.. .could you collect lspci -vxxx settings for the AGP device (lspci -vxxx gives you lots of devices, but only one is relevant) in both cases, maybe the difference between the two shows something useful...

Hmmm...only the latency at the VGA card.

With AGPGART:

01:00.0 VGA compatible controller: nVidia Corporation NV35 [GeForce FX 5900] (rev a1) (prog-if 00 [VGA])
Flags: bus master, 66Mhz, medium devsel, latency 32, IRQ 5
Memory at e0000000 (32-bit, non-prefetchable) [size=16M]
Memory at d8000000 (32-bit, prefetchable) [size=128M]
Capabilities: [60] Power Management version 2
Capabilities: [44] AGP version 3.0
00: de 10 31 03 07 00 b0 02 a1 00 00 03 00 20 00 00
10: 00 00 00 e0 08 00 00 d8 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30: 00 00 00 00 60 00 00 00 00 00 00 00 05 01 05 01
40: 00 00 00 00 02 00 30 00 1b 0e 00 1f 00 00 00 00
50: 01 00 00 00 01 00 00 00 ce d6 23 00 0f 00 00 00
60: 01 44 02 00 00 00 00 00 00 00 00 00 00 00 00 00
70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

With NV_AGP:

01:00.0 VGA compatible controller: nVidia Corporation NV35 [GeForce FX 5900] (rev a1) (prog-if 00 [VGA])
Flags: bus master, 66Mhz, medium devsel, latency 248, IRQ 5
Memory at e0000000 (32-bit, non-prefetchable) [size=16M]
Memory at d8000000 (32-bit, prefetchable) [size=128M]
Capabilities: [60] Power Management version 2
Capabilities: [44] AGP version 3.0
00: de 10 31 03 07 00 b0 02 a1 00 00 03 00 f8 00 00
10: 00 00 00 e0 08 00 00 d8 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30: 00 00 00 00 60 00 00 00 00 00 00 00 05 01 05 01
40: 00 00 00 00 02 00 30 00 1b 0e 00 1f 02 43 00 1f
50: 01 00 00 00 01 00 00 00 ce d6 23 00 0f 00 00 00
60: 01 44 02 00 00 00 00 00 00 00 00 00 00 00 00 00
70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Both complete output: http://www.marcush.de/bench/

Greetings,
Marcus

#3 lore raw
Quoted 8 lines · Marcus Hartig
Quoted 4 lines · Arjan van de Ven

hmm I wonder.. .could you collect lspci -vxxx settings for the AGP device (lspci -vxxx gives you lots of devices, but only one is relevant) in both cases, maybe the difference between the two shows something useful...

Hmmm...only the latency at the VGA card.

Was there any differnces in the devices at 00:00.0 and 00:01.0 ? (host & pci bridges)

Dave

#4 lore raw
Quoted 2 lines · Dave Jones

Was there any differnces in the devices at 00:00.0 and 00:01.0 ? (host & pci bridges)

Only the Host bridge line c0:

With AGPGART:
00:00.0 Host bridge: nVidia Corporation: Unknown device 00e1 (rev a1)
Subsystem: Micro-Star International Co., Ltd.: Unknown device 0300
Flags: bus master, 66Mhz, fast devsel, latency 0 Memory at d0000000 (32-bit, prefetchable) [size=128M]
Capabilities: [44] HyperTransport: Slave or Primary Interface
Capabilities: [c0] AGP version 3.0
00: de 10 e1 00 06 00 b0 00 a1 00 00 06 00 00 00 00
10: 08 00 00 d0 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 62 14 00 03
30: 00 00 00 00 44 00 00 00 00 00 00 00 ff 00 00 00
40: 62 14 00 03 08 c0 c0 01 22 00 11 11 d0 00 00 00
50: 23 05 3f 00 03 00 00 00 00 00 00 00 00 00 00 00
60: 32 31 03 00 66 45 04 00 66 06 00 00 00 00 00 00
70: 00 00 00 00 00 00 00 00 30 30 00 00 11 11 88 00
80: 13 88 88 00 c8 00 00 00 70 00 00 00 3f 00 00 00
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 07 00 00 00 66 00 66 00 00 00 00 00 00 00 00 00
c0: 02 00 30 00 1b 42 00 1f 01 00 00 00 ff ff ff ff
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

With NV_AGP:
00:00.0 Host bridge: nVidia Corporation: Unknown device 00e1 (rev a1)
Subsystem: Micro-Star International Co., Ltd.: Unknown device 0300
Flags: bus master, 66Mhz, fast devsel, latency 0 Memory at d0000000 (32-bit, prefetchable) [size=128M]
Capabilities: [44] HyperTransport: Slave or Primary Interface
Capabilities: [c0] AGP version 3.0
00: de 10 e1 00 06 00 b0 00 a1 00 00 06 00 00 00 00
10: 08 00 00 d0 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 62 14 00 03
30: 00 00 00 00 44 00 00 00 00 00 00 00 ff 00 00 00
40: 62 14 00 03 08 c0 c0 01 22 00 11 11 d0 00 00 00
50: 23 05 3f 00 03 00 00 00 00 00 00 00 00 00 00 00
60: 32 31 03 00 66 45 04 00 66 06 00 00 00 00 00 00
70: 00 00 00 00 00 00 00 00 30 30 00 00 11 11 88 00
80: 13 88 88 00 c8 00 00 00 70 00 00 00 3f 00 00 00
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 07 00 00 00 66 00 66 00 00 00 00 00 00 00 00 00
c0: 02 00 30 00 1b 42 00 1f 02 03 00 00 ff ff ff ff
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Greetings,
Marcus