Skip to content

board_reset: flush cache before reset#13908

Merged
xiaoxiang781216 merged 1 commit into
apache:masterfrom
XuNeo:flush-cache-before-reset
Oct 8, 2024
Merged

board_reset: flush cache before reset#13908
xiaoxiang781216 merged 1 commit into
apache:masterfrom
XuNeo:flush-cache-before-reset

Conversation

@XuNeo
Copy link
Copy Markdown
Contributor

@XuNeo XuNeo commented Oct 8, 2024

Summary

This change adds cache flushing for debug purposes. Normally, cache operations are unnecessary since the system reboots. However, flushing the cache is required when the system crashes, allowing us to retain the entire memory after rebooting into the bootloader, where a full memory dump and further analysis can be performed.

Impact

Should be minimal.

Testing

This feature was tested on an internal project. When the system crashes, it reboots into the bootloader and uses USB to transfer the full memory to the host for inspection.

Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
@github-actions github-actions Bot added Area: Board support Board support issues Area: OS Components OS Components issues Size: XS The size of the change in this PR is very small labels Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Board support Board support issues Area: OS Components OS Components issues Size: XS The size of the change in this PR is very small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants