[Mesa-dev] [PATCH v2 2/3] i965: Add INTEL_DEBUG=hang

Kenneth Graunke kenneth at whitecape.org
Sun Feb 17 08:01:57 UTC 2019


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...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20190217/786edccb/attachment.sig>


More information about the mesa-dev mailing list