| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| imgui/ | 22-Oct-2025 | - | 785 | 573 | ||
| README.md | D | 22-Oct-2025 | 2.4 KiB | 92 | 71 | |
| aub_mem.c | D | 22-Oct-2025 | 12.3 KiB | 436 | 339 | |
| aub_mem.h | D | 22-Oct-2025 | 2.6 KiB | 79 | 38 | |
| aub_read.c | D | 22-Oct-2025 | 13.5 KiB | 428 | 346 | |
| aub_read.h | D | 22-Oct-2025 | 2.6 KiB | 77 | 35 | |
| aub_write.c | D | 22-Oct-2025 | 28 KiB | 843 | 662 | |
| aub_write.h | D | 22-Oct-2025 | 3.9 KiB | 143 | 88 | |
| aubinator.c | D | 22-Oct-2025 | 11.7 KiB | 412 | 311 | |
| aubinator_error_decode.c | D | 22-Oct-2025 | 28.8 KiB | 951 | 775 | |
| aubinator_error_decode_lib.c | D | 22-Oct-2025 | 1.8 KiB | 71 | 56 | |
| aubinator_error_decode_lib.h | D | 22-Oct-2025 | 464 | 22 | 12 | |
| aubinator_error_decode_xe.c | D | 22-Oct-2025 | 11.7 KiB | 357 | 293 | |
| aubinator_error_decode_xe.h | D | 22-Oct-2025 | 487 | 21 | 12 | |
| aubinator_viewer.cpp | D | 22-Oct-2025 | 36.1 KiB | 1,226 | 941 | |
| aubinator_viewer.h | D | 22-Oct-2025 | 2.9 KiB | 103 | 81 | |
| aubinator_viewer_decoder.cpp | D | 22-Oct-2025 | 36.2 KiB | 1,009 | 829 | |
| aubinator_viewer_urb.h | D | 22-Oct-2025 | 3.5 KiB | 97 | 75 | |
| error2aub.c | D | 22-Oct-2025 | 16.9 KiB | 550 | 434 | |
| error2hangdump.c | D | 22-Oct-2025 | 12.9 KiB | 441 | 343 | |
| error2hangdump_lib.c | D | 22-Oct-2025 | 1.4 KiB | 70 | 55 | |
| error2hangdump_lib.h | D | 22-Oct-2025 | 861 | 40 | 26 | |
| error2hangdump_xe.c | D | 22-Oct-2025 | 5.1 KiB | 165 | 132 | |
| error2hangdump_xe.h | D | 22-Oct-2025 | 208 | 12 | 4 | |
| error_decode_lib.c | D | 22-Oct-2025 | 425 | 26 | 17 | |
| error_decode_lib.h | D | 22-Oct-2025 | 173 | 11 | 3 | |
| error_decode_xe_lib.c | D | 22-Oct-2025 | 6.8 KiB | 289 | 213 | |
| error_decode_xe_lib.h | D | 22-Oct-2025 | 2.1 KiB | 62 | 42 | |
| gfx10_context.h | D | 22-Oct-2025 | 8.2 KiB | 169 | 127 | |
| gfx8_context.h | D | 22-Oct-2025 | 7.6 KiB | 159 | 118 | |
| intel_aub.h | D | 22-Oct-2025 | 6.8 KiB | 181 | 90 | |
| intel_context.h | D | 22-Oct-2025 | 3.8 KiB | 107 | 56 | |
| intel_dev_info.c | D | 22-Oct-2025 | 10.6 KiB | 299 | 240 | |
| intel_dump_gpu.c | D | 22-Oct-2025 | 22.6 KiB | 819 | 637 | |
| intel_dump_gpu.in | D | 22-Oct-2025 | 3.4 KiB | 157 | 133 | |
| intel_hang_replay.c | D | 22-Oct-2025 | 20.6 KiB | 657 | 521 | |
| intel_hang_viewer.cpp | D | 22-Oct-2025 | 22.7 KiB | 795 | 614 | |
| intel_noop_drm_shim.c | D | 22-Oct-2025 | 19.7 KiB | 623 | 486 | |
| intel_sanitize_gpu.c | D | 22-Oct-2025 | 11.2 KiB | 437 | 320 | |
| intel_sanitize_gpu.in | D | 22-Oct-2025 | 1 KiB | 58 | 45 | |
| intel_stub_gpu.in | D | 22-Oct-2025 | 1.7 KiB | 87 | 70 | |
| intel_tools.c | D | 22-Oct-2025 | 2 KiB | 68 | 58 | |
| intel_tools.h | D | 22-Oct-2025 | 889 | 34 | 19 | |
| meson.build | D | 22-Oct-2025 | 6.6 KiB | 229 | 211 |
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