Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

basefw: add support for fw config query for context save #8428

Merged
merged 2 commits into from
Nov 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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_FW_CONTEXT_SAVE,
IS_ENABLED(CONFIG_ADSP_IMR_CONTEXT_SAVE));

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

Expand Down
8 changes: 8 additions & 0 deletions src/include/ipc4/base_fw.h
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,14 @@ enum ipc4_fw_config_params {
IPC4_TELEMETRY_BUFFER_SIZE = 24,
/* HW version information */
IPC4_BUS_HARDWARE_ID = 25,
/* Total memory size available in debug window */
RanderWang marked this conversation as resolved.
Show resolved Hide resolved
IPC4_DEBUG_WINDOW_SIZE = 26,
/* Number of realtime Key Phrase Buffer (KPB) output pins */
IPC4_KPB_RT_SINK_COUNT = 27,
/* Manual control of DMI L1 state */
IPC4_DMI_FORCE_L1_EXIT = 28,
/* FW context save on D3 entry */
IPC4_FW_CONTEXT_SAVE = 29,
/* Total number of FW config parameters */
IPC4_FW_CFG_PARAMS_COUNT,
/* Max config parameter id */
Expand Down