basefw: add support for fw config query for context save#8428
basefw: add support for fw config query for context save#8428lgirdwood merged 2 commits intothesofproject:mainfrom
Conversation
28bd520 to
50c268f
Compare
50c268f to
8f19cf0
Compare
|
on kernel side, I change the default value of fw_context_save on TGL & MTL to ture, unless fw overrides it |
btian1
left a comment
There was a problem hiding this comment.
just a suggestion in comments:
If CONFIG_ADSP_IMR_CONTEXT_SAVE is enabled, base fw will report
fw_context_save is supported to driver. Driver will assume fw doesn't
support this feature if it is not reported.
The assumption is that the context save is supported if IMR is supported. We need negative flagging for this. |
@ujfalusi how about ID now ? We don't need negative flag sine the default value in kernel is true, not false. |
src/include/ipc4/base_fw.h
Outdated
| IPC4_FW_CONTEXT_SAVE, | ||
| /* Max config parameter id */ | ||
| IPC4_MAX_FW_CFG_PARAM = IPC4_FW_CFG_PARAMS_COUNT - 1, | ||
| IPC4_MAX_FW_CFG_PARAM = IPC4_FW_CONTEXT_SAVE - 1, |
There was a problem hiding this comment.
@RanderWang @ujfalusi @mwasko @marcinszkudlinski to be on the safe side - can we add our new Intel reserved IDs as part of this PR and I think its going to be better if we also assign the numbers when updating this enum. i.e there is no ambiguos enum, developers should always see
IPC4_SOME_ENUM = NUMBER,
There was a problem hiding this comment.
good idea! I use 100, big enough for 10 years.
There was a problem hiding this comment.
good idea! I use 100, big enough for 10 years.
be careful, our industry has a bad experinces with quotes like these ;)
456d157 to
1ff2579
Compare
|
reserve 100 for this config |
1ff2579 to
9d0fea8
Compare
|
@lgirdwood sync latest config from ref fw. |
6b78836 to
ffb1746
Compare
|
@lgirdwood I reserved 3 id, how about it ? Thanks! |
ffb1746 to
29e9133
Compare
src/include/ipc4/base_fw.h
Outdated
| /* Intel reserved */ | ||
| IPC4_INTEL_RESRVED_29 = 29, | ||
| IPC4_INTEL_RESRVED_30 = 30, | ||
| IPC4_INTEL_RESRVED_31 = 31, |
There was a problem hiding this comment.
If we are using 31 we can name it using its real name.
29e9133 to
816596d
Compare
|
@lgirdwood update the ID name |
|
@ujfalusi pls review, does kernel align or does it require a similar PR ? |
kv2019i
left a comment
There was a problem hiding this comment.
A few comments on the code documentation, otherwise looks good.
Update the basefw config query. Signed-off-by: Rander Wang <rander.wang@intel.com>
a603a93 to
c488070
Compare
|
@RanderWang can you check the CI (and/or repush if this is transient as probably is the case)? |
|
SOFCI TEST |
|
Will update it according to ref fw which has merged a config |
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>
|
@lgirdwood @kv2019i update PR to follow ref fw https://github.com/intel-innersource/drivers.audio.firmware.cavs-ace/pull/1533 |
c488070 to
7b2cd87
Compare
|
SOFCI TEST |
If CONFIG_ADSP_IMR_CONTEXT_SAVE is enabled, base fw will report fw_context_save is supported to host
kernel pr: thesofproject/linux#4680