[Cbe-oss-dev] [RFC] [PATCH 2:8] SPU Gang Scheduling - deactivation

Arnd Bergmann arnd at arndb.de
Tue Mar 4 15:53:12 EST 2008


On Monday 03 March 2008, Luke Browning wrote:
> Fix problem with time slicing SPUs that are executing remote library routines
> 
> If time slicing catches a context while it is executing library code (ie. lazily
> loaded), the context is unloaded and put on the runqueue.  Later, when the library 
> routine completes, the controlling thread tries to restart the context by invoking
> spu_run() which asserts that the context is not on run queue.  
> 
> This patch removes the BUG_ON() in __spu_update_sched_info() and adds logic to 
> remove the context from the runqueue before activating it.
> 
> This fixes a pre-existing bug in the spufs scheduler and is not related to gangs.

As discussed before, this shouldn't happen, as a gang should not
become scheduled if it has one thread in it that is not actually
trying to run.

	Arnd <><



More information about the cbe-oss-dev mailing list