RTEMS | cpukit: Create DHRL Library for DRAM Latency Mitigation (!1193)
Wayne Thornton (@wmthornton-dev)
gitlab at rtems.org
Thu May 21 15:31:56 UTC 2026
Wayne Thornton commented on a discussion on cpukit/dhrl/dhrl.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1193#note_150698
> + }
> +
> + uint8_t best_bit = 6;
> + uint64_t lowest_latency = UINT64_MAX;
> +
> + uint8_t max_safe_bit = 0;
> + size_t safe_size = ctx->active_config.memory_region_size / 2;
> + while ( safe_size > 1 ) {
> + max_safe_bit++;
> + safe_size >>= 1;
> + }
> +
> + dhrl_debug_printk(
> + "\nDetermining DDR Interleave Bit (Testing bits 6 to %u)...\n",
> + max_safe_bit
> + );
Done. I've added RTEMS_DHRL_DEBUG to the `cpuopts.yml` file and moved `#define` to source code. Will be pushed in next commit.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1193#note_150698
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/20260521/cecb24aa/attachment-0001.htm>
More information about the bugs
mailing list