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

soc: intel_adsp: replace icache ISR workaround with custom idle solution #71332

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

kv2019i
Copy link
Collaborator

@kv2019i kv2019i commented Apr 10, 2024

A workaround to avoid icache corruption was added in commit be881d4 ("arch: xtensa: add isync to interrupt vector").

This patch implements a different workaround by adding custom logic to idle entry on affected Intel ADSP platforms. To safely enter "waiti" when clock gating is enabled, we need to ensure icache is both unlocked and invalidated upon entry.

@kv2019i kv2019i added the platform: Intel ADSP Intel Audio platforms label Apr 10, 2024
@kv2019i
Copy link
Collaborator Author

kv2019i commented Apr 10, 2024

Keeping as draft until SOF CI test run at thesofproject/sof#9022 is complete. I've been testing with older versions where the original issue is easier to hit. This additional test round is probably more important to ensure there are no unintended side-effects from this implementation.

A workaround to avoid icache corruption was added in commit be881d4
("arch: xtensa: add isync to interrupt vector").

This patch implements a different workaround by adding custom logic to
idle entry on affected Intel ADSP platforms. To safely enter "waiti"
when clock gating is enabled, we need to ensure icache is both unlocked
and invalidated upon entry.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
@kv2019i
Copy link
Collaborator Author

kv2019i commented Apr 11, 2024

SOF side test run passes, marking ready for review.

@kv2019i
Copy link
Collaborator Author

kv2019i commented Apr 12, 2024

For reference, a larger test plan completed on Intel side with test id 39699 with all tests passing.

@aescolar aescolar merged commit 7fd0a7a into zephyrproject-rtos:main Apr 15, 2024
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Xtensa Xtensa Architecture platform: Intel ADSP Intel Audio platforms
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants