Skip to content

soundwire: cadence_master: fix a io timeout issue in S3 test - #1618

Merged
plbossart merged 1 commit into
thesofproject:integration/soundwire-debug-fixesfrom
RanderWang:fifo_fix_s3
Dec 11, 2019
Merged

plbossart merged 1 commit into
thesofproject:integration/soundwire-debug-fixesfrom
RanderWang:fifo_fix_s3

Conversation

@RanderWang

Copy link
Copy Markdown

After system resumes from S3, io timeout occurs when setting one
unused master on comet lake platform. In this case, the master is
reset to default state, and FIFOLEVEL is reset to default value,
but msg_count used for tracing FIFOLEVEL is still with old value,
so FIFOLEVEL will not be set if a new msg FIFO usage is equal to
the old msg_count.

This patch updates msg_count to default value of FIFOLEVEL when
resetting master.

After system resumes from S3, io timeout occurs when setting one
unused master on Comet Lake platform. In this case, the master is
reset to default state, and FIFOLEVEL is reset to default value,
but msg_count used for tracing FIFOLEVEL is still with old value,
so FIFOLEVEL will not be set if a new msg FIFO usage is equal to
the old msg_count.

This patch updates msg_count to default value of FIFOLEVEL when
resetting master.

Tested on Comet Lake platform.

Signed-off-by: Rander Wang <rander.wang@intel.com>

@bardliao bardliao left a comment

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 @RanderWang It makes sense

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