tests/kms_atomic: Test cleanup
PATCH v2 1/1 tests/kms_atomic: Test cleanup
Removed unnecessary newlines and comments.
Converted subtests to dynamic subtests.
v2: -As thumb rule, all comments should start from uppercase.
-Corrected multiline comments
--- tests/kms_atomic.c | 394 ++++++++++++++++++++++++--------------------- 1 file changed, 207 insertions(+), 187 deletions(-)
tests/kms_atomic.c +207 -187
@@ -27,10 +27,6 @@* Pekka Paalanen <[email protected]> */ -/* -* Testcase: testing atomic modesetting API -*/ -#include <unistd.h> #include <stdlib.h> #include <stdio.h>
@@ -54,7 +50,7 @@#define DRM_CAP_CURSOR_HEIGHT 0x9#endif -IGT_TEST_DESCRIPTION ("Test atomic modesetting API" ); +IGT_TEST_DESCRIPTION ("Test atomic modesetting API." );enum kms_atomic_check_relax {ATOMIC_RELAX_NONE =0 ,
@@ -72,7 +68,6 @@ static inline int damage_rect_height(struct drm_mode_rect *r)return r->y2 - r->y1; } -static bool plane_filter (enum igt_atomic_plane_properties prop) {if ((1 << prop) &IGT_PLANE_COORD_CHANGED_MASK )
@@ -119,8 +114,10 @@ static void plane_check_current_state(igt_plane_t *plane, const uint64_t *valuesplane_get_current_state (plane, current_values); -/* Legacy cursor ioctls create their own, unknowable, internal -* framebuffer which we can't reason about. */ +/* +* Legacy cursor ioctls create their own, unknowable, internal +* framebuffer which we can't reason about. +*/ if (relax &PLANE_RELAX_FB ) current_values[IGT_PLANE_FB_ID ] = values[IGT_PLANE_FB_ID ];
@@ -145,9 +142,7 @@ static void plane_commit_atomic_err(igt_plane_t *plane,uint64_t current_values[IGT_NUM_PLANE_PROPS ];plane_get_current_state (plane, current_values); -igt_assert_eq (-err,igt_display_try_commit2 (plane->pipe->display,COMMIT_ATOMIC )); -plane_check_current_state (plane, current_values, relax); }
@@ -186,7 +181,6 @@ static void crtc_check_current_state(igt_pipe_t *pipe,if (pipe_values[IGT_CRTC_MODE_ID ]) { mode_prop =drmModeGetPropertyBlob (pipe->display->drm_fd, pipe_values[IGT_CRTC_MODE_ID ]); -igt_assert (mode_prop); igt_assert_eq(mode_prop->length,
@@ -218,15 +212,16 @@ static void crtc_check_current_state(igt_pipe_t *pipe,crtc_get_current_state (pipe, current_pipe_values); -/* Optionally relax the check for MODE_ID: using the legacy SetCrtc +/* +* Optionally relax the check for MODE_ID: using the legacy SetCrtc * API can potentially change MODE_ID even if the mode itself remains -* unchanged. */ +* unchanged. +*/ if (relax &CRTC_RELAX_MODE && mode && current_pipe_values[IGT_CRTC_MODE_ID ] && current_pipe_values[IGT_CRTC_MODE_ID ] != pipe_values[IGT_CRTC_MODE_ID ]) {drmModePropertyBlobRes *cur_prop =drmModeGetPropertyBlob (pipe->display->drm_fd, current_pipe_values[IGT_CRTC_MODE_ID ]); -igt_assert (cur_prop);igt_assert_eq (cur_prop->length,sizeof (struct drm_mode_modeinfo ));
@@ -296,11 +291,11 @@ plane_primary_overlay_mutable_zpos(igt_pipe_t *pipe, igt_output_t *output,drmModeModeInfo *mode =igt_output_get_mode (output);cairo_t *cr; -/* for primary */ +/* For primary plane */ uint32_t w = mode->hdisplay;uint32_t h = mode->vdisplay; -/* for overlay */ +/* For overlay plane */ uint32_t w_overlay = mode->hdisplay /2 ;uint32_t h_overlay = mode->vdisplay /2 ;
@@ -360,7 +355,7 @@ plane_primary_overlay_mutable_zpos(igt_pipe_t *pipe, igt_output_t *output, "which the underlay should be seen\n");plane_commit (primary,COMMIT_ATOMIC ,ATOMIC_RELAX_NONE ); -/* reset it back to initial state */ +/* Reset it back to initial state */ igt_plane_set_prop_value (primary,IGT_PLANE_ZPOS ,0 );igt_plane_set_prop_value (overlay,IGT_PLANE_ZPOS ,1 );plane_commit (primary,COMMIT_ATOMIC ,ATOMIC_RELAX_NONE );
@@ -393,11 +388,11 @@ plane_immutable_zpos(igt_display_t *display, igt_pipe_t *pipe, mode =igt_output_get_mode (output); primary =igt_pipe_get_plane_type (pipe,DRM_PLANE_TYPE_PRIMARY ); -/* for lower plane */ +/* For lower plane */ w_lower = mode->hdisplay; h_lower = mode->vdisplay; -/* for upper plane */ +/* For upper plane */ w_upper =64 ; h_upper =64 ;
@@ -407,7 +402,7 @@ plane_immutable_zpos(igt_display_t *display, igt_pipe_t *pipe,I915_TILING_NONE , 0.0, 0.0, 0.0, &fb_ref); -/* create reference image */ +/* Create reference image */ cr =igt_get_cairo_ctx (display->drm_fd, &fb_ref);igt_assert (cairo_status (cr) ==0 );igt_paint_color (cr,0 ,0 , w_lower, h_lower,0.0 ,0.0 ,1.0 );
@@ -416,11 +411,11 @@ plane_immutable_zpos(igt_display_t *display, igt_pipe_t *pipe,igt_plane_set_fb (primary, &fb_ref);igt_display_commit2 (display,COMMIT_ATOMIC ); -/* create the pipe_crc object for this pipe */ +/* Create the pipe_crc object for this pipe */ pipe_crc =igt_pipe_crc_new (pipe->display->drm_fd, pipe->pipe,INTEL_PIPE_CRC_SOURCE_AUTO ); -/* get reference crc */ +/* Get reference crc */ igt_pipe_crc_start (pipe_crc);igt_pipe_crc_get_current (display->drm_fd, pipe_crc, &ref_crc);
@@ -456,8 +451,8 @@ plane_immutable_zpos(igt_display_t *display, igt_pipe_t *pipe,igt_assert (fb_id_upper);/* -* checking only pairs of plane in increasing fashion -* to avoid combinatorial explosion +* Checking only pairs of plane in increasing fashion +* to avoid combinatorial explosion. */ for (int i =0 ; i < n_planes -1 ; i++) {igt_plane_t *plane_lower, *plane_upper;
@@ -521,23 +516,29 @@ static void plane_overlay(igt_pipe_t *pipe, igt_output_t *output, igt_plane_t *pigt_plane_set_fb (plane, &fb);igt_plane_set_position (plane, w/2 , h/2 ); -/* Enable the overlay plane using the atomic API, and double-check -* state is what we think it should be. */ +/* +* Enable the overlay plane using the atomic API, and double-check +* state is what we think it should be. +*/ plane_commit (plane,COMMIT_ATOMIC ,ATOMIC_RELAX_NONE ); -/* Disable the plane and check the state matches the old. */ +/* Disable the plane and check the state matches the old */ igt_plane_set_fb (plane,NULL );igt_plane_set_position (plane,0 ,0 );plane_commit (plane,COMMIT_ATOMIC ,ATOMIC_RELAX_NONE ); -/* Re-enable the plane through the legacy plane API, and verify through -* atomic. */ +/* +* Re-enable the plane through the legacy plane API, and verify through +* atomic. +*/ igt_plane_set_fb (plane, &fb);igt_plane_set_position (plane, w/2 , h/2 );plane_commit (plane,COMMIT_LEGACY ,ATOMIC_RELAX_NONE ); -/* Restore the plane to its original settings through the legacy plane -* API, and verify through atomic. */ +/* +* Restore the plane to its original settings through the legacy plane +* API, and verify through atomic. +*/ igt_plane_set_fb (plane,NULL );igt_plane_set_position (plane,0 ,0 );plane_commit (plane,COMMIT_LEGACY ,ATOMIC_RELAX_NONE );
@@ -554,8 +555,10 @@ static void plane_primary(igt_pipe_t *pipe, igt_plane_t *plane, struct igt_fb *f fb->drm_format,I915_TILING_NONE , 0.2, 0.2, 0.2, &fb2); -/* Flip the primary plane using the atomic API, and double-check -* state is what we think it should be. */ +/* +* Flip the primary plane using the atomic API, and double-check +* state is what we think it should be. +*/ igt_plane_set_fb (plane, &fb2);crtc_commit (pipe, plane,COMMIT_ATOMIC ,ATOMIC_RELAX_NONE );
@@ -563,25 +566,28 @@ static void plane_primary(igt_pipe_t *pipe, igt_plane_t *plane, struct igt_fb *figt_plane_set_fb (plane, fb);crtc_commit (pipe, plane,COMMIT_ATOMIC ,ATOMIC_RELAX_NONE ); -/* Set the plane through the legacy CRTC/primary-plane API, and -* verify through atomic. */ +/* +* Set the plane through the legacy CRTC/primary-plane API, and +* verify through atomic. +*/ igt_plane_set_fb (plane, &fb2);crtc_commit (pipe, plane,COMMIT_LEGACY ,CRTC_RELAX_MODE ); -/* Restore the plane to its original settings through the legacy CRTC -* API, and verify through atomic. */ +/* +* Restore the plane to its original settings through the legacy CRTC +* API, and verify through atomic. +*/ igt_plane_set_fb (plane, fb);crtc_commit (pipe, plane,COMMIT_LEGACY ,CRTC_RELAX_MODE ); -/* Set the plane through the universal setplane API, and -* verify through atomic. */ +/* +* Set the plane through the universal setplane API, and +* verify through atomic. +*/ igt_plane_set_fb (plane, &fb2);plane_commit (plane,COMMIT_UNIVERSAL ,ATOMIC_RELAX_NONE ); } -/* test to ensure that DRM_MODE_ATOMIC_TEST_ONLY really only touches the -* free-standing state objects and nothing else. -*/ static void test_only (igt_pipe_t *pipe_obj,igt_plane_t *primary,igt_output_t *output)
@@ -606,7 +612,7 @@ static void test_only(igt_pipe_t *pipe_obj,igt_display_commit_atomic (pipe_obj->display,DRM_MODE_ATOMIC_TEST_ONLY |DRM_MODE_ATOMIC_ALLOW_MODESET ,NULL ); -/* check the state, should still be old state */ +/* Check the state, should still be old state */ crtc_check_current_state (pipe_obj, old_crtc_values, old_plane_values,ATOMIC_RELAX_NONE );plane_check_current_state (primary, old_plane_values,ATOMIC_RELAX_NONE );
@@ -625,11 +631,11 @@ static void test_only(igt_pipe_t *pipe_obj,igt_display_commit_atomic (pipe_obj->display,DRM_MODE_ATOMIC_TEST_ONLY |DRM_MODE_ATOMIC_ALLOW_MODESET ,NULL ); -/* for extra stress, go through dpms off/on cycle */ +/* For extra stress, go through dpms off/on cycle */ kmstest_set_connector_dpms (output->display->drm_fd, output->config.connector,DRM_MODE_DPMS_OFF );kmstest_set_connector_dpms (output->display->drm_fd, output->config.connector,DRM_MODE_DPMS_ON ); -/* check the state, should still be old state */ +/* Check the state, should still be old state */ crtc_check_current_state (pipe_obj, old_crtc_values, old_plane_values,ATOMIC_RELAX_NONE );plane_check_current_state (primary, old_plane_values,ATOMIC_RELAX_NONE );
@@ -659,8 +665,10 @@ static void plane_cursor(igt_pipe_t *pipe_obj,DRM_FORMAT_MOD_LINEAR , 0.0, 0.0, 0.0, &fb); -/* Flip the cursor plane using the atomic API, and double-check -* state is what we think it should be. */ +/* +* Flip the cursor plane using the atomic API, and double-check +* state is what we think it should be. +*/ igt_plane_set_fb (cursor, &fb);igt_plane_set_position (cursor, x, y);plane_commit (cursor,COMMIT_ATOMIC ,ATOMIC_RELAX_NONE );
@@ -670,8 +678,10 @@ static void plane_cursor(igt_pipe_t *pipe_obj,igt_plane_set_position (cursor,0 ,0 );plane_commit (cursor,COMMIT_ATOMIC ,ATOMIC_RELAX_NONE ); -/* Re-enable the plane through the legacy cursor API, and verify -* through atomic. */ +/* +* Re-enable the plane through the legacy cursor API, and verify +* through atomic. +*/ igt_plane_set_fb (cursor, &fb);igt_plane_set_position (cursor, x, y);plane_commit (cursor,COMMIT_LEGACY ,PLANE_RELAX_FB );
@@ -680,8 +690,10 @@ static void plane_cursor(igt_pipe_t *pipe_obj,igt_plane_set_position (cursor, x -16 , y -16 );plane_commit (cursor,COMMIT_LEGACY ,PLANE_RELAX_FB ); -/* Restore the plane to its original settings through the legacy cursor -* API, and verify through atomic. */ +/* +* Restore the plane to its original settings through the legacy cursor +* API, and verify through atomic. +*/ igt_plane_set_fb (cursor,NULL );igt_plane_set_position (cursor,0 ,0 );plane_commit (cursor,COMMIT_LEGACY ,ATOMIC_RELAX_NONE );
@@ -694,7 +706,7 @@ static void plane_invalid_params(igt_pipe_t *pipe, {struct igt_fb fb2; -/* Pass a series of invalid object IDs for the FB ID. */ +/* Pass a series of invalid object IDs for the FB ID */ igt_plane_set_prop_value (plane,IGT_PLANE_FB_ID , plane->drm_plane->plane_id);plane_commit_atomic_err (plane,ATOMIC_RELAX_NONE ,EINVAL );
@@ -707,14 +719,14 @@ static void plane_invalid_params(igt_pipe_t *pipe,igt_plane_set_prop_value (plane,IGT_PLANE_FB_ID , pipe->values[IGT_CRTC_MODE_ID ]);plane_commit_atomic_err (plane,ATOMIC_RELAX_NONE ,EINVAL ); -/* Valid, but invalid because CRTC_ID is set. */ +/* Valid, but invalid because CRTC_ID is set */ igt_plane_set_prop_value (plane,IGT_PLANE_FB_ID ,0 );plane_commit_atomic_err (plane,ATOMIC_RELAX_NONE ,EINVAL );igt_plane_set_fb (plane, fb);plane_commit (plane,COMMIT_ATOMIC ,ATOMIC_RELAX_NONE ); -/* Pass a series of invalid object IDs for the CRTC ID. */ +/* Pass a series of invalid object IDs for the CRTC ID */ igt_plane_set_prop_value (plane,IGT_PLANE_CRTC_ID , plane->drm_plane->plane_id);plane_commit_atomic_err (plane,ATOMIC_RELAX_NONE ,EINVAL );
@@ -727,14 +739,14 @@ static void plane_invalid_params(igt_pipe_t *pipe,igt_plane_set_prop_value (plane,IGT_PLANE_CRTC_ID , pipe->values[IGT_CRTC_MODE_ID ]);plane_commit_atomic_err (plane,ATOMIC_RELAX_NONE ,EINVAL ); -/* Valid, but invalid because FB_ID is set. */ +/* Valid, but invalid because FB_ID is set */ igt_plane_set_prop_value (plane,IGT_PLANE_CRTC_ID ,0 );plane_commit_atomic_err (plane,ATOMIC_RELAX_NONE ,EINVAL );igt_plane_set_fb (plane, fb);plane_commit (plane,COMMIT_ATOMIC ,ATOMIC_RELAX_NONE ); -/* Create a framebuffer too small for the plane configuration. */ +/* Create a framebuffer too small for the plane configuration */ igt_create_pattern_fb (pipe->display->drm_fd, fb->width -1 , fb->height -1 , fb->drm_format,I915_TILING_NONE , &fb2);
@@ -742,7 +754,7 @@ static void plane_invalid_params(igt_pipe_t *pipe,igt_plane_set_prop_value (plane,IGT_PLANE_FB_ID , fb2.fb_id);plane_commit_atomic_err (plane,ATOMIC_RELAX_NONE ,ENOSPC ); -/* Restore the primary plane and check the state matches the old. */ +/* Restore the primary plane and check the state matches the old */ igt_plane_set_fb (plane, fb);plane_commit (plane,COMMIT_ATOMIC ,ATOMIC_RELAX_NONE ); }
@@ -757,7 +769,7 @@ static void plane_invalid_params_fence(igt_pipe_t *pipe, timeline =sw_sync_timeline_create (); -/* invalid fence fd */ +/* Invalid fence fd */ igt_plane_set_fence_fd (plane, pipe->display->drm_fd);plane_commit_atomic_err (plane,ATOMIC_RELAX_NONE ,EINVAL );
@@ -784,7 +796,7 @@ static void crtc_invalid_params(igt_pipe_t *pipe,uint64_t old_mode_id = pipe->values[IGT_CRTC_MODE_ID ];drmModeModeInfo *mode =igt_output_get_mode (output); -/* Pass a series of invalid object IDs for the mode ID. */ +/* Pass a series of invalid object IDs for the mode ID */ igt_pipe_obj_set_prop_value (pipe,IGT_CRTC_MODE_ID , plane->drm_plane->plane_id);crtc_commit_atomic_err (pipe, plane,ATOMIC_RELAX_NONE ,EINVAL );
@@ -810,7 +822,7 @@ static void crtc_invalid_params(igt_pipe_t *pipe,DRM_MODE_ATOMIC_TEST_ONLY |DRM_MODE_PAGE_FLIP_EVENT , ATOMIC_RELAX_NONE, EINVAL); -/* Create a blob which is the wrong size to be a valid mode. */ +/* Create a blob which is the wrong size to be a valid mode */ igt_pipe_obj_replace_prop_blob (pipe,IGT_CRTC_MODE_ID , mode,sizeof (*mode) -1 );crtc_commit_atomic_err (pipe, plane,ATOMIC_RELAX_NONE ,EINVAL );
@@ -818,7 +830,7 @@ static void crtc_invalid_params(igt_pipe_t *pipe,crtc_commit_atomic_err (pipe, plane,ATOMIC_RELAX_NONE ,EINVAL ); -/* Restore the CRTC and check the state matches the old. */ +/* Restore the CRTC and check the state matches the old */ igt_pipe_obj_replace_prop_blob (pipe,IGT_CRTC_MODE_ID , mode,sizeof (*mode));crtc_commit (pipe, plane,COMMIT_ATOMIC ,ATOMIC_RELAX_NONE ); }
@@ -837,7 +849,7 @@ static void crtc_invalid_params_fence(igt_pipe_t *pipe, timeline =sw_sync_timeline_create (); -/* invalid out_fence_ptr */ +/* Invalid out_fence_ptr */ map =mmap (NULL ,PAGE_SIZE ,PROT_READ ,MAP_ANONYMOUS |MAP_PRIVATE ,-1 ,0 );igt_assert (map !=MAP_FAILED );
@@ -845,7 +857,7 @@ static void crtc_invalid_params_fence(igt_pipe_t *pipe,crtc_commit_atomic_err (pipe, plane,ATOMIC_RELAX_NONE ,EFAULT );munmap (map,PAGE_SIZE ); -/* invalid out_fence_ptr */ +/* Invalid out_fence_ptr */ map =mmap (NULL ,PAGE_SIZE ,PROT_EXEC ,MAP_ANONYMOUS |MAP_PRIVATE ,-1 ,0 );igt_assert (map !=MAP_FAILED );
@@ -853,7 +865,7 @@ static void crtc_invalid_params_fence(igt_pipe_t *pipe,crtc_commit_atomic_err (pipe, plane,ATOMIC_RELAX_NONE ,EFAULT );munmap (map,PAGE_SIZE ); -/* invalid out_fence_ptr */ +/* Invalid out_fence_ptr */ map =mmap (NULL ,PAGE_SIZE ,PROT_NONE ,MAP_ANONYMOUS |MAP_PRIVATE ,-1 ,0 );igt_assert (map !=MAP_FAILED );
@@ -861,7 +873,7 @@ static void crtc_invalid_params_fence(igt_pipe_t *pipe,crtc_commit_atomic_err (pipe, plane,ATOMIC_RELAX_NONE ,EFAULT );munmap (map,PAGE_SIZE ); -/* valid in fence but not allowed prop on crtc */ +/* Valid in fence but not allowed prop on crtc */ fence_fd =sw_sync_timeline_create_fence (timeline,1 );igt_plane_set_fence_fd (plane, fence_fd);
@@ -870,12 +882,12 @@ static void crtc_invalid_params_fence(igt_pipe_t *pipe,crtc_commit_atomic_flags_err (pipe, plane,0 ,ATOMIC_RELAX_NONE ,EINVAL ); -/* valid out fence ptr and flip event but not allowed prop on crtc */ +/* Valid out fence ptr and flip event but not allowed prop on crtc */ igt_pipe_request_out_fence (pipe);crtc_commit_atomic_flags_err (pipe, plane,DRM_MODE_PAGE_FLIP_EVENT ,ATOMIC_RELAX_NONE ,EINVAL ); -/* valid flip event but not allowed prop on crtc */ +/* Valid flip event but not allowed prop on crtc */ igt_pipe_obj_clear_prop_changed (pipe,IGT_CRTC_OUT_FENCE_PTR );crtc_commit_atomic_flags_err (pipe, plane,DRM_MODE_PAGE_FLIP_EVENT ,ATOMIC_RELAX_NONE ,EINVAL );
@@ -889,20 +901,20 @@ static void crtc_invalid_params_fence(igt_pipe_t *pipe,/* Set invalid prop */ igt_pipe_obj_set_prop_value (pipe,IGT_CRTC_MODE_ID , fb->fb_id); -/* valid out fence but invalid prop on crtc */ +/* Valid out fence but invalid prop on crtc */ igt_pipe_request_out_fence (pipe);crtc_commit_atomic_flags_err (pipe, plane,0 ,ATOMIC_RELAX_NONE ,EINVAL ); -/* valid out fence ptr and flip event but invalid prop on crtc */ +/* Valid out fence ptr and flip event but invalid prop on crtc */ crtc_commit_atomic_flags_err (pipe, plane,DRM_MODE_PAGE_FLIP_EVENT ,ATOMIC_RELAX_NONE ,EINVAL ); -/* valid page flip event but invalid prop on crtc */ +/* Valid page flip event but invalid prop on crtc */ crtc_commit_atomic_flags_err (pipe, plane,DRM_MODE_PAGE_FLIP_EVENT ,ATOMIC_RELAX_NONE ,EINVAL ); -/* successful TEST_ONLY with fences set */ +/* Successful TEST_ONLY with fences set */ igt_pipe_obj_set_prop_value (pipe,IGT_CRTC_MODE_ID , old_mode_id);crtc_commit_atomic_flags_err (pipe, plane,DRM_MODE_ATOMIC_TEST_ONLY ,ATOMIC_RELAX_NONE ,0 );
@@ -910,21 +922,19 @@ static void crtc_invalid_params_fence(igt_pipe_t *pipe,close (fence_fd);close (timeline); -/* reset fences */ +/* Reset fences */ igt_plane_set_fence_fd (plane,-1 );igt_pipe_obj_set_prop_value (pipe,IGT_CRTC_OUT_FENCE_PTR ,0 );igt_pipe_obj_clear_prop_changed (pipe,IGT_CRTC_OUT_FENCE_PTR );crtc_commit (pipe, plane,COMMIT_ATOMIC ,ATOMIC_RELAX_NONE ); -/* out fence ptr but not page flip event */ +/* Out fence ptr but not page flip event */ igt_pipe_request_out_fence (pipe);crtc_commit (pipe, plane,COMMIT_ATOMIC ,ATOMIC_RELAX_NONE );igt_assert (pipe->out_fence_fd !=-1 ); } -/* Abuse the atomic ioctl directly in order to test various invalid conditions, -* which the libdrm wrapper won't allow us to create. */ static void atomic_invalid_params(igt_pipe_t *pipe, igt_plane_t *plane, igt_output_t *output,
@@ -932,15 +942,15 @@ static void atomic_invalid_params(igt_pipe_t *pipe, {igt_display_t *display = pipe->display;struct drm_mode_atomic ioc; -uint32_t obj_raw[16 ];/* array of objects (sized by count_objs) */ -uint32_t num_props_raw[16 ];/* array of num props per obj (ditto) */ -uint32_t props_raw[256 ];/* array of props (sum of count_props) */ -uint64_t values_raw[256 ];/* array of values for properties (ditto) */ +uint32_t obj_raw[16 ];/* Array of objects (sized by count_objs) */ +uint32_t num_props_raw[16 ];/* Array of num props per obj (ditto) */ +uint32_t props_raw[256 ];/* Array of props (sum of count_props) */ +uint64_t values_raw[256 ];/* Array of values for properties (ditto) */ int i;memset (&ioc,0 ,sizeof (ioc)); -/* An empty request should do nothing. */ +/* An empty request should do nothing */ do_ioctl (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc);for (i =0 ; i <ARRAY_SIZE (obj_raw); i++)
@@ -957,44 +967,44 @@ static void atomic_invalid_params(igt_pipe_t *pipe, ioc.props_ptr = (uintptr_t ) props_raw; ioc.prop_values_ptr = (uintptr_t ) values_raw; -/* Valid pointers, but still should copy nothing. */ +/* Valid pointers, but still should copy nothing */ do_ioctl (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc); -/* Valid noop, but with event set should fail. */ +/* Valid noop, but with event set should fail */ ioc.flags =DRM_MODE_PAGE_FLIP_EVENT ;do_ioctl_err (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc,EINVAL ); -/* Nonsense flags. */ +/* Nonsense flags */ ioc.flags =0xdeadbeef ;do_ioctl_err (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc,EINVAL ); ioc.flags =0 ; -/* Safety check that flags is reset properly. */ +/* Safety check that flags is reset properly */ do_ioctl (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc); -/* Reserved/MBZ. */ +/* Reserved/MBZ */ ioc.reserved =1 ;do_ioctl_err (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc,EINVAL ); ioc.reserved =0 ;do_ioctl (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc); -/* Zero is not a valid object ID. */ +/* Zero is not a valid object ID */ ioc.count_objs =ARRAY_SIZE (obj_raw);do_ioctl_err (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc,ENOENT ); -/* Invalid object type (not a thing we can set properties on). */ +/* Invalid object type (not a thing we can set properties on) */ ioc.count_objs =1 ; obj_raw[0 ] = pipe->values[IGT_CRTC_MODE_ID ];do_ioctl_err (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc,ENOENT ); obj_raw[0 ] = fb->fb_id;do_ioctl_err (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc,ENOENT ); -/* Filled object but with no properties; no-op. */ +/* Filled object but with no properties; no-op */ for (i =0 ; i <ARRAY_SIZE (obj_raw); i++) obj_raw[i] = pipe->crtc_id;do_ioctl (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc); -/* Pass in all sorts of things other than the property ID. */ +/* Pass in all sorts of things other than the property ID */ num_props_raw[0 ] =1 ;do_ioctl_err (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc,ENOENT ); props_raw[0 ] = pipe->crtc_id;
@@ -1006,22 +1016,21 @@ static void atomic_invalid_params(igt_pipe_t *pipe, props_raw[0 ] = pipe->values[IGT_CRTC_MODE_ID ];do_ioctl_err (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc,ENOENT ); -/* Valid property, valid value. */ - +/* Valid property, valid value */ for (i =0 ; i <ARRAY_SIZE (props_raw); i++) { props_raw[i] = pipe->props[IGT_CRTC_MODE_ID ]; values_raw[i] = pipe->values[IGT_CRTC_MODE_ID ]; }do_ioctl (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc); -/* Setting the same thing multiple times is OK. */ +/* Setting the same thing multiple times is OK */ for (i =0 ; i <ARRAY_SIZE (obj_raw); i++) num_props_raw[i] =ARRAY_SIZE (props_raw) /ARRAY_SIZE (obj_raw);do_ioctl (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc); ioc.count_objs =ARRAY_SIZE (obj_raw);do_ioctl (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc); -/* Pass a series of outlandish addresses. */ +/* Pass a series of outlandish addresses */ ioc.objs_ptr =0 ;do_ioctl_err (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc,EFAULT );
@@ -1040,7 +1049,7 @@ static void atomic_invalid_params(igt_pipe_t *pipe, ioc.prop_values_ptr = (uintptr_t ) values_raw;do_ioctl (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc); -/* Attempt to overflow and/or trip various boundary conditions. */ +/* Attempt to overflow and/or trip various boundary conditions */ ioc.count_objs =UINT32_MAX /sizeof (uint32_t );do_ioctl_err (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc,ENOENT );
@@ -1079,10 +1088,10 @@ static void atomic_plane_damage(igt_pipe_t *pipe, igt_plane_t *plane, struct igt fb->height/2, 1.0, 1.0, 1.0);igt_put_cairo_ctx (cr_1); -/* -* Flip the primary plane to new color fb using atomic API and check the -* state. -*/ +/* +* Flip the primary plane to new color fb using atomic API and check the +* state. +*/ igt_plane_set_fb (plane, &fb_1);crtc_commit (pipe, plane,COMMIT_ATOMIC ,ATOMIC_RELAX_NONE );
@@ -1138,7 +1147,7 @@ static void atomic_plane_damage(igt_pipe_t *pipe, igt_plane_t *plane, struct igt* NOTE: This will result in no update on plane as damage is outside, so * will see no change on the screen. */ -/* Reszie fb_1 to be bigger than plane */ +/* Resize fb_1 to be bigger than plane */ igt_remove_fb (pipe->display->drm_fd, &fb_1); igt_create_color_fb(pipe->display->drm_fd, fb->width * 2, fb->height, fb->drm_format, I915_TILING_NONE, 0.2, 0.2, 0.2,
@@ -1263,8 +1272,10 @@ static void atomic_plane_damage(igt_pipe_t *pipe, igt_plane_t *plane, struct igtigt_remove_fb (pipe->display->drm_fd, &fb_2); } -static void atomic_setup (igt_display_t *display,enum pipe pipe,igt_output_t *output,igt_plane_t *primary,struct igt_fb *fb) +static void atomic_setup (igt_display_t *display,enum pipe pipe,igt_output_t *output, +igt_plane_t *primary,struct igt_fb *fb) { +igt_display_reset (display);igt_output_set_pipe (output, pipe);igt_plane_set_fb (primary, fb);
@@ -1296,9 +1307,7 @@ igt_main igt_fixture { display.drm_fd =drm_open_driver_master (DRIVER_ANY ); -kmstest_set_vt_graphics_mode (); -igt_display_require (&display, display.drm_fd);igt_require (display.is_atomic);igt_display_require_output (&display);
@@ -1308,133 +1317,144 @@ igt_main pipe_obj = &display.pipes[pipe]; primary =igt_pipe_get_plane_type (pipe_obj,DRM_PLANE_TYPE_PRIMARY ); - mode =igt_output_get_mode (output); -igt_create_pattern_fb (display.drm_fd, mode->hdisplay, mode->vdisplay,plane_get_igt_format (primary),DRM_FORMAT_MOD_LINEAR , &fb); } -igt_describe ("Test for KMS atomic modesetting on overlay plane and ensure coherency between " -"the legacy and atomic interfaces." ); - igt_subtest("plane-overlay-legacy") { -igt_plane_t *overlay = -igt_pipe_get_plane_type (pipe_obj,DRM_PLANE_TYPE_OVERLAY ); - -igt_require (overlay); +igt_describe ("Test for KMS atomic modesetting on overlay plane and ensure " +"coherency between the legacy and atomic interfaces." ); + igt_subtest_with_dynamic("plane-overlay-legacy") { + igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) { +igt_plane_t *overlay = +igt_pipe_get_plane_type (pipe_obj,DRM_PLANE_TYPE_OVERLAY ); +igt_require (overlay); -atomic_setup (&display, pipe, output, primary, &fb); -plane_overlay (pipe_obj, output, overlay); +atomic_setup (&display, pipe, output, primary, &fb); +plane_overlay (pipe_obj, output, overlay); + } } -igt_describe ("Test for KMS atomic modesetting on primary plane and ensure coherency between " -"the legacy and atomic interfaces." ); - igt_subtest("plane-primary-legacy") { -atomic_setup (&display, pipe, output, primary, &fb); - -plane_primary (pipe_obj, primary, &fb); +igt_describe ("Test for KMS atomic modesetting on primary plane and ensure " +"coherency between the legacy and atomic interfaces." ); + igt_subtest_with_dynamic("plane-primary-legacy") { + igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) { +atomic_setup (&display, pipe, output, primary, &fb); +plane_primary (pipe_obj, primary, &fb); + } } -igt_describe ("Verify that the overlay plane can cover the primary one (and " \ -"vice versa) by changing their zpos property." ); - igt_subtest("plane-primary-overlay-mutable-zpos") { -uint32_t format_primary =DRM_FORMAT_ARGB8888 ; -uint32_t format_overlay =DRM_FORMAT_ARGB1555 ; +igt_describe ("Test to verify that the overlay plane can cover the primary " +"plane (and vice versa) by changing their zpos property." ); + igt_subtest_with_dynamic("plane-primary-overlay-mutable-zpos") { + igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) { +uint32_t format_primary =DRM_FORMAT_ARGB8888 ; +uint32_t format_overlay =DRM_FORMAT_ARGB1555 ; -igt_plane_t *overlay = -igt_pipe_get_plane_type (pipe_obj,DRM_PLANE_TYPE_OVERLAY ); -igt_require (overlay); +igt_plane_t *overlay = +igt_pipe_get_plane_type (pipe_obj,DRM_PLANE_TYPE_OVERLAY ); +igt_require (overlay); -igt_require (igt_plane_has_prop (primary,IGT_PLANE_ZPOS )); -igt_require (igt_plane_has_prop (overlay,IGT_PLANE_ZPOS )); +igt_require (igt_plane_has_prop (primary,IGT_PLANE_ZPOS )); +igt_require (igt_plane_has_prop (overlay,IGT_PLANE_ZPOS )); -igt_require (igt_plane_has_format_mod (primary, format_primary,0x0 )); -igt_require (igt_plane_has_format_mod (overlay, format_overlay,0x0 )); +igt_require (igt_plane_has_format_mod (primary, format_primary,0x0 )); +igt_require (igt_plane_has_format_mod (overlay, format_overlay,0x0 )); -igt_output_set_pipe (output, pipe); -plane_primary_overlay_mutable_zpos (pipe_obj, output, primary, overlay, - format_primary, format_overlay); +igt_display_reset (&display); +igt_output_set_pipe (output, pipe); +plane_primary_overlay_mutable_zpos (pipe_obj, output, primary, overlay, + format_primary, format_overlay); + } } -igt_describe ("Verify the reported zpos property of planes by making sure " \ +igt_describe ("Test to verify the reported zpos property of planes by making sure " \"only higher zpos planes cover the lower zpos ones." ); - igt_subtest("plane-immutable-zpos") { -igt_output_set_pipe (output, pipe); -plane_immutable_zpos (&display, pipe_obj, output); + igt_subtest_with_dynamic("plane-immutable-zpos") { + igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) { +igt_display_reset (&display); +igt_output_set_pipe (output, pipe); +plane_immutable_zpos (&display, pipe_obj, output); + } } -igt_describe ("Test to ensure that DRM_MODE_ATOMIC_TEST_ONLY really only touches " +igt_describe ("Test to ensure that DRM_MODE_ATOMIC_TEST_ONLY touches only " "the free-standing state objects and nothing else." ); - igt_subtest("test-only") { -atomic_clear (&display, pipe, primary, output); - -test_only (pipe_obj, primary, output); + igt_subtest_with_dynamic("test-only") { + igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) { +atomic_clear (&display, pipe, primary, output); +test_only (pipe_obj, primary, output); + } } -igt_describe ("Test for KMS atomic modesetting on cursor plane and ensure coherency between " -"legacy and atomic interfaces." ); - igt_subtest("plane-cursor-legacy") { -igt_plane_t *cursor = -igt_pipe_get_plane_type (pipe_obj,DRM_PLANE_TYPE_CURSOR ); - -igt_require (cursor); - -atomic_setup (&display, pipe, output, primary, &fb); -plane_cursor (pipe_obj, output, cursor); +igt_describe ("Test for KMS atomic modesetting on cursor plane and ensure " +"coherency between legacy and atomic interfaces." ); + igt_subtest_with_dynamic("plane-cursor-legacy") { + igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) { +igt_plane_t *cursor = +igt_pipe_get_plane_type (pipe_obj,DRM_PLANE_TYPE_CURSOR ); +igt_require (cursor); +atomic_setup (&display, pipe, output, primary, &fb); +plane_cursor (pipe_obj, output, cursor); + } } -igt_describe ("Test error handling when invalid plane parameters are passed" ); - igt_subtest("plane-invalid-params") { -atomic_setup (&display, pipe, output, primary, &fb); - -plane_invalid_params (pipe_obj, output, primary, &fb); +igt_describe ("Test error handling when invalid plane parameters are passed." ); + igt_subtest_with_dynamic("plane-invalid-params") { + igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) { +atomic_setup (&display, pipe, output, primary, &fb); +plane_invalid_params (pipe_obj, output, primary, &fb); + } } -igt_describe ("Test error handling when invalid plane fence parameters are passed" ); - igt_subtest("plane-invalid-params-fence") { -atomic_setup (&display, pipe, output, primary, &fb); - -plane_invalid_params_fence (pipe_obj, output, primary); +igt_describe ("Test error handling when invalid plane fence parameters are passed." ); + igt_subtest_with_dynamic("plane-invalid-params-fence") { + igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) { +atomic_setup (&display, pipe, output, primary, &fb); +plane_invalid_params_fence (pipe_obj, output, primary); + } } -igt_describe ("Test error handling when invalid crtc parameters are passed" ); - igt_subtest("crtc-invalid-params") { -atomic_setup (&display, pipe, output, primary, &fb); - -crtc_invalid_params (pipe_obj, output, primary, &fb); +igt_describe ("Test error handling when invalid crtc parameters are passed." ); + igt_subtest_with_dynamic("crtc-invalid-params") { + igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) { +atomic_setup (&display, pipe, output, primary, &fb); +crtc_invalid_params (pipe_obj, output, primary, &fb); + } } -igt_describe ("Test error handling when invalid crtc fence parameters are passed" ); - igt_subtest("crtc-invalid-params-fence") { -atomic_setup (&display, pipe, output, primary, &fb); - -crtc_invalid_params_fence (pipe_obj, output, primary, &fb); +igt_describe ("Test error handling when invalid crtc fence parameters are passed." ); + igt_subtest_with_dynamic("crtc-invalid-params-fence") { + igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) { +atomic_setup (&display, pipe, output, primary, &fb); +crtc_invalid_params_fence (pipe_obj, output, primary, &fb); + } } -igt_describe ("Test abuse the atomic ioctl directly in order to test " -"various invalid conditions which the libdrm wrapper won't " +igt_describe ("Test abuses the atomic ioctl directly in order to test " +"various invalid conditions which libdrm wrapper won't " "allow us to create." ); - igt_subtest("atomic-invalid-params") { -atomic_setup (&display, pipe, output, primary, &fb); - -atomic_invalid_params (pipe_obj, primary, output, &fb); + igt_subtest_with_dynamic("atomic-invalid-params") { + igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) { +atomic_setup (&display, pipe, output, primary, &fb); +atomic_invalid_params (pipe_obj, primary, output, &fb); + } } -igt_describe ("Simple test cases to use FB_DAMAGE_CLIPS plane property" ); - igt_subtest("atomic_plane_damage") { -igt_require (igt_plane_has_prop (primary,IGT_PLANE_FB_DAMAGE_CLIPS )); - -atomic_setup (&display, pipe, output, primary, &fb); - -atomic_plane_damage (pipe_obj, primary, &fb); +igt_describe ("Test case to use FB_DAMAGE_CLIPS plane property." ); + igt_subtest_with_dynamic("atomic-plane-damage") { + igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) { +igt_require (igt_plane_has_prop (primary,IGT_PLANE_FB_DAMAGE_CLIPS )); +atomic_setup (&display, pipe, output, primary, &fb); +atomic_plane_damage (pipe_obj, primary, &fb); + } } igt_fixture {atomic_clear (&display, pipe, primary, output);igt_remove_fb (display.drm_fd, &fb); -igt_display_fini (&display); } }
Signature · 1 line
2.25.1
Patchwork
CI[igt-dev] ✓ Fi.CI.BAT: success for tests/kms_atomic: Test cleanup (rev2)
== Series Details ==
== Series Details ==
Series: tests/kms_atomic: Test cleanup (rev2)
URL : https://patchwork.freedesktop.org/series/108297/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_12188 -> IGTPW_7850
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/index.html
Participating hosts (46 -> 45)
------------------------------
Missing (1): fi-bdw-samus
Known issues
------------
Here are the changes found in IGTPW_7850 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor@atomic-transitions-varying-size:
- fi-bsw-kefka: [PASS][1] -> [FAIL][2] ([i915#6298])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/fi-bsw-kefka/igt@kms_cursor_legacy@basic-busy-flip-before-cursor@atomic-transitions-varying-size.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/fi-bsw-kefka/igt@kms_cursor_legacy@basic-busy-flip-before-cursor@atomic-transitions-varying-size.html
#### Possible fixes ####
* igt@i915_pm_rpm@module-reload:
- fi-cfl-8109u: [DMESG-FAIL][3] ([i915#62]) -> [PASS][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/fi-cfl-8109u/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/fi-cfl-8109u/igt@[email protected]
* igt@i915_selftest@live@late_gt_pm:
- fi-cfl-8109u: [DMESG-WARN][5] ([i915#5904]) -> [PASS][6] +30 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/fi-cfl-8109u/igt@i915_selftest@live@late_gt_pm.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/fi-cfl-8109u/igt@i915_selftest@live@late_gt_pm.html
* igt@i915_selftest@live@slpc:
- {bat-rpls-1}: [DMESG-FAIL][7] ([i915#6367]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/bat-rpls-1/igt@i915_selftest@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/bat-rpls-1/igt@i915_selftest@[email protected]
* igt@i915_suspend@basic-s2idle-without-i915:
- fi-cfl-8109u: [DMESG-WARN][9] ([i915#5904] / [i915#62]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/fi-cfl-8109u/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/fi-cfl-8109u/igt@[email protected]
* igt@kms_frontbuffer_tracking@basic:
- fi-cfl-8109u: [DMESG-WARN][11] ([i915#62]) -> [PASS][12] +12 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/fi-cfl-8109u/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/fi-cfl-8109u/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#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#2867]: https://gitlab.freedesktop.org/drm/intel/issues/2867
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#5904]: https://gitlab.freedesktop.org/drm/intel/issues/5904
[i915#62]: https://gitlab.freedesktop.org/drm/intel/issues/62
[i915#6298]: https://gitlab.freedesktop.org/drm/intel/issues/6298
[i915#6367]: https://gitlab.freedesktop.org/drm/intel/issues/6367
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_6665 -> IGTPW_7850
CI-20190529: 20190529
CI_DRM_12188: d3a12118c4b988939d25628396f33f8d83593ec1 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_7850: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/index.html
IGT_6665: aecdb7ff269899b13b127bfa595d091af9781d94 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Testlist changes
----------------
+igt@kms_atomic@atomic-plane-damage
-igt@kms_atomic@atomic_plane_damage
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/index.html
Patchwork
CI[igt-dev] ✗ Fi.CI.IGT: failure for tests/kms_atomic: Test cleanup (rev2)
In reply to Swati Sharma== Series Details ==
== Series Details ==
Series: tests/kms_atomic: Test cleanup (rev2)
URL : https://patchwork.freedesktop.org/series/108297/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_12188_full -> IGTPW_7850_full
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_7850_full absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in IGTPW_7850_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_7850/index.html
Participating hosts (11 -> 6)
------------------------------
Missing (5): pig-kbl-iris shard-tglu pig-glk-j5005 pig-skl-6260u shard-rkl
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_7850_full:
### IGT changes ###
#### Possible regressions ####
* igt@kms_atomic@atomic_plane_damage:
- shard-tglb: [PASS][1] -> [SKIP][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/shard-tglb5/igt@kms_atomic@atomic_plane_damage.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-tglb1/igt@kms_atomic@atomic_plane_damage.html
* igt@prime_nv_api@i915_nv_double_export:
- shard-tglb: NOTRUN -> [SKIP][3] +44 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-tglb1/igt@prime_nv_api@i915_nv_double_export.html
* igt@prime_nv_test@i915_blt_fill_nv_read:
- shard-iclb: NOTRUN -> [SKIP][4] +44 similar issues
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-iclb1/igt@prime_nv_test@i915_blt_fill_nv_read.html
#### Warnings ####
* igt@kms_atomic@atomic_plane_damage:
- shard-iclb: [SKIP][5] ([i915#4765]) -> [SKIP][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/shard-iclb3/igt@kms_atomic@atomic_plane_damage.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-iclb1/igt@kms_atomic@atomic_plane_damage.html
New tests
---------
New tests have been introduced between CI_DRM_12188_full and IGTPW_7850_full:
### New IGT tests (40) ###
* igt@kms_atomic@atomic-invalid-params@pipe-a-dp-1:
- Statuses : 1 pass(s)
- Exec time: [0.08] s
* igt@kms_atomic@atomic-invalid-params@pipe-a-edp-1:
- Statuses : 2 pass(s)
- Exec time: [0.06, 0.10] s
* igt@kms_atomic@atomic-invalid-params@pipe-a-hdmi-a-1:
- Statuses : 1 pass(s)
- Exec time: [0.27] s
* igt@kms_atomic@atomic-invalid-params@pipe-a-vga-1:
- Statuses : 1 pass(s)
- Exec time: [0.08] s
* igt@kms_atomic@crtc-invalid-params-fence@pipe-a-dp-1:
- Statuses : 1 pass(s)
- Exec time: [0.19] s
* igt@kms_atomic@crtc-invalid-params-fence@pipe-a-edp-1:
- Statuses : 2 pass(s)
- Exec time: [0.08, 0.12] s
* igt@kms_atomic@crtc-invalid-params-fence@pipe-a-hdmi-a-1:
- Statuses : 1 pass(s)
- Exec time: [0.36] s
* igt@kms_atomic@crtc-invalid-params-fence@pipe-a-vga-1:
- Statuses : 1 pass(s)
- Exec time: [0.06] s
* igt@kms_atomic@crtc-invalid-params@pipe-a-dp-1:
- Statuses : 1 pass(s)
- Exec time: [0.07] s
* igt@kms_atomic@crtc-invalid-params@pipe-a-edp-1:
- Statuses : 2 pass(s)
- Exec time: [0.04] s
* igt@kms_atomic@crtc-invalid-params@pipe-a-hdmi-a-1:
- Statuses : 1 pass(s)
- Exec time: [0.28] s
* igt@kms_atomic@crtc-invalid-params@pipe-a-vga-1:
- Statuses : 1 pass(s)
- Exec time: [0.03] s
* igt@kms_atomic@plane-cursor-legacy@pipe-a-dp-1:
- Statuses : 1 pass(s)
- Exec time: [0.07] s
* igt@kms_atomic@plane-cursor-legacy@pipe-a-edp-1:
- Statuses : 2 pass(s)
- Exec time: [0.06, 0.08] s
* igt@kms_atomic@plane-cursor-legacy@pipe-a-hdmi-a-1:
- Statuses : 1 pass(s)
- Exec time: [0.24] s
* igt@kms_atomic@plane-cursor-legacy@pipe-a-vga-1:
- Statuses : 1 pass(s)
- Exec time: [0.06] s
* igt@kms_atomic@plane-invalid-params-fence@pipe-a-dp-1:
- Statuses : 1 pass(s)
- Exec time: [0.04] s
* igt@kms_atomic@plane-invalid-params-fence@pipe-a-edp-1:
- Statuses : 2 pass(s)
- Exec time: [0.03, 0.04] s
* igt@kms_atomic@plane-invalid-params-fence@pipe-a-hdmi-a-1:
- Statuses : 1 pass(s)
- Exec time: [0.20] s
* igt@kms_atomic@plane-invalid-params-fence@pipe-a-vga-1:
- Statuses : 1 pass(s)
- Exec time: [0.02] s
* igt@kms_atomic@plane-invalid-params@pipe-a-dp-1:
- Statuses : 1 pass(s)
- Exec time: [0.14] s
* igt@kms_atomic@plane-invalid-params@pipe-a-edp-1:
- Statuses : 2 pass(s)
- Exec time: [0.10, 0.11] s
* igt@kms_atomic@plane-invalid-params@pipe-a-hdmi-a-1:
- Statuses : 1 pass(s)
- Exec time: [0.28] s
* igt@kms_atomic@plane-invalid-params@pipe-a-vga-1:
- Statuses : 1 pass(s)
- Exec time: [0.06] s
* igt@kms_atomic@plane-overlay-legacy@pipe-a-dp-1:
- Statuses : 1 pass(s)
- Exec time: [0.14] s
* igt@kms_atomic@plane-overlay-legacy@pipe-a-edp-1:
- Statuses : 2 pass(s)
- Exec time: [0.10, 0.16] s
* igt@kms_atomic@plane-overlay-legacy@pipe-a-hdmi-a-1:
- Statuses : 1 pass(s)
- Exec time: [0.29] s
* igt@kms_atomic@plane-overlay-legacy@pipe-a-vga-1:
- Statuses : 1 pass(s)
- Exec time: [0.14] s
* igt@kms_atomic@plane-primary-legacy@pipe-a-dp-1:
- Statuses : 1 pass(s)
- Exec time: [0.18] s
* igt@kms_atomic@plane-primary-legacy@pipe-a-edp-1:
- Statuses : 2 pass(s)
- Exec time: [0.15, 0.20] s
* igt@kms_atomic@plane-primary-legacy@pipe-a-hdmi-a-1:
- Statuses : 1 pass(s)
- Exec time: [0.34] s
* igt@kms_atomic@plane-primary-legacy@pipe-a-vga-1:
- Statuses : 1 pass(s)
- Exec time: [0.09] s
* igt@kms_atomic@plane-primary-overlay-mutable-zpos@pipe-a-dp-1:
- Statuses : 1 skip(s)
- Exec time: [0.0] s
* igt@kms_atomic@plane-primary-overlay-mutable-zpos@pipe-a-edp-1:
- Statuses : 2 skip(s)
- Exec time: [0.0] s
* igt@kms_atomic@plane-primary-overlay-mutable-zpos@pipe-a-hdmi-a-1:
- Statuses : 1 skip(s)
- Exec time: [0.0] s
* igt@kms_atomic@plane-primary-overlay-mutable-zpos@pipe-a-vga-1:
- Statuses : 1 skip(s)
- Exec time: [0.0] s
* igt@kms_atomic@test-only@pipe-a-dp-1:
- Statuses : 1 pass(s)
- Exec time: [0.62] s
* igt@kms_atomic@test-only@pipe-a-edp-1:
- Statuses : 2 pass(s)
- Exec time: [2.59, 2.67] s
* igt@kms_atomic@test-only@pipe-a-hdmi-a-1:
- Statuses : 1 pass(s)
- Exec time: [1.01] s
* igt@kms_atomic@test-only@pipe-a-vga-1:
- Statuses : 1 pass(s)
- Exec time: [0.26] s
Known issues
------------
Here are the changes found in IGTPW_7850_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@feature_discovery@display-2x:
- shard-iclb: NOTRUN -> [SKIP][7] ([i915#1839])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-iclb8/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][8] ([i915#1839])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-tglb2/igt@[email protected]
* igt@gem_create@create-massive:
- shard-glk: NOTRUN -> [DMESG-WARN][9] ([i915#4991])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-glk2/igt@[email protected]
* igt@gem_ctx_isolation@preservation-s3@bcs0:
- shard-apl: [PASS][10] -> [DMESG-WARN][11] ([i915#180]) +1 similar issue
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/shard-apl7/igt@gem_ctx_isolation@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-apl8/igt@gem_ctx_isolation@[email protected]
* igt@gem_ctx_persistence@file:
- shard-snb: NOTRUN -> [SKIP][12] ([fdo#109271] / [i915#1099])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-snb2/igt@[email protected]
* igt@gem_exec_fair@basic-flow@rcs0:
- shard-tglb: [PASS][13] -> [FAIL][14] ([i915#2842])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/shard-tglb5/igt@gem_exec_fair@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-tglb8/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@vcs1:
- shard-iclb: NOTRUN -> [FAIL][15] ([i915#2842])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-iclb2/igt@gem_exec_fair@[email protected]
* igt@gem_huc_copy@huc-copy:
- shard-apl: NOTRUN -> [SKIP][16] ([fdo#109271] / [i915#2190])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-apl3/igt@[email protected]
- shard-tglb: [PASS][17] -> [SKIP][18] ([i915#2190])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/shard-tglb2/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-tglb7/igt@[email protected]
* igt@gem_lmem_swapping@parallel-random:
- shard-iclb: NOTRUN -> [SKIP][19] ([i915#4613])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-iclb2/igt@[email protected]
- shard-apl: NOTRUN -> [SKIP][20] ([fdo#109271] / [i915#4613]) +1 similar issue
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-apl3/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][21] ([i915#4613])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-tglb8/igt@[email protected]
- shard-glk: NOTRUN -> [SKIP][22] ([fdo#109271] / [i915#4613])
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-glk7/igt@[email protected]
* igt@gem_pread@exhaustion:
- shard-apl: NOTRUN -> [WARN][23] ([i915#2658])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-apl7/igt@[email protected]
* igt@gem_pxp@reject-modify-context-protection-off-2:
- shard-iclb: NOTRUN -> [SKIP][24] ([i915#4270]) +1 similar issue
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-iclb4/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][25] ([i915#4270]) +1 similar issue
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-tglb8/igt@[email protected]
* igt@gem_userptr_blits@readonly-pwrite-unsync:
- shard-tglb: NOTRUN -> [SKIP][26] ([i915#3297])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-tglb8/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][27] ([i915#3297])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-iclb2/igt@[email protected]
* igt@gem_userptr_blits@vma-merge:
- shard-glk: NOTRUN -> [FAIL][28] ([i915#3318])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-glk2/igt@[email protected]
* igt@gen7_exec_parse@basic-rejected:
- shard-iclb: NOTRUN -> [SKIP][29] ([fdo#109289])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-iclb3/igt@[email protected]
* igt@gen9_exec_parse@allowed-all:
- shard-glk: [PASS][30] -> [DMESG-WARN][31] ([i915#5566] / [i915#716])
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/shard-glk8/igt@[email protected]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-glk7/igt@[email protected]
* igt@gen9_exec_parse@bb-secure:
- shard-tglb: NOTRUN -> [SKIP][32] ([i915#2527] / [i915#2856])
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-tglb7/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][33] ([i915#2856])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-iclb8/igt@[email protected]
* igt@i915_pm_rpm@modeset-non-lpsp-stress-no-wait:
- shard-iclb: NOTRUN -> [SKIP][34] ([fdo#110892])
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-iclb4/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][35] ([fdo#111644] / [i915#1397] / [i915#2411])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-tglb8/igt@[email protected]
* igt@i915_selftest@live@gt_heartbeat:
- shard-apl: [PASS][36] -> [DMESG-FAIL][37] ([i915#5334])
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/shard-apl8/igt@i915_selftest@live@gt_heartbeat.html
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-apl7/igt@i915_selftest@live@gt_heartbeat.html
* igt@kms_big_fb@4-tiled-16bpp-rotate-270:
- shard-iclb: NOTRUN -> [SKIP][38] ([i915#5286])
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-iclb5/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][39] ([i915#5286])
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-tglb8/igt@[email protected]
* igt@kms_big_fb@x-tiled-64bpp-rotate-270:
- shard-iclb: NOTRUN -> [SKIP][40] ([fdo#110725] / [fdo#111614])
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-iclb2/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][41] ([fdo#111614])
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-tglb3/igt@[email protected]
* igt@kms_big_fb@yf-tiled-32bpp-rotate-0:
- shard-tglb: NOTRUN -> [SKIP][42] ([fdo#111615])
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-tglb2/igt@[email protected]
* igt@kms_ccs@pipe-a-crc-primary-rotation-180-y_tiled_gen12_mc_ccs:
- shard-apl: NOTRUN -> [SKIP][43] ([fdo#109271] / [i915#3886]) +3 similar issues
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-apl3/igt@kms_ccs@pipe-a-crc-primary-rotation-180-y_tiled_gen12_mc_ccs.html
* igt@kms_ccs@pipe-a-crc-primary-rotation-180-y_tiled_gen12_rc_ccs_cc:
- shard-glk: NOTRUN -> [SKIP][44] ([fdo#109271] / [i915#3886]) +2 similar issues
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-glk2/igt@kms_ccs@pipe-a-crc-primary-rotation-180-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_ccs@pipe-b-crc-primary-basic-yf_tiled_ccs:
- shard-tglb: NOTRUN -> [SKIP][45] ([fdo#111615] / [i915#3689])
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-tglb5/igt@kms_ccs@pipe-b-crc-primary-basic-yf_tiled_ccs.html
* igt@kms_ccs@pipe-b-crc-primary-rotation-180-y_tiled_ccs:
- shard-tglb: NOTRUN -> [SKIP][46] ([i915#3689]) +5 similar issues
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-tglb3/igt@kms_ccs@pipe-b-crc-primary-rotation-180-y_tiled_ccs.html
* igt@kms_ccs@pipe-c-crc-primary-rotation-180-y_tiled_gen12_mc_ccs:
- shard-iclb: NOTRUN -> [SKIP][47] ([fdo#109278] / [i915#3886]) +1 similar issue
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-iclb8/igt@kms_ccs@pipe-c-crc-primary-rotation-180-y_tiled_gen12_mc_ccs.html
- shard-tglb: NOTRUN -> [SKIP][48] ([i915#3689] / [i915#3886])
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-tglb2/igt@kms_ccs@pipe-c-crc-primary-rotation-180-y_tiled_gen12_mc_ccs.html
* igt@kms_ccs@pipe-d-crc-primary-rotation-180-4_tiled_dg2_rc_ccs:
- shard-iclb: NOTRUN -> [SKIP][49] ([fdo#109278]) +4 similar issues
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-iclb1/igt@kms_ccs@pipe-d-crc-primary-rotation-180-4_tiled_dg2_rc_ccs.html
* igt@kms_chamelium@dp-crc-fast:
- shard-iclb: NOTRUN -> [SKIP][50] ([fdo#109284] / [fdo#111827]) +3 similar issues
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-iclb2/igt@[email protected]
- shard-snb: NOTRUN -> [SKIP][51] ([fdo#109271] / [fdo#111827]) +4 similar issues
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-snb6/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][52] ([fdo#109284] / [fdo#111827]) +3 similar issues
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-tglb3/igt@[email protected]
* igt@kms_chamelium@dp-hpd:
- shard-glk: NOTRUN -> [SKIP][53] ([fdo#109271] / [fdo#111827]) +3 similar issues
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-glk8/igt@[email protected]
* igt@kms_chamelium@hdmi-hpd-storm:
- shard-apl: NOTRUN -> [SKIP][54] ([fdo#109271] / [fdo#111827]) +5 similar issues
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-apl1/igt@[email protected]
* igt@kms_color@ctm-0-25@pipe-b-edp-1:
- shard-iclb: NOTRUN -> [FAIL][55] ([i915#315] / [i915#6946]) +2 similar issues
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-iclb4/igt@kms_color@[email protected]
* igt@kms_color@ctm-0-25@pipe-c-edp-1:
- shard-tglb: NOTRUN -> [FAIL][56] ([i915#315]) +3 similar issues
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-tglb8/igt@kms_color@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor@atomic-transitions-varying-size:
- shard-glk: [PASS][57] -> [FAIL][58] ([i915#2346])
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/shard-glk3/igt@kms_cursor_legacy@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-glk7/igt@kms_cursor_legacy@[email protected]
* igt@kms_flip@2x-busy-flip:
- shard-iclb: NOTRUN -> [SKIP][59] ([fdo#109274]) +1 similar issue
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-iclb5/igt@[email protected]
* igt@kms_flip@2x-nonexisting-fb:
- shard-tglb: NOTRUN -> [SKIP][60] ([fdo#109274] / [fdo#111825] / [i915#3637]) +1 similar issue
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-tglb1/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible@c-hdmi-a1:
- shard-glk: [PASS][61] -> [FAIL][62] ([i915#79])
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/shard-glk5/igt@kms_flip@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-glk6/igt@kms_flip@[email protected]
* igt@kms_flip_scaled_crc@flip-64bpp-4tile-to-32bpp-4tiledg2rcccs-downscaling@pipe-a-valid-mode:
- shard-iclb: NOTRUN -> [SKIP][63] ([i915#2587] / [i915#2672]) +2 similar issues
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-iclb8/igt@kms_flip_scaled_crc@flip-64bpp-4tile-to-32bpp-4tiledg2rcccs-downscaling@pipe-a-valid-mode.html
- shard-tglb: NOTRUN -> [SKIP][64] ([i915#2587] / [i915#2672])
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-tglb2/igt@kms_flip_scaled_crc@flip-64bpp-4tile-to-32bpp-4tiledg2rcccs-downscaling@pipe-a-valid-mode.html
* igt@kms_flip_scaled_crc@flip-64bpp-4tile-to-32bpp-4tiledg2rcccs-upscaling@pipe-a-default-mode:
- shard-iclb: NOTRUN -> [SKIP][65] ([i915#2672]) +2 similar issues
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-iclb2/igt@kms_flip_scaled_crc@flip-64bpp-4tile-to-32bpp-4tiledg2rcccs-upscaling@pipe-a-default-mode.html
* igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytilegen12rcccs-upscaling@pipe-a-valid-mode:
- shard-iclb: NOTRUN -> [SKIP][66] ([i915#2672] / [i915#3555])
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-iclb5/igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytilegen12rcccs-upscaling@pipe-a-valid-mode.html
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-indfb-draw-mmap-cpu:
- shard-tglb: NOTRUN -> [SKIP][67] ([i915#6497]) +1 similar issue
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-tglb1/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-indfb-draw-mmap-cpu.html
* igt@kms_frontbuffer_tracking@psr-2p-primscrn-pri-shrfb-draw-mmap-gtt:
- shard-iclb: NOTRUN -> [SKIP][68] ([fdo#109280]) +11 similar issues
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-iclb2/igt@kms_frontbuffer_tracking@psr-2p-primscrn-pri-shrfb-draw-mmap-gtt.html
* igt@kms_frontbuffer_tracking@psr-2p-scndscrn-pri-shrfb-draw-blt:
- shard-tglb: NOTRUN -> [SKIP][69] ([fdo#109280] / [fdo#111825]) +11 similar issues
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-tglb3/igt@[email protected]
* igt@kms_hdr@static-toggle-dpms:
- shard-iclb: NOTRUN -> [SKIP][70] ([i915#3555])
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-iclb7/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][71] ([i915#3555])
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-tglb2/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-alpha-basic:
- shard-apl: NOTRUN -> [FAIL][72] ([fdo#108145] / [i915#265])
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-apl3/igt@[email protected]
* igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-5@pipe-c-hdmi-a-1:
- shard-glk: NOTRUN -> [SKIP][73] ([fdo#109271]) +83 similar issues
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-glk6/igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-5@pipe-c-hdmi-a-1.html
* igt@kms_psr2_sf@overlay-plane-move-continuous-exceed-sf:
- shard-apl: NOTRUN -> [SKIP][74] ([fdo#109271] / [i915#658])
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-apl8/igt@[email protected]
* igt@kms_psr@psr2_primary_mmap_gtt:
- shard-tglb: NOTRUN -> [FAIL][75] ([i915#132] / [i915#3467])
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-tglb3/igt@kms_psr@psr2_primary_mmap_gtt.html
* igt@kms_psr@psr2_sprite_plane_move:
- shard-iclb: [PASS][76] -> [SKIP][77] ([fdo#109441]) +2 similar issues
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/shard-iclb2/igt@kms_psr@psr2_sprite_plane_move.html
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-iclb5/igt@kms_psr@psr2_sprite_plane_move.html
* igt@kms_psr@psr2_sprite_plane_onoff:
- shard-apl: NOTRUN -> [SKIP][78] ([fdo#109271]) +185 similar issues
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-apl6/igt@kms_psr@psr2_sprite_plane_onoff.html
* igt@kms_psr_stress_test@flip-primary-invalidate-overlay:
- shard-iclb: [PASS][79] -> [SKIP][80] ([i915#5519])
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/shard-iclb2/igt@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-iclb6/igt@[email protected]
* igt@kms_writeback@writeback-check-output:
- shard-apl: NOTRUN -> [SKIP][81] ([fdo#109271] / [i915#2437]) +1 similar issue
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-apl8/igt@[email protected]
* igt@kms_writeback@writeback-fb-id:
- shard-tglb: NOTRUN -> [SKIP][82] ([i915#2437])
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-tglb1/igt@[email protected]
- shard-glk: NOTRUN -> [SKIP][83] ([fdo#109271] / [i915#2437])
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-glk5/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][84] ([i915#2437])
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-iclb8/igt@[email protected]
* igt@perf@mi-rpc:
- shard-tglb: NOTRUN -> [SKIP][85] ([fdo#109289]) +1 similar issue
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-tglb5/igt@[email protected]
* igt@perf@polling-parameterized:
- shard-glk: [PASS][86] -> [FAIL][87] ([i915#5639])
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/shard-glk8/igt@[email protected]
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-glk3/igt@[email protected]
* igt@prime_nv_pcopy@test3_5:
- shard-snb: NOTRUN -> [SKIP][88] ([fdo#109271]) +139 similar issues
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-snb4/igt@prime_nv_pcopy@test3_5.html
* igt@sysfs_clients@sema-10:
- shard-apl: NOTRUN -> [SKIP][89] ([fdo#109271] / [i915#2994])
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-apl3/igt@[email protected]
#### Possible fixes ####
* igt@gem_exec_fair@basic-pace-share@rcs0:
- shard-glk: [FAIL][90] ([i915#2842]) -> [PASS][91] +1 similar issue
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/shard-glk6/igt@gem_exec_fair@[email protected]
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-glk6/igt@gem_exec_fair@[email protected]
* igt@gem_workarounds@suspend-resume:
- shard-apl: [DMESG-WARN][92] ([i915#180]) -> [PASS][93] +2 similar issues
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/shard-apl8/igt@[email protected]
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-apl3/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor@atomic-transitions:
- shard-glk: [FAIL][94] ([i915#2346]) -> [PASS][95]
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/shard-glk3/igt@kms_cursor_legacy@[email protected]
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-glk7/igt@kms_cursor_legacy@[email protected]
* igt@kms_fbcon_fbt@fbc-suspend:
- shard-apl: [INCOMPLETE][96] ([i915#180] / [i915#1982] / [i915#4939]) -> [PASS][97]
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/shard-apl2/igt@[email protected]
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-apl1/igt@[email protected]
* igt@kms_flip@2x-flip-vs-expired-vblank-interruptible@bc-hdmi-a1-hdmi-a2:
- shard-glk: [FAIL][98] ([i915#79]) -> [PASS][99]
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/shard-glk5/igt@kms_flip@[email protected]
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-glk6/igt@kms_flip@[email protected]
* igt@kms_flip@2x-plain-flip-fb-recreate-interruptible@bc-hdmi-a1-hdmi-a2:
- shard-glk: [FAIL][100] ([i915#2122]) -> [PASS][101]
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/shard-glk6/igt@kms_flip@[email protected]
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-glk7/igt@kms_flip@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytileccs-downscaling@pipe-a-default-mode:
- shard-iclb: [SKIP][102] ([i915#3555]) -> [PASS][103]
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/shard-iclb2/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytileccs-downscaling@pipe-a-default-mode.html
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-iclb3/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytileccs-downscaling@pipe-a-default-mode.html
* igt@kms_psr2_su@frontbuffer-xrgb8888:
- shard-iclb: [SKIP][104] ([fdo#109642] / [fdo#111068] / [i915#658]) -> [PASS][105]
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/shard-iclb5/igt@[email protected]
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-iclb2/igt@[email protected]
* igt@kms_psr@psr2_primary_mmap_cpu:
- shard-iclb: [SKIP][106] ([fdo#109441]) -> [PASS][107]
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/shard-iclb8/igt@kms_psr@psr2_primary_mmap_cpu.html
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-iclb2/igt@kms_psr@psr2_primary_mmap_cpu.html
* igt@kms_psr_stress_test@flip-primary-invalidate-overlay:
- shard-tglb: [SKIP][108] ([i915#5519]) -> [PASS][109] +1 similar issue
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/shard-tglb1/igt@[email protected]
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-tglb2/igt@[email protected]
* igt@kms_rotation_crc@sprite-rotation-90-pos-100-0:
- shard-glk: [FAIL][110] -> [PASS][111]
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/shard-glk9/igt@[email protected]
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-glk1/igt@[email protected]
* igt@kms_vblank@pipe-b-ts-continuation-dpms-suspend:
- shard-snb: [INCOMPLETE][112] ([i915#4939]) -> [PASS][113]
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/shard-snb7/igt@[email protected]
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-snb5/igt@[email protected]
#### Warnings ####
* igt@kms_psr2_sf@cursor-plane-move-continuous-exceed-sf:
- shard-iclb: [SKIP][114] ([i915#658]) -> [SKIP][115] ([i915#2920]) +1 similar issue
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/shard-iclb6/igt@[email protected]
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-iclb2/igt@[email protected]
* igt@runner@aborted:
- shard-apl: ([FAIL][116], [FAIL][117], [FAIL][118], [FAIL][119], [FAIL][120], [FAIL][121], [FAIL][122]) ([fdo#109271] / [i915#180] / [i915#3002] / [i915#4312]) -> ([FAIL][123], [FAIL][124], [FAIL][125]) ([i915#180] / [i915#3002] / [i915#4312])
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/shard-apl8/igt@[email protected]
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/shard-apl8/igt@[email protected]
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/shard-apl2/igt@[email protected]
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/shard-apl7/igt@[email protected]
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/shard-apl1/igt@[email protected]
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/shard-apl2/igt@[email protected]
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12188/shard-apl2/igt@[email protected]
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-apl2/igt@[email protected]
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-apl8/igt@[email protected]
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/shard-apl7/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#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[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#109284]: https://bugs.freedesktop.org/show_bug.cgi?id=109284
[fdo#109289]: https://bugs.freedesktop.org/show_bug.cgi?id=109289
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#109642]: https://bugs.freedesktop.org/show_bug.cgi?id=109642
[fdo#110725]: https://bugs.freedesktop.org/show_bug.cgi?id=110725
[fdo#110892]: https://bugs.freedesktop.org/show_bug.cgi?id=110892
[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#111825]: https://bugs.freedesktop.org/show_bug.cgi?id=111825
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1099]: https://gitlab.freedesktop.org/drm/intel/issues/1099
[i915#132]: https://gitlab.freedesktop.org/drm/intel/issues/132
[i915#1397]: https://gitlab.freedesktop.org/drm/intel/issues/1397
[i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180
[i915#1839]: https://gitlab.freedesktop.org/drm/intel/issues/1839
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2122]: https://gitlab.freedesktop.org/drm/intel/issues/2122
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2346]: https://gitlab.freedesktop.org/drm/intel/issues/2346
[i915#2411]: https://gitlab.freedesktop.org/drm/intel/issues/2411
[i915#2437]: https://gitlab.freedesktop.org/drm/intel/issues/2437
[i915#2527]: https://gitlab.freedesktop.org/drm/intel/issues/2527
[i915#2587]: https://gitlab.freedesktop.org/drm/intel/issues/2587
[i915#265]: https://gitlab.freedesktop.org/drm/intel/issues/265
[i915#2658]: https://gitlab.freedesktop.org/drm/intel/issues/2658
[i915#2672]: https://gitlab.freedesktop.org/drm/intel/issues/2672
[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#315]: https://gitlab.freedesktop.org/drm/intel/issues/315
[i915#3297]: https://gitlab.freedesktop.org/drm/intel/issues/3297
[i915#3318]: https://gitlab.freedesktop.org/drm/intel/issues/3318
[i915#3467]: https://gitlab.freedesktop.org/drm/intel/issues/3467
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3637]: https://gitlab.freedesktop.org/drm/intel/issues/3637
[i915#3689]: https://gitlab.freedesktop.org/drm/intel/issues/3689
[i915#3886]: https://gitlab.freedesktop.org/drm/intel/issues/3886
[i915#4270]: https://gitlab.freedesktop.org/drm/intel/issues/4270
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4765]: https://gitlab.freedesktop.org/drm/intel/issues/4765
[i915#4939]: https://gitlab.freedesktop.org/drm/intel/issues/4939
[i915#4991]: https://gitlab.freedesktop.org/drm/intel/issues/4991
[i915#5286]: https://gitlab.freedesktop.org/drm/intel/issues/5286
[i915#5334]: https://gitlab.freedesktop.org/drm/intel/issues/5334
[i915#5519]: https://gitlab.freedesktop.org/drm/intel/issues/5519
[i915#5566]: https://gitlab.freedesktop.org/drm/intel/issues/5566
[i915#5639]: https://gitlab.freedesktop.org/drm/intel/issues/5639
[i915#6497]: https://gitlab.freedesktop.org/drm/intel/issues/6497
[i915#658]: https://gitlab.freedesktop.org/drm/intel/issues/658
[i915#6946]: https://gitlab.freedesktop.org/drm/intel/issues/6946
[i915#716]: https://gitlab.freedesktop.org/drm/intel/issues/716
[i915#79]: https://gitlab.freedesktop.org/drm/intel/issues/79
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_6665 -> IGTPW_7850
* Piglit: piglit_4509 -> None
CI-20190529: 20190529
CI_DRM_12188: d3a12118c4b988939d25628396f33f8d83593ec1 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_7850: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7850/index.html
IGT_6665: aecdb7ff269899b13b127bfa595d091af9781d94 @ 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_7850/index.html
Quoted 676 lines · Swati Sharma
Removed unnecessary newlines and comments.
Converted subtests to dynamic subtests.v2: -As thumb rule, all comments should start from uppercase.
-Corrected multiline commentsSigned-off-by Swati Sharma <[email protected]>--- tests/kms_atomic.c | 394 ++++++++++++++++++++++++--------------------- 1 file changed, 207 insertions(+), 187 deletions(-)tests/kms_atomic.c +111
-108@@ -27,10 +27,6 @@* Pekka Paalanen <[email protected]> */ -/* -* Testcase: testing atomic modesetting API -*/ -#include <unistd.h> #include <stdlib.h> #include <stdio.h> @@ -54,7 +50,7 @@#define DRM_CAP_CURSOR_HEIGHT 0x9#endif -IGT_TEST_DESCRIPTION ("Test atomic modesetting API" ); +IGT_TEST_DESCRIPTION ("Test atomic modesetting API." );enum kms_atomic_check_relax {ATOMIC_RELAX_NONE =0 ,@@ -72,7 +68,6 @@ static inline int damage_rect_height(struct drm_mode_rect *r)return r->y2 - r->y1; } -static bool plane_filter (enum igt_atomic_plane_properties prop) {if ((1 << prop) &IGT_PLANE_COORD_CHANGED_MASK )@@ -119,8 +114,10 @@ static void plane_check_current_state(igt_plane_t *plane, const uint64_t *valuesplane_get_current_state (plane, current_values); -/* Legacy cursor ioctls create their own, unknowable, internal -* framebuffer which we can't reason about. */ +/* +* Legacy cursor ioctls create their own, unknowable, internal +* framebuffer which we can't reason about. +*/ if (relax &PLANE_RELAX_FB ) current_values[IGT_PLANE_FB_ID ] = values[IGT_PLANE_FB_ID ];@@ -145,9 +142,7 @@ static void plane_commit_atomic_err(igt_plane_t *plane,uint64_t current_values[IGT_NUM_PLANE_PROPS ];plane_get_current_state (plane, current_values); -igt_assert_eq (-err,igt_display_try_commit2 (plane->pipe->display,COMMIT_ATOMIC )); -plane_check_current_state (plane, current_values, relax); }@@ -186,7 +181,6 @@ static void crtc_check_current_state(igt_pipe_t *pipe,if (pipe_values[IGT_CRTC_MODE_ID ]) { mode_prop =drmModeGetPropertyBlob (pipe->display->drm_fd, pipe_values[IGT_CRTC_MODE_ID ]); -igt_assert (mode_prop); igt_assert_eq(mode_prop->length,@@ -218,15 +212,16 @@ static void crtc_check_current_state(igt_pipe_t *pipe,crtc_get_current_state (pipe, current_pipe_values); -/* Optionally relax the check for MODE_ID: using the legacy SetCrtc +/* +* Optionally relax the check for MODE_ID: using the legacy SetCrtc * API can potentially change MODE_ID even if the mode itself remains -* unchanged. */ +* unchanged. +*/ if (relax &CRTC_RELAX_MODE && mode && current_pipe_values[IGT_CRTC_MODE_ID ] && current_pipe_values[IGT_CRTC_MODE_ID ] != pipe_values[IGT_CRTC_MODE_ID ]) {drmModePropertyBlobRes *cur_prop =drmModeGetPropertyBlob (pipe->display->drm_fd, current_pipe_values[IGT_CRTC_MODE_ID ]); -igt_assert (cur_prop);igt_assert_eq (cur_prop->length,sizeof (struct drm_mode_modeinfo ));@@ -296,11 +291,11 @@ plane_primary_overlay_mutable_zpos(igt_pipe_t *pipe, igt_output_t *output,drmModeModeInfo *mode =igt_output_get_mode (output);cairo_t *cr; -/* for primary */ +/* For primary plane */ uint32_t w = mode->hdisplay;uint32_t h = mode->vdisplay; -/* for overlay */ +/* For overlay plane */ uint32_t w_overlay = mode->hdisplay /2 ;uint32_t h_overlay = mode->vdisplay /2 ;@@ -360,7 +355,7 @@ plane_primary_overlay_mutable_zpos(igt_pipe_t *pipe, igt_output_t *output, "which the underlay should be seen\n");plane_commit (primary,COMMIT_ATOMIC ,ATOMIC_RELAX_NONE ); -/* reset it back to initial state */ +/* Reset it back to initial state */ igt_plane_set_prop_value (primary,IGT_PLANE_ZPOS ,0 );igt_plane_set_prop_value (overlay,IGT_PLANE_ZPOS ,1 );plane_commit (primary,COMMIT_ATOMIC ,ATOMIC_RELAX_NONE );@@ -393,11 +388,11 @@ plane_immutable_zpos(igt_display_t *display, igt_pipe_t *pipe, mode =igt_output_get_mode (output); primary =igt_pipe_get_plane_type (pipe,DRM_PLANE_TYPE_PRIMARY ); -/* for lower plane */ +/* For lower plane */ w_lower = mode->hdisplay; h_lower = mode->vdisplay; -/* for upper plane */ +/* For upper plane */ w_upper =64 ; h_upper =64 ;@@ -407,7 +402,7 @@ plane_immutable_zpos(igt_display_t *display, igt_pipe_t *pipe,I915_TILING_NONE , 0.0, 0.0, 0.0, &fb_ref); -/* create reference image */ +/* Create reference image */ cr =igt_get_cairo_ctx (display->drm_fd, &fb_ref);igt_assert (cairo_status (cr) ==0 );igt_paint_color (cr,0 ,0 , w_lower, h_lower,0.0 ,0.0 ,1.0 );@@ -416,11 +411,11 @@ plane_immutable_zpos(igt_display_t *display, igt_pipe_t *pipe,igt_plane_set_fb (primary, &fb_ref);igt_display_commit2 (display,COMMIT_ATOMIC ); -/* create the pipe_crc object for this pipe */ +/* Create the pipe_crc object for this pipe */ pipe_crc =igt_pipe_crc_new (pipe->display->drm_fd, pipe->pipe,INTEL_PIPE_CRC_SOURCE_AUTO ); -/* get reference crc */ +/* Get reference crc */ igt_pipe_crc_start (pipe_crc);igt_pipe_crc_get_current (display->drm_fd, pipe_crc, &ref_crc);@@ -456,8 +451,8 @@ plane_immutable_zpos(igt_display_t *display, igt_pipe_t *pipe,igt_assert (fb_id_upper);/* -* checking only pairs of plane in increasing fashion -* to avoid combinatorial explosion +* Checking only pairs of plane in increasing fashion +* to avoid combinatorial explosion. */ for (int i =0 ; i < n_planes -1 ; i++) {igt_plane_t *plane_lower, *plane_upper;@@ -521,23 +516,29 @@ static void plane_overlay(igt_pipe_t *pipe, igt_output_t *output, igt_plane_t *pigt_plane_set_fb (plane, &fb);igt_plane_set_position (plane, w/2 , h/2 ); -/* Enable the overlay plane using the atomic API, and double-check -* state is what we think it should be. */ +/* +* Enable the overlay plane using the atomic API, and double-check +* state is what we think it should be. +*/ plane_commit (plane,COMMIT_ATOMIC ,ATOMIC_RELAX_NONE ); -/* Disable the plane and check the state matches the old. */ +/* Disable the plane and check the state matches the old */ igt_plane_set_fb (plane,NULL );igt_plane_set_position (plane,0 ,0 );plane_commit (plane,COMMIT_ATOMIC ,ATOMIC_RELAX_NONE ); -/* Re-enable the plane through the legacy plane API, and verify through -* atomic. */ +/* +* Re-enable the plane through the legacy plane API, and verify through +* atomic. +*/ igt_plane_set_fb (plane, &fb);igt_plane_set_position (plane, w/2 , h/2 );plane_commit (plane,COMMIT_LEGACY ,ATOMIC_RELAX_NONE ); -/* Restore the plane to its original settings through the legacy plane -* API, and verify through atomic. */ +/* +* Restore the plane to its original settings through the legacy plane +* API, and verify through atomic. +*/ igt_plane_set_fb (plane,NULL );igt_plane_set_position (plane,0 ,0 );plane_commit (plane,COMMIT_LEGACY ,ATOMIC_RELAX_NONE );@@ -554,8 +555,10 @@ static void plane_primary(igt_pipe_t *pipe, igt_plane_t *plane, struct igt_fb *f fb->drm_format,I915_TILING_NONE , 0.2, 0.2, 0.2, &fb2); -/* Flip the primary plane using the atomic API, and double-check -* state is what we think it should be. */ +/* +* Flip the primary plane using the atomic API, and double-check +* state is what we think it should be. +*/ igt_plane_set_fb (plane, &fb2);crtc_commit (pipe, plane,COMMIT_ATOMIC ,ATOMIC_RELAX_NONE );@@ -563,25 +566,28 @@ static void plane_primary(igt_pipe_t *pipe, igt_plane_t *plane, struct igt_fb *figt_plane_set_fb (plane, fb);crtc_commit (pipe, plane,COMMIT_ATOMIC ,ATOMIC_RELAX_NONE ); -/* Set the plane through the legacy CRTC/primary-plane API, and -* verify through atomic. */ +/* +* Set the plane through the legacy CRTC/primary-plane API, and +* verify through atomic. +*/ igt_plane_set_fb (plane, &fb2);crtc_commit (pipe, plane,COMMIT_LEGACY ,CRTC_RELAX_MODE ); -/* Restore the plane to its original settings through the legacy CRTC -* API, and verify through atomic. */ +/* +* Restore the plane to its original settings through the legacy CRTC +* API, and verify through atomic. +*/ igt_plane_set_fb (plane, fb);crtc_commit (pipe, plane,COMMIT_LEGACY ,CRTC_RELAX_MODE ); -/* Set the plane through the universal setplane API, and -* verify through atomic. */ +/* +* Set the plane through the universal setplane API, and +* verify through atomic. +*/ igt_plane_set_fb (plane, &fb2);plane_commit (plane,COMMIT_UNIVERSAL ,ATOMIC_RELAX_NONE ); } -/* test to ensure that DRM_MODE_ATOMIC_TEST_ONLY really only touches the -* free-standing state objects and nothing else. -*/ static void test_only (igt_pipe_t *pipe_obj,igt_plane_t *primary,igt_output_t *output)@@ -606,7 +612,7 @@ static void test_only(igt_pipe_t *pipe_obj,igt_display_commit_atomic (pipe_obj->display,DRM_MODE_ATOMIC_TEST_ONLY |DRM_MODE_ATOMIC_ALLOW_MODESET ,NULL ); -/* check the state, should still be old state */ +/* Check the state, should still be old state */ crtc_check_current_state (pipe_obj, old_crtc_values, old_plane_values,ATOMIC_RELAX_NONE );plane_check_current_state (primary, old_plane_values,ATOMIC_RELAX_NONE );@@ -625,11 +631,11 @@ static void test_only(igt_pipe_t *pipe_obj,igt_display_commit_atomic (pipe_obj->display,DRM_MODE_ATOMIC_TEST_ONLY |DRM_MODE_ATOMIC_ALLOW_MODESET ,NULL ); -/* for extra stress, go through dpms off/on cycle */ +/* For extra stress, go through dpms off/on cycle */ kmstest_set_connector_dpms (output->display->drm_fd, output->config.connector,DRM_MODE_DPMS_OFF );kmstest_set_connector_dpms (output->display->drm_fd, output->config.connector,DRM_MODE_DPMS_ON ); -/* check the state, should still be old state */ +/* Check the state, should still be old state */ crtc_check_current_state (pipe_obj, old_crtc_values, old_plane_values,ATOMIC_RELAX_NONE );plane_check_current_state (primary, old_plane_values,ATOMIC_RELAX_NONE );@@ -659,8 +665,10 @@ static void plane_cursor(igt_pipe_t *pipe_obj,DRM_FORMAT_MOD_LINEAR , 0.0, 0.0, 0.0, &fb); -/* Flip the cursor plane using the atomic API, and double-check -* state is what we think it should be. */ +/* +* Flip the cursor plane using the atomic API, and double-check +* state is what we think it should be. +*/ igt_plane_set_fb (cursor, &fb);igt_plane_set_position (cursor, x, y);plane_commit (cursor,COMMIT_ATOMIC ,ATOMIC_RELAX_NONE );@@ -670,8 +678,10 @@ static void plane_cursor(igt_pipe_t *pipe_obj,igt_plane_set_position (cursor,0 ,0 );plane_commit (cursor,COMMIT_ATOMIC ,ATOMIC_RELAX_NONE ); -/* Re-enable the plane through the legacy cursor API, and verify -* through atomic. */ +/* +* Re-enable the plane through the legacy cursor API, and verify +* through atomic. +*/ igt_plane_set_fb (cursor, &fb);igt_plane_set_position (cursor, x, y);plane_commit (cursor,COMMIT_LEGACY ,PLANE_RELAX_FB );@@ -680,8 +690,10 @@ static void plane_cursor(igt_pipe_t *pipe_obj,igt_plane_set_position (cursor, x -16 , y -16 );plane_commit (cursor,COMMIT_LEGACY ,PLANE_RELAX_FB ); -/* Restore the plane to its original settings through the legacy cursor -* API, and verify through atomic. */ +/* +* Restore the plane to its original settings through the legacy cursor +* API, and verify through atomic. +*/ igt_plane_set_fb (cursor,NULL );igt_plane_set_position (cursor,0 ,0 );plane_commit (cursor,COMMIT_LEGACY ,ATOMIC_RELAX_NONE );@@ -694,7 +706,7 @@ static void plane_invalid_params(igt_pipe_t *pipe, {struct igt_fb fb2; -/* Pass a series of invalid object IDs for the FB ID. */ +/* Pass a series of invalid object IDs for the FB ID */ igt_plane_set_prop_value (plane,IGT_PLANE_FB_ID , plane->drm_plane->plane_id);plane_commit_atomic_err (plane,ATOMIC_RELAX_NONE ,EINVAL );@@ -707,14 +719,14 @@ static void plane_invalid_params(igt_pipe_t *pipe,igt_plane_set_prop_value (plane,IGT_PLANE_FB_ID , pipe->values[IGT_CRTC_MODE_ID ]);plane_commit_atomic_err (plane,ATOMIC_RELAX_NONE ,EINVAL ); -/* Valid, but invalid because CRTC_ID is set. */ +/* Valid, but invalid because CRTC_ID is set */ igt_plane_set_prop_value (plane,IGT_PLANE_FB_ID ,0 );plane_commit_atomic_err (plane,ATOMIC_RELAX_NONE ,EINVAL );igt_plane_set_fb (plane, fb);plane_commit (plane,COMMIT_ATOMIC ,ATOMIC_RELAX_NONE ); -/* Pass a series of invalid object IDs for the CRTC ID. */ +/* Pass a series of invalid object IDs for the CRTC ID */ igt_plane_set_prop_value (plane,IGT_PLANE_CRTC_ID , plane->drm_plane->plane_id);plane_commit_atomic_err (plane,ATOMIC_RELAX_NONE ,EINVAL );@@ -727,14 +739,14 @@ static void plane_invalid_params(igt_pipe_t *pipe,igt_plane_set_prop_value (plane,IGT_PLANE_CRTC_ID , pipe->values[IGT_CRTC_MODE_ID ]);plane_commit_atomic_err (plane,ATOMIC_RELAX_NONE ,EINVAL ); -/* Valid, but invalid because FB_ID is set. */ +/* Valid, but invalid because FB_ID is set */ igt_plane_set_prop_value (plane,IGT_PLANE_CRTC_ID ,0 );plane_commit_atomic_err (plane,ATOMIC_RELAX_NONE ,EINVAL );igt_plane_set_fb (plane, fb);plane_commit (plane,COMMIT_ATOMIC ,ATOMIC_RELAX_NONE ); -/* Create a framebuffer too small for the plane configuration. */ +/* Create a framebuffer too small for the plane configuration */ igt_create_pattern_fb (pipe->display->drm_fd, fb->width -1 , fb->height -1 , fb->drm_format,I915_TILING_NONE , &fb2);@@ -742,7 +754,7 @@ static void plane_invalid_params(igt_pipe_t *pipe,igt_plane_set_prop_value (plane,IGT_PLANE_FB_ID , fb2.fb_id);plane_commit_atomic_err (plane,ATOMIC_RELAX_NONE ,ENOSPC ); -/* Restore the primary plane and check the state matches the old. */ +/* Restore the primary plane and check the state matches the old */ igt_plane_set_fb (plane, fb);plane_commit (plane,COMMIT_ATOMIC ,ATOMIC_RELAX_NONE ); }@@ -757,7 +769,7 @@ static void plane_invalid_params_fence(igt_pipe_t *pipe, timeline =sw_sync_timeline_create (); -/* invalid fence fd */ +/* Invalid fence fd */ igt_plane_set_fence_fd (plane, pipe->display->drm_fd);plane_commit_atomic_err (plane,ATOMIC_RELAX_NONE ,EINVAL );@@ -784,7 +796,7 @@ static void crtc_invalid_params(igt_pipe_t *pipe,uint64_t old_mode_id = pipe->values[IGT_CRTC_MODE_ID ];drmModeModeInfo *mode =igt_output_get_mode (output); -/* Pass a series of invalid object IDs for the mode ID. */ +/* Pass a series of invalid object IDs for the mode ID */ igt_pipe_obj_set_prop_value (pipe,IGT_CRTC_MODE_ID , plane->drm_plane->plane_id);crtc_commit_atomic_err (pipe, plane,ATOMIC_RELAX_NONE ,EINVAL );@@ -810,7 +822,7 @@ static void crtc_invalid_params(igt_pipe_t *pipe,DRM_MODE_ATOMIC_TEST_ONLY |DRM_MODE_PAGE_FLIP_EVENT , ATOMIC_RELAX_NONE, EINVAL); -/* Create a blob which is the wrong size to be a valid mode. */ +/* Create a blob which is the wrong size to be a valid mode */ igt_pipe_obj_replace_prop_blob (pipe,IGT_CRTC_MODE_ID , mode,sizeof (*mode) -1 );crtc_commit_atomic_err (pipe, plane,ATOMIC_RELAX_NONE ,EINVAL );@@ -818,7 +830,7 @@ static void crtc_invalid_params(igt_pipe_t *pipe,crtc_commit_atomic_err (pipe, plane,ATOMIC_RELAX_NONE ,EINVAL ); -/* Restore the CRTC and check the state matches the old. */ +/* Restore the CRTC and check the state matches the old */ igt_pipe_obj_replace_prop_blob (pipe,IGT_CRTC_MODE_ID , mode,sizeof (*mode));crtc_commit (pipe, plane,COMMIT_ATOMIC ,ATOMIC_RELAX_NONE ); }@@ -837,7 +849,7 @@ static void crtc_invalid_params_fence(igt_pipe_t *pipe, timeline =sw_sync_timeline_create (); -/* invalid out_fence_ptr */ +/* Invalid out_fence_ptr */ map =mmap (NULL ,PAGE_SIZE ,PROT_READ ,MAP_ANONYMOUS |MAP_PRIVATE ,-1 ,0 );igt_assert (map !=MAP_FAILED );@@ -845,7 +857,7 @@ static void crtc_invalid_params_fence(igt_pipe_t *pipe,crtc_commit_atomic_err (pipe, plane,ATOMIC_RELAX_NONE ,EFAULT );munmap (map,PAGE_SIZE ); -/* invalid out_fence_ptr */ +/* Invalid out_fence_ptr */ map =mmap (NULL ,PAGE_SIZE ,PROT_EXEC ,MAP_ANONYMOUS |MAP_PRIVATE ,-1 ,0 );igt_assert (map !=MAP_FAILED );@@ -853,7 +865,7 @@ static void crtc_invalid_params_fence(igt_pipe_t *pipe,crtc_commit_atomic_err (pipe, plane,ATOMIC_RELAX_NONE ,EFAULT );munmap (map,PAGE_SIZE ); -/* invalid out_fence_ptr */ +/* Invalid out_fence_ptr */ map =mmap (NULL ,PAGE_SIZE ,PROT_NONE ,MAP_ANONYMOUS |MAP_PRIVATE ,-1 ,0 );igt_assert (map !=MAP_FAILED );@@ -861,7 +873,7 @@ static void crtc_invalid_params_fence(igt_pipe_t *pipe,crtc_commit_atomic_err (pipe, plane,ATOMIC_RELAX_NONE ,EFAULT );munmap (map,PAGE_SIZE ); -/* valid in fence but not allowed prop on crtc */ +/* Valid in fence but not allowed prop on crtc */ fence_fd =sw_sync_timeline_create_fence (timeline,1 );igt_plane_set_fence_fd (plane, fence_fd);@@ -870,12 +882,12 @@ static void crtc_invalid_params_fence(igt_pipe_t *pipe,crtc_commit_atomic_flags_err (pipe, plane,0 ,ATOMIC_RELAX_NONE ,EINVAL ); -/* valid out fence ptr and flip event but not allowed prop on crtc */ +/* Valid out fence ptr and flip event but not allowed prop on crtc */ igt_pipe_request_out_fence (pipe);crtc_commit_atomic_flags_err (pipe, plane,DRM_MODE_PAGE_FLIP_EVENT ,ATOMIC_RELAX_NONE ,EINVAL ); -/* valid flip event but not allowed prop on crtc */ +/* Valid flip event but not allowed prop on crtc */ igt_pipe_obj_clear_prop_changed (pipe,IGT_CRTC_OUT_FENCE_PTR );crtc_commit_atomic_flags_err (pipe, plane,DRM_MODE_PAGE_FLIP_EVENT ,ATOMIC_RELAX_NONE ,EINVAL );@@ -889,20 +901,20 @@ static void crtc_invalid_params_fence(igt_pipe_t *pipe,/* Set invalid prop */ igt_pipe_obj_set_prop_value (pipe,IGT_CRTC_MODE_ID , fb->fb_id); -/* valid out fence but invalid prop on crtc */ +/* Valid out fence but invalid prop on crtc */ igt_pipe_request_out_fence (pipe);crtc_commit_atomic_flags_err (pipe, plane,0 ,ATOMIC_RELAX_NONE ,EINVAL ); -/* valid out fence ptr and flip event but invalid prop on crtc */ +/* Valid out fence ptr and flip event but invalid prop on crtc */ crtc_commit_atomic_flags_err (pipe, plane,DRM_MODE_PAGE_FLIP_EVENT ,ATOMIC_RELAX_NONE ,EINVAL ); -/* valid page flip event but invalid prop on crtc */ +/* Valid page flip event but invalid prop on crtc */ crtc_commit_atomic_flags_err (pipe, plane,DRM_MODE_PAGE_FLIP_EVENT ,ATOMIC_RELAX_NONE ,EINVAL ); -/* successful TEST_ONLY with fences set */ +/* Successful TEST_ONLY with fences set */ igt_pipe_obj_set_prop_value (pipe,IGT_CRTC_MODE_ID , old_mode_id);crtc_commit_atomic_flags_err (pipe, plane,DRM_MODE_ATOMIC_TEST_ONLY ,ATOMIC_RELAX_NONE ,0 );@@ -910,21 +922,19 @@ static void crtc_invalid_params_fence(igt_pipe_t *pipe,close (fence_fd);close (timeline); -/* reset fences */ +/* Reset fences */ igt_plane_set_fence_fd (plane,-1 );igt_pipe_obj_set_prop_value (pipe,IGT_CRTC_OUT_FENCE_PTR ,0 );igt_pipe_obj_clear_prop_changed (pipe,IGT_CRTC_OUT_FENCE_PTR );crtc_commit (pipe, plane,COMMIT_ATOMIC ,ATOMIC_RELAX_NONE ); -/* out fence ptr but not page flip event */ +/* Out fence ptr but not page flip event */ igt_pipe_request_out_fence (pipe);crtc_commit (pipe, plane,COMMIT_ATOMIC ,ATOMIC_RELAX_NONE );igt_assert (pipe->out_fence_fd !=-1 ); } -/* Abuse the atomic ioctl directly in order to test various invalid conditions, -* which the libdrm wrapper won't allow us to create. */ static void atomic_invalid_params(igt_pipe_t *pipe, igt_plane_t *plane, igt_output_t *output,@@ -932,15 +942,15 @@ static void atomic_invalid_params(igt_pipe_t *pipe, {igt_display_t *display = pipe->display;struct drm_mode_atomic ioc; -uint32_t obj_raw[16 ];/* array of objects (sized by count_objs) */ -uint32_t num_props_raw[16 ];/* array of num props per obj (ditto) */ -uint32_t props_raw[256 ];/* array of props (sum of count_props) */ -uint64_t values_raw[256 ];/* array of values for properties (ditto) */ +uint32_t obj_raw[16 ];/* Array of objects (sized by count_objs) */ +uint32_t num_props_raw[16 ];/* Array of num props per obj (ditto) */ +uint32_t props_raw[256 ];/* Array of props (sum of count_props) */ +uint64_t values_raw[256 ];/* Array of values for properties (ditto) */ int i;memset (&ioc,0 ,sizeof (ioc)); -/* An empty request should do nothing. */ +/* An empty request should do nothing */ do_ioctl (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc);for (i =0 ; i <ARRAY_SIZE (obj_raw); i++)@@ -957,44 +967,44 @@ static void atomic_invalid_params(igt_pipe_t *pipe, ioc.props_ptr = (uintptr_t ) props_raw; ioc.prop_values_ptr = (uintptr_t ) values_raw; -/* Valid pointers, but still should copy nothing. */ +/* Valid pointers, but still should copy nothing */ do_ioctl (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc); -/* Valid noop, but with event set should fail. */ +/* Valid noop, but with event set should fail */ ioc.flags =DRM_MODE_PAGE_FLIP_EVENT ;do_ioctl_err (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc,EINVAL ); -/* Nonsense flags. */ +/* Nonsense flags */ ioc.flags =0xdeadbeef ;do_ioctl_err (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc,EINVAL ); ioc.flags =0 ; -/* Safety check that flags is reset properly. */ +/* Safety check that flags is reset properly */ do_ioctl (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc); -/* Reserved/MBZ. */ +/* Reserved/MBZ */ ioc.reserved =1 ;do_ioctl_err (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc,EINVAL ); ioc.reserved =0 ;do_ioctl (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc); -/* Zero is not a valid object ID. */ +/* Zero is not a valid object ID */ ioc.count_objs =ARRAY_SIZE (obj_raw);do_ioctl_err (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc,ENOENT ); -/* Invalid object type (not a thing we can set properties on). */ +/* Invalid object type (not a thing we can set properties on) */ ioc.count_objs =1 ; obj_raw[0 ] = pipe->values[IGT_CRTC_MODE_ID ];do_ioctl_err (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc,ENOENT ); obj_raw[0 ] = fb->fb_id;do_ioctl_err (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc,ENOENT ); -/* Filled object but with no properties; no-op. */ +/* Filled object but with no properties; no-op */ for (i =0 ; i <ARRAY_SIZE (obj_raw); i++) obj_raw[i] = pipe->crtc_id;do_ioctl (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc); -/* Pass in all sorts of things other than the property ID. */ +/* Pass in all sorts of things other than the property ID */ num_props_raw[0 ] =1 ;do_ioctl_err (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc,ENOENT ); props_raw[0 ] = pipe->crtc_id;@@ -1006,22 +1016,21 @@ static void atomic_invalid_params(igt_pipe_t *pipe, props_raw[0 ] = pipe->values[IGT_CRTC_MODE_ID ];do_ioctl_err (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc,ENOENT ); -/* Valid property, valid value. */ - +/* Valid property, valid value */ for (i =0 ; i <ARRAY_SIZE (props_raw); i++) { props_raw[i] = pipe->props[IGT_CRTC_MODE_ID ]; values_raw[i] = pipe->values[IGT_CRTC_MODE_ID ]; }do_ioctl (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc); -/* Setting the same thing multiple times is OK. */ +/* Setting the same thing multiple times is OK */ for (i =0 ; i <ARRAY_SIZE (obj_raw); i++) num_props_raw[i] =ARRAY_SIZE (props_raw) /ARRAY_SIZE (obj_raw);do_ioctl (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc); ioc.count_objs =ARRAY_SIZE (obj_raw);do_ioctl (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc); -/* Pass a series of outlandish addresses. */ +/* Pass a series of outlandish addresses */ ioc.objs_ptr =0 ;do_ioctl_err (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc,EFAULT );@@ -1040,7 +1049,7 @@ static void atomic_invalid_params(igt_pipe_t *pipe, ioc.prop_values_ptr = (uintptr_t ) values_raw;do_ioctl (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc); -/* Attempt to overflow and/or trip various boundary conditions. */ +/* Attempt to overflow and/or trip various boundary conditions */ ioc.count_objs =UINT32_MAX /sizeof (uint32_t );do_ioctl_err (display->drm_fd,DRM_IOCTL_MODE_ATOMIC , &ioc,ENOENT );@@ -1079,10 +1088,10 @@ static void atomic_plane_damage(igt_pipe_t *pipe, igt_plane_t *plane, struct igt fb->height/2, 1.0, 1.0, 1.0);igt_put_cairo_ctx (cr_1); -/* -* Flip the primary plane to new color fb using atomic API and check the -* state. -*/ +/* +* Flip the primary plane to new color fb using atomic API and check the +* state. +*/ igt_plane_set_fb (plane, &fb_1);crtc_commit (pipe, plane,COMMIT_ATOMIC ,ATOMIC_RELAX_NONE );@@ -1138,7 +1147,7 @@ static void atomic_plane_damage(igt_pipe_t *pipe, igt_plane_t *plane, struct igt* NOTE: This will result in no update on plane as damage is outside, so * will see no change on the screen. */ -/* Reszie fb_1 to be bigger than plane */ +/* Resize fb_1 to be bigger than plane */ igt_remove_fb (pipe->display->drm_fd, &fb_1); igt_create_color_fb(pipe->display->drm_fd, fb->width * 2, fb->height, fb->drm_format, I915_TILING_NONE, 0.2, 0.2, 0.2,@@ -1263,8 +1272,10 @@ static void atomic_plane_damage(igt_pipe_t *pipe, igt_plane_t *plane, struct igtigt_remove_fb (pipe->display->drm_fd, &fb_2); } -static void atomic_setup (igt_display_t *display,enum pipe pipe,igt_output_t *output,igt_plane_t *primary,struct igt_fb *fb) +static void atomic_setup (igt_display_t *display,enum pipe pipe,igt_output_t *output, +igt_plane_t *primary,struct igt_fb *fb) { +igt_display_reset (display);igt_output_set_pipe (output, pipe);igt_plane_set_fb (primary, fb);@@ -1296,9 +1307,7 @@ igt_main igt_fixture { display.drm_fd =drm_open_driver_master (DRIVER_ANY ); -kmstest_set_vt_graphics_mode (); -igt_display_require (&display, display.drm_fd);igt_require (display.is_atomic);igt_display_require_output (&display);@@ -1308,133 +1317,144 @@ igt_main pipe_obj = &display.pipes[pipe]; primary =igt_pipe_get_plane_type (pipe_obj,DRM_PLANE_TYPE_PRIMARY ); - mode =igt_output_get_mode (output); -igt_create_pattern_fb (display.drm_fd, mode->hdisplay, mode->vdisplay,plane_get_igt_format (primary),DRM_FORMAT_MOD_LINEAR , &fb); } -igt_describe ("Test for KMS atomic modesetting on overlay plane and ensure coherency between " -"the legacy and atomic interfaces." ); - igt_subtest("plane-overlay-legacy") { - igt_plane_t *overlay =
tests/kms_atomic.c igt_main · line 1333
Quoted 10 lines
tests/kms_atomic.c +7
-3-igt_pipe_get_plane_type (pipe_obj,DRM_PLANE_TYPE_OVERLAY ); - -igt_require (overlay); +igt_describe ("Test for KMS atomic modesetting on overlay plane and ensure " +"coherency between the legacy and atomic interfaces." ); + igt_subtest_with_dynamic("plane-overlay-legacy") { + igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) { +igt_plane_t *overlay = +igt_pipe_get_plane_type (pipe_obj,DRM_PLANE_TYPE_OVERLAY ); +igt_require (overlay);
We need to avoid the skips inside the igt_dynamic(), instead don't trigger the test.
Example:
if (!overlay)
continue;
igt_dynamic();
tests/kms_atomic.c igt_main · line 1336
Quoted 5 lines
tests/kms_atomic.c +2
-2-atomic_setup (&display, pipe, output, primary, &fb); -plane_overlay (pipe_obj, output, overlay); +atomic_setup (&display, pipe, output, primary, &fb); +plane_overlay (pipe_obj, output, overlay);
We need a cleanup after completion of the subtest, say atomic_clear();
These comments are applicable for all the places.
- Bhanu
Quoted 198 lines
tests/kms_atomic.c +87
-74+ } } -igt_describe ("Test for KMS atomic modesetting on primary plane and ensure coherency between " -"the legacy and atomic interfaces." ); - igt_subtest("plane-primary-legacy") { -atomic_setup (&display, pipe, output, primary, &fb); - -plane_primary (pipe_obj, primary, &fb); +igt_describe ("Test for KMS atomic modesetting on primary plane and ensure " +"coherency between the legacy and atomic interfaces." ); + igt_subtest_with_dynamic("plane-primary-legacy") { + igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) { +atomic_setup (&display, pipe, output, primary, &fb); +plane_primary (pipe_obj, primary, &fb); + } } -igt_describe ("Verify that the overlay plane can cover the primary one (and " \ -"vice versa) by changing their zpos property." ); - igt_subtest("plane-primary-overlay-mutable-zpos") { -uint32_t format_primary =DRM_FORMAT_ARGB8888 ; -uint32_t format_overlay =DRM_FORMAT_ARGB1555 ; +igt_describe ("Test to verify that the overlay plane can cover the primary " +"plane (and vice versa) by changing their zpos property." ); + igt_subtest_with_dynamic("plane-primary-overlay-mutable-zpos") { + igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) { +uint32_t format_primary =DRM_FORMAT_ARGB8888 ; +uint32_t format_overlay =DRM_FORMAT_ARGB1555 ; -igt_plane_t *overlay = -igt_pipe_get_plane_type (pipe_obj,DRM_PLANE_TYPE_OVERLAY ); -igt_require (overlay); +igt_plane_t *overlay = +igt_pipe_get_plane_type (pipe_obj,DRM_PLANE_TYPE_OVERLAY ); +igt_require (overlay); -igt_require (igt_plane_has_prop (primary,IGT_PLANE_ZPOS )); -igt_require (igt_plane_has_prop (overlay,IGT_PLANE_ZPOS )); +igt_require (igt_plane_has_prop (primary,IGT_PLANE_ZPOS )); +igt_require (igt_plane_has_prop (overlay,IGT_PLANE_ZPOS )); -igt_require (igt_plane_has_format_mod (primary, format_primary,0x0 )); -igt_require (igt_plane_has_format_mod (overlay, format_overlay,0x0 )); +igt_require (igt_plane_has_format_mod (primary, format_primary,0x0 )); +igt_require (igt_plane_has_format_mod (overlay, format_overlay,0x0 )); -igt_output_set_pipe (output, pipe); -plane_primary_overlay_mutable_zpos (pipe_obj, output, primary, overlay, - format_primary, format_overlay); +igt_display_reset (&display); +igt_output_set_pipe (output, pipe); +plane_primary_overlay_mutable_zpos (pipe_obj, output, primary, overlay, + format_primary, format_overlay); + } } -igt_describe ("Verify the reported zpos property of planes by making sure " \ +igt_describe ("Test to verify the reported zpos property of planes by making sure " \"only higher zpos planes cover the lower zpos ones." ); - igt_subtest("plane-immutable-zpos") { -igt_output_set_pipe (output, pipe); -plane_immutable_zpos (&display, pipe_obj, output); + igt_subtest_with_dynamic("plane-immutable-zpos") { + igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) { +igt_display_reset (&display); +igt_output_set_pipe (output, pipe); +plane_immutable_zpos (&display, pipe_obj, output); + } } -igt_describe ("Test to ensure that DRM_MODE_ATOMIC_TEST_ONLY really only touches " +igt_describe ("Test to ensure that DRM_MODE_ATOMIC_TEST_ONLY touches only " "the free-standing state objects and nothing else." ); - igt_subtest("test-only") { -atomic_clear (&display, pipe, primary, output); - -test_only (pipe_obj, primary, output); + igt_subtest_with_dynamic("test-only") { + igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) { +atomic_clear (&display, pipe, primary, output); +test_only (pipe_obj, primary, output); + } } -igt_describe ("Test for KMS atomic modesetting on cursor plane and ensure coherency between " -"legacy and atomic interfaces." ); - igt_subtest("plane-cursor-legacy") { -igt_plane_t *cursor = -igt_pipe_get_plane_type (pipe_obj,DRM_PLANE_TYPE_CURSOR ); - -igt_require (cursor); - -atomic_setup (&display, pipe, output, primary, &fb); -plane_cursor (pipe_obj, output, cursor); +igt_describe ("Test for KMS atomic modesetting on cursor plane and ensure " +"coherency between legacy and atomic interfaces." ); + igt_subtest_with_dynamic("plane-cursor-legacy") { + igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) { +igt_plane_t *cursor = +igt_pipe_get_plane_type (pipe_obj,DRM_PLANE_TYPE_CURSOR ); +igt_require (cursor); +atomic_setup (&display, pipe, output, primary, &fb); +plane_cursor (pipe_obj, output, cursor); + } } -igt_describe ("Test error handling when invalid plane parameters are passed" ); - igt_subtest("plane-invalid-params") { -atomic_setup (&display, pipe, output, primary, &fb); - -plane_invalid_params (pipe_obj, output, primary, &fb); +igt_describe ("Test error handling when invalid plane parameters are passed." ); + igt_subtest_with_dynamic("plane-invalid-params") { + igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) { +atomic_setup (&display, pipe, output, primary, &fb); +plane_invalid_params (pipe_obj, output, primary, &fb); + } } -igt_describe ("Test error handling when invalid plane fence parameters are passed" ); - igt_subtest("plane-invalid-params-fence") { -atomic_setup (&display, pipe, output, primary, &fb); - -plane_invalid_params_fence (pipe_obj, output, primary); +igt_describe ("Test error handling when invalid plane fence parameters are passed." ); + igt_subtest_with_dynamic("plane-invalid-params-fence") { + igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) { +atomic_setup (&display, pipe, output, primary, &fb); +plane_invalid_params_fence (pipe_obj, output, primary); + } } -igt_describe ("Test error handling when invalid crtc parameters are passed" ); - igt_subtest("crtc-invalid-params") { -atomic_setup (&display, pipe, output, primary, &fb); - -crtc_invalid_params (pipe_obj, output, primary, &fb); +igt_describe ("Test error handling when invalid crtc parameters are passed." ); + igt_subtest_with_dynamic("crtc-invalid-params") { + igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) { +atomic_setup (&display, pipe, output, primary, &fb); +crtc_invalid_params (pipe_obj, output, primary, &fb); + } } -igt_describe ("Test error handling when invalid crtc fence parameters are passed" ); - igt_subtest("crtc-invalid-params-fence") { -atomic_setup (&display, pipe, output, primary, &fb); - -crtc_invalid_params_fence (pipe_obj, output, primary, &fb); +igt_describe ("Test error handling when invalid crtc fence parameters are passed." ); + igt_subtest_with_dynamic("crtc-invalid-params-fence") { + igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) { +atomic_setup (&display, pipe, output, primary, &fb); +crtc_invalid_params_fence (pipe_obj, output, primary, &fb); + } } -igt_describe ("Test abuse the atomic ioctl directly in order to test " -"various invalid conditions which the libdrm wrapper won't " +igt_describe ("Test abuses the atomic ioctl directly in order to test " +"various invalid conditions which libdrm wrapper won't " "allow us to create." ); - igt_subtest("atomic-invalid-params") { -atomic_setup (&display, pipe, output, primary, &fb); - -atomic_invalid_params (pipe_obj, primary, output, &fb); + igt_subtest_with_dynamic("atomic-invalid-params") { + igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) { +atomic_setup (&display, pipe, output, primary, &fb); +atomic_invalid_params (pipe_obj, primary, output, &fb); + } } -igt_describe ("Simple test cases to use FB_DAMAGE_CLIPS plane property" ); - igt_subtest("atomic_plane_damage") { -igt_require (igt_plane_has_prop (primary,IGT_PLANE_FB_DAMAGE_CLIPS )); - -atomic_setup (&display, pipe, output, primary, &fb); - -atomic_plane_damage (pipe_obj, primary, &fb); +igt_describe ("Test case to use FB_DAMAGE_CLIPS plane property." ); + igt_subtest_with_dynamic("atomic-plane-damage") { + igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) { +igt_require (igt_plane_has_prop (primary,IGT_PLANE_FB_DAMAGE_CLIPS )); +atomic_setup (&display, pipe, output, primary, &fb); +atomic_plane_damage (pipe_obj, primary, &fb); + } } igt_fixture {atomic_clear (&display, pipe, primary, output);igt_remove_fb (display.drm_fd, &fb); -igt_display_fini (&display); } }