[Openchrome-users] slow GART memory - CN700
Thomas Hellström
thomas
Wed Dec 6 04:51:39 PST 2006
Dmitri Khokhlov wrote:
>Thomas,
>
>The testgart (http://dri.sourceforge.net/res/testgart.c) does cover allocated memory range with MTRR:
>
>reg00: base=0x00000000 ( 0MB), size=1024MB: write-back, count=1
>reg01: base=0x3c000000 ( 960MB), size= 64MB: uncachable, count=1
>reg02: base=0xe8000000 (3712MB), size= 128MB: write-combining, count=2
>
>Forgot to mention, that the via video driver is not configured. vesa driver is used by default. Could it be a problem?
>
>--
>Dmitri
>
>
Nope, not really.
What is the memory benchmark really doing?
Writing to the AGP aperture should be as fast as the processor can cope
with, but reading from it is dead slow. Usually around 10MiB/s. This is
because the processor can't cache GART memory. Also remember that
binding memory to GART has a latency of around 0.1 - 1 ms.
Is it your post on VIAArena?
If you want to access system memory from a PCI device, you should
consider using streaming PCI DMA,
at least if the device can handle non-contigous memory.
Take a look at "Writing linux device drivers" , chapter 15:
http://lwn.net/Kernel/LDD3/
/Thomas
>-----Original Message-----
>From: Thomas Hellstr?m [mailto:thomas at tungstengraphics.com]
>Sent: Wednesday, December 06, 2006 12:04 AM
>To: Dmitri Khokhlov
>Cc: openchrome-users at openchrome.org
>Subject: Re: [Openchrome-users] slow GART memory - CN700
>
>Dmitri Khokhlov wrote:
>
>
>
>>Hi,
>>
>>I have EN15000 board - C7 1.5Ghz, CN700 & VT8237R (Optimized settings
>>in BIOS). FC5 with kernel 2.6.17.
>>The testgart shows extremely low memory performance:
>>
>>version: 0.101
>>bridge id: 0x3141106
>>agp_mode: 0x7000a0b
>>aper_base: 0xe8000000
>>aper_size: 128
>>pg_total: 224768
>>pg_system: 224768
>>pg_used: 0
>>entry.key : 0
>>entry.key : 1
>>Allocated 8 megs of GART memory
>>MemoryBenchmark: 14 mb/s
>>MemoryBenchmark: 14 mb/s
>>MemoryBenchmark: 14 mb/s
>>Average speed: 14 mb/s
>>Testing data integrity (1st pass): passed on first pass.
>>Testing data integrity (2nd pass): passed on second pass.
>>dmesg:
>>
>>Linux agpgart interface v0.101 (c) Dave Jones
>>agpgart: Detected VIA P4M800CE chipset
>>agpgart: AGP aperture is 128M @ 0xe8000000
>>
>>What could be a problem here?
>>
>>
>
>It looks like MTRR has not been setup correctly.
>The DRM should do this automatically when GART memory is enabled through DRM, but I'm not sure the "testgart" application does this.
>
>Check the output of /proc/mtrr.
>
>/Thomas
>
>
>
>
>>
>>Thanks
>>Dmitri
>>
>>-----------------------------------------------------------------------
>>-
>>
>>_______________________________________________
>>openchrome-users mailing list
>>openchrome-users at openchrome.org
>>http://wiki.openchrome.org/mailman/listinfo/openchrome-users
>>Main page:
>>http://www.openchrome.org
>>Wiki:
>>http://wiki.openchrome.org
>>User Forum:
>>http://wiki.openchrome.org/tikiwiki/tiki-view_forum.php?forumId=1
>>
>>
>>
>
>
>
>
>
More information about the Openchrome-users
mailing list