-
Notifications
You must be signed in to change notification settings - Fork 322
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
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just need to align new IDs
src/include/ipc4/base_fw.h
Outdated
/* 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good idea! I use 100, big enough for 10 years.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we are using 31 we can name it using its real name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
29e9133
to
816596d
Compare
@lgirdwood update the ID name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mwasko this PR also reserves the in-use IDs until some process is created to align.
@ujfalusi pls review, does kernel align or does it require a similar PR ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments on the code documentation, otherwise looks good.
Update the basefw config query. Signed-off-by: Rander Wang <[email protected]>
a603a93
to
c488070
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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 <[email protected]>
@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