From 787525fd6d8188e58fa7c0f854ba67a24bea2ea1 Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 14 Feb 2023 00:12:27 +0800 Subject: [PATCH] increase cache flush margin this seems to help #321. At the very least, on my test unit an image without this crashes fairly reliably, and with this, it can complete a few tries consecutively without fail --- services/spinor/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/spinor/src/main.rs b/services/spinor/src/main.rs index 55e67c4b3..0c92eb616 100644 --- a/services/spinor/src/main.rs +++ b/services/spinor/src/main.rs @@ -392,7 +392,7 @@ mod implementation { #[cfg(feature="extra_flush")] const CACHE_LINE_WIDTH: usize = 32; // in bytes #[cfg(feature="extra_flush")] - const FLUSH_SIZE_BYTES: usize = 16384 * 5; // cache capacity * 4 ways + 1 to force overlap + const FLUSH_SIZE_BYTES: usize = 16384 * 8; // cache capacity * 4 ways x2 to force overlap pub struct Spinor { id: u32,