>
> I can't find the lock from a quick code inspection.. I'll add the
> reschedule to a test drm and I'll build my kernel with all the debugging
> on...
>
I'm running the attached patch to the DRM in CVS on 2.6.8.1 and I'm not
seeing any drm related xruns.. there are other places that can do with
fixing up (and of coures the other drivers..)
I'm also not seeing any sleep inside locks.. (I'm just playing neverwinter
nights with lots of graphics on ..)
Dave.
Index: radeon_cp.c
===================================================================
RCS file: /cvs/dri/drm/shared/radeon_cp.c,v
retrieving revision 1.37
diff -u -r1.37 radeon_cp.c
--- radeon_cp.c 23 Aug 2004 10:05:01 -0000 1.37
+++ radeon_cp.c 23 Aug 2004 11:09:08 -0000
@@ -631,7 +631,15 @@
int slots = ( RADEON_READ( RADEON_RBBM_STATUS )
& RADEON_RBBM_FIFOCNT_MASK );
if ( slots >= entries ) return 0;
- DRM_UDELAY( 1 );
+
+ if (need_resched()) {
+ cond_resched();
+ }
+
+ if (( i & 127 ) == 127 ) {
+ msleep(1);
+ }
+ // DRM_UDELAY( 1 );
}
#if RADEON_FIFO_DEBUG
@@ -656,7 +664,14 @@
radeon_do_pixcache_flush( dev_priv );
return 0;
}
- DRM_UDELAY( 1 );
+
+ if (need_resched()) {
+ cond_resched();
+ }
+
+ if (( i & 127 ) == 127 ) {
+ msleep(1);
+ }
}
#if RADEON_FIFO_DEBUG
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
--
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel