diff --git a/services/llio/src/main.rs b/services/llio/src/main.rs index 9331bdd5c..a179d539d 100644 --- a/services/llio/src/main.rs +++ b/services/llio/src/main.rs @@ -242,9 +242,12 @@ mod implementation { } pub fn resume(&mut self) { self.power_susres.resume(); + // reset these to "on" in case the "off" value was captured and stored on suspend + // (these "should" be redundant) self.power_csr.rmwf(utra::power::POWER_SELF, 1); self.power_csr.rmwf(utra::power::POWER_STATE, 1); + self.event_susres.resume(); self.gpio_susres.resume(); // restore the UART mux setting after resume diff --git a/services/susres/src/main.rs b/services/susres/src/main.rs index 6ab9e0abb..cc3750d4b 100644 --- a/services/susres/src/main.rs +++ b/services/susres/src/main.rs @@ -225,7 +225,7 @@ mod implementation { xous::syscall::map_memory( None, None, - 256 * 1024, // bigger than 128k to flush the L1 dcache etc. as well + 512 * 1024, // L2 cache is 128k, but emperically it doesn't fully flush until 512k is written. Maybe has to do with write-back behavior?? xous::MemoryFlags::R | xous::MemoryFlags::W | xous::MemoryFlags::RESERVE, ).expect("couldn't allocate RAM for cache flushing") );