Page MenuHomeFreeBSD

dwc3: improve debugging
ClosedPublic

Authored by bz on Jul 2 2022, 9:15 PM.
Tags
None
Referenced Files
F132400711: D35700.diff
Thu, Oct 16, 2:53 PM
Unknown Object (File)
Wed, Oct 15, 4:50 PM
Unknown Object (File)
Wed, Oct 1, 11:28 AM
Unknown Object (File)
Sun, Sep 28, 10:11 AM
Unknown Object (File)
Sun, Sep 28, 10:08 AM
Unknown Object (File)
Sun, Sep 28, 10:04 AM
Unknown Object (File)
Sep 13 2025, 8:42 PM
Unknown Object (File)
Sep 12 2025, 12:11 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable