feat(pal): Enable MMU and caches on secondary PEs#208
feat(pal): Enable MMU and caches on secondary PEs#208chetan-rathore merged 3 commits intoARM-software:mainfrom
Conversation
ashishsingha
commented
Jan 11, 2026
- Capture primary PE's MMU configuration during PE info table creation
- Secondary PEs now enable MMU and caches using primary PE's configuration
- Disable MMU and caches before PSCI CPU_OFF on secondary PEs
- This ensures consistent memory behavior across all PEs during test execution
|
@chetan-rathore Please let me know what you think about it. |
|
Hi @ashishsingha, Thanks for your contribution— we’ll review the changes. Could you also share more details about the issue you observed that led to this update? |
Hi @chetan-rathore This is an enhancement where secondary CPUs won’t see timing delta while accessing any memory compared to primary CPU as now caches and MMUs will be enabled across the board. For example, if we change timer test to detect skew and drift in timer across CPUs, we need the execution environment to be same and optimal. It’ll help with performance related measurements too. |
|
Hi @ashishsingha, In the meanwhile, a minor comment on the implementation - ACS doesn’t need to disable the MMU and caches before powering off the secondary PEs, the cleanup should be handled by the EL3 firmware. The rest of the code looks good. We’ll share any findings from our validation. |
034ab6d to
926ab6a
Compare
- Capture primary PE's MMU configuration during PE info table creation - Secondary PEs now enable MMU and caches using primary PE's configuration - Disable MMU and caches before PSCI CPU_OFF on secondary PEs - This ensures consistent memory behavior across all PEs during test execution Signed-off-by: Ashish Singhal <ashishsingha@nvidia.com>
926ab6a to
5730b43
Compare
@SrikarJosyula I have addressed the feedback and have updated the PR. Can you please review again? |
@chetan-rathore @SrikarJosyula Any update on this? |
|
Hi @ashishsingha, |
|
Hi @ashishsingha, some files require copyright updates. I've submitted a PR to your fork, please review. |
- updated copyright year to 2026 for the modified files. Signed-off-by: Srikar Josyula <srikar.josyula@arm.com>
I have merged it. |