Skip to content

feat(lcd_clockless): convert ESP32-S3 LCD/I80 clockless driver to ISR-chunked wave8 streaming (refs #3177) #3180

Open

Description

@zackees

Goal

Convert ESP32-S3 Bus::LCD_CLOCKLESS driver from one-shot block DMA to ISR-chunked wave8 streaming.

Why

LCD_CLOCKLESS (ESP32-S3 LCD/I80 peripheral repurposed for clockless LED output) is currently the highest-throughput Teensy 4 / ESP32-S3 clockless option but runs in block-DMA mode. For huge channel counts (parallel LED matrices) the per-frame buffer can hit ESP32-S3 SRAM pressure. ISR-chunked streaming keeps a wave8 ring buffer and refills as chunks consume.

Scope

  • Wire the LCD_CLOCKLESS encoder into a ring-buffer feeder.
  • Use the LCD peripheral's vsync/hsync-equivalent or DMA half/done interrupts to refill.
  • Signal channel_poll_signal on done.
  • Auto-select via transport-hint API.

Acceptance

  • Frame-rate equivalent to block-DMA on small-channel test.
  • Memory profile shows ~5× peak buffer reduction on a 16-channel × 256-LED parallel test.
  • bash autoresearch esp32s3 --lcd continues to pass.
  • Cross-driver wave8 byte-equivalence test confirms bit-identical wire output.

Cross-references

Activity

  1. zackees commented on Aug 20, 2026

    @zackees
    MemberAuthor

    Burn-down disposition: DEFER ? the requested architecture is present, but the issue's hardware/performance acceptance was never demonstrated, so it is not safe to close as completed.

    What is already implemented:

    Why this cannot be closed yet:

    • fix: stream ESP32-S3 LCD clockless chunks #2703's hardware validation was blocked by fbuild deploy; there is no post-fix S3 multi-chunk AutoResearch result.
    • No comment/PR records the issue's small-frame frame-rate comparison or the required peak-memory profile for 16 lanes ? 256 LEDs.
    • The memory claim especially needs measurement: current allocation is three slots, and for frames smaller than the 1024-byte default each slot is sized to the whole frame, so a 16?256 one-chunk case does not structurally demonstrate a 5? reduction.
    • The proposed public transport-hint dependency was retracted (feat(channels): TransportHint enum — Auto/OneShot/IsrStream/CpuPoll (default Auto=0) on Channel #3185 closed), so automatic path selection is intentionally absent and should not be treated as missing implementation.

    Restart criteria:

    1. Attach an ESP32-S3 and run bash autoresearch esp32s3 --lcd --lanes 16 with both a one-chunk 256-LED case and a forced multi-chunk >341-LED-per-lane case on current master.
    2. Preserve byte/edge evidence and sustained back-to-back results; verify no ISR watchdog, underrun, stale callback, or cross-driver ownership failure.
    3. Record frame time against the old one-shot implementation for a small case.
    4. Instrument peak internal RAM and PSRAM for the exact 16?256 acceptance case and a genuinely large multi-chunk case. If three full-size slots regress small-frame memory, allocate only min(totalChunks, 3) slots or otherwise correct the policy.
    5. Land any needed memory fix and close with the measured results; if the original 5? target is invalid for 16?256, amend the acceptance transparently rather than asserting it passed.

    This is close to code-complete, but the missing post-fix S3 and memory evidence is the issue's central claim.

  2. added
    deferred
    on Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    deferred

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions