Skip to content

Commit 9d0fea8

Browse files
committed
basefw: add support for fw config query for context save
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 <rander.wang@intel.com>
1 parent 991a61f commit 9d0fea8

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/audio/base_fw.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ static int basefw_config(uint32_t *data_offset, char *data)
111111
sche_cfg.sys_tick_source = SOF_SCHEDULE_LL_TIMER;
112112
tlv_value_set(tuple, IPC4_SCHEDULER_CONFIGURATION, sizeof(sche_cfg), &sche_cfg);
113113

114+
tuple = tlv_next(tuple);
115+
tlv_value_uint32_set(tuple, IPC4_FW_CONTEXT_SAVE,
116+
IS_ENABLED(CONFIG_ADSP_IMR_CONTEXT_SAVE));
117+
114118
tuple = tlv_next(tuple);
115119
*data_offset = (int)((char *)tuple - data);
116120

src/include/ipc4/base_fw.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,8 @@ enum ipc4_fw_config_params {
365365
IPC4_KPB_RT_SINK_COUNT = 27,
366366
/* Manual control of DMI L1 state */
367367
IPC4_DMI_FORCE_L1_EXIT = 28,
368+
/* FW context save on D3 entry */
369+
IPC4_FW_CONTEXT_SAVE = 29,
368370
/* Total number of FW config parameters */
369371
IPC4_FW_CFG_PARAMS_COUNT,
370372
/* Max config parameter id */

0 commit comments

Comments
 (0)