From: <th...@tu...> - 2007-11-18 20:35:05
|
Jerome Glisse wrote: >Hi, > >If my driver emit fence function fail should there be a way >to clean unfenced buffer ? Or should i do this by myself in >the function which validate buffer ? If so then i915 execbuffer >is likely buggy in this regards (don't try to unload module >then as it will trigger BUG_ON(!list_empty(&bm->unfenced)) > >Cheers, >Jerome Glisse > > > Hi. If fencing fails, the function that validates the buffer must clean the unfenced list. There is a function to clean the unfenced list in drm_bo.c. This is typically called if the function receives a signal while waiting to validate a buffer, which is a very common case if the X server is the caller. If command submission has already occured when fencing fails, the calling function must wait for GPU idle before cleaning the list. /Thomas >------------------------------------------------------------------------- >This SF.net email is sponsored by: Microsoft >Defy all challenges. Microsoft(R) Visual Studio 2005. >http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >-- >_______________________________________________ >Dri-devel mailing list >Dri...@li... >https://lists.sourceforge.net/lists/listinfo/dri-devel > > |