Skip to content

Conversation

@plbossart
Copy link
Member

@plbossart plbossart commented Jan 24, 2023

In the existing code, the SHIM_SYNC::SYNC_GO bit is set, and the code waits for it to return to zero.

That second wait part is just wrong: the SYNC_GO bit is write-only so there's no way to know if it's cleared by hardware. The code works because the value for a read-only bit is zero, but that's really just luck.

Simplify the sequence to a plain read-modify-write.

Signed-off-by: Pierre-Louis Bossart pierre-louis.bossart@linux.intel.com

In the existing code, the SHIM_SYNC::SYNC_GO bit is set, and the code
waits for it to return to zero.

That second wait part is just wrong: the SYNC_GO bit is *write-only* so
there's no way to know if it's cleared by hardware. The code works
because the value for a read-only bit is zero, but that's really just
luck.

Simplify the sequence to a plain read-modify-write.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Copy link
Collaborator

@ujfalusi ujfalusi left a comment

Choose a reason for hiding this comment

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

now it makes more sense.

@plbossart
Copy link
Member Author

additional simplifications are possible, closing for now.

@plbossart plbossart closed this Jan 25, 2023
@plbossart
Copy link
Member Author

actually no, it's too complicated to simplify further.

@plbossart plbossart reopened this Jan 25, 2023
@ranj063
Copy link
Collaborator

ranj063 commented Jan 26, 2023

@plbossart the CML SDW tests are failing with this PR. Is this a known issue or is this because of this PR

@ranj063
Copy link
Collaborator

ranj063 commented Jan 26, 2023

@plbossart the CML SDW tests are failing with this PR. Is this a known issue or is this because of this PR

Ok looks like its happening in other PRs too

@plbossart
Copy link
Member Author

@plbossart the CML SDW tests are failing with this PR. Is this a known issue or is this because of this PR

Ok looks like its happening in other PRs too

yes, that board has severe issues with timeouts in suspend/resume. I don't think it's related to this PR.

@plbossart
Copy link
Member Author

already merged with #4157

@plbossart plbossart closed this Feb 9, 2023
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.

5 participants