On Thu, Dec 17, 2009 at 12:04:02AM +0100, Rafał Miłecki wrote:
> In future we will execute AtomBIOS commands from contexts (like power
> management) so we need to make sure we won't execute two commands at
> same time to prevent locking up GPU.
> 
> With this patch applied Sedat Dilek (RV515) was able to finally test
> my PM patch. Also tested on my RV620.
> 
> -- 
> Rafał

I am in favor of a different approach, using a r/w lock and
taking the lock in read in all path, and write in powermanager
& init path. Doc state that we need exclusive access to GPU
while doing PM stuff. Thus r/w lock sounds like what we want
to do. Should be hard to add that to ioctl & modesetting callback.

Never the less this patch might be usefull, as for instance
we might be doing modesetting at the same time on 2 different
head of an avivo gpu and this might lead to // execution of
atombios and it's my understanding that atombios code is not
safe in this regards.

Cheers,
Jerome

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to