Skip to content

Fix D3 sequence for TGL - #6725

Merged
lgirdwood merged 1 commit into
thesofproject:mainfrom
ranj063:main-120522
Dec 7, 2022
Merged

lgirdwood merged 1 commit into
thesofproject:mainfrom
ranj063:main-120522

Conversation

@ranj063

@ranj063 ranj063 commented Dec 6, 2022 •

Copy link
Copy Markdown
Collaborator

This makes the D3 sequence for IPC3 and IPC4 identical for TGL and fixes #6679 on TGL

@miRoox

miRoox commented Dec 6, 2022

Copy link
Copy Markdown

This patch seems not helpful for MTL, #6679 is still reproducible with it on MTL.

@tmleman tmleman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR6440 this patch is required to test D3 on MTL at all.

Comment thread src/ipc/ipc4/handler.c Outdated
Comment on lines 880 to 885

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#if !defined(CONFIG_LIBRARY) && !defined(CONFIG_PM)

On MTL function platform_timer_stop does nothing from what I've seen.
Interrupts will be disabled later by the PM.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tmleman may I ask why you are suggesting !defined(CONFIG_PM)? Did you mean defined(CONFIG_PM) instead? Would defined(CONFIG_CAVS) be a better option for TGL?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!defined(CONFIG_PM) and defined(CONFIG_CAVS) will have the same result. In my opinion, this code should not go to MTL. It will also probably not be needed once CAVS platforms start using the Zephyr power manager.

defined(CONFIG_CAVS) is fine for me too.

@tmleman

tmleman commented Dec 6, 2022

Copy link
Copy Markdown
Contributor

@aborisovich @marcinszkudlinski fyi

Stop platform timer and disable interrupts before D3 entry for CAVS
platforms.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
@ranj063
ranj063 marked this pull request as ready for review December 6, 2022 16:02
@ranj063
ranj063 requested a review from tmleman December 6, 2022 16:02
@lgirdwood
lgirdwood merged commit 76c8509 into thesofproject:main Dec 7, 2022
@lgirdwood lgirdwood mentioned this pull request Dec 7, 2022
9 tasks done
@ranj063
ranj063 deleted the main-120522 branch December 22, 2022 22:19
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.

[BUG] MOD_DX IPC timeout

4 participants