Tutorial: Debugging with Intel® Distribution for GDB*

Troubleshooting

Kernel Stops Responding

If the kernel that is offloaded to a GPU stops responding:

  1. Check whether there are any stray `gdbserver-gt` processes running in the background:
    ps -u $USER | grep gdbserver-gt
  2. Stop background `gdbserver-gt` processes, if there are any:
    killall -9 gdbserver-gt

Breakpoint Is Not Hit

If the breakpoints defined inside the kernel are not hit when running on a GPU, reset the GPU device (requires root access):

  1. Unload the `igfxdcd` driver
    modprobe -r igfxdcd
  2. Reset the device
    echo -1 | tee /sys/kernel/debug/dri/0/i915_wedged
  3. Load the `igfxdcd` driver again
    modprobe igfxdcd