On Wed, Dec 11, 2002 at 11:02:14PM +0100, Denis Oliver Kropp wrote: > Quoting Ville Syrj?l? ([EMAIL PROTECTED]): > > > > sys-vid > > > > Blit 3.09 secs ( 67.91 MPixel/sec) > > > > > > SW (seems too slow, but may be correct for 32bit) > > > > I'm testing @ 16bit. > > Did you turn off MTRR for video memory?
No. Here's my /proc/mtrr reg00: base=0x00000000 ( 0MB), size= 512MB: write-back, count=1 reg01: base=0xd0000000 (3328MB), size= 32MB: write-combining, count=1 reg05: base=0xc0000000 (3072MB), size= 256MB: write-combining, count=1 > > > > agp-agp > > > > Blit 3.01 secs ( 91.44 MPixel/sec) > > > > > > HW (seems normal) > > > > I'm wondering why it's so much slower than vid-agp. > > Maybe full duplex AGP transfers are not the supposed usage. Possibly. > > > > agp-sys > > > > Blit 3.65 secs ( 8.98 MPixel/sec) > > > > > > SW (way too slow, should be as fast as sys-sys) > > > > Well AFAIK the AGP memory is non-cacheable but still. It's not much faster > > than vid-sys. Not good at all. I'll have to code a small agpgart only test > > app and see if I can reproduce these results... > > Why shouldn't it be cacheable anymore? To avoid some cache coherency problems I think. Or is that just for the normal mapping and not the AGP aperture? Well I just tried with a simple app that just allocates some AGP memory, mallocs some normal memory and does memcpy()s a few times. Now the results are even worse than with Blit() sys->agp: 90 MB/s agp->sys: 17 MB/s but if I change the AGP aperture mtrr to write-back I get: sys->agp: 180 MB/s agp->sys: 150 MB/s Ok I just ripped mem2agpcpy() from mplayer and things got interesting. write-combining: sys->agp: 390 MB/s agp->sys: 30 MB/s write-back: sys->agp: 400 MB/s agp->sys: 370 MB/s So with this optimized routine write-combining is almost as fast as write-back. I just tried with "uncachable" too and sys->agp went to 130 MB/s and agp->sys reamined at 30 MB/s. So with write combining reads are uncacheable. No very nice at all. Some googling revealed some linux-kernel discussion about the very same thing. Apparently the AGP protocol requires this :( -- Ville Syrj�l� [EMAIL PROTECTED] http://www.sci.fi/~syrjala/ -- Info: To unsubscribe send a mail to [EMAIL PROTECTED] with "unsubscribe directfb-dev" as subject.
