Skip to content

Commit

Permalink
ipc4: force HPRO during SET_DX enable core processing
Browse files Browse the repository at this point in the history
[TEST]

Signed-off-by: Adrian Bonislawski <[email protected]>
  • Loading branch information
abonislawski committed Feb 22, 2024
1 parent 1396e63 commit 2d3cb08
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ipc/ipc4/handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include <rtos/kernel.h>
#include <sof/trace/dma-trace.h>
#include <sof/lib_manager.h>
#include <sof/lib/cpu-clk-manager.h>

#if CONFIG_SOF_BOOT_TEST
/* CONFIG_SOF_BOOT_TEST depends on Zephyr */
Expand Down Expand Up @@ -1214,7 +1215,9 @@ static int ipc4_module_process_dx(struct ipc4_message_request *ipc4)
continue;

if (dx_info.dx_mask & BIT(core_id)) {
core_kcps_adjust(0, CLK_MAX_CPU_HZ / 1000);
ret = cpu_enable_core(core_id);
core_kcps_adjust(0, -CLK_MAX_CPU_HZ / 1000);
if (ret != 0) {
ipc_cmd_err(&ipc_tr, "failed to enable core %d", core_id);
return IPC4_FAILURE;
Expand Down

0 comments on commit 2d3cb08

Please sign in to comment.