デバッグとトラブルシューティング

このガイダンスは、Windows 11 バージョン 25H2 以降に適用されます。

I3C カーネル デバッガー拡張機能 (i3ckd.dll) とバス トレース ツールを使用して、デバイスの列挙、電源状態、および I/O の問題を調査します。

カーネル デバッガー拡張機能 (i3ckd.dll)

プラットフォームの立ち上げのために、Microsoftは、ベンダーがシステムに関する分析情報を得るための I3C カーネル デバッガー拡張機能を提供します。 これはカーネル デバッガーでのみ機能します。

これは、ライブ セッションと.dmpの両方で使用できます。

すべての I3C デバイスを表示する

すべての I3C デバイスとその階層関係を !i3ctree で表示します。

Note

!i3ctree は、I3C HostController-Devices、HostController-Instances、および Targets を列挙します。 デバイス マネージャーは、HostController-Device の個々の HostController-Instances を列挙しません。

次のスクリーンショットは、デバイス マネージャーの I3C デバイスの例を示しています。 これは、以下のデバッガー出力とは無関係です。

子のサンプル WinI3C ターゲット デバイスを持つ I3C ホスト コントローラーを示すデバイス マネージャーのスクリーンショット。

次のサンプル出力では、システムには 1 つの HostController-Device があり、HostController-Instance は 1 つで、ターゲットは 1 つ (SuperMITT) です。 すべてのデバイスが正常に動作しています。

KD セッションで、DML ハイパーリンクをクリックして詳細を確認します。

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

特定の 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

特定の 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 |                                  |         |
=========================================================================

特定のターゲットを調べる

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

すべてのWindows I3C コンポーネントは、事後分析のためのトレースを出力します。 これは通常、顧客/ベンダーが問題が発生したときにMicrosoftが要求する内容です。

winget からトレース ファイルをインストールする

I3C 対応コンピューターで、管理者特権のコマンド プロンプトで次を実行します: winget install windowsbusestracing

基になるファイルについては、Github (https://github.com/microsoft/busiotools/tree/master/usb) を参照してください。

Note

これは 1 回限りのセットアップであり、同じコンピューターでもう一度実行する必要はありません。

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

トレースの構成と開始

I3C 対応マシンで、管理者特権のコマンド プロンプトから startwindowsbusestracing を実行し、I3C/LowPoweredBuses コンポーネントのみを選択し、[今すぐ開始] を選択します

###########################
       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 . . .

問題を再現する

トレースが実行されているのと同じ I3C 対応コンピューターで、 問題を再現します。

トレースを停止して出力を収集する

I3C 対応コンピューターで、任意のキーを押してトレースを停止します。

トレース ファイルはC:\WINDOWS\Tracingに保存されます。詳細な分析のために、この出力をローカル ディレクトリにコピーしてください。

Note

さらにトレースが収集されると、このディレクトリの内容が上書きされます。

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 . . .

Windows パフォーマンス アナライザー (WPA) のインストール

トレース分析マシン (I3C 対応コンピューターと同じ場合があります) に、'Windows パフォーマンス アナライザー' をインストールします。 これは、出力されたトレース *.etl ファイルをデコードするために使用されます

インストール情報については、Windows パフォーマンス アナライザーを参照してください。

Note

これは 1 回限りのセットアップであり、同じコンピューターでもう一度実行する必要はありません。

トレースの確認

WPA で WPR_initiated_WprApp_I3CAndLowPowerBusesTrace.etl を開き、WPP-Traces を調べます

GUID Description
i3chost i3chost.sys WPP トレース
wini3ctarget wini3ctarget.sys WPP トレース

I3C ホストと WinI3C ターゲット WPP トレース イベントを表示するWindows パフォーマンス アナライザーのスクリーンショット。

一般的な問題をデバッグする

WinI3C API を使用して WinI3C ターゲットを列挙できない

これは通常、必要な WinI3C Vendor Extension INF がインストールされていないか、必要な WinI3CDeviceInterfaceClassGUID が含まれていないためです。

I3C カーネル デバッガー拡張機能 (i3ckd.dll) を使用すると、WinI3C ターゲットが wini3ctarget.sysによって列挙されたが、DeviceInterfaceClass が見つからなかったため、DeviceInterface を作成できず、上記の状態を強く示していることがわかります。

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

WinI3C クライアントで受信されない I/O

ワイヤ転送を調べる I3C プロトコル アナライザーに加えて、i3ckd.dll を使用して最近受信した I/O を把握できます。 一般的な I/O イベントと電源イベントに対して、複数のカウンターが保持されます。

以下では、1つのIBIしか受信されなかったことがわかります(3日前)。WinI3C-Target から他の I/O が受信されませんでした。 別の IBI が想定されていた場合は、WinI3C-Target (ハードウェア) によって送信されなかったか、形式不正のため、転送前に破棄されたかのいずれかです。

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

親 HostController-Instance を見ると、不正な形式または無効な IBI が受信されていません。 これは、WinI3C-Target が他の IBI を送信しなかったことを強く示しています。

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 |                                  |         |
=========================================================================