tests/i915/i915_pipe_stress: Add plane pipes stress test
PATCH 1/1 tests/i915/i915_pipe_stress: Add plane pipes stress test
This test attempts to utilize all connected
outputs at the same time, using maximum possible
resolution and amount of planes, to check whether
we are hiting any kind of bandwidth, watermark or
other limitations.
v2: Use igt_skip_on to skip unsupported formats in
fixture properly.
v3: - Changed to SPDX license
- Removed execution engine usage, which seems to be not needed yet here
- Fixed some obvious things found, like missing dot and new line after declarations
- Added igt_skip_on to igt_fixture to properly skip formats/modifiers, not supported on current platform.
v4: - Added mutex, as gpu_fill seems to cause some
crashes if run from multiple threads.
- Some additional info addedy
v5: - Removed igt_require_f as it is being called from
non-main thread(Petri Latvala)
v6: - Added igt_assert for fill_fn
- Don't do gpu fill for gens < 8, as there are seem to be some issues, when it is done from multiple threads.
v7: - Apparently need to exclude ApolloLake as well.
Anyways we are not much interested in stress-testing those.
--- tests/i915/i915_pipe_stress.c | 869 ++++++++++++++++++++++++++++++++++ tests/meson.build | 1 + 2 files changed, 870 insertions(+) create mode 100644 tests/i915/i915_pipe_stress.c
tests/i915/i915_pipe_stress.c new file +869 -0
@@ -0,0 +1,869 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2021 Intel Corporation +*/ + +#include "igt.h" +#include "igt_rand.h" +#include "gpgpu_fill.h" +#include "drmtest.h" +#include "sw_sync.h" +#include <errno.h> +#include <pthread.h> +#include <stdbool.h> +#include <stdio.h> +#include <string.h> +#include <time.h> +#include <poll.h> +#include <pthread.h> +#include <semaphore.h> +#include "i915/gem.h" + +IGT_TEST_DESCRIPTION ("Stress test how gpu and cpu behaves if maximum amount of planes, " +"cpu and gpu utilization is achieved in order to reveal possible " +"bandwidth/watermark and similar problems." ); + +#ifndef DRM_CAP_CURSOR_WIDTH +#define DRM_CAP_CURSOR_WIDTH 0x8 +#endif +#ifndef DRM_CAP_CURSOR_HEIGHT +#define DRM_CAP_CURSOR_HEIGHT 0x9 +#endif + +#define HAS_XELPD (drm_fd) (intel_display_ver(intel_get_drm_devid(drm_fd)) >= 13) + +#define N_BLITS_PER_FRAME 10 + +#define N_FORMATS 1 +static const uint32_t formats[N_FORMATS ] = { +DRM_FORMAT_XRGB8888 , +}; + +#define N_TILING_METHODS 2 +static const uint64_t tilings[N_TILING_METHODS ] = { +DRM_FORMAT_MOD_LINEAR , +I915_FORMAT_MOD_Y_TILED , +}; + +static const char *format_str (int format_index) +{ +switch (formats[format_index]) { +case DRM_FORMAT_RGB565 : +return "rgb565" ; +case DRM_FORMAT_XRGB8888 : +return "xrgb8888" ; +case DRM_FORMAT_XRGB2101010 : +return "xrgb2101010" ; +default : +igt_assert (false); + } +} + +static const char *tiling_str (int tiling_index) +{ +switch (tilings[tiling_index]) { +case DRM_FORMAT_MOD_LINEAR : +return "untiled" ; +case I915_FORMAT_MOD_X_TILED : +return "xtiled" ; +case I915_FORMAT_MOD_Y_TILED : +return "ytiled" ; +default : +igt_assert (false); + } +} + + +#define MAX_CORES 8 +#define MAX_PLANES 16 + +struct data ; + +struct thread_context { +struct data *data; +int id; +void *buf1; +void *buf2; +}; + +struct rect { +int x; +int y; +int w; +int h; +}; + +struct gpu_context { +struct data *data; +int pipe; +int color; +int num_rectangles; +struct intel_buf *buf; +struct igt_fb *fb_ptr; +struct rect blt_rect; +struct intel_batchbuffer *batch; +}; + +enum { +RUNNING , +STOPPED , +PAUSED , +LAST_STATE =PAUSED +} thread_state; + +struct data { +int drm_fd; +igt_display_t display; +int num_planes[IGT_MAX_PIPES ]; +uint32_t format; +uint64_t modifier; +uint32_t devid; +struct buf_ops *bops; +drm_intel_bufmgr *bufmgr; +drmModeModeInfo *last_mode[IGT_MAX_PIPES ]; +struct igt_fb fb[IGT_MAX_PIPES *MAX_PLANES ]; +struct igt_fb cursor_fb[IGT_MAX_PIPES ]; +pthread_t cpu_thread[MAX_CORES ]; +pthread_t gpu_thread[IGT_MAX_PIPES ]; +bool cpu_thread_stop[MAX_CORES ]; +int gpu_thread_state[IGT_MAX_PIPES ]; +sem_t gpu_thread_pause_ack[IGT_MAX_PIPES ]; +struct thread_context cpu_context[MAX_CORES ]; +struct gpu_context gpu_context[IGT_MAX_PIPES ]; +pthread_mutex_t gpu_fill_lock; +drmModeModeInfo *highest_mode[IGT_MAX_PIPES ]; +drmModeConnectorPtr *connectors; +drmModeRes *mode_resources; +int number_of_cores; +igt_pipe_crc_t *pipe_crc[IGT_MAX_PIPES ]; +}; + +static void stop_gpu_threads (struct data *data); +static void start_gpu_threads (struct data *data); + +struct base_crc { +bool set; +igt_crc_t crc; +}; + +#define BUF_SIZE (128 * 1024 * 1024) + +static void *cpu_load (void *d) +{ +char *buf1, *buf2; +struct thread_context *context = (struct thread_context *)d; +struct data *data = context->data; + + buf1 = context->buf1; + buf2 = context->buf2; + + data->cpu_thread_stop[context->id] = false; + +igt_info ("CPU thread cpu id %d start\n" , context->id); + +/* Just to make CPU busy... */ +while (!data->cpu_thread_stop[context->id]) { +memcpy (buf1, buf2,BUF_SIZE ); +memcpy (buf2, buf1,BUF_SIZE ); + } + +igt_info ("CPU thread cpu id %d stop\n" , context->id); + +return NULL ; +} + +static struct intel_buf * +create_buf (struct data *data,int width,int height,uint32_t region) +{ +struct intel_buf *buf; +uint32_t handle; + + buf =calloc (1 ,sizeof (*buf)); +igt_assert (buf); + +/* +* Legacy code uses 32 bpp after buffer creation. +* Let's do the same due to keep shader intact. +*/ + handle =gem_create_in_memory_regions (data->drm_fd, width * height, region); +intel_buf_init_using_handle (data->bops, handle, buf, + width/4 , height,32 ,0 , +I915_TILING_NONE ,0 ); + +return buf; +} + +static void fill_gpu (struct gpu_context *context, +unsigned int x,unsigned int y, +unsigned int width,unsigned int height, +uint8_t color) +{ +struct data *data = context->data; +igt_fillfunc_t fill_fn =NULL ; + +pthread_mutex_lock (&data->gpu_fill_lock); + + fill_fn =igt_get_gpgpu_fillfunc (data->devid); + +igt_assert (fill_fn); +igt_assert (context->buf); + +fill_fn (data->drm_fd, context->buf, x, y, width, height, color); + +pthread_mutex_unlock (&data->gpu_fill_lock); +} + +static void *gpu_load (void *ptr) +{ +struct gpu_context *context = (struct gpu_context *)ptr; +struct data *data = context->data; +int pipe = context->pipe; +int rect_divisor; +int rect_width; +int rect_height; +int frame_width; +int frame_height; +drmModeModeInfo *mode; +int frame =0 ; +int x, y; +int rect =0 , total_rects =0 ; +int pixels =0 ; + + mode = data->highest_mode[pipe]; +if (!mode) +return NULL ; + + frame_width = mode->hdisplay; + frame_height = mode->vdisplay; + +igt_info ("GPU thread pipe %d start\n" , pipe); + + context->buf =create_buf (data, data->highest_mode[pipe]->hdisplay, + data->highest_mode[pipe]->vdisplay, +INTEL_MEMORY_REGION_ID (I915_SYSTEM_MEMORY ,0 )); + +while (data->gpu_thread_state[pipe] !=STOPPED ) { + + rect =0 ; +while (rect < context->num_rectangles) { +/* divide at least by 2 and up to 8 */ +int x_rand, y_rand; + + rect_divisor =1 << (hars_petruska_f54_1_random_unsafe_max (3 ) +1 ); + + rect_width = frame_width / rect_divisor; + rect_height = frame_height / rect_divisor; + + x_rand =hars_petruska_f54_1_random_unsafe_max (frame_width - rect_width); + y_rand =hars_petruska_f54_1_random_unsafe_max (frame_height/2 - rect_height); + + context->blt_rect.x = x + x_rand; + context->blt_rect.y = y + y_rand; + +/* Fill randomly sized and positioned rectangles */ +fill_gpu (context, context->blt_rect.x, context->blt_rect.y, + context->blt_rect.x + rect_width, + context->blt_rect.y + rect_height, + context->color); + + context->color +=4 ; + + ++rect; + + pixels += rect_width * rect_height; + } + ++frame; + total_rects += rect; + } + +intel_buf_close (data->bops, context->buf); + +igt_info ("GPU thread pipe %d stop. Frames rendered: %d Rectangles: %d Pixels filled: %d\n" , + pipe, frame, total_rects, pixels); + +return NULL ; +} + +static inline uint32_t pipe_select (enum pipe pipe) +{ +if (pipe >1 ) +return pipe <<DRM_VBLANK_HIGH_CRTC_SHIFT ; +else if (pipe >0 ) +return DRM_VBLANK_SECONDARY ; +else +return 0 ; +} + +static unsigned get_vblank (int fd,enum pipe pipe,unsigned flags) +{ +union drm_wait_vblank vbl; + +memset (&vbl,0 ,sizeof (vbl)); + vbl.request.type =DRM_VBLANK_RELATIVE |pipe_select (pipe) | flags; +if (drmIoctl (fd,DRM_IOCTL_WAIT_VBLANK , &vbl)) +return 0 ; + +return vbl.reply.sequence; +} + +static int commit_mode (struct data *data,igt_output_t *output, +enum pipe pipe,drmModeModeInfo *mode) +{ +int ret; + +igt_output_override_mode (output, mode); +igt_output_set_pipe (output, pipe); + + ret =igt_display_try_commit_atomic (&data->display, +DRM_MODE_ATOMIC_TEST_ONLY | +DRM_MODE_ATOMIC_ALLOW_MODESET ,NULL ); +if (ret) { +igt_warn ("Could not commit mode: \n" ); +kmstest_dump_mode (mode); +return ret; + } + +igt_display_commit2 (&data->display,COMMIT_ATOMIC ); + +return 0 ; +} + +static void cursor_plane_set_fb (igt_plane_t *plane,struct igt_fb *fb, +int width,int height) +{ +igt_plane_set_fb (plane, fb); +igt_fb_set_size (fb, plane, width, height); +} + +static void universal_plane_set_fb (igt_plane_t *plane,struct igt_fb *fb, +int width,int height) +{ +igt_plane_set_fb (plane, fb); +igt_plane_set_position (plane,0 ,0 ); +igt_fb_set_size (fb, plane, width, height); +} + +static bool plane_needs_rotation (int drm_fd,uint64_t modifier,igt_plane_t *plane) +{ +return !HAS_XELPD (drm_fd) && !IS_DG2 (intel_get_drm_devid (drm_fd)) && + modifier ==I915_FORMAT_MOD_Y_TILED && + plane->type !=DRM_PLANE_TYPE_CURSOR ; +} + +static int try_plane_scaling (struct data *data,igt_plane_t *plane, +int width,int height) +{ +int ret; + +if (plane_needs_rotation (data->drm_fd, data->modifier, plane)) { +igt_plane_set_rotation (plane,IGT_ROTATION_90 ); +igt_plane_set_size (plane, height, width); + }else { +igt_plane_set_size (plane, width, height); + } + + ret =igt_display_try_commit_atomic (&data->display, +DRM_MODE_ATOMIC_TEST_ONLY | +DRM_MODE_ATOMIC_ALLOW_MODESET , +NULL ); + +return ret; +} + +static void cleanup_plane_fbs (struct data *data,enum pipe pipe,int start,int end) +{ +int i = start; + +while (i < end) { +igt_remove_fb (data->display.drm_fd, + &data->fb[pipe *MAX_PLANES + i]); + data->fb[pipe *MAX_PLANES + i].fb_id =0 ; + i++; + } +} + +static int pipe_stress (struct data *data,igt_output_t *output, +enum pipe pipe,drmModeModeInfo *mode) +{ +igt_plane_t *plane; +int i =0 ; +int ret; +bool new_mode = false; +uint64_t cursor_width, cursor_height; + +do_or_die (drmGetCap (data->drm_fd,DRM_CAP_CURSOR_WIDTH , &cursor_width)); +do_or_die (drmGetCap (data->drm_fd,DRM_CAP_CURSOR_HEIGHT , &cursor_height)); + +if (!mode) + mode =igt_output_get_mode (output); + +if (data->last_mode[pipe] != mode) { + ret =commit_mode (data, output, pipe, mode); + +if (!ret) +return ret; + + data->last_mode[pipe] = mode; + new_mode = true; + } + +/* +* Looks like we can't have planes on that pipe at all +* or mode hasn't changed +*/ +if (!data->num_planes[pipe] || !new_mode) +return 0 ; + +for_each_plane_on_pipe (&data->display, pipe, plane) { +int plane_width, plane_height; +if (plane->type ==DRM_PLANE_TYPE_CURSOR ) { +cursor_plane_set_fb (plane, &data->cursor_fb[pipe], + cursor_width, cursor_height); + plane_width = cursor_width; + plane_height = cursor_height; + }else { +universal_plane_set_fb (plane, &data->fb[pipe *MAX_PLANES + i], + mode->hdisplay, mode->vdisplay); + + plane_width = (mode->hdisplay *3 ) /4 ; + plane_height = (mode->vdisplay *3 ) /4 ; + + ret =try_plane_scaling (data, plane, plane_width, plane_height); + +while (ret) { +if (plane_width <= cursor_width || plane_height <= cursor_height) +break ; + + plane_width /=2 ; + plane_height /=2 ; + + ret =try_plane_scaling (data, plane, plane_width, plane_height); + +igt_info ("Reduced plane %d size to %dx%d\n" , + plane->index, plane_width, plane_height); + } +if (ret) { +igt_info ("Plane %d pipe %d try commit failed, exiting\n" , i, pipe); + data->num_planes[pipe] = i; +igt_info ("Max num planes for pipe %d set to %d\n" , pipe, i); +/* +* We have now determined max amount of full sized planes, we will just +* keep it in mind and be smarter next time. Also lets remove unneeded fbs. +* Don't destroy cursor_fb as will take care about it at the end. +*/ +igt_plane_set_fb (plane,NULL ); +cleanup_plane_fbs (data, pipe, i,MAX_PLANES ); + } + +if (++i >= data->num_planes[pipe]) +break ; + } + } + +igt_display_commit2 (&data->display,COMMIT_ATOMIC ); + +return 0 ; +} + +static __u64 get_mode_data_rate (drmModeModeInfo *mode) +{ +__u64 data_rate = (__u64 )mode->hdisplay * (__u64 )mode->vdisplay * (__u64 )mode->vrefresh; + +return data_rate; +} + + +static drmModeModeInfo *find_highest_mode (drmModeConnector *connector) +{ +drmModeModeInfo *highest_mode =NULL ; +int j; + +for (j =0 ; j < connector->count_modes; j++) { +if (!highest_mode) { + highest_mode = &connector->modes[j]; + }else if (connector->modes[j].vdisplay && connector->modes[j].hdisplay) { +__u64 highest_data_rate =get_mode_data_rate (highest_mode); +__u64 data_rate =get_mode_data_rate (&connector->modes[j]); + +if (highest_data_rate < data_rate) + highest_mode = &connector->modes[j]; + } + } + +return highest_mode; +} + +typedef drmModeConnector *drmModeConnectorPtr ; + +static void fill_connector_to_pipe_array (struct data *data, +drmModeRes *mode_resources, +drmModeConnectorPtr *connectors) +{ +int pipe =0 ; +int i; + +memset (connectors,0 ,sizeof (drmModeConnectorPtr) * + mode_resources->count_connectors); + +igt_info ("Got %d connectors\n" , mode_resources->count_connectors); + +for (i =0 ; i < mode_resources->count_connectors; i++) { +drmModeConnector *connector; + + connector =drmModeGetConnector (data->drm_fd, + mode_resources->connectors[i]); + +if (!connector) { +igt_warn ("could not get connector %i: %s\n" , + mode_resources->connectors[i],strerror (errno)); +continue ; + } + +if (connector->connection ==DRM_MODE_CONNECTED ) { +igt_info ("Connector %d connected to pipe %d\n" , i, pipe); + connectors[pipe] = (drmModeConnectorPtr )connector; + ++pipe; +if (pipe ==IGT_MAX_PIPES ) +break ; + }else { +igt_info ("Connector %d connection status %d\n" , + i, connector->connection); +drmModeFreeConnector (connector); + } + } +} + +static void release_connectors (drmModeConnectorPtr *connectors) +{ +int i; + +for (i =0 ; i <IGT_MAX_PIPES ; i++) { +if (connectors[i]) +drmModeFreeConnector (connectors[i]); + } +free (connectors); +} + +static void stress_pipes (struct data *data,struct timespec *start, +struct timespec *end) +{ +int pipe =0 ; +int ret =0 ; +igt_output_t *output; +igt_crc_t crc, crc2; + +for_each_connected_output (&data->display, output) { + +if (!data->highest_mode[pipe]) +continue ; + +igt_assert_f (data->display.pipes[pipe].n_planes <MAX_PLANES , +"Currently we don't support more than %d planes!" , +MAX_PLANES ); + + ret =pipe_stress (data, output, pipe, + data->highest_mode[pipe]); +if (ret) +break ; + +igt_pipe_crc_start (data->pipe_crc[pipe]); +igt_pipe_crc_get_current (data->display.drm_fd, data->pipe_crc[pipe], &crc); +get_vblank (data->display.drm_fd, pipe, +DRM_VBLANK_NEXTONMISS ); +igt_pipe_crc_get_current (data->display.drm_fd, data->pipe_crc[pipe], &crc2); +igt_pipe_crc_stop (data->pipe_crc[pipe]); +igt_assert_crc_equal (&crc, &crc2); + + ++pipe; + } +} + +#define MIN_DURATION_SEC 5.0 +#define MIN_ITERATIONS 20 + +static void stress (struct data *data) +{ +struct timespec start, end; +int iterations =0 ; +bool need_continue; + +igt_gettime (&start); + +do { +igt_gettime (&end); +stress_pipes (data, &start, &end); + iterations++; + need_continue = +igt_time_elapsed (&start, &end) <MIN_DURATION_SEC ; + }while ((need_continue || iterations <MIN_ITERATIONS )); +} + +static void start_gpu_threads (struct data *data) +{ +int i; + + data->bops =buf_ops_create (data->drm_fd); + +pthread_mutex_init (&data->gpu_fill_lock,NULL ); + +for (i =0 ; i <IGT_MAX_PIPES ; i++) { +if (!data->highest_mode[i]) +continue ; + data->gpu_context[i].data = data; + data->gpu_context[i].pipe = i; + data->gpu_context[i].fb_ptr =NULL ; + data->gpu_context[i].blt_rect.x =0 ; + data->gpu_context[i].blt_rect.y =0 ; + data->gpu_context[i].blt_rect.w =0 ; + data->gpu_context[i].blt_rect.h =0 ; + data->gpu_context[i].num_rectangles =N_BLITS_PER_FRAME ; + data->gpu_thread_state[i] =RUNNING ; + data->gpu_context[i].buf =NULL ; +igt_info ("Starting GPU thread %d\n" , i); + +pthread_create (&data->gpu_thread[i],NULL , gpu_load, + (void *)&data->gpu_context[i]); + +igt_info ("GPU thread %d started\n" , i); + } +} + +static void stop_gpu_threads (struct data *data) +{ +int i; + +for (i =0 ; i <IGT_MAX_PIPES ; i++) { +if (!data->highest_mode[i]) +continue ; +igt_info ("Stopping GPU thread %d\n" , i); + data->gpu_thread_state[i] =STOPPED ; +pthread_join (data->gpu_thread[i],NULL ); +igt_info ("Stopped GPU thread %d\n" , i); + data->gpu_context[i].fb_ptr =NULL ;\ + data->gpu_context[i].buf =NULL ; + } + +buf_ops_destroy (data->bops); +} + +static void start_cpu_threads (struct data *data) +{ +int i; + +for (i =0 ; i < data->number_of_cores; i++) { + data->cpu_context[i].buf1 =malloc (BUF_SIZE ); + data->cpu_context[i].buf2 =malloc (BUF_SIZE ); + data->cpu_context[i].id = i; + data->cpu_context[i].data = data; +pthread_create (&data->cpu_thread[i],NULL , cpu_load, + (void *)&data->cpu_context[i]); + } +} + +static void stop_cpu_threads (struct data *data) +{ +int i; + +for (i =0 ; i < data->number_of_cores; i++) { + data->cpu_thread_stop[i] = true; +pthread_join (data->cpu_thread[i],NULL ); +free (data->cpu_context[i].buf1); +free (data->cpu_context[i].buf2); + } +} + +static void create_framebuffers (struct data *data) +{ +int i, j; +uint64_t cursor_width, cursor_height; + +do_or_die (drmGetCap (data->drm_fd,DRM_CAP_CURSOR_WIDTH , &cursor_width)); +do_or_die (drmGetCap (data->drm_fd,DRM_CAP_CURSOR_HEIGHT , &cursor_height)); + +for (i =0 ; i <IGT_MAX_PIPES ; i++) { +if (!data->highest_mode[i]) +continue ; + +if (!data->cursor_fb[i].fb_id) { +igt_create_color_fb (data->drm_fd, + cursor_width, cursor_height, + data->format, + data->modifier, +1.0 ,0.0 ,0.0 , + &data->cursor_fb[i]); + } + +for (j =0 ; j < data->num_planes[i]; j++) { +if (!data->fb[i *MAX_PLANES + j].fb_id) { +igt_create_color_pattern_fb (data->drm_fd, + data->highest_mode[i]->hdisplay, + data->highest_mode[i]->vdisplay, + data->format, + data->modifier, +0.0 ,1.0 ,0.0 , &data->fb[i *MAX_PLANES + j]); + } + } + } +} + +static void destroy_framebuffers (struct data *data) +{ +int i, j; + +for (i =0 ; i <IGT_MAX_PIPES ; i++) { + +if (!data->highest_mode[i]) +continue ; + +for (j =0 ; j <MAX_PLANES ; j++) { +if (data->fb[i *MAX_PLANES + j].fb_id) { +igt_plane_set_fb (&data->display.pipes[i].planes[j],NULL ); +igt_remove_fb (data->display.drm_fd, &data->fb[i *MAX_PLANES + j]); + data->fb[i *MAX_PLANES + j].fb_id =0 ; + } + } +if (data->cursor_fb[i].fb_id) { +igt_remove_fb (data->display.drm_fd, &data->cursor_fb[i]); + data->cursor_fb[i].fb_id =0 ; + } + } +} + +static void prepare_test (struct data *data) +{ +int i, j; +int num_connectors; +int num_cpus = (int )sysconf (_SC_NPROCESSORS_ONLN); + + data->number_of_cores =min (num_cpus,MAX_CORES ); + +for (i =0 ; i <IGT_MAX_PIPES ; i++) { +for (j =0 ; j <MAX_PLANES ; j++) + data->fb[i *MAX_PLANES + j].fb_id =0 ; + data->cursor_fb[i].fb_id =0 ; + data->num_planes[i] =-1 ; + data->last_mode[i] =NULL ; +sem_init (&data->gpu_thread_pause_ack[i],0 ,0 ); + } + +start_cpu_threads (data); + data->mode_resources =drmModeGetResources (data->drm_fd); +if (!data->mode_resources) { +igt_warn ("drmModeGetResources failed: %s\n" ,strerror (errno)); +return ; + } + + num_connectors = data->mode_resources->count_connectors; + num_connectors =max (num_connectors,IGT_MAX_PIPES ); +memset (data->highest_mode,0 ,sizeof (drmModeModeInfo *) *IGT_MAX_PIPES ); + data->connectors = + (drmModeConnectorPtr *)calloc (sizeof (drmModeConnectorPtr) * num_connectors,1 ); +fill_connector_to_pipe_array (data, data->mode_resources, data->connectors); + +for (i =0 ; i <IGT_MAX_PIPES ; i++) { +drmModeConnector *connector = (drmModeConnector *)data->connectors[i]; + +if (!connector) +continue ; + +if (!data->highest_mode[i]) { +if (connector->count_modes) + data->highest_mode[i] =find_highest_mode (connector); + } +igt_assert (data->highest_mode[i]); + +if (data->highest_mode[i]) { +igt_info ("Using mode: \n" ); +kmstest_dump_mode (data->highest_mode[i]); + data->pipe_crc[i] =igt_pipe_crc_new (data->drm_fd, i, +INTEL_PIPE_CRC_SOURCE_AUTO ); + }else + data->pipe_crc[i] =NULL ; + +if (data->num_planes[i] ==-1 ) + data->num_planes[i] = data->display.pipes[i].n_planes; + +igt_info ("Max number of planes is %d for pipe %d\n" , + data->num_planes[i], i); + } + +create_framebuffers (data); + +if (intel_gen (intel_get_drm_devid (data->drm_fd)) >9 ) +start_gpu_threads (data); +} + +static void finish_test (struct data *data) +{ +int i; + +if (intel_gen (intel_get_drm_devid (data->drm_fd)) >9 ) +stop_gpu_threads (data); + +/* +* As we change tiling/format we need a new FB +*/ +destroy_framebuffers (data); + +for (i =0 ; i <IGT_MAX_PIPES ; i++) { + data->num_planes[i] =-1 ; + data->last_mode[i] =NULL ; +if (data->pipe_crc[i]) +igt_pipe_crc_free (data->pipe_crc[i]); + } + +stop_cpu_threads (data); +release_connectors (data->connectors); +drmModeFreeResources (data->mode_resources); +} + +struct data data = { + .format =DRM_FORMAT_XRGB8888 , + .modifier =DRM_FORMAT_MOD_LINEAR , + .devid =0 , + .bops =NULL +}; + + +igt_main { +uint8_t format_idx =0 , tiling_idx =0 ; + + igt_fixture { + data.drm_fd = data.display.drm_fd =drm_open_driver_master (DRIVER_INTEL ); + +kmstest_set_vt_graphics_mode (); + +igt_display_require (&data.display, data.display.drm_fd); +igt_require (data.display.is_atomic); +igt_display_require_output (&data.display); + data.devid =intel_get_drm_devid (data.drm_fd); +igt_require_gem (data.drm_fd); + } + +for (format_idx =0 ; format_idx <N_FORMATS ; format_idx++) { +for (tiling_idx =0 ; tiling_idx <N_TILING_METHODS ; tiling_idx++) { + data.format = formats[format_idx]; + data.modifier = tilings[tiling_idx]; + +igt_describe ("Start pipe stress test, utilizing cpu and gpu " +"simultaneously with maximum amount of planes " +"and resolution." ); +igt_subtest_f ("stress-%s-%s" , +format_str (format_idx), + tiling_str(tiling_idx)) { + +igt_skip_on (!igt_display_has_format_mod (&data.display, + formats[format_idx], + tilings[tiling_idx])); + +prepare_test (&data); +stress (&data); +finish_test (&data); + } + } + } + + igt_fixture { +igt_display_fini (&data.display); + } +}
tests/meson.build +1 -0
@@ -215,6 +215,7 @@ i915_progs = [ 'i915_hangman', 'i915_module_load', 'i915_pciid', + 'i915_pipe_stress', 'i915_pm_backlight', 'i915_pm_lpsp', 'i915_pm_rpm',
Signature · 1 line
2.37.3
Patchwork
CI[igt-dev] ✗ Fi.CI.BAT: failure for tests/i915/i915_pipe_stress: Add plane pipes stress test (rev8)
== Series Details ==
== Series Details ==
Series: tests/i915/i915_pipe_stress: Add plane pipes stress test (rev8)
URL : https://patchwork.freedesktop.org/series/107027/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_12116 -> IGTPW_7767
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_7767 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in IGTPW_7767, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7767/index.html
Participating hosts (38 -> 37)
------------------------------
Missing (1): fi-bdw-samus
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_7767:
### IGT changes ###
#### Possible regressions ####
* igt@i915_selftest@live@gt_engines:
- fi-glk-j4005: [PASS][1] -> [FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12116/fi-glk-j4005/igt@i915_selftest@live@gt_engines.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7767/fi-glk-j4005/igt@i915_selftest@live@gt_engines.html
Known issues
------------
Here are the changes found in IGTPW_7767 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_selftest@live@execlists:
- fi-bsw-nick: [PASS][3] -> [INCOMPLETE][4] ([i915#5847])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12116/fi-bsw-nick/igt@i915_selftest@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7767/fi-bsw-nick/igt@i915_selftest@[email protected]
* igt@i915_suspend@basic-s3-without-i915:
- fi-rkl-11600: [PASS][5] -> [INCOMPLETE][6] ([i915#5982])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12116/fi-rkl-11600/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7767/fi-rkl-11600/igt@[email protected]
* igt@runner@aborted:
- fi-bsw-nick: NOTRUN -> [FAIL][7] ([fdo#109271] / [i915#4312])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7767/fi-bsw-nick/igt@[email protected]
#### Possible fixes ####
* igt@gem_exec_suspend@basic-s3@smem:
- {bat-rplp-1}: [DMESG-WARN][8] ([i915#2867]) -> [PASS][9]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12116/bat-rplp-1/igt@gem_exec_suspend@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7767/bat-rplp-1/igt@gem_exec_suspend@[email protected]
* igt@i915_selftest@live@requests:
- {bat-rpls-1}: [INCOMPLETE][10] ([i915#4983] / [i915#6380]) -> [PASS][11]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12116/bat-rpls-1/igt@i915_selftest@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7767/bat-rpls-1/igt@i915_selftest@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor@atomic-transitions:
- fi-bsw-kefka: [FAIL][12] ([i915#6298]) -> [PASS][13]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12116/fi-bsw-kefka/igt@kms_cursor_legacy@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7767/fi-bsw-kefka/igt@kms_cursor_legacy@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582
[i915#2867]: https://gitlab.freedesktop.org/drm/intel/issues/2867
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4983]: https://gitlab.freedesktop.org/drm/intel/issues/4983
[i915#5847]: https://gitlab.freedesktop.org/drm/intel/issues/5847
[i915#5982]: https://gitlab.freedesktop.org/drm/intel/issues/5982
[i915#6257]: https://gitlab.freedesktop.org/drm/intel/issues/6257
[i915#6298]: https://gitlab.freedesktop.org/drm/intel/issues/6298
[i915#6380]: https://gitlab.freedesktop.org/drm/intel/issues/6380
[i915#6670]: https://gitlab.freedesktop.org/drm/intel/issues/6670
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_6650 -> IGTPW_7767
CI-20190529: 20190529
CI_DRM_12116: 7d406f0624e8824e32bc57c5523786c96fd227db @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_7767: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7767/index.html
IGT_6650: f7aff600ab16d6405f0704b1743d2b7909715752 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Testlist changes
----------------
+igt@i915_pipe_stress@stress-xrgb8888-untiled
+igt@i915_pipe_stress@stress-xrgb8888-ytiled
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7767/index.html
Patchwork
CI[igt-dev] ✓ Fi.CI.BAT: success for tests/i915/i915_pipe_stress: Add plane pipes stress test (rev9)
In reply to Stanislav Lisovskiy== Series Details ==
== Series Details ==
Series: tests/i915/i915_pipe_stress: Add plane pipes stress test (rev9)
URL : https://patchwork.freedesktop.org/series/107027/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_12122 -> IGTPW_7769
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/index.html
Participating hosts (40 -> 40)
------------------------------
Additional (2): bat-dg2-9 fi-apl-guc
Missing (2): fi-ctg-p8600 fi-bdw-samus
Known issues
------------
Here are the changes found in IGTPW_7769 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_selftest@live@gt_engines:
- bat-dg1-5: [PASS][1] -> [INCOMPLETE][2] ([i915#4418])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/bat-dg1-5/igt@i915_selftest@live@gt_engines.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/bat-dg1-5/igt@i915_selftest@live@gt_engines.html
* igt@i915_selftest@live@hangcheck:
- fi-hsw-4770: [PASS][3] -> [INCOMPLETE][4] ([i915#4785])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/fi-hsw-4770/igt@i915_selftest@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/fi-hsw-4770/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@requests:
- fi-blb-e6850: [PASS][5] -> [DMESG-FAIL][6] ([i915#4528])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/fi-blb-e6850/igt@i915_selftest@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/fi-blb-e6850/igt@i915_selftest@[email protected]
- fi-pnv-d510: [PASS][7] -> [DMESG-FAIL][8] ([i915#4528])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/fi-pnv-d510/igt@i915_selftest@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/fi-pnv-d510/igt@i915_selftest@[email protected]
* igt@runner@aborted:
- fi-hsw-4770: NOTRUN -> [FAIL][9] ([fdo#109271] / [i915#4312] / [i915#5594] / [i915#6246])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/fi-hsw-4770/igt@[email protected]
- fi-apl-guc: NOTRUN -> [FAIL][10] ([i915#6599])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/fi-apl-guc/igt@[email protected]
- bat-dg1-5: NOTRUN -> [FAIL][11] ([i915#4312] / [i915#5257])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/bat-dg1-5/igt@[email protected]
#### Possible fixes ####
* igt@fbdev@read:
- {bat-rpls-2}: [SKIP][12] ([i915#2582]) -> [PASS][13] +4 similar issues
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/bat-rpls-2/igt@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/bat-rpls-2/igt@[email protected]
* igt@i915_pm_rpm@module-reload:
- {bat-rpls-2}: [DMESG-WARN][14] ([i915#5537]) -> [PASS][15]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/bat-rpls-2/igt@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/bat-rpls-2/igt@[email protected]
* igt@i915_selftest@live@gt_pm:
- {bat-rpls-2}: [DMESG-FAIL][16] ([i915#4258]) -> [PASS][17]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/bat-rpls-2/igt@i915_selftest@live@gt_pm.html
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/bat-rpls-2/igt@i915_selftest@live@gt_pm.html
* igt@i915_selftest@live@hugepages:
- {bat-rpls-1}: [DMESG-WARN][18] ([i915#5278]) -> [PASS][19]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/bat-rpls-1/igt@i915_selftest@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/bat-rpls-1/igt@i915_selftest@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1155]: https://gitlab.freedesktop.org/drm/intel/issues/1155
[i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582
[i915#2867]: https://gitlab.freedesktop.org/drm/intel/issues/2867
[i915#3291]: https://gitlab.freedesktop.org/drm/intel/issues/3291
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3595]: https://gitlab.freedesktop.org/drm/intel/issues/3595
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077
[i915#4079]: https://gitlab.freedesktop.org/drm/intel/issues/4079
[i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4212]: https://gitlab.freedesktop.org/drm/intel/issues/4212
[i915#4213]: https://gitlab.freedesktop.org/drm/intel/issues/4213
[i915#4215]: https://gitlab.freedesktop.org/drm/intel/issues/4215
[i915#4258]: https://gitlab.freedesktop.org/drm/intel/issues/4258
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4418]: https://gitlab.freedesktop.org/drm/intel/issues/4418
[i915#4528]: https://gitlab.freedesktop.org/drm/intel/issues/4528
[i915#4579]: https://gitlab.freedesktop.org/drm/intel/issues/4579
[i915#4785]: https://gitlab.freedesktop.org/drm/intel/issues/4785
[i915#4873]: https://gitlab.freedesktop.org/drm/intel/issues/4873
[i915#4983]: https://gitlab.freedesktop.org/drm/intel/issues/4983
[i915#5190]: https://gitlab.freedesktop.org/drm/intel/issues/5190
[i915#5257]: https://gitlab.freedesktop.org/drm/intel/issues/5257
[i915#5274]: https://gitlab.freedesktop.org/drm/intel/issues/5274
[i915#5278]: https://gitlab.freedesktop.org/drm/intel/issues/5278
[i915#5537]: https://gitlab.freedesktop.org/drm/intel/issues/5537
[i915#5594]: https://gitlab.freedesktop.org/drm/intel/issues/5594
[i915#5828]: https://gitlab.freedesktop.org/drm/intel/issues/5828
[i915#6246]: https://gitlab.freedesktop.org/drm/intel/issues/6246
[i915#6599]: https://gitlab.freedesktop.org/drm/intel/issues/6599
[i915#6621]: https://gitlab.freedesktop.org/drm/intel/issues/6621
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_6650 -> IGTPW_7769
CI-20190529: 20190529
CI_DRM_12122: 525f598daba258ddb6b23bc2fa8b2240b88495b4 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_7769: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/index.html
IGT_6650: f7aff600ab16d6405f0704b1743d2b7909715752 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Testlist changes
----------------
+igt@i915_pipe_stress@stress-xrgb8888-untiled
+igt@i915_pipe_stress@stress-xrgb8888-ytiled
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/index.html
Patchwork
CI[igt-dev] ✗ Fi.CI.IGT: failure for tests/i915/i915_pipe_stress: Add plane pipes stress test (rev9)
In reply to Stanislav Lisovskiy== Series Details ==
== Series Details ==
Series: tests/i915/i915_pipe_stress: Add plane pipes stress test (rev9)
URL : https://patchwork.freedesktop.org/series/107027/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_12122_full -> IGTPW_7769_full
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_7769_full absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in IGTPW_7769_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/index.html
Participating hosts (12 -> 8)
------------------------------
Missing (4): pig-skl-6260u pig-kbl-iris shard-dg1 pig-glk-j5005
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_7769_full:
### IGT changes ###
#### Possible regressions ####
* igt@i915_module_load@reload-with-fault-injection:
- shard-tglb: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-tglb7/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-tglb2/igt@[email protected]
* {igt@i915_pipe_stress@stress-xrgb8888-ytiled} (NEW):
- shard-apl: NOTRUN -> [FAIL][3]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-apl7/igt@[email protected]
* igt@kms_cursor_legacy@long-nonblocking-modeset-vs-cursor-atomic:
- shard-apl: [PASS][4] -> [FAIL][5]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-apl1/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-apl4/igt@[email protected]
New tests
---------
New tests have been introduced between CI_DRM_12122_full and IGTPW_7769_full:
### New IGT tests (2) ###
* igt@i915_pipe_stress@stress-xrgb8888-untiled:
- Statuses : 4 pass(s)
- Exec time: [7.30, 8.46] s
* igt@i915_pipe_stress@stress-xrgb8888-ytiled:
- Statuses : 1 fail(s) 3 pass(s) 1 skip(s)
- Exec time: [0.0, 10.89] s
Known issues
------------
Here are the changes found in IGTPW_7769_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_balancer@parallel-keep-in-fence:
- shard-iclb: [PASS][6] -> [SKIP][7] ([i915#4525]) +2 similar issues
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-iclb4/igt@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-iclb5/igt@[email protected]
* igt@gem_exec_fair@basic-pace-share@rcs0:
- shard-glk: [PASS][8] -> [FAIL][9] ([i915#2842]) +1 similar issue
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-glk1/igt@gem_exec_fair@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-glk1/igt@gem_exec_fair@[email protected]
* igt@gem_exec_parallel@contexts@rcs0:
- shard-glk: [PASS][10] -> [DMESG-WARN][11] ([i915#118])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-glk1/igt@gem_exec_parallel@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-glk3/igt@gem_exec_parallel@[email protected]
* igt@gem_exec_suspend@basic-s3@smem:
- shard-apl: [PASS][12] -> [DMESG-WARN][13] ([i915#180]) +4 similar issues
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-apl6/igt@gem_exec_suspend@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-apl1/igt@gem_exec_suspend@[email protected]
* igt@gem_huc_copy@huc-copy:
- shard-apl: NOTRUN -> [SKIP][14] ([fdo#109271] / [i915#2190])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-apl3/igt@[email protected]
- shard-glk: NOTRUN -> [SKIP][15] ([fdo#109271] / [i915#2190])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-glk1/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][16] ([i915#2190])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-iclb5/igt@[email protected]
* igt@gem_pread@exhaustion:
- shard-snb: NOTRUN -> [WARN][17] ([i915#2658])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-snb5/igt@[email protected]
* igt@gen9_exec_parse@allowed-single:
- shard-apl: [PASS][18] -> [DMESG-WARN][19] ([i915#5566] / [i915#716])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-apl1/igt@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-apl4/igt@[email protected]
* igt@kms_atomic_transition@plane-all-modeset-transition-fencing-internal-panels:
- shard-tglb: NOTRUN -> [SKIP][20] ([i915#1769] / [i915#3555])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-tglb3/igt@kms_atomic_transition@plane-all-modeset-transition-fencing-internal-panels.html
- shard-iclb: NOTRUN -> [SKIP][21] ([i915#1769] / [i915#3555])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-iclb7/igt@kms_atomic_transition@plane-all-modeset-transition-fencing-internal-panels.html
* igt@kms_big_fb@linear-max-hw-stride-64bpp-rotate-0:
- shard-snb: [PASS][22] -> [SKIP][23] ([fdo#109271])
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-snb4/igt@[email protected]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-snb2/igt@[email protected]
* igt@kms_big_fb@x-tiled-64bpp-rotate-90:
- shard-glk: NOTRUN -> [SKIP][24] ([fdo#109271]) +33 similar issues
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-glk8/igt@[email protected]
* igt@kms_ccs@pipe-a-ccs-on-another-bo-y_tiled_ccs:
- shard-tglb: NOTRUN -> [SKIP][25] ([i915#3689])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-tglb3/igt@kms_ccs@pipe-a-ccs-on-another-bo-y_tiled_ccs.html
* igt@kms_ccs@pipe-a-crc-primary-rotation-180-y_tiled_gen12_mc_ccs:
- shard-tglb: NOTRUN -> [SKIP][26] ([i915#3689] / [i915#3886])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-tglb1/igt@kms_ccs@pipe-a-crc-primary-rotation-180-y_tiled_gen12_mc_ccs.html
- shard-iclb: NOTRUN -> [SKIP][27] ([fdo#109278] / [i915#3886])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-iclb2/igt@kms_ccs@pipe-a-crc-primary-rotation-180-y_tiled_gen12_mc_ccs.html
* igt@kms_ccs@pipe-a-crc-sprite-planes-basic-y_tiled_gen12_rc_ccs_cc:
- shard-glk: NOTRUN -> [SKIP][28] ([fdo#109271] / [i915#3886]) +3 similar issues
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-glk7/igt@kms_ccs@pipe-a-crc-sprite-planes-basic-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_ccs@pipe-b-crc-primary-rotation-180-4_tiled_dg2_rc_ccs_cc:
- shard-tglb: NOTRUN -> [SKIP][29] ([i915#6095])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-tglb6/igt@kms_ccs@pipe-b-crc-primary-rotation-180-4_tiled_dg2_rc_ccs_cc.html
- shard-iclb: NOTRUN -> [SKIP][30] ([fdo#109278])
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-iclb6/igt@kms_ccs@pipe-b-crc-primary-rotation-180-4_tiled_dg2_rc_ccs_cc.html
* igt@kms_ccs@pipe-c-bad-rotation-90-yf_tiled_ccs:
- shard-tglb: NOTRUN -> [SKIP][31] ([fdo#111615] / [i915#3689])
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-tglb7/igt@kms_ccs@pipe-c-bad-rotation-90-yf_tiled_ccs.html
* igt@kms_cdclk@mode-transition-all-outputs:
- shard-snb: NOTRUN -> [SKIP][32] ([fdo#109271]) +31 similar issues
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-snb7/igt@[email protected]
* igt@kms_dp_aux_dev:
- shard-iclb: [PASS][33] -> [DMESG-WARN][34] ([i915#4391])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-iclb7/igt@kms_dp_aux_dev.html
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-iclb7/igt@kms_dp_aux_dev.html
* igt@kms_flip@2x-flip-vs-panning:
- shard-iclb: NOTRUN -> [SKIP][35] ([fdo#109274])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-iclb5/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][36] ([fdo#109274] / [fdo#111825] / [i915#3637])
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-tglb2/igt@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible@a-dp1:
- shard-apl: [PASS][37] -> [DMESG-WARN][38] ([i915#180] / [i915#1982])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-apl2/igt@kms_flip@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-apl1/igt@kms_flip@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-yftile-to-32bpp-yftileccs-downscaling@pipe-a-default-mode:
- shard-iclb: NOTRUN -> [SKIP][39] ([i915#6375])
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-iclb2/igt@kms_flip_scaled_crc@flip-32bpp-yftile-to-32bpp-yftileccs-downscaling@pipe-a-default-mode.html
* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytileccs-downscaling@pipe-a-default-mode:
- shard-iclb: NOTRUN -> [SKIP][40] ([i915#3555]) +1 similar issue
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-iclb2/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytileccs-downscaling@pipe-a-default-mode.html
* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs-upscaling@pipe-a-default-mode:
- shard-iclb: NOTRUN -> [SKIP][41] ([i915#2672]) +2 similar issues
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-iclb3/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs-upscaling@pipe-a-default-mode.html
* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-64bpp-ytile-downscaling@pipe-a-default-mode:
- shard-iclb: [PASS][42] -> [SKIP][43] ([i915#3555])
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-iclb3/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-64bpp-ytile-downscaling@pipe-a-default-mode.html
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-iclb2/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-64bpp-ytile-downscaling@pipe-a-default-mode.html
* igt@kms_frontbuffer_tracking@psr-2p-primscrn-spr-indfb-move:
- shard-tglb: NOTRUN -> [SKIP][44] ([fdo#109280] / [fdo#111825])
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-tglb5/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][45] ([fdo#109280])
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-iclb4/igt@[email protected]
* igt@kms_plane_scaling@plane-downscale-with-pixel-format-factor-0-5@pipe-b-edp-1:
- shard-iclb: [PASS][46] -> [SKIP][47] ([i915#5176]) +2 similar issues
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-iclb1/igt@kms_plane_scaling@[email protected]
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-iclb2/igt@kms_plane_scaling@[email protected]
* igt@kms_plane_scaling@planes-upscale-20x20-downscale-factor-0-5@pipe-b-edp-1:
- shard-iclb: [PASS][48] -> [SKIP][49] ([i915#5235]) +2 similar issues
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-iclb6/igt@kms_plane_scaling@[email protected]
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-iclb2/igt@kms_plane_scaling@[email protected]
* igt@kms_psr@psr2_cursor_render:
- shard-iclb: [PASS][50] -> [SKIP][51] ([fdo#109441])
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-iclb2/igt@kms_psr@psr2_cursor_render.html
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-iclb4/igt@kms_psr@psr2_cursor_render.html
* igt@kms_psr_stress_test@flip-primary-invalidate-overlay:
- shard-apl: NOTRUN -> [SKIP][52] ([fdo#109271]) +6 similar issues
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-apl3/igt@[email protected]
* igt@kms_rotation_crc@primary-rotation-90:
- shard-glk: [PASS][53] -> [FAIL][54] ([i915#1888] / [i915#5852])
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-glk1/igt@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-glk2/igt@[email protected]
* igt@kms_vblank@pipe-c-ts-continuation-idle-hang:
- shard-apl: [PASS][55] -> [SKIP][56] ([fdo#109271]) +1 similar issue
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-apl8/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-apl1/igt@[email protected]
- shard-glk: [PASS][57] -> [SKIP][58] ([fdo#109271])
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-glk1/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-glk3/igt@[email protected]
* igt@prime_nv_pcopy@test3_1:
- shard-tglb: NOTRUN -> [SKIP][59] ([fdo#109291])
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-tglb1/igt@prime_nv_pcopy@test3_1.html
- shard-iclb: NOTRUN -> [SKIP][60] ([fdo#109291])
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-iclb6/igt@prime_nv_pcopy@test3_1.html
* igt@sysfs_clients@sema-25:
- shard-glk: NOTRUN -> [SKIP][61] ([fdo#109271] / [i915#2994])
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-glk2/igt@[email protected]
#### Possible fixes ####
* igt@gem_ctx_exec@basic-nohangcheck:
- shard-tglb: [FAIL][62] ([i915#6268]) -> [PASS][63]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-tglb2/igt@[email protected]
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-tglb1/igt@[email protected]
* igt@gem_eio@kms:
- shard-tglb: [FAIL][64] ([i915#5784]) -> [PASS][65]
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-tglb1/igt@[email protected]
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-tglb6/igt@[email protected]
* igt@gem_exec_balancer@parallel-keep-submit-fence:
- shard-iclb: [SKIP][66] ([i915#4525]) -> [PASS][67]
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-iclb5/igt@[email protected]
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-iclb2/igt@[email protected]
* igt@gem_exec_endless@dispatch@vecs0:
- shard-tglb: [INCOMPLETE][68] ([i915#3778]) -> [PASS][69]
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-tglb7/igt@gem_exec_endless@[email protected]
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-tglb2/igt@gem_exec_endless@[email protected]
* igt@gem_exec_fair@basic-none-solo@rcs0:
- shard-apl: [FAIL][70] ([i915#2842]) -> [PASS][71] +1 similar issue
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-apl4/igt@gem_exec_fair@[email protected]
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-apl4/igt@gem_exec_fair@[email protected]
* igt@gen9_exec_parse@allowed-single:
- shard-glk: [DMESG-WARN][72] ([i915#5566] / [i915#716]) -> [PASS][73]
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-glk2/igt@[email protected]
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-glk9/igt@[email protected]
* igt@i915_pm_dc@dc6-psr:
- shard-iclb: [FAIL][74] ([i915#454]) -> [PASS][75]
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-iclb3/igt@[email protected]
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-iclb5/igt@[email protected]
* igt@i915_pm_dc@dc9-dpms:
- shard-iclb: [SKIP][76] ([i915#4281]) -> [PASS][77]
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-iclb3/igt@[email protected]
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-iclb2/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-suspend:
- shard-apl: [DMESG-WARN][78] ([i915#180]) -> [PASS][79]
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-apl8/igt@[email protected]
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-apl6/igt@[email protected]
* igt@kms_frontbuffer_tracking@psr-slowdraw:
- shard-iclb: [FAIL][80] ([i915#1888] / [i915#2546]) -> [PASS][81]
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-iclb2/igt@[email protected]
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-iclb5/igt@[email protected]
* igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-5@pipe-c-edp-1:
- shard-iclb: [SKIP][82] ([i915#5235]) -> [PASS][83] +2 similar issues
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-iclb2/igt@kms_plane_scaling@[email protected]
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-iclb7/igt@kms_plane_scaling@[email protected]
* igt@kms_psr@psr2_cursor_mmap_gtt:
- shard-iclb: [SKIP][84] ([fdo#109441]) -> [PASS][85] +3 similar issues
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-iclb1/igt@kms_psr@psr2_cursor_mmap_gtt.html
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-iclb2/igt@kms_psr@psr2_cursor_mmap_gtt.html
#### Warnings ####
* igt@gem_eio@unwedge-stress:
- shard-tglb: [TIMEOUT][86] ([i915#3063]) -> [FAIL][87] ([i915#5784])
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-tglb7/igt@[email protected]
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-tglb5/igt@[email protected]
* igt@gem_exec_balancer@parallel-ordering:
- shard-iclb: [FAIL][88] ([i915#6117]) -> [SKIP][89] ([i915#4525])
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-iclb1/igt@[email protected]
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-iclb3/igt@[email protected]
* igt@kms_psr2_sf@cursor-plane-move-continuous-sf:
- shard-iclb: [SKIP][90] ([i915#658]) -> [SKIP][91] ([i915#2920])
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-iclb3/igt@[email protected]
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-iclb2/igt@[email protected]
* igt@kms_psr2_sf@overlay-plane-move-continuous-sf:
- shard-iclb: [SKIP][92] ([i915#2920]) -> [SKIP][93] ([i915#658])
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-iclb2/igt@[email protected]
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-iclb7/igt@[email protected]
* igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area:
- shard-iclb: [SKIP][94] ([i915#2920]) -> [SKIP][95] ([fdo#111068] / [i915#658]) +1 similar issue
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-iclb2/igt@[email protected]
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-iclb6/igt@[email protected]
* igt@runner@aborted:
- shard-apl: ([FAIL][96], [FAIL][97], [FAIL][98]) ([fdo#109271] / [i915#3002] / [i915#4312] / [i915#5257] / [i915#6599]) -> ([FAIL][99], [FAIL][100], [FAIL][101], [FAIL][102], [FAIL][103], [FAIL][104], [FAIL][105], [FAIL][106]) ([fdo#109271] / [i915#180] / [i915#3002] / [i915#4312] / [i915#5257] / [i915#6599])
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-apl1/igt@[email protected]
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-apl8/igt@[email protected]
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12122/shard-apl4/igt@[email protected]
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-apl1/igt@[email protected]
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-apl8/igt@[email protected]
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-apl3/igt@[email protected]
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-apl1/igt@[email protected]
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-apl3/igt@[email protected]
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-apl2/igt@[email protected]
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-apl1/igt@[email protected]
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/shard-apl4/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#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109274]: https://bugs.freedesktop.org/show_bug.cgi?id=109274
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#109280]: https://bugs.freedesktop.org/show_bug.cgi?id=109280
[fdo#109283]: https://bugs.freedesktop.org/show_bug.cgi?id=109283
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109289]: https://bugs.freedesktop.org/show_bug.cgi?id=109289
[fdo#109291]: https://bugs.freedesktop.org/show_bug.cgi?id=109291
[fdo#109295]: https://bugs.freedesktop.org/show_bug.cgi?id=109295
[fdo#109302]: https://bugs.freedesktop.org/show_bug.cgi?id=109302
[fdo#109308]: https://bugs.freedesktop.org/show_bug.cgi?id=109308
[fdo#109314]: https://bugs.freedesktop.org/show_bug.cgi?id=109314
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#110189]: https://bugs.freedesktop.org/show_bug.cgi?id=110189
[fdo#110542]: https://bugs.freedesktop.org/show_bug.cgi?id=110542
[fdo#110723]: https://bugs.freedesktop.org/show_bug.cgi?id=110723
[fdo#111068]: https://bugs.freedesktop.org/show_bug.cgi?id=111068
[fdo#111614]: https://bugs.freedesktop.org/show_bug.cgi?id=111614
[fdo#111615]: https://bugs.freedesktop.org/show_bug.cgi?id=111615
[fdo#111644]: https://bugs.freedesktop.org/show_bug.cgi?id=111644
[fdo#111656]: https://bugs.freedesktop.org/show_bug.cgi?id=111656
[fdo#111825]: https://bugs.freedesktop.org/show_bug.cgi?id=111825
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[fdo#112054]: https://bugs.freedesktop.org/show_bug.cgi?id=112054
[fdo#112283]: https://bugs.freedesktop.org/show_bug.cgi?id=112283
[i915#1063]: https://gitlab.freedesktop.org/drm/intel/issues/1063
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1155]: https://gitlab.freedesktop.org/drm/intel/issues/1155
[i915#118]: https://gitlab.freedesktop.org/drm/intel/issues/118
[i915#132]: https://gitlab.freedesktop.org/drm/intel/issues/132
[i915#1397]: https://gitlab.freedesktop.org/drm/intel/issues/1397
[i915#1755]: https://gitlab.freedesktop.org/drm/intel/issues/1755
[i915#1769]: https://gitlab.freedesktop.org/drm/intel/issues/1769
[i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180
[i915#1825]: https://gitlab.freedesktop.org/drm/intel/issues/1825
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#1849]: https://gitlab.freedesktop.org/drm/intel/issues/1849
[i915#1888]: https://gitlab.freedesktop.org/drm/intel/issues/1888
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2410]: https://gitlab.freedesktop.org/drm/intel/issues/2410
[i915#2436]: https://gitlab.freedesktop.org/drm/intel/issues/2436
[i915#2437]: https://gitlab.freedesktop.org/drm/intel/issues/2437
[i915#2527]: https://gitlab.freedesktop.org/drm/intel/issues/2527
[i915#2530]: https://gitlab.freedesktop.org/drm/intel/issues/2530
[i915#2546]: https://gitlab.freedesktop.org/drm/intel/issues/2546
[i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582
[i915#2587]: https://gitlab.freedesktop.org/drm/intel/issues/2587
[i915#2658]: https://gitlab.freedesktop.org/drm/intel/issues/2658
[i915#2672]: https://gitlab.freedesktop.org/drm/intel/issues/2672
[i915#2705]: https://gitlab.freedesktop.org/drm/intel/issues/2705
[i915#280]: https://gitlab.freedesktop.org/drm/intel/issues/280
[i915#284]: https://gitlab.freedesktop.org/drm/intel/issues/284
[i915#2842]: https://gitlab.freedesktop.org/drm/intel/issues/2842
[i915#2856]: https://gitlab.freedesktop.org/drm/intel/issues/2856
[i915#2920]: https://gitlab.freedesktop.org/drm/intel/issues/2920
[i915#2994]: https://gitlab.freedesktop.org/drm/intel/issues/2994
[i915#3002]: https://gitlab.freedesktop.org/drm/intel/issues/3002
[i915#3012]: https://gitlab.freedesktop.org/drm/intel/issues/3012
[i915#3063]: https://gitlab.freedesktop.org/drm/intel/issues/3063
[i915#3116]: https://gitlab.freedesktop.org/drm/intel/issues/3116
[i915#3281]: https://gitlab.freedesktop.org/drm/intel/issues/3281
[i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
[i915#3291]: https://gitlab.freedesktop.org/drm/intel/issues/3291
[i915#3297]: https://gitlab.freedesktop.org/drm/intel/issues/3297
[i915#3299]: https://gitlab.freedesktop.org/drm/intel/issues/3299
[i915#3301]: https://gitlab.freedesktop.org/drm/intel/issues/3301
[i915#3469]: https://gitlab.freedesktop.org/drm/intel/issues/3469
[i915#3528]: https://gitlab.freedesktop.org/drm/intel/issues/3528
[i915#3546]: https://gitlab.freedesktop.org/drm/intel/issues/3546
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3558]: https://gitlab.freedesktop.org/drm/intel/issues/3558
[i915#3637]: https://gitlab.freedesktop.org/drm/intel/issues/3637
[i915#3689]: https://gitlab.freedesktop.org/drm/intel/issues/3689
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#3734]: https://gitlab.freedesktop.org/drm/intel/issues/3734
[i915#3742]: https://gitlab.freedesktop.org/drm/intel/issues/3742
[i915#3778]: https://gitlab.freedesktop.org/drm/intel/issues/3778
[i915#3828]: https://gitlab.freedesktop.org/drm/intel/issues/3828
[i915#3886]: https://gitlab.freedesktop.org/drm/intel/issues/3886
[i915#3955]: https://gitlab.freedesktop.org/drm/intel/issues/3955
[i915#4070]: https://gitlab.freedesktop.org/drm/intel/issues/4070
[i915#4098]: https://gitlab.freedesktop.org/drm/intel/issues/4098
[i915#4171]: https://gitlab.freedesktop.org/drm/intel/issues/4171
[i915#4270]: https://gitlab.freedesktop.org/drm/intel/issues/4270
[i915#4281]: https://gitlab.freedesktop.org/drm/intel/issues/4281
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4391]: https://gitlab.freedesktop.org/drm/intel/issues/4391
[i915#4525]: https://gitlab.freedesktop.org/drm/intel/issues/4525
[i915#454]: https://gitlab.freedesktop.org/drm/intel/issues/454
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4991]: https://gitlab.freedesktop.org/drm/intel/issues/4991
[i915#5122]: https://gitlab.freedesktop.org/drm/intel/issues/5122
[i915#5176]: https://gitlab.freedesktop.org/drm/intel/issues/5176
[i915#5235]: https://gitlab.freedesktop.org/drm/intel/issues/5235
[i915#5257]: https://gitlab.freedesktop.org/drm/intel/issues/5257
[i915#5286]: https://gitlab.freedesktop.org/drm/intel/issues/5286
[i915#5288]: https://gitlab.freedesktop.org/drm/intel/issues/5288
[i915#5289]: https://gitlab.freedesktop.org/drm/intel/issues/5289
[i915#5325]: https://gitlab.freedesktop.org/drm/intel/issues/5325
[i915#533]: https://gitlab.freedesktop.org/drm/intel/issues/533
[i915#5461]: https://gitlab.freedesktop.org/drm/intel/issues/5461
[i915#5566]: https://gitlab.freedesktop.org/drm/intel/issues/5566
[i915#5784]: https://gitlab.freedesktop.org/drm/intel/issues/5784
[i915#5852]: https://gitlab.freedesktop.org/drm/intel/issues/5852
[i915#6095]: https://gitlab.freedesktop.org/drm/intel/issues/6095
[i915#6117]: https://gitlab.freedesktop.org/drm/intel/issues/6117
[i915#6245]: https://gitlab.freedesktop.org/drm/intel/issues/6245
[i915#6268]: https://gitlab.freedesktop.org/drm/intel/issues/6268
[i915#6301]: https://gitlab.freedesktop.org/drm/intel/issues/6301
[i915#6335]: https://gitlab.freedesktop.org/drm/intel/issues/6335
[i915#6344]: https://gitlab.freedesktop.org/drm/intel/issues/6344
[i915#6375]: https://gitlab.freedesktop.org/drm/intel/issues/6375
[i915#6412]: https://gitlab.freedesktop.org/drm/intel/issues/6412
[i915#6433]: https://gitlab.freedesktop.org/drm/intel/issues/6433
[i915#6497]: https://gitlab.freedesktop.org/drm/intel/issues/6497
[i915#658]: https://gitlab.freedesktop.org/drm/intel/issues/658
[i915#6599]: https://gitlab.freedesktop.org/drm/intel/issues/6599
[i915#716]: https://gitlab.freedesktop.org/drm/intel/issues/716
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_6650 -> IGTPW_7769
* Piglit: piglit_4509 -> None
CI-20190529: 20190529
CI_DRM_12122: 525f598daba258ddb6b23bc2fa8b2240b88495b4 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_7769: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/index.html
IGT_6650: f7aff600ab16d6405f0704b1743d2b7909715752 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7769/index.html
Quoted 30 lines · Stanislav Lisovskiy
This test attempts to utilize all connected outputs at the same time, using maximum possible resolution and amount of planes, to check whether we are hiting any kind of bandwidth, watermark or other limitations.
v2: Use
igt_skip_onto skip unsupported formats in
fixture properly.v3: - Changed to SPDX license
- Removed execution engine usage, which seems to be not needed yet here
- Fixed some obvious things found, like missing dot and new line after declarations
- Addedigt_skip_ontoigt_fixtureto properly skip formats/modifiers, not supported on current platform.v4: - Added mutex, as
gpu_fillseems to cause some
crashes if run from multiple threads.
- Some additional info addedyv5: - Removed
igt_require_fas it is being called from
non-main thread(Petri Latvala)v6: - Added
igt_assertforfill_fn
- Don't do gpu fill for gens < 8, as there are seem to be some issues, when it is done from multiple threads.
Quoted 5 lines
v7: - Apparently need to exclude ApolloLake as well.
Anyways we are not much interested in stress-testing those.Signed-off-by Stanislav Lisovskiy <[email protected]>
Recap of what we discussed about this offline is:
But someone with more kms experience could be useful for having a sanity checking look over this.
Quoted 92 lines
-----Original Message-----
From: Lisovskiy, Stanislav <[email protected]>
Sent: Monday, September 12, 2022 11:12 AM
To: [email protected]
Cc: Lisovskiy, Stanislav <[email protected]>; Shankar, Uma <[email protected]>; Saarinen, Jani <[email protected]>; Latvala, Petri <[email protected]>
Subject: [PATCH] tests/i915/i915_pipe_stress: Add plane pipes stress testThis test attempts to utilize all connected outputs at the same time, using maximum possible resolution and amount of planes, to check whether we are hiting any kind of bandwidth, watermark or other limitations.
v2: Use
igt_skip_onto skip unsupported formats in
fixture properly.v3: - Changed to SPDX license
- Removed execution engine usage, which seems to be not needed yet here
- Fixed some obvious things found, like missing dot and new line after declarations
- Addedigt_skip_ontoigt_fixtureto properly skip formats/modifiers, not supported on current platform.v4: - Added mutex, as
gpu_fillseems to cause some
crashes if run from multiple threads.
- Some additional info addedyv5: - Removed
igt_require_fas it is being called from
non-main thread(Petri Latvala)v6: - Added
igt_assertforfill_fn
- Don't do gpu fill for gens < 8, as there are seem to be some issues, when it is done from multiple threads.v7: - Apparently need to exclude ApolloLake as well.
Anyways we are not much interested in stress-testing those.Signed-off-by Stanislav Lisovskiy <[email protected]>--- tests/i915/i915_pipe_stress.c | 869 ++++++++++++++++++++++++++++++++++ tests/meson.build | 1 + 2 files changed, 870 insertions(+) create mode 100644 tests/i915/i915_pipe_stress.ctests/i915/i915_pipe_stress.c new file renamed from tests/i915/i915_pipe_stress.c +0
-0mode 100644 index 0000000000..3949d5c383
tests/i915/i915_pipe_stress.c new file +22
-0@@ -0,0 +1,869 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2021 Intel Corporation +*/ + +#include "igt.h" +#include "igt_rand.h" +#include "gpgpu_fill.h" +#include "drmtest.h" +#include "sw_sync.h" +#include <errno.h> +#include <pthread.h> +#include <stdbool.h> +#include <stdio.h> +#include <string.h> +#include <time.h> +#include <poll.h> +#include <pthread.h> +#include <semaphore.h> +#include "i915/gem.h" + +IGT_TEST_DESCRIPTION("Stress test how gpu and cpu behaves if maximum amountof planes, "
tests/i915/i915_pipe_stress.c new file +14
-0+"cpu and gpu utilization is achieved in order to reveal possible " + "bandwidth/watermark and similar problems."); + +#ifndef DRM_CAP_CURSOR_WIDTH +#define DRM_CAP_CURSOR_WIDTH 0x8 +#endif +#ifndef DRM_CAP_CURSOR_HEIGHT +#define DRM_CAP_CURSOR_HEIGHT 0x9 +#endif + +#define HAS_XELPD (drm_fd) +(intel_display_ver(intel_get_drm_devid(drm_fd)) >= 13) + +#define N_BLITS_PER_FRAME 10
tests/i915/i915_pipe_stress.c line 45
Quoted 10 lines
tests/i915/i915_pipe_stress.c new file +10
-0+ +#define N_FORMATS 1 +static const uint32_t formats[N_FORMATS ] = { +DRM_FORMAT_XRGB8888 , +}; + +#define N_TILING_METHODS 2 +static const uint64_t tilings[N_TILING_METHODS ] = { +DRM_FORMAT_MOD_LINEAR , +I915_FORMAT_MOD_Y_TILED ,
Newer platforms implement Tile4, would be good to include that as well. Other than that looks good to me.
Quoted 860 lines
tests/i915/i915_pipe_stress.c new file +139
-0+}; + +static const char *format_str (int format_index) { +switch (formats[format_index]) { +case DRM_FORMAT_RGB565 : +return "rgb565" ; +case DRM_FORMAT_XRGB8888 : +return "xrgb8888" ; +case DRM_FORMAT_XRGB2101010 : +return "xrgb2101010" ; +default : +igt_assert (false); + } +} + +static const char *tiling_str (int tiling_index) { +switch (tilings[tiling_index]) { +case DRM_FORMAT_MOD_LINEAR : +return "untiled" ; +case I915_FORMAT_MOD_X_TILED : +return "xtiled" ; +case I915_FORMAT_MOD_Y_TILED : +return "ytiled" ; +default : +igt_assert (false); + } +} + + +#define MAX_CORES 8 +#define MAX_PLANES 16 + +struct data ; + +struct thread_context { +struct data *data; +int id; +void *buf1; +void *buf2; +}; + +struct rect { +int x; +int y; +int w; +int h; +}; + +struct gpu_context { +struct data *data; +int pipe; +int color; +int num_rectangles; +struct intel_buf *buf; +struct igt_fb *fb_ptr; +struct rect blt_rect; +struct intel_batchbuffer *batch; +}; + +enum { +RUNNING , +STOPPED , +PAUSED , +LAST_STATE =PAUSED +} thread_state; + +struct data { +int drm_fd; +igt_display_t display; +int num_planes[IGT_MAX_PIPES ]; +uint32_t format; +uint64_t modifier; +uint32_t devid; +struct buf_ops *bops; +drm_intel_bufmgr *bufmgr; +drmModeModeInfo *last_mode[IGT_MAX_PIPES ]; +struct igt_fb fb[IGT_MAX_PIPES *MAX_PLANES ]; +struct igt_fb cursor_fb[IGT_MAX_PIPES ]; +pthread_t cpu_thread[MAX_CORES ]; +pthread_t gpu_thread[IGT_MAX_PIPES ]; +bool cpu_thread_stop[MAX_CORES ]; +int gpu_thread_state[IGT_MAX_PIPES ]; +sem_t gpu_thread_pause_ack[IGT_MAX_PIPES ]; +struct thread_context cpu_context[MAX_CORES ]; +struct gpu_context gpu_context[IGT_MAX_PIPES ]; +pthread_mutex_t gpu_fill_lock; +drmModeModeInfo *highest_mode[IGT_MAX_PIPES ]; +drmModeConnectorPtr *connectors; +drmModeRes *mode_resources; +int number_of_cores; +igt_pipe_crc_t *pipe_crc[IGT_MAX_PIPES ]; }; + +static void stop_gpu_threads (struct data *data);static void +start_gpu_threads (struct data *data); + +struct base_crc { +bool set; +igt_crc_t crc; +}; + +#define BUF_SIZE (128 * 1024 * 1024) + +static void *cpu_load (void *d) +{ +char *buf1, *buf2; +struct thread_context *context = (struct thread_context *)d; +struct data *data = context->data; + + buf1 = context->buf1; + buf2 = context->buf2; + + data->cpu_thread_stop[context->id] = false; + +igt_info ("CPU thread cpu id %d start\n" , context->id); + +/* Just to make CPU busy... */ +while (!data->cpu_thread_stop[context->id]) { +memcpy (buf1, buf2,BUF_SIZE ); +memcpy (buf2, buf1,BUF_SIZE ); + } + +igt_info ("CPU thread cpu id %d stop\n" , context->id); + +return NULL ; +} + +static struct intel_buf * +create_buf (struct data *data,int width,int height,uint32_t region) { +struct intel_buf *buf; +uint32_t handle; + + buf =calloc (1 ,sizeof (*buf)); +igt_assert (buf); + +/* +* Legacy code uses 32 bpp after buffer creation. +* Let's do the same due to keep shader intact. +*/ + handle = gem_create_in_memory_regions(data->drm_fd, width * height,region);
tests/i915/i915_pipe_stress.c new file +55
-0+intel_buf_init_using_handle (data->bops, handle, buf, + width/4 , height,32 ,0 , +I915_TILING_NONE ,0 ); + +return buf; +} + +static void fill_gpu (struct gpu_context *context, +unsigned int x,unsigned int y, +unsigned int width,unsigned int height, +uint8_t color) +{ +struct data *data = context->data; +igt_fillfunc_t fill_fn =NULL ; + +pthread_mutex_lock (&data->gpu_fill_lock); + + fill_fn =igt_get_gpgpu_fillfunc (data->devid); + +igt_assert (fill_fn); +igt_assert (context->buf); + +fill_fn (data->drm_fd, context->buf, x, y, width, height, color); + +pthread_mutex_unlock (&data->gpu_fill_lock); +} + +static void *gpu_load (void *ptr) +{ +struct gpu_context *context = (struct gpu_context *)ptr; +struct data *data = context->data; +int pipe = context->pipe; +int rect_divisor; +int rect_width; +int rect_height; +int frame_width; +int frame_height; +drmModeModeInfo *mode; +int frame =0 ; +int x, y; +int rect =0 , total_rects =0 ; +int pixels =0 ; + + mode = data->highest_mode[pipe]; +if (!mode) +return NULL ; + + frame_width = mode->hdisplay; + frame_height = mode->vdisplay; + +igt_info ("GPU thread pipe %d start\n" , pipe); + + context->buf = create_buf(data, data->highest_mode[pipe]->hdisplay, + data->highest_mode[pipe]->vdisplay, +
INTEL_MEMORY_REGION_ID(I915_SYSTEM_MEMORY, 0));tests/i915/i915_pipe_stress.c new file +9
-0+ +while (data->gpu_thread_state[pipe] !=STOPPED ) { + + rect =0 ; +while (rect < context->num_rectangles) { +/* divide at least by 2 and up to 8 */ +int x_rand, y_rand; + + rect_divisor = 1 <<(
hars_petruska_f54_1_random_unsafe_max(3)+ 1);tests/i915/i915_pipe_stress.c new file +5
-0+ + rect_width = frame_width / rect_divisor; + rect_height = frame_height / rect_divisor; + + x_rand =
hars_petruska_f54_1_random_unsafe_max(frame_width - rect_width);tests/i915/i915_pipe_stress.c new file +1
-0+ y_rand =hars_petruska_f54_1_random_unsafe_max(frame_height/2 -
tests/i915/i915_pipe_stress.c new file +24
-0+rect_height); + + context->blt_rect.x = x + x_rand; + context->blt_rect.y = y + y_rand; + +/* Fill randomly sized and positioned rectangles */ +fill_gpu (context, context->blt_rect.x, context->blt_rect.y, + context->blt_rect.x + rect_width, + context->blt_rect.y + rect_height, + context->color); + + context->color +=4 ; + + ++rect; + + pixels += rect_width * rect_height; + } + ++frame; + total_rects += rect; + } + +intel_buf_close (data->bops, context->buf); + + igt_info("GPU thread pipe %d stop. Frames rendered: %d Rectangles: %dPixels filled: %d\n",
tests/i915/i915_pipe_stress.c new file +35
-0+ pipe, frame, total_rects, pixels); + +return NULL ; +} + +static inline uint32_t pipe_select (enum pipe pipe) { +if (pipe >1 ) +return pipe <<DRM_VBLANK_HIGH_CRTC_SHIFT ; +else if (pipe >0 ) +return DRM_VBLANK_SECONDARY ; +else +return 0 ; +} + +static unsigned get_vblank (int fd,enum pipe pipe,unsigned flags) { +union drm_wait_vblank vbl; + +memset (&vbl,0 ,sizeof (vbl)); + vbl.request.type =DRM_VBLANK_RELATIVE |pipe_select (pipe) | flags; +if (drmIoctl (fd,DRM_IOCTL_WAIT_VBLANK , &vbl)) +return 0 ; + +return vbl.reply.sequence; +} + +static int commit_mode (struct data *data,igt_output_t *output, +enum pipe pipe,drmModeModeInfo *mode) { +int ret; + +igt_output_override_mode (output, mode); +igt_output_set_pipe (output, pipe); + + ret = igt_display_try_commit_atomic(&data->display, + DRM_MODE_ATOMIC_TEST_ONLY | +
DRM_MODE_ATOMIC_ALLOW_MODESET, NULL);tests/i915/i915_pipe_stress.c new file +45
-0+if (ret) { +igt_warn ("Could not commit mode: \n" ); +kmstest_dump_mode (mode); +return ret; + } + +igt_display_commit2 (&data->display,COMMIT_ATOMIC ); + +return 0 ; +} + +static void cursor_plane_set_fb (igt_plane_t *plane,struct igt_fb *fb, +int width,int height) +{ +igt_plane_set_fb (plane, fb); +igt_fb_set_size (fb, plane, width, height); } + +static void universal_plane_set_fb (igt_plane_t *plane,struct igt_fb *fb, +int width,int height) +{ +igt_plane_set_fb (plane, fb); +igt_plane_set_position (plane,0 ,0 ); +igt_fb_set_size (fb, plane, width, height); } + +static bool plane_needs_rotation (int drm_fd,uint64_t modifier, +igt_plane_t *plane) { +return !HAS_XELPD (drm_fd) && !IS_DG2 (intel_get_drm_devid (drm_fd)) && + modifier ==I915_FORMAT_MOD_Y_TILED && + plane->type !=DRM_PLANE_TYPE_CURSOR ; } + +static int try_plane_scaling (struct data *data,igt_plane_t *plane, +int width,int height) +{ +int ret; + +if (plane_needs_rotation (data->drm_fd, data->modifier, plane)) { +igt_plane_set_rotation (plane,IGT_ROTATION_90 ); +igt_plane_set_size (plane, height, width); + }else { +igt_plane_set_size (plane, width, height); + } + + ret = igt_display_try_commit_atomic(&data->display, + DRM_MODE_ATOMIC_TEST_ONLY | +
DRM_MODE_ATOMIC_ALLOW_MODESET,tests/i915/i915_pipe_stress.c new file +26
-0+ NULL); + +return ret; +} + +static void cleanup_plane_fbs (struct data *data,enum pipe pipe,int +start,int end) { +int i = start; + +while (i < end) { +igt_remove_fb (data->display.drm_fd, + &data->fb[pipe *MAX_PLANES + i]); + data->fb[pipe *MAX_PLANES + i].fb_id =0 ; + i++; + } +} + +static int pipe_stress (struct data *data,igt_output_t *output, +enum pipe pipe,drmModeModeInfo *mode) { +igt_plane_t *plane; +int i =0 ; +int ret; +bool new_mode = false; +uint64_t cursor_width, cursor_height; + + do_or_die(drmGetCap(data->drm_fd, DRM_CAP_CURSOR_WIDTH,
&cursor_width));tests/i915/i915_pipe_stress.c new file +32
-0+ do_or_die(drmGetCap(data->drm_fd, DRM_CAP_CURSOR_HEIGHT, +&cursor_height)); + + if (!mode) + mode = igt_output_get_mode(output); + + if (data->last_mode[pipe] != mode) { + ret = commit_mode(data, output, pipe, mode); + + if (!ret) + return ret; + + data->last_mode[pipe] = mode; + new_mode = true; + } + + /* + * Looks like we can't have planes on that pipe at all + * or mode hasn't changed + */ + if (!data->num_planes[pipe] || !new_mode) + return 0; + + for_each_plane_on_pipe(&data->display, pipe, plane) { + int plane_width, plane_height; + if (plane->type == DRM_PLANE_TYPE_CURSOR) { + cursor_plane_set_fb(plane, &data->cursor_fb[pipe], + cursor_width, cursor_height); + plane_width = cursor_width; + plane_height = cursor_height; + } else { + universal_plane_set_fb(plane, &data->fb[pipe *
MAX_PLANES+ i],tests/i915/i915_pipe_stress.c new file +6
-0+ mode->hdisplay, mode->vdisplay); + + plane_width = (mode->hdisplay *3 ) /4 ; + plane_height = (mode->vdisplay *3 ) /4 ; + + ret = try_plane_scaling(data, plane, plane_width,
plane_height);tests/i915/i915_pipe_stress.c new file +3
-0+ + while (ret) { + if (plane_width <= cursor_width || plane_height <=
cursor_height)tests/i915/i915_pipe_stress.c new file +6
-0+break ; + + plane_width /=2 ; + plane_height /=2 ; + + ret = try_plane_scaling(data, plane, plane_width,
plane_height);tests/i915/i915_pipe_stress.c new file +6
-0+ +igt_info ("Reduced plane %d size to %dx%d\n" , + plane->index, plane_width, plane_height); + } +if (ret) { + igt_info("Plane %d pipe %d try commit failed,exiting\n", i, pipe);
tests/i915/i915_pipe_stress.c new file +2
-0+ data->num_planes[pipe] = i; + igt_info("Max num planes for pipe %d set to %d\n",pipe, i);
tests/i915/i915_pipe_stress.c new file +2
-0+/* +* We have now determined max amount of full sized planes, we will just
tests/i915/i915_pipe_stress.c new file +1
-0+* keep it in mind and be smarter next time. Also lets remove unneeded fbs.
tests/i915/i915_pipe_stress.c new file +1
-0+* Don't destroy cursor_fb as will take care about it at the end.
tests/i915/i915_pipe_stress.c new file +32
-0+ */ + igt_plane_set_fb(plane, NULL); + cleanup_plane_fbs(data, pipe, i, MAX_PLANES); + } + + if (++i >= data->num_planes[pipe]) + break; + } + } + + igt_display_commit2(&data->display, COMMIT_ATOMIC); + + return 0; +} + +static __u64 get_mode_data_rate(drmModeModeInfo *mode) { + __u64 data_rate = (__u64)mode->hdisplay * (__u64)mode->vdisplay * +(__u64)mode->vrefresh; + + return data_rate; +} + + +static drmModeModeInfo *find_highest_mode(drmModeConnector *connector) +{ + drmModeModeInfo *highest_mode = NULL; + int j; + + for (j = 0; j < connector->count_modes; j++) { + if (!highest_mode) { + highest_mode = &connector->modes[j]; + } else if (connector->modes[j].vdisplay && connector-Quoted 1 line
modes[j].hdisplay) {
tests/i915/i915_pipe_stress.c new file +1
-0+ __u64 highest_data_rate =
get_mode_data_rate(highest_mode);tests/i915/i915_pipe_stress.c new file +1
-0+ __u64 data_rate = get_mode_data_rate(&connector-Quoted 1 line
modes[j]);
tests/i915/i915_pipe_stress.c new file +83
-0+ +if (highest_data_rate < data_rate) + highest_mode = &connector->modes[j]; + } + } + +return highest_mode; +} + +typedef drmModeConnector *drmModeConnectorPtr ; + +static void fill_connector_to_pipe_array (struct data *data, +drmModeRes *mode_resources, +drmModeConnectorPtr *connectors) +{ +int pipe =0 ; +int i; + +memset (connectors,0 ,sizeof (drmModeConnectorPtr) * + mode_resources->count_connectors); + +igt_info ("Got %d connectors\n" , mode_resources->count_connectors); + +for (i =0 ; i < mode_resources->count_connectors; i++) { +drmModeConnector *connector; + + connector =drmModeGetConnector (data->drm_fd, + mode_resources->connectors[i]); + +if (!connector) { +igt_warn ("could not get connector %i: %s\n" , + mode_resources->connectors[i],strerror (errno)); +continue ; + } + +if (connector->connection ==DRM_MODE_CONNECTED ) { +igt_info ("Connector %d connected to pipe %d\n" , i, pipe); + connectors[pipe] = (drmModeConnectorPtr )connector; + ++pipe; +if (pipe ==IGT_MAX_PIPES ) +break ; + }else { +igt_info ("Connector %d connection status %d\n" , + i, connector->connection); +drmModeFreeConnector (connector); + } + } +} + +static void release_connectors (drmModeConnectorPtr *connectors) { +int i; + +for (i =0 ; i <IGT_MAX_PIPES ; i++) { +if (connectors[i]) +drmModeFreeConnector (connectors[i]); + } +free (connectors); +} + +static void stress_pipes (struct data *data,struct timespec *start, +struct timespec *end) +{ +int pipe =0 ; +int ret =0 ; +igt_output_t *output; +igt_crc_t crc, crc2; + +for_each_connected_output (&data->display, output) { + +if (!data->highest_mode[pipe]) +continue ; + +igt_assert_f (data->display.pipes[pipe].n_planes <MAX_PLANES , +"Currently we don't support more than %d planes!" , +MAX_PLANES ); + + ret =pipe_stress (data, output, pipe, + data->highest_mode[pipe]); +if (ret) +break ; + +igt_pipe_crc_start (data->pipe_crc[pipe]); + igt_pipe_crc_get_current(data->display.drm_fd, data-Quoted 1 line
pipe_crc[pipe], &crc);
tests/i915/i915_pipe_stress.c new file +3
-0+get_vblank (data->display.drm_fd, pipe, +DRM_VBLANK_NEXTONMISS ); + igt_pipe_crc_get_current(data->display.drm_fd, data-Quoted 1 line
pipe_crc[pipe], &crc2);
tests/i915/i915_pipe_stress.c new file +101
-0+igt_pipe_crc_stop (data->pipe_crc[pipe]); +igt_assert_crc_equal (&crc, &crc2); + + ++pipe; + } +} + +#define MIN_DURATION_SEC 5.0 +#define MIN_ITERATIONS 20 + +static void stress (struct data *data) +{ +struct timespec start, end; +int iterations =0 ; +bool need_continue; + +igt_gettime (&start); + +do { +igt_gettime (&end); +stress_pipes (data, &start, &end); + iterations++; + need_continue = +igt_time_elapsed (&start, &end) <MIN_DURATION_SEC ; + }while ((need_continue || iterations <MIN_ITERATIONS )); } + +static void start_gpu_threads (struct data *data) { +int i; + + data->bops =buf_ops_create (data->drm_fd); + +pthread_mutex_init (&data->gpu_fill_lock,NULL ); + +for (i =0 ; i <IGT_MAX_PIPES ; i++) { +if (!data->highest_mode[i]) +continue ; + data->gpu_context[i].data = data; + data->gpu_context[i].pipe = i; + data->gpu_context[i].fb_ptr =NULL ; + data->gpu_context[i].blt_rect.x =0 ; + data->gpu_context[i].blt_rect.y =0 ; + data->gpu_context[i].blt_rect.w =0 ; + data->gpu_context[i].blt_rect.h =0 ; + data->gpu_context[i].num_rectangles =N_BLITS_PER_FRAME ; + data->gpu_thread_state[i] =RUNNING ; + data->gpu_context[i].buf =NULL ; +igt_info ("Starting GPU thread %d\n" , i); + +pthread_create (&data->gpu_thread[i],NULL , gpu_load, + (void *)&data->gpu_context[i]); + +igt_info ("GPU thread %d started\n" , i); + } +} + +static void stop_gpu_threads (struct data *data) { +int i; + +for (i =0 ; i <IGT_MAX_PIPES ; i++) { +if (!data->highest_mode[i]) +continue ; +igt_info ("Stopping GPU thread %d\n" , i); + data->gpu_thread_state[i] =STOPPED ; +pthread_join (data->gpu_thread[i],NULL ); +igt_info ("Stopped GPU thread %d\n" , i); + data->gpu_context[i].fb_ptr =NULL ;\ + data->gpu_context[i].buf =NULL ; + } + +buf_ops_destroy (data->bops); +} + +static void start_cpu_threads (struct data *data) { +int i; + +for (i =0 ; i < data->number_of_cores; i++) { + data->cpu_context[i].buf1 =malloc (BUF_SIZE ); + data->cpu_context[i].buf2 =malloc (BUF_SIZE ); + data->cpu_context[i].id = i; + data->cpu_context[i].data = data; +pthread_create (&data->cpu_thread[i],NULL , cpu_load, + (void *)&data->cpu_context[i]); + } +} + +static void stop_cpu_threads (struct data *data) { +int i; + +for (i =0 ; i < data->number_of_cores; i++) { + data->cpu_thread_stop[i] = true; +pthread_join (data->cpu_thread[i],NULL ); +free (data->cpu_context[i].buf1); +free (data->cpu_context[i].buf2); + } +} + +static void create_framebuffers (struct data *data) { +int i, j; +uint64_t cursor_width, cursor_height; + + do_or_die(drmGetCap(data->drm_fd, DRM_CAP_CURSOR_WIDTH,
&cursor_width));tests/i915/i915_pipe_stress.c new file +20
-0+do_or_die (drmGetCap (data->drm_fd,DRM_CAP_CURSOR_HEIGHT , +&cursor_height)); + +for (i =0 ; i <IGT_MAX_PIPES ; i++) { +if (!data->highest_mode[i]) +continue ; + +if (!data->cursor_fb[i].fb_id) { +igt_create_color_fb (data->drm_fd, + cursor_width, cursor_height, + data->format, + data->modifier, +1.0 ,0.0 ,0.0 , + &data->cursor_fb[i]); + } + +for (j =0 ; j < data->num_planes[i]; j++) { +if (!data->fb[i *MAX_PLANES + j].fb_id) { + igt_create_color_pattern_fb(data->drm_fd, + data->highest_mode[i]-Quoted 1 line
hdisplay,
tests/i915/i915_pipe_stress.c new file +1
-0+ data->highest_mode[i]-Quoted 1 line
vdisplay,
tests/i915/i915_pipe_stress.c new file +3
-0+ data->format, + data->modifier, + 0.0, 1.0, 0.0, &data->fb[i*
MAX_PLANES+ j]);tests/i915/i915_pipe_stress.c new file +16
-0+ } + } + } +} + +static void destroy_framebuffers (struct data *data) { +int i, j; + +for (i =0 ; i <IGT_MAX_PIPES ; i++) { + +if (!data->highest_mode[i]) +continue ; + +for (j =0 ; j <MAX_PLANES ; j++) { +if (data->fb[i *MAX_PLANES + j].fb_id) { + igt_plane_set_fb(&data->display.pipes[i].planes[j],NULL);
tests/i915/i915_pipe_stress.c new file +1
-0+ igt_remove_fb(data->display.drm_fd, &data->fb[i *
MAX_PLANES+ j]);tests/i915/i915_pipe_stress.c new file +36
-0+ data->fb[i *MAX_PLANES + j].fb_id =0 ; + } + } +if (data->cursor_fb[i].fb_id) { +igt_remove_fb (data->display.drm_fd, &data->cursor_fb[i]); + data->cursor_fb[i].fb_id =0 ; + } + } +} + +static void prepare_test (struct data *data) { +int i, j; +int num_connectors; +int num_cpus = (int )sysconf (_SC_NPROCESSORS_ONLN); + + data->number_of_cores =min (num_cpus,MAX_CORES ); + +for (i =0 ; i <IGT_MAX_PIPES ; i++) { +for (j =0 ; j <MAX_PLANES ; j++) + data->fb[i *MAX_PLANES + j].fb_id =0 ; + data->cursor_fb[i].fb_id =0 ; + data->num_planes[i] =-1 ; + data->last_mode[i] =NULL ; +sem_init (&data->gpu_thread_pause_ack[i],0 ,0 ); + } + +start_cpu_threads (data); + data->mode_resources =drmModeGetResources (data->drm_fd); +if (!data->mode_resources) { +igt_warn ("drmModeGetResources failed: %s\n" ,strerror (errno)); +return ; + } + + num_connectors = data->mode_resources->count_connectors; + num_connectors =max (num_connectors,IGT_MAX_PIPES ); + memset(data->highest_mode, 0, sizeof(drmModeModeInfo *) *
IGT_MAX_PIPES);tests/i915/i915_pipe_stress.c new file +2
-0+ data->connectors = + (drmModeConnectorPtr *)calloc(sizeof(drmModeConnectorPtr) *
num_connectors, 1);tests/i915/i915_pipe_stress.c new file +13
-0+fill_connector_to_pipe_array (data, data->mode_resources, +data->connectors); + +for (i =0 ; i <IGT_MAX_PIPES ; i++) { +drmModeConnector *connector = (drmModeConnector +*)data->connectors[i]; + +if (!connector) +continue ; + +if (!data->highest_mode[i]) { +if (connector->count_modes) + data->highest_mode[i] =
find_highest_mode(connector);tests/i915/i915_pipe_stress.c new file +8
-0+ } +igt_assert (data->highest_mode[i]); + +if (data->highest_mode[i]) { +igt_info ("Using mode: \n" ); +kmstest_dump_mode (data->highest_mode[i]); + data->pipe_crc[i] = igt_pipe_crc_new(data->drm_fd, i, +
INTEL_PIPE_CRC_SOURCE_AUTO);tests/i915/i915_pipe_stress.c new file +70
-0+ } else + data->pipe_crc[i] = NULL; + + if (data->num_planes[i] == -1) + data->num_planes[i] = data->display.pipes[i].n_planes; + + igt_info("Max number of planes is %d for pipe %d\n", + data->num_planes[i], i); + } + + create_framebuffers(data); + + if (intel_gen(intel_get_drm_devid(data->drm_fd)) > 9) + start_gpu_threads(data); +} + +static void finish_test(struct data *data) { + int i; + + if (intel_gen(intel_get_drm_devid(data->drm_fd)) > 9) + stop_gpu_threads(data); + + /* + * As we change tiling/format we need a new FB + */ + destroy_framebuffers(data); + + for (i = 0; i < IGT_MAX_PIPES; i++) { + data->num_planes[i] = -1; + data->last_mode[i] = NULL; + if (data->pipe_crc[i]) + igt_pipe_crc_free(data->pipe_crc[i]); + } + + stop_cpu_threads(data); + release_connectors(data->connectors); + drmModeFreeResources(data->mode_resources); +} + +struct data data = { + .format = DRM_FORMAT_XRGB8888, + .modifier = DRM_FORMAT_MOD_LINEAR, + .devid = 0, + .bops = NULL +}; + + +igt_main { + uint8_t format_idx = 0, tiling_idx = 0; + + igt_fixture { + data.drm_fd = data.display.drm_fd = +drm_open_driver_master(DRIVER_INTEL); + + kmstest_set_vt_graphics_mode(); + + igt_display_require(&data.display, data.display.drm_fd); + igt_require(data.display.is_atomic); + igt_display_require_output(&data.display); + data.devid = intel_get_drm_devid(data.drm_fd); + igt_require_gem(data.drm_fd); + } + + for (format_idx = 0; format_idx < N_FORMATS; format_idx++) { + for (tiling_idx = 0; tiling_idx < N_TILING_METHODS; tiling_idx++) { + data.format = formats[format_idx]; + data.modifier = tilings[tiling_idx]; + + igt_describe("Start pipe stress test, utilizing cpu and gpu " + "simultaneously with maximum amount ofplanes "
tests/i915/i915_pipe_stress.c new file +6
-0+ "and resolution."); +igt_subtest_f ("stress-%s-%s" , +format_str (format_idx), + tiling_str(tiling_idx)) { + +igt_skip_on(!igt_display_has_format_mod(&data.display,
+
formats[format_idx],
+tilings[tiling_idx]));tests/i915/i915_pipe_stress.c new file +12
-0+ +prepare_test (&data); +stress (&data); +finish_test (&data); + } + } + } + + igt_fixture { +igt_display_fini (&data.display); + } +}tests/meson.build index eb38c17fe8..12e53e0bd2 renamed from tests/meson.build +0
-0100644
tests/meson.build +1
-1@@ -215,6 +215,7 @@ i915_progs = [ 'i915_hangman', 'i915_module_load', 'i915_pciid', + 'i915_pipe_stress', 'i915_pm_backlight', 'i915_pm_lpsp', 'i915_pm_rpm', --2.37.3