hid-service: recover failed upstream passthrough exchanges
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 20/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- rust
- 領域
- embedded-iot
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Rust
- スター
- 25
- フォーク
- 54
- 平均マージ
- 3日 9時間
- マージ済み PR(30日)
- 7
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
OpenDevicePartnership/embedded-services のほかの issue
-
[mctp-rs] SmbusEspiMedium::serialize: bounds-check body_wire_len before truncating to byte_count: u8オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 3/5 半日 初心者へのやさしさ 66/100
-
tcpm-service/ucsi: Implement `GET_ERROR_STATUS` UCSI PPM command再び着手できるかも @RobertZ2011 が 35 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
OpenDevicePartnership/embedded-services#977 · 担当者 1 名 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
-
EC HidDevice implementation: Thermal再び着手できるかも @williampMSFT が 61 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
OpenDevicePartnership/embedded-services#970 · 担当者 1 名 ·
OpenDevicePartnership/embedded-services の issue をすべて見る
似ている issue
-
platform:windows provider:antigravity-cli providers setup triaged wontfix
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
can1357/oh-my-pi#21349 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 92/100
erkamyaman/rea-games#246 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
aaif-goose/goose#13970 ·
メンテナーはふだん 1 日以内に返信
-
comp-documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ClickHouse/ClickHouse#136277 ·
メンテナーはふだん 1 日以内に返信