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

tests: latency_measure: Fix MPU fault #67850

Merged

Conversation

peter-mitsis
Copy link
Collaborator

Fixes an MPU fault that was occurring on some ARM platforms when executing the events portion of the latency_measure benchmark. The fault was tracked to an attempt by a user thread to read an MMIO register that it did not have permissions to access.

The solution was to move the printing of the stats averages out of the test thread and into the main thread as the main thread always executes at kernel/supervisor level and will always have permissions to read that MMIO register.

Fixes #67438

dcpleung
dcpleung previously approved these changes Jan 19, 2024
nashif
nashif previously approved these changes Jan 19, 2024
Fixes an MPU fault that was occurring on some ARM platforms when
executing the events portion of the latency_measure benchmark. The
fault was tracked to an attempt by a user thread to read an MMIO
register that it did not have permissions to access.

The solution was to move the printing of the stats averages out of
the test thread and into the main thread as the main thread always
executes at kernel/supervisor level and will always have permissions
to read that MMIO register.

Fixes zephyrproject-rtos#67438

Signed-off-by: Peter Mitsis <[email protected]>
@peter-mitsis peter-mitsis dismissed stale reviews from nashif and dcpleung via e3b9c7f January 22, 2024 16:18
@peter-mitsis peter-mitsis force-pushed the pmitsis.latency.events.fix branch from 0057d23 to e3b9c7f Compare January 22, 2024 16:18
@peter-mitsis
Copy link
Collaborator Author

Rebased to account for a merge conflict.

@carlescufi carlescufi merged commit 7c5a57b into zephyrproject-rtos:main Jan 23, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

benchmarks: latency_measure: benchmark.user.latency.* fails
5 participants