Debugging and Troubleshooting

This guidance applies to Windows 11, version 25H2 and later.

Use the I3C kernel debugger extension (i3ckd.dll) and bus tracing tools to investigate device enumeration, power state, and I/O issues.

Kernel debugger extension (i3ckd.dll)

For platform bring-up, Microsoft provides an I3C kernel-debugger extension, for vendors to gain insight into their system. This only works with a kernel-debugger.

This can be used in both a live-session and .dmp

View all I3C devices

View all I3C devices and their hierarchical relationships with !i3ctree.

Note

!i3ctree enumerates I3C HostController-Devices, HostController-Instances, and Targets. Device Manager doesn't enumerate the individual HostController-Instances of a HostController-Device.

The following screenshot shows an example of I3C devices in Device Manager. It is independent of the debugger output below.

Screenshot of Device Manager showing an I3C Host Controller with a child Sample WinI3C Target Device.

In the sample output below, the system has a single HostController-Device, with a single HostController-Instance, with a single Target (SuperMITT). All devices are working normally.

In a KD session, click on the DML hyperlinks to explore more.

5: kd> !i3ctree
Topology
--------
1)  !i3chcd 0xffff820e68893600 · VID:'XXXX' · DID:'0000'
        !i3chci 0xffff820e5dc71010
            !i3ctarget 0xffff820e68382010 · VID:Microsoft Corporation (0x2cb) · PID:SuperMITT 0 (0xa55aa5a5)

Enumerated HostController-Devices
-----------------------------
1)  !i3chcd 0xffff820e68893600 · VID:'XXXX' · DID:'0000'
    Power State: D0

Enumerated HostController-Instances
-----------------------------
1)  !i3chci 0xffff820e5dc71010
    HCI SM State: Working (47)
    TC SM State: Working (38)

Enumerated Targets
-----------------------------
1)  !i3ctarget 0xffff820e68382010 · VID:Microsoft Corporation (0x2cb) · PID:SuperMITT 0 (0xa55aa5a5)
    Description: SuperMITT WinI3C Target
    SM State: D0 (10)
    Power State: D0

Examine specific HostController-Device

5: kd> !i3ckd.i3chcd 0xffff820e68893600
VID:'XXXX' · DID:'0000'
ACPI BIOS Name: \_SB_.I3CX
Context: 0xffff820e68893600
!wdfdevice 0x00007df19776cce8
!rcdrlogdump I3CHost -a 0xffff820e68b7f000

Transport: ACPI
Transport Context: 0xffff820e73a79e20

Power State: D0

Examine specific HostController-Instance

5: kd> !i3ckd.i3chci 0xffff820e5dc71010
HCI (Spec) Version: 1.X.X (Major/Minor/Revision)
ACPI Device Name: CTRX
Context: 0xffff820e5dc71010
!rcdrlogdump I3CHost -a 0xffff820e6862c000

HCI SM State: Working (47)
TC SM State: Working (38)

Transport:
    OperationMode: DMA

Debugger Time: 18:21:17.000 · 27 Aug 2026 (PDT)
=========================================================================
|      Event       | Count |               Last               | (s) ago |
=========================================================================
| *All*            |    13 | 18:21:16.086 · 27 Aug 2026 (PDT) |       0 |
| IoProgrammed     |     6 | 18:21:16.086 · 27 Aug 2026 (PDT) |       0 |
| IoResponse       |     6 | 18:21:16.086 · 27 Aug 2026 (PDT) |       0 |
| HotJoin          |     0 |                                  |         |
| IBIsInvalid      |     0 |                                  |         |
| D0Entry          |     1 | 18:21:16.043 · 27 Aug 2026 (PDT) |       0 |
| D0Exit           |     0 |                                  |         |
| TransportReset   |     0 |                                  |         |
| TransferWatchDog |     0 |                                  |         |
=========================================================================

Examine specific Target

5: kd> !i3ckd.i3ctarget 0xffff820e68382010
VID:Microsoft Corporation (0x2cb) · PID:SuperMITT 0 (0xa55aa5a5)
Description: SuperMITT WinI3C Target
ACPI Device Name:
Context: 0xffff820e68382010
!wdfdevice 0x00007df1986583f8
!devstack 0xffff820e5da29d00
!rcdrlogdump I3CHost -a 0xffff820e688c4000

SM State: D0 (10)
Power State: D0

HostController-Instance: !i3chci 0xffff820e5dc71010

Kind: DebugTargetSystem (0xc9)
I3C Dynamic Address: 0x8
I3C DevIndex: 0x0
DAT Entry: 0xffff820e6630c591

Function Driver: wini3ctarget.sys
Context: 0xffff820e62179ef0
!wdfdevice 0x00007df19de863f8
DeviceInterfaceClass: {13cbdaf6-33dc-40ae-aedb-77dfde96666d}
Idle timeout (s): 5
Initiator Process: (0)

Debugger Time: 18:21:17.000 · 27 Aug 2026 (PDT)
======================================================================
|     Event     | Count |               Last               | (s) ago |
======================================================================
| *All*         |     3 | 18:21:16.486 · 27 Aug 2026 (PDT) |       0 |
| RegularIO     |     1 | 18:21:16.086 · 27 Aug 2026 (PDT) |       0 |
| VendorCCC     |     0 |                                  |         |
| GETSTATUS     |     0 |                                  |         |
| GETCAPS       |     0 |                                  |         |
| SETMRL        |     0 |                                  |         |
| SETMWL        |     0 |                                  |         |
| Reset         |     0 |                                  |         |
| Rejoin        |     0 |                                  |         |
| D0Entry       |     1 | 18:21:16.049 · 27 Aug 2026 (PDT) |       0 |
| D0Exit        |     0 |                                  |         |
| IBIsStarted   |     0 |                                  |         |
| IBIsStopped   |     1 | 18:21:16.486 · 27 Aug 2026 (PDT) |       0 |
| IBIsCompleted |     0 |                                  |         |
======================================================================
Total IO since D0Entry: 1
Total Rejoins since D0Entry: 0
Total IBIs since D0Entry: 0

Tracing

Every Windows I3C component emits tracing for post-mortem analysis. This is usually what Microsoft will request when a customer/vendor experiences an issue.

Install tracing files from winget

On the I3C-enabled machine, from an elevated command prompt run: winget install windowsbusestracing

See Github (https://github.com/microsoft/busiotools/tree/master/usb) for the underlying files.

Note

This is a one-time setup, and doesn't need to be done again on the same machine.

C:\Users\testdevice>winget install windowsbusestracing
Found windowsbusestracing [Microsoft.WindowsBusesTracing] Version 1.5.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Extracting archive...
Successfully extracted archive
Starting package install...
Command line alias added: "startwindowsbusestracing"
Path environment variable modified; restart your shell to use the new value.
Successfully installed

Configure and start tracing

On the I3C-enabled machine, from an elevated command prompt run startwindowsbusestracing, select I3C/LowPoweredBuses components only, and Start Now

###########################
       BUSES TRACING
###########################

1) Start Tracing
2) Stop Boot Session Trace
3) Cleanup Previous Session
4) Exit

Enter selection number:1

---------------------------------------
Which components to collect trace from?
---------------------------------------
1) All buses components
2) USB4 components
3) I3C/LowPoweredBuses components only
4) Input/HID components only (select for HID problems - keyboard, mouse, touch input, buttons etc.)
5) Sensors components only
6) Other options...
7) Back

Enter selection number:3

--------------
Start options:
--------------
1) Start Now
2) Start From Next Boot Session
3) Back

Enter selection number:1
Collecting pre-repro PnP state... [If it doesn't complete within a few minutes, use CTRL-C to interrupt it.]
Microsoft PnP Utility

Exporting PnP system state: Buses-PnpStatePreRepro.pnp
PnP system state exported successfully.
Updating UMDF trace and dump settings...
The operation completed successfully.
The operation completed successfully.
The operation completed successfully.
The operation completed successfully.
The operation completed successfully.
The operation completed successfully.

Starting Tracing Now... (BusesAllProfile.wprp!BusesAllProfile)

----------------------------------------------------------------------
Tracing started. Reproduce the issue and hit any key to stop tracing.
----------------------------------------------------------------------
Press any key to continue . . .

Repro the issue

On the same I3C-enabled machine that the trace is running, repro the issue.

Stop tracing and collect output

On the I3C-enabled machine, press any key to stop tracing.

Trace files saved to C:\WINDOWS\Tracing; copy this output to a local directory for further analysis.

Note

The contents of this directory will be overwritten if further traces are collected.

Saving WPR status to Buses-TraceInfo.txt...
Stopping tracing...
Press Ctrl+C to cancel the stop operation.
100%  [>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>]
The trace was successfully saved.

Restoring UMDF trace and dump settings...
The operation completed successfully.
The operation completed successfully.
The operation completed successfully.
The operation completed successfully.

Collecting more info...
- OS build numbers...
- Post-repro PnP state... [If it doesn't complete within a few minutes, use CTRL-C to interrupt it.]
Microsoft PnP Utility

Exporting PnP system state: Buses-PnpStatePostRepro.pnp
PnP system state exported successfully.
- Event logs...
- Sleep study report...
Sleep Study report saved to file path C:\WINDOWS\Tracing\Buses-SleepStudyReport.html.
- UMDF trace and dumps...
- Live kernel reports...

######################################################################################
Please collect the following files under C:\WINDOWS\Tracing for further analysis.

  Buses-MachineInfo.etl
  WPR_initiated_WprApp_*.etl
  Buses-TraceInfo.txt
  Buses-PnpStatePreRepro.pnp
  Buses-PnpStatePostRepro.pnp
  Buses-System.evtx
  Buses-Application.evtx
  Buses-DriverWatchdog.evtx
  Buses-KernelShimEngine.evtx
  Buses-UcmUcsiCx.evtx
  Buses-SleepStudyReport.html
  WudfTrace.etl
  All *.dat and *.dmp files (for display diagnose)

######################################################################################

Press any key to continue . . .

Install Windows Performance Analyzer (WPA)

On the trace-analyzing machine (which may be the same as the I3C-enabled machine), install 'Windows Performance Analyzer'. This is used to decode the emitted tracing *.etl files

For installation information, see Windows Performance Analyzer.

Note

This is a one-time setup, and doesn't need to be done again on the same machine.

Trace examination

Open WPR_initiated_WprApp_I3CAndLowPowerBusesTrace.etl with WPA, and examine WPP-Traces

GUID Description
i3chost i3chost.sys WPP Trace
wini3ctarget wini3ctarget.sys WPP Trace

Screenshot of Windows Performance Analyzer displaying I3C host and WinI3C Target WPP trace events.

Debug common issues

Can't enumerate a WinI3C Target through WinI3C APIs

This is typically because the required WinI3C Vendor Extension INF isn't installed or was missing the required WinI3CDeviceInterfaceClassGUID.

Using the I3C kernel debugger extension (i3ckd.dll), can see that the WinI3C Target was enumerated by wini3ctarget.sys, but no DeviceInterfaceClass was found, so no DeviceInterface could be created, strongly indicating the above condition.

2: kd> !i3ckd.i3ctarget 0xffff820e68382010
VID:Microsoft Corporation (0x2cb) · PID:SuperMITT 0 (0xa55aa5a5)
Description: WinI3C Target
ACPI Device Name:
Context: 0xffff820e68382010
!wdfdevice 0x00007df197a73438
!devstack 0xffff820e6852c510
!rcdrlogdump I3CHost -a 0xffff820e688c4000

SM State: Dx (12)
Power State: D3

HostController-Instance: !i3chci 0xffff820e70c81010

Kind: DebugTargetSystem (0xc9)
I3C Dynamic Address: 0x8
I3C DevIndex: 0x0
DAT Entry: 0xffff820e66307d51

Function Driver: wini3ctarget.sys
Context: 0xffff820e60e6dc90
!wdfdevice 0x00007df19f192658
DeviceInterfaceClass: None

Debugger Time: 18:51:26.000 · 27 Aug 2026 (PDT)
======================================================================
|     Event     | Count |               Last               | (s) ago |
======================================================================
| *All*         |     2 | 18:51:20.121 · 27 Aug 2026 (PDT) |       5 |
| RegularIO     |     0 |                                  |         |
| VendorCCC     |     0 |                                  |         |
| GETSTATUS     |     0 |                                  |         |
| GETCAPS       |     0 |                                  |         |
| SETMRL        |     0 |                                  |         |
| SETMWL        |     0 |                                  |         |
| Reset         |     0 |                                  |         |
| Rejoin        |     0 |                                  |         |
| D0Entry       |     1 | 18:51:15.120 · 27 Aug 2026 (PDT) |      10 |
| D0Exit        |     1 | 18:51:20.121 · 27 Aug 2026 (PDT) |       5 |
| IBIsStarted   |     0 |                                  |         |
| IBIsStopped   |     0 |                                  |         |
| IBIsCompleted |     0 |                                  |         |
======================================================================
Total Rejoins since D0Exit: 0
Total IBIs since D0Exit: 0

I/O never received by a WinI3C client

In addition to an I3C protocol analyzer to examine wire transfers, i3ckd.dll can be used to understand recently received I/O. Multiple counters are maintained for common I/O and power-events.

In the below, can see that only a single IBI was received (3s ago); no other I/O was received from the WinI3C-Target. If another IBI was expected, it either wasn't sent by the WinI3C-Target (hardware) or was malformed and dropped before being forwarded.

3: kd> !i3ckd.i3ctarget 0xffff820e6863b010
VID:Microsoft Corporation (0x2cb) · PID:SuperMITT 0 (0xa55aa5a5)
Description: SuperMITT WinI3C Target
ACPI Device Name:
Context: 0xffff820e6863b010
!wdfdevice 0x00007df19f229338
!devstack 0xffff820e728f5810
!rcdrlogdump I3CHost -a 0xffff820e68640000

SM State: D0 (10)
Power State: D0

HostController-Instance: !i3chci 0xffff820e70e35050

Kind: DebugTargetSystem (0xc9)
I3C Dynamic Address: 0x8
I3C DevIndex: 0x0
DAT Entry: 0xffff820e6630b271

Function Driver: wini3ctarget.sys
Context: 0xffff820e60d14ef0
!wdfdevice 0x00007df19f2eb3f8
DeviceInterfaceClass: {13cbdaf6-33dc-40ae-aedb-77dfde96666d}
Idle timeout (s): 5
Initiator Process: (0)

Debugger Time: 20:24:14.000 · 27 Aug 2026 (PDT)
======================================================================
|     Event     | Count |               Last               | (s) ago |
======================================================================
| *All*         |     5 | 20:24:11.473 · 27 Aug 2026 (PDT) |       2 |
| RegularIO     |     0 |                                  |         |
| VendorCCC     |     0 |                                  |         |
| GETSTATUS     |     0 |                                  |         |
| GETCAPS       |     0 |                                  |         |
| SETMRL        |     0 |                                  |         |
| SETMWL        |     0 |                                  |         |
| Reset         |     0 |                                  |         |
| Rejoin        |     0 |                                  |         |
| D0Entry       |     1 | 20:24:10.859 · 27 Aug 2026 (PDT) |       3 |
| D0Exit        |     0 |                                  |         |
| IBIsStarted   |     1 | 20:24:10.896 · 27 Aug 2026 (PDT) |       3 |
| IBIsStopped   |     2 | 20:24:11.473 · 27 Aug 2026 (PDT) |       2 |
| IBIsCompleted |     1 | 20:24:10.896 · 27 Aug 2026 (PDT) |       3 |
======================================================================
Total IO since D0Entry: 0
Total Rejoins since D0Entry: 0
Total IBIs since D0Entry: 1

Looking at the parent HostController-Instance, no malformed/invalid IBI has been received. This strongly indicates the WinI3C-Target did not send any other IBIs.

3: kd> !i3ckd.i3chci 0xffff820e70e35050
HCI (Spec) Version: 1.0.0 (Major/Minor/Revision)
ACPI Device Name: CTR3
Context: 0xffff820e70e35050
!rcdrlogdump I3CHost -a 0xffff820e7cef8000

HCI SM State: Dx (13)
TC SM State: WaitingForStart (37)

Transport:
    OperationMode: DMA

Debugger Time: 20:24:14.000 · 27 Aug 2026 (PDT)
=========================================================================
|      Event       | Count |               Last               | (s) ago |
=========================================================================
| *All*            |    14 | 20:24:11.897 · 27 Aug 2026 (PDT) |       2 |
| IoProgrammed     |     6 | 20:24:10.896 · 27 Aug 2026 (PDT) |       3 |
| IoResponse       |     6 | 20:24:10.896 · 27 Aug 2026 (PDT) |       3 |
| HotJoin          |     0 |                                  |         |
| IBIsInvalid      |     0 |                                  |         |
| D0Entry          |     1 | 20:24:10.851 · 27 Aug 2026 (PDT) |       3 |
| D0Exit           |     1 | 20:24:11.897 · 27 Aug 2026 (PDT) |       2 |
| TransportReset   |     0 |                                  |         |
| TransferWatchDog |     0 |                                  |         |
=========================================================================