Page MenuHomeFreeBSD

dwc3: improve debugging
ClosedPublic

Authored by bz on Jul 2 2022, 9:15 PM.
Tags
None
Referenced Files
F102539859: D35700.diff
Wed, Nov 13, 7:15 PM
Unknown Object (File)
Oct 11 2024, 10:19 AM
Unknown Object (File)
Oct 7 2024, 6:28 PM
Unknown Object (File)
Oct 6 2024, 2:53 PM
Unknown Object (File)
Oct 6 2024, 6:47 AM
Unknown Object (File)
Oct 5 2024, 7:48 PM
Unknown Object (File)
Oct 4 2024, 11:11 AM
Unknown Object (File)
Oct 4 2024, 7:05 AM
Subscribers

Details

Summary

Rather than hiding behind #if 0, hide the debugging behind DWC3_DEBUG
so it can be turned on with a single define. Require bootverbose
to print anything so we can still avoid spamming the console if DWC3_DEBUG
is on.
Harmonize the format string in snsp_dwc3_dump_regs() to always print the
full register and also print the XHCI quirks.
Call snsp_dwc3_dump_regs() twice, before and after generic XHCI attachment
and initialisation as this may have an effect on the confirgumation state.

MFC after: 2 weeks
Obtained from: an old debug patch

Test Plan

Extracted from D35484 as requested by @mw.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 46234
Build 43123: arc lint + arc unit