* [igt-dev] [PATCH] tests/amdgpu/amd_checksum_region: Add test for checksum_region
@ 2023-06-29 15:10 Alan Liu
2023-06-29 15:36 ` [igt-dev] ✗ GitLab.Pipeline: warning for " Patchwork
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Alan Liu @ 2023-06-29 15:10 UTC (permalink / raw)
To: igt-dev; +Cc: Alan Liu, Lili.Gong
Introduce IGT of checksum_region. Checksum_region allows userspace to
set a region on display and get the CRC data accordingly via CRTC
properties: CHECKSUM_REGION and CEHCKSUM_CRC.
This IGT provides tests to validate if region can be set correctly and
also the corresponding CRC data is as expect.
Signed-off-by: Alan Liu <HaoPing.Liu@amd.com>
---
include/drm-uapi/drm_mode.h | 42 ++
lib/igt_kms.c | 2 +
lib/igt_kms.h | 2 +
tests/amdgpu/amd_checksum_region.c | 648 +++++++++++++++++++++++++++++
tests/amdgpu/meson.build | 1 +
5 files changed, 695 insertions(+)
create mode 100644 tests/amdgpu/amd_checksum_region.c
diff --git a/include/drm-uapi/drm_mode.h b/include/drm-uapi/drm_mode.h
index e4a2570a6..dec073921 100644
--- a/include/drm-uapi/drm_mode.h
+++ b/include/drm-uapi/drm_mode.h
@@ -1209,6 +1209,48 @@ struct drm_mode_rect {
__s32 y2;
};
+/**
+ * struct drm_checksum_region - The enablement and region of checksum_region
+ * @x_start: Horizontal starting coordinate of the region.
+ * @y_start: Vertical starting coordinate of the region.
+ * @x_end: Horizontal ending coordinate of the region.
+ * @y_end: Vertical ending coordinate of the region.
+ * @checksum_region_enable: To enable or disable checksum_region.
+ *
+ * Userspace uses this structure to configure the region and enablement for
+ * checksum_region. Userspace should not submit a region out of the displayable
+ * region because there is nothing to display and need protection.
+ */
+struct drm_checksum_region {
+ __u32 x_start;
+ __u32 y_start;
+ __u32 x_end;
+ __u32 y_end;
+ __u8 checksum_region_enable;
+ __u8 pad[7];
+};
+
+/**
+ * struct drm_checksum_crc - The CRC value of the corresponding checksum region.
+ * @crc_r: CRC value of red color.
+ * @crc_g: CRC value of green color.
+ * @crc_b: CRC value of blue color.
+ * @frame_count: a referenced frame count to indicate which frame the CRC values
+ * are generated at.
+ *
+ * Userspace uses this structure to retrieve the CRC values of the current
+ * checksum region. @frame_count will be reset once a new region is updated or
+ * it reaches a maximum value. Currently these CRC values are designed to
+ * be validated with pre-saved CRC values, so userspace doesn't need to concern
+ * about the algorithm used to compute the CRC.
+ */
+struct drm_checksum_crc {
+ __u32 crc_r;
+ __u32 crc_g;
+ __u32 crc_b;
+ __u32 frame_count;
+};
+
#if defined(__cplusplus)
}
#endif
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index f2b0eed57..804a71e9d 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -627,6 +627,8 @@ const char * const igt_crtc_prop_names[IGT_NUM_CRTC_PROPS] = {
[IGT_CRTC_OUT_FENCE_PTR] = "OUT_FENCE_PTR",
[IGT_CRTC_VRR_ENABLED] = "VRR_ENABLED",
[IGT_CRTC_SCALING_FILTER] = "SCALING_FILTER",
+ [IGT_CRTC_CHECKSUM_REGION] = "CHECKSUM_REGION",
+ [IGT_CRTC_CHECKSUM_CRC] = "CHECKSUM_CRC",
};
const char * const igt_connector_prop_names[IGT_NUM_CONNECTOR_PROPS] = {
diff --git a/lib/igt_kms.h b/lib/igt_kms.h
index 1b6988c17..80a5817e4 100644
--- a/lib/igt_kms.h
+++ b/lib/igt_kms.h
@@ -139,6 +139,8 @@ enum igt_atomic_crtc_properties {
IGT_CRTC_OUT_FENCE_PTR,
IGT_CRTC_VRR_ENABLED,
IGT_CRTC_SCALING_FILTER,
+ IGT_CRTC_CHECKSUM_REGION,
+ IGT_CRTC_CHECKSUM_CRC,
IGT_NUM_CRTC_PROPS
};
diff --git a/tests/amdgpu/amd_checksum_region.c b/tests/amdgpu/amd_checksum_region.c
new file mode 100644
index 000000000..8b97eb8e3
--- /dev/null
+++ b/tests/amdgpu/amd_checksum_region.c
@@ -0,0 +1,648 @@
+/*
+ * Copyright 2019 Advanced Micro Devices, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
+ * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ * OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+#include "igt.h"
+#include "igt_sysfs.h"
+#include <fcntl.h>
+#include <string.h>
+#include <stdio.h>
+#include <unistd.h>
+#include <stdlib.h>
+
+typedef uint64_t u64;
+typedef uint32_t u32;
+typedef uint8_t u8;
+
+#define CRTC_SET_NUM 2
+int crtc_set_num = 0;
+
+enum roi_type {
+ ROI_TYPE_FIRST, // 100, 100, 130, 130
+ ROI_TYPE_BOTTOM, // 1060, 100, 1090, 130
+ ROI_TYPE_RIGHT, // 100, 130, 130, 160
+ ROI_TYPE_RIGHT_BOTTOM, // 1060, 130, 1090, 160
+ ROI_TYPE_NUM,
+};
+
+typedef struct drm_checksum_region roi_t;
+typedef struct drm_checksum_crc crc_t;
+
+struct data_basic {
+ struct {
+ igt_fb_t fb;
+ roi_t roi[ROI_TYPE_NUM];
+ } input;
+ struct {
+ roi_t *roi[ROI_TYPE_NUM];
+ crc_t *crc[ROI_TYPE_NUM];
+ crc_t *crc_hold[ROI_TYPE_NUM];
+ } output;
+};
+
+struct data_switching {
+ struct {
+ igt_fb_t fb[2];
+ roi_t roi_window;
+ roi_t roi_full_screen;
+ } input;
+ struct {
+ crc_t *crc_window[2];
+ crc_t *crc_full_screen[2];
+ } output;
+};
+
+struct data_suspend {
+ struct {
+ igt_fb_t fb;
+ roi_t roi;
+ } input;
+ struct {
+ crc_t *crc[2];
+ } output;
+};
+
+typedef struct __set {
+ u8 crtc_id;
+ int connector_type;
+ igt_plane_t *primary;
+ igt_output_t *output;
+ igt_pipe_t *pipe;
+ igt_pipe_crc_t *pipe_crc;
+ enum pipe pipe_id;
+ void *data;
+} set_t;
+
+/* global configuration */
+typedef struct conf {
+ struct igt_fb pattern_fb_info;
+ int fd;
+ igt_display_t display;
+ bool use_virtual_connector;
+ set_t set[CRTC_SET_NUM];
+} conf_t;
+
+/* Use mode 1920x1080 */
+static drmModeModeInfo _mode = {
+ 148500,
+ 1920, 2008, 2052, 2200, 0,
+ 1080, 1084, 1089, 1125, 0,
+ 60, DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC| DRM_MODE_FLAG_PIC_AR_16_9,
+ 0x40, "1920x1080"
+};
+
+static void wait_vblanks(int fd, int n_vblanks)
+{
+ drmVBlank vblank;
+
+ if (!n_vblanks)
+ return;
+
+ vblank.request.type = DRM_VBLANK_RELATIVE;
+ vblank.request.sequence = n_vblanks;
+ vblank.request.signal = 0;
+ drmWaitVBlank(fd, &vblank);
+}
+
+static void draw_color_roi(igt_fb_t *fb, roi_t *roi,
+ int r, int g, int b)
+{
+ cairo_t *cr = igt_get_cairo_ctx(fb->fd, fb);
+
+ igt_paint_color(cr,
+ roi->x_start, roi->y_start, roi->x_end, roi->y_end,
+ r, g, b);
+ igt_put_cairo_ctx(cr);
+}
+
+/* color pattern for DP */
+static void draw_color_pattern_DP(igt_fb_t *fb)
+{
+ cairo_t *cr = igt_get_cairo_ctx(fb->fd, fb);
+
+ igt_paint_color(cr, 0, 0, fb->width/2, fb->height, 100, 255, 0);
+ igt_paint_color(cr, fb->width/2, 0, fb->width, fb->height, 0, 133, 204);
+ igt_put_cairo_ctx(cr);
+}
+
+/* color pattern for HDMI */
+static void draw_color_pattern_HDMI(igt_fb_t *fb)
+{
+ cairo_t *cr = igt_get_cairo_ctx(fb->fd, fb);
+
+ igt_paint_color(cr, 0, 0, fb->width/2, fb->height, 0, 200, 223);
+ igt_paint_color(cr, fb->width/2, 0, fb->width, fb->height, 223, 200, 1);
+ igt_put_cairo_ctx(cr);
+}
+
+/* prepare conf and set */
+static void test_init(conf_t *conf)
+{
+ igt_display_t *display = &conf->display;
+ set_t *set;
+ drmModeConnector *conn;
+ drmModeModeInfo *mode = &_mode;
+
+ igt_info("board has %d outputs\n", display->n_outputs);
+
+ for (int i=0; i < display->n_outputs; i++) {
+ conn = display->outputs[i].config.connector;
+ if (conn->connection != DRM_MODE_CONNECTED)
+ continue;
+
+ if (conn->connector_type != DRM_MODE_CONNECTOR_HDMIA &&
+ conn->connector_type != DRM_MODE_CONNECTOR_DisplayPort)
+ continue;
+
+ set = &conf->set[crtc_set_num];
+ set->connector_type = conn->connector_type;
+ set->crtc_id = i;
+ set->pipe_id = i;
+ set->pipe = &display->pipes[i];
+ set->primary = igt_pipe_get_plane_type(set->pipe, DRM_PLANE_TYPE_PRIMARY);
+ set->output = &display->outputs[i];
+
+ igt_output_set_pipe(set->output, set->pipe_id);
+ igt_output_override_mode(set->output, mode);
+
+ crtc_set_num += 1;
+ if (crtc_set_num == CRTC_SET_NUM)
+ break;
+ }
+
+ igt_assert(crtc_set_num > 0);
+ igt_info("crtc_set_num = %d\n", crtc_set_num);
+}
+
+static void print_crc(crc_t *crc)
+{
+ igt_info("crc: 0x%04x 0x%04x 0x%04x, %04d\n",
+ crc->crc_r, crc->crc_g, crc->crc_b, crc->frame_count);
+}
+
+static bool roi_compare(roi_t *a, roi_t *b)
+{
+ return (a->x_start == b->x_start &&
+ a->y_start == b->y_start &&
+ a->x_end == b->x_end &&
+ a->y_end == b->y_end);
+}
+
+static bool crc_compare(crc_t *a, crc_t *b)
+{
+ return (a->crc_r == b->crc_r &&
+ a->crc_g == b->crc_g &&
+ a->crc_b == b->crc_b);
+}
+
+static void
+disable_checksum_region_from_property(conf_t *conf)
+{
+ set_t *set;
+ roi_t roi = {0};
+
+ for (int i = 0; i < crtc_set_num; i++) {
+ set = &conf->set[i];
+ igt_require(igt_pipe_obj_has_prop(set->pipe, IGT_CRTC_CHECKSUM_REGION));
+ igt_pipe_obj_replace_prop_blob(set->pipe, IGT_CRTC_CHECKSUM_REGION, &roi, sizeof(roi));
+ }
+}
+
+static void
+set_roi_from_property(igt_pipe_t *pipe, roi_t *roi)
+{
+ igt_require(igt_pipe_obj_has_prop(pipe, IGT_CRTC_CHECKSUM_REGION));
+ igt_pipe_obj_replace_prop_blob(pipe, IGT_CRTC_CHECKSUM_REGION, roi, sizeof(roi_t));
+}
+
+static void
+set_roi(conf_t *conf, set_t *set, roi_t *roi)
+{
+ set_roi_from_property(set->pipe, roi);
+ igt_info("Set roi, x_start:%d, y_start:%d, x_end:%d, y_end: %d",
+ roi->x_start, roi->y_start, roi->x_end, roi->y_end);
+ igt_info("\t");
+}
+
+static roi_t *
+get_roi_from_property(int fd, igt_pipe_t *pipe)
+{
+ drmModePropertyBlobPtr blob;
+ u64 blob_id = igt_pipe_obj_get_prop(pipe, IGT_CRTC_CHECKSUM_REGION);
+
+ igt_require(igt_pipe_obj_has_prop(pipe, IGT_CRTC_CHECKSUM_REGION));
+
+ blob = drmModeGetPropertyBlob(fd, blob_id);
+ if (!blob)
+ return NULL;
+
+ return (roi_t *) blob->data;
+}
+
+static void
+get_roi(conf_t *conf, set_t *set, roi_t **roi)
+{
+ *roi = get_roi_from_property(conf->display.drm_fd, set->pipe);
+ if (*roi) {
+ igt_info("get ROI from properties: ");
+ igt_info("0x%04x 0x%04x 0x%04x, 0x%04x, %d",
+ (*roi)->x_start, (*roi)->y_start,
+ (*roi)->x_end, (*roi)->y_end,
+ (*roi)->checksum_region_enable);
+ }
+ igt_info("\t");
+}
+
+static crc_t *
+get_crc_from_property(int fd, igt_pipe_t *pipe)
+{
+ drmModePropertyBlobPtr blob;
+ u64 blob_id = igt_pipe_obj_get_prop(pipe, IGT_CRTC_CHECKSUM_CRC);
+
+ igt_require(igt_pipe_obj_has_prop(pipe, IGT_CRTC_CHECKSUM_CRC));
+
+ blob = drmModeGetPropertyBlob(fd, blob_id);
+ if (!blob)
+ return NULL;
+
+ return (crc_t *) blob->data;
+}
+
+static void
+get_crc(conf_t *conf, set_t *set, crc_t **crc)
+{
+ *crc = get_crc_from_property(conf->display.drm_fd, set->pipe);
+ if (*crc) {
+ igt_info("get CRC from properties: ");
+ igt_info("0x%04x 0x%04x 0x%04x, %04d",
+ (*crc)->crc_r, (*crc)->crc_g, (*crc)->crc_b, (*crc)->frame_count);
+ }
+ igt_info("\t");
+}
+
+static void
+test_basic_init(conf_t *conf, struct data_basic *_data)
+{
+ drmModeModeInfo *mode = &_mode;
+ set_t *set;
+ struct data_basic *data;
+
+ for (int i=0; i < crtc_set_num; i++) {
+ set = &conf->set[i];
+ data = &_data[i];
+
+ /* init data */
+ data->input.roi[ROI_TYPE_FIRST].x_start = 100;
+ data->input.roi[ROI_TYPE_FIRST].y_start = 100;
+ data->input.roi[ROI_TYPE_FIRST].x_end = 130;
+ data->input.roi[ROI_TYPE_FIRST].y_end = 130;
+ data->input.roi[ROI_TYPE_FIRST].checksum_region_enable= 1;
+
+ data->input.roi[ROI_TYPE_RIGHT].x_start = 1060;
+ data->input.roi[ROI_TYPE_RIGHT].y_start = 100;
+ data->input.roi[ROI_TYPE_RIGHT].x_end = 1100;
+ data->input.roi[ROI_TYPE_RIGHT].y_end = 130;
+ data->input.roi[ROI_TYPE_RIGHT].checksum_region_enable= 1;
+
+ data->input.roi[ROI_TYPE_BOTTOM].x_start = 100;
+ data->input.roi[ROI_TYPE_BOTTOM].y_start = 130;
+ data->input.roi[ROI_TYPE_BOTTOM].x_end = 130;
+ data->input.roi[ROI_TYPE_BOTTOM].y_end = 160;
+ data->input.roi[ROI_TYPE_BOTTOM].checksum_region_enable= 1;
+
+ data->input.roi[ROI_TYPE_RIGHT_BOTTOM].x_start = 1060;
+ data->input.roi[ROI_TYPE_RIGHT_BOTTOM].y_start = 130;
+ data->input.roi[ROI_TYPE_RIGHT_BOTTOM].x_end = 1100;
+ data->input.roi[ROI_TYPE_RIGHT_BOTTOM].y_end = 160;
+ data->input.roi[ROI_TYPE_RIGHT_BOTTOM].checksum_region_enable= 1;
+
+ /* paint fb */
+ igt_create_fb(conf->fd, mode->hdisplay, mode->vdisplay, DRM_FORMAT_XRGB8888, 0, &data->input.fb);
+
+ if (set->connector_type == DRM_MODE_CONNECTOR_DisplayPort)
+ draw_color_pattern_DP(&data->input.fb);
+ else
+ draw_color_pattern_HDMI(&data->input.fb);
+
+ igt_plane_set_fb(set->primary, &data->input.fb);
+ }
+}
+
+static void test_basic_validate(struct data_basic *_data)
+{
+ struct data_basic *data;
+ roi_t *roi, *roi_return;
+ crc_t **crc, **crc_hold;
+
+ igt_info("************\n");
+ for (int i = 0; i < crtc_set_num; i++) {
+ data = &_data[i];
+
+ for (int type = 0; type < ROI_TYPE_NUM; type++) {
+ roi = &data->input.roi[type];
+ roi_return = data->output.roi[type];
+ if (!roi_compare(roi, roi_return))
+ igt_assert_f(false, "ROI values are not as expected\n");
+ }
+
+ crc = data->output.crc;
+ if (!crc_compare(crc[ROI_TYPE_FIRST], crc[ROI_TYPE_BOTTOM]) &&
+ !crc_compare(crc[ROI_TYPE_RIGHT], crc[ROI_TYPE_RIGHT_BOTTOM]))
+ igt_assert_f(false, "CRC values are not as expected\n");
+
+ if (crc[ROI_TYPE_FIRST]->frame_count != 2 ||
+ crc[ROI_TYPE_BOTTOM]->frame_count != 2 ||
+ crc[ROI_TYPE_RIGHT]->frame_count != 2 ||
+ crc[ROI_TYPE_RIGHT_BOTTOM]->frame_count != 2)
+ igt_assert_f(false, "CRC frame_count are not as expected\n");
+
+ crc_hold = data->output.crc_hold;
+ if (!crc_compare(crc[ROI_TYPE_FIRST], crc_hold[ROI_TYPE_FIRST]) &&
+ !crc_compare(crc[ROI_TYPE_BOTTOM], crc_hold[ROI_TYPE_BOTTOM]) &&
+ !crc_compare(crc[ROI_TYPE_RIGHT], crc_hold[ROI_TYPE_RIGHT]) &&
+ !crc_compare(crc[ROI_TYPE_RIGHT_BOTTOM], crc_hold[ROI_TYPE_RIGHT_BOTTOM]))
+ igt_assert_f(false, "CRC values are not as expected after 5 seconds\n");
+
+ }
+
+ igt_info("Test checksum_region basic passed\n");
+}
+
+static void
+test_basic_case(conf_t *conf, enum roi_type type, struct data_basic *data)
+{
+ set_t *set;
+ roi_t *roi;
+ roi_t **roi_return;
+ crc_t **crc;
+
+ igt_info("\n===== start to test a crc window =====\n");
+
+ /* set roi for each CRTC */
+ for (int i = 0; i < crtc_set_num; i++) {
+ set = &conf->set[i];
+ roi = &data[i].input.roi[type];
+ set_roi(conf, set, roi);
+ }
+ igt_display_commit_atomic(&conf->display, DRM_MODE_ATOMIC_ALLOW_MODESET, NULL); // commit new ROI
+ igt_info("\n");
+
+
+ /* get the crc for check */
+ for (int i = 0; i < crtc_set_num; i++) {
+ set = &conf->set[i];
+ crc = &data[i].output.crc[type];
+ get_crc(conf, set, crc);
+ }
+ igt_info("\n");
+
+
+ /* sleep and get crc for check again*/
+ sleep(3);
+ for (int i = 0; i < crtc_set_num; i++) {
+ set = &conf->set[i];
+ crc = &data[i].output.crc_hold[type];
+ get_crc(conf, set, crc);
+ }
+ igt_info("\n");
+
+
+ /* get roi for check */
+ for (int i = 0; i < crtc_set_num; i++) {
+ set = &conf->set[i];
+ roi_return = &data[i].output.roi[type];
+ get_roi(conf, set, roi_return);
+ }
+ igt_info("\n");
+}
+
+static void test_fini(conf_t *conf)
+{
+ disable_checksum_region_from_property(conf);
+ igt_display_commit_atomic(&conf->display, DRM_MODE_ATOMIC_ALLOW_MODESET, NULL);
+}
+
+static void
+test_checksum_region_basic(conf_t *conf)
+{
+ struct data_basic data[CRTC_SET_NUM] = {0};
+
+ /* test basic init */
+ test_basic_init(conf, data);
+
+ test_basic_case(conf, ROI_TYPE_FIRST, data);
+ test_basic_case(conf, ROI_TYPE_RIGHT, data);
+ test_basic_case(conf, ROI_TYPE_BOTTOM, data);
+ test_basic_case(conf, ROI_TYPE_RIGHT_BOTTOM, data);
+
+ test_basic_validate(data);
+
+ test_fini(conf);
+}
+
+static void
+test_switching_validate(struct data_switching *data)
+{
+ crc_t *crc_a, *crc_b;
+
+ for (int i = 0; i < crtc_set_num; i++) {
+ crc_a = data[i].output.crc_window[0];
+ crc_b = data[i].output.crc_window[1];
+
+ print_crc(crc_a);
+ print_crc(crc_b);
+
+ if (!crc_compare(crc_a, crc_b))
+ igt_assert_f(false, "Window crc values should be the same\n");
+
+
+ crc_a = data[i].output.crc_full_screen[0];
+ crc_b = data[i].output.crc_full_screen[1];
+
+ print_crc(crc_a);
+ print_crc(crc_b);
+
+ if (crc_compare(crc_a, crc_b))
+ igt_assert_f(false, "Full screen crc values should not be the same\n");
+ }
+
+ igt_info("Test checksum_region switching passed\n");
+}
+
+static void
+test_switching_init(conf_t *conf, struct data_switching *_data)
+{
+ drmModeModeInfo *mode = &_mode;
+ roi_t *roi;
+ struct data_switching *data;
+ struct igt_fb *fb;
+
+ for (int i=0; i < crtc_set_num; i++) {
+ data = &_data[i];
+
+ /* crc window roi */
+ roi = &data->input.roi_window;
+ roi->x_start = 100;
+ roi->y_start = 100;
+ roi->x_end = 130;
+ roi->y_end = 130;
+ roi->checksum_region_enable = 1;
+
+ /* full screen roi */
+ roi = &data->input.roi_full_screen;
+ roi->x_start = 0;
+ roi->y_start = 0;
+ roi->x_end = mode->hdisplay;
+ roi->y_end = mode->vdisplay;
+ roi->checksum_region_enable = 1;
+
+ /* paint fb with blue background, red rect */
+ fb = &data->input.fb[0];
+ igt_create_fb(conf->fd, mode->hdisplay, mode->vdisplay,
+ DRM_FORMAT_XRGB8888, 0, fb);
+ draw_color_roi(fb, &data->input.roi_full_screen, 0, 0, 255);
+ draw_color_roi(fb, &data->input.roi_window, 255, 0, 0);
+
+
+ /* paint fb with green background, red retc */
+ fb = &data->input.fb[1];
+ igt_create_fb(conf->fd, mode->hdisplay, mode->vdisplay,
+ DRM_FORMAT_XRGB8888, 0, fb);
+ draw_color_roi(fb, &data->input.roi_full_screen, 0, 255, 0);
+ draw_color_roi(fb, &data->input.roi_window, 255, 0, 0);
+ }
+}
+
+static void
+test_switching_case(conf_t *conf, struct data_switching *data, bool is_window)
+{
+ set_t *set;
+ igt_fb_t *fb;
+ roi_t *roi, *roi_return;
+ crc_t **crc;
+
+ /* change pattern */
+ for (int i = 0; i < crtc_set_num; i++) {
+ set = &conf->set[i];
+ fb = &data[i].input.fb[0];
+ igt_plane_set_fb(set->primary, fb);
+ }
+
+ /* set crc window roi */
+ for (int i = 0; i < crtc_set_num; i++) {
+ set = &conf->set[i];
+ roi = (is_window) ? &data[i].input.roi_window
+ : &data[i].input.roi_full_screen;
+ set_roi(conf, set, roi);
+ }
+ igt_display_commit_atomic(&conf->display, DRM_MODE_ATOMIC_ALLOW_MODESET, NULL);
+ igt_info("\n");
+
+
+ /* get crc window roi and print for debug */
+ for (int i = 0; i < crtc_set_num; i++) {
+ set = &conf->set[i];
+ get_roi(conf, set, &roi_return);
+ }
+ igt_info("\n");
+
+
+ /* get the window crc */
+ for (int i = 0; i < crtc_set_num; i++) {
+ set = &conf->set[i];
+ crc = (is_window) ? &data[i].output.crc_window[0]
+ : &data[i].output.crc_full_screen[0];
+ get_crc(conf, set, crc);
+ }
+ igt_info("\n");
+
+
+ /* change pattern */
+ for (int i = 0; i < crtc_set_num; i++) {
+ set = &conf->set[i];
+ fb = &data[i].input.fb[1];
+ igt_plane_set_fb(set->primary, fb);
+ }
+ igt_display_commit_atomic(&conf->display, DRM_MODE_ATOMIC_ALLOW_MODESET, NULL);
+
+ /* wait 1 frame for new crc computed */
+ wait_vblanks(conf->fd, 1);
+
+ /* get the window crc */
+ for (int i = 0; i < crtc_set_num; i++) {
+ set = &conf->set[i];
+ crc = (is_window) ? &data[i].output.crc_window[1]
+ : &data[i].output.crc_full_screen[1];
+ get_crc(conf, set, crc);
+ }
+ igt_info("\n");
+}
+
+static void
+test_checksum_region_switching(conf_t *conf)
+{
+ struct data_switching data[CRTC_SET_NUM] = {0};
+
+ /* test basic init */
+ test_switching_init(conf, data);
+
+ /* crc_window */
+ test_switching_case(conf, data, true);
+
+ /* full screen */
+ test_switching_case(conf, data, false);
+
+ test_switching_validate(data);
+
+ test_fini(conf);
+}
+
+igt_main
+{
+ conf_t conf = {0};
+
+ igt_skip_on_simulation();
+
+ igt_fixture
+ {
+ conf.fd = drm_open_driver_master(DRIVER_AMDGPU);
+ kmstest_set_vt_graphics_mode();
+ igt_display_require(&conf.display, conf.fd);
+ igt_require(conf.display.is_atomic);
+ igt_display_require_output(&conf.display);
+ }
+
+ test_init(&conf);
+
+ igt_describe("Test basic");
+ igt_subtest("checksum-region-basic")
+ test_checksum_region_basic(&conf);
+
+ igt_describe("Test switching");
+ igt_subtest("checksum-region-switching")
+ test_checksum_region_switching(&conf);
+
+ igt_fixture
+ {
+ igt_display_fini(&conf.display);
+ close(conf.fd);
+ }
+}
diff --git a/tests/amdgpu/meson.build b/tests/amdgpu/meson.build
index 7fff7602f..aa51abfa2 100644
--- a/tests/amdgpu/meson.build
+++ b/tests/amdgpu/meson.build
@@ -24,6 +24,7 @@ if libdrm_amdgpu.found()
'amd_psr',
'amd_plane',
'amd_ilr',
+ 'amd_checksum_region',
]
amdgpu_deps += libdrm_amdgpu
endif
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread* [igt-dev] ✗ GitLab.Pipeline: warning for tests/amdgpu/amd_checksum_region: Add test for checksum_region 2023-06-29 15:10 [igt-dev] [PATCH] tests/amdgpu/amd_checksum_region: Add test for checksum_region Alan Liu @ 2023-06-29 15:36 ` Patchwork 2023-06-29 16:16 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: Patchwork @ 2023-06-29 15:36 UTC (permalink / raw) To: Alan Liu; +Cc: igt-dev == Series Details == Series: tests/amdgpu/amd_checksum_region: Add test for checksum_region URL : https://patchwork.freedesktop.org/series/120017/ State : warning == Summary == Pipeline status: FAILED. see https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/pipelines/922476 for the overview. test:ninja-test has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/44684201): 356/360 assembler test/rnde-intsrc OK 0.01 s 357/360 assembler test/rndz OK 0.01 s 358/360 assembler test/lzd OK 0.01 s 359/360 assembler test/not OK 0.01 s 360/360 assembler test/immediate OK 0.01 s Ok: 354 Expected Fail: 4 Fail: 2 Unexpected Pass: 0 Skipped: 0 Timeout: 0 Full log written to /builds/gfx-ci/igt-ci-tags/build/meson-logs/testlog.txt section_end:1688052919:step_script section_start:1688052919:cleanup_file_variables Cleaning up project directory and file based variables section_end:1688052920:cleanup_file_variables ERROR: Job failed: exit code 1 test:ninja-test-clang has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/44684202): 356/360 assembler test/rnde-intsrc OK 0.01 s 357/360 assembler test/rndz OK 0.01 s 358/360 assembler test/lzd OK 0.01 s 359/360 assembler test/not OK 0.01 s 360/360 assembler test/immediate OK 0.01 s Ok: 355 Expected Fail: 4 Fail: 1 Unexpected Pass: 0 Skipped: 0 Timeout: 0 Full log written to /builds/gfx-ci/igt-ci-tags/build/meson-logs/testlog.txt section_end:1688052919:step_script section_start:1688052919:cleanup_file_variables Cleaning up project directory and file based variables section_end:1688052920:cleanup_file_variables ERROR: Job failed: exit code 1 == Logs == For more details see: https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/pipelines/922476 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [igt-dev] ✓ Fi.CI.BAT: success for tests/amdgpu/amd_checksum_region: Add test for checksum_region 2023-06-29 15:10 [igt-dev] [PATCH] tests/amdgpu/amd_checksum_region: Add test for checksum_region Alan Liu 2023-06-29 15:36 ` [igt-dev] ✗ GitLab.Pipeline: warning for " Patchwork @ 2023-06-29 16:16 ` Patchwork 2023-06-30 3:19 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork 2023-06-30 16:02 ` [igt-dev] [PATCH] " Kamil Konieczny 3 siblings, 0 replies; 5+ messages in thread From: Patchwork @ 2023-06-29 16:16 UTC (permalink / raw) To: Alan Liu; +Cc: igt-dev [-- Attachment #1: Type: text/plain, Size: 10960 bytes --] == Series Details == Series: tests/amdgpu/amd_checksum_region: Add test for checksum_region URL : https://patchwork.freedesktop.org/series/120017/ State : success == Summary == CI Bug Log - changes from CI_DRM_13336 -> IGTPW_9304 ==================================================== Summary ------- **SUCCESS** No regressions found. External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/index.html Participating hosts (41 -> 42) ------------------------------ Additional (2): fi-kbl-soraka bat-dg1-8 Missing (1): fi-snb-2520m Possible new issues ------------------- Here are the unknown changes that may have been introduced in IGTPW_9304: ### IGT changes ### #### Suppressed #### The following results come from untrusted machines, tests, or statuses. They do not affect the overall result. * {igt@xe_create@create-massive-size}: - {bat-dg1-8}: NOTRUN -> [FAIL][1] +2 similar issues [1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/bat-dg1-8/igt@xe_create@create-massive-size.html * igt@xe_guc_pc@rc6_on_idle: - {bat-dg1-8}: NOTRUN -> [INCOMPLETE][2] +1 similar issue [2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/bat-dg1-8/igt@xe_guc_pc@rc6_on_idle.html Known issues ------------ Here are the changes found in IGTPW_9304 that come from known issues: ### IGT changes ### #### Issues hit #### * igt@gem_huc_copy@huc-copy: - fi-kbl-soraka: NOTRUN -> [SKIP][3] ([fdo#109271] / [i915#2190]) [3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/fi-kbl-soraka/igt@gem_huc_copy@huc-copy.html * igt@gem_lmem_swapping@basic: - fi-kbl-soraka: NOTRUN -> [SKIP][4] ([fdo#109271] / [i915#4613]) +3 similar issues [4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/fi-kbl-soraka/igt@gem_lmem_swapping@basic.html * igt@gem_lmem_swapping@parallel-random-engines: - bat-mtlp-8: NOTRUN -> [SKIP][5] ([i915#4613]) +3 similar issues [5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/bat-mtlp-8/igt@gem_lmem_swapping@parallel-random-engines.html * igt@i915_pm_rps@basic-api: - bat-mtlp-8: NOTRUN -> [SKIP][6] ([i915#6621]) [6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/bat-mtlp-8/igt@i915_pm_rps@basic-api.html * igt@i915_selftest@live@gt_heartbeat: - fi-kbl-soraka: NOTRUN -> [DMESG-FAIL][7] ([i915#5334] / [i915#7872]) [7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/fi-kbl-soraka/igt@i915_selftest@live@gt_heartbeat.html * igt@i915_selftest@live@gt_mocs: - bat-mtlp-8: NOTRUN -> [DMESG-FAIL][8] ([i915#7059]) [8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/bat-mtlp-8/igt@i915_selftest@live@gt_mocs.html * igt@i915_selftest@live@gt_pm: - fi-kbl-soraka: NOTRUN -> [DMESG-FAIL][9] ([i915#1886] / [i915#7913]) [9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/fi-kbl-soraka/igt@i915_selftest@live@gt_pm.html * igt@i915_selftest@live@requests: - bat-rpls-1: [PASS][10] -> [ABORT][11] ([i915#4983] / [i915#7911] / [i915#7920]) [10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/bat-rpls-1/igt@i915_selftest@live@requests.html [11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/bat-rpls-1/igt@i915_selftest@live@requests.html - bat-rpls-2: [PASS][12] -> [ABORT][13] ([i915#7913] / [i915#7982]) [12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/bat-rpls-2/igt@i915_selftest@live@requests.html [13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/bat-rpls-2/igt@i915_selftest@live@requests.html * igt@i915_suspend@basic-s3-without-i915: - bat-mtlp-8: NOTRUN -> [SKIP][14] ([i915#6645]) [14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/bat-mtlp-8/igt@i915_suspend@basic-s3-without-i915.html * igt@kms_chamelium_hpd@common-hpd-after-suspend: - bat-mtlp-8: NOTRUN -> [SKIP][15] ([i915#7828]) [15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/bat-mtlp-8/igt@kms_chamelium_hpd@common-hpd-after-suspend.html - bat-jsl-1: NOTRUN -> [SKIP][16] ([i915#7828]) [16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/bat-jsl-1/igt@kms_chamelium_hpd@common-hpd-after-suspend.html - fi-bsw-n3050: NOTRUN -> [SKIP][17] ([fdo#109271]) [17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/fi-bsw-n3050/igt@kms_chamelium_hpd@common-hpd-after-suspend.html * igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic: - fi-kbl-soraka: NOTRUN -> [SKIP][18] ([fdo#109271]) +14 similar issues [18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/fi-kbl-soraka/igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic.html * igt@kms_psr@primary_mmap_gtt: - bat-rplp-1: NOTRUN -> [ABORT][19] ([i915#8442] / [i915#8668]) [19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/bat-rplp-1/igt@kms_psr@primary_mmap_gtt.html * igt@kms_psr@primary_page_flip: - bat-rplp-1: NOTRUN -> [SKIP][20] ([i915#1072]) +2 similar issues [20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/bat-rplp-1/igt@kms_psr@primary_page_flip.html * igt@kms_setmode@basic-clone-single-crtc: - fi-kbl-soraka: NOTRUN -> [SKIP][21] ([fdo#109271] / [i915#4579]) [21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/fi-kbl-soraka/igt@kms_setmode@basic-clone-single-crtc.html * igt@prime_vgem@basic-fence-read: - bat-mtlp-8: NOTRUN -> [SKIP][22] ([i915#3708]) +2 similar issues [22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/bat-mtlp-8/igt@prime_vgem@basic-fence-read.html * igt@prime_vgem@basic-gtt: - bat-mtlp-8: NOTRUN -> [SKIP][23] ([i915#3708] / [i915#4077]) +1 similar issue [23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/bat-mtlp-8/igt@prime_vgem@basic-gtt.html #### Possible fixes #### * igt@i915_pm_rpm@basic-pci-d3-state: - bat-mtlp-8: [ABORT][24] ([i915#7077] / [i915#7977]) -> [PASS][25] [24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/bat-mtlp-8/igt@i915_pm_rpm@basic-pci-d3-state.html [25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/bat-mtlp-8/igt@i915_pm_rpm@basic-pci-d3-state.html * igt@i915_selftest@live@execlists: - fi-bsw-n3050: [ABORT][26] ([i915#7911] / [i915#7913]) -> [PASS][27] [26]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/fi-bsw-n3050/igt@i915_selftest@live@execlists.html [27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/fi-bsw-n3050/igt@i915_selftest@live@execlists.html * igt@i915_selftest@live@gt_heartbeat: - bat-jsl-3: [DMESG-FAIL][28] ([i915#5334]) -> [PASS][29] [28]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/bat-jsl-3/igt@i915_selftest@live@gt_heartbeat.html [29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/bat-jsl-3/igt@i915_selftest@live@gt_heartbeat.html * igt@i915_selftest@live@gt_pm: - bat-rpls-2: [DMESG-FAIL][30] ([i915#4258] / [i915#7913]) -> [PASS][31] [30]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/bat-rpls-2/igt@i915_selftest@live@gt_pm.html [31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/bat-rpls-2/igt@i915_selftest@live@gt_pm.html * igt@i915_selftest@live@migrate: - bat-jsl-1: [INCOMPLETE][32] -> [PASS][33] [32]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/bat-jsl-1/igt@i915_selftest@live@migrate.html [33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/bat-jsl-1/igt@i915_selftest@live@migrate.html * igt@kms_pipe_crc_basic@read-crc-frame-sequence@pipe-d-edp-1: - bat-rplp-1: [ABORT][34] ([i915#8442] / [i915#8668]) -> [PASS][35] [34]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/bat-rplp-1/igt@kms_pipe_crc_basic@read-crc-frame-sequence@pipe-d-edp-1.html [35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/bat-rplp-1/igt@kms_pipe_crc_basic@read-crc-frame-sequence@pipe-d-edp-1.html {name}: This element is suppressed. This means it is ignored when computing the status of the difference (SUCCESS, WARNING, or FAILURE). [fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271 [i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072 [i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845 [i915#1886]: https://gitlab.freedesktop.org/drm/intel/issues/1886 [i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190 [i915#3637]: https://gitlab.freedesktop.org/drm/intel/issues/3637 [i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708 [i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077 [i915#4078]: https://gitlab.freedesktop.org/drm/intel/issues/4078 [i915#4258]: https://gitlab.freedesktop.org/drm/intel/issues/4258 [i915#4391]: https://gitlab.freedesktop.org/drm/intel/issues/4391 [i915#4579]: https://gitlab.freedesktop.org/drm/intel/issues/4579 [i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613 [i915#4983]: https://gitlab.freedesktop.org/drm/intel/issues/4983 [i915#5334]: https://gitlab.freedesktop.org/drm/intel/issues/5334 [i915#6121]: https://gitlab.freedesktop.org/drm/intel/issues/6121 [i915#6621]: https://gitlab.freedesktop.org/drm/intel/issues/6621 [i915#6645]: https://gitlab.freedesktop.org/drm/intel/issues/6645 [i915#7059]: https://gitlab.freedesktop.org/drm/intel/issues/7059 [i915#7077]: https://gitlab.freedesktop.org/drm/intel/issues/7077 [i915#7828]: https://gitlab.freedesktop.org/drm/intel/issues/7828 [i915#7872]: https://gitlab.freedesktop.org/drm/intel/issues/7872 [i915#7911]: https://gitlab.freedesktop.org/drm/intel/issues/7911 [i915#7913]: https://gitlab.freedesktop.org/drm/intel/issues/7913 [i915#7920]: https://gitlab.freedesktop.org/drm/intel/issues/7920 [i915#7977]: https://gitlab.freedesktop.org/drm/intel/issues/7977 [i915#7982]: https://gitlab.freedesktop.org/drm/intel/issues/7982 [i915#8213]: https://gitlab.freedesktop.org/drm/intel/issues/8213 [i915#8442]: https://gitlab.freedesktop.org/drm/intel/issues/8442 [i915#8513]: https://gitlab.freedesktop.org/drm/intel/issues/8513 [i915#8668]: https://gitlab.freedesktop.org/drm/intel/issues/8668 [i915#8676]: https://gitlab.freedesktop.org/drm/intel/issues/8676 [i915#8698]: https://gitlab.freedesktop.org/drm/intel/issues/8698 [i915#8700]: https://gitlab.freedesktop.org/drm/intel/issues/8700 Build changes ------------- * CI: CI-20190529 -> None * IGT: IGT_7356 -> IGTPW_9304 CI-20190529: 20190529 CI_DRM_13336: 1423126050a5bb0317e86e61395e4413e0ad013b @ git://anongit.freedesktop.org/gfx-ci/linux IGTPW_9304: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/index.html IGT_7356: 66452bb0118e8d3a78d054cef50a60a9858a00a9 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git == Logs == For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/index.html [-- Attachment #2: Type: text/html, Size: 12475 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* [igt-dev] ✓ Fi.CI.IGT: success for tests/amdgpu/amd_checksum_region: Add test for checksum_region 2023-06-29 15:10 [igt-dev] [PATCH] tests/amdgpu/amd_checksum_region: Add test for checksum_region Alan Liu 2023-06-29 15:36 ` [igt-dev] ✗ GitLab.Pipeline: warning for " Patchwork 2023-06-29 16:16 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork @ 2023-06-30 3:19 ` Patchwork 2023-06-30 16:02 ` [igt-dev] [PATCH] " Kamil Konieczny 3 siblings, 0 replies; 5+ messages in thread From: Patchwork @ 2023-06-30 3:19 UTC (permalink / raw) To: Alan Liu; +Cc: igt-dev [-- Attachment #1: Type: text/plain, Size: 43912 bytes --] == Series Details == Series: tests/amdgpu/amd_checksum_region: Add test for checksum_region URL : https://patchwork.freedesktop.org/series/120017/ State : success == Summary == CI Bug Log - changes from CI_DRM_13336_full -> IGTPW_9304_full ==================================================== Summary ------- **SUCCESS** No regressions found. External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/index.html Participating hosts (8 -> 8) ------------------------------ No changes in participating hosts New tests --------- New tests have been introduced between CI_DRM_13336_full and IGTPW_9304_full: ### New IGT tests (12) ### * igt@kms_cursor_crc@cursor-dpms@pipe-a-hdmi-a-3: - Statuses : 1 pass(s) - Exec time: [0.0] s * igt@kms_cursor_crc@cursor-dpms@pipe-d-hdmi-a-3: - Statuses : 1 pass(s) - Exec time: [0.0] s * igt@kms_cursor_crc@cursor-suspend@pipe-a-hdmi-a-3: - Statuses : 1 pass(s) - Exec time: [0.0] s * igt@kms_cursor_crc@cursor-suspend@pipe-d-hdmi-a-3: - Statuses : 1 pass(s) - Exec time: [0.0] s * igt@kms_pipe_crc_basic@nonblocking-crc@pipe-a-hdmi-a-3: - Statuses : 1 pass(s) - Exec time: [0.0] s * igt@kms_pipe_crc_basic@nonblocking-crc@pipe-b-hdmi-a-3: - Statuses : 1 pass(s) - Exec time: [0.0] s * igt@kms_pipe_crc_basic@nonblocking-crc@pipe-c-hdmi-a-3: - Statuses : 1 pass(s) - Exec time: [0.0] s * igt@kms_pipe_crc_basic@nonblocking-crc@pipe-d-hdmi-a-3: - Statuses : 1 pass(s) - Exec time: [0.0] s * igt@kms_pipe_crc_basic@read-crc@pipe-a-hdmi-a-3: - Statuses : 1 pass(s) - Exec time: [0.0] s * igt@kms_pipe_crc_basic@read-crc@pipe-b-hdmi-a-3: - Statuses : 1 pass(s) - Exec time: [0.0] s * igt@kms_pipe_crc_basic@read-crc@pipe-c-hdmi-a-3: - Statuses : 1 pass(s) - Exec time: [0.0] s * igt@kms_pipe_crc_basic@read-crc@pipe-d-hdmi-a-3: - Statuses : 1 pass(s) - Exec time: [0.0] s Known issues ------------ Here are the changes found in IGTPW_9304_full that come from known issues: ### IGT changes ### #### Issues hit #### * igt@api_intel_bb@render-ccs: - shard-dg2: NOTRUN -> [FAIL][1] ([i915#6122]) [1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-10/igt@api_intel_bb@render-ccs.html * igt@gem_bad_reloc@negative-reloc-bltcopy: - shard-rkl: NOTRUN -> [SKIP][2] ([i915#3281]) [2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-rkl-7/igt@gem_bad_reloc@negative-reloc-bltcopy.html * igt@gem_ctx_persistence@engines-hostile: - shard-snb: NOTRUN -> [SKIP][3] ([fdo#109271] / [i915#1099]) [3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-snb6/igt@gem_ctx_persistence@engines-hostile.html * igt@gem_ctx_persistence@heartbeat-hostile: - shard-dg2: NOTRUN -> [SKIP][4] ([i915#8555]) [4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-3/igt@gem_ctx_persistence@heartbeat-hostile.html * igt@gem_eio@hibernate: - shard-dg2: NOTRUN -> [ABORT][5] ([i915#7975] / [i915#8213]) [5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-6/igt@gem_eio@hibernate.html * igt@gem_exec_balancer@bonded-pair: - shard-dg2: NOTRUN -> [SKIP][6] ([i915#4771]) [6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-10/igt@gem_exec_balancer@bonded-pair.html * igt@gem_exec_balancer@parallel-ordering: - shard-rkl: NOTRUN -> [SKIP][7] ([i915#4525]) [7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-rkl-4/igt@gem_exec_balancer@parallel-ordering.html * igt@gem_exec_fair@basic-none-share: - shard-dg2: NOTRUN -> [SKIP][8] ([i915#3539] / [i915#4852]) [8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-12/igt@gem_exec_fair@basic-none-share.html * igt@gem_exec_fair@basic-none@vecs0: - shard-rkl: [PASS][9] -> [FAIL][10] ([i915#2842]) +1 similar issue [9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/shard-rkl-1/igt@gem_exec_fair@basic-none@vecs0.html [10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-rkl-7/igt@gem_exec_fair@basic-none@vecs0.html * igt@gem_exec_fair@basic-pace@rcs0: - shard-glk: [PASS][11] -> [FAIL][12] ([i915#2842]) [11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/shard-glk6/igt@gem_exec_fair@basic-pace@rcs0.html [12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-glk6/igt@gem_exec_fair@basic-pace@rcs0.html * igt@gem_exec_reloc@basic-gtt-read: - shard-dg2: NOTRUN -> [SKIP][13] ([i915#3281]) +5 similar issues [13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-3/igt@gem_exec_reloc@basic-gtt-read.html * igt@gem_lmem_swapping@random: - shard-apl: NOTRUN -> [SKIP][14] ([fdo#109271] / [i915#4613]) [14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-apl6/igt@gem_lmem_swapping@random.html * igt@gem_lmem_swapping@smem-oom@lmem0: - shard-dg2: [PASS][15] -> [TIMEOUT][16] ([i915#5493]) [15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/shard-dg2-3/igt@gem_lmem_swapping@smem-oom@lmem0.html [16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-10/igt@gem_lmem_swapping@smem-oom@lmem0.html * igt@gem_mmap_gtt@fault-concurrent-y: - shard-dg2: NOTRUN -> [SKIP][17] ([i915#4077]) +2 similar issues [17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-11/igt@gem_mmap_gtt@fault-concurrent-y.html * igt@gem_partial_pwrite_pread@writes-after-reads-display: - shard-dg2: NOTRUN -> [SKIP][18] ([i915#3282]) +1 similar issue [18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-6/igt@gem_partial_pwrite_pread@writes-after-reads-display.html - shard-rkl: NOTRUN -> [SKIP][19] ([i915#3282]) [19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-rkl-3/igt@gem_partial_pwrite_pread@writes-after-reads-display.html * igt@gem_userptr_blits@invalid-mmap-offset-unsync: - shard-dg2: NOTRUN -> [SKIP][20] ([i915#3297]) [20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-5/igt@gem_userptr_blits@invalid-mmap-offset-unsync.html * igt@gen3_mixed_blits: - shard-dg2: NOTRUN -> [SKIP][21] ([fdo#109289]) +3 similar issues [21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-11/igt@gen3_mixed_blits.html * igt@gen9_exec_parse@valid-registers: - shard-dg2: NOTRUN -> [SKIP][22] ([i915#2856]) [22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-11/igt@gen9_exec_parse@valid-registers.html * igt@i915_module_load@reload-with-fault-injection: - shard-dg2: NOTRUN -> [DMESG-WARN][23] ([i915#7061]) [23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-1/igt@i915_module_load@reload-with-fault-injection.html * igt@i915_pm_backlight@basic-brightness: - shard-dg2: NOTRUN -> [SKIP][24] ([i915#5354] / [i915#7561]) [24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-5/igt@i915_pm_backlight@basic-brightness.html - shard-rkl: NOTRUN -> [SKIP][25] ([i915#7561]) [25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-rkl-1/igt@i915_pm_backlight@basic-brightness.html * igt@i915_pm_dc@dc9-dpms: - shard-apl: [PASS][26] -> [SKIP][27] ([fdo#109271]) [26]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/shard-apl7/igt@i915_pm_dc@dc9-dpms.html [27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-apl4/igt@i915_pm_dc@dc9-dpms.html * igt@i915_pm_freq_api@freq-reset: - shard-tglu: NOTRUN -> [SKIP][28] ([i915#8399]) [28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-tglu-6/igt@i915_pm_freq_api@freq-reset.html * igt@i915_pm_lpsp@kms-lpsp@kms-lpsp-hdmi-a: - shard-rkl: [PASS][29] -> [SKIP][30] ([i915#1937] / [i915#4579]) [29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/shard-rkl-7/igt@i915_pm_lpsp@kms-lpsp@kms-lpsp-hdmi-a.html [30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-rkl-1/igt@i915_pm_lpsp@kms-lpsp@kms-lpsp-hdmi-a.html - shard-dg2: NOTRUN -> [SKIP][31] ([i915#1937] / [i915#4579]) [31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-5/igt@i915_pm_lpsp@kms-lpsp@kms-lpsp-hdmi-a.html * igt@i915_pm_lpsp@kms-lpsp@kms-lpsp-vga: - shard-snb: NOTRUN -> [SKIP][32] ([fdo#109271] / [i915#4579]) +16 similar issues [32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-snb5/igt@i915_pm_lpsp@kms-lpsp@kms-lpsp-vga.html * igt@i915_pm_rpm@modeset-lpsp: - shard-dg2: NOTRUN -> [SKIP][33] ([i915#1397]) [33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-11/igt@i915_pm_rpm@modeset-lpsp.html - shard-rkl: NOTRUN -> [SKIP][34] ([i915#1397]) [34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-rkl-4/igt@i915_pm_rpm@modeset-lpsp.html * igt@i915_suspend@forcewake: - shard-dg2: [PASS][35] -> [TIMEOUT][36] ([fdo#103375]) [35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/shard-dg2-12/igt@i915_suspend@forcewake.html [36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-5/igt@i915_suspend@forcewake.html * igt@kms_addfb_basic@addfb25-framebuffer-vs-set-tiling: - shard-dg2: NOTRUN -> [SKIP][37] ([i915#4212]) +1 similar issue [37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-10/igt@kms_addfb_basic@addfb25-framebuffer-vs-set-tiling.html * igt@kms_async_flips@async-flip-with-page-flip-events@pipe-b-hdmi-a-1-y-rc_ccs: - shard-rkl: NOTRUN -> [SKIP][38] ([i915#8502]) +3 similar issues [38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-rkl-7/igt@kms_async_flips@async-flip-with-page-flip-events@pipe-b-hdmi-a-1-y-rc_ccs.html * igt@kms_big_fb@4-tiled-addfb: - shard-rkl: NOTRUN -> [SKIP][39] ([i915#5286]) +1 similar issue [39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-rkl-2/igt@kms_big_fb@4-tiled-addfb.html * igt@kms_big_fb@yf-tiled-addfb-size-overflow: - shard-dg2: NOTRUN -> [SKIP][40] ([i915#5190]) +3 similar issues [40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-5/igt@kms_big_fb@yf-tiled-addfb-size-overflow.html * igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-0-async-flip: - shard-rkl: NOTRUN -> [SKIP][41] ([fdo#110723]) [41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-rkl-6/igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-0-async-flip.html * igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-180-hflip-async-flip: - shard-dg2: NOTRUN -> [SKIP][42] ([i915#4538] / [i915#5190]) +1 similar issue [42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-1/igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-180-hflip-async-flip.html * igt@kms_ccs@pipe-a-bad-pixel-format-4_tiled_mtl_rc_ccs: - shard-rkl: NOTRUN -> [SKIP][43] ([i915#5354] / [i915#6095]) +1 similar issue [43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-rkl-1/igt@kms_ccs@pipe-a-bad-pixel-format-4_tiled_mtl_rc_ccs.html * igt@kms_ccs@pipe-a-crc-primary-basic-yf_tiled_ccs: - shard-dg2: NOTRUN -> [SKIP][44] ([i915#3689] / [i915#5354]) +3 similar issues [44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-7/igt@kms_ccs@pipe-a-crc-primary-basic-yf_tiled_ccs.html * igt@kms_ccs@pipe-b-bad-rotation-90-y_tiled_gen12_rc_ccs_cc: - shard-apl: NOTRUN -> [SKIP][45] ([fdo#109271] / [i915#3886]) [45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-apl1/igt@kms_ccs@pipe-b-bad-rotation-90-y_tiled_gen12_rc_ccs_cc.html * igt@kms_ccs@pipe-b-crc-primary-rotation-180-y_tiled_ccs: - shard-rkl: NOTRUN -> [SKIP][46] ([i915#3734] / [i915#5354] / [i915#6095]) [46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-rkl-2/igt@kms_ccs@pipe-b-crc-primary-rotation-180-y_tiled_ccs.html * igt@kms_ccs@pipe-c-bad-rotation-90-4_tiled_mtl_mc_ccs: - shard-dg2: NOTRUN -> [SKIP][47] ([i915#5354]) +19 similar issues [47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-8/igt@kms_ccs@pipe-c-bad-rotation-90-4_tiled_mtl_mc_ccs.html * igt@kms_ccs@pipe-c-crc-primary-basic-y_tiled_gen12_rc_ccs_cc: - shard-dg2: NOTRUN -> [SKIP][48] ([i915#3689] / [i915#3886] / [i915#5354]) +5 similar issues [48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-12/igt@kms_ccs@pipe-c-crc-primary-basic-y_tiled_gen12_rc_ccs_cc.html * igt@kms_ccs@pipe-d-bad-pixel-format-4_tiled_dg2_mc_ccs: - shard-rkl: NOTRUN -> [SKIP][49] ([i915#5354]) +5 similar issues [49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-rkl-6/igt@kms_ccs@pipe-d-bad-pixel-format-4_tiled_dg2_mc_ccs.html * igt@kms_cdclk@plane-scaling@pipe-b-hdmi-a-3: - shard-dg2: NOTRUN -> [SKIP][50] ([i915#4087]) +2 similar issues [50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-7/igt@kms_cdclk@plane-scaling@pipe-b-hdmi-a-3.html * igt@kms_cdclk@plane-scaling@pipe-d-hdmi-a-3: - shard-dg2: NOTRUN -> [SKIP][51] ([i915#4087] / [i915#4579]) [51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-7/igt@kms_cdclk@plane-scaling@pipe-d-hdmi-a-3.html * igt@kms_chamelium_color@ctm-max: - shard-dg2: NOTRUN -> [SKIP][52] ([fdo#111827]) [52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-8/igt@kms_chamelium_color@ctm-max.html * igt@kms_chamelium_hpd@hdmi-hpd: - shard-dg2: NOTRUN -> [SKIP][53] ([i915#7828]) +1 similar issue [53]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-5/igt@kms_chamelium_hpd@hdmi-hpd.html - shard-rkl: NOTRUN -> [SKIP][54] ([i915#7828]) +1 similar issue [54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-rkl-7/igt@kms_chamelium_hpd@hdmi-hpd.html * igt@kms_content_protection@atomic@pipe-a-dp-4: - shard-dg2: NOTRUN -> [TIMEOUT][55] ([i915#7173]) +1 similar issue [55]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-11/igt@kms_content_protection@atomic@pipe-a-dp-4.html * igt@kms_content_protection@uevent: - shard-dg2: NOTRUN -> [SKIP][56] ([i915#4579] / [i915#7118]) +2 similar issues [56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-8/igt@kms_content_protection@uevent.html * igt@kms_cursor_crc@cursor-rapid-movement-32x10: - shard-apl: NOTRUN -> [SKIP][57] ([fdo#109271] / [i915#4579]) [57]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-apl6/igt@kms_cursor_crc@cursor-rapid-movement-32x10.html * igt@kms_cursor_crc@cursor-rapid-movement-512x170: - shard-dg2: NOTRUN -> [SKIP][58] ([i915#3359]) [58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-10/igt@kms_cursor_crc@cursor-rapid-movement-512x170.html * igt@kms_cursor_legacy@cursora-vs-flipb-toggle: - shard-dg2: NOTRUN -> [SKIP][59] ([fdo#109274] / [i915#5354]) [59]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-12/igt@kms_cursor_legacy@cursora-vs-flipb-toggle.html - shard-rkl: NOTRUN -> [SKIP][60] ([fdo#111825]) +2 similar issues [60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-rkl-1/igt@kms_cursor_legacy@cursora-vs-flipb-toggle.html * igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size: - shard-apl: [PASS][61] -> [FAIL][62] ([i915#2346]) [61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/shard-apl7/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html [62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-apl2/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html - shard-glk: [PASS][63] -> [FAIL][64] ([i915#2346]) [63]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/shard-glk6/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html [64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-glk3/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html * igt@kms_flip@2x-flip-vs-blocking-wf-vblank: - shard-snb: NOTRUN -> [SKIP][65] ([fdo#109271] / [fdo#111767]) [65]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-snb5/igt@kms_flip@2x-flip-vs-blocking-wf-vblank.html * igt@kms_flip@2x-nonexisting-fb: - shard-apl: NOTRUN -> [SKIP][66] ([fdo#109271]) +15 similar issues [66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-apl1/igt@kms_flip@2x-nonexisting-fb.html * igt@kms_flip@2x-single-buffer-flip-vs-dpms-off-vs-modeset: - shard-dg2: NOTRUN -> [SKIP][67] ([fdo#109274]) +2 similar issues [67]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-5/igt@kms_flip@2x-single-buffer-flip-vs-dpms-off-vs-modeset.html * igt@kms_flip@flip-vs-expired-vblank@a-hdmi-a2: - shard-rkl: [PASS][68] -> [FAIL][69] ([i915#79]) [68]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/shard-rkl-4/igt@kms_flip@flip-vs-expired-vblank@a-hdmi-a2.html [69]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-rkl-4/igt@kms_flip@flip-vs-expired-vblank@a-hdmi-a2.html * igt@kms_flip@flip-vs-suspend@a-hdmi-a3: - shard-dg2: NOTRUN -> [FAIL][70] ([fdo#103375]) +2 similar issues [70]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-5/igt@kms_flip@flip-vs-suspend@a-hdmi-a3.html * igt@kms_flip_scaled_crc@flip-32bpp-yftile-to-64bpp-yftile-downscaling@pipe-a-valid-mode: - shard-tglu: NOTRUN -> [SKIP][71] ([i915#2587] / [i915#2672] / [i915#4579]) [71]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-tglu-8/igt@kms_flip_scaled_crc@flip-32bpp-yftile-to-64bpp-yftile-downscaling@pipe-a-valid-mode.html * igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs-downscaling@pipe-a-valid-mode: - shard-dg2: NOTRUN -> [SKIP][72] ([i915#2672] / [i915#4579]) [72]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-11/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs-downscaling@pipe-a-valid-mode.html * igt@kms_frontbuffer_tracking@fbc-indfb-scaledprimary: - shard-dg2: [PASS][73] -> [FAIL][74] ([i915#6880]) +2 similar issues [73]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/shard-dg2-7/igt@kms_frontbuffer_tracking@fbc-indfb-scaledprimary.html [74]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-5/igt@kms_frontbuffer_tracking@fbc-indfb-scaledprimary.html * igt@kms_frontbuffer_tracking@fbcpsr-1p-rte: - shard-rkl: NOTRUN -> [SKIP][75] ([i915#3023]) [75]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-rkl-4/igt@kms_frontbuffer_tracking@fbcpsr-1p-rte.html * igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-pri-shrfb-draw-mmap-wc: - shard-dg2: NOTRUN -> [SKIP][76] ([i915#8708]) +6 similar issues [76]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-8/igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-pri-shrfb-draw-mmap-wc.html * igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-spr-indfb-draw-blt: - shard-rkl: NOTRUN -> [SKIP][77] ([fdo#111825] / [i915#1825]) +7 similar issues [77]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-rkl-2/igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-spr-indfb-draw-blt.html * igt@kms_frontbuffer_tracking@psr-1p-offscren-pri-shrfb-draw-render: - shard-dg2: NOTRUN -> [SKIP][78] ([i915#3458]) +6 similar issues [78]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-5/igt@kms_frontbuffer_tracking@psr-1p-offscren-pri-shrfb-draw-render.html * igt@kms_frontbuffer_tracking@psr-1p-primscrn-cur-indfb-draw-pwrite: - shard-tglu: NOTRUN -> [SKIP][79] ([fdo#110189]) [79]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-tglu-2/igt@kms_frontbuffer_tracking@psr-1p-primscrn-cur-indfb-draw-pwrite.html * igt@kms_hdr@static-toggle-dpms: - shard-dg2: NOTRUN -> [SKIP][80] ([i915#3555] / [i915#4579]) +2 similar issues [80]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-7/igt@kms_hdr@static-toggle-dpms.html * igt@kms_pipe_b_c_ivb@pipe-b-double-modeset-then-modeset-pipe-c: - shard-rkl: NOTRUN -> [SKIP][81] ([fdo#109289]) [81]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-rkl-2/igt@kms_pipe_b_c_ivb@pipe-b-double-modeset-then-modeset-pipe-c.html * igt@kms_plane_scaling@intel-max-src-size: - shard-dg2: NOTRUN -> [SKIP][82] ([i915#4579] / [i915#6953]) [82]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-8/igt@kms_plane_scaling@intel-max-src-size.html * igt@kms_plane_scaling@plane-downscale-with-modifiers-factor-0-25@pipe-b-hdmi-a-2: - shard-rkl: NOTRUN -> [SKIP][83] ([i915#4579] / [i915#5176]) +2 similar issues [83]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-rkl-4/igt@kms_plane_scaling@plane-downscale-with-modifiers-factor-0-25@pipe-b-hdmi-a-2.html * igt@kms_plane_scaling@plane-downscale-with-modifiers-factor-0-25@pipe-d-dp-4: - shard-dg2: NOTRUN -> [SKIP][84] ([i915#4579] / [i915#5176]) +1 similar issue [84]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-11/igt@kms_plane_scaling@plane-downscale-with-modifiers-factor-0-25@pipe-d-dp-4.html * igt@kms_plane_scaling@plane-downscale-with-pixel-format-factor-0-25@pipe-a-hdmi-a-3: - shard-dg2: NOTRUN -> [SKIP][85] ([i915#5176]) +5 similar issues [85]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-7/igt@kms_plane_scaling@plane-downscale-with-pixel-format-factor-0-25@pipe-a-hdmi-a-3.html * igt@kms_plane_scaling@plane-scaler-with-clipping-clamping-rotation@pipe-a-vga-1: - shard-snb: NOTRUN -> [SKIP][86] ([fdo#109271]) +48 similar issues [86]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-snb4/igt@kms_plane_scaling@plane-scaler-with-clipping-clamping-rotation@pipe-a-vga-1.html * igt@kms_plane_scaling@plane-upscale-with-rotation-20x20@pipe-a-hdmi-a-1: - shard-rkl: NOTRUN -> [SKIP][87] ([i915#5176]) +2 similar issues [87]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-rkl-7/igt@kms_plane_scaling@plane-upscale-with-rotation-20x20@pipe-a-hdmi-a-1.html * igt@kms_plane_scaling@planes-downscale-factor-0-25-upscale-20x20@pipe-d-dp-2: - shard-dg2: NOTRUN -> [SKIP][88] ([i915#4579] / [i915#5235]) +5 similar issues [88]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-12/igt@kms_plane_scaling@planes-downscale-factor-0-25-upscale-20x20@pipe-d-dp-2.html * igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-25@pipe-a-hdmi-a-1: - shard-rkl: NOTRUN -> [SKIP][89] ([i915#5235]) [89]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-rkl-7/igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-25@pipe-a-hdmi-a-1.html * igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-25@pipe-b-hdmi-a-1: - shard-rkl: NOTRUN -> [SKIP][90] ([i915#4579] / [i915#5235]) [90]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-rkl-7/igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-25@pipe-b-hdmi-a-1.html * igt@kms_plane_scaling@planes-upscale-20x20-downscale-factor-0-25@pipe-b-dp-2: - shard-dg2: NOTRUN -> [SKIP][91] ([i915#5235]) +17 similar issues [91]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-12/igt@kms_plane_scaling@planes-upscale-20x20-downscale-factor-0-25@pipe-b-dp-2.html * igt@kms_psr2_su@frontbuffer-xrgb8888: - shard-dg2: NOTRUN -> [SKIP][92] ([i915#658]) [92]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-8/igt@kms_psr2_su@frontbuffer-xrgb8888.html * igt@kms_psr@suspend: - shard-dg2: NOTRUN -> [SKIP][93] ([i915#1072]) [93]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-10/igt@kms_psr@suspend.html * igt@kms_rotation_crc@sprite-rotation-90-pos-100-0: - shard-dg2: NOTRUN -> [SKIP][94] ([i915#4235]) [94]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-5/igt@kms_rotation_crc@sprite-rotation-90-pos-100-0.html * igt@kms_setmode@basic@pipe-a-vga-1: - shard-snb: NOTRUN -> [FAIL][95] ([i915#5465]) +1 similar issue [95]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-snb6/igt@kms_setmode@basic@pipe-a-vga-1.html * igt@kms_sysfs_edid_timing: - shard-dg2: [PASS][96] -> [FAIL][97] ([IGT#2]) [96]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/shard-dg2-11/igt@kms_sysfs_edid_timing.html [97]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-8/igt@kms_sysfs_edid_timing.html * igt@kms_tv_load_detect@load-detect: - shard-dg2: NOTRUN -> [SKIP][98] ([fdo#109309]) [98]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-5/igt@kms_tv_load_detect@load-detect.html * igt@kms_vblank@pipe-c-query-busy: - shard-rkl: NOTRUN -> [SKIP][99] ([i915#4070] / [i915#6768]) [99]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-rkl-7/igt@kms_vblank@pipe-c-query-busy.html * igt@kms_vrr@flipline: - shard-rkl: NOTRUN -> [SKIP][100] ([i915#3555] / [i915#4579]) +1 similar issue [100]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-rkl-1/igt@kms_vrr@flipline.html * igt@perf_pmu@rc6@other-idle-gt0: - shard-dg2: NOTRUN -> [SKIP][101] ([i915#8516]) [101]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-11/igt@perf_pmu@rc6@other-idle-gt0.html * igt@prime_vgem@basic-fence-read: - shard-dg2: NOTRUN -> [SKIP][102] ([i915#3291] / [i915#3708]) [102]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-8/igt@prime_vgem@basic-fence-read.html - shard-rkl: NOTRUN -> [SKIP][103] ([fdo#109295] / [i915#3291] / [i915#3708]) [103]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-rkl-7/igt@prime_vgem@basic-fence-read.html * igt@v3d/v3d_perfmon@create-perfmon-exceed: - shard-tglu: NOTRUN -> [SKIP][104] ([fdo#109315] / [i915#2575]) [104]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-tglu-8/igt@v3d/v3d_perfmon@create-perfmon-exceed.html * igt@v3d/v3d_submit_cl@bad-multisync-extension: - shard-rkl: NOTRUN -> [SKIP][105] ([fdo#109315]) [105]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-rkl-1/igt@v3d/v3d_submit_cl@bad-multisync-extension.html * igt@v3d/v3d_submit_cl@simple-flush-cache: - shard-dg2: NOTRUN -> [SKIP][106] ([i915#2575]) +2 similar issues [106]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-11/igt@v3d/v3d_submit_cl@simple-flush-cache.html * igt@vc4/vc4_dmabuf_poll@poll-read-waits-until-write-done: - shard-rkl: NOTRUN -> [SKIP][107] ([i915#7711]) [107]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-rkl-4/igt@vc4/vc4_dmabuf_poll@poll-read-waits-until-write-done.html * igt@vc4/vc4_perfmon@get-values-invalid-perfmon: - shard-dg2: NOTRUN -> [SKIP][108] ([i915#7711]) +2 similar issues [108]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-1/igt@vc4/vc4_perfmon@get-values-invalid-perfmon.html #### Possible fixes #### * igt@drm_fdinfo@most-busy-idle-check-all@rcs0: - shard-rkl: [FAIL][109] ([i915#7742]) -> [PASS][110] [109]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/shard-rkl-1/igt@drm_fdinfo@most-busy-idle-check-all@rcs0.html [110]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-rkl-1/igt@drm_fdinfo@most-busy-idle-check-all@rcs0.html * igt@gem_barrier_race@remote-request@rcs0: - shard-apl: [ABORT][111] ([i915#7461] / [i915#8211] / [i915#8234]) -> [PASS][112] [111]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/shard-apl4/igt@gem_barrier_race@remote-request@rcs0.html [112]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-apl6/igt@gem_barrier_race@remote-request@rcs0.html * igt@gem_create@hog-create@smem0: - shard-dg2: [FAIL][113] ([i915#5892] / [i915#7679]) -> [PASS][114] [113]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/shard-dg2-3/igt@gem_create@hog-create@smem0.html [114]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-8/igt@gem_create@hog-create@smem0.html * igt@gem_exec_balancer@full-pulse: - shard-dg2: [FAIL][115] ([i915#6032]) -> [PASS][116] [115]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/shard-dg2-6/igt@gem_exec_balancer@full-pulse.html [116]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-5/igt@gem_exec_balancer@full-pulse.html * igt@gem_exec_fair@basic-deadline: - shard-glk: [FAIL][117] ([i915#2846]) -> [PASS][118] [117]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/shard-glk4/igt@gem_exec_fair@basic-deadline.html [118]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-glk9/igt@gem_exec_fair@basic-deadline.html * igt@gem_exec_fair@basic-none@bcs0: - shard-rkl: [FAIL][119] ([i915#2842]) -> [PASS][120] [119]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/shard-rkl-1/igt@gem_exec_fair@basic-none@bcs0.html [120]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-rkl-7/igt@gem_exec_fair@basic-none@bcs0.html * igt@gem_exec_fair@basic-pace-solo@rcs0: - shard-apl: [FAIL][121] ([i915#2842]) -> [PASS][122] [121]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/shard-apl3/igt@gem_exec_fair@basic-pace-solo@rcs0.html [122]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-apl4/igt@gem_exec_fair@basic-pace-solo@rcs0.html * igt@gem_exec_suspend@basic-s4-devices@lmem0: - shard-dg2: [ABORT][123] ([i915#7975] / [i915#8213] / [i915#8682]) -> [PASS][124] [123]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/shard-dg2-10/igt@gem_exec_suspend@basic-s4-devices@lmem0.html [124]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-11/igt@gem_exec_suspend@basic-s4-devices@lmem0.html * igt@gem_lmem_swapping@smem-oom@lmem0: - {shard-dg1}: [DMESG-WARN][125] ([i915#4936] / [i915#5493]) -> [PASS][126] [125]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/shard-dg1-17/igt@gem_lmem_swapping@smem-oom@lmem0.html [126]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg1-15/igt@gem_lmem_swapping@smem-oom@lmem0.html * igt@i915_module_load@reload: - shard-snb: [ABORT][127] ([i915#4528]) -> [PASS][128] [127]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/shard-snb6/igt@i915_module_load@reload.html [128]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-snb6/igt@i915_module_load@reload.html * igt@i915_pm_dc@dc9-dpms: - shard-tglu: [SKIP][129] ([i915#4281]) -> [PASS][130] [129]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/shard-tglu-5/igt@i915_pm_dc@dc9-dpms.html [130]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-tglu-4/igt@i915_pm_dc@dc9-dpms.html * igt@i915_pm_lpsp@kms-lpsp@kms-lpsp-hdmi-a: - {shard-dg1}: [SKIP][131] ([i915#1937] / [i915#4579]) -> [PASS][132] [131]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/shard-dg1-13/igt@i915_pm_lpsp@kms-lpsp@kms-lpsp-hdmi-a.html [132]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg1-19/igt@i915_pm_lpsp@kms-lpsp@kms-lpsp-hdmi-a.html * igt@i915_pm_rpm@dpms-lpsp: - shard-rkl: [SKIP][133] ([i915#1397]) -> [PASS][134] [133]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/shard-rkl-2/igt@i915_pm_rpm@dpms-lpsp.html [134]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-rkl-7/igt@i915_pm_rpm@dpms-lpsp.html * igt@i915_pm_rpm@dpms-mode-unset-non-lpsp: - shard-dg2: [SKIP][135] ([i915#1397]) -> [PASS][136] +2 similar issues [135]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/shard-dg2-10/igt@i915_pm_rpm@dpms-mode-unset-non-lpsp.html [136]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-7/igt@i915_pm_rpm@dpms-mode-unset-non-lpsp.html * igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-0-async-flip: - shard-rkl: [FAIL][137] ([i915#3743]) -> [PASS][138] [137]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/shard-rkl-7/igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-0-async-flip.html [138]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-rkl-4/igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-0-async-flip.html * igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-mmap-cpu: - shard-dg2: [FAIL][139] ([i915#6880]) -> [PASS][140] [139]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/shard-dg2-6/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-mmap-cpu.html [140]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-7/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-mmap-cpu.html * igt@kms_hdmi_inject@inject-audio: - shard-tglu: [SKIP][141] ([i915#433]) -> [PASS][142] [141]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/shard-tglu-3/igt@kms_hdmi_inject@inject-audio.html [142]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-tglu-10/igt@kms_hdmi_inject@inject-audio.html * igt@kms_vblank@pipe-a-ts-continuation-suspend: - shard-dg2: [FAIL][143] ([fdo#103375]) -> [PASS][144] +1 similar issue [143]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/shard-dg2-5/igt@kms_vblank@pipe-a-ts-continuation-suspend.html [144]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-5/igt@kms_vblank@pipe-a-ts-continuation-suspend.html * igt@perf_pmu@busy-double-start@ccs3: - shard-dg2: [FAIL][145] ([i915#4349]) -> [PASS][146] +3 similar issues [145]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/shard-dg2-6/igt@perf_pmu@busy-double-start@ccs3.html [146]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-7/igt@perf_pmu@busy-double-start@ccs3.html * igt@perf_pmu@busy-double-start@vecs0: - {shard-dg1}: [FAIL][147] ([i915#4349]) -> [PASS][148] +2 similar issues [147]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/shard-dg1-16/igt@perf_pmu@busy-double-start@vecs0.html [148]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg1-17/igt@perf_pmu@busy-double-start@vecs0.html #### Warnings #### * igt@kms_content_protection@content_type_change: - shard-dg2: [SKIP][149] ([i915#4579] / [i915#7118]) -> [SKIP][150] ([i915#4579] / [i915#7118] / [i915#7162]) [149]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/shard-dg2-7/igt@kms_content_protection@content_type_change.html [150]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-dg2-11/igt@kms_content_protection@content_type_change.html * igt@kms_fbcon_fbt@psr-suspend: - shard-rkl: [SKIP][151] ([i915#3955]) -> [SKIP][152] ([fdo#110189] / [i915#3955]) [151]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/shard-rkl-6/igt@kms_fbcon_fbt@psr-suspend.html [152]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-rkl-1/igt@kms_fbcon_fbt@psr-suspend.html * igt@kms_force_connector_basic@force-load-detect: - shard-rkl: [SKIP][153] ([fdo#109285] / [i915#4098]) -> [SKIP][154] ([fdo#109285]) [153]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13336/shard-rkl-2/igt@kms_force_connector_basic@force-load-detect.html [154]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/shard-rkl-7/igt@kms_force_connector_basic@force-load-detect.html {name}: This element is suppressed. This means it is ignored when computing the status of the difference (SUCCESS, WARNING, or FAILURE). [IGT#2]: https://gitlab.freedesktop.org/drm/igt-gpu-tools/issues/2 [fdo#103375]: https://bugs.freedesktop.org/show_bug.cgi?id=103375 [fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271 [fdo#109274]: https://bugs.freedesktop.org/show_bug.cgi?id=109274 [fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285 [fdo#109289]: https://bugs.freedesktop.org/show_bug.cgi?id=109289 [fdo#109295]: https://bugs.freedesktop.org/show_bug.cgi?id=109295 [fdo#109309]: https://bugs.freedesktop.org/show_bug.cgi?id=109309 [fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315 [fdo#110189]: https://bugs.freedesktop.org/show_bug.cgi?id=110189 [fdo#110723]: https://bugs.freedesktop.org/show_bug.cgi?id=110723 [fdo#111767]: https://bugs.freedesktop.org/show_bug.cgi?id=111767 [fdo#111825]: https://bugs.freedesktop.org/show_bug.cgi?id=111825 [fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827 [fdo#112283]: https://bugs.freedesktop.org/show_bug.cgi?id=112283 [i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072 [i915#1099]: https://gitlab.freedesktop.org/drm/intel/issues/1099 [i915#1397]: https://gitlab.freedesktop.org/drm/intel/issues/1397 [i915#1825]: https://gitlab.freedesktop.org/drm/intel/issues/1825 [i915#1937]: https://gitlab.freedesktop.org/drm/intel/issues/1937 [i915#2346]: https://gitlab.freedesktop.org/drm/intel/issues/2346 [i915#2575]: https://gitlab.freedesktop.org/drm/intel/issues/2575 [i915#2587]: https://gitlab.freedesktop.org/drm/intel/issues/2587 [i915#2672]: https://gitlab.freedesktop.org/drm/intel/issues/2672 [i915#2842]: https://gitlab.freedesktop.org/drm/intel/issues/2842 [i915#2846]: https://gitlab.freedesktop.org/drm/intel/issues/2846 [i915#2856]: https://gitlab.freedesktop.org/drm/intel/issues/2856 [i915#3023]: https://gitlab.freedesktop.org/drm/intel/issues/3023 [i915#3281]: https://gitlab.freedesktop.org/drm/intel/issues/3281 [i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282 [i915#3291]: https://gitlab.freedesktop.org/drm/intel/issues/3291 [i915#3297]: https://gitlab.freedesktop.org/drm/intel/issues/3297 [i915#3359]: https://gitlab.freedesktop.org/drm/intel/issues/3359 [i915#3458]: https://gitlab.freedesktop.org/drm/intel/issues/3458 [i915#3539]: https://gitlab.freedesktop.org/drm/intel/issues/3539 [i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555 [i915#3591]: https://gitlab.freedesktop.org/drm/intel/issues/3591 [i915#3689]: https://gitlab.freedesktop.org/drm/intel/issues/3689 [i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708 [i915#3734]: https://gitlab.freedesktop.org/drm/intel/issues/3734 [i915#3743]: https://gitlab.freedesktop.org/drm/intel/issues/3743 [i915#3886]: https://gitlab.freedesktop.org/drm/intel/issues/3886 [i915#3955]: https://gitlab.freedesktop.org/drm/intel/issues/3955 [i915#4070]: https://gitlab.freedesktop.org/drm/intel/issues/4070 [i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077 [i915#4078]: https://gitlab.freedesktop.org/drm/intel/issues/4078 [i915#4087]: https://gitlab.freedesktop.org/drm/intel/issues/4087 [i915#4098]: https://gitlab.freedesktop.org/drm/intel/issues/4098 [i915#4212]: https://gitlab.freedesktop.org/drm/intel/issues/4212 [i915#4235]: https://gitlab.freedesktop.org/drm/intel/issues/4235 [i915#4281]: https://gitlab.freedesktop.org/drm/intel/issues/4281 [i915#433]: https://gitlab.freedesktop.org/drm/intel/issues/433 [i915#4349]: https://gitlab.freedesktop.org/drm/intel/issues/4349 [i915#4391]: https://gitlab.freedesktop.org/drm/intel/issues/4391 [i915#4423]: https://gitlab.freedesktop.org/drm/intel/issues/4423 [i915#4525]: https://gitlab.freedesktop.org/drm/intel/issues/4525 [i915#4528]: https://gitlab.freedesktop.org/drm/intel/issues/4528 [i915#4538]: https://gitlab.freedesktop.org/drm/intel/issues/4538 [i915#4579]: https://gitlab.freedesktop.org/drm/intel/issues/4579 [i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613 [i915#4771]: https://gitlab.freedesktop.org/drm/intel/issues/4771 [i915#4852]: https://gitlab.freedesktop.org/drm/intel/issues/4852 [i915#4936]: https://gitlab.freedesktop.org/drm/intel/issues/4936 [i915#5176]: https://gitlab.freedesktop.org/drm/intel/issues/5176 [i915#5190]: https://gitlab.freedesktop.org/drm/intel/issues/5190 [i915#5235]: https://gitlab.freedesktop.org/drm/intel/issues/5235 [i915#5286]: https://gitlab.freedesktop.org/drm/intel/issues/5286 [i915#5354]: https://gitlab.freedesktop.org/drm/intel/issues/5354 [i915#5465]: https://gitlab.freedesktop.org/drm/intel/issues/5465 [i915#5493]: https://gitlab.freedesktop.org/drm/intel/issues/5493 [i915#5784]: https://gitlab.freedesktop.org/drm/intel/issues/5784 [i915#5892]: https://gitlab.freedesktop.org/drm/intel/issues/5892 [i915#6032]: https://gitlab.freedesktop.org/drm/intel/issues/6032 [i915#6095]: https://gitlab.freedesktop.org/drm/intel/issues/6095 [i915#6122]: https://gitlab.freedesktop.org/drm/intel/issues/6122 [i915#658]: https://gitlab.freedesktop.org/drm/intel/issues/658 [i915#6768]: https://gitlab.freedesktop.org/drm/intel/issues/6768 [i915#6880]: https://gitlab.freedesktop.org/drm/intel/issues/6880 [i915#6953]: https://gitlab.freedesktop.org/drm/intel/issues/6953 [i915#7061]: https://gitlab.freedesktop.org/drm/intel/issues/7061 [i915#7116]: https://gitlab.freedesktop.org/drm/intel/issues/7116 [i915#7118]: https://gitlab.freedesktop.org/drm/intel/issues/7118 [i915#7162]: https://gitlab.freedesktop.org/drm/intel/issues/7162 [i915#7173]: https://gitlab.freedesktop.org/drm/intel/issues/7173 [i915#7461]: https://gitlab.freedesktop.org/drm/intel/issues/7461 [i915#7561]: https://gitlab.freedesktop.org/drm/intel/issues/7561 [i915#7679]: https://gitlab.freedesktop.org/drm/intel/issues/7679 [i915#7711]: https://gitlab.freedesktop.org/drm/intel/issues/7711 [i915#7742]: https://gitlab.freedesktop.org/drm/intel/issues/7742 [i915#7828]: https://gitlab.freedesktop.org/drm/intel/issues/7828 [i915#79]: https://gitlab.freedesktop.org/drm/intel/issues/79 [i915#7975]: https://gitlab.freedesktop.org/drm/intel/issues/7975 [i915#8211]: https://gitlab.freedesktop.org/drm/intel/issues/8211 [i915#8213]: https://gitlab.freedesktop.org/drm/intel/issues/8213 [i915#8234]: https://gitlab.freedesktop.org/drm/intel/issues/8234 [i915#8292]: https://gitlab.freedesktop.org/drm/intel/issues/8292 [i915#8399]: https://gitlab.freedesktop.org/drm/intel/issues/8399 [i915#8502]: https://gitlab.freedesktop.org/drm/intel/issues/8502 [i915#8516]: https://gitlab.freedesktop.org/drm/intel/issues/8516 [i915#8555]: https://gitlab.freedesktop.org/drm/intel/issues/8555 [i915#8661]: https://gitlab.freedesktop.org/drm/intel/issues/8661 [i915#8682]: https://gitlab.freedesktop.org/drm/intel/issues/8682 [i915#8708]: https://gitlab.freedesktop.org/drm/intel/issues/8708 Build changes ------------- * CI: CI-20190529 -> None * IGT: IGT_7356 -> IGTPW_9304 * Piglit: piglit_4509 -> None CI-20190529: 20190529 CI_DRM_13336: 1423126050a5bb0317e86e61395e4413e0ad013b @ git://anongit.freedesktop.org/gfx-ci/linux IGTPW_9304: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9304/index.html IGT_7356: 66452bb0118e8d3a78d054cef50a60a9858a00a9 @ 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_9304/index.html [-- Attachment #2: Type: text/html, Size: 52344 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [igt-dev] [PATCH] tests/amdgpu/amd_checksum_region: Add test for checksum_region 2023-06-29 15:10 [igt-dev] [PATCH] tests/amdgpu/amd_checksum_region: Add test for checksum_region Alan Liu ` (2 preceding siblings ...) 2023-06-30 3:19 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork @ 2023-06-30 16:02 ` Kamil Konieczny 3 siblings, 0 replies; 5+ messages in thread From: Kamil Konieczny @ 2023-06-30 16:02 UTC (permalink / raw) To: igt-dev; +Cc: Alan Liu, Lili.Gong Hi Alan, On 2023-06-29 at 23:10:01 +0800, Alan Liu wrote: > Introduce IGT of checksum_region. Checksum_region allows userspace to > set a region on display and get the CRC data accordingly via CRTC > properties: CHECKSUM_REGION and CEHCKSUM_CRC. > This IGT provides tests to validate if region can be set correctly and > also the corresponding CRC data is as expect. Run your test with --describe option like: sudo ./amd_checksum_region --describe > > Signed-off-by: Alan Liu <HaoPing.Liu@amd.com> > --- > include/drm-uapi/drm_mode.h | 42 ++ ------------------- ^^^^^^^^^^ Please send it as separate patch with title like: drm-uapi/drm_mode: sync with latest uAPI changes > lib/igt_kms.c | 2 + > lib/igt_kms.h | 2 + > tests/amdgpu/amd_checksum_region.c | 648 +++++++++++++++++++++++++++++ > tests/amdgpu/meson.build | 1 + > 5 files changed, 695 insertions(+) > create mode 100644 tests/amdgpu/amd_checksum_region.c > > diff --git a/include/drm-uapi/drm_mode.h b/include/drm-uapi/drm_mode.h > index e4a2570a6..dec073921 100644 > --- a/include/drm-uapi/drm_mode.h > +++ b/include/drm-uapi/drm_mode.h > @@ -1209,6 +1209,48 @@ struct drm_mode_rect { > __s32 y2; > }; > > +/** > + * struct drm_checksum_region - The enablement and region of checksum_region > + * @x_start: Horizontal starting coordinate of the region. > + * @y_start: Vertical starting coordinate of the region. > + * @x_end: Horizontal ending coordinate of the region. > + * @y_end: Vertical ending coordinate of the region. > + * @checksum_region_enable: To enable or disable checksum_region. > + * > + * Userspace uses this structure to configure the region and enablement for > + * checksum_region. Userspace should not submit a region out of the displayable > + * region because there is nothing to display and need protection. > + */ > +struct drm_checksum_region { > + __u32 x_start; > + __u32 y_start; > + __u32 x_end; > + __u32 y_end; > + __u8 checksum_region_enable; > + __u8 pad[7]; > +}; > + > +/** > + * struct drm_checksum_crc - The CRC value of the corresponding checksum region. > + * @crc_r: CRC value of red color. > + * @crc_g: CRC value of green color. > + * @crc_b: CRC value of blue color. > + * @frame_count: a referenced frame count to indicate which frame the CRC values > + * are generated at. > + * > + * Userspace uses this structure to retrieve the CRC values of the current > + * checksum region. @frame_count will be reset once a new region is updated or > + * it reaches a maximum value. Currently these CRC values are designed to > + * be validated with pre-saved CRC values, so userspace doesn't need to concern > + * about the algorithm used to compute the CRC. > + */ > +struct drm_checksum_crc { > + __u32 crc_r; > + __u32 crc_g; > + __u32 crc_b; > + __u32 frame_count; > +}; > + > #if defined(__cplusplus) > } > #endif > diff --git a/lib/igt_kms.c b/lib/igt_kms.c > index f2b0eed57..804a71e9d 100644 > --- a/lib/igt_kms.c > +++ b/lib/igt_kms.c > @@ -627,6 +627,8 @@ const char * const igt_crtc_prop_names[IGT_NUM_CRTC_PROPS] = { > [IGT_CRTC_OUT_FENCE_PTR] = "OUT_FENCE_PTR", > [IGT_CRTC_VRR_ENABLED] = "VRR_ENABLED", > [IGT_CRTC_SCALING_FILTER] = "SCALING_FILTER", > + [IGT_CRTC_CHECKSUM_REGION] = "CHECKSUM_REGION", > + [IGT_CRTC_CHECKSUM_CRC] = "CHECKSUM_CRC", > }; > > const char * const igt_connector_prop_names[IGT_NUM_CONNECTOR_PROPS] = { > diff --git a/lib/igt_kms.h b/lib/igt_kms.h > index 1b6988c17..80a5817e4 100644 > --- a/lib/igt_kms.h > +++ b/lib/igt_kms.h > @@ -139,6 +139,8 @@ enum igt_atomic_crtc_properties { > IGT_CRTC_OUT_FENCE_PTR, > IGT_CRTC_VRR_ENABLED, > IGT_CRTC_SCALING_FILTER, > + IGT_CRTC_CHECKSUM_REGION, > + IGT_CRTC_CHECKSUM_CRC, > IGT_NUM_CRTC_PROPS > }; > > diff --git a/tests/amdgpu/amd_checksum_region.c b/tests/amdgpu/amd_checksum_region.c > new file mode 100644 > index 000000000..8b97eb8e3 > --- /dev/null > +++ b/tests/amdgpu/amd_checksum_region.c > @@ -0,0 +1,648 @@ > +/* > + * Copyright 2019 Advanced Micro Devices, Inc. > + * Use SPDX MIT licence, see other .c/.h files with SPDX. Use checkpatch.pl script from Linux kernel. > + * Permission is hereby granted, free of charge, to any person obtaining a > + * copy of this software and associated documentation files (the "Software"), > + * to deal in the Software without restriction, including without limitation > + * the rights to use, copy, modify, merge, publish, distribute, sublicense, > + * and/or sell copies of the Software, and to permit persons to whom the > + * Software is furnished to do so, subject to the following conditions: > + * > + * The above copyright notice and this permission notice shall be included in > + * all copies or substantial portions of the Software. > + * > + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR > + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, > + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL > + * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR > + * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, > + * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR > + * OTHER DEALINGS IN THE SOFTWARE. > + */ > + > +#include "igt.h" > +#include "igt_sysfs.h" Place igt headers after system ones (below). > +#include <fcntl.h> > +#include <string.h> > +#include <stdio.h> > +#include <unistd.h> > +#include <stdlib.h> > + > +typedef uint64_t u64; > +typedef uint32_t u32; > +typedef uint8_t u8; > + > +#define CRTC_SET_NUM 2 > +int crtc_set_num = 0; > + > +enum roi_type { > + ROI_TYPE_FIRST, // 100, 100, 130, 130 > + ROI_TYPE_BOTTOM, // 1060, 100, 1090, 130 > + ROI_TYPE_RIGHT, // 100, 130, 130, 160 > + ROI_TYPE_RIGHT_BOTTOM, // 1060, 130, 1090, 160 > + ROI_TYPE_NUM, > +}; > + > +typedef struct drm_checksum_region roi_t; > +typedef struct drm_checksum_crc crc_t; > + > +struct data_basic { > + struct { > + igt_fb_t fb; > + roi_t roi[ROI_TYPE_NUM]; > + } input; > + struct { > + roi_t *roi[ROI_TYPE_NUM]; > + crc_t *crc[ROI_TYPE_NUM]; > + crc_t *crc_hold[ROI_TYPE_NUM]; > + } output; > +}; > + > +struct data_switching { > + struct { > + igt_fb_t fb[2]; > + roi_t roi_window; > + roi_t roi_full_screen; > + } input; > + struct { > + crc_t *crc_window[2]; > + crc_t *crc_full_screen[2]; > + } output; > +}; > + > +struct data_suspend { > + struct { > + igt_fb_t fb; > + roi_t roi; > + } input; > + struct { > + crc_t *crc[2]; > + } output; > +}; > + > +typedef struct __set { > + u8 crtc_id; > + int connector_type; > + igt_plane_t *primary; > + igt_output_t *output; > + igt_pipe_t *pipe; > + igt_pipe_crc_t *pipe_crc; > + enum pipe pipe_id; > + void *data; > +} set_t; > + > +/* global configuration */ > +typedef struct conf { > + struct igt_fb pattern_fb_info; > + int fd; > + igt_display_t display; > + bool use_virtual_connector; > + set_t set[CRTC_SET_NUM]; > +} conf_t; > + > +/* Use mode 1920x1080 */ > +static drmModeModeInfo _mode = { > + 148500, > + 1920, 2008, 2052, 2200, 0, > + 1080, 1084, 1089, 1125, 0, > + 60, DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC| DRM_MODE_FLAG_PIC_AR_16_9, > + 0x40, "1920x1080" > +}; > + > +static void wait_vblanks(int fd, int n_vblanks) > +{ > + drmVBlank vblank; > + > + if (!n_vblanks) > + return; > + > + vblank.request.type = DRM_VBLANK_RELATIVE; > + vblank.request.sequence = n_vblanks; > + vblank.request.signal = 0; > + drmWaitVBlank(fd, &vblank); > +} > + > +static void draw_color_roi(igt_fb_t *fb, roi_t *roi, > + int r, int g, int b) > +{ > + cairo_t *cr = igt_get_cairo_ctx(fb->fd, fb); > + > + igt_paint_color(cr, > + roi->x_start, roi->y_start, roi->x_end, roi->y_end, > + r, g, b); > + igt_put_cairo_ctx(cr); > +} > + > +/* color pattern for DP */ > +static void draw_color_pattern_DP(igt_fb_t *fb) > +{ > + cairo_t *cr = igt_get_cairo_ctx(fb->fd, fb); > + > + igt_paint_color(cr, 0, 0, fb->width/2, fb->height, 100, 255, 0); > + igt_paint_color(cr, fb->width/2, 0, fb->width, fb->height, 0, 133, 204); > + igt_put_cairo_ctx(cr); > +} > + > +/* color pattern for HDMI */ > +static void draw_color_pattern_HDMI(igt_fb_t *fb) > +{ > + cairo_t *cr = igt_get_cairo_ctx(fb->fd, fb); > + > + igt_paint_color(cr, 0, 0, fb->width/2, fb->height, 0, 200, 223); > + igt_paint_color(cr, fb->width/2, 0, fb->width, fb->height, 223, 200, 1); > + igt_put_cairo_ctx(cr); > +} > + > +/* prepare conf and set */ > +static void test_init(conf_t *conf) > +{ > + igt_display_t *display = &conf->display; > + set_t *set; > + drmModeConnector *conn; > + drmModeModeInfo *mode = &_mode; > + > + igt_info("board has %d outputs\n", display->n_outputs); > + > + for (int i=0; i < display->n_outputs; i++) { > + conn = display->outputs[i].config.connector; > + if (conn->connection != DRM_MODE_CONNECTED) > + continue; > + > + if (conn->connector_type != DRM_MODE_CONNECTOR_HDMIA && > + conn->connector_type != DRM_MODE_CONNECTOR_DisplayPort) > + continue; > + > + set = &conf->set[crtc_set_num]; > + set->connector_type = conn->connector_type; > + set->crtc_id = i; > + set->pipe_id = i; > + set->pipe = &display->pipes[i]; > + set->primary = igt_pipe_get_plane_type(set->pipe, DRM_PLANE_TYPE_PRIMARY); > + set->output = &display->outputs[i]; > + > + igt_output_set_pipe(set->output, set->pipe_id); > + igt_output_override_mode(set->output, mode); > + > + crtc_set_num += 1; > + if (crtc_set_num == CRTC_SET_NUM) > + break; > + } > + > + igt_assert(crtc_set_num > 0); > + igt_info("crtc_set_num = %d\n", crtc_set_num); > +} > + > +static void print_crc(crc_t *crc) > +{ > + igt_info("crc: 0x%04x 0x%04x 0x%04x, %04d\n", > + crc->crc_r, crc->crc_g, crc->crc_b, crc->frame_count); > +} > + > +static bool roi_compare(roi_t *a, roi_t *b) > +{ > + return (a->x_start == b->x_start && > + a->y_start == b->y_start && > + a->x_end == b->x_end && > + a->y_end == b->y_end); > +} > + > +static bool crc_compare(crc_t *a, crc_t *b) > +{ > + return (a->crc_r == b->crc_r && > + a->crc_g == b->crc_g && > + a->crc_b == b->crc_b); > +} > + > +static void > +disable_checksum_region_from_property(conf_t *conf) > +{ > + set_t *set; > + roi_t roi = {0}; > + > + for (int i = 0; i < crtc_set_num; i++) { > + set = &conf->set[i]; > + igt_require(igt_pipe_obj_has_prop(set->pipe, IGT_CRTC_CHECKSUM_REGION)); > + igt_pipe_obj_replace_prop_blob(set->pipe, IGT_CRTC_CHECKSUM_REGION, &roi, sizeof(roi)); > + } > +} > + > +static void > +set_roi_from_property(igt_pipe_t *pipe, roi_t *roi) > +{ > + igt_require(igt_pipe_obj_has_prop(pipe, IGT_CRTC_CHECKSUM_REGION)); > + igt_pipe_obj_replace_prop_blob(pipe, IGT_CRTC_CHECKSUM_REGION, roi, sizeof(roi_t)); > +} > + > +static void > +set_roi(conf_t *conf, set_t *set, roi_t *roi) > +{ > + set_roi_from_property(set->pipe, roi); > + igt_info("Set roi, x_start:%d, y_start:%d, x_end:%d, y_end: %d", > + roi->x_start, roi->y_start, roi->x_end, roi->y_end); > + igt_info("\t"); > +} > + > +static roi_t * > +get_roi_from_property(int fd, igt_pipe_t *pipe) > +{ > + drmModePropertyBlobPtr blob; > + u64 blob_id = igt_pipe_obj_get_prop(pipe, IGT_CRTC_CHECKSUM_REGION); > + > + igt_require(igt_pipe_obj_has_prop(pipe, IGT_CRTC_CHECKSUM_REGION)); > + > + blob = drmModeGetPropertyBlob(fd, blob_id); > + if (!blob) > + return NULL; > + > + return (roi_t *) blob->data; > +} > + > +static void > +get_roi(conf_t *conf, set_t *set, roi_t **roi) > +{ > + *roi = get_roi_from_property(conf->display.drm_fd, set->pipe); > + if (*roi) { > + igt_info("get ROI from properties: "); > + igt_info("0x%04x 0x%04x 0x%04x, 0x%04x, %d", > + (*roi)->x_start, (*roi)->y_start, > + (*roi)->x_end, (*roi)->y_end, > + (*roi)->checksum_region_enable); > + } > + igt_info("\t"); > +} > + > +static crc_t * > +get_crc_from_property(int fd, igt_pipe_t *pipe) > +{ > + drmModePropertyBlobPtr blob; > + u64 blob_id = igt_pipe_obj_get_prop(pipe, IGT_CRTC_CHECKSUM_CRC); > + > + igt_require(igt_pipe_obj_has_prop(pipe, IGT_CRTC_CHECKSUM_CRC)); > + > + blob = drmModeGetPropertyBlob(fd, blob_id); > + if (!blob) > + return NULL; > + > + return (crc_t *) blob->data; > +} > + > +static void > +get_crc(conf_t *conf, set_t *set, crc_t **crc) > +{ > + *crc = get_crc_from_property(conf->display.drm_fd, set->pipe); > + if (*crc) { > + igt_info("get CRC from properties: "); > + igt_info("0x%04x 0x%04x 0x%04x, %04d", > + (*crc)->crc_r, (*crc)->crc_g, (*crc)->crc_b, (*crc)->frame_count); > + } > + igt_info("\t"); > +} > + > +static void > +test_basic_init(conf_t *conf, struct data_basic *_data) > +{ > + drmModeModeInfo *mode = &_mode; > + set_t *set; > + struct data_basic *data; > + > + for (int i=0; i < crtc_set_num; i++) { > + set = &conf->set[i]; > + data = &_data[i]; > + > + /* init data */ > + data->input.roi[ROI_TYPE_FIRST].x_start = 100; > + data->input.roi[ROI_TYPE_FIRST].y_start = 100; > + data->input.roi[ROI_TYPE_FIRST].x_end = 130; > + data->input.roi[ROI_TYPE_FIRST].y_end = 130; > + data->input.roi[ROI_TYPE_FIRST].checksum_region_enable= 1; > + > + data->input.roi[ROI_TYPE_RIGHT].x_start = 1060; > + data->input.roi[ROI_TYPE_RIGHT].y_start = 100; > + data->input.roi[ROI_TYPE_RIGHT].x_end = 1100; > + data->input.roi[ROI_TYPE_RIGHT].y_end = 130; > + data->input.roi[ROI_TYPE_RIGHT].checksum_region_enable= 1; > + > + data->input.roi[ROI_TYPE_BOTTOM].x_start = 100; > + data->input.roi[ROI_TYPE_BOTTOM].y_start = 130; > + data->input.roi[ROI_TYPE_BOTTOM].x_end = 130; > + data->input.roi[ROI_TYPE_BOTTOM].y_end = 160; > + data->input.roi[ROI_TYPE_BOTTOM].checksum_region_enable= 1; > + > + data->input.roi[ROI_TYPE_RIGHT_BOTTOM].x_start = 1060; > + data->input.roi[ROI_TYPE_RIGHT_BOTTOM].y_start = 130; > + data->input.roi[ROI_TYPE_RIGHT_BOTTOM].x_end = 1100; > + data->input.roi[ROI_TYPE_RIGHT_BOTTOM].y_end = 160; > + data->input.roi[ROI_TYPE_RIGHT_BOTTOM].checksum_region_enable= 1; > + > + /* paint fb */ > + igt_create_fb(conf->fd, mode->hdisplay, mode->vdisplay, DRM_FORMAT_XRGB8888, 0, &data->input.fb); > + > + if (set->connector_type == DRM_MODE_CONNECTOR_DisplayPort) > + draw_color_pattern_DP(&data->input.fb); > + else > + draw_color_pattern_HDMI(&data->input.fb); > + > + igt_plane_set_fb(set->primary, &data->input.fb); > + } > +} > + > +static void test_basic_validate(struct data_basic *_data) > +{ > + struct data_basic *data; > + roi_t *roi, *roi_return; > + crc_t **crc, **crc_hold; > + > + igt_info("************\n"); > + for (int i = 0; i < crtc_set_num; i++) { > + data = &_data[i]; > + > + for (int type = 0; type < ROI_TYPE_NUM; type++) { > + roi = &data->input.roi[type]; > + roi_return = data->output.roi[type]; > + if (!roi_compare(roi, roi_return)) > + igt_assert_f(false, "ROI values are not as expected\n"); > + } > + > + crc = data->output.crc; > + if (!crc_compare(crc[ROI_TYPE_FIRST], crc[ROI_TYPE_BOTTOM]) && > + !crc_compare(crc[ROI_TYPE_RIGHT], crc[ROI_TYPE_RIGHT_BOTTOM])) > + igt_assert_f(false, "CRC values are not as expected\n"); > + > + if (crc[ROI_TYPE_FIRST]->frame_count != 2 || > + crc[ROI_TYPE_BOTTOM]->frame_count != 2 || > + crc[ROI_TYPE_RIGHT]->frame_count != 2 || > + crc[ROI_TYPE_RIGHT_BOTTOM]->frame_count != 2) > + igt_assert_f(false, "CRC frame_count are not as expected\n"); > + > + crc_hold = data->output.crc_hold; > + if (!crc_compare(crc[ROI_TYPE_FIRST], crc_hold[ROI_TYPE_FIRST]) && > + !crc_compare(crc[ROI_TYPE_BOTTOM], crc_hold[ROI_TYPE_BOTTOM]) && > + !crc_compare(crc[ROI_TYPE_RIGHT], crc_hold[ROI_TYPE_RIGHT]) && > + !crc_compare(crc[ROI_TYPE_RIGHT_BOTTOM], crc_hold[ROI_TYPE_RIGHT_BOTTOM])) > + igt_assert_f(false, "CRC values are not as expected after 5 seconds\n"); > + > + } > + > + igt_info("Test checksum_region basic passed\n"); > +} > + > +static void > +test_basic_case(conf_t *conf, enum roi_type type, struct data_basic *data) > +{ > + set_t *set; > + roi_t *roi; > + roi_t **roi_return; > + crc_t **crc; > + > + igt_info("\n===== start to test a crc window =====\n"); > + > + /* set roi for each CRTC */ > + for (int i = 0; i < crtc_set_num; i++) { > + set = &conf->set[i]; > + roi = &data[i].input.roi[type]; > + set_roi(conf, set, roi); > + } > + igt_display_commit_atomic(&conf->display, DRM_MODE_ATOMIC_ALLOW_MODESET, NULL); // commit new ROI > + igt_info("\n"); > + > + > + /* get the crc for check */ > + for (int i = 0; i < crtc_set_num; i++) { > + set = &conf->set[i]; > + crc = &data[i].output.crc[type]; > + get_crc(conf, set, crc); > + } > + igt_info("\n"); > + > + > + /* sleep and get crc for check again*/ > + sleep(3); > + for (int i = 0; i < crtc_set_num; i++) { > + set = &conf->set[i]; > + crc = &data[i].output.crc_hold[type]; > + get_crc(conf, set, crc); > + } > + igt_info("\n"); > + > + > + /* get roi for check */ > + for (int i = 0; i < crtc_set_num; i++) { > + set = &conf->set[i]; > + roi_return = &data[i].output.roi[type]; > + get_roi(conf, set, roi_return); > + } > + igt_info("\n"); > +} > + > +static void test_fini(conf_t *conf) > +{ > + disable_checksum_region_from_property(conf); > + igt_display_commit_atomic(&conf->display, DRM_MODE_ATOMIC_ALLOW_MODESET, NULL); > +} > + > +static void > +test_checksum_region_basic(conf_t *conf) > +{ > + struct data_basic data[CRTC_SET_NUM] = {0}; > + > + /* test basic init */ > + test_basic_init(conf, data); > + > + test_basic_case(conf, ROI_TYPE_FIRST, data); > + test_basic_case(conf, ROI_TYPE_RIGHT, data); > + test_basic_case(conf, ROI_TYPE_BOTTOM, data); > + test_basic_case(conf, ROI_TYPE_RIGHT_BOTTOM, data); > + > + test_basic_validate(data); > + > + test_fini(conf); > +} > + > +static void > +test_switching_validate(struct data_switching *data) > +{ > + crc_t *crc_a, *crc_b; > + > + for (int i = 0; i < crtc_set_num; i++) { > + crc_a = data[i].output.crc_window[0]; > + crc_b = data[i].output.crc_window[1]; > + > + print_crc(crc_a); > + print_crc(crc_b); > + > + if (!crc_compare(crc_a, crc_b)) > + igt_assert_f(false, "Window crc values should be the same\n"); > + > + > + crc_a = data[i].output.crc_full_screen[0]; > + crc_b = data[i].output.crc_full_screen[1]; > + > + print_crc(crc_a); > + print_crc(crc_b); > + > + if (crc_compare(crc_a, crc_b)) > + igt_assert_f(false, "Full screen crc values should not be the same\n"); > + } > + > + igt_info("Test checksum_region switching passed\n"); > +} > + > +static void > +test_switching_init(conf_t *conf, struct data_switching *_data) > +{ > + drmModeModeInfo *mode = &_mode; > + roi_t *roi; > + struct data_switching *data; > + struct igt_fb *fb; > + > + for (int i=0; i < crtc_set_num; i++) { > + data = &_data[i]; > + > + /* crc window roi */ > + roi = &data->input.roi_window; > + roi->x_start = 100; > + roi->y_start = 100; > + roi->x_end = 130; > + roi->y_end = 130; > + roi->checksum_region_enable = 1; > + > + /* full screen roi */ > + roi = &data->input.roi_full_screen; > + roi->x_start = 0; > + roi->y_start = 0; > + roi->x_end = mode->hdisplay; > + roi->y_end = mode->vdisplay; > + roi->checksum_region_enable = 1; > + > + /* paint fb with blue background, red rect */ > + fb = &data->input.fb[0]; > + igt_create_fb(conf->fd, mode->hdisplay, mode->vdisplay, > + DRM_FORMAT_XRGB8888, 0, fb); > + draw_color_roi(fb, &data->input.roi_full_screen, 0, 0, 255); > + draw_color_roi(fb, &data->input.roi_window, 255, 0, 0); > + > + > + /* paint fb with green background, red retc */ > + fb = &data->input.fb[1]; > + igt_create_fb(conf->fd, mode->hdisplay, mode->vdisplay, > + DRM_FORMAT_XRGB8888, 0, fb); > + draw_color_roi(fb, &data->input.roi_full_screen, 0, 255, 0); > + draw_color_roi(fb, &data->input.roi_window, 255, 0, 0); > + } > +} > + > +static void > +test_switching_case(conf_t *conf, struct data_switching *data, bool is_window) > +{ > + set_t *set; > + igt_fb_t *fb; > + roi_t *roi, *roi_return; > + crc_t **crc; > + > + /* change pattern */ > + for (int i = 0; i < crtc_set_num; i++) { > + set = &conf->set[i]; > + fb = &data[i].input.fb[0]; > + igt_plane_set_fb(set->primary, fb); > + } > + > + /* set crc window roi */ > + for (int i = 0; i < crtc_set_num; i++) { > + set = &conf->set[i]; > + roi = (is_window) ? &data[i].input.roi_window > + : &data[i].input.roi_full_screen; > + set_roi(conf, set, roi); > + } > + igt_display_commit_atomic(&conf->display, DRM_MODE_ATOMIC_ALLOW_MODESET, NULL); > + igt_info("\n"); > + > + > + /* get crc window roi and print for debug */ > + for (int i = 0; i < crtc_set_num; i++) { > + set = &conf->set[i]; > + get_roi(conf, set, &roi_return); > + } > + igt_info("\n"); > + > + > + /* get the window crc */ > + for (int i = 0; i < crtc_set_num; i++) { > + set = &conf->set[i]; > + crc = (is_window) ? &data[i].output.crc_window[0] > + : &data[i].output.crc_full_screen[0]; > + get_crc(conf, set, crc); > + } > + igt_info("\n"); > + > + > + /* change pattern */ > + for (int i = 0; i < crtc_set_num; i++) { > + set = &conf->set[i]; > + fb = &data[i].input.fb[1]; > + igt_plane_set_fb(set->primary, fb); > + } > + igt_display_commit_atomic(&conf->display, DRM_MODE_ATOMIC_ALLOW_MODESET, NULL); > + > + /* wait 1 frame for new crc computed */ > + wait_vblanks(conf->fd, 1); > + > + /* get the window crc */ > + for (int i = 0; i < crtc_set_num; i++) { > + set = &conf->set[i]; > + crc = (is_window) ? &data[i].output.crc_window[1] > + : &data[i].output.crc_full_screen[1]; > + get_crc(conf, set, crc); > + } > + igt_info("\n"); > +} > + > +static void > +test_checksum_region_switching(conf_t *conf) > +{ > + struct data_switching data[CRTC_SET_NUM] = {0}; > + > + /* test basic init */ > + test_switching_init(conf, data); > + > + /* crc_window */ > + test_switching_case(conf, data, true); > + > + /* full screen */ > + test_switching_case(conf, data, false); > + > + test_switching_validate(data); > + > + test_fini(conf); > +} > + > +igt_main > +{ > + conf_t conf = {0}; > + > + igt_skip_on_simulation(); > + > + igt_fixture > + { > + conf.fd = drm_open_driver_master(DRIVER_AMDGPU); > + kmstest_set_vt_graphics_mode(); > + igt_display_require(&conf.display, conf.fd); > + igt_require(conf.display.is_atomic); > + igt_display_require_output(&conf.display); > + } > + > + test_init(&conf); > + > + igt_describe("Test basic"); > + igt_subtest("checksum-region-basic") > + test_checksum_region_basic(&conf); > + > + igt_describe("Test switching"); > + igt_subtest("checksum-region-switching") > + test_checksum_region_switching(&conf); > + > + igt_fixture > + { > + igt_display_fini(&conf.display); > + close(conf.fd); > + } > +} > diff --git a/tests/amdgpu/meson.build b/tests/amdgpu/meson.build > index 7fff7602f..aa51abfa2 100644 > --- a/tests/amdgpu/meson.build > +++ b/tests/amdgpu/meson.build > @@ -24,6 +24,7 @@ if libdrm_amdgpu.found() > 'amd_psr', > 'amd_plane', > 'amd_ilr', > + 'amd_checksum_region', ------------------------------ ^ Try to keep it sorted alphabetically. Regards, Kamil > ] > amdgpu_deps += libdrm_amdgpu > endif > -- > 2.34.1 > ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-06-30 16:04 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-06-29 15:10 [igt-dev] [PATCH] tests/amdgpu/amd_checksum_region: Add test for checksum_region Alan Liu 2023-06-29 15:36 ` [igt-dev] ✗ GitLab.Pipeline: warning for " Patchwork 2023-06-29 16:16 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork 2023-06-30 3:19 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork 2023-06-30 16:02 ` [igt-dev] [PATCH] " Kamil Konieczny
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox