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

ace: power: replace pseudo-assembly movi #75174

Merged
merged 1 commit into from
Jul 4, 2024
Merged

Conversation

lyakh
Copy link
Collaborator

@lyakh lyakh commented Jun 28, 2024

When switching off memory banks we cannot use movi with arbitrary immediate arguments, they will be converted by the compiler to memory accesses. Only constants within the allowed range should be used.

When switching off memory banks we cannot use movi with arbitrary
immediate arguments, they will be converted by the compiler to memory
accesses. Only constants within the allowed range should be used.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
@lyakh
Copy link
Collaborator Author

lyakh commented Jul 2, 2024

As we've verified, this PR doesn't fix thesofproject/sof#9268 but the code that it replaces does seem to be dangerous, as identified by @andyross

Copy link
Contributor

@andyross andyross left a comment

Choose a reason for hiding this comment

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

Looks correct. Had to look up ADDMI :)

@nashif nashif merged commit fb53d2e into zephyrproject-rtos:main Jul 4, 2024
26 checks passed
@lyakh lyakh deleted the movi branch July 5, 2024 11:48
@tmleman
Copy link
Collaborator

tmleman commented Jul 10, 2024

This change causes failures in all power flows on MTL/LNL/PTL. Considering that it wasn't a fix for any known issue, I suggest simply reverting it #75689.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: Intel ADSP Intel Audio platforms
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants