Jianxun Zhang
|
2a681c4f8b
|
intel/decoder: Print more information in shader's headline
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
Print out the kernel start pointer (KSP) and the hash of
referenced shader in its headline. This saves some search
in GPU hang dumps, base on the work of
72bc74f0be and
fd11e4b4d3
An example from a decoded GPU hang dump:
0xeffeffefe19c: 0x10000002: MI_STORE_DATA_IMM
0xeffeffefe19c: 0x10000002 : Dword 0
DWord Length: 2
Force Write Completion Check : false
Store Qword: 0
Use Global GTT: false
0xeffeffefe1a0: 0xffe000c0 : Dword 1
Core Mode Enable: 0
0xeffeffefe1a4: 0x0000effe : Dword 2
Address: 0xeffeffe000c0
0xeffeffefe1a8: 0x82f94895 : Dword 3 <--- No need to search here
0xeffeffefe1ac: 0x72080025 : Dword 4
Immediate Data: 2197375125
0xeffeffefe1ac: 0x72080025: COMPUTE_WALKER
0xeffeffefe1ac: 0x72080025 : Dword 0
...
body: <struct COMPUTE_WALKER_BODY>
...
Interface Descriptor: <struct INTERFACE_DESCRIPTOR_DATA>
...
0xeffeffefe1f4: 0x00001f40 : Dword 0
Kernel Start Pointer: 0x00001f40 <--- No need to search here
...
0xeffeffefe244: 0x00000000 : Dword 37
Inline Data[7]: 0
Referenced compute shader (ksp: 0x1f40 hash: 0x7208002582f94895): <- ksp & hash printed here
send(1) g3UD g2UD nullUD ...
ugm MsgDesc: ( load, a64, d32, V64, ...
add(1) g16<2>UD g2<0,1,0>UD 0x00000100UD
Note: Shader hash output rquires 'ANV_DEBUG=shader-hash' when running
the workload.
Signed-off-by: Jianxun Zhang <jianxun.zhang@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40418>
|
2026-06-11 03:28:29 +00:00 |
|