[PATCH 4/4] score: Use Resource Handler for MrsP semaphores

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Jun 3 14:23:56 UTC 2014


On 2014-06-03 16:14, Gedare Bloom wrote:
> On Tue, Jun 3, 2014 at 6:55 AM, Sebastian Huber
> <sebastian.huber at embedded-brains.de>  wrote:
>> >
>> >I think the bigger problem is that the priority inheritance affects only one
>> >level, see new test sptests/spsem03.
>> >
>> >
> Is there a bug PR associated with this test? The behavior under test
> looks like a bug to me.

I don't know how old the priority inheritance implementation is in RTEMS, but I 
guess it is very old.  So this is probably not a bug, its a feature.

With the simple resource count base implementation I think it is impossible to 
recursively walk though the resource dependency tree.  You would have to use 
object specific information (for example CORE_mutex_Control::holder) which is 
difficult to access from object agnostic routines.

I want to address these issues with the Resource Handler for the MrsP 
semaphores.  See diagram here:

http://www.rtems.org/onlinedocs/doxygen/cpukit/html/group__ScoreResource.html

Lets suppose all the resources r0 up to r15 are MrsP semaphores, then the owner 
n0 of the resource tree can execute using (= scheduler instance + priority) all 
the n1 up to n15 nodes (= threads waiting for resource access).

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list