qspi: use FPGA hashing for host-flash programming
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 15/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- rust
- Área
- embedded-iot, tooling
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Rust
- Estrellas
- 3.7k
- Forks
- 246
- Merge medio
- 2 d 11 min
- PR fusionados (30 d)
- 27
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de oxidecomputer/hubris
-
STM32 USART drivers write BRR while UE=1 (RM0433 / RM0316 require UE=0)Posiblemente ocupada @Ramla-I la tomó hace 29 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
oxidecomputer/hubris#2707 ·
Los mantenedores suelen responder en 1 día
-
Cosmo is missing `isl68224` temperaturePosiblemente ocupada @jamesmunns la tomó hace 154 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
oxidecomputer/hubris#2577 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 22/100
oxidecomputer/hubris#2788 ·
Los mantenedores suelen responder en 1 día
-
Release 24 | ROT/SP release requestsPosiblemente ocupada @labbott la tomó hace 7 días. Abierto
oxidecomputer/hubris#2786 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
oxidecomputer/hubris#2758 · 5 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de oxidecomputer/hubris
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
anomalyco/rune#2432 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
[Bug]: Add Data's question says "Link to the file" for a GeoPackage where small tables are copiedAbiertounconfirmed possible issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
Los mantenedores suelen responder en 1 día
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
jerney-nexus/epikrise#364 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Yeachan-Heo/gajae-code#8058 ·
Los mantenedores suelen responder en 1 día