qspi: use FPGA hashing for host-flash programming
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 15/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- rust
- Ambito
- embedded-iot, tooling
Direzione di ricerca
Start in the humility qspi -D path that currently reads sectors through the FPGA, hashes them in firmware, and reports over hiffy, then compare it with the FPGA hash block driver and the host-side check in humility. The caveats to resolve first are FPGA hash-block arbitration with the host, swapping the -D digest to SHA3-256 via the off-the-shelf crate, and keeping gimlet/cosmo boards on the old path. Done means qspi -D uses FPGA hashing where available and still produces identical skip decisions on boards without it. Note the author already has a PoC.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Today's humility qspi -D avoids erasing + writing sectors that don't need to change by hashing the contents in firmware, and checking it against the values calculated by humility.
This involves reading through the FPGA, hashing in firmware, and reporting that over hiffy.
We could instead ask the FPGA to just directly hash the chunks for us, because it is much faster! We could even use this hashing to check if entire ranges are already erased.
There are some caveats to this:
- There is only one FPGA hash block available, and we share it with the host. We'd need to make sure the host is in A2, or otherwise ensure we're not competing for the resource.
- The FPGA hash is a different algorithm than we currently use for the
-Dhashing. There is an "off the shelf" rust crate that implements the SHA3-256 that we can use. - Humility would need to stay compatible with existing gimlet/cosmo boards that can't/don't use the FPGA for hashing.
I have a PoC that does this, and it stands to save us 20s-ish out of a 2m15s humility qspi -D call. For now, it didn't seem like a good tradeoff, but it is potentially an option to reconsider in the future.
- Lingua principale
- Rust
- Stelle
- 3.7k
- Fork
- 246
- Merge medio
- 2g 11m
- PR unite (30g)
- 27
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di oxidecomputer/hubris
-
STM32 USART drivers write BRR while UE=1 (RM0433 / RM0316 require UE=0)Forse già presa @Ramla-I l’ha presa 29 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
oxidecomputer/hubris#2707 ·
I maintainer di solito rispondono entro 1 giorno
-
Cosmo is missing `isl68224` temperatureForse già presa @jamesmunns l’ha presa 154 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
oxidecomputer/hubris#2577 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 22/100
oxidecomputer/hubris#2788 ·
I maintainer di solito rispondono entro 1 giorno
-
Release 24 | ROT/SP release requestsForse già presa @labbott l’ha presa 7 giorni fa. Aperta
oxidecomputer/hubris#2786 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
oxidecomputer/hubris#2758 · 5 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di oxidecomputer/hubris
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
anomalyco/rune#2432 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
[Bug]: Add Data's question says "Link to the file" for a GeoPackage where small tables are copiedApertaunconfirmed possible issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
I maintainer di solito rispondono entro 1 giorno
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
jerney-nexus/epikrise#364 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
Yeachan-Heo/gajae-code#8058 ·
I maintainer di solito rispondono entro 1 giorno