[igt-dev] [PATCH i-g-t] tests/gem_watchdog: Initial set of tests for GPU watchdog
Petri Latvala
petri.latvala at intel.com
Mon Sep 24 12:13:13 UTC 2018
On Fri, Sep 21, 2018 at 12:54:13PM -0700, Carlos Santa wrote:
> This test adds basic set of tests to reset the different
> GPU engines through the watchdog timer.
>
> Credits to Antonio for the original codebase this is based on.
>
> This was verified on SKL/ULT GT3:
>
> $./gem_watchdog --run-subtest basic-vebox
> IGT-Version: 1.23-gaaeb2007206d (x86_64) (Linux: 4.18.0-rc7+ x86_64)
> Starting subtest: basic-vebox
> Subtest basic-vebox: SUCCESS (2.402s)
> $ sudo cat /sys/kernel/debug/dri/0/i915_reset_info
> full gpu reset = 0
> GuC watchdog/media reset = 0
> rcs0 = 0
> bcs0 = 0
> vcs0 = 0
> vcs1 = 0
> vecs0 = 1
>
> Cc: Antonio Argenziano <antonio.argenziano at intel.com>
> Cc: Michel Thierry <michel.thierry at intel.com>
> Signed-off-by: Carlos Santa <carlos.santa at intel.com>
> ---
> tests/Makefile.sources | 1 +
> tests/gem_watchdog.c | 252 +++++++++++++++++++++++++++++++++++++++++++++++++
> tests/meson.build | 1 +
> 3 files changed, 254 insertions(+)
> create mode 100644 tests/gem_watchdog.c
>
> diff --git a/tests/Makefile.sources b/tests/Makefile.sources
> index c84933f1d971..9b298886a2e1 100644
> --- a/tests/Makefile.sources
> +++ b/tests/Makefile.sources
> @@ -155,6 +155,7 @@ TESTS_progs = \
> gem_unref_active_buffers \
> gem_userptr_blits \
> gem_wait \
> + gem_watchdog \
> gem_workarounds \
> gem_write_read_ring_switch \
> gen3_mixed_blits \
> diff --git a/tests/gem_watchdog.c b/tests/gem_watchdog.c
> new file mode 100644
> index 000000000000..e9d8bbc9a2ec
> --- /dev/null
> +++ b/tests/gem_watchdog.c
> @@ -0,0 +1,252 @@
> +/*
> + * Copyright © 2016 Intel Corporation
Is this year correct?
IGT_TEST_DESCRIPTION() is missing also.
--
Petri Latvala
More information about the igt-dev
mailing list