RTEMS | cpukit: Create DHRL Library for DRAM Latency Mitigation (!1193)

Gedare Bloom (@gedare) gitlab at rtems.org
Wed May 20 20:47:33 UTC 2026




Gedare Bloom started a new discussion on cpukit/dhrl/dhrl.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1193#note_150598

 > +    next_epoch,
 > +    memory_order_release
 > +  );
 > +
 > +  rtems_barrier_wait( ctx->start_barrier, RTEMS_NO_TIMEOUT );
 > +
 > +  /* Spin utilizing the architecture-specific _CPU_Pause_speculation instruction hook */
 > +  while (
 > +    atomic_load_explicit( &ctx->winning_data_ptr, memory_order_acquire ) ==
 > +    (uintptr_t) NULL
 > +  ) {
 > +    _CPU_Pause_speculation();
 > +  }
 > +
 > +  winning_result = (volatile void *)
 > +    atomic_load_explicit( &ctx->winning_data_ptr, memory_order_acquire );

This could be simplified.

```
while ( winning_result == NULL ) {
  winning_result = atomic_load_explicit(...);
  _CPU_Pause_speculation();
}
```

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1193#note_150598
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/20260520/33215ca5/attachment-0001.htm>


More information about the bugs mailing list