On Saturday, February 16, 2019 4:41:30 AM PST Chris Wilson wrote:
> Introduce a new debug option to wilfully cause the GPU to hang and for
> the kernel to accuse of being neglectful.
> ---
>  src/intel/Makefile.sources                    |   2 +
>  src/intel/common/gen_debug.c                  |   1 +
>  src/intel/common/gen_debug.h                  |   1 +
>  src/intel/common/gen_hang.c                   | 176 ++++++++++++++++++
>  src/intel/common/gen_hang.h                   |  51 +++++
>  src/intel/common/meson.build                  |   2 +
>  src/mesa/drivers/dri/i965/intel_batchbuffer.c |  14 ++
>  7 files changed, 247 insertions(+)
>  create mode 100644 src/intel/common/gen_hang.c
>  create mode 100644 src/intel/common/gen_hang.h

This seems useful for testing recovery, but I am unsure whether we want
to ship it as an INTEL_DEBUG option available at runtime in all builds.

Perhaps others have an opinion...

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to