[Cbe-oss-dev] [RFC] spufs: use master control bit in spu_run

Jeremy Kerr jk at ozlabs.org
Tue Nov 7 17:39:00 EST 2006


> I'm looking in to the problem at the moment.

OK, looks like the following change is the problem:

> @@ -316,12 +321,14 @@ out_drop_priv:
>  
>  out_unlock:
>         spu_release_exclusive(ctx);
> +out:
> +       ctx->ops->master_stop(ctx);
> +       up(&ctx->run_sema);
>         return ret;
>  }

We're now stopping the SPE before returning from spu_create. This means 
that the SPE is stopped when we send it the address of the isolated 
mode binary.

systemsim tells me that the SPE is blocked on channel 29 (the inbound 
mailbox). However, it also tells me that there are the necessary 3 
messages sitting in the inbound mailbox (?!). Is there some issue with 
sending mailbox messages to a stopped SPE?

However, we won't have this problem if we do the isolated mode setup in 
spu_run...

Regards,


Jeremy



More information about the cbe-oss-dev mailing list