RTEMS | Draft: cpukit: Create DHRL Library for DRAM Latency Mitigation (!1193)
Wayne Thornton (@wmthornton-dev)
gitlab at rtems.org
Fri Apr 10 20:56:41 UTC 2026
Wayne Thornton commented on a discussion on cpukit/dhrl/dhrl.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1193#note_148417
> +
> + // Initialize Worker B
> + sc = rtems_task_create(
> + rtems_build_name( 'D', 'H', 'R', 'B' ),
> + priority,
> + RTEMS_MINIMUM_STACK_SIZE,
> + RTEMS_DEFAULT_MODES,
> + RTEMS_DEFAULT_ATTRIBUTES,
> + &dhrl_worker_b_id
> + );
> + if ( sc != RTEMS_SUCCESSFUL ) {
> + return sc;
> + }
> +
> + CPU_ZERO( &cpuset );
> + CPU_SET( core_b, &cpuset );
The dhrl_init function checks the return code of rtems_task_set_affinity and will safely abort if the scheduler fails to apply the CPU mask. Do you recall which specific SMP scheduler algorithm might be missing the operation so I can ensure my test suite catches that edge case?
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1193#note_148417
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260410/5ae986a8/attachment.htm>
More information about the bugs
mailing list