hid-service: recover failed upstream passthrough exchanges
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 20/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- rust
- Área
- embedded-iot
Línea de trabajo
Start at hid-service/src/i2c/mod.rs, where I2cSlaveAsync lacks recovery, and trace Host::process() through the upstream-read lifecycle; the MCXA HAL's recover() is the reference. Reproduce with the scripted upstream bus sequence in the issue and inspect the existing bridge recovery tests, which assume an aborted exchange. Done means a failed exchange is retired before the next request, a fresh request works after recovery, and a deterministic regression covers the retained pending read.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
A downstream descriptor failure completes the internal request, but the upstream read can remain pending. The next host-loop iteration treats that read as a new input-report request and can send input-report bytes where the OS expects a descriptor.
The missing upstream recovery predates #990; its failure completions fix the hang and expose this sequence. The same gap is present in #991. This is separate from the interrupt-deassertion ordering fix.
Reproduction
Reproduced with the real Host and a scripted upstream bus on a single cooperative executor; no hardware was used:
- Upstream writes descriptor register
[01 00], followed by a pending READ. - Downstream descriptor request fails with
Timeout. Host::process()returns the error without consuming or retiring the READ.- The next
Host::process()treats it asRequest::InputReport. - Input bytes
[04 00 52 A5]are delivered on the descriptor read.
Existing bridge recovery tests assume the upstream exchange was aborted and do not retain this pending read.
Decision needed
The MCXA target HAL provides recover(), but the legacy hid-service/src/i2c/mod.rs::I2cSlaveAsync trait does not expose recovery. Obtain feedback from existing platform users before choosing the integration contract, including compatibility with stable-v0.1.y. A no-op or logging-only default does not establish recovery.
Acceptance criteria
- Retire the failed upstream exchange before accepting another request; never reinterpret its pending read as an input-report request.
- Permit a fresh request after successful recovery. Failed recovery must not allow stale phases to be reused.
- Add a deterministic bridge regression retaining the pending read, checking that no input-report data is sent for it, and exercising a subsequent fresh request.
- Document the platform recovery requirements and stable-branch compatibility approach. Keep software-only tests distinct from physical controller validation.
Deferred from the #991 review thread, as agreed with Robert.
Related: #990, #991, #987.
- Lenguaje dominante
- Rust
- Estrellas
- 25
- Forks
- 54
- Merge medio
- 3 d 9 h
- PR fusionados (30 d)
- 7
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 OpenDevicePartnership/embedded-services
-
[mctp-rs] SmbusEspiMedium::serialize: bounds-check body_wire_len before truncating to byte_count: u8Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 3/5 Medio día Aptitud para principiantes 66/100
-
tcpm-service/ucsi: Implement `GET_ERROR_STATUS` UCSI PPM commandQuizá libre de nuevo @RobertZ2011 la tomó hace 35 días y no hay ningún pull request abierto. Abierto
OpenDevicePartnership/embedded-services#977 · 1 asignado ·
-
Patina on 8380 - PR ReviewAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 20/100
-
EC HidDevice implementation: ThermalQuizá libre de nuevo @williampMSFT la tomó hace 61 días y no hay ningún pull request abierto. Abierto
OpenDevicePartnership/embedded-services#970 · 1 asignado ·
Todos los issues de OpenDevicePartnership/embedded-services
Issues similares
-
platform:windows provider:antigravity-cli providers setup triaged wontfix
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
can1357/oh-my-pi#21349 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 92/100
erkamyaman/rea-games#246 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
aaif-goose/goose#13970 ·
Los mantenedores suelen responder en 1 día
-
comp-documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ClickHouse/ClickHouse#136277 ·
Los mantenedores suelen responder en 1 día