From 35b289f3444ba4ed5a11a8ba8237411870dbfe55 Mon Sep 17 00:00:00 2001 From: Sebastian Holzapfel Date: Sun, 8 Oct 2023 13:10:23 +0200 Subject: [PATCH] fence is fine with proper optimisations - looking at 14msec :) --- firmware/litex-fw/src/main.rs | 2 +- firmware/ssd1322 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/litex-fw/src/main.rs b/firmware/litex-fw/src/main.rs index 00ac29f..6025876 100644 --- a/firmware/litex-fw/src/main.rs +++ b/firmware/litex-fw/src/main.rs @@ -407,13 +407,13 @@ fn main() -> ! { let fb = disp.swap_clear(); unsafe { + fence(); while peripherals.SPI_DMA.done.read().bits() == 0 { // Don't start to DMA a new framebuffer if we're still // pushing through the last one. } peripherals.SPI_DMA.read_base.write(|w| w.bits(fb.as_ptr() as u32)); peripherals.SPI_DMA.read_length.write(|w| w.bits(fb.len() as u32)); - fence(); peripherals.SPI_DMA.start.write(|w| w.start().bit(true)); peripherals.SPI_DMA.start.write(|w| w.start().bit(false)); } diff --git a/firmware/ssd1322 b/firmware/ssd1322 index 8ff05f6..d611f97 160000 --- a/firmware/ssd1322 +++ b/firmware/ssd1322 @@ -1 +1 @@ -Subproject commit 8ff05f65ceb9bec498f6915534bfdf9e1245c058 +Subproject commit d611f97974af000273a69541a4baa0482dd43dfa