Skip to contentSkip to conversation

Initial igt tests for drm/msm ioctls

PATCH Superseded Rob Clark 3 participants 13 messages Aug 25, 2021 – Aug 27, 2021

Subsystems (3)

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Rob Clark

author
#0 lore raw

v2 cover Initial igt tests for drm/msm ioctls

From: Rob Clark <[email protected]>

Add an initial set of tests for the gpu SUBMIT ioctl. There is plenty more we can add, but need to start somewhere.

v2: add msm_device::gen and drop igt_msm_pipe_gen().. any test
that needs to build even trivial cmdstream will need this so make it part of the util helper code

Rob Clark (3):
drmtest: Add DRIVER_MSM support
msm: Add helper library
msm: Add submit ioctl tests

 lib/drmtest.c      |   3 +
 lib/drmtest.h      |   1 +
 lib/igt_msm.c      | 171 +++++++++++++++++++++++++++++++++++++++++
 lib/igt_msm.h      | 119 +++++++++++++++++++++++++++++
 lib/meson.build    |   1 +
 tests/meson.build  |   1 +
 tests/msm_submit.c | 186 +++++++++++++++++++++++++++++++++++++++++++++
 7 files changed, 482 insertions(+)
 create mode 100644 lib/igt_msm.c
 create mode 100644 lib/igt_msm.h
 create mode 100644 tests/msm_submit.c
Signature · 1 line
2.31.1
author
#1 lore raw

PATCH v2 1/3 drmtest: Add DRIVER_MSM support

From: Rob Clark <[email protected]>

---
 lib/drmtest.c | 3 +++
 lib/drmtest.h | 1 +
 2 files changed, 4 insertions(+)
lib/drmtest.c +3 -0
index e1f9b115..29cb3f4c 100644
@@ -179,6 +179,7 @@ static const struct module {
 } modules[] = {
 	{ DRIVER_AMDGPU, "amdgpu" },
 	{ DRIVER_INTEL, "i915", modprobe_i915 },
+	{ DRIVER_MSM, "msm" },
 	{ DRIVER_PANFROST, "panfrost" },
 	{ DRIVER_V3D, "v3d" },
 	{ DRIVER_VC4, "vc4" },
@@ -539,6 +540,8 @@ static const char *chipset_to_str(int chipset)
 		return "amdgpu";
 	case DRIVER_PANFROST:
 		return "panfrost";
+	case DRIVER_MSM:
+		return "msm";
 	case DRIVER_ANY:
 		return "any";
 	default:
lib/drmtest.h +1 -0
index 7d17a0f9..a6eb60c3 100644
@@ -50,6 +50,7 @@
 #define DRIVER_AMDGPU	(1 << 3)
 #define DRIVER_V3D	(1 << 4)
 #define DRIVER_PANFROST	(1 << 5)
+#define DRIVER_MSM	(1 << 6)
 
 /*
  * Exclude DRVER_VGEM from DRIVER_ANY since if you run on a system
Signature · 1 line
2.31.1
Reviewed-by on v2 1/3
#2 lore raw

Re: [igt-dev] [PATCH igt v2 1/3] drmtest: Add DRIVER_MSM support

Quoted 3 lines · Rob Clark

From: Rob Clark <[email protected]>

Quoted 41 lines
---
 lib/drmtest.c | 3 +++
 lib/drmtest.h | 1 +
 2 files changed, 4 insertions(+)
lib/drmtest.c +3 -0
index e1f9b115..29cb3f4c 100644
@@ -179,6 +179,7 @@ static const struct module {
 } modules[] = {
 	{ DRIVER_AMDGPU, "amdgpu" },
 	{ DRIVER_INTEL, "i915", modprobe_i915 },
+	{ DRIVER_MSM, "msm" },
 	{ DRIVER_PANFROST, "panfrost" },
 	{ DRIVER_V3D, "v3d" },
 	{ DRIVER_VC4, "vc4" },
@@ -539,6 +540,8 @@ static const char *chipset_to_str(int chipset)
 		return "amdgpu";
 	case DRIVER_PANFROST:
 		return "panfrost";
+	case DRIVER_MSM:
+		return "msm";
 	case DRIVER_ANY:
 		return "any";
 	default:
lib/drmtest.h +1 -0
index 7d17a0f9..a6eb60c3 100644
@@ -50,6 +50,7 @@
 #define DRIVER_AMDGPU	(1 << 3)
 #define DRIVER_V3D	(1 << 4)
 #define DRIVER_PANFROST	(1 << 5)
+#define DRIVER_MSM	(1 << 6)
 
 /*
  * Exclude DRVER_VGEM from DRIVER_ANY since if you run on a system
Signature · 1 line
2.31.1
author
#3 lore raw

PATCH v2 2/3 msm: Add helper library

In reply to Rob Clark

From: Rob Clark <[email protected]>

Handle some of the boilerplate for tests.

---
 lib/igt_msm.c   | 171 ++++++++++++++++++++++++++++++++++++++++++++++++
 lib/igt_msm.h   | 119 +++++++++++++++++++++++++++++++++
 lib/meson.build |   1 +
 3 files changed, 291 insertions(+)
 create mode 100644 lib/igt_msm.c
 create mode 100644 lib/igt_msm.h
lib/igt_msm.c new file +171 -0
new file mode 100644
index 00000000..3bd0ee53
@@ -0,0 +1,171 @@
+/*
+ * Copyright © 2021 Google, 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 (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ */
+
+#include <assert.h>
+#include <string.h>
+#include <signal.h>
+#include <errno.h>
+#include <sys/mman.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <sys/ioctl.h>
+#include <fcntl.h>
+
+#include "drmtest.h"
+#include "igt_aux.h"
+#include "igt_core.h"
+#include "igt_msm.h"
+#include "ioctl_wrappers.h"
+
+/**
+ * SECTION:igt_msm
+ * @short_description: msm support library
+ * @title: msm
+ * @include: igt_msm.h
+ *
+ * This library provides various auxiliary helper functions for writing msm
+ * tests.
+ */
+
+static uint64_t
+get_param(struct msm_device *dev, uint32_t pipe, uint32_t param)
+{
+	struct drm_msm_param req = {
+			.pipe = pipe,
+			.param = param,
+	};
+
+	do_ioctl(dev->fd, DRM_IOCTL_MSM_GET_PARAM, &req);
+
+	return req.value;
+}
+
+struct msm_device *
+igt_msm_dev_open(void)
+{
+	struct msm_device *dev = calloc(1, sizeof(*dev));
+
+	dev->fd = drm_open_driver_render(DRIVER_MSM);
+	if (dev->fd < 0) {
+		free(dev);
+		return NULL;
+	}
+
+	dev->gen = (get_param(dev, MSM_PIPE_3D0, MSM_PARAM_CHIP_ID) >> 24) & 0xff;
+
+	return dev;
+}
+
+void
+igt_msm_dev_close(struct msm_device *dev)
+{
+	close(dev->fd);
+	free(dev);
+}
+
+struct msm_bo *
+igt_msm_bo_new(struct msm_device *dev, size_t size, uint32_t flags)
+{
+	struct msm_bo *bo = calloc(1, sizeof(*bo));
+
+	struct drm_msm_gem_new req = {
+			.size = size,
+			.flags = flags,
+	};
+
+	bo->dev = dev;
+	bo->size = size;
+
+	do_ioctl(dev->fd, DRM_IOCTL_MSM_GEM_NEW, &req);
+
+	bo->handle = req.handle;
+
+	return bo;
+}
+
+void
+igt_msm_bo_free(struct msm_bo *bo)
+{
+	if (bo->map)
+		munmap(bo->map, bo->size);
+	gem_close(bo->dev->fd, bo->handle);
+	free(bo);
+}
+
+void *
+igt_msm_bo_map(struct msm_bo *bo)
+{
+	if (!bo->map) {
+		struct drm_msm_gem_info req = {
+				.handle = bo->handle,
+				.info = MSM_INFO_GET_OFFSET,
+		};
+		void *ptr;
+
+		do_ioctl(bo->dev->fd, DRM_IOCTL_MSM_GEM_INFO, &req);
+
+		ptr = mmap(0, bo->size, PROT_READ | PROT_WRITE, MAP_SHARED,
+				bo->dev->fd, req.value);
+		if (ptr == MAP_FAILED)
+			return NULL;
+
+		bo->map = ptr;
+	}
+	return bo->map;
+}
+
+struct msm_pipe *
+igt_msm_pipe_open(struct msm_device *dev, uint32_t prio)
+{
+	struct msm_pipe *pipe = calloc(1, sizeof(*pipe));
+	struct drm_msm_submitqueue req = {
+			.flags = 0,
+			.prio = prio,
+	};
+
+	pipe->dev = dev;
+	pipe->pipe = MSM_PIPE_3D0;
+
+	/* Note that kerenels prior to v4.15 did not support submitqueues.
+	 * Mesa maintains support for older kernels, but I do not think
+	 * that IGT needs to.
+	 */
+	do_ioctl(dev->fd, DRM_IOCTL_MSM_SUBMITQUEUE_NEW, &req);
+
+	pipe->submitqueue_id = req.id;
+
+	return pipe;
+}
+
+void
+igt_msm_pipe_close(struct msm_pipe *pipe)
+{
+	do_ioctl(pipe->dev->fd, DRM_IOCTL_MSM_SUBMITQUEUE_CLOSE, &pipe->submitqueue_id);
+	free(pipe);
+}
+
+uint64_t
+igt_msm_pipe_get_param(struct msm_pipe *pipe, uint32_t param)
+{
+	return get_param(pipe->dev, pipe->pipe, param);
+}
lib/igt_msm.h new file +119 -0

119 lines not on this page · raw message

lib/meson.build +1 -0
index 67d40512..c3080fc8 100644
@@ -82,6 +82,7 @@ lib_sources = [
 	'igt_eld.c',
 	'igt_infoframe.c',
 	'veboxcopy_gen12.c',
+	'igt_msm.c',
 ]
 
 lib_deps = [
Signature · 1 line
2.31.1
#4 lore raw

Re: [igt-dev] [PATCH igt v2 2/3] msm: Add helper library

Quoted 81 lines · Rob Clark

From: Rob Clark <[email protected]>

Handle some of the boilerplate for tests.

---
 lib/igt_msm.c   | 171 ++++++++++++++++++++++++++++++++++++++++++++++++
 lib/igt_msm.h   | 119 +++++++++++++++++++++++++++++++++
 lib/meson.build |   1 +
 3 files changed, 291 insertions(+)
 create mode 100644 lib/igt_msm.c
 create mode 100644 lib/igt_msm.h
lib/igt_msm.c new file +62 -0
new file mode 100644
index 00000000..3bd0ee53
@@ -0,0 +1,171 @@
+/*
+ * Copyright © 2021 Google, 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 (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ */
+
+#include <assert.h>
+#include <string.h>
+#include <signal.h>
+#include <errno.h>
+#include <sys/mman.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <sys/ioctl.h>
+#include <fcntl.h>
+
+#include "drmtest.h"
+#include "igt_aux.h"
+#include "igt_core.h"
+#include "igt_msm.h"
+#include "ioctl_wrappers.h"
+
+/**
+ * SECTION:igt_msm
+ * @short_description: msm support library
+ * @title: msm
+ * @include: igt_msm.h
+ *
+ * This library provides various auxiliary helper functions for writing msm
+ * tests.
+ */
+
+static uint64_t
+get_param(struct msm_device *dev, uint32_t pipe, uint32_t param)
+{
+	struct drm_msm_param req = {
+			.pipe = pipe,
+			.param = param,
+	};
+
+	do_ioctl(dev->fd, DRM_IOCTL_MSM_GET_PARAM, &req);
+
+	return req.value;
+}
+

lib/igt_msm.c line 72

Quoted 10 lines
lib/igt_msm.c new file +10 -0
+struct msm_device *
+igt_msm_dev_open(void)
+{
+	struct msm_device *dev = calloc(1, sizeof(*dev));
+
+	dev->fd = drm_open_driver_render(DRIVER_MSM);
+	if (dev->fd < 0) {
+		free(dev);
+		return NULL;
+	}

Note that drm_open_driver_render() cannot return < 0.

Quoted 71 lines
lib/igt_msm.c new file +71 -0
+
+	dev->gen = (get_param(dev, MSM_PIPE_3D0, MSM_PARAM_CHIP_ID) >> 24) & 0xff;
+
+	return dev;
+}
+
+void
+igt_msm_dev_close(struct msm_device *dev)
+{
+	close(dev->fd);
+	free(dev);
+}
+
+struct msm_bo *
+igt_msm_bo_new(struct msm_device *dev, size_t size, uint32_t flags)
+{
+	struct msm_bo *bo = calloc(1, sizeof(*bo));
+
+	struct drm_msm_gem_new req = {
+			.size = size,
+			.flags = flags,
+	};
+
+	bo->dev = dev;
+	bo->size = size;
+
+	do_ioctl(dev->fd, DRM_IOCTL_MSM_GEM_NEW, &req);
+
+	bo->handle = req.handle;
+
+	return bo;
+}
+
+void
+igt_msm_bo_free(struct msm_bo *bo)
+{
+	if (bo->map)
+		munmap(bo->map, bo->size);
+	gem_close(bo->dev->fd, bo->handle);
+	free(bo);
+}
+
+void *
+igt_msm_bo_map(struct msm_bo *bo)
+{
+	if (!bo->map) {
+		struct drm_msm_gem_info req = {
+				.handle = bo->handle,
+				.info = MSM_INFO_GET_OFFSET,
+		};
+		void *ptr;
+
+		do_ioctl(bo->dev->fd, DRM_IOCTL_MSM_GEM_INFO, &req);
+
+		ptr = mmap(0, bo->size, PROT_READ | PROT_WRITE, MAP_SHARED,
+				bo->dev->fd, req.value);
+		if (ptr == MAP_FAILED)
+			return NULL;
+
+		bo->map = ptr;
+	}
+	return bo->map;
+}
+
+struct msm_pipe *
+igt_msm_pipe_open(struct msm_device *dev, uint32_t prio)
+{
+	struct msm_pipe *pipe = calloc(1, sizeof(*pipe));
+	struct drm_msm_submitqueue req = {
+			.flags = 0,
+			.prio = prio,

lib/igt_msm.c line 153

Quoted 10 lines
lib/igt_msm.c new file +10 -0
+	};
+
+	pipe->dev = dev;
+	pipe->pipe = MSM_PIPE_3D0;
+
+	/* Note that kerenels prior to v4.15 did not support submitqueues.
+	 * Mesa maintains support for older kernels, but I do not think
+	 * that IGT needs to.
+	 */
+	do_ioctl(dev->fd, DRM_IOCTL_MSM_SUBMITQUEUE_NEW, &req);

We try to maintain compatibility with older kernels to around "yay back". If you want to be perfect, this part could produce a skip if submitqueues don't exist, but most often such dancing is not worth the trouble. Letting it fail "normally" on an old kernel is fine, the error message received already points out which ioctl failed. You can remove the uncertainty from this comment, in other words.

Also typo, kerenels -> kernels.

Signature · 1 line
Petri Latvala
#5 lore raw

Re: [igt-dev] [PATCH igt v2 2/3] msm: Add helper library

In reply to Rob Clark
Quoted 57 lines · Rob Clark

From: Rob Clark <[email protected]>

Handle some of the boilerplate for tests.

---
 lib/igt_msm.c   | 171 ++++++++++++++++++++++++++++++++++++++++++++++++
 lib/igt_msm.h   | 119 +++++++++++++++++++++++++++++++++
 lib/meson.build |   1 +
 3 files changed, 291 insertions(+)
 create mode 100644 lib/igt_msm.c
 create mode 100644 lib/igt_msm.h
lib/igt_msm.c new file +38 -0
new file mode 100644
index 00000000..3bd0ee53
@@ -0,0 +1,171 @@
+/*
+ * Copyright © 2021 Google, 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 (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ */
+
+#include <assert.h>
+#include <string.h>
+#include <signal.h>
+#include <errno.h>
+#include <sys/mman.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <sys/ioctl.h>
+#include <fcntl.h>
+
+#include "drmtest.h"
+#include "igt_aux.h"
+#include "igt_core.h"
+#include "igt_msm.h"
+#include "ioctl_wrappers.h"

lib/igt_msm.c line 48

Quoted 10 lines
lib/igt_msm.c new file +10 -0
+
+/**
+ * SECTION:igt_msm
+ * @short_description: msm support library
+ * @title: msm
+ * @include: igt_msm.h
+ *
+ * This library provides various auxiliary helper functions for writing msm
+ * tests.
+ */

You need to add

<xi:include href="xml/igt_msm.xml"/>

to docs/reference/igt-gpu-tools/igt-gpu-tools-docs.xml so this gets included, and please add documentation for all nonstatic functions.

Signature · 1 line
Petri Latvala
Quoted 263 lines
lib/igt_msm.c new file +123 -0
+
+static uint64_t
+get_param(struct msm_device *dev, uint32_t pipe, uint32_t param)
+{
+	struct drm_msm_param req = {
+			.pipe = pipe,
+			.param = param,
+	};
+
+	do_ioctl(dev->fd, DRM_IOCTL_MSM_GET_PARAM, &req);
+
+	return req.value;
+}
+
+struct msm_device *
+igt_msm_dev_open(void)
+{
+	struct msm_device *dev = calloc(1, sizeof(*dev));
+
+	dev->fd = drm_open_driver_render(DRIVER_MSM);
+	if (dev->fd < 0) {
+		free(dev);
+		return NULL;
+	}
+
+	dev->gen = (get_param(dev, MSM_PIPE_3D0, MSM_PARAM_CHIP_ID) >> 24) & 0xff;
+
+	return dev;
+}
+
+void
+igt_msm_dev_close(struct msm_device *dev)
+{
+	close(dev->fd);
+	free(dev);
+}
+
+struct msm_bo *
+igt_msm_bo_new(struct msm_device *dev, size_t size, uint32_t flags)
+{
+	struct msm_bo *bo = calloc(1, sizeof(*bo));
+
+	struct drm_msm_gem_new req = {
+			.size = size,
+			.flags = flags,
+	};
+
+	bo->dev = dev;
+	bo->size = size;
+
+	do_ioctl(dev->fd, DRM_IOCTL_MSM_GEM_NEW, &req);
+
+	bo->handle = req.handle;
+
+	return bo;
+}
+
+void
+igt_msm_bo_free(struct msm_bo *bo)
+{
+	if (bo->map)
+		munmap(bo->map, bo->size);
+	gem_close(bo->dev->fd, bo->handle);
+	free(bo);
+}
+
+void *
+igt_msm_bo_map(struct msm_bo *bo)
+{
+	if (!bo->map) {
+		struct drm_msm_gem_info req = {
+				.handle = bo->handle,
+				.info = MSM_INFO_GET_OFFSET,
+		};
+		void *ptr;
+
+		do_ioctl(bo->dev->fd, DRM_IOCTL_MSM_GEM_INFO, &req);
+
+		ptr = mmap(0, bo->size, PROT_READ | PROT_WRITE, MAP_SHARED,
+				bo->dev->fd, req.value);
+		if (ptr == MAP_FAILED)
+			return NULL;
+
+		bo->map = ptr;
+	}
+	return bo->map;
+}
+
+struct msm_pipe *
+igt_msm_pipe_open(struct msm_device *dev, uint32_t prio)
+{
+	struct msm_pipe *pipe = calloc(1, sizeof(*pipe));
+	struct drm_msm_submitqueue req = {
+			.flags = 0,
+			.prio = prio,
+	};
+
+	pipe->dev = dev;
+	pipe->pipe = MSM_PIPE_3D0;
+
+	/* Note that kerenels prior to v4.15 did not support submitqueues.
+	 * Mesa maintains support for older kernels, but I do not think
+	 * that IGT needs to.
+	 */
+	do_ioctl(dev->fd, DRM_IOCTL_MSM_SUBMITQUEUE_NEW, &req);
+
+	pipe->submitqueue_id = req.id;
+
+	return pipe;
+}
+
+void
+igt_msm_pipe_close(struct msm_pipe *pipe)
+{
+	do_ioctl(pipe->dev->fd, DRM_IOCTL_MSM_SUBMITQUEUE_CLOSE, &pipe->submitqueue_id);
+	free(pipe);
+}
+
+uint64_t
+igt_msm_pipe_get_param(struct msm_pipe *pipe, uint32_t param)
+{
+	return get_param(pipe->dev, pipe->pipe, param);
+}
lib/igt_msm.h new file +119 -0
new file mode 100644
index 00000000..614c42ee
@@ -0,0 +1,119 @@
+/*
+ * Copyright © 2021 Google, 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 (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ */
+
+#ifndef IGT_MSM_H
+#define IGT_MSM_H
+
+#include "msm_drm.h"
+
+struct msm_device {
+	int fd;
+	unsigned gen;
+};
+
+struct msm_device *igt_msm_dev_open(void);
+void igt_msm_dev_close(struct msm_device *dev);
+
+struct msm_bo {
+	struct msm_device *dev;
+	int handle;
+	uint32_t size;
+	void *map;
+};
+
+struct msm_bo *igt_msm_bo_new(struct msm_device *dev, size_t size, uint32_t flags);
+void igt_msm_bo_free(struct msm_bo *bo);
+void *igt_msm_bo_map(struct msm_bo *bo);
+
+struct msm_pipe {
+	struct msm_device *dev;
+	uint32_t pipe;
+	uint32_t submitqueue_id;
+};
+
+struct msm_pipe *igt_msm_pipe_open(struct msm_device *dev, uint32_t prio);
+void igt_msm_pipe_close(struct msm_pipe *pipe);
+uint64_t igt_msm_pipe_get_param(struct msm_pipe *pipe, uint32_t param);
+
+/*
+ * Helpers for cmdstream building:
+ */
+
+enum adreno_pm4_packet_type {
+	CP_TYPE0_PKT = 0,
+	CP_TYPE1_PKT = 0x40000000,
+	CP_TYPE2_PKT = 0x80000000,
+	CP_TYPE3_PKT = 0xc0000000,
+	CP_TYPE4_PKT = 0x40000000,
+	CP_TYPE7_PKT = 0x70000000,
+};
+
+enum adreno_pm4_type3_packets {
+	CP_NOP = 16,
+};
+
+static inline unsigned
+pm4_odd_parity_bit(unsigned val)
+{
+	/* See: http://graphics.stanford.edu/~seander/bithacks.html#ParityParallel
+	 * note that we want odd parity so 0x6996 is inverted.
+	 */
+	val ^= val >> 16;
+	val ^= val >> 8;
+	val ^= val >> 4;
+	val &= 0xf;
+	return (~0x6996 >> val) & 1;
+}
+
+static inline uint32_t
+pm4_pkt0_hdr(uint16_t regindx, uint16_t cnt)
+{
+	return CP_TYPE0_PKT | ((cnt - 1) << 16) | (regindx & 0x7fff);
+}
+
+static inline uint32_t
+pm4_pkt3_hdr(uint8_t opcode, uint16_t cnt)
+{
+	return CP_TYPE3_PKT | ((cnt - 1) << 16) | ((opcode & 0xff) << 8);
+}
+
+static inline uint32_t
+pm4_pkt4_hdr(uint16_t regindx, uint16_t cnt)
+{
+	return CP_TYPE4_PKT | cnt | (pm4_odd_parity_bit(cnt) << 7) |
+			((regindx & 0x3ffff) << 8) |
+			((pm4_odd_parity_bit(regindx) << 27));
+}
+
+static inline uint32_t
+pm4_pkt7_hdr(uint8_t opcode, uint16_t cnt)
+{
+	return CP_TYPE7_PKT | cnt | (pm4_odd_parity_bit(cnt) << 15) |
+			((opcode & 0x7f) << 16) |
+			((pm4_odd_parity_bit(opcode) << 23));
+}
+
+#define U642VOID(x) ((void *)(uintptr_t)(x))
+#define VOID2U64(x) ((uint64_t)(uintptr_t)(x))
+
+#endif /* IGT_MSM_H */
lib/meson.build +1 -0
index 67d40512..c3080fc8 100644
@@ -82,6 +82,7 @@ lib_sources = [
 	'igt_eld.c',
 	'igt_infoframe.c',
 	'veboxcopy_gen12.c',
+	'igt_msm.c',
 ]
 
 lib_deps = [
Signature · 1 line
2.31.1
author
#6 lore raw

PATCH v2 3/3 msm: Add submit ioctl tests

In reply to Rob Clark

From: Rob Clark <[email protected]>

Add an initial set of tests for the submit ioctl.

---
 tests/meson.build  |   1 +
 tests/msm_submit.c | 186 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 187 insertions(+)
 create mode 100644 tests/msm_submit.c
tests/meson.build +1 -0
index 1bdfddbb..ff7c709a 100644
@@ -107,6 +107,7 @@ test_progs = [
 	'vc4_wait_seqno',
 	'vgem_basic',
 	'vgem_slow',
+	'msm_submit',
 ]
 
 i915_progs = [
tests/msm_submit.c new file +186 -0

186 lines not on this page · raw message

Signature · 1 line
2.31.1
#7 lore raw

Re: [igt-dev] [PATCH igt v2 3/3] msm: Add submit ioctl tests

Quoted 53 lines · Rob Clark

From: Rob Clark <[email protected]>

Add an initial set of tests for the submit ioctl.

---
 tests/meson.build  |   1 +
 tests/msm_submit.c | 186 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 187 insertions(+)
 create mode 100644 tests/msm_submit.c
tests/meson.build +1 -0
index 1bdfddbb..ff7c709a 100644
@@ -107,6 +107,7 @@ test_progs = [
 	'vc4_wait_seqno',
 	'vgem_basic',
 	'vgem_slow',
+	'msm_submit',
 ]
 
 i915_progs = [
tests/msm_submit.c new file +24 -0
new file mode 100644
index 00000000..da93c574
@@ -0,0 +1,186 @@
+/*
+ * Copyright © 2021 Google, 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 (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ */
+
+#include "igt.h"

tests/msm_submit.c line 34

Quoted 10 lines
tests/msm_submit.c new file +10 -0
+#include "igt_msm.h"
+
+igt_main
+{
+	struct msm_device *dev;
+	struct msm_pipe *pipe;
+	struct msm_bo *a, *b;
+
+	igt_fixture {
+		dev = igt_msm_dev_open();

What I replied on 2/3 applies here: If opening the device fails, igt_msm_dev_open() does not return and 'dev' is left uninitialized, those other pointers likewise. Leading to...

Quoted 140 lines
tests/msm_submit.c new file +140 -0
+		pipe = igt_msm_pipe_open(dev, 0);
+		a = igt_msm_bo_new(dev, 0x1000, MSM_BO_WC);
+		b = igt_msm_bo_new(dev, 0x1000, MSM_BO_WC);
+	}
+
+	igt_subtest("empty-submit") {
+		struct drm_msm_gem_submit req = {
+				.flags   = pipe->pipe,
+				.queueid = pipe->submitqueue_id,
+		};
+		do_ioctl(dev->fd, DRM_IOCTL_MSM_GEM_SUBMIT, &req);
+	}
+
+	igt_subtest("invalid-queue-submit") {
+		struct drm_msm_gem_submit req = {
+				.flags   = pipe->pipe,
+				.queueid = 0x1234,
+		};
+		do_ioctl_err(dev->fd, DRM_IOCTL_MSM_GEM_SUBMIT, &req, ENOENT);
+	}
+
+	igt_subtest("invalid-flags-submit") {
+		struct drm_msm_gem_submit req = {
+				.flags   = 0x1234,
+				.queueid = pipe->submitqueue_id,
+		};
+		do_ioctl_err(dev->fd, DRM_IOCTL_MSM_GEM_SUBMIT, &req, EINVAL);
+	}
+
+	igt_subtest("invalid-in-fence-submit") {
+		struct drm_msm_gem_submit req = {
+				.flags   = pipe->pipe | MSM_SUBMIT_FENCE_FD_IN,
+				.queueid = pipe->submitqueue_id,
+				.fence_fd = dev->fd,  /* This is not a fence fd! */
+		};
+		do_ioctl_err(dev->fd, DRM_IOCTL_MSM_GEM_SUBMIT, &req, EINVAL);
+	}
+
+	igt_subtest("invalid-duplicate-bo-submit") {
+		struct drm_msm_gem_submit_bo bos[] = {
+			[0] = {
+				.handle     = a->handle,
+				.flags      = MSM_SUBMIT_BO_READ,
+			},
+			[1] = {
+				.handle     = b->handle,
+				.flags      = MSM_SUBMIT_BO_READ,
+			},
+			[2] = {
+				/* this is invalid.. there should not be two entries
+				 * for the same bo, instead a single entry w/ all
+				 * usage flags OR'd together should be used.  Kernel
+				 * should catch this, and return an error code after
+				 * cleaning up properly (not leaking any bo's)
+				 */
+				.handle     = a->handle,
+				.flags      = MSM_SUBMIT_BO_WRITE,
+			},
+		};
+		struct drm_msm_gem_submit req = {
+				.flags   = pipe->pipe,
+				.queueid = pipe->submitqueue_id,
+				.nr_bos  = ARRAY_SIZE(bos),
+				.bos     = VOID2U64(bos),
+		};
+		do_ioctl_err(dev->fd, DRM_IOCTL_MSM_GEM_SUBMIT, &req, EINVAL);
+	}
+
+	igt_subtest("invalid-cmd-idx-submit") {
+		struct drm_msm_gem_submit_cmd cmds[] = {
+			[0] = {
+				.type       = MSM_SUBMIT_CMD_BUF,
+				.submit_idx = 0,      /* bos[0] does not exist */
+				.size       = 4 * 4,  /* 4 dwords in cmdbuf */
+			},
+		};
+		struct drm_msm_gem_submit req = {
+				.flags   = pipe->pipe,
+				.queueid = pipe->submitqueue_id,
+				.nr_cmds    = ARRAY_SIZE(cmds),
+				.cmds       = VOID2U64(cmds),
+		};
+		do_ioctl_err(dev->fd, DRM_IOCTL_MSM_GEM_SUBMIT, &req, EINVAL);
+	}
+
+	igt_subtest("invalid-cmd-type-submit") {
+		struct drm_msm_gem_submit_bo bos[] = {
+			[0] = {
+				.handle     = a->handle,
+				.flags      = MSM_SUBMIT_BO_READ,
+			},
+		};
+		struct drm_msm_gem_submit_cmd cmds[] = {
+			[0] = {
+				.type       = 0x1234,
+				.submit_idx = 0,
+				.size       = 4 * 4,  /* 4 dwords in cmdbuf */
+			},
+		};
+		struct drm_msm_gem_submit req = {
+				.flags   = pipe->pipe,
+				.queueid = pipe->submitqueue_id,
+				.nr_cmds    = ARRAY_SIZE(cmds),
+				.cmds       = VOID2U64(cmds),
+				.nr_bos  = ARRAY_SIZE(bos),
+				.bos     = VOID2U64(bos),
+		};
+		do_ioctl_err(dev->fd, DRM_IOCTL_MSM_GEM_SUBMIT, &req, EINVAL);
+	}
+
+	igt_subtest("valid-submit") {
+		struct drm_msm_gem_submit_bo bos[] = {
+			[0] = {
+				.handle     = a->handle,
+				.flags      = MSM_SUBMIT_BO_READ,
+			},
+		};
+		struct drm_msm_gem_submit_cmd cmds[] = {
+			[0] = {
+				.type       = MSM_SUBMIT_CMD_BUF,
+				.submit_idx = 0,
+				.size       = 4 * 4,  /* 4 dwords in cmdbuf */
+			},
+		};
+		struct drm_msm_gem_submit req = {
+				.flags   = pipe->pipe,
+				.queueid = pipe->submitqueue_id,
+				.nr_cmds    = ARRAY_SIZE(cmds),
+				.cmds       = VOID2U64(cmds),
+				.nr_bos  = ARRAY_SIZE(bos),
+				.bos     = VOID2U64(bos),
+		};
+		uint32_t *cmdstream = igt_msm_bo_map(a);
+		if (dev->gen >= 5) {
+			*(cmdstream++) = pm4_pkt7_hdr(CP_NOP, 3);
+		} else {
+			*(cmdstream++) = pm4_pkt3_hdr(CP_NOP, 3);
+		}
+		*(cmdstream++) = 0;
+		*(cmdstream++) = 0;

tests/msm_submit.c line 184

Quoted 10 lines
tests/msm_submit.c new file +10 -0
+		*(cmdstream++) = 0;
+
+		do_ioctl(dev->fd, DRM_IOCTL_MSM_GEM_SUBMIT, &req);
+	}
+
+	igt_fixture {
+		igt_msm_bo_free(a);
+		igt_msm_bo_free(b);
+		igt_msm_pipe_close(pipe);
+		igt_msm_dev_close(dev);

... crashes in here.

Signature · 1 line
Petri Latvala
author
#8 lore raw

Re: [igt-dev] [PATCH igt v2 3/3] msm: Add submit ioctl tests

Quoted 214 lines · Petri Latvala
Quoted 53 lines · Rob Clark

From: Rob Clark <[email protected]>

Add an initial set of tests for the submit ioctl.

---
 tests/meson.build  |   1 +
 tests/msm_submit.c | 186 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 187 insertions(+)
 create mode 100644 tests/msm_submit.c
tests/meson.build +1 -0
index 1bdfddbb..ff7c709a 100644
@@ -107,6 +107,7 @@ test_progs = [
      'vc4_wait_seqno',
      'vgem_basic',
      'vgem_slow',
+     'msm_submit',
 ]
 
 i915_progs = [
tests/msm_submit.c new file +24 -0
new file mode 100644
index 00000000..da93c574
@@ -0,0 +1,186 @@
+/*
+ * Copyright © 2021 Google, 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 (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ */
+
+#include "igt.h"

tests/msm_submit.c line 34

Quoted 10 lines
tests/msm_submit.c new file +10 -0
+#include "igt_msm.h"
+
+igt_main
+{
+     struct msm_device *dev;
+     struct msm_pipe *pipe;
+     struct msm_bo *a, *b;
+
+     igt_fixture {
+             dev = igt_msm_dev_open();

What I replied on 2/3 applies here: If opening the device fails, igt_msm_dev_open() does not return and 'dev' is left uninitialized, those other pointers likewise. Leading to...

Quoted 144 lines
tests/msm_submit.c new file +144 -0
+             pipe = igt_msm_pipe_open(dev, 0);
+             a = igt_msm_bo_new(dev, 0x1000, MSM_BO_WC);
+             b = igt_msm_bo_new(dev, 0x1000, MSM_BO_WC);
+     }
+
+     igt_subtest("empty-submit") {
+             struct drm_msm_gem_submit req = {
+                             .flags   = pipe->pipe,
+                             .queueid = pipe->submitqueue_id,
+             };
+             do_ioctl(dev->fd, DRM_IOCTL_MSM_GEM_SUBMIT, &req);
+     }
+
+     igt_subtest("invalid-queue-submit") {
+             struct drm_msm_gem_submit req = {
+                             .flags   = pipe->pipe,
+                             .queueid = 0x1234,
+             };
+             do_ioctl_err(dev->fd, DRM_IOCTL_MSM_GEM_SUBMIT, &req, ENOENT);
+     }
+
+     igt_subtest("invalid-flags-submit") {
+             struct drm_msm_gem_submit req = {
+                             .flags   = 0x1234,
+                             .queueid = pipe->submitqueue_id,
+             };
+             do_ioctl_err(dev->fd, DRM_IOCTL_MSM_GEM_SUBMIT, &req, EINVAL);
+     }
+
+     igt_subtest("invalid-in-fence-submit") {
+             struct drm_msm_gem_submit req = {
+                             .flags   = pipe->pipe | MSM_SUBMIT_FENCE_FD_IN,
+                             .queueid = pipe->submitqueue_id,
+                             .fence_fd = dev->fd,  /* This is not a fence fd! */
+             };
+             do_ioctl_err(dev->fd, DRM_IOCTL_MSM_GEM_SUBMIT, &req, EINVAL);
+     }
+
+     igt_subtest("invalid-duplicate-bo-submit") {
+             struct drm_msm_gem_submit_bo bos[] = {
+                     [0] = {
+                             .handle     = a->handle,
+                             .flags      = MSM_SUBMIT_BO_READ,
+                     },
+                     [1] = {
+                             .handle     = b->handle,
+                             .flags      = MSM_SUBMIT_BO_READ,
+                     },
+                     [2] = {
+                             /* this is invalid.. there should not be two entries
+                              * for the same bo, instead a single entry w/ all
+                              * usage flags OR'd together should be used.  Kernel
+                              * should catch this, and return an error code after
+                              * cleaning up properly (not leaking any bo's)
+                              */
+                             .handle     = a->handle,
+                             .flags      = MSM_SUBMIT_BO_WRITE,
+                     },
+             };
+             struct drm_msm_gem_submit req = {
+                             .flags   = pipe->pipe,
+                             .queueid = pipe->submitqueue_id,
+                             .nr_bos  = ARRAY_SIZE(bos),
+                             .bos     = VOID2U64(bos),
+             };
+             do_ioctl_err(dev->fd, DRM_IOCTL_MSM_GEM_SUBMIT, &req, EINVAL);
+     }
+
+     igt_subtest("invalid-cmd-idx-submit") {
+             struct drm_msm_gem_submit_cmd cmds[] = {
+                     [0] = {
+                             .type       = MSM_SUBMIT_CMD_BUF,
+                             .submit_idx = 0,      /* bos[0] does not exist */
+                             .size       = 4 * 4,  /* 4 dwords in cmdbuf */
+                     },
+             };
+             struct drm_msm_gem_submit req = {
+                             .flags   = pipe->pipe,
+                             .queueid = pipe->submitqueue_id,
+                             .nr_cmds    = ARRAY_SIZE(cmds),
+                             .cmds       = VOID2U64(cmds),
+             };
+             do_ioctl_err(dev->fd, DRM_IOCTL_MSM_GEM_SUBMIT, &req, EINVAL);
+     }
+
+     igt_subtest("invalid-cmd-type-submit") {
+             struct drm_msm_gem_submit_bo bos[] = {
+                     [0] = {
+                             .handle     = a->handle,
+                             .flags      = MSM_SUBMIT_BO_READ,
+                     },
+             };
+             struct drm_msm_gem_submit_cmd cmds[] = {
+                     [0] = {
+                             .type       = 0x1234,
+                             .submit_idx = 0,
+                             .size       = 4 * 4,  /* 4 dwords in cmdbuf */
+                     },
+             };
+             struct drm_msm_gem_submit req = {
+                             .flags   = pipe->pipe,
+                             .queueid = pipe->submitqueue_id,
+                             .nr_cmds    = ARRAY_SIZE(cmds),
+                             .cmds       = VOID2U64(cmds),
+                             .nr_bos  = ARRAY_SIZE(bos),
+                             .bos     = VOID2U64(bos),
+             };
+             do_ioctl_err(dev->fd, DRM_IOCTL_MSM_GEM_SUBMIT, &req, EINVAL);
+     }
+
+     igt_subtest("valid-submit") {
+             struct drm_msm_gem_submit_bo bos[] = {
+                     [0] = {
+                             .handle     = a->handle,
+                             .flags      = MSM_SUBMIT_BO_READ,
+                     },
+             };
+             struct drm_msm_gem_submit_cmd cmds[] = {
+                     [0] = {
+                             .type       = MSM_SUBMIT_CMD_BUF,
+                             .submit_idx = 0,
+                             .size       = 4 * 4,  /* 4 dwords in cmdbuf */
+                     },
+             };
+             struct drm_msm_gem_submit req = {
+                             .flags   = pipe->pipe,
+                             .queueid = pipe->submitqueue_id,
+                             .nr_cmds    = ARRAY_SIZE(cmds),
+                             .cmds       = VOID2U64(cmds),
+                             .nr_bos  = ARRAY_SIZE(bos),
+                             .bos     = VOID2U64(bos),
+             };
+             uint32_t *cmdstream = igt_msm_bo_map(a);
+             if (dev->gen >= 5) {
+                     *(cmdstream++) = pm4_pkt7_hdr(CP_NOP, 3);
+             } else {
+                     *(cmdstream++) = pm4_pkt3_hdr(CP_NOP, 3);
+             }
+             *(cmdstream++) = 0;
+             *(cmdstream++) = 0;
+             *(cmdstream++) = 0;
+
+             do_ioctl(dev->fd, DRM_IOCTL_MSM_GEM_SUBMIT, &req);
+     }
Quoted 9 lines

tests/msm_submit.c line 184

Quoted 6 lines
tests/msm_submit.c new file +6 -0
+
+     igt_fixture {
+             igt_msm_bo_free(a);
+             igt_msm_bo_free(b);
+             igt_msm_pipe_close(pipe);
+             igt_msm_dev_close(dev);

... crashes in here.

I did test this on intel as well, and it skips properly.. I think the setjmp/longjmp magic just bails completely out so we never try to run the cleanup?

BR,
-R

#9 lore raw

Re: [igt-dev] [PATCH igt v2 3/3] msm: Add submit ioctl tests

Quoted 225 lines · Rob Clark
Quoted 214 lines · Petri Latvala
Quoted 53 lines · Rob Clark

From: Rob Clark <[email protected]>

Add an initial set of tests for the submit ioctl.

---
 tests/meson.build  |   1 +
 tests/msm_submit.c | 186 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 187 insertions(+)
 create mode 100644 tests/msm_submit.c
tests/meson.build +1 -0
index 1bdfddbb..ff7c709a 100644
@@ -107,6 +107,7 @@ test_progs = [
      'vc4_wait_seqno',
      'vgem_basic',
      'vgem_slow',
+     'msm_submit',
 ]
 
 i915_progs = [
tests/msm_submit.c new file +24 -0
new file mode 100644
index 00000000..da93c574
@@ -0,0 +1,186 @@
+/*
+ * Copyright © 2021 Google, 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 (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ */
+
+#include "igt.h"

tests/msm_submit.c line 34

Quoted 10 lines
tests/msm_submit.c new file +10 -0
+#include "igt_msm.h"
+
+igt_main
+{
+     struct msm_device *dev;
+     struct msm_pipe *pipe;
+     struct msm_bo *a, *b;
+
+     igt_fixture {
+             dev = igt_msm_dev_open();

What I replied on 2/3 applies here: If opening the device fails, igt_msm_dev_open() does not return and 'dev' is left uninitialized, those other pointers likewise. Leading to...

Quoted 144 lines
tests/msm_submit.c new file +144 -0
+             pipe = igt_msm_pipe_open(dev, 0);
+             a = igt_msm_bo_new(dev, 0x1000, MSM_BO_WC);
+             b = igt_msm_bo_new(dev, 0x1000, MSM_BO_WC);
+     }
+
+     igt_subtest("empty-submit") {
+             struct drm_msm_gem_submit req = {
+                             .flags   = pipe->pipe,
+                             .queueid = pipe->submitqueue_id,
+             };
+             do_ioctl(dev->fd, DRM_IOCTL_MSM_GEM_SUBMIT, &req);
+     }
+
+     igt_subtest("invalid-queue-submit") {
+             struct drm_msm_gem_submit req = {
+                             .flags   = pipe->pipe,
+                             .queueid = 0x1234,
+             };
+             do_ioctl_err(dev->fd, DRM_IOCTL_MSM_GEM_SUBMIT, &req, ENOENT);
+     }
+
+     igt_subtest("invalid-flags-submit") {
+             struct drm_msm_gem_submit req = {
+                             .flags   = 0x1234,
+                             .queueid = pipe->submitqueue_id,
+             };
+             do_ioctl_err(dev->fd, DRM_IOCTL_MSM_GEM_SUBMIT, &req, EINVAL);
+     }
+
+     igt_subtest("invalid-in-fence-submit") {
+             struct drm_msm_gem_submit req = {
+                             .flags   = pipe->pipe | MSM_SUBMIT_FENCE_FD_IN,
+                             .queueid = pipe->submitqueue_id,
+                             .fence_fd = dev->fd,  /* This is not a fence fd! */
+             };
+             do_ioctl_err(dev->fd, DRM_IOCTL_MSM_GEM_SUBMIT, &req, EINVAL);
+     }
+
+     igt_subtest("invalid-duplicate-bo-submit") {
+             struct drm_msm_gem_submit_bo bos[] = {
+                     [0] = {
+                             .handle     = a->handle,
+                             .flags      = MSM_SUBMIT_BO_READ,
+                     },
+                     [1] = {
+                             .handle     = b->handle,
+                             .flags      = MSM_SUBMIT_BO_READ,
+                     },
+                     [2] = {
+                             /* this is invalid.. there should not be two entries
+                              * for the same bo, instead a single entry w/ all
+                              * usage flags OR'd together should be used.  Kernel
+                              * should catch this, and return an error code after
+                              * cleaning up properly (not leaking any bo's)
+                              */
+                             .handle     = a->handle,
+                             .flags      = MSM_SUBMIT_BO_WRITE,
+                     },
+             };
+             struct drm_msm_gem_submit req = {
+                             .flags   = pipe->pipe,
+                             .queueid = pipe->submitqueue_id,
+                             .nr_bos  = ARRAY_SIZE(bos),
+                             .bos     = VOID2U64(bos),
+             };
+             do_ioctl_err(dev->fd, DRM_IOCTL_MSM_GEM_SUBMIT, &req, EINVAL);
+     }
+
+     igt_subtest("invalid-cmd-idx-submit") {
+             struct drm_msm_gem_submit_cmd cmds[] = {
+                     [0] = {
+                             .type       = MSM_SUBMIT_CMD_BUF,
+                             .submit_idx = 0,      /* bos[0] does not exist */
+                             .size       = 4 * 4,  /* 4 dwords in cmdbuf */
+                     },
+             };
+             struct drm_msm_gem_submit req = {
+                             .flags   = pipe->pipe,
+                             .queueid = pipe->submitqueue_id,
+                             .nr_cmds    = ARRAY_SIZE(cmds),
+                             .cmds       = VOID2U64(cmds),
+             };
+             do_ioctl_err(dev->fd, DRM_IOCTL_MSM_GEM_SUBMIT, &req, EINVAL);
+     }
+
+     igt_subtest("invalid-cmd-type-submit") {
+             struct drm_msm_gem_submit_bo bos[] = {
+                     [0] = {
+                             .handle     = a->handle,
+                             .flags      = MSM_SUBMIT_BO_READ,
+                     },
+             };
+             struct drm_msm_gem_submit_cmd cmds[] = {
+                     [0] = {
+                             .type       = 0x1234,
+                             .submit_idx = 0,
+                             .size       = 4 * 4,  /* 4 dwords in cmdbuf */
+                     },
+             };
+             struct drm_msm_gem_submit req = {
+                             .flags   = pipe->pipe,
+                             .queueid = pipe->submitqueue_id,
+                             .nr_cmds    = ARRAY_SIZE(cmds),
+                             .cmds       = VOID2U64(cmds),
+                             .nr_bos  = ARRAY_SIZE(bos),
+                             .bos     = VOID2U64(bos),
+             };
+             do_ioctl_err(dev->fd, DRM_IOCTL_MSM_GEM_SUBMIT, &req, EINVAL);
+     }
+
+     igt_subtest("valid-submit") {
+             struct drm_msm_gem_submit_bo bos[] = {
+                     [0] = {
+                             .handle     = a->handle,
+                             .flags      = MSM_SUBMIT_BO_READ,
+                     },
+             };
+             struct drm_msm_gem_submit_cmd cmds[] = {
+                     [0] = {
+                             .type       = MSM_SUBMIT_CMD_BUF,
+                             .submit_idx = 0,
+                             .size       = 4 * 4,  /* 4 dwords in cmdbuf */
+                     },
+             };
+             struct drm_msm_gem_submit req = {
+                             .flags   = pipe->pipe,
+                             .queueid = pipe->submitqueue_id,
+                             .nr_cmds    = ARRAY_SIZE(cmds),
+                             .cmds       = VOID2U64(cmds),
+                             .nr_bos  = ARRAY_SIZE(bos),
+                             .bos     = VOID2U64(bos),
+             };
+             uint32_t *cmdstream = igt_msm_bo_map(a);
+             if (dev->gen >= 5) {
+                     *(cmdstream++) = pm4_pkt7_hdr(CP_NOP, 3);
+             } else {
+                     *(cmdstream++) = pm4_pkt3_hdr(CP_NOP, 3);
+             }
+             *(cmdstream++) = 0;
+             *(cmdstream++) = 0;
+             *(cmdstream++) = 0;
+
+             do_ioctl(dev->fd, DRM_IOCTL_MSM_GEM_SUBMIT, &req);
+     }
Quoted 9 lines

tests/msm_submit.c line 184

Quoted 6 lines
tests/msm_submit.c new file +6 -0
+
+     igt_fixture {
+             igt_msm_bo_free(a);
+             igt_msm_bo_free(b);
+             igt_msm_pipe_close(pipe);
+             igt_msm_dev_close(dev);

... crashes in here.

Quoted 3 lines

I did test this on intel as well, and it skips properly.. I think the setjmp/longjmp magic just bails completely out so we never try to run the cleanup?

Ah, indeed, skip_henceforth prevents entering the latter fixture.

It still looks scary, can I implore to add some defensive layers with NULL-inits and handling of NULLs in the functions? It might not crash today...

Signature · 1 line
Petri Latvala
#10 lore raw

Re: [igt-dev] [PATCH igt v2 3/3] msm: Add submit ioctl tests

In reply to Rob Clark
Quoted 197 lines · Rob Clark

From: Rob Clark <[email protected]>

Add an initial set of tests for the submit ioctl.

---
 tests/meson.build  |   1 +
 tests/msm_submit.c | 186 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 187 insertions(+)
 create mode 100644 tests/msm_submit.c
tests/meson.build +1 -0
index 1bdfddbb..ff7c709a 100644
@@ -107,6 +107,7 @@ test_progs = [
 	'vc4_wait_seqno',
 	'vgem_basic',
 	'vgem_slow',
+	'msm_submit',
 ]
 
 i915_progs = [
tests/msm_submit.c new file +168 -0
new file mode 100644
index 00000000..da93c574
@@ -0,0 +1,186 @@
+/*
+ * Copyright © 2021 Google, 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 (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ */
+
+#include "igt.h"
+#include "igt_msm.h"
+
+igt_main
+{
+	struct msm_device *dev;
+	struct msm_pipe *pipe;
+	struct msm_bo *a, *b;
+
+	igt_fixture {
+		dev = igt_msm_dev_open();
+		pipe = igt_msm_pipe_open(dev, 0);
+		a = igt_msm_bo_new(dev, 0x1000, MSM_BO_WC);
+		b = igt_msm_bo_new(dev, 0x1000, MSM_BO_WC);
+	}
+
+	igt_subtest("empty-submit") {
+		struct drm_msm_gem_submit req = {
+				.flags   = pipe->pipe,
+				.queueid = pipe->submitqueue_id,
+		};
+		do_ioctl(dev->fd, DRM_IOCTL_MSM_GEM_SUBMIT, &req);
+	}
+
+	igt_subtest("invalid-queue-submit") {
+		struct drm_msm_gem_submit req = {
+				.flags   = pipe->pipe,
+				.queueid = 0x1234,
+		};
+		do_ioctl_err(dev->fd, DRM_IOCTL_MSM_GEM_SUBMIT, &req, ENOENT);
+	}
+
+	igt_subtest("invalid-flags-submit") {
+		struct drm_msm_gem_submit req = {
+				.flags   = 0x1234,
+				.queueid = pipe->submitqueue_id,
+		};
+		do_ioctl_err(dev->fd, DRM_IOCTL_MSM_GEM_SUBMIT, &req, EINVAL);
+	}
+
+	igt_subtest("invalid-in-fence-submit") {
+		struct drm_msm_gem_submit req = {
+				.flags   = pipe->pipe | MSM_SUBMIT_FENCE_FD_IN,
+				.queueid = pipe->submitqueue_id,
+				.fence_fd = dev->fd,  /* This is not a fence fd! */
+		};
+		do_ioctl_err(dev->fd, DRM_IOCTL_MSM_GEM_SUBMIT, &req, EINVAL);
+	}
+
+	igt_subtest("invalid-duplicate-bo-submit") {
+		struct drm_msm_gem_submit_bo bos[] = {
+			[0] = {
+				.handle     = a->handle,
+				.flags      = MSM_SUBMIT_BO_READ,
+			},
+			[1] = {
+				.handle     = b->handle,
+				.flags      = MSM_SUBMIT_BO_READ,
+			},
+			[2] = {
+				/* this is invalid.. there should not be two entries
+				 * for the same bo, instead a single entry w/ all
+				 * usage flags OR'd together should be used.  Kernel
+				 * should catch this, and return an error code after
+				 * cleaning up properly (not leaking any bo's)
+				 */
+				.handle     = a->handle,
+				.flags      = MSM_SUBMIT_BO_WRITE,
+			},
+		};
+		struct drm_msm_gem_submit req = {
+				.flags   = pipe->pipe,
+				.queueid = pipe->submitqueue_id,
+				.nr_bos  = ARRAY_SIZE(bos),
+				.bos     = VOID2U64(bos),
+		};
+		do_ioctl_err(dev->fd, DRM_IOCTL_MSM_GEM_SUBMIT, &req, EINVAL);
+	}
+
+	igt_subtest("invalid-cmd-idx-submit") {
+		struct drm_msm_gem_submit_cmd cmds[] = {
+			[0] = {
+				.type       = MSM_SUBMIT_CMD_BUF,
+				.submit_idx = 0,      /* bos[0] does not exist */
+				.size       = 4 * 4,  /* 4 dwords in cmdbuf */
+			},
+		};
+		struct drm_msm_gem_submit req = {
+				.flags   = pipe->pipe,
+				.queueid = pipe->submitqueue_id,
+				.nr_cmds    = ARRAY_SIZE(cmds),
+				.cmds       = VOID2U64(cmds),
+		};
+		do_ioctl_err(dev->fd, DRM_IOCTL_MSM_GEM_SUBMIT, &req, EINVAL);
+	}
+
+	igt_subtest("invalid-cmd-type-submit") {
+		struct drm_msm_gem_submit_bo bos[] = {
+			[0] = {
+				.handle     = a->handle,
+				.flags      = MSM_SUBMIT_BO_READ,
+			},
+		};
+		struct drm_msm_gem_submit_cmd cmds[] = {
+			[0] = {
+				.type       = 0x1234,
+				.submit_idx = 0,
+				.size       = 4 * 4,  /* 4 dwords in cmdbuf */
+			},
+		};
+		struct drm_msm_gem_submit req = {
+				.flags   = pipe->pipe,
+				.queueid = pipe->submitqueue_id,
+				.nr_cmds    = ARRAY_SIZE(cmds),
+				.cmds       = VOID2U64(cmds),
+				.nr_bos  = ARRAY_SIZE(bos),
+				.bos     = VOID2U64(bos),
+		};
+		do_ioctl_err(dev->fd, DRM_IOCTL_MSM_GEM_SUBMIT, &req, EINVAL);
+	}
+
+	igt_subtest("valid-submit") {
+		struct drm_msm_gem_submit_bo bos[] = {
+			[0] = {
+				.handle     = a->handle,
+				.flags      = MSM_SUBMIT_BO_READ,
+			},
+		};
+		struct drm_msm_gem_submit_cmd cmds[] = {
+			[0] = {
+				.type       = MSM_SUBMIT_CMD_BUF,
+				.submit_idx = 0,
+				.size       = 4 * 4,  /* 4 dwords in cmdbuf */
+			},
+		};
+		struct drm_msm_gem_submit req = {
+				.flags   = pipe->pipe,
+				.queueid = pipe->submitqueue_id,
+				.nr_cmds    = ARRAY_SIZE(cmds),
+				.cmds       = VOID2U64(cmds),
+				.nr_bos  = ARRAY_SIZE(bos),
+				.bos     = VOID2U64(bos),
+		};
+		uint32_t *cmdstream = igt_msm_bo_map(a);
+		if (dev->gen >= 5) {

tests/msm_submit.c line 178

Quoted 10 lines
tests/msm_submit.c new file +10 -0
+			*(cmdstream++) = pm4_pkt7_hdr(CP_NOP, 3);
+		} else {
+			*(cmdstream++) = pm4_pkt3_hdr(CP_NOP, 3);
+		}
+		*(cmdstream++) = 0;
+		*(cmdstream++) = 0;
+		*(cmdstream++) = 0;
+
+		do_ioctl(dev->fd, DRM_IOCTL_MSM_GEM_SUBMIT, &req);
+	}

Add igt_describe()s for all subtests.

Signature · 1 line
Petri Latvala
Quoted 11 lines
tests/msm_submit.c new file +8 -0
+
+	igt_fixture {
+		igt_msm_bo_free(a);
+		igt_msm_bo_free(b);
+		igt_msm_pipe_close(pipe);
+		igt_msm_dev_close(dev);
+	}
+}
Signature · 1 line
2.31.1
#11 lore raw

[igt-dev] ✓ Fi.CI.BAT: success for Initial igt tests for drm/msm ioctls (rev2)

In reply to Rob Clark
== Series Details ==

== Series Details ==

Series: Initial igt tests for drm/msm ioctls (rev2)
URL : https://patchwork.freedesktop.org/series/93973/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_10521 -> IGTPW_6157
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/index.html

Known issues
------------

Here are the changes found in IGTPW_6157 that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@amdgpu/amd_basic@cs-gfx:
- fi-rkl-guc: NOTRUN -> [SKIP][1] ([fdo#109315]) +17 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/fi-rkl-guc/igt@amdgpu/[email protected]

* igt@i915_selftest@live@gt_lrc:
- fi-rkl-guc: NOTRUN -> [DMESG-WARN][2] ([i915#3958])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/fi-rkl-guc/igt@i915_selftest@live@gt_lrc.html

#### Possible fixes ####

* igt@i915_selftest@live@workarounds:
- fi-rkl-guc: [DMESG-FAIL][3] ([i915#3928]) -> [PASS][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10521/fi-rkl-guc/igt@i915_selftest@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/fi-rkl-guc/igt@i915_selftest@[email protected]

* igt@kms_force_connector_basic@force-connector-state:
- fi-rkl-guc: [FAIL][5] ([i915#3983]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10521/fi-rkl-guc/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/fi-rkl-guc/igt@[email protected]

#### Warnings ####

* igt@i915_pm_rpm@module-reload:
- fi-tgl-1115g4: [INCOMPLETE][7] ([i915#1385] / [i915#4006]) -> [INCOMPLETE][8] ([i915#4006])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10521/fi-tgl-1115g4/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/fi-tgl-1115g4/igt@[email protected]

* igt@kms_psr@primary_page_flip:
- fi-tgl-1115g4: [SKIP][9] ([i915#1072]) -> [SKIP][10] ([i915#1072] / [i915#1385])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10521/fi-tgl-1115g4/igt@kms_psr@primary_page_flip.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/fi-tgl-1115g4/igt@kms_psr@primary_page_flip.html

[fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1385]: https://gitlab.freedesktop.org/drm/intel/issues/1385
[i915#3928]: https://gitlab.freedesktop.org/drm/intel/issues/3928
[i915#3958]: https://gitlab.freedesktop.org/drm/intel/issues/3958
[i915#3983]: https://gitlab.freedesktop.org/drm/intel/issues/3983
[i915#4006]: https://gitlab.freedesktop.org/drm/intel/issues/4006

Participating hosts (40 -> 34)
------------------------------

Missing (6): fi-ilk-m540 bat-adls-5 fi-hsw-4200u fi-bsw-cyan fi-bdw-samus bat-jsl-1

Build changes
-------------

* CI: CI-20190529 -> None
* IGT: IGT_6186 -> IGTPW_6157

CI-20190529: 20190529
CI_DRM_10521: 22d97eae8a21ddd48ba661b0a3a68c83bf518d35 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_6157: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/index.html
IGT_6186: 250081b306c6fa8f95405fab6a7604f1968dd4ec @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git

== Testlist changes ==

+igt@msm_submit@empty-submit
+igt@msm_submit@invalid-cmd-idx-submit
+igt@msm_submit@invalid-cmd-type-submit
+igt@msm_submit@invalid-duplicate-bo-submit
+igt@msm_submit@invalid-flags-submit
+igt@msm_submit@invalid-in-fence-submit
+igt@msm_submit@invalid-queue-submit
+igt@msm_submit@valid-submit

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/index.html

#12 lore raw

[igt-dev] ✗ Fi.CI.IGT: failure for Initial igt tests for drm/msm ioctls (rev2)

In reply to Rob Clark
== Series Details ==

== Series Details ==

Series: Initial igt tests for drm/msm ioctls (rev2)
URL : https://patchwork.freedesktop.org/series/93973/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_10521_full -> IGTPW_6157_full
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with IGTPW_6157_full absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in IGTPW_6157_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.

External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/index.html

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in IGTPW_6157_full:

### IGT changes ###

#### Possible regressions ####

* igt@kms_draw_crc@draw-method-rgb565-mmap-wc-xtiled:
- shard-glk: [PASS][1] -> [FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10521/shard-glk9/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-glk4/igt@[email protected]

* igt@prime_self_import@reimport-vs-gem_close-race:
- shard-kbl: [PASS][3] -> [FAIL][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10521/shard-kbl4/igt@prime_self_import@reimport-vs-gem_close-race.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-kbl7/igt@prime_self_import@reimport-vs-gem_close-race.html
- shard-iclb: [PASS][5] -> [FAIL][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10521/shard-iclb6/igt@prime_self_import@reimport-vs-gem_close-race.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-iclb3/igt@prime_self_import@reimport-vs-gem_close-race.html
- shard-tglb: [PASS][7] -> [FAIL][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10521/shard-tglb6/igt@prime_self_import@reimport-vs-gem_close-race.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-tglb8/igt@prime_self_import@reimport-vs-gem_close-race.html

New tests
---------

New tests have been introduced between CI_DRM_10521_full and IGTPW_6157_full:

### New IGT tests (8) ###

* igt@msm_submit@empty-submit:
- Statuses : 5 skip(s)
- Exec time: [0.0] s

* igt@msm_submit@invalid-cmd-idx-submit:
- Statuses : 5 skip(s)
- Exec time: [0.0] s

* igt@msm_submit@invalid-cmd-type-submit:
- Statuses : 6 skip(s)
- Exec time: [0.0] s

* igt@msm_submit@invalid-duplicate-bo-submit:
- Statuses : 5 skip(s)
- Exec time: [0.0] s

* igt@msm_submit@invalid-flags-submit:
- Statuses : 5 skip(s)
- Exec time: [0.0] s

* igt@msm_submit@invalid-in-fence-submit:
- Statuses : 5 skip(s)
- Exec time: [0.0] s

* igt@msm_submit@invalid-queue-submit:
- Statuses : 6 skip(s)
- Exec time: [0.0] s

* igt@msm_submit@valid-submit:
- Statuses : 5 skip(s)
- Exec time: [0.0] s

Known issues
------------

Here are the changes found in IGTPW_6157_full that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@gem_ctx_isolation@preservation-s3@vcs0:
- shard-apl: NOTRUN -> [DMESG-WARN][9] ([i915#180])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-apl7/igt@gem_ctx_isolation@[email protected]

* igt@gem_ctx_param@set-priority-not-supported:
- shard-tglb: NOTRUN -> [SKIP][10] ([fdo#109314])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-tglb5/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][11] ([fdo#109314])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-iclb3/igt@[email protected]

* igt@gem_ctx_persistence@legacy-engines-queued:
- shard-snb: NOTRUN -> [SKIP][12] ([fdo#109271] / [i915#1099]) +6 similar issues
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-snb6/igt@[email protected]

* igt@gem_ctx_sseu@mmap-args:
- shard-tglb: NOTRUN -> [SKIP][13] ([i915#280])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-tglb2/igt@[email protected]

* igt@gem_ctx_sseu@mmap-args@fixed:
- shard-iclb: NOTRUN -> [SKIP][14] ([i915#3931])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-iclb6/igt@gem_ctx_sseu@[email protected]

* igt@gem_eio@unwedge-stress:
- shard-tglb: [PASS][15] -> [TIMEOUT][16] ([i915#2369] / [i915#3063] / [i915#3648])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10521/shard-tglb6/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-tglb8/igt@[email protected]
- shard-snb: NOTRUN -> [FAIL][17] ([i915#3354])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-snb7/igt@[email protected]

* igt@gem_exec_fair@basic-none-rrul@rcs0:
- shard-glk: [PASS][18] -> [FAIL][19] ([i915#2842]) +1 similar issue
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10521/shard-glk5/igt@gem_exec_fair@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-glk3/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-none-solo@rcs0:
- shard-tglb: NOTRUN -> [FAIL][20] ([i915#2842])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-tglb3/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-none@vecs0:
- shard-kbl: [PASS][21] -> [FAIL][22] ([i915#2842]) +1 similar issue
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10521/shard-kbl1/igt@gem_exec_fair@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-kbl4/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-pace-share@rcs0:
- shard-iclb: [PASS][23] -> [FAIL][24] ([i915#2842])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10521/shard-iclb7/igt@gem_exec_fair@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-iclb3/igt@gem_exec_fair@[email protected]

* igt@gem_exec_params@secure-non-master:
- shard-tglb: NOTRUN -> [SKIP][25] ([fdo#112283])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-tglb2/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][26] ([fdo#112283])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-iclb4/igt@[email protected]

* igt@gem_huc_copy@huc-copy:
- shard-glk: NOTRUN -> [SKIP][27] ([fdo#109271] / [i915#2190])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-glk8/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][28] ([i915#2190])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-iclb5/igt@[email protected]
- shard-kbl: NOTRUN -> [SKIP][29] ([fdo#109271] / [i915#2190])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-kbl1/igt@[email protected]

* igt@gem_render_copy@yf-tiled-mc-ccs-to-vebox-y-tiled:
- shard-glk: NOTRUN -> [SKIP][30] ([fdo#109271]) +58 similar issues
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-glk6/igt@[email protected]

* igt@gem_render_copy@yf-tiled-to-vebox-linear:
- shard-iclb: NOTRUN -> [SKIP][31] ([i915#768]) +2 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-iclb5/igt@[email protected]

* igt@gem_userptr_blits@input-checking:
- shard-apl: NOTRUN -> [DMESG-WARN][32] ([i915#3002]) +1 similar issue
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-apl6/igt@[email protected]

* igt@gem_userptr_blits@map-fixed-invalidate-busy@fixed:
- shard-tglb: NOTRUN -> [SKIP][33] ([i915#3922])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-tglb5/igt@gem_userptr_blits@[email protected]
- shard-iclb: NOTRUN -> [SKIP][34] ([i915#3922])
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-iclb2/igt@gem_userptr_blits@[email protected]

* igt@gem_userptr_blits@readonly-pwrite-unsync:
- shard-tglb: NOTRUN -> [SKIP][35] ([i915#3297])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-tglb8/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][36] ([i915#3297])
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-iclb8/igt@[email protected]

* igt@gen3_render_tiledy_blits:
- shard-tglb: NOTRUN -> [SKIP][37] ([fdo#109289])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-tglb1/igt@gen3_render_tiledy_blits.html

* igt@gen9_exec_parse@allowed-all:
- shard-kbl: [PASS][38] -> [DMESG-WARN][39] ([i915#1436] / [i915#716])
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10521/shard-kbl7/igt@[email protected]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-kbl2/igt@[email protected]

* igt@gen9_exec_parse@shadow-peek:
- shard-tglb: NOTRUN -> [SKIP][40] ([i915#2856])
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-tglb1/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][41] ([i915#2856])
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-iclb5/igt@[email protected]

* igt@i915_pm_dc@dc9-dpms:
- shard-apl: [PASS][42] -> [SKIP][43] ([fdo#109271])
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10521/shard-apl1/igt@[email protected]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-apl6/igt@[email protected]

* igt@i915_pm_rpm@modeset-non-lpsp:
- shard-iclb: NOTRUN -> [SKIP][44] ([fdo#110892]) +1 similar issue
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-iclb7/igt@[email protected]

* igt@i915_pm_rpm@modeset-non-lpsp-stress-no-wait:
- shard-tglb: NOTRUN -> [SKIP][45] ([fdo#111644] / [i915#1397] / [i915#2411]) +1 similar issue
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-tglb1/igt@[email protected]

* igt@kms_big_fb@x-tiled-64bpp-rotate-90:
- shard-iclb: NOTRUN -> [SKIP][46] ([fdo#110725] / [fdo#111614])
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-iclb6/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][47] ([fdo#111614])
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-tglb3/igt@[email protected]

* igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-0-hflip:
- shard-kbl: NOTRUN -> [SKIP][48] ([fdo#109271] / [i915#3777])
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-kbl6/igt@[email protected]
- shard-glk: NOTRUN -> [SKIP][49] ([fdo#109271] / [i915#3777])
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-glk1/igt@[email protected]

* igt@kms_big_fb@y-tiled-max-hw-stride-32bpp-rotate-180-hflip:
- shard-apl: NOTRUN -> [SKIP][50] ([fdo#109271] / [i915#3777]) +1 similar issue
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-apl1/igt@[email protected]

* igt@kms_ccs@pipe-a-crc-primary-basic-y_tiled_gen12_mc_ccs:
- shard-kbl: NOTRUN -> [SKIP][51] ([fdo#109271] / [i915#3886])
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-kbl3/igt@kms_ccs@pipe-a-crc-primary-basic-y_tiled_gen12_mc_ccs.html

* igt@kms_ccs@pipe-a-missing-ccs-buffer-y_tiled_gen12_rc_ccs_cc:
- shard-apl: NOTRUN -> [SKIP][52] ([fdo#109271] / [i915#3886]) +13 similar issues
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-apl7/igt@kms_ccs@pipe-a-missing-ccs-buffer-y_tiled_gen12_rc_ccs_cc.html

* igt@kms_ccs@pipe-b-crc-sprite-planes-basic-y_tiled_gen12_rc_ccs_cc:
- shard-iclb: NOTRUN -> [SKIP][53] ([fdo#109278] / [i915#3886]) +1 similar issue
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-iclb6/igt@kms_ccs@pipe-b-crc-sprite-planes-basic-y_tiled_gen12_rc_ccs_cc.html

* igt@kms_ccs@pipe-b-random-ccs-data-yf_tiled_ccs:
- shard-tglb: NOTRUN -> [SKIP][54] ([i915#3689]) +2 similar issues
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-tglb2/igt@kms_ccs@pipe-b-random-ccs-data-yf_tiled_ccs.html

* igt@kms_ccs@pipe-c-crc-primary-rotation-180-y_tiled_gen12_rc_ccs_cc:
- shard-glk: NOTRUN -> [SKIP][55] ([fdo#109271] / [i915#3886]) +3 similar issues
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-glk7/igt@kms_ccs@pipe-c-crc-primary-rotation-180-y_tiled_gen12_rc_ccs_cc.html

* igt@kms_ccs@pipe-c-random-ccs-data-y_tiled_gen12_mc_ccs:
- shard-tglb: NOTRUN -> [SKIP][56] ([i915#3689] / [i915#3886]) +1 similar issue
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-tglb2/igt@kms_ccs@pipe-c-random-ccs-data-y_tiled_gen12_mc_ccs.html

* igt@kms_chamelium@dp-frame-dump:
- shard-iclb: NOTRUN -> [SKIP][57] ([fdo#109284] / [fdo#111827]) +6 similar issues
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-iclb8/igt@[email protected]

* igt@kms_chamelium@vga-hpd:
- shard-apl: NOTRUN -> [SKIP][58] ([fdo#109271] / [fdo#111827]) +18 similar issues
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-apl7/igt@[email protected]

* igt@kms_chamelium@vga-hpd-enable-disable-mode:
- shard-glk: NOTRUN -> [SKIP][59] ([fdo#109271] / [fdo#111827]) +6 similar issues
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-glk4/igt@[email protected]

* igt@kms_color@pipe-d-ctm-negative:
- shard-iclb: NOTRUN -> [SKIP][60] ([fdo#109278] / [i915#1149]) +1 similar issue
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-iclb6/igt@[email protected]

* igt@kms_color_chamelium@pipe-a-ctm-blue-to-red:
- shard-snb: NOTRUN -> [SKIP][61] ([fdo#109271] / [fdo#111827]) +21 similar issues
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-snb6/igt@[email protected]

* igt@kms_color_chamelium@pipe-b-ctm-0-5:
- shard-tglb: NOTRUN -> [SKIP][62] ([fdo#109284] / [fdo#111827]) +8 similar issues
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-tglb6/igt@[email protected]
- shard-kbl: NOTRUN -> [SKIP][63] ([fdo#109271] / [fdo#111827]) +5 similar issues
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-kbl2/igt@[email protected]

* igt@kms_content_protection@atomic:
- shard-apl: NOTRUN -> [TIMEOUT][64] ([i915#1319])
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-apl3/igt@[email protected]

* igt@kms_content_protection@atomic-dpms:
- shard-tglb: NOTRUN -> [SKIP][65] ([fdo#111828]) +1 similar issue
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-tglb2/igt@[email protected]

* igt@kms_content_protection@dp-mst-lic-type-1:
- shard-iclb: NOTRUN -> [SKIP][66] ([i915#3116])
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-iclb5/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][67] ([i915#3116])
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-tglb1/igt@[email protected]

* igt@kms_content_protection@mei_interface:
- shard-iclb: NOTRUN -> [SKIP][68] ([fdo#109300] / [fdo#111066]) +1 similar issue
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-iclb1/igt@kms_content_protection@mei_interface.html

* igt@kms_content_protection@uevent:
- shard-apl: NOTRUN -> [FAIL][69] ([i915#2105])
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-apl2/igt@[email protected]

* igt@kms_cursor_crc@pipe-a-cursor-32x32-sliding:
- shard-tglb: NOTRUN -> [SKIP][70] ([i915#3319])
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-tglb7/igt@[email protected]

* igt@kms_cursor_crc@pipe-b-cursor-32x10-random:
- shard-tglb: NOTRUN -> [SKIP][71] ([i915#3359]) +3 similar issues
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-tglb1/igt@[email protected]

* igt@kms_cursor_crc@pipe-c-cursor-512x512-random:
- shard-iclb: NOTRUN -> [SKIP][72] ([fdo#109278] / [fdo#109279])
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-iclb6/igt@[email protected]

* igt@kms_cursor_crc@pipe-d-cursor-256x256-onscreen:
- shard-kbl: NOTRUN -> [SKIP][73] ([fdo#109271]) +38 similar issues
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-kbl7/igt@[email protected]

* igt@kms_cursor_crc@pipe-d-cursor-32x10-offscreen:
- shard-iclb: NOTRUN -> [SKIP][74] ([fdo#109278]) +17 similar issues
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-iclb7/igt@[email protected]

* igt@kms_cursor_crc@pipe-d-cursor-512x170-offscreen:
- shard-tglb: NOTRUN -> [SKIP][75] ([fdo#109279] / [i915#3359]) +1 similar issue
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-tglb1/igt@[email protected]

* igt@kms_cursor_legacy@flip-vs-cursor-busy-crc-legacy:
- shard-apl: NOTRUN -> [DMESG-WARN][76] ([IGT#6])
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-apl1/igt@[email protected]

* igt@kms_flip@2x-nonexisting-fb-interruptible:
- shard-iclb: NOTRUN -> [SKIP][77] ([fdo#109274]) +2 similar issues
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-iclb7/igt@[email protected]

* igt@kms_flip@flip-vs-expired-vblank-interruptible@b-hdmi-a2:
- shard-glk: [PASS][78] -> [FAIL][79] ([i915#79])
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10521/shard-glk9/igt@kms_flip@[email protected]
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-glk5/igt@kms_flip@[email protected]

* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs:
- shard-apl: NOTRUN -> [SKIP][80] ([fdo#109271] / [i915#2672])
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-apl6/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs.html

* igt@kms_flip_scaled_crc@flip-32bpp-ytileccs-to-64bpp-ytile:
- shard-snb: NOTRUN -> [SKIP][81] ([fdo#109271]) +441 similar issues
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-snb2/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][82] ([i915#2587])
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-tglb8/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-indfb-draw-mmap-gtt:
- shard-iclb: NOTRUN -> [SKIP][83] ([fdo#109280]) +14 similar issues
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-iclb6/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-indfb-draw-mmap-gtt.html

* igt@kms_frontbuffer_tracking@psr-2p-scndscrn-cur-indfb-draw-mmap-gtt:
- shard-tglb: NOTRUN -> [SKIP][84] ([fdo#111825]) +16 similar issues
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-tglb6/igt@kms_frontbuffer_tracking@psr-2p-scndscrn-cur-indfb-draw-mmap-gtt.html

* igt@kms_hdr@static-toggle-dpms:
- shard-tglb: NOTRUN -> [SKIP][85] ([i915#1187])
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-tglb3/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][86] ([i915#1187])
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-iclb6/igt@[email protected]

* igt@kms_pipe_crc_basic@read-crc-pipe-d:
- shard-apl: NOTRUN -> [SKIP][87] ([fdo#109271] / [i915#533]) +1 similar issue
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-apl1/igt@[email protected]

* igt@kms_plane_alpha_blend@pipe-b-alpha-transparent-fb:
- shard-apl: NOTRUN -> [FAIL][88] ([i915#265])
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-apl7/igt@[email protected]

* igt@kms_plane_alpha_blend@pipe-b-constant-alpha-max:
- shard-apl: NOTRUN -> [FAIL][89] ([fdo#108145] / [i915#265]) +2 similar issues
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-apl1/igt@[email protected]

* igt@kms_plane_lowres@pipe-d-tiling-y:
- shard-tglb: NOTRUN -> [SKIP][90] ([i915#3536])
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-tglb2/igt@[email protected]

* igt@kms_prime@basic-crc@first-to-second:
- shard-iclb: NOTRUN -> [SKIP][91] ([i915#1836])
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-iclb6/igt@kms_prime@[email protected]
- shard-tglb: NOTRUN -> [SKIP][92] ([i915#1836])
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-tglb3/igt@kms_prime@[email protected]

* igt@kms_psr2_sf@overlay-plane-update-sf-dmg-area-4:
- shard-apl: NOTRUN -> [SKIP][93] ([fdo#109271] / [i915#658]) +2 similar issues
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-apl3/igt@[email protected]

* igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area-1:
- shard-tglb: NOTRUN -> [SKIP][94] ([i915#2920])
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-tglb5/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][95] ([i915#2920])
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-iclb2/igt@[email protected]

* igt@kms_psr@psr2_cursor_mmap_cpu:
- shard-iclb: [PASS][96] -> [SKIP][97] ([fdo#109441]) +1 similar issue
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10521/shard-iclb2/igt@kms_psr@psr2_cursor_mmap_cpu.html
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-iclb7/igt@kms_psr@psr2_cursor_mmap_cpu.html

* igt@kms_psr@psr2_primary_blt:
- shard-tglb: NOTRUN -> [FAIL][98] ([i915#132] / [i915#3467]) +1 similar issue
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-tglb3/igt@kms_psr@psr2_primary_blt.html

* igt@kms_psr@psr2_sprite_mmap_gtt:
- shard-iclb: NOTRUN -> [SKIP][99] ([fdo#109441]) +1 similar issue
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-iclb7/igt@kms_psr@psr2_sprite_mmap_gtt.html

* igt@kms_rotation_crc@primary-yf-tiled-reflect-x-180:
- shard-tglb: NOTRUN -> [SKIP][100] ([fdo#111615]) +1 similar issue
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-tglb7/igt@[email protected]

* igt@kms_sysfs_edid_timing:
- shard-apl: NOTRUN -> [FAIL][101] ([IGT#2])
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-apl3/igt@kms_sysfs_edid_timing.html

* igt@kms_vblank@pipe-d-wait-forked-hang:
- shard-apl: NOTRUN -> [SKIP][102] ([fdo#109271]) +263 similar issues
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-apl1/igt@[email protected]

* igt@kms_writeback@writeback-check-output:
- shard-iclb: NOTRUN -> [SKIP][103] ([i915#2437])
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-iclb8/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][104] ([i915#2437])
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-tglb5/igt@[email protected]

* igt@kms_writeback@writeback-fb-id:
- shard-apl: NOTRUN -> [SKIP][105] ([fdo#109271] / [i915#2437])
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-apl8/igt@[email protected]

* {igt@msm_submit@invalid-in-fence-submit} (NEW):
- shard-tglb: NOTRUN -> [SKIP][106] ([fdo#109315] / [i915#2575]) +7 similar issues
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-tglb1/igt@[email protected]

* {igt@msm_submit@valid-submit} (NEW):
- shard-iclb: NOTRUN -> [SKIP][107] ([fdo#109315]) +7 similar issues
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-iclb5/igt@[email protected]

* igt@nouveau_crc@pipe-d-ctx-flip-detection:
- shard-tglb: NOTRUN -> [SKIP][108] ([i915#2530])
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-tglb3/igt@[email protected]

* igt@prime_nv_api@i915_nv_reimport_twice_check_flink_name:
- shard-tglb: NOTRUN -> [SKIP][109] ([fdo#109291]) +2 similar issues
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-tglb3/igt@prime_nv_api@i915_nv_reimport_twice_check_flink_name.html

* igt@prime_nv_pcopy@test2:
- shard-iclb: NOTRUN -> [SKIP][110] ([fdo#109291]) +1 similar issue
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-iclb6/igt@[email protected]

* igt@sysfs_clients@fair-1:
- shard-iclb: NOTRUN -> [SKIP][111] ([i915#2994])
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-iclb1/igt@[email protected]

* igt@sysfs_clients@recycle-many:
- shard-apl: NOTRUN -> [SKIP][112] ([fdo#109271] / [i915#2994]) +1 similar issue
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-apl6/igt@[email protected]

* igt@sysfs_clients@sema-10:
- shard-tglb: NOTRUN -> [SKIP][113] ([i915#2994]) +2 similar issues
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-tglb2/igt@[email protected]

#### Possible fixes ####

* igt@gem_exec_fair@basic-none-share@rcs0:
- shard-iclb: [FAIL][114] ([i915#2842]) -> [PASS][115]
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10521/shard-iclb4/igt@gem_exec_fair@[email protected]
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-iclb7/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-none-solo@rcs0:
- shard-kbl: [FAIL][116] ([i915#2842]) -> [PASS][117] +1 similar issue
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10521/shard-kbl2/igt@gem_exec_fair@[email protected]
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-kbl6/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-pace@vecs0:
- shard-glk: [FAIL][118] ([i915#2842]) -> [PASS][119] +2 similar issues
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10521/shard-glk6/igt@gem_exec_fair@[email protected]
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-glk5/igt@gem_exec_fair@[email protected]

* igt@gem_mmap_gtt@cpuset-big-copy:
- shard-iclb: [FAIL][120] ([i915#307]) -> [PASS][121]
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10521/shard-iclb5/igt@[email protected]
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-iclb5/igt@[email protected]

* igt@gem_mmap_gtt@cpuset-medium-copy:
- shard-glk: [FAIL][122] ([i915#1888] / [i915#307]) -> [PASS][123]
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10521/shard-glk5/igt@[email protected]
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-glk4/igt@[email protected]

* igt@gem_mmap_gtt@cpuset-medium-copy-odd:
- shard-iclb: [FAIL][124] ([i915#2428]) -> [PASS][125]
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10521/shard-iclb6/igt@[email protected]
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-iclb4/igt@[email protected]

* igt@i915_pm_dc@dc6-psr:
- shard-iclb: [FAIL][126] ([i915#454]) -> [PASS][127]
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10521/shard-iclb2/igt@[email protected]
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-iclb6/igt@[email protected]

* igt@kms_big_fb@linear-32bpp-rotate-180:
- shard-glk: [DMESG-WARN][128] ([i915#118] / [i915#95]) -> [PASS][129]
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10521/shard-glk8/igt@[email protected]
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/shard-glk5/igt@[email protected]

* igt@kms_cursor_crc@pipe-b-cursor-size-change:
- shard-kbl: [FAIL][130] ([i915#3444]) -> [PASS][131]
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10521/shard-kbl6/igt@[email protected]
[131]: ht

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6157/index.html