Name Date Size #Lines LOC

..--

imgui/H25-Apr-2025-785573

README.mdH A D25-Apr-20252.4 KiB9271

aub_mem.cH A D25-Apr-202512.3 KiB436339

aub_mem.hH A D25-Apr-20252.6 KiB7938

aub_read.cH A D25-Apr-202513.5 KiB428346

aub_read.hH A D25-Apr-20252.6 KiB7735

aub_write.cH A D25-Apr-202528 KiB843662

aub_write.hH A D25-Apr-20253.9 KiB14388

aubinator.cH A D25-Apr-202512.2 KiB422321

aubinator_error_decode.cH A D25-Apr-202529.4 KiB965788

aubinator_error_decode_lib.cH A D25-Apr-20251.8 KiB7156

aubinator_error_decode_lib.hH A D25-Apr-2025464 2212

aubinator_error_decode_xe.cH A D25-Apr-202511.5 KiB352292

aubinator_error_decode_xe.hH A D25-Apr-2025487 2112

aubinator_viewer.cppH A D25-Apr-202536.7 KiB1,241956

aubinator_viewer.hH A D25-Apr-20252.9 KiB10381

aubinator_viewer_decoder.cppH A D25-Apr-202536.2 KiB1,009829

aubinator_viewer_urb.hH A D25-Apr-20253.5 KiB9775

error2aub.cH A D25-Apr-202516.9 KiB550434

error2hangdump.cH A D25-Apr-202512.9 KiB441343

error2hangdump_lib.cH A D25-Apr-20251.4 KiB7055

error2hangdump_lib.hH A D25-Apr-2025861 4026

error2hangdump_xe.cH A D25-Apr-20254.9 KiB160131

error2hangdump_xe.hH A D25-Apr-2025208 124

error_decode_lib.cH A D25-Apr-2025425 2617

error_decode_lib.hH A D25-Apr-2025173 113

error_decode_xe_lib.cH A D25-Apr-20256.8 KiB288212

error_decode_xe_lib.hH A D25-Apr-20252 KiB6141

gfx10_context.hH A D25-Apr-20258.2 KiB169127

gfx8_context.hH A D25-Apr-20257.6 KiB159118

intel_aub.hH A D25-Apr-20256.8 KiB18190

intel_context.hH A D25-Apr-20253.8 KiB10756

intel_dev_info.cH A D25-Apr-202510.6 KiB299240

intel_dump_gpu.cH A D25-Apr-202522.6 KiB819637

intel_dump_gpu.inH A D25-Apr-20253.4 KiB157133

intel_hang_replay.cH A D25-Apr-202521.1 KiB669537

intel_hang_viewer.cppH A D25-Apr-202523.3 KiB812630

intel_noop_drm_shim.cH A D25-Apr-202519.7 KiB623486

intel_sanitize_gpu.cH A D25-Apr-202511.2 KiB437320

intel_sanitize_gpu.inH A D25-Apr-20251 KiB5845

intel_stub_gpu.inH A D25-Apr-20251.7 KiB8770

meson.buildH A D25-Apr-20256.6 KiB216199

README.md

1# aubinator_error_decode
2
3This tool allows decode an error state dump generated by the kernel
4driver.
5
6Make a copy of the error state file (i915) :
7```
8$ sudo cp /sys/devices/pci0000:00/0000:00:02.0/drm/card0/error /tmp/error
9$ sudo chmod go+rw /tmp/error
10```
11
12Make a copy of the error state file (Xe) :
13```
14$ sudo cp /sys/class/drm/card0/device/devcoredump/data /tmp/error
15$ sudo chmod go+rw /tmp/error
16```
17
18Then visualize the error state (from the mesa build directory) :
19```
20$ ./src/intel/tools/aubinator_error_decode /tmp/error
21```
22
23# intel_stub_gpu
24
25This tool allows faking a particular device at the ioctl level. This
26is useful to test compiler changes (using shader-db/fossils-db
27replays) across a number of device you don't necessarily have access
28too.
29
30Faking a DG2 device :
31```
32$ intel_stub_gpu -p dg2 fossilize-replay /path/to/fossilize.foz --enable-pipeline-stats /tmp/dg2.csv
33```
34
35Faking a ICL device :
36```
37$ intel_stub_gpu -p icl fossilize-replay /path/to/fossilize.foz --enable-pipeline-stats /tmp/icl.csv
38```
39
40# intel_error2hangdump
41
42This tool converts an error state dump into an
43uncompressed/easy-to-modify binary file (format described in
44`src/intel/common/intel_hang_dump.h`).
45
46Capture the error state (i915) :
47```
48$ sudo cp /sys/devices/pci0000:00/0000:00:02.0/drm/card0/error /tmp/error
49$ sudo chmod go+rw /tmp/error
50```
51Capture the error state (Xe) :
52```
53$ sudo cp /sys/class/drm/card0/device/devcoredump/data /tmp/error
54$ sudo chmod go+rw /tmp/error
55```
56
57Convert an error state (from the mesa build directory) :
58```
59$ ./src/intel/tools/intel_error2hang /tmp/error
60```
61
62A resulting `error.dmp` file will be created
63
64# intel_hang_replay
65
66This tool replays a binary file generated by `intel_error2hangdump`.
67
68From the mesa build directory :
69```
70$ ./src/intel/tools/intel_hang_replay -d /tmp/error.dmp
71```
72
73# intel_hang_viewer
74
75This tool is a editor/visualizer for the file generated by
76`intel_error2hangdump`. When replaying on simulation a few tweaks
77might be needed in order for the simulator to accept the input
78commands (this is due to divergences between the simulation & HW
79implementations).
80
81To visualize a file generated from a DG2 error state (from the mesa
82build directory) :
83```
84./src/intel/tools/intel_hang_viewer -p dg2 /tmp/error.dmp
85```
86
87To visualize and edit a file generated from a DG2 error state (from the mesa
88build directory) :
89```
90./src/intel/tools/intel_hang_viewer -e -p dg2 /tmp/error.dmp
91```
92