tests/gem_watchdog: Initial set of tests for GPU watchdog
RFC v6 1/1 tests/gem_watchdog: Initial set of tests for GPU watchdog
This test adds basic set of tests to reset the different GPU engines through the gpu watchdog timer.
Credits to Antonio for the original codebase this is based on.
v2: remove gem_context_get_param() during set (Antonio)
remove clearing of the engines_threshold[] in the default case inside context_set_watchdog(). (Antonio)
fix indexing when creating low/high priority contexts
get rid of 2 threads idea (Antonio)
fix context prio bug due to wrong indexing (Antonio)
v3: no need to force clear drm_i915_gem_watchdog_timeout struct
when setting the watchdog timeouts (Antonio)
-use gem_context_set_priority() instead to use error checking -always use a looper to test all engines (Antonio)
-modify test gpu_watchodg_hang_long_batch_single_engine()
to use a couple of batches and set the timeout in between them (Antonio) -make use of for_each_engine_class_instance() (Antonio)
v4: -tests should be able to handle s/w watchdog timeout (Tvrtko)
-remove dead code inside batch_buffer factory (Tvrtko) -set_watchdog() should return ENODEV for fail cases (Tvrtko) -enclose name, priority and reset params inside array (Tvrtko)
v5: -Rebased. Tests 5,6 and 8 from the test plan are now added
v6: -Rebased. Added Test #10 Timing_batch (Chris)
-use i915_engine_class_instance, use spinner to track out_fence, -use a struct to describe # of ctx/scratch[], increase # of engines from 8 (Chris)
Test Plan:
Assumptions:
1. Use fence status to figure out which ctx was reset
2. Use spin batches w/ user space timers to control duration and corking to control ordering
3. Use context priorities to force preemption
Tests:
1. ctx1, long_batch -> execute
2. ctx1, set_watchdog -> reset
3. ctx2/ctx1 -> execute, reset
4. ctx1/ctx2 -> reset, execute
5. ctx1_just_below_threshold -> execute
6. ctx_over_the_threshold -> reset
7. set watchdog on some engines -> execute
8. submit long_batch and after half of the
expected runtime submit higher prio batch
9. submit low prio batch w/o watchdog then
higher prio with watchdog
10. submit timing_batch, record timestamps
and calculate the delta after recursing.
Unsresolved items:
1. The check for sync_fence_status(*fence)
returns -1 instead of EIO.
--- tests/Makefile.sources | 3 + tests/i915/gem_watchdog.c | 730 ++++++++++++++++++++++++++++++++++++++ tests/meson.build | 1 + 3 files changed, 734 insertions(+) create mode 100644 tests/i915/gem_watchdog.c
tests/Makefile.sources +3 -0
@@ -459,6 +459,9 @@ gem_userptr_blits_SOURCES = i915/gem_userptr_blits.c TESTS_progs += gem_wait gem_wait_SOURCES = i915/gem_wait.c +TESTS_progs += gem_watchdog +gem_watchdog_SOURCES = i915/gem_watchdog.c + TESTS_progs += gem_workarounds gem_workarounds_SOURCES = i915/gem_workarounds.c
tests/i915/gem_watchdog.c new file +730 -0
730 lines not on this page · raw message
tests/meson.build +1 -0
@@ -220,6 +220,7 @@ i915_progs = [ 'gem_userptr_blits', 'gem_vm_create', 'gem_wait', + 'gem_watchdog', 'gem_workarounds', 'gem_write_read_ring_switch', 'i915_fb_tiling',
Signature · 6 lines
2.19.1 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Hi Chris, Ursulin,
I've been working w/ Antonio to add the timing_batch.
Need some help with the timing batch below as the calculated delta seems rather large??
Can you take a look?
csanta@labuser-NUC:~/intel-graphics/gpu_watchdog_timeout/igt_tip/intel- gpu-tools$ sudo ./tests/gem_watchdog --run-subtest ctx1-scratch- timestamp
IGT-Version: 1.24-g71968ba (x86_64) (Linux: 5.1.0+ x86_64) Starting subtest: ctx1-scratch-timestamp
Batch buffer[0]: 12000002
Batch buffer[1]: 2358
Batch buffer[2]: 0
Batch buffer[3]: 0
Batch buffer[4]: 12000002
Batch buffer[5]: 2358
Batch buffer[6]: 4
Batch buffer[7]: 0
Batch buffer[8]: 18800101
Batch buffer[9]: 40010
Batch buffer[10]: 0
Batch buffer[11]: 5000000
Batch buffer[12]: 0
Batch buffer[13]: c5c5c5c5
Batch buffer[14]: c5c5c5c5
Batch buffer[15]: c5c5c5c5
Buffer Object[0]: 4af0a1a6
Buffer Object[1]: 50aa3d84
Buffer Object[2]: 0
Buffer Object[3]: 0
Buffer Object[4]: 0
Buffer Object[5]: 0
Buffer Object[6]: 0
Buffer Object[7]: 0
Buffer Object[8]: 0
Buffer Object[9]: 0
Buffer Object[10]: 0
Buffer Object[11]: 0
Buffer Object[12]: 0
Buffer Object[13]: 0
Buffer Object[14]: 0
Buffer Object[15]: 0
Input watchdog threshold in us = 1000000 or (~1s)
RCS timestamp clock: 12000KHz, 83.3ns Elapsed time in start_timestamp: 1257284006 Elapsed time in stop_timestamp: 1353334148 Elapsed time in milliseconds: 8004.178711 Total Timeout during the hang: 7004.178711 Test #1: batch_buffer_timed --> execute on rcs0 Subtest ctx1-scratch-timestamp: SUCCESS (8.028s)
Regards,
Carlos
Quoted 900 lines · Carlos Santa
This test adds basic set of tests to reset the different GPU engines through the gpu watchdog timer.
Credits to Antonio for the original codebase this is based on.
v2: remove
gem_context_get_param()during set (Antonio)
remove clearing of the engines_threshold[] in the default case insidecontext_set_watchdog(). (Antonio)
fix indexing when creating low/high priority contexts get rid of 2 threads idea (Antonio)
fix context prio bug due to wrong indexing (Antonio)
v3: no need to force cleardrm_i915_gem_watchdog_timeoutstruct
when setting the watchdog timeouts (Antonio)
-usegem_context_set_priority()instead to use error checking -always use a looper to test all engines (Antonio) -modify testgpu_watchodg_hang_long_batch_single_engine()to use a couple of batches and set the timeout in between them
(Antonio)
-make use offor_each_engine_class_instance()(Antonio)
v4: -tests should be able to handle s/w watchdog timeout (Tvrtko)
-remove dead code insidebatch_bufferfactory (Tvrtko) -set_watchdog() should return ENODEV for fail cases (Tvrtko) -enclose name, priority and reset params inside array (Tvrtko)
v5: -Rebased. Tests 5,6 and 8 from the test plan are now added
v6: -Rebased. Added Test #10Timing_batch(Chris)
-usei915_engine_class_instance, use spinner to trackout_fence, -use a struct to describe # of ctx/scratch[], increase # of
engines
from 8 (Chris)Test Plan:
Assumptions:
1. Use fence status to figure out which ctx was reset
2. Use spin batches w/ user space timers to control duration and corking to control ordering
3. Use context priorities to force preemptionTests:
1. ctx1,long_batch-> execute
2. ctx1,set_watchdog-> reset
3. ctx2/ctx1 -> execute, reset
4. ctx1/ctx2 -> reset, execute
5.ctx1_just_below_threshold-> execute
6.ctx_over_the_threshold-> reset
7. set watchdog on some engines -> execute
8. submitlong_batchand after half of the
expected runtime submit higher prio batch
9. submit low prio batch w/o watchdog then
higher prio with watchdog
10. submittiming_batch, record timestamps
and calculate the delta after recursing.Unsresolved items:
1. The check forsync_fence_status(*fence)
returns -1 instead of EIO.Cc Ursulin Tvrtko <[email protected]>Cc Antonio Argenziano <[email protected]>Cc Chris Wilson <[email protected]>Signed-off-by Carlos Santa <[email protected]>--- tests/Makefile.sources | 3 + tests/i915/gem_watchdog.c | 730 ++++++++++++++++++++++++++++++++++++++ tests/meson.build | 1 + 3 files changed, 734 insertions(+) create mode 100644 tests/i915/gem_watchdog.ctests/Makefile.sources +0
-0@@ -459,6 +459,9 @@ gem_userptr_blits_SOURCES =
i915/gem_userptr_blits.c
TESTS_progs+=gem_wait
gem_wait_SOURCES=i915/gem_wait.ctests/Makefile.sources +3
-0+TESTS_progs += gem_watchdog +gem_watchdog_SOURCES = i915/gem_watchdog.c + TESTS_progs += gem_workarounds gem_workarounds_SOURCES = i915/gem_workarounds.ctests/i915/gem_watchdog.c new file +4
-0@@ -0,0 +1,730 @@ +/* +* Copyright © 2019 Intel Corporation +* +* Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ */tests/i915/gem_watchdog.c new file +16
-0+#include "igt.h" +#include "igt_sysfs.h" +#include "sw_sync.h" + +#include <pthread.h> +#include <fcntl.h> + +#include <sys/time.h> +#include <sys/ioctl.h> +#include <sys/poll.h> +#include <sys/signal.h> +#include "i915/gem_ring.h" + +#define MI_STORE_REGISTER_MEM (0x24 << 23) +#define LOCAL_I915_EXEC_BSD_SHIFT (13) +#define LOCAL_I915_EXEC_BSD_RING1 (1 <<
LOCAL_I915_EXEC_BSD_SHIFT)
+#defineLOCAL_I915_EXEC_BSD_RING2(2 <<LOCAL_I915_EXEC_BSD_SHIFT)tests/i915/gem_watchdog.c new file +18
-0+ +#define MAX_PRIO LOCAL_I915_CONTEXT_MAX_USER_PRIORITY +#define DEFAULT_PRIO LOCAL_I915_CONTEXT_DEFAULT_PRIORITY +#define MIN_PRIO LOCAL_I915_CONTEXT_MIN_USER_PRIORITY +#define HIGH 1 +#define LOW 0 +#define WATCHDOG_OVER_THRESHOLD (2070000) +#define WATCHDOG_BELOW_THRESHOLD (1200000) + +#define WATCHDOG_THRESHOLD (1000000) +#define MAX_ENGINES 16 +#define RENDER_CLASS 0 +#define VIDEO_DECODE_CLASS 1 +#define VIDEO_ENHANCEMENT_CLASS 2 +#define COPY_ENGINE_CLASS 3 +#define LOCAL_I915_CONTEXT_PARAM_WATCHDOG 0x10 + +#define GET_RESET_STATS_IOCTL DRM_IOWR(DRM_COMMAND_BASE + 0x32,struct
local_drm_i915_reset_stats)tests/i915/gem_watchdog.c new file +18
-0+struct local_drm_i915_reset_stats { +__u32 ctx_id; +__u32 flags; +__u32 reset_count; +__u32 batch_active; +__u32 batch_pending; +__u32 pad; +}; + +const uint64_t timeout_100ms =100000000LL ; +float timedifference_msec (struct timeval t0,struct timeval t1); +void sleep_nsec (int ms); + +struct drm_i915_gem_watchdog_timeout { + union { + struct { + /* + * Engine class & instance to be configured orqueried.
tests/i915/gem_watchdog.c new file +28
-0+*/ +__u16 engine_class; +__u16 i915_engine_class_instance; + }; +/* Index based addressing mode */ +__u32 index; + }; +/* GPU Engine watchdog resets timeout in us */ +__u32 timeout_us; +}; + +static void clear_error_state (int fd) +{ +int dir; + + dir =igt_sysfs_open (fd); + +if (dir <0 ) +return ; + +/* Any write to the error state clears it */ +igt_sysfs_set (dir,"error" ,"" ); +close (dir); +} + +static int context_set_watchdog (int fd,unsigned engine_id, +const char *engine_name, + unsigned ctx_id, unsignedthreshold)
tests/i915/gem_watchdog.c new file +2
-0+{ +struct drm_i915_gem_watchdog_timeout engines_threshold[MAX_ENGINES];
tests/i915/gem_watchdog.c new file +19
-0+struct drm_i915_gem_context_param arg = { + .param =LOCAL_I915_CONTEXT_PARAM_WATCHDOG , + .ctx_id = ctx_id, + .size =sizeof (engines_threshold), + .value = (uint64_t )&engines_threshold + }; + +switch (engine_id &I915_EXEC_RING_MASK ) { +case I915_EXEC_RENDER : + engines_threshold[0 ].timeout_us = threshold; + engines_threshold[0 ].engine_class =RENDER_CLASS ; + engines_threshold[0 ].i915_engine_class_instance =0 ; +break ; +case I915_EXEC_BLT : +if (__gem_context_get_param (fd, &arg) == -ENODEV ) +return -ENODEV ; +else + engines_threshold[3 ].timeout_us = threshold; + engines_threshold[3].engine_class =
COPY_ENGINE_CLASS;tests/i915/gem_watchdog.c new file +1
-0+ engines_threshold[3 ].i915_engine_class_instance= 0;
tests/i915/gem_watchdog.c new file +9
-0+break ; +case I915_EXEC_BSD : + engines_threshold[1 ].timeout_us = threshold; + engines_threshold[1 ].engine_class =VIDEO_DECODE_CLASS ; + engines_threshold[1 ].i915_engine_class_instance =0 ; +break ; +case I915_EXEC_VEBOX : + engines_threshold[2 ].timeout_us = threshold; + engines_threshold[2].engine_class =
VIDEO_ENHANCEMENT_CLASS;tests/i915/gem_watchdog.c new file +28
-0+ engines_threshold[2 ].i915_engine_class_instance =0 ; +break ; +default : +break ; + } + +gem_context_set_param (fd, &arg); + +return 0 ; +} + +static double clockrate (int i915,int reg) +{ +volatile uint32_t *mmio; +uint32_t r_start, r_end; +struct timespec tv; +uint64_t t_start, t_end; +uint64_t elapsed; +int cs_timestamp_freq; +drm_i915_getparam_t gp = { + .value = &cs_timestamp_freq, + .param =I915_PARAM_CS_TIMESTAMP_FREQUENCY , + }; + +if (igt_ioctl (i915,DRM_IOCTL_I915_GETPARAM , &gp) ==0 ) +return cs_timestamp_freq; + + mmio = (volatile uint32_t *)((volatile char *)igt_global_mmio +reg);
tests/i915/gem_watchdog.c new file +17
-0+ + t_start =igt_nsec_elapsed (&tv); + r_start = *mmio; + elapsed =igt_nsec_elapsed (&tv) - t_start; + +usleep (1000 ); + + t_end =igt_nsec_elapsed (&tv); + r_end = *mmio; + elapsed +=igt_nsec_elapsed (&tv) - t_end; + + elapsed = (t_end - t_start) + elapsed /2 ; +return (r_end - r_start) *1e9 / elapsed; +} + +#define RCS_TIMESTAMP (0x2000 + 0x358) +static void batch_buffer_timed(uint32_t fd, uint32_t ctx_id,unsigned
exec_id,tests/i915/gem_watchdog.c new file +101
-0+ uint32_t target, uint32_t offset, + uint32_t *handle, uint64_t timeout, + int *fence, int fence_index) +{ + struct drm_i915_gem_exec_object2 obj[2]; +struct drm_i915_gem_relocation_entry reloc[3 ]; +struct drm_i915_gem_execbuffer2 execbuf; +uint32_t batch[16 ]; +uint32_t *batch_ptr; +uint32_t *batch_bo_ptr; +uint64_t delta; +uint32_t timestamp_offset; +float elapsed_time; +uint32_t start_timestamp, stop_timestamp; +const int start_timestamp_pos =0 ; +const int stop_timestamp_pos =1 ; +double rcs_clock; +int i =0 ; + +gem_quiescent_gpu (fd); + +switch (exec_id &I915_EXEC_RING_MASK ) { +case I915_EXEC_RENDER : + timestamp_offset =0x02358 ; +break ; +case I915_EXEC_BSD : + timestamp_offset =0x12358 ; +break ; +case I915_EXEC_VEBOX : + timestamp_offset =0x1a358 ; +break ; +default : +igt_assert_f (0 ,"No timestamp for ring." ); +break ; + } + +memset (&execbuf,0 ,sizeof (execbuf)); +memset (&obj,0 ,sizeof (obj)); +memset (&reloc,0 ,sizeof (reloc)); + + execbuf.buffers_ptr =to_user_pointer (obj); + + execbuf.buffer_count =2 ; + execbuf.flags = exec_id |I915_EXEC_FENCE_OUT ; + + obj[0 ].handle = target; + obj[1 ].handle =gem_create (fd,4096 ); + obj[1 ].relocation_count =3 ; + obj[1 ].relocs_ptr =to_user_pointer (&reloc); + +memset (batch,0xc5 ,sizeof (batch)); + + batch[i++] =MI_STORE_REGISTER_MEM | (4 -2 ); + batch[i++] = timestamp_offset; + + reloc[0 ].offset = i *sizeof (uint32_t ); + batch[i++] =0x0 ; + batch[i++] =0x0 ; + +/* First relocation on Buffer Object */ + reloc[0 ].target_handle = obj[0 ].handle; + reloc[0 ].read_domains =I915_GEM_DOMAIN_COMMAND ; + reloc[0 ].write_domain =I915_GEM_DOMAIN_COMMAND ; + + reloc[0 ].delta = start_timestamp_pos *sizeof (uint32_t ); + + reloc[2 ].delta = i *sizeof (uint32_t ); + batch[i++] =MI_STORE_REGISTER_MEM | (4 -2 ); + batch[i++] = timestamp_offset; + + reloc[1 ].offset = i *sizeof (uint32_t ); + batch[i++] =0x4 ; + batch[i++] =0x0 ; + +/* Second relocation on Buffer object */ + reloc[1 ].target_handle = obj[0 ].handle; + reloc[1 ].read_domains =I915_GEM_DOMAIN_COMMAND ; + reloc[1 ].write_domain =I915_GEM_DOMAIN_COMMAND ; + + reloc[1 ].delta = stop_timestamp_pos *sizeof (uint32_t ); + + batch[i++] =MI_BATCH_BUFFER_START | (1 <<8 ) | (3 -2 ); + reloc[2 ].offset = i *sizeof (uint32_t ); + batch[i++] =MI_NOOP ; + batch[i++] =MI_NOOP ; + + batch[i++] =MI_BATCH_BUFFER_END ; + batch[i++] =MI_NOOP ; + +gem_write (fd, obj[1 ].handle,0 , &batch,sizeof (batch)); + + reloc[2 ].target_handle = obj[1 ].handle; + reloc[2 ].read_domains =I915_GEM_DOMAIN_COMMAND ; + +gem_sync (fd, obj[1 ].handle); + execbuf.rsvd1 = ctx_id; + execbuf.rsvd2 =-1 ; + +gem_execbuf_wr (fd, &execbuf); + + batch_ptr = gem_mmap__cpu(fd, obj[1].handle, 0, 4096,
PROT_READ);tests/i915/gem_watchdog.c new file +4
-0+gem_set_domain (fd, obj[1 ].handle,I915_GEM_DOMAIN_CPU ,0 ); + +/* Read values from BO */ + batch_bo_ptr = gem_mmap__cpu(fd, obj[0].handle, 0, 4096,
PROT_READ);tests/i915/gem_watchdog.c new file +11
-0+gem_set_domain (fd, obj[0 ].handle,I915_GEM_DOMAIN_CPU ,0 ); + + start_timestamp = batch_bo_ptr[start_timestamp_pos]; + stop_timestamp = batch_bo_ptr[stop_timestamp_pos]; + + delta = (uint64_t )stop_timestamp - (uint64_t )start_timestamp; + + delta += (delta >=0 ) ?0 :0xFFFFFFFF ; + + rcs_clock =clockrate (fd,RCS_TIMESTAMP ); + igt_info("RCS timestamp clock: %.0fKHz, %.1fns\n", rcs_clock /1e3, 1e9 /
rcs_clock);tests/i915/gem_watchdog.c new file +9
-0+ rcs_clock =1e9 / rcs_clock; + elapsed_time = delta * rcs_clock;//10^-9 [s] + elapsed_time /=1000 ;//10^-6 [s] + elapsed_time /=1000 ;//10^-3 [s] + +if (delta <=0 ) +igt_assert_f (0 ,"Negative time elapsed!" ); + + printf("Elapsed time in start_timestamp: %llu\n",(uint64_t)start_timestamp);
+ printf("Elapsed time instop_timestamp: %llu\n",
(uint64_t)stop_timestamp);tests/i915/gem_watchdog.c new file +3
-0+printf ("Elapsed time in milliseconds: %f\n" , elapsed_time); +float thr =WATCHDOG_THRESHOLD ; + printf("Total Timeout during the hang: %f\n", elapsed_time -thr/1000. );
tests/i915/gem_watchdog.c new file +8
-0+ + fence[fence_index] = execbuf.rsvd2 >>32 ; + +gem_close (fd, obj[1 ].handle); +gem_quiescent_gpu (fd); +} + +static void batch_buffer_factory(uint32_t fd, uint32_t ctx_id,unsigned
exec_id,tests/i915/gem_watchdog.c new file +58
-0+ uint32_t target, uint32_t offset, + uint32_t *handle, uint64_t timeout, + int *fence, int fence_index) +{ + struct drm_i915_gem_exec_object2 obj[2]; +struct drm_i915_gem_relocation_entry reloc; +struct drm_i915_gem_execbuffer2 execbuf; +igt_spin_t *spin =NULL ; +const uint32_t bbe =MI_BATCH_BUFFER_END ; +int i =0 ; + +gem_quiescent_gpu (fd); + +memset (&execbuf,0 ,sizeof (execbuf)); +memset (&obj,0 ,sizeof (obj)); +memset (&reloc,0 ,sizeof (reloc)); + + execbuf.buffers_ptr =to_user_pointer (obj); + + execbuf.buffer_count =2 ; + execbuf.flags = exec_id |I915_EXEC_FENCE_OUT ; + + obj[0 ].handle = target; + obj[1 ].handle =gem_create (fd,4096 ); + + obj[1 ].relocation_count =1 ; + obj[1 ].relocs_ptr =to_user_pointer (&reloc); + + reloc.target_handle = obj[0 ].handle; + reloc.read_domains =I915_GEM_DOMAIN_COMMAND ; + reloc.write_domain =I915_GEM_DOMAIN_COMMAND ; + reloc.delta = offset *sizeof (uint32_t ); + + reloc.offset = i *sizeof (uint32_t ); +gem_write (fd, obj[1 ].handle,0 , &bbe,sizeof (bbe)); + +gem_sync (fd, obj[1 ].handle); + execbuf.rsvd1 = ctx_id; + execbuf.rsvd2 =-1 ; + + spin = igt_spin_new(fd, + .dependency = obj[0].handle, + .engine = exec_id, + .flags =IGT_SPIN_FENCE_OUT ); +igt_assert (spin->out_fence !=-1 ); +igt_spin_set_timeout (spin, timeout); +igt_assert (gem_bo_busy (fd, obj[0 ].handle)); + +gem_execbuf_wr (fd, &execbuf); +igt_spin_free (fd, spin); + + fence[fence_index] = spin->out_fence;//execbuf.rsvd2 >> 32; + +gem_close (fd, obj[1 ].handle); +gem_quiescent_gpu (fd); +} + +static void inject_hang(uint32_t fd, unsigned engine_id, uint32_t
ctx_id,tests/i915/gem_watchdog.c new file +9
-0+ unsigned flags) +{ +igt_hang_t hang; + hang =igt_hang_ctx (fd, ctx_id, engine_id, flags); +gem_sync (fd, hang.spin->handle); +} + +/* +* Test#1: Write the initial timestamp to scratch, and write a second
+ * timestamp and recurse back to writing the second timestamp.
+ * Compare the two timestamps to see how long it executed for.
+ */
+static void long_batch_test1(int fd, int prio1, int prio2, intreset_ctx1,tests/i915/gem_watchdog.c new file +21
-0+ int reset_ctx2, unsigned threshold) +{ + unsigned engine_id = 0; +unsigned nengine =0 ; +struct intel_execution_engine2 *e_; +struct { +uint32_t ctx[MAX_ENGINES ]; +uint32_t scratch[MAX_ENGINES ]; + } bo[2 ]; +int *fence, i =0 ; +const uint64_t batch_timeout_ms = timeout_100ms *4 ; + + fence =malloc (sizeof (int ) *MAX_ENGINES ); +igt_assert (fence); + +__for_each_physical_engine (fd, e_) { + engine_id = e_->flags; + + bo[0 ].scratch[nengine] =gem_create (fd,4096 ); + bo[0 ].ctx[nengine] =gem_context_create (fd); + gem_context_set_priority(fd, bo[0].ctx[nengine],prio1);
tests/i915/gem_watchdog.c new file +6
-0+ +if (nengine <1 ){ +if (context_set_watchdog (fd, engine_id, e_->name, + bo[0 ].ctx[nengine], + threshold) == -ENODEV ) { + igt_info("No support for gpu h/w watchdog on%s\n",
tests/i915/gem_watchdog.c new file +10
-0+ e_->name); + goto skip_case; + } + +batch_buffer_timed (fd, bo[0 ].ctx[nengine], engine_id, + bo[0 ].scratch[nengine],0 ,NULL , + batch_timeout_ms, fence, nengine); + +igt_assert_eq (sync_fence_status (*fence), -EIO ); + igt_info("Test #1: batch_buffer_timed --> execute on%s\n",e_->name);
tests/i915/gem_watchdog.c new file +16
-0+ } +skip_case: + nengine++; + } + +for (i =0 ; i </*nengine*/ 1 ; i++) { +close (fence[i]); +gem_context_destroy (fd, bo[0 ].ctx[i]); +gem_close (fd, bo[0 ].scratch[i]); + } +} + +/* +* Test#2: Create some work and let it run on all engines +*/ +static void long_batch_test2(int fd, int prio1, int prio2, int
reset_ctx1,tests/i915/gem_watchdog.c new file +21
-0+ int reset_ctx2, unsigned threshold) +{ + unsigned engine_id = 0; +unsigned nengine =0 ; +struct intel_execution_engine2 *e_; +struct { +uint32_t ctx[MAX_ENGINES ]; +uint32_t scratch[MAX_ENGINES ]; + } bo[2 ]; +int *fence, i =0 ; +const uint64_t batch_timeout_ms = timeout_100ms *4 ; + + fence =malloc (sizeof (int ) *MAX_ENGINES ); +igt_assert (fence); + +__for_each_physical_engine (fd, e_) { + engine_id = e_->flags; + + bo[1 ].scratch[nengine] =gem_create (fd,4096 ); + bo[1 ].ctx[nengine] =gem_context_create (fd); + gem_context_set_priority(fd, bo[1].ctx[nengine],prio2);
tests/i915/gem_watchdog.c new file +7
-0+batch_buffer_factory (fd, bo[1 ].ctx[nengine], engine_id, + bo[1 ].scratch[nengine],0 ,NULL , + batch_timeout_ms, fence, nengine); + + bo[0 ].scratch[nengine] =gem_create (fd,4096 ); + bo[0 ].ctx[nengine] =gem_context_create (fd); + gem_context_set_priority(fd, bo[0].ctx[nengine],prio1);
tests/i915/gem_watchdog.c new file +5
-0+batch_buffer_factory (fd, bo[0 ].ctx[nengine], engine_id, + bo[0 ].scratch[nengine],0 ,NULL , + batch_timeout_ms, fence, nengine); + igt_info("Test #2: ctx1/ctx2 --> execute on %s" + " with fence: %d\n",e_->name,
sync_fence_status(*fence));tests/i915/gem_watchdog.c new file +21
-0+ nengine++; + } + +for (i =0 ; i < nengine; i++) { +close (fence[i]); +gem_context_destroy (fd, bo[0 ].ctx[i]); +gem_context_destroy (fd, bo[1 ].ctx[i]); +gem_close (fd, bo[0 ].scratch[i]); +gem_close (fd, bo[1 ].scratch[i]); + } +} + +void sleep_nsec (int ms) { +struct timespec req = {0 }; + req.tv_sec =0 ; + req.tv_nsec = ms *1000000L ; +nanosleep (&req, (struct timespec *)NULL ); +} + +/* +* Test#3: Submit a long batch and after half of the expected runtime
+ * submit a higher priority batch and then try to cancel the execution
+ */
+static void long_batch_test3(int fd, int prio1, int prio2, intreset_ctx1,tests/i915/gem_watchdog.c new file +24
-0+ int reset_ctx2, unsigned threshold) +{ + unsigned engine_id = 0; +unsigned nengine =0 ; +struct intel_execution_engine2 *e_; +struct { +uint32_t ctx[MAX_ENGINES ]; +uint32_t scratch[MAX_ENGINES ]; + } bo[2 ]; +int *fence, i =0 ; +unsigned flags =HANG_ALLOW_CAPTURE ; +const uint64_t batch_timeout_ms = timeout_100ms *4 ; + + fence =malloc (sizeof (int ) *MAX_ENGINES ); +igt_assert (fence); + + nengine =0 ; + +__for_each_physical_engine (fd, e_) { + engine_id = e_->flags; + + bo[1 ].scratch[nengine] =gem_create (fd,4096 ); + bo[1 ].ctx[nengine] =gem_context_create (fd); + gem_context_set_priority(fd, bo[1].ctx[nengine],prio2);
tests/i915/gem_watchdog.c new file +9
-0+batch_buffer_factory (fd, bo[1 ].ctx[nengine], engine_id, + bo[1 ].scratch[nengine],0 ,NULL , + batch_timeout_ms, fence, nengine); + +sleep_nsec (timeout_100ms *2 ); + + bo[0 ].scratch[nengine] =gem_create (fd,4096 ); + bo[0 ].ctx[nengine] =gem_context_create (fd); + gem_context_set_priority(fd, bo[0].ctx[nengine],prio1);
tests/i915/gem_watchdog.c new file +8
-0+batch_buffer_factory (fd, bo[0 ].ctx[nengine], engine_id, + bo[0 ].scratch[nengine],0 ,NULL , + batch_timeout_ms, fence, nengine); + +if (context_set_watchdog (fd, engine_id, e_->name, + bo[0 ].ctx[nengine], + threshold) == -ENODEV ) { + igt_info("No support for gpu h/w watchdog on%s\n",
tests/i915/gem_watchdog.c new file +9
-0+ e_->name); + goto skip_case; + } +clear_error_state (fd); +inject_hang (fd, engine_id, bo[0 ].ctx[nengine], flags); +/* Now check the engine was reset successfully */ +//igt_assert_eq(sync_fence_status(*fence), -EIO); + igt_info("Test #3 ctx1/ctx2 --> set watchdog and" + " cancel ctx2 at half expected run withhigher"
tests/i915/gem_watchdog.c new file +1
-0+ " priority engine: %s, fence status: %d\n",
tests/i915/gem_watchdog.c new file +1
-0+ e_->name,
sync_fence_status(*fence));tests/i915/gem_watchdog.c new file +18
-0+skip_case: + nengine++; + } + +for (i =0 ; i < nengine; i++) { +close (fence[i]); +gem_context_destroy (fd, bo[0 ].ctx[i]); +gem_context_destroy (fd, bo[1 ].ctx[i]); +gem_close (fd, bo[0 ].scratch[i]); +gem_close (fd, bo[1 ].scratch[i]); + } +} + +/* +* Test#4: Create 2 ctx, set a gpu watchdog timeout on both, +* and either execute or cancel the execution. +*/ +static void long_batch_test4(int fd, int prio1, int prio2, int
reset_ctx1,tests/i915/gem_watchdog.c new file +24
-0+ int reset_ctx2, unsigned threshold) +{ + unsigned engine_id = 0; +unsigned nengine =0 ; +struct intel_execution_engine2 *e_; +struct { +uint32_t ctx[MAX_ENGINES ]; +uint32_t scratch[MAX_ENGINES ]; + } bo[2 ]; +int *fence, i =0 ; +unsigned flags =HANG_ALLOW_CAPTURE ; +const uint64_t batch_timeout_ms = timeout_100ms *4 ; + + fence =malloc (sizeof (int ) *MAX_ENGINES ); +igt_assert (fence); + + nengine =0 ; + +__for_each_physical_engine (fd, e_) { + engine_id = e_->flags; + + bo[1 ].scratch[nengine] =gem_create (fd,4096 ); + bo[1 ].ctx[nengine] =gem_context_create (fd); + gem_context_set_priority(fd, bo[1].ctx[nengine],prio2);
tests/i915/gem_watchdog.c new file +7
-0+batch_buffer_factory (fd, bo[1 ].ctx[nengine], engine_id, + bo[1 ].scratch[nengine],0 ,NULL , + batch_timeout_ms, fence, nengine); + + bo[0 ].scratch[nengine] =gem_create (fd,4096 ); + bo[0 ].ctx[nengine] =gem_context_create (fd); + gem_context_set_priority(fd, bo[0].ctx[nengine],prio1);
tests/i915/gem_watchdog.c new file +8
-0+batch_buffer_factory (fd, bo[0 ].ctx[nengine], engine_id, + bo[0 ].scratch[nengine],0 ,NULL , + batch_timeout_ms, fence, nengine); + +if (context_set_watchdog (fd, engine_id, e_->name, + bo[1 ].ctx[nengine], + threshold) == -ENODEV ) { + igt_info("No support for gpu h/w watchdog on%s\n",
tests/i915/gem_watchdog.c new file +7
-0+ e_->name); + goto skip_case; + } + +if (reset_ctx2) { +clear_error_state (fd); + inject_hang(fd, engine_id, bo[1].ctx[nengine],flags);
tests/i915/gem_watchdog.c new file +2
-0+ +/* Now check the engine was reset successfully */
tests/i915/gem_watchdog.c new file +2
-0+//igt_assert_eq(*fence, EIO); + igt_info("Test #4 ctx1/ctx2 --> set watchdogand"
tests/i915/gem_watchdog.c new file +1
-0+ " cancel ctx2 on %s with fence status:%d \n",
tests/i915/gem_watchdog.c new file +1
-0+ e_->name,
sync_fence_status(*fence));tests/i915/gem_watchdog.c new file +8
-0+ } + +context_set_watchdog (fd, engine_id, e_->name, + bo[0 ].ctx[nengine], + threshold); +if (reset_ctx1) { +clear_error_state (fd); + inject_hang(fd, engine_id, bo[0].ctx[nengine],flags);
tests/i915/gem_watchdog.c new file +2
-0+ +/* Now check the engine was reset successfully */
tests/i915/gem_watchdog.c new file +2
-0+//igt_assert_eq(*fence, EIO); + igt_info("Test #4: ctx1/ctx2 --> set watchdogand"
tests/i915/gem_watchdog.c new file +1
-0+ " cancel ctx1 on %s with fence status:%d\n",
tests/i915/gem_watchdog.c new file +27
-0+ e_->name, sync_fence_status(*fence)); + } +skip_case: + nengine++; + } + +for (i =0 ; i < nengine; i++) { +close (fence[i]); +gem_context_destroy (fd, bo[0 ].ctx[i]); +gem_context_destroy (fd, bo[1 ].ctx[i]); +gem_close (fd, bo[0 ].scratch[i]); +gem_close (fd, bo[1 ].scratch[i]); + } +} + +igt_main +{ +int fd; +unsigned int i=0 ; +struct { +char *name; +int prio[2 ]; +bool reset[2 ]; +unsigned threshold; + } tests[] = { + {"ctx1-scratch-timestamp" , + {DEFAULT_PRIO ,DEFAULT_PRIO }, {false, false},
WATCHDOG_THRESHOLD},tests/i915/gem_watchdog.c new file +2
-0+ {"ctx1-exec-ctx2-exec-all-engines" , + {DEFAULT_PRIO, DEFAULT_PRIO}, {false, false},
WATCHDOG_THRESHOLD},tests/i915/gem_watchdog.c new file +1
-0+ {"ctx1-low-prio-exec-ctx2-high-prio-reset-after-half-time-all-engines",
tests/i915/gem_watchdog.c new file +1
-0+ {MAX_PRIO, MIN_PRIO}, {false, false},
WATCHDOG_THRESHOLD},tests/i915/gem_watchdog.c new file +2
-0+ {"ctx1-reset-ctx2-exec-all-engines" , + {DEFAULT_PRIO, DEFAULT_PRIO}, {true, false},
WATCHDOG_THRESHOLD},tests/i915/gem_watchdog.c new file +8
-0+ {"ctx1-reset-ctx2-exec-all-engines-below-threshold" , + {DEFAULT_PRIO, DEFAULT_PRIO}, {true, false}, + WATCHDOG_BELOW_THRESHOLD}, + {"ctx1-reset-ctx2-exec-all-engines-over-threshold", + {DEFAULT_PRIO, DEFAULT_PRIO}, {true, false}, + WATCHDOG_OVER_THRESHOLD}, + {"ctx2-reset-ctx1-exec-all-engines", + {DEFAULT_PRIO, DEFAULT_PRIO}, {false, true},
WATCHDOG_THRESHOLD},tests/i915/gem_watchdog.c new file +2
-0+ {"ctx2-reset-ctx1-reset-all-engines" , + {DEFAULT_PRIO, DEFAULT_PRIO}, {true, true},
WATCHDOG_THRESHOLD},tests/i915/gem_watchdog.c new file +2
-0+ {"ctx1-high-prio-reset-ctx2-low-prio-exec-all-engines" , + {MAX_PRIO, MIN_PRIO}, {true, false},
WATCHDOG_THRESHOLD},tests/i915/gem_watchdog.c new file +2
-0+ {"ctx1-low-prio-reset-ctx2-high-prio-exec-all-engines" , + {MIN_PRIO, MAX_PRIO}, {true, false},
WATCHDOG_THRESHOLD},tests/i915/gem_watchdog.c new file +1
-0+ {"ctx1-low-prio-reset-ctx2-high-prio-reset-all-engines",
tests/i915/gem_watchdog.c new file +1
-0+ {MIN_PRIO, MAX_PRIO}, {true, true},
WATCHDOG_THRESHOLD},tests/i915/gem_watchdog.c new file +49
-0+ }; + +igt_skip_on_simulation (); + + igt_fixture { + fd =drm_open_driver (DRIVER_INTEL ); +igt_require_gem (fd); + } + + igt_subtest_group { + igt_subtest_f("%s", tests[0].name) { +long_batch_test1 ( fd, tests[0 ].prio[0 ], + tests[0 ].prio[1 ], + tests[0 ].reset[0 ], + tests[0 ].reset[1 ], + tests[0 ].threshold); + } + + igt_subtest_f("%s", tests[1].name) { +long_batch_test2 ( fd, tests[0 ].prio[0 ], + tests[0 ].prio[1 ], + tests[0 ].reset[0 ], + tests[0 ].reset[1 ], + tests[0 ].threshold); + } + + igt_subtest_f("%s", tests[2].name) { +long_batch_test3 ( fd, tests[1 ].prio[0 ], + tests[1 ].prio[1 ], + tests[1 ].reset[0 ], + tests[1 ].reset[1 ], + tests[1 ].threshold); + } + +for (i =3 ; i <ARRAY_SIZE (tests); i++) { + igt_subtest_f("%s", tests[i].name) { +long_batch_test4 ( fd, tests[i].prio[0 ], + tests[i].prio[1 ], + tests[i].reset[0 ], + tests[i].reset[1 ], + tests[i].threshold); + } + } + } + + igt_fixture { +close (fd); + } +}tests/meson.build +0
-0
tests/meson.build i915_progs = [ · line 226
Quoted 7 lines
tests/meson.build +1
-0@@ -220,6 +220,7 @@ i915_progs = [ 'gem_userptr_blits', 'gem_vm_create', 'gem_wait', + 'gem_watchdog', 'gem_workarounds', 'gem_write_read_ring_switch', 'i915_fb_tiling',
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✓ Fi.CI.BAT: success for tests/gem_watchdog: Initial set of tests for GPU watchdog (rev8)
In reply to Carlos Santa== Series Details ==
== Series Details ==
Series: tests/gem_watchdog: Initial set of tests for GPU watchdog (rev8)
URL : https://patchwork.freedesktop.org/series/50041/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6316 -> IGTPW_3185
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/50041/revisions/8/mbox/
Known issues
------------
Here are the changes found in IGTPW_3185 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_selftest@live_blt:
- fi-skl-iommu: [PASS][1] -> [INCOMPLETE][2] ([fdo#108602])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6316/fi-skl-iommu/igt@i915_selftest@live_blt.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/fi-skl-iommu/igt@i915_selftest@live_blt.html
#### Possible fixes ####
* igt@i915_module_load@reload:
- fi-blb-e6850: [INCOMPLETE][3] ([fdo#107718]) -> [PASS][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6316/fi-blb-e6850/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/fi-blb-e6850/igt@[email protected]
* igt@i915_pm_rpm@module-reload:
- fi-icl-dsi: [INCOMPLETE][5] ([fdo#107713] / [fdo#108840]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6316/fi-icl-dsi/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/fi-icl-dsi/igt@[email protected]
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#107718]: https://bugs.freedesktop.org/show_bug.cgi?id=107718
[fdo#108602]: https://bugs.freedesktop.org/show_bug.cgi?id=108602
[fdo#108840]: https://bugs.freedesktop.org/show_bug.cgi?id=108840
Participating hosts (53 -> 41)
------------------------------
Missing (12): fi-kbl-soraka fi-kbl-7567u fi-ilk-m540 fi-bdw-5557u fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-ivb-3770 fi-icl-y fi-bdw-samus fi-byt-clapper fi-skl-6600u
Build changes
-------------
* IGT: IGT_5064 -> IGTPW_3185
CI_DRM_6316: 8c1cf5bd27307e6cb0cdc02a1ac9d29bcdcb5056 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_3185: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/
IGT_5064: 22850c1906550fb97b405c019275dcfb34be8cf7 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Testlist changes ==
+igt@gem_watchdog@ctx1-exec-ctx2-exec-all-engines +igt@gem_watchdog@ctx1-high-prio-reset-ctx2-low-prio-exec-all-engines +igt@gem_watchdog@ctx1-low-prio-exec-ctx2-high-prio-reset-after-half-time-all-engines +igt@gem_watchdog@ctx1-low-prio-reset-ctx2-high-prio-exec-all-engines +igt@gem_watchdog@ctx1-low-prio-reset-ctx2-high-prio-reset-all-engines +igt@gem_watchdog@ctx1-reset-ctx2-exec-all-engines +igt@gem_watchdog@ctx1-reset-ctx2-exec-all-engines-below-threshold +igt@gem_watchdog@ctx1-reset-ctx2-exec-all-engines-over-threshold +igt@gem_watchdog@ctx1-scratch-timestamp +igt@gem_watchdog@ctx2-reset-ctx1-exec-all-engines +igt@gem_watchdog@ctx2-reset-ctx1-reset-all-engines
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✓ Fi.CI.IGT: success for tests/gem_watchdog: Initial set of tests for GPU watchdog (rev8)
In reply to Carlos Santa== Series Details ==
== Series Details ==
Series: tests/gem_watchdog: Initial set of tests for GPU watchdog (rev8)
URL : https://patchwork.freedesktop.org/series/50041/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6316_full -> IGTPW_3185_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/50041/revisions/8/mbox/
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_3185_full:
### IGT changes ###
#### Possible regressions ####
* {igt@gem_watchdog@ctx1-high-prio-reset-ctx2-low-prio-exec-all-engines} (NEW):
- shard-glk: NOTRUN -> [FAIL][1] +8 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/shard-glk4/igt@gem_watchdog@ctx1-high-prio-reset-ctx2-low-prio-exec-all-engines.html
* {igt@gem_watchdog@ctx1-low-prio-exec-ctx2-high-prio-reset-after-half-time-all-engines} (NEW):
- shard-snb: NOTRUN -> [FAIL][2] +9 similar issues
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/shard-snb5/igt@gem_watchdog@ctx1-low-prio-exec-ctx2-high-prio-reset-after-half-time-all-engines.html
* {igt@gem_watchdog@ctx1-low-prio-reset-ctx2-high-prio-reset-all-engines} (NEW):
- shard-hsw: NOTRUN -> [FAIL][3] +9 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/shard-hsw1/igt@gem_watchdog@ctx1-low-prio-reset-ctx2-high-prio-reset-all-engines.html
* {igt@gem_watchdog@ctx1-reset-ctx2-exec-all-engines} (NEW):
- shard-kbl: NOTRUN -> [FAIL][4] +9 similar issues
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/shard-kbl7/igt@[email protected]
* {igt@gem_watchdog@ctx1-scratch-timestamp} (NEW):
- shard-apl: NOTRUN -> [FAIL][5] +9 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/shard-apl7/igt@[email protected]
* {igt@gem_watchdog@ctx2-reset-ctx1-exec-all-engines} (NEW):
- shard-iclb: NOTRUN -> [FAIL][6] +8 similar issues
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/shard-iclb1/igt@[email protected]
New tests
---------
New tests have been introduced between CI_DRM_6316_full and IGTPW_3185_full:
### New IGT tests (11) ###
* igt@gem_watchdog@ctx1-exec-ctx2-exec-all-engines:
- Statuses : 1 fail(s) 4 pass(s)
- Exec time: [0.07, 0.14] s
* igt@gem_watchdog@ctx1-high-prio-reset-ctx2-low-prio-exec-all-engines:
- Statuses : 6 fail(s)
- Exec time: [0.04, 0.27] s
* igt@gem_watchdog@ctx1-low-prio-exec-ctx2-high-prio-reset-after-half-time-all-engines:
- Statuses : 6 fail(s)
- Exec time: [0.03, 0.25] s
* igt@gem_watchdog@ctx1-low-prio-reset-ctx2-high-prio-exec-all-engines:
- Statuses : 5 fail(s)
- Exec time: [0.02, 0.20] s
* igt@gem_watchdog@ctx1-low-prio-reset-ctx2-high-prio-reset-all-engines:
- Statuses : 5 fail(s) 1 incomplete(s)
- Exec time: [0.0, 0.14] s
* igt@gem_watchdog@ctx1-reset-ctx2-exec-all-engines:
- Statuses : 6 fail(s)
- Exec time: [0.07, 0.13] s
* igt@gem_watchdog@ctx1-reset-ctx2-exec-all-engines-below-threshold:
- Statuses : 6 fail(s)
- Exec time: [0.04, 0.12] s
* igt@gem_watchdog@ctx1-reset-ctx2-exec-all-engines-over-threshold:
- Statuses : 5 fail(s)
- Exec time: [0.01, 0.19] s
* igt@gem_watchdog@ctx1-scratch-timestamp:
- Statuses : 6 fail(s)
- Exec time: [0.01, 0.09] s
* igt@gem_watchdog@ctx2-reset-ctx1-exec-all-engines:
- Statuses : 6 fail(s)
- Exec time: [0.08, 0.18] s
* igt@gem_watchdog@ctx2-reset-ctx1-reset-all-engines:
- Statuses : 6 fail(s)
- Exec time: [0.04, 0.15] s
Known issues
------------
Here are the changes found in IGTPW_3185_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_capture@userptr:
- shard-snb: [PASS][7] -> [DMESG-WARN][8] ([fdo#110789] / [fdo#110913 ])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6316/shard-snb6/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/shard-snb1/igt@[email protected]
* igt@gem_persistent_relocs@forked-thrashing:
- shard-apl: [PASS][9] -> [DMESG-WARN][10] ([fdo#110913 ]) +2 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6316/shard-apl4/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/shard-apl8/igt@[email protected]
* igt@gem_tiled_swapping@non-threaded:
- shard-hsw: [PASS][11] -> [FAIL][12] ([fdo#108686])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6316/shard-hsw6/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/shard-hsw4/igt@[email protected]
* igt@gem_userptr_blits@map-fixed-invalidate-busy:
- shard-snb: [PASS][13] -> [DMESG-WARN][14] ([fdo#110913 ])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6316/shard-snb7/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/shard-snb1/igt@[email protected]
* igt@gem_userptr_blits@map-fixed-invalidate-overlap-busy:
- shard-kbl: [PASS][15] -> [DMESG-WARN][16] ([fdo#110913 ])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6316/shard-kbl7/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/shard-kbl2/igt@[email protected]
* igt@kms_atomic_interruptible@legacy-cursor:
- shard-iclb: [PASS][17] -> [INCOMPLETE][18] ([fdo#107713])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6316/shard-iclb3/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/shard-iclb2/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-128x42-sliding:
- shard-apl: [PASS][19] -> [FAIL][20] ([fdo#103232]) +1 similar issue
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6316/shard-apl7/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/shard-apl7/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-128x128-sliding:
- shard-kbl: [PASS][21] -> [FAIL][22] ([fdo#103232]) +1 similar issue
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6316/shard-kbl1/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/shard-kbl6/igt@[email protected]
* igt@kms_cursor_legacy@2x-long-nonblocking-modeset-vs-cursor-atomic:
- shard-glk: [PASS][23] -> [FAIL][24] ([fdo#106509] / [fdo#107409])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6316/shard-glk8/igt@kms_cursor_legacy@2x-long-nonblocking-modeset-vs-cursor-atomic.html
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/shard-glk6/igt@kms_cursor_legacy@2x-long-nonblocking-modeset-vs-cursor-atomic.html
* igt@kms_flip@2x-flip-vs-suspend:
- shard-hsw: [PASS][25] -> [INCOMPLETE][26] ([fdo#103540])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6316/shard-hsw5/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/shard-hsw8/igt@[email protected]
* igt@kms_flip@2x-plain-flip-ts-check-interruptible:
- shard-hsw: [PASS][27] -> [SKIP][28] ([fdo#109271]) +23 similar issues
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6316/shard-hsw4/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/shard-hsw1/igt@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible:
- shard-snb: [PASS][29] -> [INCOMPLETE][30] ([fdo#105411])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6316/shard-snb5/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/shard-snb1/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-shrfb-plflip-blt:
- shard-iclb: [PASS][31] -> [FAIL][32] ([fdo#103167]) +5 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6316/shard-iclb3/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-shrfb-plflip-blt.html
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/shard-iclb7/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-shrfb-plflip-blt.html
* igt@kms_plane_lowres@pipe-a-tiling-x:
- shard-iclb: [PASS][33] -> [FAIL][34] ([fdo#103166]) +1 similar issue
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6316/shard-iclb7/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/shard-iclb5/igt@[email protected]
* igt@kms_vblank@pipe-c-ts-continuation-suspend:
- shard-apl: [PASS][35] -> [DMESG-WARN][36] ([fdo#108566]) +2 similar issues
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6316/shard-apl7/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/shard-apl3/igt@[email protected]
#### Possible fixes ####
* igt@gem_eio@in-flight-suspend:
- shard-apl: [FAIL][37] ([fdo#110667]) -> [PASS][38]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6316/shard-apl1/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/shard-apl7/igt@[email protected]
* igt@gem_persistent_relocs@forked-faulting-reloc-thrashing:
- shard-kbl: [DMESG-WARN][39] ([fdo#110913 ]) -> [PASS][40] +2 similar issues
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6316/shard-kbl6/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/shard-kbl4/igt@[email protected]
* igt@gem_persistent_relocs@forked-interruptible-faulting-reloc-thrashing:
- shard-apl: [DMESG-WARN][41] ([fdo#110913 ]) -> [PASS][42] +3 similar issues
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6316/shard-apl8/igt@gem_persistent_relocs@forked-interruptible-faulting-reloc-thrashing.html
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/shard-apl3/igt@gem_persistent_relocs@forked-interruptible-faulting-reloc-thrashing.html
* igt@gem_persistent_relocs@forked-thrashing:
- shard-snb: [DMESG-WARN][43] ([fdo#110789] / [fdo#110913 ]) -> [PASS][44] +1 similar issue
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6316/shard-snb4/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/shard-snb1/igt@[email protected]
* igt@gem_userptr_blits@sync-unmap-cycles:
- shard-snb: [DMESG-WARN][45] ([fdo#110913 ]) -> [PASS][46]
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6316/shard-snb2/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/shard-snb4/igt@[email protected]
* igt@gem_workarounds@suspend-resume:
- shard-apl: [DMESG-WARN][47] ([fdo#108566]) -> [PASS][48] +2 similar issues
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6316/shard-apl5/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/shard-apl2/igt@[email protected]
* igt@i915_pm_rpm@i2c:
- shard-hsw: [FAIL][49] ([fdo#104097]) -> [PASS][50]
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6316/shard-hsw1/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/shard-hsw7/igt@[email protected]
* igt@i915_selftest@live_hangcheck:
- shard-snb: [INCOMPLETE][51] ([fdo#105411]) -> [PASS][52]
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6316/shard-snb4/igt@i915_selftest@live_hangcheck.html
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/shard-snb1/igt@i915_selftest@live_hangcheck.html
* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-cur-indfb-draw-pwrite:
- shard-hsw: [SKIP][53] ([fdo#109271]) -> [PASS][54] +13 similar issues
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6316/shard-hsw1/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-cur-indfb-draw-pwrite.html
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/shard-hsw8/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-cur-indfb-draw-pwrite.html
* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-cur-indfb-onoff:
- shard-glk: [FAIL][55] ([fdo#103167]) -> [PASS][56]
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6316/shard-glk8/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/shard-glk2/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-indfb-scaledprimary:
- shard-iclb: [FAIL][57] ([fdo#103167]) -> [PASS][58] +2 similar issues
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6316/shard-iclb2/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/shard-iclb1/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-rte:
- shard-iclb: [FAIL][59] ([fdo#103167] / [fdo#110378]) -> [PASS][60]
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6316/shard-iclb5/igt@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/shard-iclb8/igt@[email protected]
* igt@kms_psr@psr2_primary_mmap_gtt:
- shard-iclb: [SKIP][61] ([fdo#109441]) -> [PASS][62] +4 similar issues
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6316/shard-iclb6/igt@kms_psr@psr2_primary_mmap_gtt.html
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/shard-iclb2/igt@kms_psr@psr2_primary_mmap_gtt.html
* igt@kms_setmode@basic:
- shard-kbl: [FAIL][63] ([fdo#99912]) -> [PASS][64]
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6316/shard-kbl4/igt@[email protected]
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/shard-kbl6/igt@[email protected]
* igt@perf_pmu@rc6:
- shard-kbl: [SKIP][65] ([fdo#109271]) -> [PASS][66]
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6316/shard-kbl1/igt@[email protected]
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/shard-kbl4/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#103166]: https://bugs.freedesktop.org/show_bug.cgi?id=103166
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103232]: https://bugs.freedesktop.org/show_bug.cgi?id=103232
[fdo#103540]: https://bugs.freedesktop.org/show_bug.cgi?id=103540
[fdo#104097]: https://bugs.freedesktop.org/show_bug.cgi?id=104097
[fdo#105411]: https://bugs.freedesktop.org/show_bug.cgi?id=105411
[fdo#106509]: https://bugs.freedesktop.org/show_bug.cgi?id=106509
[fdo#107409]: https://bugs.freedesktop.org/show_bug.cgi?id=107409
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#108686]: https://bugs.freedesktop.org/show_bug.cgi?id=108686
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#110378]: https://bugs.freedesktop.org/show_bug.cgi?id=110378
[fdo#110667]: https://bugs.freedesktop.org/show_bug.cgi?id=110667
[fdo#110789]: https://bugs.freedesktop.org/show_bug.cgi?id=110789
[fdo#110913 ]: https://bugs.freedesktop.org/show_bug.cgi?id=110913
[fdo#99912]: https://bugs.freedesktop.org/show_bug.cgi?id=99912
Participating hosts (10 -> 6)
------------------------------
Missing (4): pig-skl-6260u shard-skl pig-hsw-4770r pig-glk-j5005
Build changes
-------------
* IGT: IGT_5064 -> IGTPW_3185
* Piglit: piglit_4509 -> None
CI_DRM_6316: 8c1cf5bd27307e6cb0cdc02a1ac9d29bcdcb5056 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_3185: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/
IGT_5064: 22850c1906550fb97b405c019275dcfb34be8cf7 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3185/
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev