Skip to content
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

check-sof-logger: disable again dma_nudge() workaround for stuck DMA #4333 #880

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

marc-hb
Copy link
Collaborator

@marc-hb marc-hb commented Mar 16, 2022

@ujfalusi has a tentative fix in
thesofproject/linux#3523, remove the
workaround so it can better tested and evaluated.

Signed-off-by: Marc Herbert [email protected]
(cherry picked from commit 4b3f847)

…#4333

Peter has a tentative fix in
thesofproject/linux#3523, remove the
workaround so it can better tested and evaluated.

Signed-off-by: Marc Herbert <[email protected]>
(cherry picked from commit 4b3f847)
@marc-hb marc-hb requested a review from ujfalusi March 16, 2022 18:14
@marc-hb
Copy link
Collaborator Author

marc-hb commented Mar 16, 2022

https://sof-ci.01.org/softestpr/PR880/build1015/devicetest/ is empty because CI is completely broken this week.

@ujfalusi
Copy link
Contributor

@marc-hb , the stuck part still going to need workaround since the firmware will only do the copy on dma burst boundaries, it is still possible that we have stalled trace down in rhe firmware and we need to poke it to give it to us.

@marc-hb marc-hb marked this pull request as draft March 16, 2022 19:07
@marc-hb
Copy link
Collaborator Author

marc-hb commented Mar 16, 2022

since the firmware will only do the copy on dma burst boundaries,

How far apart are DMA burst boundaries?

When the firmware boots it prints quite a lot of logs, I would say at least 1 kilobytes. Bug #4333 has always been "a lot of logs or nothing". There's a digression in #4333 about "lagging" logs but please ignore it, this basic test is nowhere near smart enough to catch that.

@marc-hb
Copy link
Collaborator Author

marc-hb commented Mar 16, 2022

Bug #4333 has always been "a lot of logs or nothing".

I take that back, sorry. In daily run 10879?model=TGLH_SKU0A70_HDA&testcase=check-sof-logger (2002-03-09) the FW logs were not empty but they stopped after only 3 lines, just before receiving the first IPC.

TGLH_SKU0A70_HDA seems a bit "special", see thesofproject/sof#4333 (comment)

@@ -205,7 +205,12 @@ main()

# Workaround for DMA trace bug
# https://github.com/thesofproject/sof/issues/4333
if [ "$f" = data ]; then
# if [ "$f" = data ]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this comment intentionally left in? Also not sure I follow the reasoning for the if false; then line. Guessing that's what the comments are referencing.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is just a test DRAFT, don't take it seriously.

The if false is a way to comment out 10 lines with a one-line change.

@marc-hb
Copy link
Collaborator Author

marc-hb commented Sep 18, 2024

SOFCI TEST

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.

3 participants