Skip to content

Commit

Permalink
basefw: add support for fw config query for context save
Browse files Browse the repository at this point in the history
If CONFIG_ADSP_IMR_CONTEXT_SAVE is enabled, base fw will report
fw_context_save is supported to host. Driver will assume fw doesn't
support this feature if it is not reported.

Signed-off-by: Rander Wang <[email protected]>
  • Loading branch information
RanderWang committed Nov 13, 2023
1 parent 991a61f commit 29e9133
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/audio/base_fw.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ static int basefw_config(uint32_t *data_offset, char *data)
sche_cfg.sys_tick_source = SOF_SCHEDULE_LL_TIMER;
tlv_value_set(tuple, IPC4_SCHEDULER_CONFIGURATION, sizeof(sche_cfg), &sche_cfg);

tuple = tlv_next(tuple);
tlv_value_uint32_set(tuple, IPC4_INTEL_RESRVED_31,
IS_ENABLED(CONFIG_ADSP_IMR_CONTEXT_SAVE));

tuple = tlv_next(tuple);
*data_offset = (int)((char *)tuple - data);

Expand Down
4 changes: 4 additions & 0 deletions src/include/ipc4/base_fw.h
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,10 @@ enum ipc4_fw_config_params {
IPC4_KPB_RT_SINK_COUNT = 27,
/* Manual control of DMI L1 state */
IPC4_DMI_FORCE_L1_EXIT = 28,
/* Intel reserved */
IPC4_INTEL_RESRVED_29 = 29,
IPC4_INTEL_RESRVED_30 = 30,
IPC4_INTEL_RESRVED_31 = 31,
/* Total number of FW config parameters */
IPC4_FW_CFG_PARAMS_COUNT,
/* Max config parameter id */
Expand Down

0 comments on commit 29e9133

Please sign in to comment.