Skip to content

Commit

Permalink
arm64: zynqmp: Fix lockstep mode cpu release functionality
Browse files Browse the repository at this point in the history
For lockstep mode, cpu_release function is expecting to execute on R5 core
0, if there is attempt to pass other than R5 core 0, through an error
saying "Lockstep mode should run on R5 core 0 only".

Signed-off-by: Venkatesh Yadav Abbarapu <[email protected]>
State: pending
  • Loading branch information
Venkatesh Yadav Abbarapu authored and michalsimek committed Jun 7, 2023
1 parent 0635928 commit 870d031
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/arm/mach-zynqmp/mp.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,10 @@ int cpu_release(u32 nr, int argc, char *const argv[])
flush_dcache_all();

if (!strncmp(argv[1], "lockstep", 8)) {
if (nr != ZYNQMP_CORE_RPU0) {
printf("Lockstep mode should run on ZYNQMP_CORE_RPU0\n");
return 1;
}
printf("R5 lockstep mode\n");
set_r5_reset(nr, LOCK);
set_r5_tcm_mode(LOCK);
Expand Down

0 comments on commit 870d031

Please sign in to comment.