[Cbe-oss-dev] [CVS sw] * Updated version of the 6 previous affinity patches, with changes related

Christoph Hellwig hch at lst.de
Tue Apr 17 00:36:00 EST 2007


On Fri, Mar 23, 2007 at 06:17:38PM -0300, Luke Browning wrote:
> around the assignment of the context to the spu structure.  It doesn't 
> provide a full solution to the NOSCHED - Affinity problem, because there
> is still a race condition in the allocation of NOSCHED context and the
> assignment of the context to an spu for scheduling purposes.  It is a 
> first step towards a solution.  I don't think that you can come up with
> a solution to the larger problem based solely on atomic primitives.
> This patch avoids the immediate problem of taking a data storage
> interrupt for a non-protected reference. 
> 
> Haven't tested it yet.  Wanted to get feedback first.

I tried to rebase this ontop of my patches and include it, but
unfortunately this causes crashes because the various spu operations
expect spu->ctx to be non-NULL, but we null it out before switching
the the operation vector pointer in spu_unbind_context.

I suspect we'll have to do the more complicated approach, but I'm
not unhappy with that as it also solves LOR problems in some ideas
I have for the future scheduler evolution.




More information about the cbe-oss-dev mailing list