hid-service: recover failed upstream passthrough exchanges
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 20/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- rust
- Ambito
- embedded-iot
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Rust
- Stelle
- 25
- Fork
- 54
- Merge medio
- 3g 9h
- PR unite (30g)
- 7
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 OpenDevicePartnership/embedded-services
-
[mctp-rs] SmbusEspiMedium::serialize: bounds-check body_wire_len before truncating to byte_count: u8Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 3/5 Mezza giornata Idoneità per principianti 66/100
-
tcpm-service/ucsi: Implement `GET_ERROR_STATUS` UCSI PPM commandForse di nuovo libera @RobertZ2011 l’ha presa 35 giorni fa e non c’è nessuna pull request aperta. Aperta
OpenDevicePartnership/embedded-services#977 · 1 assegnatario ·
-
Patina on 8380 - PR ReviewAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
-
EC HidDevice implementation: ThermalForse di nuovo libera @williampMSFT l’ha presa 61 giorni fa e non c’è nessuna pull request aperta. Aperta
OpenDevicePartnership/embedded-services#970 · 1 assegnatario ·
Tutte le issue di OpenDevicePartnership/embedded-services
Issue simili
-
platform:windows provider:antigravity-cli providers setup triaged wontfix
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
can1357/oh-my-pi#21349 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 92/100
erkamyaman/rea-games#246 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
aaif-goose/goose#13970 ·
I maintainer di solito rispondono entro 1 giorno
-
comp-documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
ClickHouse/ClickHouse#136277 ·
I maintainer di solito rispondono entro 1 giorno