Skip to content

pm: policy: d0i3: wait for ipc ack before pg - #7623

Merged
kv2019i merged 2 commits into
thesofproject:mainfrom
tmleman:topic/upstream/pr/pm/policy/d0i3/pending_ack_check
May 25, 2023
Merged

kv2019i merged 2 commits into
thesofproject:mainfrom
tmleman:topic/upstream/pr/pm/policy/d0i3/pending_ack_check

Conversation

@tmleman

@tmleman tmleman commented May 16, 2023 •

Copy link
Copy Markdown
Contributor

The DSP cannot enter the power gating state if it has not yet received an ack from host after sending an ipc message.

@tmleman
tmleman force-pushed the topic/upstream/pr/pm/policy/d0i3/pending_ack_check branch from e25938d to aa40ff9 Compare May 17, 2023 12:01
@tmleman tmleman changed the title [DNM] pm: policy: d0i3: wait for ipc ack before pg [DNM][RFC] pm: policy: d0i3: wait for ipc ack before pg May 18, 2023

@juimonen juimonen left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

not totally sure about the ipc flows, but looks ok to me.

@tmleman
tmleman force-pushed the topic/upstream/pr/pm/policy/d0i3/pending_ack_check branch from aa40ff9 to 2ba3301 Compare May 24, 2023 09:05
@tmleman tmleman changed the title [DNM][RFC] pm: policy: d0i3: wait for ipc ack before pg pm: policy: d0i3: wait for ipc ack before pg May 24, 2023
Comment thread west.yml Outdated

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the detailed git commit message! I'm afraid you may need to udpate this now that we merged #7642 but that PR was older and had the approvals plus tests pass, so I merged that first.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No problem, I think that it's better if we do zephyr update in smaller jumps.

Comment thread src/ipc/ipc-zephyr.c Outdated

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm too late to the review of the Zephyr side change, so I'm not going to block this here, but, but .... this does feel like a very common problem and problem that is typically solved without polling. I.e.

  • get PM resource (prevent power gaing)
  • send message
  • wait for ack
  • when ack received, release PM resource

But yeah, this kind of implements the same thing with a SOF side API, so this is probably good addition at this point.

tmleman added 2 commits May 24, 2023 14:59
Zepych update: total of 228 commits.

Changes include:

- build LNL with Zephyr SDK,
- MMU initial implementation,
- check for pending ack in intel_adsp_ipc_is_complete.

Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
The DSP cannot enter the power gating state if it has not yet received
an ack from host after sending an ipc message.

Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
@tmleman
tmleman force-pushed the topic/upstream/pr/pm/policy/d0i3/pending_ack_check branch from 2ba3301 to ab1fafc Compare May 24, 2023 12:59
@kv2019i

kv2019i commented May 25, 2023

Copy link
Copy Markdown
Collaborator

@kv2019i
kv2019i merged commit 9b4a618 into thesofproject:main May 25, 2023
@tmleman
tmleman deleted the topic/upstream/pr/pm/policy/d0i3/pending_ack_check branch December 17, 2025 12:14
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