-
Notifications
You must be signed in to change notification settings - Fork 142
Query FW config to reload library #4680
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -551,14 +551,15 @@ int hda_dsp_ipc4_load_library(struct snd_sof_dev *sdev, | |
| struct sof_ipc4_fw_library *fw_lib, bool reload) | ||
| { | ||
| struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; | ||
| struct sof_ipc4_fw_data *ipc4_data = sdev->private; | ||
| struct hdac_ext_stream *hext_stream; | ||
| struct firmware stripped_firmware; | ||
| struct sof_ipc4_msg msg = {}; | ||
| struct snd_dma_buffer dmab; | ||
| int ret, ret1; | ||
|
|
||
| /* IMR booting will restore the libraries as well, skip the loading */ | ||
| if (reload && hda->booted_from_imr) | ||
| /* if IMR booting is enabled and fw context is saved for D3 state, skip the loading */ | ||
| if (reload && hda->booted_from_imr && ipc4_data->fw_context_save) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it's a bit odd to have different structures to stored 'booted_from_imr' and 'fw_context_save'. Can we put all the information in the same place?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @plbossart booted_from_imr is a intel feature which is set in sof/intel layer. fw_context_save is a common feature which is set in sof core layer. So I don't prefer to combine them in hda structure. |
||
| return 0; | ||
|
|
||
| /* the fw_lib has been verified during loading, we can trust the validity here */ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -139,6 +139,8 @@ int sof_lnl_ops_init(struct snd_sof_dev *sdev) | |
|
|
||
| ipc4_data->mtrace_type = SOF_IPC4_MTRACE_INTEL_CAVS_2; | ||
|
|
||
| ipc4_data->fw_context_save = true; | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why do we need the default value to be true?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is for ref fw which supports it by default. Thanks @ujfalusi mentioned it for several times :) |
||
|
|
||
| /* External library loading support */ | ||
| ipc4_data->load_library = hda_dsp_ipc4_load_library; | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.