Subject: CVS commit: src/sys/dev/drm
To: None <source-changes@NetBSD.org>
From: Blair Sadewitz <bjs@netbsd.org>
List: source-changes
Date: 11/01/2007 13:20:04
Module Name:	src
Committed By:	bjs
Date:		Thu Nov  1 13:20:04 UTC 2007

Modified Files:
	src/sys/dev/drm: drmP.h

Log Message:
Until I have a chance to further evaluate and re-work the locking here,
change from an adaptive to spin mutex @ IPL_TTY.  This seems to mitigate
or eliminate a lot of locking-related issues (such as a hang when running
glxgears under AIGLX).  Tested by me and Vincent <10.50@free.fr>.

In this code, we have three locks: irq, dma, and device.  If anyone has
any thoughts on how to improve this situation, e.g. by using different
lock types/priorities/soft interrupts/etc. for different locks, please
share them with me.

NOTE: I've had the best results thusfar using Mesa 7.0.2-rc1 (r300 users
could even try the r300 driver code from the master branch) and xorg-server
1.4+patches from GIT.


To generate a diff of this commit:
cvs rdiff -r1.8 -r1.9 src/sys/dev/drm/drmP.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.