Uh oh!
There was an error while loading. Please reload this page.
board: intel_adsp_ace15_mtpm: Disable IMR context save for MTL - #7994
board: intel_adsp_ace15_mtpm: Disable IMR context save for MTL#7994mengdonglin wants to merge 0 commit into
Conversation
gkbldcig
commented
Aug 13, 2023
Can one of the admins verify this patch? |
SOFCI TEST |
1757454 to
37d6c34Compare
lgirdwood
left a comment
There was a problem hiding this comment.
@mengdonglin thanks, lets enable when needed by developers.
mengdonglin
commented
Aug 30, 2023
@kv2019i@lgirdwood@gkbldcig@abonislawski
|
lgirdwood
commented
Aug 30, 2023
@wszypelt@lrudyX I checked QB CI log: https://quickbuild.igk.intel.com/build/12698102/log It seems building completed successfully for MTL and LNL, but CI cannot trigger smoke test. Can you help check where it fails? |
mengdonglin
commented
Aug 31, 2023
@RanderWang@lyakh@kv2019i@abonislawski Can you help evaluate whether setting I learned from @RanderWang that cavs2.5 platform needs an extra 'z_init_cpu' to support multi-core. But since in https://github.com/thesofproject/sof/blob/main/zephyr/lib/cpu.c, we don't know if the SoC is MTL or cavs2.5, so we depend on CONFIG_ADSP_IMR_CONTEXT_SAVE to distinguish MTL from cavs2.5: @RanderWang Can you please confirm MTL doesn't need 'z_init_cpu' no matter CONFIG_ADSP_IMR_CONTEXT_SAVE is set or not? |
RanderWang
commented
Aug 31, 2023
@tmleman MTL doesn't need 'z_init_cpu' for your comment ? |
wszypelt
commented
Aug 31, 2023
@mengdonglin@lgirdwood |
lyakh
commented
Aug 31, 2023
sorry, don't understand why we cannot check the DSP version there? |
tmleman
commented
Aug 31, 2023
Yes, if we want to disable this feature we need to change this condition. Second cpu init will break multicore support on MTL. |
tmleman
left a comment
There was a problem hiding this comment.
I'm blocking it so it doesn't get merge too early. Additional changes are required.
@tmleman Thanks for the confirmation! Can you please share more info why second cpu init will break multicore support on MTL (even w/o IMR context save?) but not on cavs2.5 platforms? And can we make another PR to decide whether it's MTL or cavs2.5 in https://github.com/thesofproject/sof/blob/main/zephyr/lib/cpu.c#L151, something like this? CONFIG_ACE is defined for MTL in https://github.com/thesofproject/sof/blob/main/src/platform/Kconfig#L22 @RanderWang@lyakh What do you think? |
btian1
commented
Sep 1, 2023
is it for LNL PORed feature? if not, I would suggest disable on LNL as well. |
mengdonglin
commented
Sep 1, 2023
|
lyakh
commented
Sep 1, 2023
if that's what works (and after replacing |
tmleman
commented
Sep 1, 2023
@mengdonglin@lyakh when you are doing set_dx only for secondary cores no IMR context save takes place. Context save to IMR is done only when we are disabling primary core. In case of a secondary core, Idle thread stack is still in memory and by calling I discussed this with the team and we would prefer this feature to be disabled only on release branches. I suggest we discuss this further on Tuesday's sync. |
lyakh
commented
Sep 5, 2023
@tmleman I don't think that was my concern. I just meant that specific change from checking for
If we replace the check for
|
tmleman
commented
Sep 5, 2023
This is how it should look like. |
mengdonglin
commented
Sep 5, 2023
mengdonglin
commented
Sep 5, 2023
lyakh
commented
Sep 5, 2023
How about something like this for the comment in that file: But please double-check that this is exactly what we need because it sounds strange. |
tmleman
commented
Sep 6, 2023
@mengdonglin Do I understand it correctly? We will disable CONFIG_ADSP_IMR_CONTEXT_SAVE on main branch for purpose of 2.7 release and then re-enable it? |
kv2019i
left a comment
There was a problem hiding this comment.
@tmleman@mengdonglin Let's not merge this for main and instead just do a patch to stable-v2.7

Disable IMR context save on MTL by default, as it isn't a mandatory feature for MTL.
The feature implementation is kept. So users can set CONFIG_ADSP_IMR_CONTEXT_SAVE=y to use this feature.
This is also to save some latency for audio to suspend #8071