Skip to content

Comments

Update mtl 005 ipc D3#7865

Merged
abonislawski merged 10 commits intothesofproject:mtl-005-drop-stablefrom
aborisovich:update-mtl-005-ipc-d3
Jun 27, 2023
Merged

Update mtl 005 ipc D3#7865
abonislawski merged 10 commits intothesofproject:mtl-005-drop-stablefrom
aborisovich:update-mtl-005-ipc-d3

Conversation

@aborisovich
Copy link
Contributor

@aborisovich aborisovich commented Jun 27, 2023

This PR updates old implementation of IPC Device support for power transition and updates with updated implementation from the #7325 PR.

Had to also include content of #7597 as dependency.

Signed-off-by: Andrey Borisovich andrey.borisovich@intel.com

Andrey Borisovich and others added 10 commits June 27, 2023 15:22
This reverts commit 6c57b64.
Newer commits from SOF main implementing D3 will replace this.

Signed-off-by: Andrey Borisovich <andrey.borisovich@intel.com>
This reverts commit de1d6c0.
Newer commits implementing D3 support will replace this implementation.

Signed-off-by: Andrey Borisovich <andrey.borisovich@intel.com>
…tion"

This reverts commit 42b8427.
This commit will be replaced by the newer D3 implementation.

Signed-off-by: Andrey Borisovich <andrey.borisovich@intel.com>
For emergency like FW panic event, we need to send notification IPC
message to host directly without inserting this message in msg_list
since at this time the system is not stable now and it is very possible
that the normal message processing logic can't work.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Signed-off-by: Rander Wang <rander.wang@intel.com>
Co-developed-by: Rander Wang <rander.wang@intel.com>
Send panic notification message to host when panic happens. The panic
detail is built by Zephyr framework and included in debug memory window.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Signed-off-by: Rander Wang <rander.wang@intel.com>
Co-developed-by: Rander Wang <rander.wang@intel.com>
During PowerOff (D3) transition Zephyr Power Manager must have
a pointer in IMR to save the LP/HPSRAM memory before
powering off.

As zephyr has no access to IMR heap, the memory must
be allocated by SOF

Signed-off-by: Marcin Szkudlinski <marcin.szkudlinski@intel.com>
…SIVE

Zephyr turns on by default CONFIG_PM_DEVICE_RUNTIME_EXCLUSIVE option
what causes Devices using Zephyr Device System Power Manager to
be ignored during SoC power transition. Disabled this option so we
can use default Zephyr kernel behavior to shut down Devices.

Signed-off-by: Andrey Borisovich <andrey.borisovich@intel.com>
Added IPC4 callbacks 'suspend_handler' and 'resume_handler'
to control Zephyr IPC driver.

Co-developed-by: Tomasz Leman <tomasz.m.leman@intel.com>
Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
Signed-off-by: Andrey Borisovich <andrey.borisovich@intel.com>
Enabled CONFIG_ADSP_IMR_CONTEXT_SAVE option in Kconfig
in the board configuration.

Signed-off-by: Andrey Borisovich <andrey.borisovich@intel.com>
During IPC Device power transition errors may be encountered related to
invalid system state or IPC messages waiting to be send.
In this case we are going to send an IPC response to Host bypassing
schedulers. IPC Device will not change power state when errors occur
preventing whole system from the suspend.

Signed-off-by: Andrey Borisovich <andrey.borisovich@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants