Hardware validation owed for 0.21.0 audit fixes without rig coverage

Open
#4,541 4 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
c, embedded-iot

Research direction

Start by reading the 0.21.0..master audit PR and its hardware run list, then compare the listed audit rows with the ci.lan farm and htpc bench coverage. Identify a missing rig fixture or board for one changed path, or reproduce one pre-existing farm-cell failure. Done means the affected fix has a relevant hardware run and its result is recorded.

Written by the indexing model from the issue text.

Description

follow-up Prio 📌

Hardware validation still owed for fixes from the 0.21.0..master audit. The audit PR's fixes below passed unit tests, builds and review, but no board on the ci.lan farm (or the htpc bench) exercises the changed path, or the farm cell that would cover it fails for an unrelated pre-existing reason. Each needs a rig fixture or a board added before it can be called hardware-validated.

No rig board or fixture exercises the changed path

Audit row Change What a validating run needs
A1 tu_edpt_stream_write_zlp_if_needed uses modulo for non power-of-two mps a device example with a non power-of-two interrupt/ISO stream endpoint
4 CFG_TUSB_MIMXRT1XXX_ERRATA_ERR050101 override honoured an RT10xx build with the override set to 0 on an affected part
6 usbh enumeration failure exits (no free address, oversized config, bind refused) a malformed or oversized-config device on a host rig
7 hub completes SET_CONFIG on a failed or short GET_HUB_DESCRIPTOR a hub that returns a short descriptor
8 audio device does not close EP0 under CLOSE_API without a feedback EP device/uac2_speaker_fb alt switching on a CLOSE_API port (CH32V307)
9, 10 audio host FU request across unplug, high-bandwidth alternates skipped a UAC2 device (HS high-bandwidth for row 10) on a host rig
11 hid host passes the received report-descriptor length a HID device with a short report descriptor
12 midi2 Stream Configuration Notify deferred while IN is busy (UMP v1.1 not in the doc library) a MIDI 2.0 negotiation workload
13, 14, S4 cdc host bounded descriptor walk, slot clear, notification EP type FTDI, CP210x, PL2303 and ACM-with-bulk-notification peers
15 midi host discard keeps cable boundaries a multi-cable MIDI device
16 vendor rejects bulk OUT mps above CFG_TUD_VENDOR_RX_EPSIZE a vendor workload in the roster
17 msc host rejects invalid or not meaningful CSW a device returning a bad CSW
19 video COMMIT rejects unresolved parameters device/video_capture in the roster
20 NCM IN payload remainder 2 NCM traffic from a Windows host
28 rusb2 init fails on an XTAL without a PHYSET.CLKSEL encoding an RA board with a 16 MHz (unsupported) crystal configuration
30 EHCI ISO stale idle phase an ISO device on an EHCI host (mimxrt1064_evk host audio)
32 IAR project template lists ci_fs instead of KHCI an IAR build
33, 34 lpc_ip3516 IRQ state and packet size / Mult lpcxpresso55s69 or lpcxpresso54628 in a host role
35 APM32F0 pull-up connect/disconnect an APM32F072 board
38 musb clears a pending SET_ADDRESS on bus reset a bus reset during SET_ADDRESS on tm4c or max32
39, 40 OHCI bulk reclaim ordering and BLF restart unplug under concurrent bulk traffic on ea4088_quickstart
41 MAX3421 init fails when OSCOKIRQ never arrives a MAX3421 with a missing or slow crystal
47 cdc_uac2 EP sizes cover both formats device/cdc_uac2 in the roster
48 ch32x035 openocd flash option a CH32X035 board
49 usbtest fits a 512-byte PMA stm32f103_bluepill (not rostered)
50, 51 APM32F0/PY32F0 UID copy, no-UART write stubs return -1 APM32F072 and PY32F071 boards

Farm cell fails for a reason that predates the audit

Board / cell Status
ea4088_quickstart host/device_info, host/cdc_msc_hid, dual/host_info_to_device_cdc CH340 never enumerates; same failure on master CI HIL. OHCI rows 39/40 and host CDC changes are therefore not proven there.
ch32v307v_r1_1v0-usbhs device/net_lwip_webserver network client timeout; same failure on master CI HIL. WCH USBHS rows 23-27 pass usbtest 30/30 there.
espressif_s3_devkitm-DMA host/msc_file_explorer_freertos first READ10 lost on the branch image only; layout-dependent race, details on #4528. Non-DMA S3, P4 and P4-DMA pass.

The audit PR lists every hardware run that did cover a fix.

Dominant language
C
Stars
7.3k
Forks
1.6k
Avg merge
1d 19h
Merged PRs (30d)
67

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from hathach/tinyusb

All issues in hathach/tinyusb

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.