[Cbe-oss-dev] [PATCH 9:11] spufs: Fix access mechanism for problem state registers

Kazunori Asayama asayama at sm.sony.co.jp
Fri May 23 19:17:57 EST 2008


Kazunori Asayama wrote:
> Luke Browning wrote:
>> Fix access mechanism for problem state registers
>>
>> The current mechanism for providing access to problem state registers
>> is broken because it relies on the application to invoke spu_run for 
>> the target context.  This is convenient and it works most of the time
>> as the library is repeatedly driving spu_run to redrive the context
>> after processing an spu exception or event.  But, it is wrong as it
>> assumes that there will be another spu error or exception for the
>> target context.  There may or may not be.  It is also not desirable
>> from a performance perspective as it introduces delays into the 
>> application.  This patch activates the context in spufs_ps_nopfn
>> regardless of whether the target context is in kernel mode or user
>> mode.
>>
>> Signed-off-by: Luke Browning <lukebrowning at us.ibm.com>
> 
> I got the messages below from the kernel with this patch,
> by running a libspe2 test 'test_multiple_context.elf' with many
> SPE contexts:
> 
>   # cd libspe2/tests/libspe2.run
>   # make test_multiple_context.elf TEST_SPES=30

Oops, it's typo.
It should be "make check-test_multiple_context.elf TEST_SPES=30"

-- 
(ASAYAMA Kazunori
  (asayama at sm.sony.co.jp))
t



More information about the cbe-oss-dev mailing list