hiffy: use software interrupts for HIFFY_KICK

Aperta
#2,788 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
22/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

Start from the hiffy task's polling loop that reads HIFFY_KICK and the hubris kernel's interrupt-to-task notification path; the payload names no files, so locate hiffy in the task tree and the kernel's interrupt routing tables. Read how an unused interrupt such as CEC is currently configured, then map it to the hiffy task and have the debugger trigger it instead of writing the KICK. Done means hiffy wakes on the notification and a qspi -D run shows the expected time saved.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Currently, humility informs hubris' hiffy that a message should be processed by writing HIFFY_KICK, which hubris polls in exponential backoff.

However, we could get real notifications for this by using the debugger to trigger an interrupt, and mapping an unused hardware interrupt (like the CEC interrupt, which we don't use) to the hiffy task. This way, the kernel would send a notification to wake hiffy, instead of polling on a timer.

Because this means we don't need to stop + start the core to write the KICK, this adds up to a meaningful amount of performance improvement, saving about 10-12s across a 2m15s qspi -D run.

This is an optimization, and is pretty low priority.

Lingua principale
Rust
Stelle
3.7k
Fork
246
Merge medio
2g 11m
PR unite (30g)
27

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di oxidecomputer/hubris

Tutte le issue di oxidecomputer/hubris

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.