Skip to content

Commit c488070

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 1b80c83 commit c488070

2 files changed

Lines changed: 9 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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,11 @@ 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+
/* Intel reserved */
369+
IPC4_INTEL_RESERVED_29 = 29,
370+
IPC4_INTEL_RESERVED_30 = 30,
371+
/* FW context save on D3 entry */
372+
IPC4_FW_CONTEXT_SAVE = 31,
368373
/* Total number of FW config parameters */
369374
IPC4_FW_CFG_PARAMS_COUNT,
370375
/* Max config parameter id */

0 commit comments

Comments
 (0)