Skip to contentSkip to conversation

kci-gitlab: Introducing GitLab-CI Pipeline for Kernel Testing

PATCH In review Vignesh Raman 12 participants 42 messages Jan 23, 2025 – Jan 29, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

v2 cover kci-gitlab: Introducing GitLab-CI Pipeline for Kernel Testing

This patch series introduces "kci-gitlab," a GitLab CI pipeline specifically designed for kernel testing. It provides kernel developers with an integrated, efficient, and flexible testing framework using GitLab's CI/CD capabilities. This patch includes a .gitlab-ci file in the tools/ci/gitlab-ci/ folder, along with additional YAML and script files, to define a basic test pipeline triggered by code pushes to a GitLab-CI instance.
The initial version implements:

- Static checks: Includes checkpatch and smatch for code validation.
- Build tests: Covers various architectures and configurations.
- Boot tests: Utilizes virtme for basic boot testing.

Additionally, it introduces a flexible "scenarios" mechanism to support subsystem-specific extensions.

This series also introduces a drm scenario that adds a job to run IGT tests for vkms. This scenario includes helper scripts to build deqp-runner and IGT, leveraging approaches from the drm-ci/mesa-ci project.

We are working towards creating a generic, upstream GitLab-CI pipeline (kci-gitlab) that will replace DRM-CI [1]. The proposed GitLab-CI pipeline is designed with a distributed infrastructure model, making it possible to run on any gitLab instance. We plan to leverage KernelCI [2] as the backend, utilizing its hardware, rootfs, test plans, and KCIDB [3] integration.

For an example of a fully executed pipeline with drm scenario set, including documentation generation,
see: https://gitlab.freedesktop.org/vigneshraman/kernel/-/pipelines/1350262

Please refer to the documentation included in the patch, or check the rendered version, here:
https://vigneshraman.pages.freedesktop.org/-/kernel/-/jobs/69787927/artifacts/artifacts/Documentation-output/ci/gitlab-ci/gitlab-ci.html

Differences from v1 to v2:
- moved to tools/ci as suggested by Linus on the previous version
- add arm64 containers for native compilation
- added boot tests using virtme: this is the base structure for boot tests, next steps would be adding other tests such as kselftests/kunit tests
- added DRM scenario testing on vkms: this should replace current vkms test in drm-ci. This work shows how a test scenario can be used by different subsystems to add their tests.
- update documentation

For more details on the motivation behind this work, please refer to the
cover letter of v1: https://patchwork.kernel.org/project/linux-kselftest/cover/[email protected]/

[1] https://www.collabora.com/news-and-blog/blog/2024/02/08/drm-ci-a-gitlab-ci-pipeline-for-linux-kernel-testing/
[2] https://kernelci.org/
[3] https://docs.kernelci.org/kcidb/

Helen Koike (3):
kci-gitlab: Introducing GitLab-CI Pipeline for Kernel Testing
kci-gitlab: Add documentation
kci-gitlab: docs: Add images

Vignesh Raman (2):
MAINTAINERS: Add an entry for ci automated testing
kci-gitlab: Add drm scenario

 Documentation/ci/gitlab-ci/gitlab-ci.rst      | 471 ++++++++++
 .../ci/gitlab-ci/images/drm-vkms.png          | Bin 0 -> 73810 bytes
 .../ci/gitlab-ci/images/job-matrix.png        | Bin 0 -> 20000 bytes
 .../gitlab-ci/images/new-project-runner.png   | Bin 0 -> 607737 bytes
 .../ci/gitlab-ci/images/pipelines-on-push.png | Bin 0 -> 532143 bytes
 .../ci/gitlab-ci/images/the-pipeline.png      | Bin 0 -> 62464 bytes
 .../ci/gitlab-ci/images/variables.png         | Bin 0 -> 277518 bytes
 Documentation/index.rst                       |   7 +
 MAINTAINERS                                   |  10 +
 tools/ci/gitlab-ci/arm_cross_compile.yml      |   9 +
 tools/ci/gitlab-ci/arm_native_compile.yml     |  20 +
 tools/ci/gitlab-ci/bootstrap-gitlab-runner.sh |  55 ++
 tools/ci/gitlab-ci/build.yml                  |  43 +
 tools/ci/gitlab-ci/cache.yml                  |  24 +
 tools/ci/gitlab-ci/ci-scripts/build-docs.sh   |  35 +
 tools/ci/gitlab-ci/ci-scripts/build-kernel.sh |  43 +
 .../ci/gitlab-ci/ci-scripts/ici-functions.sh  | 106 +++
 .../ci/gitlab-ci/ci-scripts/install-smatch.sh |  13 +
 .../ci-scripts/parse_commit_message.sh        |  27 +
 .../ci/gitlab-ci/ci-scripts/run-checkpatch.sh |  20 +
 tools/ci/gitlab-ci/ci-scripts/run-smatch.sh   |  45 +
 tools/ci/gitlab-ci/ci-scripts/run-virtme.sh   |  52 ++
 tools/ci/gitlab-ci/ci-scripts/test-boot.sh    |  14 +
 tools/ci/gitlab-ci/container.yml              | 114 +++
 tools/ci/gitlab-ci/docker-compose.yaml        |  18 +
 tools/ci/gitlab-ci/gitlab-ci.yml              |  72 ++
 tools/ci/gitlab-ci/scenarios.yml              |  15 +
 .../scenarios/drm/build-deqp-runner.sh        |  42 +
 tools/ci/gitlab-ci/scenarios/drm/build-igt.sh |  80 ++
 .../ci/gitlab-ci/scenarios/drm/build-rust.sh  |  42 +
 .../scenarios/drm/create-cross-file.sh        |  65 ++
 tools/ci/gitlab-ci/scenarios/drm/drm.yml      |  44 +
 .../scenarios/drm/prepare-container.sh        |  18 +
 tools/ci/gitlab-ci/scenarios/drm/run-igt.sh   |  83 ++
 tools/ci/gitlab-ci/scenarios/drm/test.yml     |  32 +
 .../scenarios/drm/xfails/vkms-none-fails.txt  |  22 +
 .../scenarios/drm/xfails/vkms-none-flakes.txt |  90 ++
 .../scenarios/drm/xfails/vkms-none-skips.txt  | 812 ++++++++++++++++++
 .../scenarios/file-systems/file-systems.yml   |  11 +
 tools/ci/gitlab-ci/scenarios/media/media.yml  |  11 +
 .../gitlab-ci/scenarios/network/network.yml   |  11 +
 tools/ci/gitlab-ci/static-checks.yml          |  21 +
 tools/ci/gitlab-ci/test.yml                   |  16 +
 43 files changed, 2613 insertions(+)
 create mode 100644 Documentation/ci/gitlab-ci/gitlab-ci.rst
 create mode 100644 Documentation/ci/gitlab-ci/images/drm-vkms.png
 create mode 100644 Documentation/ci/gitlab-ci/images/job-matrix.png
 create mode 100644 Documentation/ci/gitlab-ci/images/new-project-runner.png
 create mode 100644 Documentation/ci/gitlab-ci/images/pipelines-on-push.png
 create mode 100644 Documentation/ci/gitlab-ci/images/the-pipeline.png
 create mode 100644 Documentation/ci/gitlab-ci/images/variables.png
 create mode 100644 tools/ci/gitlab-ci/arm_cross_compile.yml
 create mode 100644 tools/ci/gitlab-ci/arm_native_compile.yml
 create mode 100755 tools/ci/gitlab-ci/bootstrap-gitlab-runner.sh
 create mode 100644 tools/ci/gitlab-ci/build.yml
 create mode 100644 tools/ci/gitlab-ci/cache.yml
 create mode 100755 tools/ci/gitlab-ci/ci-scripts/build-docs.sh
 create mode 100755 tools/ci/gitlab-ci/ci-scripts/build-kernel.sh
 create mode 100644 tools/ci/gitlab-ci/ci-scripts/ici-functions.sh
 create mode 100755 tools/ci/gitlab-ci/ci-scripts/install-smatch.sh
 create mode 100755 tools/ci/gitlab-ci/ci-scripts/parse_commit_message.sh
 create mode 100755 tools/ci/gitlab-ci/ci-scripts/run-checkpatch.sh
 create mode 100755 tools/ci/gitlab-ci/ci-scripts/run-smatch.sh
 create mode 100755 tools/ci/gitlab-ci/ci-scripts/run-virtme.sh
 create mode 100755 tools/ci/gitlab-ci/ci-scripts/test-boot.sh
 create mode 100644 tools/ci/gitlab-ci/container.yml
 create mode 100644 tools/ci/gitlab-ci/docker-compose.yaml
 create mode 100644 tools/ci/gitlab-ci/gitlab-ci.yml
 create mode 100644 tools/ci/gitlab-ci/scenarios.yml
 create mode 100755 tools/ci/gitlab-ci/scenarios/drm/build-deqp-runner.sh
 create mode 100755 tools/ci/gitlab-ci/scenarios/drm/build-igt.sh
 create mode 100755 tools/ci/gitlab-ci/scenarios/drm/build-rust.sh
 create mode 100755 tools/ci/gitlab-ci/scenarios/drm/create-cross-file.sh
 create mode 100644 tools/ci/gitlab-ci/scenarios/drm/drm.yml
 create mode 100755 tools/ci/gitlab-ci/scenarios/drm/prepare-container.sh
 create mode 100755 tools/ci/gitlab-ci/scenarios/drm/run-igt.sh
 create mode 100644 tools/ci/gitlab-ci/scenarios/drm/test.yml
 create mode 100644 tools/ci/gitlab-ci/scenarios/drm/xfails/vkms-none-fails.txt
 create mode 100644 tools/ci/gitlab-ci/scenarios/drm/xfails/vkms-none-flakes.txt
 create mode 100644 tools/ci/gitlab-ci/scenarios/drm/xfails/vkms-none-skips.txt
 create mode 100644 tools/ci/gitlab-ci/scenarios/file-systems/file-systems.yml
 create mode 100644 tools/ci/gitlab-ci/scenarios/media/media.yml
 create mode 100644 tools/ci/gitlab-ci/scenarios/network/network.yml
 create mode 100644 tools/ci/gitlab-ci/static-checks.yml
 create mode 100644 tools/ci/gitlab-ci/test.yml
Signature · 1 line
2.43.0
#1 lore raw

PATCH v2 1/5 kci-gitlab: Introducing GitLab-CI Pipeline for Kernel Testing

From: Helen Koike <[email protected]>

This patch introduces a .gitlab-ci file in the tools/ci/gitlab-ci/ folder and other yml and script files, defining a basic test pipeline triggered by code pushes to a GitLab-CI instance. This initial version includes static checks (checkpatch and smatch for now), build tests across various architectures and configurations, and boot test using virtme. It introduces a flexible 'scenarios' mechanism for subsystem-specific extensions.

---
 tools/ci/gitlab-ci/arm_cross_compile.yml      |   9 ++
 tools/ci/gitlab-ci/arm_native_compile.yml     |  20 +++
 tools/ci/gitlab-ci/bootstrap-gitlab-runner.sh |  55 +++++++++
 tools/ci/gitlab-ci/build.yml                  |  43 +++++++
 tools/ci/gitlab-ci/cache.yml                  |  24 ++++
 tools/ci/gitlab-ci/ci-scripts/build-docs.sh   |  35 ++++++
 tools/ci/gitlab-ci/ci-scripts/build-kernel.sh |  43 +++++++
 .../ci/gitlab-ci/ci-scripts/ici-functions.sh  | 106 ++++++++++++++++
 .../ci/gitlab-ci/ci-scripts/install-smatch.sh |  13 ++
 .../ci-scripts/parse_commit_message.sh        |  27 +++++
 .../ci/gitlab-ci/ci-scripts/run-checkpatch.sh |  20 +++
 tools/ci/gitlab-ci/ci-scripts/run-smatch.sh   |  45 +++++++
 tools/ci/gitlab-ci/ci-scripts/run-virtme.sh   |  52 ++++++++
 tools/ci/gitlab-ci/ci-scripts/test-boot.sh    |  14 +++
 tools/ci/gitlab-ci/container.yml              | 114 ++++++++++++++++++
 tools/ci/gitlab-ci/docker-compose.yaml        |  18 +++
 tools/ci/gitlab-ci/gitlab-ci.yml              |  72 +++++++++++
 tools/ci/gitlab-ci/scenarios.yml              |  15 +++
 tools/ci/gitlab-ci/scenarios/drm/drm.yml      |  11 ++
 .../scenarios/file-systems/file-systems.yml   |  11 ++
 tools/ci/gitlab-ci/scenarios/media/media.yml  |  11 ++
 .../gitlab-ci/scenarios/network/network.yml   |  11 ++
 tools/ci/gitlab-ci/static-checks.yml          |  21 ++++
 tools/ci/gitlab-ci/test.yml                   |  16 +++
 24 files changed, 806 insertions(+)
 create mode 100644 tools/ci/gitlab-ci/arm_cross_compile.yml
 create mode 100644 tools/ci/gitlab-ci/arm_native_compile.yml
 create mode 100755 tools/ci/gitlab-ci/bootstrap-gitlab-runner.sh
 create mode 100644 tools/ci/gitlab-ci/build.yml
 create mode 100644 tools/ci/gitlab-ci/cache.yml
 create mode 100755 tools/ci/gitlab-ci/ci-scripts/build-docs.sh
 create mode 100755 tools/ci/gitlab-ci/ci-scripts/build-kernel.sh
 create mode 100644 tools/ci/gitlab-ci/ci-scripts/ici-functions.sh
 create mode 100755 tools/ci/gitlab-ci/ci-scripts/install-smatch.sh
 create mode 100755 tools/ci/gitlab-ci/ci-scripts/parse_commit_message.sh
 create mode 100755 tools/ci/gitlab-ci/ci-scripts/run-checkpatch.sh
 create mode 100755 tools/ci/gitlab-ci/ci-scripts/run-smatch.sh
 create mode 100755 tools/ci/gitlab-ci/ci-scripts/run-virtme.sh
 create mode 100755 tools/ci/gitlab-ci/ci-scripts/test-boot.sh
 create mode 100644 tools/ci/gitlab-ci/container.yml
 create mode 100644 tools/ci/gitlab-ci/docker-compose.yaml
 create mode 100644 tools/ci/gitlab-ci/gitlab-ci.yml
 create mode 100644 tools/ci/gitlab-ci/scenarios.yml
 create mode 100644 tools/ci/gitlab-ci/scenarios/drm/drm.yml
 create mode 100644 tools/ci/gitlab-ci/scenarios/file-systems/file-systems.yml
 create mode 100644 tools/ci/gitlab-ci/scenarios/media/media.yml
 create mode 100644 tools/ci/gitlab-ci/scenarios/network/network.yml
 create mode 100644 tools/ci/gitlab-ci/static-checks.yml
 create mode 100644 tools/ci/gitlab-ci/test.yml
tools/ci/gitlab-ci/arm_cross_compile.yml new file +9 -0
new file mode 100644
index 000000000000..a52b981b4312
@@ -0,0 +1,9 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2025 Collabora, Vignesh Raman <[email protected]>
+
+.use-debian/arm64_build:
+  extends:
+    - .use-debian/x86_64_build
+  needs:
+    - job: debian/x86_64_build
tools/ci/gitlab-ci/arm_native_compile.yml new file +20 -0
new file mode 100644
index 000000000000..649eeebad234
@@ -0,0 +1,20 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2025 Collabora, Vignesh Raman <[email protected]>
+
+debian/arm64_build:
+  extends:
+    - .debian-arm64
+    - .fdo.container-build@debian
+  tags:
+    - aarch64
+  stage: container
+
+.use-debian/arm64_build:
+  tags:
+    - aarch64
+  extends:
+    - .debian-arm64
+    - .fdo.suffixed-image@debian
+  needs:
+    - job: debian/arm64_build
tools/ci/gitlab-ci/bootstrap-gitlab-runner.sh new file +55 -0

55 lines not on this page · raw message

tools/ci/gitlab-ci/build.yml new file +43 -0

43 lines not on this page · raw message

tools/ci/gitlab-ci/cache.yml new file +24 -0
new file mode 100644
index 000000000000..88dca0ee74a0
@@ -0,0 +1,24 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2024 Collabora, Helen Koike <[email protected]>
+
+# Smatch db is saved to a cached folder, so it can be used by other jobs and pipelines.
+# It is set to manual so it can be run when needed
+
+.use-cache-smatch-db:
+  cache:
+    - key: smatch-db
+      paths:
+        - /smatch/smatch_data
+
+smatch-db-generate:
+  stage: cache
+  extends:
+    - .use-debian/x86_64_build
+    - .use-cache-smatch-db
+  script:
+    - source tools/ci/gitlab-ci/ci-scripts/ici-functions.sh
+    - ici_prepare_build
+    - cp build/.config .
+    - /smatch/smatch_scripts/build_kernel_data.sh
+  when: manual
tools/ci/gitlab-ci/ci-scripts/build-docs.sh new file +35 -0
new file mode 100755
index 000000000000..43c6782d8540
@@ -0,0 +1,35 @@
+#!/bin/bash
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2024 Collabora, Helen Koike <[email protected]>
+
+set -exo pipefail
+
+source tools/ci/gitlab-ci/ci-scripts/ici-functions.sh
+
+ici_get_patch_series_size
+
+# Get the list of modified files in the last $ICI_PATCH_SERIES_SIZE commits
+MODIFIED_DOC_FILES=$(git diff HEAD~$ICI_PATCH_SERIES_SIZE --name-only -- Documentation/)
+
+make -j$(nproc) "$ICI_DOC_TYPE" 2>&1 | tee output.txt
+
+mkdir -p "${CI_PROJECT_DIR}/artifacts"
+mv Documentation/output "${CI_PROJECT_DIR}/artifacts/Documentation-output"
+
+# Check if any of the MODIFIED_DOC_FILES generated a warning
+# NOTE: the alternative solution was to touch the modified files and run make
+# again, but too many warnings still appear
+for file in $MODIFIED_DOC_FILES; do
+    if grep -qi "warning" output.txt && grep -q "$file" output.txt; then
+        echo "Warning found in $file"
+        exit 101
+    fi
+done
+
+if [ -n "$ICI_UNABLE_TO_DETECT_PATCH_SERIES_SIZE" ]; then
+    # If the patch series size was not detected, exit with a warning
+    echo -n "The patch series size was not detected, we probably didn't check the"
+    echo " whole series. Exiting with a warning."
+    exit 101
+fi
tools/ci/gitlab-ci/ci-scripts/build-kernel.sh new file +43 -0

43 lines not on this page · raw message

tools/ci/gitlab-ci/ci-scripts/ici-functions.sh new file +106 -0

106 lines not on this page · raw message

tools/ci/gitlab-ci/ci-scripts/install-smatch.sh new file +13 -0
new file mode 100755
index 000000000000..cae16a0e90fa
@@ -0,0 +1,13 @@
+#!/bin/bash
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2024 Collabora, Helen Koike <[email protected]>
+
+set -exo pipefail
+
+pushd /
+git clone --depth 1 https://repo.or.cz/smatch.git
+pushd smatch
+make
+popd
+popd
tools/ci/gitlab-ci/ci-scripts/parse_commit_message.sh new file +27 -0
new file mode 100755
index 000000000000..c9792c64ad51
@@ -0,0 +1,27 @@
+#!/bin/bash
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2024 Collabora, Helen Koike <[email protected]>
+
+set -exo pipefail
+
+# Get the last commit message
+commit_message=$(git log -1 --pretty=%B)
+
+pattern='(KCI_[A-Za-z_]+)=("[^"]*"|[^ ]+)'
+
+while read -r line; do
+    if [[ $line =~ $pattern ]]; then
+        variable_name="${BASH_REMATCH[1]}"
+        variable_value="${BASH_REMATCH[2]}"
+
+        # Remove quotes if present
+        variable_value="${variable_value%\"}"
+        variable_value="${variable_value#\"}"
+
+        # Export the variable
+        export "$variable_name=$variable_value"
+
+        echo "Exported $variable_name=$variable_value"
+    fi
+done <<< "$commit_message"
tools/ci/gitlab-ci/ci-scripts/run-checkpatch.sh new file +20 -0
new file mode 100755
index 000000000000..dedcb3134141
@@ -0,0 +1,20 @@
+#!/bin/bash
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2024 Collabora, Helen Koike <[email protected]>
+
+set -exo pipefail
+
+source tools/ci/gitlab-ci/ci-scripts/ici-functions.sh
+
+ici_get_patch_series_size
+
+# shellcheck disable=SC2086
+scripts/checkpatch.pl $KCI_CHECKPATCH_OPTIONS --git HEAD-"$ICI_PATCH_SERIES_SIZE"
+
+if [ -n "$ICI_UNABLE_TO_DETECT_PATCH_SERIES_SIZE" ]; then
+    # If the patch series size was not detected, exit with a warning
+    echo -n "The patch series size was not detected, we probably didn't check the whole series."
+    echo " Exiting with a warning."
+    exit 101
+fi
tools/ci/gitlab-ci/ci-scripts/run-smatch.sh new file +45 -0

45 lines not on this page · raw message

tools/ci/gitlab-ci/ci-scripts/run-virtme.sh new file +52 -0

52 lines not on this page · raw message

tools/ci/gitlab-ci/ci-scripts/test-boot.sh new file +14 -0
new file mode 100755
index 000000000000..1afe3483b5e8
@@ -0,0 +1,14 @@
+#!/bin/sh
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2025 Collabora, Vignesh Raman <[email protected]>
+
+set -ex
+
+STATUS_FILE="${1}"
+
+uname -a
+ret=$?
+
+echo $ret > ${STATUS_FILE}
+exit $ret
tools/ci/gitlab-ci/container.yml new file +114 -0

114 lines not on this page · raw message

tools/ci/gitlab-ci/docker-compose.yaml new file +18 -0
new file mode 100644
index 000000000000..7edf8055ca37
@@ -0,0 +1,18 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2024 Collabora, Helen Koike <[email protected]>
+
+version: '3.8'
+
+services:
+  gitlab-runner:
+    image: gitlab/gitlab-runner:latest
+    container_name: gitlab-runner
+    restart: always
+    privileged: true
+    volumes:
+      - /srv/gitlab-runner/config:/etc/gitlab-runner
+      - /var/run/docker.sock:/var/run/docker.sock
+
+# To register the GitLab Runner, run the following command:
+# docker run --rm -it -v /srv/gitlab-runner/config:/etc/gitlab-runner gitlab/gitlab-runner register --url https://gitlab.com --token YOUR_REGISTRATION_TOKEN
tools/ci/gitlab-ci/gitlab-ci.yml new file +72 -0

72 lines not on this page · raw message

tools/ci/gitlab-ci/scenarios.yml new file +15 -0
new file mode 100644
index 000000000000..8363da24133f
@@ -0,0 +1,15 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2024 Collabora, Helen Koike <[email protected]>
+
+# Extend the CI by including a test scenario here. The scenario will be
+# activated if KCI_SCENARIO is set to the scenario name. KCI_SCENARIO can be
+# defined in the gitlab-ci.yml file, or through GitLab UI.
+
+include:
+  - local: 'tools/ci/gitlab-ci/scenarios/$KCI_SCENARIO/$KCI_SCENARIO.yml'
+    rules:
+      - if: '$KCI_SCENARIO'
+  - local: 'tools/ci/gitlab-ci/scenarios/$KCI_SCENARIO/test.yml'
+    rules:
+      - if: '$KCI_SCENARIO'
tools/ci/gitlab-ci/scenarios/drm/drm.yml new file +11 -0
new file mode 100644
index 000000000000..206e6f0d1a46
@@ -0,0 +1,11 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2024 Collabora, Helen Koike <[email protected]>
+
+# Write here specific configurations and extensions for the given scenario
+
+# Example - overwrite kernel combinations in the pipeline
+# build:arm64:
+#   variables:
+#     KCI_KCONFIGS_ENABLE: "CONFIG1 CONFIG2"
+#     KCI_DEFCONFIG: "my/custom/config1"
tools/ci/gitlab-ci/scenarios/file-systems/file-systems.yml new file +11 -0
new file mode 100644
index 000000000000..206e6f0d1a46
@@ -0,0 +1,11 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2024 Collabora, Helen Koike <[email protected]>
+
+# Write here specific configurations and extensions for the given scenario
+
+# Example - overwrite kernel combinations in the pipeline
+# build:arm64:
+#   variables:
+#     KCI_KCONFIGS_ENABLE: "CONFIG1 CONFIG2"
+#     KCI_DEFCONFIG: "my/custom/config1"
tools/ci/gitlab-ci/scenarios/media/media.yml new file +11 -0
new file mode 100644
index 000000000000..206e6f0d1a46
@@ -0,0 +1,11 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2024 Collabora, Helen Koike <[email protected]>
+
+# Write here specific configurations and extensions for the given scenario
+
+# Example - overwrite kernel combinations in the pipeline
+# build:arm64:
+#   variables:
+#     KCI_KCONFIGS_ENABLE: "CONFIG1 CONFIG2"
+#     KCI_DEFCONFIG: "my/custom/config1"
tools/ci/gitlab-ci/scenarios/network/network.yml new file +11 -0
new file mode 100644
index 000000000000..206e6f0d1a46
@@ -0,0 +1,11 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2024 Collabora, Helen Koike <[email protected]>
+
+# Write here specific configurations and extensions for the given scenario
+
+# Example - overwrite kernel combinations in the pipeline
+# build:arm64:
+#   variables:
+#     KCI_KCONFIGS_ENABLE: "CONFIG1 CONFIG2"
+#     KCI_DEFCONFIG: "my/custom/config1"
tools/ci/gitlab-ci/static-checks.yml new file +21 -0
new file mode 100644
index 000000000000..656802fd8fb6
@@ -0,0 +1,21 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2024 Collabora, Helen Koike <[email protected]>
+
+.static-checks:
+  stage: static-checks
+  extends:
+    - .use-debian/x86_64_build
+    - .x86_64-config
+
+checkpatch:
+  extends: .static-checks
+  script:
+    - tools/ci/gitlab-ci/ci-scripts/run-checkpatch.sh
+
+smatch:
+  extends:
+    - .static-checks
+    - .use-cache-smatch-db
+  script:
+    - tools/ci/gitlab-ci/ci-scripts/run-smatch.sh
tools/ci/gitlab-ci/test.yml new file +16 -0
new file mode 100644
index 000000000000..e64ea36c1321
@@ -0,0 +1,16 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2025 Collabora, Vignesh Raman <[email protected]>
+
+test-boot:
+  extends: build:x86_64
+  stage: test
+  timeout: "10m"
+  tags:
+    - kvm
+  script:
+    - mkdir -p /install
+    - cp $CI_PROJECT_DIR/artifacts/kernel-install-${KCI_KERNEL_ARCH}/bzImage /install/
+    - ./tools/ci/gitlab-ci/ci-scripts/run-virtme.sh /install/bzImage ./tools/ci/gitlab-ci/ci-scripts/test-boot.sh
+  needs:
+    - build:x86_64
Signature · 1 line
2.43.0
#2 lore raw

PATCH v2 2/5 MAINTAINERS: Add an entry for ci automated testing

In reply to Vignesh Raman

Add ci automated testing entry to MAINTAINERS to
clarify the maintainers.

---
 MAINTAINERS | 9 +++++++++
 1 file changed, 9 insertions(+)
MAINTAINERS +9 -0
index 33fe500bf3ae..874044e570f7 100644
@@ -5473,6 +5473,15 @@ T:	git git://linuxtv.org/media.git
 F:	Documentation/devicetree/bindings/media/i2c/chrontel,ch7322.yaml
 F:	drivers/media/cec/i2c/ch7322.c
 
+CI AUTOMATED TESTING
+M:	Helen Koike <[email protected]>
+M:	Vignesh Raman <[email protected]>
+L:	[email protected]
+S:	Maintained
+T:	git https://github.com/kernelci/linux.git
+F:	Documentation/ci/
+F:	tools/ci/gitlab-ci/
+
 CIRRUS LOGIC AUDIO CODEC DRIVERS
 M:	David Rhodes <[email protected]>
 M:	Richard Fitzgerald <[email protected]>
Signature · 1 line
2.43.0
#3 lore raw

PATCH v2 3/5 kci-gitlab: Add drm scenario

In reply to Vignesh Raman

Add a drm scenario that includes a job to run IGT tests for vkms. It also includes helper scripts to build deqp-runner and IGT, which are based on the mesa-ci project.

The xfails are added from drm-ci (drivers/gpu/drm/ci/xfails) Refer to Documentation/gpu/automated_testing.rst for details regarding fails/flakes/skips files.

---
 MAINTAINERS                                   |   1 +
 .../scenarios/drm/build-deqp-runner.sh        |  42 +
 tools/ci/gitlab-ci/scenarios/drm/build-igt.sh |  80 ++
 .../ci/gitlab-ci/scenarios/drm/build-rust.sh  |  42 +
 .../scenarios/drm/create-cross-file.sh        |  65 ++
 tools/ci/gitlab-ci/scenarios/drm/drm.yml      |  45 +-
 .../scenarios/drm/prepare-container.sh        |  18 +
 tools/ci/gitlab-ci/scenarios/drm/run-igt.sh   |  83 ++
 tools/ci/gitlab-ci/scenarios/drm/test.yml     |  32 +
 .../scenarios/drm/xfails/vkms-none-fails.txt  |  22 +
 .../scenarios/drm/xfails/vkms-none-flakes.txt |  90 ++
 .../scenarios/drm/xfails/vkms-none-skips.txt  | 812 ++++++++++++++++++
 12 files changed, 1326 insertions(+), 6 deletions(-)
 create mode 100755 tools/ci/gitlab-ci/scenarios/drm/build-deqp-runner.sh
 create mode 100755 tools/ci/gitlab-ci/scenarios/drm/build-igt.sh
 create mode 100755 tools/ci/gitlab-ci/scenarios/drm/build-rust.sh
 create mode 100755 tools/ci/gitlab-ci/scenarios/drm/create-cross-file.sh
 create mode 100755 tools/ci/gitlab-ci/scenarios/drm/prepare-container.sh
 create mode 100755 tools/ci/gitlab-ci/scenarios/drm/run-igt.sh
 create mode 100644 tools/ci/gitlab-ci/scenarios/drm/test.yml
 create mode 100644 tools/ci/gitlab-ci/scenarios/drm/xfails/vkms-none-fails.txt
 create mode 100644 tools/ci/gitlab-ci/scenarios/drm/xfails/vkms-none-flakes.txt
 create mode 100644 tools/ci/gitlab-ci/scenarios/drm/xfails/vkms-none-skips.txt
MAINTAINERS +1 -0
index 874044e570f7..8de12618c3e1 100644
@@ -7551,6 +7551,7 @@ S:	Maintained
 T:	git https://gitlab.freedesktop.org/drm/misc/kernel.git
 F:	Documentation/gpu/vkms.rst
 F:	drivers/gpu/drm/ci/xfails/vkms*
+F:	tools/ci/gitlab-ci/scenarios/drm/xfails/vkms*
 F:	drivers/gpu/drm/vkms/
 
 DRM DRIVER FOR VIRTUALBOX VIRTUAL GPU
tools/ci/gitlab-ci/scenarios/drm/build-deqp-runner.sh new file +42 -0

42 lines not on this page · raw message

tools/ci/gitlab-ci/scenarios/drm/build-igt.sh new file +80 -0

80 lines not on this page · raw message

tools/ci/gitlab-ci/scenarios/drm/build-rust.sh new file +42 -0

42 lines not on this page · raw message

tools/ci/gitlab-ci/scenarios/drm/create-cross-file.sh new file +65 -0

65 lines not on this page · raw message

tools/ci/gitlab-ci/scenarios/drm/drm.yml +39 -6

50 lines not on this page · raw message

tools/ci/gitlab-ci/scenarios/drm/prepare-container.sh new file +18 -0
new file mode 100755
index 000000000000..43fbfdcd3514
@@ -0,0 +1,18 @@
+#!/bin/bash
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2025 Collabora, Vignesh Raman <[email protected]>
+
+set -ex
+
+############### Install Smatch
+
+. ./tools/ci/gitlab-ci/ci-scripts/install-smatch.sh
+
+############### Install Rust toolchain
+
+. ./tools/ci/gitlab-ci/scenarios/drm/build-rust.sh
+
+############### Build dEQP runner
+
+. ./tools/ci/gitlab-ci/scenarios/drm/build-deqp-runner.sh
tools/ci/gitlab-ci/scenarios/drm/run-igt.sh new file +83 -0

83 lines not on this page · raw message

tools/ci/gitlab-ci/scenarios/drm/test.yml new file +32 -0
new file mode 100644
index 000000000000..9fb37beb446d
@@ -0,0 +1,32 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2025 Collabora, Vignesh Raman <[email protected]>
+
+vkms:none:
+  extends: build:x86_64
+  stage: test
+  timeout: "1h30m"
+  variables:
+    DRIVER_NAME: vkms
+    GPU_VERSION: none
+  tags:
+    - kvm
+  script:
+    - mkdir -p /install/xfails
+    - cp -rfv tools/ci/gitlab-ci/scenarios/drm/xfails /install/
+    - cp $CI_PROJECT_DIR/artifacts/kernel-install-${KCI_KERNEL_ARCH}/bzImage /install
+    - tar -xv -C / -f $CI_PROJECT_DIR/artifacts/igt-install-${KCI_KERNEL_ARCH}/igt.tar
+    - mkdir -p $CI_PROJECT_DIR/results
+    - ln -sf $CI_PROJECT_DIR/results /results
+    - ./tools/ci/gitlab-ci/ci-scripts/run-virtme.sh /install/bzImage ./tools/ci/gitlab-ci/scenarios/drm/run-igt.sh "DRIVER_NAME=$DRIVER_NAME GPU_VERSION=$GPU_VERSION"
+  artifacts:
+    when: always
+    paths:
+      - results/
+  needs:
+    - build:x86_64
+    - igt:x86_64
+
+test-boot:
+  rules:
+    - when: never
tools/ci/gitlab-ci/scenarios/drm/xfails/vkms-none-fails.txt new file +22 -0
new file mode 100644
index 000000000000..3979c95c07ed
@@ -0,0 +1,22 @@
+kms_cursor_crc@cursor-rapid-movement-256x85,Fail
+kms_cursor_crc@cursor-rapid-movement-32x10,Fail
+kms_cursor_crc@cursor-rapid-movement-64x64,Fail
+kms_cursor_legacy@basic-flip-before-cursor-atomic,Fail
+kms_cursor_legacy@basic-flip-before-cursor-legacy,Fail
+kms_cursor_legacy@cursor-vs-flip-atomic,Fail
+kms_cursor_legacy@cursor-vs-flip-legacy,Fail
+kms_cursor_legacy@cursor-vs-flip-toggle,Fail
+kms_cursor_legacy@cursor-vs-flip-varying-size,Fail
+kms_cursor_legacy@flip-vs-cursor-atomic,Fail
+kms_cursor_legacy@flip-vs-cursor-crc-atomic,Fail
+kms_cursor_legacy@flip-vs-cursor-crc-legacy,Fail
+kms_cursor_legacy@flip-vs-cursor-legacy,Fail
+kms_flip@flip-vs-modeset-vs-hang,Fail
+kms_flip@flip-vs-panning-vs-hang,Fail
+kms_writeback@writeback-check-output,Fail
+kms_writeback@writeback-check-output-XRGB2101010,Fail
+kms_writeback@writeback-fb-id,Fail
+kms_writeback@writeback-fb-id-XRGB2101010,Fail
+kms_writeback@writeback-invalid-parameters,Fail
+kms_writeback@writeback-pixel-formats,Fail
+perf@i915-ref-count,Fail
tools/ci/gitlab-ci/scenarios/drm/xfails/vkms-none-flakes.txt new file +90 -0

90 lines not on this page · raw message

tools/ci/gitlab-ci/scenarios/drm/xfails/vkms-none-skips.txt new file +812 -0

812 lines not on this page · raw message

Signature · 1 line
2.43.0
#4 lore raw

Re: [PATCH v2 3/5] kci-gitlab: Add drm scenario

Quoted 7 lines · Vignesh Raman

Add a drm scenario that includes a job to run IGT tests for vkms. It also includes helper scripts to build deqp-runner and IGT, which are based on the mesa-ci project.

The xfails are added from drm-ci (drivers/gpu/drm/ci/xfails) Refer to Documentation/gpu/automated_testing.rst for details regarding fails/flakes/skips files.

Why does this need to be duplicated, especially since this is another gitlab-ci support like we have already? I know there's difference between the gitlab on fd.o and others, but this is a bit much.

What I expected:
- Stuff that's relevant for the subsystem like the xfail list, or the igt version we want to test against or any of these things would stay in the subsystem ci folder, so drivers/gpu/drm/ci here. There should be no need to duplicate anything, definitely not for a virtual driver like vkms.

- Stuff that's used by multiple different ci needs to be shared somewhere, maybe in tools/ci/gitlab-ci/ or maybe in the drm/ci directory. Things like the script to build igt or assemble a drm specific container. Ideally we'd also be able to share entire gitlab build targets, at least the pure sw stuff really should work the same everywhere (plus/minus infra differences in how the docker images are stitched together maybe, but that's separate build targets anyway).

- Stuff that's needed by the kernel at large (like the rust build script) shouldn't be in a subsystem specific place at all once we get something else than what we have in drm/ci right now.

I'm confused.

Cheers, Sima

Quoted 1,443 lines
---
 MAINTAINERS                                   |   1 +
 .../scenarios/drm/build-deqp-runner.sh        |  42 +
 tools/ci/gitlab-ci/scenarios/drm/build-igt.sh |  80 ++
 .../ci/gitlab-ci/scenarios/drm/build-rust.sh  |  42 +
 .../scenarios/drm/create-cross-file.sh        |  65 ++
 tools/ci/gitlab-ci/scenarios/drm/drm.yml      |  45 +-
 .../scenarios/drm/prepare-container.sh        |  18 +
 tools/ci/gitlab-ci/scenarios/drm/run-igt.sh   |  83 ++
 tools/ci/gitlab-ci/scenarios/drm/test.yml     |  32 +
 .../scenarios/drm/xfails/vkms-none-fails.txt  |  22 +
 .../scenarios/drm/xfails/vkms-none-flakes.txt |  90 ++
 .../scenarios/drm/xfails/vkms-none-skips.txt  | 812 ++++++++++++++++++
 12 files changed, 1326 insertions(+), 6 deletions(-)
 create mode 100755 tools/ci/gitlab-ci/scenarios/drm/build-deqp-runner.sh
 create mode 100755 tools/ci/gitlab-ci/scenarios/drm/build-igt.sh
 create mode 100755 tools/ci/gitlab-ci/scenarios/drm/build-rust.sh
 create mode 100755 tools/ci/gitlab-ci/scenarios/drm/create-cross-file.sh
 create mode 100755 tools/ci/gitlab-ci/scenarios/drm/prepare-container.sh
 create mode 100755 tools/ci/gitlab-ci/scenarios/drm/run-igt.sh
 create mode 100644 tools/ci/gitlab-ci/scenarios/drm/test.yml
 create mode 100644 tools/ci/gitlab-ci/scenarios/drm/xfails/vkms-none-fails.txt
 create mode 100644 tools/ci/gitlab-ci/scenarios/drm/xfails/vkms-none-flakes.txt
 create mode 100644 tools/ci/gitlab-ci/scenarios/drm/xfails/vkms-none-skips.txt
MAINTAINERS +1 -0
index 874044e570f7..8de12618c3e1 100644
@@ -7551,6 +7551,7 @@ S:	Maintained
 T:	git https://gitlab.freedesktop.org/drm/misc/kernel.git
 F:	Documentation/gpu/vkms.rst
 F:	drivers/gpu/drm/ci/xfails/vkms*
+F:	tools/ci/gitlab-ci/scenarios/drm/xfails/vkms*
 F:	drivers/gpu/drm/vkms/
 
 DRM DRIVER FOR VIRTUALBOX VIRTUAL GPU
tools/ci/gitlab-ci/scenarios/drm/build-deqp-runner.sh new file +42 -0
new file mode 100755
index 000000000000..9f2574537423
@@ -0,0 +1,42 @@
+#!/usr/bin/env bash
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2025 Collabora, Vignesh Raman <[email protected]>
+#
+# Based on the build-deqp-runner.sh script from the mesa project:
+# https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/.gitlab-ci/container/build-deqp-runner.sh
+#
+# shellcheck disable=SC2086 # we want word splitting
+
+set -uex
+
+DEQP_RUNNER_GIT_URL="${DEQP_RUNNER_GIT_URL:-https://gitlab.freedesktop.org/mesa/deqp-runner.git}"
+DEQP_RUNNER_GIT_TAG="${DEQP_RUNNER_GIT_TAG:-v0.20.0}"
+
+git clone $DEQP_RUNNER_GIT_URL --single-branch --no-checkout
+pushd deqp-runner
+git checkout $DEQP_RUNNER_GIT_TAG
+
+RUST_TARGET="${RUST_TARGET:-}"
+
+# When CC (/usr/lib/ccache/gcc) variable is set, the rust compiler uses
+# this variable when cross-compiling arm32 and build fails for zsys-sys.
+# So unset the CC variable when cross-compiling for arm32.
+SAVEDCC=${CC:-}
+if [ "$RUST_TARGET" = "armv7-unknown-linux-gnueabihf" ]; then
+    unset CC
+fi
+cargo install --locked  \
+    -j ${FDO_CI_CONCURRENT:-4} \
+    --root /usr/local \
+    ${EXTRA_CARGO_ARGS:-} \
+    --path .
+CC=$SAVEDCC
+
+popd
+rm -rf deqp-runner
+
+# remove unused test runners
+if [ -z "${DEQP_RUNNER_GIT_TAG:-}" ]; then
+    rm -f /usr/local/bin/igt-runner
+fi
tools/ci/gitlab-ci/scenarios/drm/build-igt.sh new file +80 -0
new file mode 100755
index 000000000000..fc82aa6fddec
@@ -0,0 +1,80 @@
+#!/bin/bash
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2025 Collabora, Vignesh Raman <[email protected]>
+#
+# Based on the build-igt.sh script from the drm-ci project:
+# https://gitlab.freedesktop.org/drm/misc/kernel/-/blob/drm-misc-next/drivers/gpu/drm/ci/build-igt.sh
+
+set -ex
+
+function generate_testlist {
+    set +x
+    while read -r line; do
+        if [ "$line" = "TESTLIST" ] || [ "$line" = "END TESTLIST" ]; then
+            continue
+        fi
+
+        tests=$(echo "$line" | tr ' ' '\n')
+
+        for test in $tests; do
+            output=$(/igt/libexec/igt-gpu-tools/"$test" --list-subtests || true)
+
+            if [ -z "$output" ]; then
+                echo "$test"
+            else
+                echo "$output" | while read -r subtest; do
+                    echo "$test@$subtest"
+                done
+            fi
+        done
+    done < /igt/libexec/igt-gpu-tools/test-list.txt > /igt/libexec/igt-gpu-tools/ci-testlist.txt
+    set -x
+}
+
+git clone https://gitlab.freedesktop.org/drm/igt-gpu-tools.git --single-branch --no-checkout
+pushd igt-gpu-tools
+git checkout $IGT_VERSION
+
+if [[ "$KCI_KERNEL_ARCH" = "arm" ]]; then
+    . ../tools/ci/gitlab-ci/scenarios/drm/create-cross-file.sh armhf
+    EXTRA_MESON_ARGS="--cross-file /cross_file-armhf.txt"
+fi
+
+MESON_OPTIONS="-Doverlay=disabled                    \
+               -Dchamelium=disabled                  \
+               -Dvalgrind=disabled                   \
+               -Dman=enabled                         \
+               -Dtests=enabled                       \
+               -Drunner=enabled                      \
+               -Dlibunwind=enabled                   \
+               -Dprefix=/igt"
+
+if [[ "$KCI_KERNEL_ARCH" = "arm64" ]] || [[ "$KCI_KERNEL_ARCH" = "arm" ]]; then
+    MESON_OPTIONS="$MESON_OPTIONS -Dxe_driver=disabled"
+fi
+
+mkdir -p /igt
+meson build $MESON_OPTIONS $EXTRA_MESON_ARGS
+ninja -C build -j${FDO_CI_CONCURRENT:-4} || ninja -C build -j 1
+ninja -C build install
+
+if [[ "$KCI_KERNEL_ARCH" = "arm64" ]]; then
+    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/igt/lib/aarch64-linux-gnu
+elif [[ "$KCI_KERNEL_ARCH" = "arm" ]]; then
+    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/igt/lib
+else
+    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/igt/lib/x86_64-linux-gnu
+fi
+
+echo "Generating ci-testlist.txt"
+generate_testlist
+
+export INSTALL_PATH="${CI_PROJECT_DIR}/artifacts/"
+INSTALL_PATH+="igt-install-${KCI_KERNEL_ARCH}"
+mkdir -p "$INSTALL_PATH"
+
+tar -cf $INSTALL_PATH/igt.tar /igt
+
+popd
+rm -rf igt-gpu-tools
tools/ci/gitlab-ci/scenarios/drm/build-rust.sh new file +42 -0
new file mode 100755
index 000000000000..48702d5a9648
@@ -0,0 +1,42 @@
+#!/bin/bash
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2025 Collabora, Vignesh Raman <[email protected]>
+#
+# Based on the build-rust.sh script from the mesa project:
+# https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/.gitlab-ci/container/build-rust.sh
+
+# Note that this script is not actually "building" rust, but build- is the
+# convention for the shared helpers for putting stuff in our containers.
+
+set -ex
+
+# cargo (and rustup) wants to store stuff in $HOME/.cargo, and binaries in
+# $HOME/.cargo/bin.  Make bin a link to a public bin directory so the commands
+# are just available to all build jobs.
+mkdir -p "$HOME"/.cargo
+ln -s /usr/local/bin "$HOME"/.cargo/bin
+
+# Pick a specific snapshot from rustup so the compiler doesn't drift on us.
+RUST_VERSION=1.78.0-2024-05-02
+
+# For rust in Mesa, we use rustup to install.  This lets us pick an arbitrary
+# version of the compiler, rather than whatever the container's Debian comes
+# with.
+curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
+    --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- \
+      --default-toolchain $RUST_VERSION \
+      --profile minimal \
+      -y
+
+rustup component add clippy rustfmt
+
+# Set up a config script for cross compiling -- cargo needs your system cc for
+# linking in cross builds, but doesn't know what you want to use for system cc.
+cat > /root/.cargo/config <<EOF
+[target.armv7-unknown-linux-gnueabihf]
+linker = "arm-linux-gnueabihf-gcc"
+
+[target.aarch64-unknown-linux-gnu]
+linker = "aarch64-linux-gnu-gcc"
+EOF
tools/ci/gitlab-ci/scenarios/drm/create-cross-file.sh new file +65 -0
new file mode 100755
index 000000000000..e078346f23b3
@@ -0,0 +1,65 @@
+#!/bin/bash
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2025 Collabora, Vignesh Raman <[email protected]>
+#
+# Based on the create-cross-file.sh script from the mesa project:
+# https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/.gitlab-ci/container/create-cross-file.sh
+
+arch=$1
+cross_file="/cross_file-$arch.txt"
+meson env2mfile --cross --debarch "$arch" -o "$cross_file"
+
+# Explicitly set ccache path for cross compilers
+sed -i \
+    "s|/usr/bin/\([^-]*\)-linux-gnu\([^-]*\)-g|/usr/lib/ccache/\\1-linux-gnu\\2-g|g" \
+    "$cross_file"
+
+# Rely on qemu-user being configured in binfmt_misc on the host
+# shellcheck disable=SC1003 # how this sed doesn't seems to work for me locally
+sed -i -e '/\[properties\]/a\' -e "needs_exe_wrapper = False" "$cross_file"
+
+# Add a line for rustc, which meson env2mfile is missing.
+cc=$(sed -n "s|^c\s*=\s*\[?'\(.*\)'\]?|\1|p" < "$cross_file")
+
+if [[ "$arch" = "arm64" ]]; then
+    rust_target=aarch64-unknown-linux-gnu
+elif [[ "$arch" = "armhf" ]]; then
+    rust_target=armv7-unknown-linux-gnueabihf
+elif [[ "$arch" = "i386" ]]; then
+    rust_target=i686-unknown-linux-gnu
+elif [[ "$arch" = "ppc64el" ]]; then
+    rust_target=powerpc64le-unknown-linux-gnu
+elif [[ "$arch" = "s390x" ]]; then
+    rust_target=s390x-unknown-linux-gnu
+else
+    echo "Needs rustc target mapping"
+fi
+
+# shellcheck disable=SC1003 # single-quoted string ends in a backslash
+sed -i \
+    -e '/\[binaries\]/a\' \
+    -e "rust = ['rustc', '--target=$rust_target', '-C', 'linker=$cc']" \
+    "$cross_file"
+
+# Set up cmake cross compile toolchain file for dEQP builds
+toolchain_file="/toolchain-$arch.cmake"
+if [[ "$arch" = "arm64" ]]; then
+    GCC_ARCH="aarch64-linux-gnu"
+    DE_CPU="DE_CPU_ARM_64"
+elif [[ "$arch" = "armhf" ]]; then
+    GCC_ARCH="arm-linux-gnueabihf"
+    DE_CPU="DE_CPU_ARM"
+fi
+
+if [[ -n "$GCC_ARCH" ]]; then
+    {
+        echo "set(CMAKE_SYSTEM_NAME Linux)";
+        echo "set(CMAKE_SYSTEM_PROCESSOR arm)";
+        echo "set(CMAKE_C_COMPILER /usr/lib/ccache/$GCC_ARCH-gcc)";
+        echo "set(CMAKE_CXX_COMPILER /usr/lib/ccache/$GCC_ARCH-g++)";
+        echo "set(CMAKE_CXX_FLAGS_INIT \"-Wno-psabi\")";  # makes ABI warnings quiet for ARMv7
+        echo "set(ENV{PKG_CONFIG} \"/usr/bin/$GCC_ARCH-pkgconf\")";
+        echo "set(DE_CPU $DE_CPU)";
+    } > "$toolchain_file"
+fi
tools/ci/gitlab-ci/scenarios/drm/drm.yml +39 -6
index 206e6f0d1a46..220223544673 100644
@@ -1,11 +1,44 @@
 # SPDX-License-Identifier: GPL-2.0-or-later
 #
 # Copyright (C) 2024 Collabora, Helen Koike <[email protected]>
+# DRM-specific scenario configurations based on drivers/gpu/drm/ci/build.yml
 
-# Write here specific configurations and extensions for the given scenario
+variables:
+  FDO_DISTRIBUTION_TAG: "2025-01-21-drm"
+  FDO_DISTRIBUTION_EXEC: ./tools/ci/gitlab-ci/scenarios/drm/prepare-container.sh
+  IGT_VERSION: a73311079a5d8ac99eb25336a8369a2c3c6b519b
+  DEQP_RUNNER_GIT_URL: https://gitlab.freedesktop.org/mesa/deqp-runner.git
+  DEQP_RUNNER_GIT_TAG: v0.20.0
 
-# Example - overwrite kernel combinations in the pipeline
-# build:arm64:
-#   variables:
-#     KCI_KCONFIGS_ENABLE: "CONFIG1 CONFIG2"
-#     KCI_DEFCONFIG: "my/custom/config1"
+build:x86_64:
+  variables:
+    KCI_KCONFIGS_ENABLE: "DRM_VKMS DRM_BOCHS"
+
+.igt:
+  stage: build
+  script:
+    - FDO_CI_CONCURRENT=${FDO_CI_CONCURRENT} bash ./tools/ci/gitlab-ci/scenarios/drm/build-igt.sh
+  artifacts:
+    when: always
+    paths:
+      - artifacts/
+
+# Build IGT for testing on devices
+# TODO: Fix cross compilation issue
+.igt:arm32:
+  extends:
+    - .arm32-config
+    - .use-debian/arm64_build
+    - .igt
+
+igt:arm64:
+  extends:
+    - .arm64-config
+    - .use-debian/arm64_build
+    - .igt
+
+igt:x86_64:
+  extends:
+    - .x86_64-config
+    - .use-debian/x86_64_build
+    - .igt
tools/ci/gitlab-ci/scenarios/drm/prepare-container.sh new file +18 -0
new file mode 100755
index 000000000000..43fbfdcd3514
@@ -0,0 +1,18 @@
+#!/bin/bash
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2025 Collabora, Vignesh Raman <[email protected]>
+
+set -ex
+
+############### Install Smatch
+
+. ./tools/ci/gitlab-ci/ci-scripts/install-smatch.sh
+
+############### Install Rust toolchain
+
+. ./tools/ci/gitlab-ci/scenarios/drm/build-rust.sh
+
+############### Build dEQP runner
+
+. ./tools/ci/gitlab-ci/scenarios/drm/build-deqp-runner.sh
tools/ci/gitlab-ci/scenarios/drm/run-igt.sh new file +83 -0
new file mode 100755
index 000000000000..4822fcc2780f
@@ -0,0 +1,83 @@
+#!/bin/sh
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2025 Collabora, Vignesh Raman <[email protected]>
+#
+# Based on the igt_runner.sh script from the drm-ci project:
+# https://gitlab.freedesktop.org/drm/misc/kernel/-/blob/drm-misc-next/drivers/gpu/drm/ci/igt_runner.sh
+
+set -ex
+
+STATUS_FILE="${1}"
+
+export IGT_FORCE_DRIVER=${DRIVER_NAME}
+export PATH=$PATH:/igt/bin/
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:\
+/igt/lib/aarch64-linux-gnu:\
+/igt/lib/x86_64-linux-gnu:\
+/igt/lib:\
+/igt/lib64
+
+# Uncomment the below to debug problems with driver probing
+: '
+ls -l /dev/dri/
+cat /sys/kernel/debug/devices_deferred
+cat /sys/kernel/debug/device_component/*
+'
+
+# Dump drm state to confirm that kernel was able to find a connected display:
+set +e
+cat /sys/kernel/debug/dri/*/state
+set -e
+
+if [ -e "/install/xfails/$DRIVER_NAME-$GPU_VERSION-skips.txt" ]; then
+    IGT_SKIPS="--skips /install/xfails/$DRIVER_NAME-$GPU_VERSION-skips.txt"
+fi
+
+if [ -e "/install/xfails/$DRIVER_NAME-$GPU_VERSION-flakes.txt" ]; then
+    IGT_FLAKES="--flakes /install/xfails/$DRIVER_NAME-$GPU_VERSION-flakes.txt"
+fi
+
+if [ -e "/install/xfails/$DRIVER_NAME-$GPU_VERSION-fails.txt" ]; then
+    IGT_FAILS="--baseline /install/xfails/$DRIVER_NAME-$GPU_VERSION-fails.txt"
+fi
+
+TESTLIST="/igt/libexec/igt-gpu-tools/ci-testlist.txt"
+
+# If the job is parallel at the gitab job level, take the corresponding fraction
+# of the caselist.
+if [ -n "$CI_NODE_INDEX" ]; then
+    sed -ni $CI_NODE_INDEX~$CI_NODE_TOTAL"p" $TESTLIST
+fi
+
+# core_getversion checks if the driver is loaded and probed correctly
+# so run it in all shards
+if ! grep -q "core_getversion" $TESTLIST; then
+    # Add the line to the file
+    echo "core_getversion" >> $TESTLIST
+fi
+
+set +e
+igt-runner \
+    run \
+    --igt-folder /igt/libexec/igt-gpu-tools \
+    --caselist $TESTLIST \
+    --output /results \
+    -vvvv \
+    $IGT_SKIPS \
+    $IGT_FLAKES \
+    $IGT_FAILS \
+    --jobs 1
+ret=$?
+set -e
+
+deqp-runner junit \
+   --testsuite IGT \
+   --results /results/failures.csv \
+   --output /results/junit.xml \
+   --limit 50 \
+   --template "See https://$CI_PROJECT_ROOT_NAMESPACE.pages.freedesktop.org/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/results/{{testcase}}.xml"
+
+cd $oldpath
+echo $ret > ${STATUS_FILE}
+exit $ret
tools/ci/gitlab-ci/scenarios/drm/test.yml new file +32 -0
new file mode 100644
index 000000000000..9fb37beb446d
@@ -0,0 +1,32 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2025 Collabora, Vignesh Raman <[email protected]>
+
+vkms:none:
+  extends: build:x86_64
+  stage: test
+  timeout: "1h30m"
+  variables:
+    DRIVER_NAME: vkms
+    GPU_VERSION: none
+  tags:
+    - kvm
+  script:
+    - mkdir -p /install/xfails
+    - cp -rfv tools/ci/gitlab-ci/scenarios/drm/xfails /install/
+    - cp $CI_PROJECT_DIR/artifacts/kernel-install-${KCI_KERNEL_ARCH}/bzImage /install
+    - tar -xv -C / -f $CI_PROJECT_DIR/artifacts/igt-install-${KCI_KERNEL_ARCH}/igt.tar
+    - mkdir -p $CI_PROJECT_DIR/results
+    - ln -sf $CI_PROJECT_DIR/results /results
+    - ./tools/ci/gitlab-ci/ci-scripts/run-virtme.sh /install/bzImage ./tools/ci/gitlab-ci/scenarios/drm/run-igt.sh "DRIVER_NAME=$DRIVER_NAME GPU_VERSION=$GPU_VERSION"
+  artifacts:
+    when: always
+    paths:
+      - results/
+  needs:
+    - build:x86_64
+    - igt:x86_64
+
+test-boot:
+  rules:
+    - when: never
tools/ci/gitlab-ci/scenarios/drm/xfails/vkms-none-fails.txt new file +22 -0
new file mode 100644
index 000000000000..3979c95c07ed
@@ -0,0 +1,22 @@
+kms_cursor_crc@cursor-rapid-movement-256x85,Fail
+kms_cursor_crc@cursor-rapid-movement-32x10,Fail
+kms_cursor_crc@cursor-rapid-movement-64x64,Fail
+kms_cursor_legacy@basic-flip-before-cursor-atomic,Fail
+kms_cursor_legacy@basic-flip-before-cursor-legacy,Fail
+kms_cursor_legacy@cursor-vs-flip-atomic,Fail
+kms_cursor_legacy@cursor-vs-flip-legacy,Fail
+kms_cursor_legacy@cursor-vs-flip-toggle,Fail
+kms_cursor_legacy@cursor-vs-flip-varying-size,Fail
+kms_cursor_legacy@flip-vs-cursor-atomic,Fail
+kms_cursor_legacy@flip-vs-cursor-crc-atomic,Fail
+kms_cursor_legacy@flip-vs-cursor-crc-legacy,Fail
+kms_cursor_legacy@flip-vs-cursor-legacy,Fail
+kms_flip@flip-vs-modeset-vs-hang,Fail
+kms_flip@flip-vs-panning-vs-hang,Fail
+kms_writeback@writeback-check-output,Fail
+kms_writeback@writeback-check-output-XRGB2101010,Fail
+kms_writeback@writeback-fb-id,Fail
+kms_writeback@writeback-fb-id-XRGB2101010,Fail
+kms_writeback@writeback-invalid-parameters,Fail
+kms_writeback@writeback-pixel-formats,Fail
+perf@i915-ref-count,Fail
tools/ci/gitlab-ci/scenarios/drm/xfails/vkms-none-flakes.txt new file +90 -0
new file mode 100644
index 000000000000..62428f3c8f31
@@ -0,0 +1,90 @@
+# Board Name: vkms
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u
+# Failure Rate: 50
+# IGT Version: 1.28-g0df7b9b97
+# Linux Version: 6.9.0-rc7
+kms_cursor_legacy@long-nonblocking-modeset-vs-cursor-atomic
+
+# Board Name: vkms
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u
+# Failure Rate: 50
+# IGT Version: 1.28-g0df7b9b97
+# Linux Version: 6.9.0-rc7
+kms_flip@basic-flip-vs-wf_vblank
+
+# Board Name: vkms
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u
+# Failure Rate: 50
+# IGT Version: 1.28-g0df7b9b97
+# Linux Version: 6.9.0-rc7
+kms_flip@flip-vs-expired-vblank-interruptible
+
+# Board Name: vkms
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u
+# Failure Rate: 50
+# IGT Version: 1.28-g0df7b9b97
+# Linux Version: 6.9.0-rc7
+kms_flip@flip-vs-wf_vblank-interruptible
+
+# Board Name: vkms
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u
+# Failure Rate: 50
+# IGT Version: 1.28-g0df7b9b97
+# Linux Version: 6.9.0-rc7
+kms_flip@plain-flip-fb-recreate-interruptible
+
+# Board Name: vkms
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u
+# Failure Rate: 50
+# IGT Version: 1.28-g0df7b9b97
+# Linux Version: 6.9.0-rc7
+kms_flip@plain-flip-ts-check
+
+# Board Name: vkms
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u
+# Failure Rate: 50
+# IGT Version: 1.28-g0df7b9b97
+# Linux Version: 6.9.0-rc7
+kms_flip@plain-flip-ts-check-interruptible
+
+# Board Name: vkms
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u
+# Failure Rate: 50
+# IGT Version: 1.28-g0df7b9b97
+# Linux Version: 6.9.0-rc7
+kms_flip@flip-vs-absolute-wf_vblank
+
+# Board Name: vkms
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u
+# Failure Rate: 50
+# IGT Version: 1.28-g0df7b9b97
+# Linux Version: 6.9.0-rc7
+kms_flip@flip-vs-absolute-wf_vblank-interruptible
+
+# Board Name: vkms
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u
+# Failure Rate: 50
+# IGT Version: 1.28-g0df7b9b97
+# Linux Version: 6.9.0-rc7
+kms_flip@flip-vs-blocking-wf-vblank
+
+# Board Name: vkms
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u
+# Failure Rate: 50
+# IGT Version: 1.28-gf13702b8e
+# Linux Version: 6.10.0-rc5
+kms_cursor_legacy@flip-vs-cursor-varying-size
+
+# Board Name: vkms
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u
+# Failure Rate: 50
+# IGT Version: 1.28-gf13702b8e
+# Linux Version: 6.10.0-rc5
+kms_flip@flip-vs-expired-vblank
+
+# Board Name: vkms
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u
+# Failure Rate: 50
+# IGT Version: 1.28-gf13702b8e
+# Linux Version: 6.10.0-rc5
+kms_pipe_crc_basic@nonblocking-crc-frame-sequence
tools/ci/gitlab-ci/scenarios/drm/xfails/vkms-none-skips.txt new file +812 -0
new file mode 100644
index 000000000000..24659c18c765
@@ -0,0 +1,812 @@
+# skip suspend tests
+.*suspend.*
+
+# keeps printing vkms_vblank_simulate: vblank timer overrun and never ends
+kms_invalid_mode@int-max-clock
+
+# kernel panic seen with kms_cursor_crc tests
+kms_cursor_crc.*
+# kms_cursor_crc@cursor-rapid-movement-32x10
+# Oops: 0000 [#1] PREEMPT SMP NOPTI
+# CPU: 0 PID: 2635 Comm: kworker/u8:13 Not tainted 6.9.0-rc7-g40935263a1fd #1
+# Hardware name: ChromiumOS crosvm, BIOS 0
+# Workqueue: vkms_composer vkms_composer_worker [vkms]
+# RIP: 0010:compose_active_planes+0x1c7/0x4e0 [vkms]
+# Code: c9 0f 84 6a 01 00 00 8b 42 30 2b 42 28 41 39 c5 0f 8c 6f 01 00 00 49 83 c7 01 49 39 df 74 3b 4b 8b 34 fc 48 8b 96 48 01 00 00 <8b> 42 78 89 c1 83 e1 0a a8 20 74 b1 45 89 f5 41 f7 d5 44 03 6a 34
+# RSP: 0018:ffffbb4700c17d58 EFLAGS: 00010246
+# RAX: 0000000000000400 RBX: 0000000000000002 RCX: 0000000000000002
+# RDX: 0000000000000000 RSI: ffffa2ad0788c000 RDI: 00000000fff479a8
+# RBP: 0000000000000004 R08: 0000000000000000 R09: 0000000000000000
+# R10: ffffa2ad0bb14000 R11: 0000000000000000 R12: ffffa2ad03e21700
+# R13: 0000000000000003 R14: 0000000000000004 R15: 0000000000000000
+# FS:  0000000000000000(0000) GS:ffffa2ad2bc00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 0000000000000078 CR3: 000000010bd30000 CR4: 0000000000350ef0
+# Call Trace:
+#  <TASK>
+#  ? __die+0x1e/0x60
+#  ? page_fault_oops+0x17b/0x490
+#  ? exc_page_fault+0x6d/0x230
+#  ? asm_exc_page_fault+0x26/0x30
+#  ? compose_active_planes+0x1c7/0x4e0 [vkms]
+#  ? compose_active_planes+0x2a3/0x4e0 [vkms]
+#  ? srso_return_thunk+0x5/0x5f
+#  vkms_composer_worker+0x205/0x240 [vkms]
+#  process_one_work+0x1f4/0x6b0
+#  ? lock_is_held_type+0x9e/0x110
+#  worker_thread+0x17e/0x350
+#  ? __pfx_worker_thread+0x10/0x10
+#  kthread+0xce/0x100
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork+0x2f/0x50
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork_asm+0x1a/0x30
+#  </TASK>
+# Modules linked in: vkms
+# CR2: 0000000000000078
+# ---[ end trace 0000000000000000 ]---
+# RIP: 0010:compose_active_planes+0x1c7/0x4e0 [vkms]
+# Code: c9 0f 84 6a 01 00 00 8b 42 30 2b 42 28 41 39 c5 0f 8c 6f 01 00 00 49 83 c7 01 49 39 df 74 3b 4b 8b 34 fc 48 8b 96 48 01 00 00 <8b> 42 78 89 c1 83 e1 0a a8 20 74 b1 45 89 f5 41 f7 d5 44 03 6a 34
+# RSP: 0018:ffffbb4700c17d58 EFLAGS: 00010246
+# RAX: 0000000000000400 RBX: 0000000000000002 RCX: 0000000000000002
+# RDX: 0000000000000000 RSI: ffffa2ad0788c000 RDI: 00000000fff479a8
+# RBP: 0000000000000004 R08: 0000000000000000 R09: 0000000000000000
+# R10: ffffa2ad0bb14000 R11: 0000000000000000 R12: ffffa2ad03e21700
+# R13: 0000000000000003 R14: 0000000000000004 R15: 0000000000000000
+# FS:  0000000000000000(0000) GS:ffffa2ad2bc00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+
+#kms_cursor_crc@cursor-rapid-movement-256x85
+# [drm:drm_crtc_add_crc_entry] *ERROR* Overflow of CRC buffer, userspace reads too slow.
+# Oops: 0000 [#1] PREEMPT SMP NOPTI
+# CPU: 1 PID: 10 Comm: kworker/u8:0 Not tainted 6.9.0-rc7-g646381cde463 #1
+# Hardware name: ChromiumOS crosvm, BIOS 0
+# Workqueue: vkms_composer vkms_composer_worker [vkms]
+# RIP: 0010:compose_active_planes+0x1c7/0x4e0 [vkms]
+# Code: c9 0f 84 6a 01 00 00 8b 42 30 2b 42 28 41 39 c5 0f 8c 6f 01 00 00 49 83 c7 01 49 39 df 74 3b 4b 8b 34 fc 48 8b 96 48 01 00 00 <8b> 42 78 89 c1 83 e1 0a a8 20 74 b1 45 89 f5 41 f7 d5 44 03 6a 34
+# RSP: 0018:ffffa7e980057d58 EFLAGS: 00010246
+# RAX: 0000000000000400 RBX: 0000000000000002 RCX: 0000000000000002
+# RDX: 0000000000000000 RSI: ffff977987aa5c00 RDI: 000000001b43a85f
+# RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
+# R10: ffff977981bf0000 R11: 0000000000000000 R12: ffff977989622590
+# R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000000
+# FS:  0000000000000000(0000) GS:ffff9779abd00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 0000000000000078 CR3: 0000000109b38000 CR4: 0000000000350ef0
+# Call Trace:
+#  <TASK>
+#  ? __die+0x1e/0x60
+#  ? page_fault_oops+0x17b/0x490
+#  ? exc_page_fault+0x6d/0x230
+#  ? asm_exc_page_fault+0x26/0x30
+#  ? compose_active_planes+0x1c7/0x4e0 [vkms]
+#  ? compose_active_planes+0x2a3/0x4e0 [vkms]
+#  ? srso_return_thunk+0x5/0x5f
+#  vkms_composer_worker+0x205/0x240 [vkms]
+#  process_one_work+0x1f4/0x6b0
+#  ? lock_is_held_type+0x9e/0x110
+#  worker_thread+0x17e/0x350
+#  ? __pfx_worker_thread+0x10/0x10
+#  kthread+0xce/0x100
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork+0x2f/0x50
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork_asm+0x1a/0x30
+#  </TASK>
+# Modules linked in: vkms
+# CR2: 0000000000000078
+# ---[ end trace 0000000000000000 ]---
+# RIP: 0010:compose_active_planes+0x1c7/0x4e0 [vkms]
+# Code: c9 0f 84 6a 01 00 00 8b 42 30 2b 42 28 41 39 c5 0f 8c 6f 01 00 00 49 83 c7 01 49 39 df 74 3b 4b 8b 34 fc 48 8b 96 48 01 00 00 <8b> 42 78 89 c1 83 e1 0a a8 20 74 b1 45 89 f5 41 f7 d5 44 03 6a 34
+# RSP: 0018:ffffa7e980057d58 EFLAGS: 00010246
+# RAX: 0000000000000400 RBX: 0000000000000002 RCX: 0000000000000002
+# RDX: 0000000000000000 RSI: ffff977987aa5c00 RDI: 000000001b43a85f
+# RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
+# R10: ffff977981bf0000 R11: 0000000000000000 R12: ffff977989622590
+# R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000000
+# FS:  0000000000000000(0000) GS:ffff9779abd00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 0000000000000078 CR3: 0000000109b38000 CR4: 0000000000350ef0
+
+#kms_cursor_crc@cursor-onscreen-256x256
+# Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI
+# CPU: 1 PID: 1913 Comm: kworker/u8:6 Not tainted 6.10.0-rc5-g8a28e73ebead #1
+# Hardware name: ChromiumOS crosvm, BIOS 0
+# Workqueue: vkms_composer vkms_composer_worker [vkms]
+# RIP: 0010:compose_active_planes+0x344/0x4e0 [vkms]
+# Code: 6a 34 0f 8e 91 fe ff ff 44 89 ea 48 8d 7c 24 48 e8 71 f0 ff ff 4b 8b 04 fc 48 8b 4c 24 50 48 8b 7c 24 40 48 8b 80 48 01 00 00 <48> 63 70 18 8b 40 20 48 89 f2 48 c1 e6 03 29 d0 48 8b 54 24 48 48
+# RSP: 0018:ffffb477409fbd58 EFLAGS: 00010282
+# RAX: 0000000000000000 RBX: 0000000000000002 RCX: ffff8b124a242000
+# RDX: 00000000000000ff RSI: ffff8b124a243ff8 RDI: ffff8b124a244000
+# RBP: 0000000000000002 R08: 0000000000000000 R09: 00000000000003ff
+# R10: ffff8b124a244000 R11: 0000000000000000 R12: ffff8b1249282f30
+# R13: 0000000000000002 R14: 0000000000000002 R15: 0000000000000000
+# FS:  0000000000000000(0000) GS:ffff8b126bd00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 0000000000000018 CR3: 0000000107a86000 CR4: 0000000000350ef0
+# Call Trace:
+#  <TASK>
+#  ? __die+0x1e/0x60
+#  ? page_fault_oops+0x17b/0x4a0
+#  ? exc_page_fault+0x6d/0x230
+#  ? asm_exc_page_fault+0x26/0x30
+#  ? compose_active_planes+0x344/0x4e0 [vkms]
+#  ? compose_active_planes+0x32f/0x4e0 [vkms]
+#  ? srso_return_thunk+0x5/0x5f
+#  vkms_composer_worker+0x205/0x240 [vkms]
+#  process_one_work+0x201/0x6c0
+#  ? lock_is_held_type+0x9e/0x110
+#  worker_thread+0x17e/0x350
+#  ? __pfx_worker_thread+0x10/0x10
+#  kthread+0xce/0x100
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork+0x2f/0x50
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork_asm+0x1a/0x30
+#  </TASK>
+# Modules linked in: vkms
+# CR2: 0000000000000018
+# ---[ end trace 0000000000000000 ]---
+# RIP: 0010:compose_active_planes+0x344/0x4e0 [vkms]
+# Code: 6a 34 0f 8e 91 fe ff ff 44 89 ea 48 8d 7c 24 48 e8 71 f0 ff ff 4b 8b 04 fc 48 8b 4c 24 50 48 8b 7c 24 40 48 8b 80 48 01 00 00 <48> 63 70 18 8b 40 20 48 89 f2 48 c1 e6 03 29 d0 48 8b 54 24 48 48
+# RSP: 0018:ffffb477409fbd58 EFLAGS: 00010282
+# RAX: 0000000000000000 RBX: 0000000000000002 RCX: ffff8b124a242000
+# RDX: 00000000000000ff RSI: ffff8b124a243ff8 RDI: ffff8b124a244000
+# RBP: 0000000000000002 R08: 0000000000000000 R09: 00000000000003ff
+# R10: ffff8b124a244000 R11: 0000000000000000 R12: ffff8b1249282f30
+# R13: 0000000000000002 R14: 0000000000000002 R15: 0000000000000000
+# FS:  0000000000000000(0000) GS:ffff8b126bd00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 0000000000000018 CR3: 0000000107a86000 CR4: 0000000000350ef0
+
+kms_cursor_edge_walk@128x128-right-edge
+# Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI
+# CPU: 0 PID: 1911 Comm: kworker/u8:3 Not tainted 6.10.0-rc5-g5e7a002eefe5 #1
+# Hardware name: ChromiumOS crosvm, BIOS 0
+# Workqueue: vkms_composer vkms_composer_worker [vkms]
+# RIP: 0010:compose_active_planes+0x344/0x4e0 [vkms]
+# Code: 6a 34 0f 8e 91 fe ff ff 44 89 ea 48 8d 7c 24 48 e8 71 f0 ff ff 4b 8b 04 fc 48 8b 4c 24 50 48 8b 7c 24 40 48 8b 80 48 01 00 00 <48> 63 70 18 8b 40 20 48 89 f2 48 c1 e6 03 29 d0 48 8b 54 24 48 48
+# RSP: 0018:ffffb2f040a43d58 EFLAGS: 00010282
+# RAX: 0000000000000000 RBX: 0000000000000002 RCX: ffffa2c181792000
+# RDX: 0000000000000000 RSI: ffffa2c181793ff8 RDI: ffffa2c181790000
+# RBP: 0000000000000031 R08: 0000000000000000 R09: 00000000000003ff
+# R10: ffffa2c181790000 R11: 0000000000000000 R12: ffffa2c1814fa810
+# R13: 0000000000000031 R14: 0000000000000031 R15: 0000000000000000
+# FS:  0000000000000000(0000) GS:ffffa2c1abc00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 0000000000000018 CR3: 0000000106768000 CR4: 0000000000350ef0
+# Call Trace:
+#  <TASK>
+#  ? __die+0x1e/0x60
+#  ? page_fault_oops+0x17b/0x4a0
+#  ? srso_return_thunk+0x5/0x5f
+#  ? mark_held_locks+0x49/0x80
+#  ? exc_page_fault+0x6d/0x230
+#  ? asm_exc_page_fault+0x26/0x30
+#  ? compose_active_planes+0x344/0x4e0 [vkms]
+#  ? compose_active_planes+0x32f/0x4e0 [vkms]
+#  ? srso_return_thunk+0x5/0x5f
+#  vkms_composer_worker+0x205/0x240 [vkms]
+#  process_one_work+0x201/0x6c0
+#  ? lock_is_held_type+0x9e/0x110
+#  worker_thread+0x17e/0x350
+#  ? __pfx_worker_thread+0x10/0x10
+#  kthread+0xce/0x100
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork+0x2f/0x50
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork_asm+0x1a/0x30
+#  </TASK>
+# Modules linked in: vkms
+# CR2: 0000000000000018
+# ---[ end trace 0000000000000000 ]---
+# RIP: 0010:compose_active_planes+0x344/0x4e0 [vkms]
+# Code: 6a 34 0f 8e 91 fe ff ff 44 89 ea 48 8d 7c 24 48 e8 71 f0 ff ff 4b 8b 04 fc 48 8b 4c 24 50 48 8b 7c 24 40 48 8b 80 48 01 00 00 <48> 63 70 18 8b 40 20 48 89 f2 48 c1 e6 03 29 d0 48 8b 54 24 48 48
+# RSP: 0018:ffffb2f040a43d58 EFLAGS: 00010282
+# RAX: 0000000000000000 RBX: 0000000000000002 RCX: ffffa2c181792000
+# RDX: 0000000000000000 RSI: ffffa2c181793ff8 RDI: ffffa2c181790000
+# RBP: 0000000000000031 R08: 0000000000000000 R09: 00000000000003ff
+# R10: ffffa2c181790000 R11: 0000000000000000 R12: ffffa2c1814fa810
+# R13: 0000000000000031 R14: 0000000000000031 R15: 000000000000
+
+kms_cursor_edge_walk@128x128-left-edge
+# DEBUG - Begin test kms_cursor_edge_walk@128x128-left-edge
+# Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI
+# CPU: 0 UID: 0 PID: 27 Comm: kworker/u8:1 Not tainted 6.11.0-rc5-g5d3429a7e9aa #1
+# Hardware name: ChromiumOS crosvm, BIOS 0
+# Workqueue: vkms_composer vkms_composer_worker [vkms]
+# RIP: 0010:compose_active_planes+0x344/0x4e0 [vkms]
+# Code: 6a 34 0f 8e 91 fe ff ff 44 89 ea 48 8d 7c 24 48 e8 71 f0 ff ff 4b 8b 04 fc 48 8b 4c 24 50 48 8b 7c 24 40 48 8b 80 48 01 00 00 <48> 63 70 18 8b 40 20 48 89 f2 48 c1 e6 03 29 d0 48 8b 54 24 48 48
+# RSP: 0018:ffffa437800ebd58 EFLAGS: 00010282
+# RAX: 0000000000000000 RBX: 0000000000000002 RCX: ffffa0e841904000
+# RDX: 00000000000000ff RSI: ffffa0e841905ff8 RDI: ffffa0e841902000
+# RBP: 0000000000000000 R08: ffffa0e84158a600 R09: 00000000000003ff
+# R10: 0000000078b2bcd2 R11: 00000000278b2bcd R12: ffffa0e84870fc60
+# R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
+# FS:  0000000000000000(0000) GS:ffffa0e86bc00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 0000000000000018 CR3: 0000000101710000 CR4: 0000000000350ef0
+# Call Trace:
+#  <TASK>
+#  ? __die+0x1e/0x60
+#  ? page_fault_oops+0x17b/0x4a0
+#  ? exc_page_fault+0x6d/0x230
+#  ? asm_exc_page_fault+0x26/0x30
+#  ? compose_active_planes+0x344/0x4e0 [vkms]
+#  ? compose_active_planes+0x32f/0x4e0 [vkms]
+#  ? srso_return_thunk+0x5/0x5f
+#  vkms_composer_worker+0x205/0x240 [vkms]
+#  process_one_work+0x201/0x6c0
+#  ? lock_is_held_type+0x9e/0x110
+#  worker_thread+0x17e/0x310
+#  ? __pfx_worker_thread+0x10/0x10
+#  kthread+0xce/0x100
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork+0x2f/0x50
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork_asm+0x1a/0x30
+#  </TASK>
+# Modules linked in: vkms
+# CR2: 0000000000000018
+# ---[ end trace 0000000000000000 ]---
+# RIP: 0010:compose_active_planes+0x344/0x4e0 [vkms]
+# Code: 6a 34 0f 8e 91 fe ff ff 44 89 ea 48 8d 7c 24 48 e8 71 f0 ff ff 4b 8b 04 fc 48 8b 4c 24 50 48 8b 7c 24 40 48 8b 80 48 01 00 00 <48> 63 70 18 8b 40 20 48 89 f2 48 c1 e6 03 29 d0 48 8b 54 24 48 48
+# RSP: 0018:ffffa437800ebd58 EFLAGS: 00010282
+# RAX: 0000000000000000 RBX: 0000000000000002 RCX: ffffa0e841904000
+# RDX: 00000000000000ff RSI: ffffa0e841905ff8 RDI: ffffa0e841902000
+# RBP: 0000000000000000 R08: ffffa0e84158a600 R09: 00000000000003ff
+# R10: 0000000078b2bcd2 R11: 00000000278b2bcd R12: ffffa0e84870fc60
+# R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
+# FS:  0000000000000000(0000) GS:ffffa0e86bc00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 0000000000000018 CR3: 0000000101710000 CR4: 0000000000350ef0
+# vkms_vblank_simulate: vblank timer overrun
+
+# DEBUG - Begin test kms_cursor_crc@cursor-rapid-movement-64x64
+# ------------[ cut here ]------------
+# WARNING: CPU: 1 PID: 1250 at drivers/gpu/drm/vkms/vkms_crtc.c:139 vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+# Modules linked in: vkms
+# CPU: 1 UID: 0 PID: 1250 Comm: kms_cursor_crc Not tainted 6.13.0-rc2-ge95c88d68ac3 #1
+# Hardware name: ChromiumOS crosvm, BIOS 0
+# RIP: 0010:vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+# Code: f7 48 89 f3 e8 d0 bf ee ec 48 8b 83 50 01 00 00 a8 01 75 15 48 8b bb a0 01 00 00 e8 59 05 95 ec 48 89 df 5b e9 50 05 95 ec 90 <0f> 0b 90 eb e5 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90
+# RSP: 0018:ffff9fb640aafb08 EFLAGS: 00010202
+# RAX: ffff8e7240859e05 RBX: ffff8e7241cd6400 RCX: ffffffffae496b65
+# RDX: ffffffffad2d1f80 RSI: 0000000000000000 RDI: 0000000000000000
+# RBP: 0000000000000000 R08: 0000000000000034 R09: 0000000000000002
+# R10: 0000000047dd15a5 R11: 00000000547dd15a R12: ffff8e72590cc000
+# R13: 0000000000000000 R14: 00000000ffffffff R15: 0000000000000000
+# FS:  00007f0942ad56c0(0000) GS:ffff8e726bd00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 00007f0942ad0008 CR3: 0000000118d1e000 CR4: 0000000000350ef0
+# Call Trace:
+#  <TASK>
+#  ? __warn+0x8c/0x190
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+#  ? report_bug+0x164/0x190
+#  ? handle_bug+0x54/0x90
+#  ? exc_invalid_op+0x17/0x70
+#  ? asm_exc_invalid_op+0x1a/0x20
+#  ? __pfx_drm_property_free_blob+0x10/0x10
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+#  ? vkms_atomic_crtc_destroy_state+0x10/0x40 [vkms]
+#  drm_atomic_state_default_clear+0x137/0x2f0
+#  __drm_atomic_state_free+0x6c/0xb0
+#  drm_atomic_helper_update_plane+0x100/0x150
+#  drm_mode_cursor_universal+0x10e/0x270
+#  drm_mode_cursor_common+0x115/0x240
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10
+#  drm_mode_cursor_ioctl+0x4a/0x70
+#  drm_ioctl_kernel+0xb0/0x110
+#  drm_ioctl+0x235/0x4b0
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10
+#  __x64_sys_ioctl+0x92/0xc0
+#  do_syscall_64+0xbb/0x1d0
+#  entry_SYSCALL_64_after_hwframe+0x77/0x7f
+# RIP: 0033:0x7f0943a84cdb
+# Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00
+# RSP: 002b:00007fff267d68d0 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
+# RAX: ffffffffffffffda RBX: 000000000000005a RCX: 00007f0943a84cdb
+# RDX: 00007fff267d6960 RSI: 00000000c01c64a3 RDI: 0000000000000005
+# RBP: 00007fff267d6960 R08: 0000000000000007 R09: 00005619a60f3450
+# R10: fe95a83851609dee R11: 0000000000000246 R12: 00000000c01c64a3
+# R13: 0000000000000005 R14: 00005619a3cd2c68 R15: 00005619a608c830
+#  </TASK>
+# irq event stamp: 57793
+# hardirqs last  enabled at (57799): [<ffffffffacba3e4d>] __up_console_sem+0x4d/0x60
+# hardirqs last disabled at (57804): [<ffffffffacba3e32>] __up_console_sem+0x32/0x60
+# softirqs last  enabled at (45586): [<ffffffffacb17980>] handle_softirqs+0x310/0x3f0
+# softirqs last disabled at (45569): [<ffffffffacb17bc1>] __irq_exit_rcu+0xa1/0xc0
+# ---[ end trace 0000000000000000 ]---
+# Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI
+# CPU: 0 UID: 0 PID: 119 Comm: kworker/u8:6 Tainted: G        W          6.13.0-rc2-ge95c88d68ac3 #1
+# Tainted: [W]=WARN
+# Hardware name: ChromiumOS crosvm, BIOS 0
+# Workqueue: vkms_composer vkms_composer_worker [vkms]
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms]
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00 <8b> 50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00
+# RSP: 0018:ffff9fb640efbd20 EFLAGS: 00010202
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002
+# RDX: ffff8e7241926000 RSI: ffff8e7241927ffc RDI: 000000000b7fb767
+# RBP: ffff9fb640efbde0 R08: 0000000000000000 R09: 0000000000000000
+# R10: ffff8e7241b09a80 R11: 0000000000000000 R12: ffff8e7241cd6200
+# R13: 0000000000000013 R14: 0000000000000000 R15: ffff8e7241b09a80
+# FS:  0000000000000000(0000) GS:ffff8e726bc00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 000000000000001c CR3: 0000000118d1e000 CR4: 0000000000350ef0
+# Call Trace:
+#  <TASK>
+#  ? __die+0x1e/0x60
+#  ? page_fault_oops+0x17b/0x4a0
+#  ? srso_return_thunk+0x5/0x5f
+#  ? exc_page_fault+0x6d/0x230
+#  ? asm_exc_page_fault+0x26/0x30
+#  ? compose_active_planes+0x1a3/0x760 [vkms]
+#  vkms_composer_worker+0x205/0x240 [vkms]
+#  process_one_work+0x201/0x6c0
+#  ? lock_is_held_type+0x9e/0x110
+#  worker_thread+0x17e/0x320
+#  ? __pfx_worker_thread+0x10/0x10
+#  kthread+0xce/0x100
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork+0x2f/0x50
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork_asm+0x1a/0x30
+#  </TASK>
+# Modules linked in: vkms
+# CR2: 000000000000001c
+# ---[ end trace 0000000000000000 ]---
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms]
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00 <8b> 50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00
+# RSP: 0018:ffff9fb640efbd20 EFLAGS: 00010202
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002
+# RDX: ffff8e7241926000 RSI: ffff8e7241927ffc RDI: 000000000b7fb767
+# RBP: ffff9fb640efbde0 R08: 0000000000000000 R09: 0000000000000000
+# R10: ffff8e7241b09a80 R11: 0000000000000000 R12: ffff8e7241cd6200
+# R13: 0000000000000013 R14: 0000000000000000 R15: ffff8e7241b09a80
+# FS:  0000000000000000(0000) GS:ffff8e726bc00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 000000000000001c CR3: 0000000118d1e000 CR4: 0000000000350ef0
+
+# DEBUG - Begin test kms_cursor_crc@cursor-rapid-movement-128x42
+# ------------[ cut here ]------------
+# WARNING: CPU: 0 PID: 2933 at drivers/gpu/drm/vkms/vkms_crtc.c:139 vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+# Modules linked in: vkms
+# CPU: 0 UID: 0 PID: 2933 Comm: kms_cursor_crc Not tainted 6.13.0-rc2-g5219242748c8 #1
+# Hardware name: ChromiumOS crosvm, BIOS 0
+# RIP: 0010:vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+# Code: f7 48 89 f3 e8 d0 bf 6e d0 48 8b 83 50 01 00 00 a8 01 75 15 48 8b bb a0 01 00 00 e8 59 05 15 d0 48 89 df 5b e9 50 05 15 d0 90 <0f> 0b 90 eb e5 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90
+# RSP: 0018:ffffa14cc08b3b08 EFLAGS: 00010202
+# RAX: ffff9b864084b605 RBX: ffff9b8641ba4600 RCX: ffffffff91c96b65
+# RDX: ffffffff90ad1f80 RSI: 0000000000000000 RDI: 0000000000000000
+# RBP: 0000000000000000 R08: 0000000000000034 R09: 0000000000000002
+# R10: 0000000047dd15a5 R11: 00000000547dd15a R12: ffff9b864099c000
+# R13: 0000000000000000 R14: 00000000ffffffff R15: 0000000000000000
+# FS:  00007f4f437ab6c0(0000) GS:ffff9b866bc00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 00007f4f44c3cd40 CR3: 0000000108c14000 CR4: 0000000000350ef0
+# Call Trace:
+#  <TASK>
+#  ? __warn+0x8c/0x190
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+#  ? report_bug+0x164/0x190
+#  ? handle_bug+0x54/0x90
+#  ? exc_invalid_op+0x17/0x70
+#  ? asm_exc_invalid_op+0x1a/0x20
+#  ? __pfx_drm_property_free_blob+0x10/0x10
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+#  ? vkms_atomic_crtc_destroy_state+0x10/0x40 [vkms]
+#  drm_atomic_state_default_clear+0x137/0x2f0
+#  __drm_atomic_state_free+0x6c/0xb0
+#  drm_atomic_helper_update_plane+0x100/0x150
+#  drm_mode_cursor_universal+0x10e/0x270
+#  drm_mode_cursor_common+0x115/0x240
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10
+#  drm_mode_cursor_ioctl+0x4a/0x70
+#  drm_ioctl_kernel+0xb0/0x110
+#  drm_ioctl+0x235/0x4b0
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10
+#  __x64_sys_ioctl+0x92/0xc0
+#  do_syscall_64+0xbb/0x1d0
+#  entry_SYSCALL_64_after_hwframe+0x77/0x7f
+# RIP: 0033:0x7f4f44960c5b
+# Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00
+# RSP: 002b:00007ffcdfb0b560 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
+# RAX: ffffffffffffffda RBX: 0000000000000060 RCX: 00007f4f44960c5b
+# RDX: 00007ffcdfb0b5f0 RSI: 00000000c01c64a3 RDI: 0000000000000005
+# RBP: 00007ffcdfb0b5f0 R08: 0000000000000007 R09: 000055c3a5801a30
+# R10: 3107764f00e1f281 R11: 0000000000000246 R12: 00000000c01c64a3
+# R13: 0000000000000005 R14: 000055c38b7e42c8 R15: 000055c3a579aab0
+#  </TASK>
+# irq event stamp: 58747
+# hardirqs last  enabled at (58753): [<ffffffff903a3e4d>] __up_console_sem+0x4d/0x60
+# hardirqs last disabled at (58758): [<ffffffff903a3e32>] __up_console_sem+0x32/0x60
+# softirqs last  enabled at (47324): [<ffffffff90317980>] handle_softirqs+0x310/0x3f0
+# softirqs last disabled at (47307): [<ffffffff90317bc1>] __irq_exit_rcu+0xa1/0xc0
+# ---[ end trace 0000000000000000 ]---
+# Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI
+# CPU: 1 UID: 0 PID: 11 Comm: kworker/u8:0 Tainted: G        W          6.13.0-rc2-g5219242748c8 #1
+# Tainted: [W]=WARN
+# Hardware name: ChromiumOS crosvm, BIOS 0
+# Workqueue: vkms_composer vkms_composer_worker [vkms]
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms]
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00 <8b> 50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00
+# RSP: 0018:ffffa14cc005fd20 EFLAGS: 00010202
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002
+# RDX: ffff9b8669626000 RSI: ffff9b8669627ffc RDI: 00000000348d6c39
+# RBP: ffffa14cc005fde0 R08: 0000000000000000 R09: 0000000000000000
+# R10: ffff9b8645650eb0 R11: 0000000000000000 R12: ffff9b8641ba5800
+# R13: 0000000000000028 R14: 0000000000000000 R15: ffff9b8645650eb0
+# FS:  0000000000000000(0000) GS:ffff9b866bd00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 000000000000001c CR3: 0000000108c14000 CR4: 0000000000350ef0
+# Call Trace:
+#  <TASK>
+#  ? __die+0x1e/0x60
+#  ? page_fault_oops+0x17b/0x4a0
+#  ? __kvmalloc_node_noprof+0x3e/0xc0
+#  ? exc_page_fault+0x6d/0x230
+#  ? asm_exc_page_fault+0x26/0x30
+#  ? compose_active_planes+0x1a3/0x760 [vkms]
+#  vkms_composer_worker+0x205/0x240 [vkms]
+#  process_one_work+0x201/0x6c0
+#  ? lock_is_held_type+0x9e/0x110
+#  worker_thread+0x17e/0x320
+#  ? __pfx_worker_thread+0x10/0x10
+#  kthread+0xce/0x100
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork+0x2f/0x50
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork_asm+0x1a/0x30
+#  </TASK>
+# Modules linked in: vkms
+# CR2: 000000000000001c
+# ---[ end trace 0000000000000000 ]---
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms]
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00 <8b> 50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00
+# RSP: 0018:ffffa14cc005fd20 EFLAGS: 00010202
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002
+# RDX: ffff9b8669626000 RSI: ffff9b8669627ffc RDI: 00000000348d6c39
+# RBP: ffffa14cc005fde0 R08: 0000000000000000 R09: 0000000000000000
+# R10: ffff9b8645650eb0 R11: 0000000000000000 R12: ffff9b8641ba5800
+# R13: 0000000000000028 R14: 0000000000000000 R15: ffff9b8645650eb0
+# FS:  0000000000000000(0000) GS:ffff9b866bd00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 000000000000001c CR3: 0000000108c14000 CR4: 0000000000350ef0
+
+# DEBUG - Begin test kms_cursor_crc@cursor-rapid-movement-32x32
+# ------------[ cut here ]------------
+# WARNING: CPU: 0 PID: 2933 at drivers/gpu/drm/vkms/vkms_crtc.c:139 vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+# Modules linked in: vkms
+# CPU: 0 UID: 0 PID: 2933 Comm: kms_cursor_crc Not tainted 6.13.0-rc2-g5219242748c8 #1
+# Hardware name: ChromiumOS crosvm, BIOS 0
+# RIP: 0010:vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+# Code: f7 48 89 f3 e8 d0 bf 6e d0 48 8b 83 50 01 00 00 a8 01 75 15 48 8b bb a0 01 00 00 e8 59 05 15 d0 48 89 df 5b e9 50 05 15 d0 90 <0f> 0b 90 eb e5 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90
+# RSP: 0018:ffffa14cc08b3b08 EFLAGS: 00010202
+# RAX: ffff9b864084b605 RBX: ffff9b8641ba4600 RCX: ffffffff91c96b65
+# RDX: ffffffff90ad1f80 RSI: 0000000000000000 RDI: 0000000000000000
+# RBP: 0000000000000000 R08: 0000000000000034 R09: 0000000000000002
+# R10: 0000000047dd15a5 R11: 00000000547dd15a R12: ffff9b864099c000
+# R13: 0000000000000000 R14: 00000000ffffffff R15: 0000000000000000
+# FS:  00007f4f437ab6c0(0000) GS:ffff9b866bc00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 00007f4f44c3cd40 CR3: 0000000108c14000 CR4: 0000000000350ef0
+# Call Trace:
+#  <TASK>
+#  ? __warn+0x8c/0x190
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+#  ? report_bug+0x164/0x190
+#  ? handle_bug+0x54/0x90
+#  ? exc_invalid_op+0x17/0x70
+#  ? asm_exc_invalid_op+0x1a/0x20
+#  ? __pfx_drm_property_free_blob+0x10/0x10
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+#  ? vkms_atomic_crtc_destroy_state+0x10/0x40 [vkms]
+#  drm_atomic_state_default_clear+0x137/0x2f0
+#  __drm_atomic_state_free+0x6c/0xb0
+#  drm_atomic_helper_update_plane+0x100/0x150
+#  drm_mode_cursor_universal+0x10e/0x270
+#  drm_mode_cursor_common+0x115/0x240
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10
+#  drm_mode_cursor_ioctl+0x4a/0x70
+#  drm_ioctl_kernel+0xb0/0x110
+#  drm_ioctl+0x235/0x4b0
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10
+#  __x64_sys_ioctl+0x92/0xc0
+#  do_syscall_64+0xbb/0x1d0
+#  entry_SYSCALL_64_after_hwframe+0x77/0x7f
+# RIP: 0033:0x7f4f44960c5b
+# Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00
+# RSP: 002b:00007ffcdfb0b560 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
+# RAX: ffffffffffffffda RBX: 0000000000000060 RCX: 00007f4f44960c5b
+# RDX: 00007ffcdfb0b5f0 RSI: 00000000c01c64a3 RDI: 0000000000000005
+# RBP: 00007ffcdfb0b5f0 R08: 0000000000000007 R09: 000055c3a5801a30
+# R10: 3107764f00e1f281 R11: 0000000000000246 R12: 00000000c01c64a3
+# R13: 0000000000000005 R14: 000055c38b7e42c8 R15: 000055c3a579aab0
+#  </TASK>
+# irq event stamp: 58747
+# hardirqs last  enabled at (58753): [<ffffffff903a3e4d>] __up_console_sem+0x4d/0x60
+# hardirqs last disabled at (58758): [<ffffffff903a3e32>] __up_console_sem+0x32/0x60
+# softirqs last  enabled at (47324): [<ffffffff90317980>] handle_softirqs+0x310/0x3f0
+# softirqs last disabled at (47307): [<ffffffff90317bc1>] __irq_exit_rcu+0xa1/0xc0
+# ---[ end trace 0000000000000000 ]---
+# Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI
+# CPU: 1 UID: 0 PID: 11 Comm: kworker/u8:0 Tainted: G        W          6.13.0-rc2-g5219242748c8 #1
+# Tainted: [W]=WARN
+# Hardware name: ChromiumOS crosvm, BIOS 0
+# Workqueue: vkms_composer vkms_composer_worker [vkms]
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms]
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00 <8b> 50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00
+# RSP: 0018:ffffa14cc005fd20 EFLAGS: 00010202
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002
+# RDX: ffff9b8669626000 RSI: ffff9b8669627ffc RDI: 00000000348d6c39
+# RBP: ffffa14cc005fde0 R08: 0000000000000000 R09: 0000000000000000
+# R10: ffff9b8645650eb0 R11: 0000000000000000 R12: ffff9b8641ba5800
+# R13: 0000000000000028 R14: 0000000000000000 R15: ffff9b8645650eb0
+# FS:  0000000000000000(0000) GS:ffff9b866bd00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 000000000000001c CR3: 0000000108c14000 CR4: 0000000000350ef0
+# Call Trace:
+#  <TASK>
+#  ? __die+0x1e/0x60
+#  ? page_fault_oops+0x17b/0x4a0
+#  ? __kvmalloc_node_noprof+0x3e/0xc0
+#  ? exc_page_fault+0x6d/0x230
+#  ? asm_exc_page_fault+0x26/0x30
+#  ? compose_active_planes+0x1a3/0x760 [vkms]
+#  vkms_composer_worker+0x205/0x240 [vkms]
+#  process_one_work+0x201/0x6c0
+#  ? lock_is_held_type+0x9e/0x110
+#  worker_thread+0x17e/0x320
+#  ? __pfx_worker_thread+0x10/0x10
+#  kthread+0xce/0x100
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork+0x2f/0x50
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork_asm+0x1a/0x30
+#  </TASK>
+# Modules linked in: vkms
+# CR2: 000000000000001c
+# ---[ end trace 0000000000000000 ]---
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms]
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00 <8b> 50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00
+# RSP: 0018:ffffa14cc005fd20 EFLAGS: 00010202
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002
+# RDX: ffff9b8669626000 RSI: ffff9b8669627ffc RDI: 00000000348d6c39
+# RBP: ffffa14cc005fde0 R08: 0000000000000000 R09: 0000000000000000
+# R10: ffff9b8645650eb0 R11: 0000000000000000 R12: ffff9b8641ba5800
+# R13: 0000000000000028 R14: 0000000000000000 R15: ffff9b8645650eb0
+# FS:  0000000000000000(0000) GS:ffff9b866bd00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 000000000000001c CR3: 0000000108c14000 CR4: 0000000000350ef0
+
+# DEBUG - Begin test kms_cursor_crc@cursor-rapid-movement-32x32
+# ------------[ cut here ]------------
+# WARNING: CPU: 0 PID: 2933 at drivers/gpu/drm/vkms/vkms_crtc.c:139 vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+# Modules linked in: vkms
+# CPU: 0 UID: 0 PID: 2933 Comm: kms_cursor_crc Not tainted 6.13.0-rc2-g5219242748c8 #1
+# Hardware name: ChromiumOS crosvm, BIOS 0
+# RIP: 0010:vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+# Code: f7 48 89 f3 e8 d0 bf 6e d0 48 8b 83 50 01 00 00 a8 01 75 15 48 8b bb a0 01 00 00 e8 59 05 15 d0 48 89 df 5b e9 50 05 15 d0 90 <0f> 0b 90 eb e5 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90
+# RSP: 0018:ffffa14cc08b3b08 EFLAGS: 00010202
+# RAX: ffff9b864084b605 RBX: ffff9b8641ba4600 RCX: ffffffff91c96b65
+# RDX: ffffffff90ad1f80 RSI: 0000000000000000 RDI: 0000000000000000
+# RBP: 0000000000000000 R08: 0000000000000034 R09: 0000000000000002
+# R10: 0000000047dd15a5 R11: 00000000547dd15a R12: ffff9b864099c000
+# R13: 0000000000000000 R14: 00000000ffffffff R15: 0000000000000000
+# FS:  00007f4f437ab6c0(0000) GS:ffff9b866bc00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 00007f4f44c3cd40 CR3: 0000000108c14000 CR4: 0000000000350ef0
+# Call Trace:
+#  <TASK>
+#  ? __warn+0x8c/0x190
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+#  ? report_bug+0x164/0x190
+#  ? handle_bug+0x54/0x90
+#  ? exc_invalid_op+0x17/0x70
+#  ? asm_exc_invalid_op+0x1a/0x20
+#  ? __pfx_drm_property_free_blob+0x10/0x10
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+#  ? vkms_atomic_crtc_destroy_state+0x10/0x40 [vkms]
+#  drm_atomic_state_default_clear+0x137/0x2f0
+#  __drm_atomic_state_free+0x6c/0xb0
+#  drm_atomic_helper_update_plane+0x100/0x150
+#  drm_mode_cursor_universal+0x10e/0x270
+#  drm_mode_cursor_common+0x115/0x240
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10
+#  drm_mode_cursor_ioctl+0x4a/0x70
+#  drm_ioctl_kernel+0xb0/0x110
+#  drm_ioctl+0x235/0x4b0
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10
+#  __x64_sys_ioctl+0x92/0xc0
+#  do_syscall_64+0xbb/0x1d0
+#  entry_SYSCALL_64_after_hwframe+0x77/0x7f
+# RIP: 0033:0x7f4f44960c5b
+# Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00
+# RSP: 002b:00007ffcdfb0b560 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
+# RAX: ffffffffffffffda RBX: 0000000000000060 RCX: 00007f4f44960c5b
+# RDX: 00007ffcdfb0b5f0 RSI: 00000000c01c64a3 RDI: 0000000000000005
+# RBP: 00007ffcdfb0b5f0 R08: 0000000000000007 R09: 000055c3a5801a30
+# R10: 3107764f00e1f281 R11: 0000000000000246 R12: 00000000c01c64a3
+# R13: 0000000000000005 R14: 000055c38b7e42c8 R15: 000055c3a579aab0
+#  </TASK>
+# irq event stamp: 58747
+# hardirqs last  enabled at (58753): [<ffffffff903a3e4d>] __up_console_sem+0x4d/0x60
+# hardirqs last disabled at (58758): [<ffffffff903a3e32>] __up_console_sem+0x32/0x60
+# softirqs last  enabled at (47324): [<ffffffff90317980>] handle_softirqs+0x310/0x3f0
+# softirqs last disabled at (47307): [<ffffffff90317bc1>] __irq_exit_rcu+0xa1/0xc0
+# ---[ end trace 0000000000000000 ]---
+# Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI
+# CPU: 1 UID: 0 PID: 11 Comm: kworker/u8:0 Tainted: G        W          6.13.0-rc2-g5219242748c8 #1
+# Tainted: [W]=WARN
+# Hardware name: ChromiumOS crosvm, BIOS 0
+# Workqueue: vkms_composer vkms_composer_worker [vkms]
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms]
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00 <8b> 50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00
+# RSP: 0018:ffffa14cc005fd20 EFLAGS: 00010202
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002
+# RDX: ffff9b8669626000 RSI: ffff9b8669627ffc RDI: 00000000348d6c39
+# RBP: ffffa14cc005fde0 R08: 0000000000000000 R09: 0000000000000000
+# R10: ffff9b8645650eb0 R11: 0000000000000000 R12: ffff9b8641ba5800
+# R13: 0000000000000028 R14: 0000000000000000 R15: ffff9b8645650eb0
+# FS:  0000000000000000(0000) GS:ffff9b866bd00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 000000000000001c CR3: 0000000108c14000 CR4: 0000000000350ef0
+# Call Trace:
+#  <TASK>
+#  ? __die+0x1e/0x60
+#  ? page_fault_oops+0x17b/0x4a0
+#  ? __kvmalloc_node_noprof+0x3e/0xc0
+#  ? exc_page_fault+0x6d/0x230
+#  ? asm_exc_page_fault+0x26/0x30
+#  ? compose_active_planes+0x1a3/0x760 [vkms]
+#  vkms_composer_worker+0x205/0x240 [vkms]
+#  process_one_work+0x201/0x6c0
+#  ? lock_is_held_type+0x9e/0x110
+#  worker_thread+0x17e/0x320
+#  ? __pfx_worker_thread+0x10/0x10
+#  kthread+0xce/0x100
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork+0x2f/0x50
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork_asm+0x1a/0x30
+#  </TASK>
+# Modules linked in: vkms
+# CR2: 000000000000001c
+# ---[ end trace 0000000000000000 ]---
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms]
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00 <8b> 50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00
+# RSP: 0018:ffffa14cc005fd20 EFLAGS: 00010202
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002
+# RDX: ffff9b8669626000 RSI: ffff9b8669627ffc RDI: 00000000348d6c39
+# RBP: ffffa14cc005fde0 R08: 0000000000000000 R09: 0000000000000000
+# R10: ffff9b8645650eb0 R11: 0000000000000000 R12: ffff9b8641ba5800
+# R13: 0000000000000028 R14: 0000000000000000 R15: ffff9b8645650eb0
+# FS:  0000000000000000(0000) GS:ffff9b866bd00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 000000000000001c CR3: 0000000108c14000 CR4: 0000000000350ef0
+
+# DEBUG - Begin test kms_cursor_crc@cursor-rapid-movement-128x128
+# ------------[ cut here ]------------
+# WARNING: CPU: 0 PID: 2898 at drivers/gpu/drm/vkms/vkms_crtc.c:139 vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+# Modules linked in: vkms
+# CPU: 0 UID: 0 PID: 2898 Comm: kms_cursor_crc Not tainted 6.13.0-rc2-g1f006005ebf8 #1
+# Hardware name: ChromiumOS crosvm, BIOS 0
+# RIP: 0010:vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+# Code: f7 48 89 f3 e8 d0 bf 6e e1 48 8b 83 50 01 00 00 a8 01 75 15 48 8b bb a0 01 00 00 e8 59 05 15 e1 48 89 df 5b e9 50 05 15 e1 90 <0f> 0b 90 eb e5 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90
+# RSP: 0018:ffffa35c4082fb08 EFLAGS: 00010202
+# RAX: ffff8b02c1c0f005 RBX: ffff8b02d4509600 RCX: ffffffffa2c96b65
+# RDX: ffffffffa1ad1f80 RSI: 0000000000000000 RDI: 0000000000000000
+# RBP: 0000000000000000 R08: 0000000000000034 R09: 0000000000000002
+# R10: 0000000030f11ddf R11: 00000000f30f11dd R12: ffff8b02d2528000
+# R13: 0000000000000000 R14: 00000000ffffffff R15: 0000000000000000
+# FS:  00007f4b071ab6c0(0000) GS:ffff8b02efc00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 000055f7f8384b48 CR3: 0000000104ef0000 CR4: 0000000000350ef0
+# Call Trace:
+#  <TASK>
+#  ? __warn+0x8c/0x190
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+#  ? report_bug+0x164/0x190
+#  ? handle_bug+0x54/0x90
+#  ? exc_invalid_op+0x17/0x70
+#  ? asm_exc_invalid_op+0x1a/0x20
+#  ? __pfx_drm_property_free_blob+0x10/0x10
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+#  ? vkms_atomic_crtc_destroy_state+0x10/0x40 [vkms]
+#  drm_atomic_state_default_clear+0x137/0x2f0
+#  __drm_atomic_state_free+0x6c/0xb0
+#  drm_atomic_helper_update_plane+0x100/0x150
+#  drm_mode_cursor_universal+0x10e/0x270
+#  drm_mode_cursor_common+0x115/0x240
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10
+#  drm_mode_cursor_ioctl+0x4a/0x70
+#  drm_ioctl_kernel+0xb0/0x110
+#  drm_ioctl+0x235/0x4b0
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10
+#  __x64_sys_ioctl+0x92/0xc0
+#  do_syscall_64+0xbb/0x1d0
+#  entry_SYSCALL_64_after_hwframe+0x77/0x7f
+# RIP: 0033:0x7f4b0815ac5b
+# Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00
+# RSP: 002b:00007ffd726f75e0 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
+# RAX: ffffffffffffffda RBX: 000000000000005d RCX: 00007f4b0815ac5b
+# RDX: 00007ffd726f7670 RSI: 00000000c01c64a3 RDI: 0000000000000005
+# RBP: 00007ffd726f7670 R08: 0000000000000007 R09: 000055f7f83e30c0
+# R10: 2b16893c03bd381a R11: 0000000000000246 R12: 00000000c01c64a3
+# R13: 0000000000000005 R14: 000055f7dbee72c8 R15: 000055f7f837bab0
+#  </TASK>
+# irq event stamp: 58921
+# hardirqs last  enabled at (58927): [<ffffffffa13a3e4d>] __up_console_sem+0x4d/0x60
+# hardirqs last disabled at (58932): [<ffffffffa13a3e32>] __up_console_sem+0x32/0x60
+# softirqs last  enabled at (46140): [<ffffffffa1317980>] handle_softirqs+0x310/0x3f0
+# softirqs last disabled at (46135): [<ffffffffa1317bc1>] __irq_exit_rcu+0xa1/0xc0
+# ---[ end trace 0000000000000000 ]---
+# Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI
+# CPU: 1 UID: 0 PID: 1657 Comm: kworker/u8:14 Tainted: G        W          6.13.0-rc2-g1f006005ebf8 #1
+# Tainted: [W]=WARN
+# Hardware name: ChromiumOS crosvm, BIOS 0
+# Workqueue: vkms_composer vkms_composer_worker [vkms]
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms]
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00 <8b> 50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00
+# RSP: 0018:ffffa35c40c43d20 EFLAGS: 00010202
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002
+# RDX: ffff8b02c52c8000 RSI: ffff8b02c52c9ffc RDI: 00000000fa4761c9
+# RBP: ffffa35c40c43de0 R08: 0000000000000000 R09: 0000000000000000
+# R10: ffff8b02c1c87840 R11: 0000000000000000 R12: ffff8b02d4508800
+# R13: 0000000000000021 R14: 0000000000000000 R15: ffff8b02c1c87840
+# FS:  0000000000000000(0000) GS:ffff8b02efd00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 000000000000001c CR3: 0000000104ef0000 CR4: 0000000000350ef0
+# Call Trace:
+#  <TASK>
+#  ? __die+0x1e/0x60
+#  ? page_fault_oops+0x17b/0x4a0
+#  ? srso_return_thunk+0x5/0x5f
+#  ? exc_page_fault+0x6d/0x230
+#  ? asm_exc_page_fault+0x26/0x30
+#  ? compose_active_planes+0x1a3/0x760 [vkms]
+#  vkms_composer_worker+0x205/0x240 [vkms]
+#  process_one_work+0x201/0x6c0
+#  ? lock_is_held_type+0x9e/0x110
+#  worker_thread+0x17e/0x320
+#  ? __pfx_worker_thread+0x10/0x10
+#  kthread+0xce/0x100
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork+0x2f/0x50
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork_asm+0x1a/0x30
+#  </TASK>
+# Modules linked in: vkms
+# CR2: 000000000000001c
+# ---[ end trace 0000000000000000 ]---
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms]
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00 <8b> 50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00
+# RSP: 0018:ffffa35c40c43d20 EFLAGS: 00010202
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002
+# RDX: ffff8b02c52c8000 RSI: ffff8b02c52c9ffc RDI: 00000000fa4761c9
+# RBP: ffffa35c40c43de0 R08: 0000000000000000 R09: 0000000000000000
+# R10: ffff8b02c1c87840 R11: 0000000000000000 R12: ffff8b02d4508800
+# R13: 0000000000000021 R14: 0000000000000000 R15: ffff8b02c1c87840
+# FS:  0000000000000000(0000) GS:ffff8b02efd00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+
+# Skip driver specific tests
+^amdgpu.*
+^msm.*
+nouveau_.*
+^panfrost.*
+^v3d.*
+^vc4.*
+^vmwgfx*
+
+# Skip intel specific tests
+gem_.*
+i915_.*
+xe_.*
+tools_test.*
+
+# IGT issue. is_joiner_mode() should return false for non-Intel hardware.
+# https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/issues/162
+kms_display_modes@extended-mode-basic
+kms_display_modes@mst-extended-mode-negative
Signature · 1 line
2.43.0
Signature · 3 lines
Simona Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
#5 lore raw

Re: [PATCH v2 3/5] kci-gitlab: Add drm scenario

Hi Simona,

Thank you for your comments,

---- On Thu, 23 Jan 2025 17:06:15 -0300 Simona Vetter wrote ---

Quoted 5 lines · Vignesh Raman
Quoted 4 lines

Add a drm scenario that includes a job to run IGT tests for vkms. It also includes helper scripts to build deqp-runner and IGT, which are based on the mesa-ci project.

Quoted 7 lines
Quoted 3 lines

The xfails are added from drm-ci (drivers/gpu/drm/ci/xfails) Refer to Documentation/gpu/automated_testing.rst for details regarding fails/flakes/skips files.

Why does this need to be duplicated, especially since this is another gitlab-ci support like we have already? I know there's difference between the gitlab on fd.o and others, but this is a bit much.

We didn't want to duplicate, we were planing to remove it from drm-ci, please see this commit:

    https://gitlab.freedesktop.org/vigneshraman/kernel/-/commit/d5ac1612be0c67ea7b164800ccf124481042f5ce 

But we wanted to make sure the entire approach is correct first, so we dropped that commit for this version.

Quoted 6 lines

What I expected:
- Stuff that's relevant for the subsystem like the xfail list, or the igt version we want to test against or any of these things would stay in the subsystem ci folder, so drivers/gpu/drm/ci here. There should be no need to duplicate anything, definitely not for a virtual driver like vkms.

We can move the ci scenario folder to be inside the subsystem specific folder, I think this is a nice idea, we can do that for v3.

Quoted 8 lines

- Stuff that's used by multiple different ci needs to be shared somewhere, maybe in tools/ci/gitlab-ci/ or maybe in the drm/ci directory. Things like the script to build igt or assemble a drm specific container. Ideally we'd also be able to share entire gitlab build targets, at least the pure sw stuff really should work the same everywhere (plus/minus infra differences in how the docker images are stitched together maybe, but that's separate build targets anyway).

Ack

Quoted 4 lines

- Stuff that's needed by the kernel at large (like the rust build script) shouldn't be in a subsystem specific place at all once we get something else than what we have in drm/ci right now.

Ack

Quoted 2 lines

I'm confused.

I hope my replies above help, and thanks a lot for your feedback. please, keep them coming :)

Cheers, Helen

Quoted 1,452 lines

Cheers, Sima

Quoted 1,443 lines

---

 MAINTAINERS                                   |   1 + 
 .../scenarios/drm/build-deqp-runner.sh        |  42 + 
 tools/ci/gitlab-ci/scenarios/drm/build-igt.sh |  80 ++ 
 .../ci/gitlab-ci/scenarios/drm/build-rust.sh  |  42 + 
 .../scenarios/drm/create-cross-file.sh        |  65 ++ 
 tools/ci/gitlab-ci/scenarios/drm/drm.yml      |  45 +- 
 .../scenarios/drm/prepare-container.sh        |  18 + 
 tools/ci/gitlab-ci/scenarios/drm/run-igt.sh   |  83 ++ 
 tools/ci/gitlab-ci/scenarios/drm/test.yml     |  32 + 
 .../scenarios/drm/xfails/vkms-none-fails.txt  |  22 + 
 .../scenarios/drm/xfails/vkms-none-flakes.txt |  90 ++ 
 .../scenarios/drm/xfails/vkms-none-skips.txt  | 812 ++++++++++++++++++ 
 12 files changed, 1326 insertions(+), 6 deletions(-) 
 create mode 100755 tools/ci/gitlab-ci/scenarios/drm/build-deqp-runner.sh 
 create mode 100755 tools/ci/gitlab-ci/scenarios/drm/build-igt.sh 
 create mode 100755 tools/ci/gitlab-ci/scenarios/drm/build-rust.sh 
 create mode 100755 tools/ci/gitlab-ci/scenarios/drm/create-cross-file.sh 
 create mode 100755 tools/ci/gitlab-ci/scenarios/drm/prepare-container.sh 
 create mode 100755 tools/ci/gitlab-ci/scenarios/drm/run-igt.sh 
 create mode 100644 tools/ci/gitlab-ci/scenarios/drm/test.yml 
 create mode 100644 tools/ci/gitlab-ci/scenarios/drm/xfails/vkms-none-fails.txt 
 create mode 100644 tools/ci/gitlab-ci/scenarios/drm/xfails/vkms-none-flakes.txt 
 create mode 100644 tools/ci/gitlab-ci/scenarios/drm/xfails/vkms-none-skips.txt 
MAINTAINERS +1 -0
index 874044e570f7..8de12618c3e1 100644 
@@ -7551,6 +7551,7 @@ S:    Maintained 
 T:    git https://gitlab.freedesktop.org/drm/misc/kernel.git 
 F:    Documentation/gpu/vkms.rst 
 F:    drivers/gpu/drm/ci/xfails/vkms* 
+F:    tools/ci/gitlab-ci/scenarios/drm/xfails/vkms* 
 F:    drivers/gpu/drm/vkms/ 
 
 DRM DRIVER FOR VIRTUALBOX VIRTUAL GPU 
tools/ci/gitlab-ci/scenarios/drm/build-deqp-runner.sh new file +42 -0
new file mode 100755 
index 000000000000..9f2574537423 
@@ -0,0 +1,42 @@ 
+#!/usr/bin/env bash 
+# SPDX-License-Identifier: GPL-2.0-or-later 
+# 
+# Copyright (C) 2025 Collabora, Vignesh Raman [email protected]> 
+# 
+# Based on the build-deqp-runner.sh script from the mesa project: 
+# https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/.gitlab-ci/container/build-deqp-runner.sh 
+# 
+# shellcheck disable=SC2086 # we want word splitting 
+ 
+set -uex 
+ 
+DEQP_RUNNER_GIT_URL="${DEQP_RUNNER_GIT_URL:-https://gitlab.freedesktop.org/mesa/deqp-runner.git}" 
+DEQP_RUNNER_GIT_TAG="${DEQP_RUNNER_GIT_TAG:-v0.20.0}" 
+ 
+git clone $DEQP_RUNNER_GIT_URL --single-branch --no-checkout 
+pushd deqp-runner 
+git checkout $DEQP_RUNNER_GIT_TAG 
+ 
+RUST_TARGET="${RUST_TARGET:-}" 
+ 
+# When CC (/usr/lib/ccache/gcc) variable is set, the rust compiler uses 
+# this variable when cross-compiling arm32 and build fails for zsys-sys. 
+# So unset the CC variable when cross-compiling for arm32. 
+SAVEDCC=${CC:-} 
+if [ "$RUST_TARGET" = "armv7-unknown-linux-gnueabihf" ]; then 
+    unset CC 
+fi 
+cargo install --locked  \ 
+    -j ${FDO_CI_CONCURRENT:-4} \ 
+    --root /usr/local \ 
+    ${EXTRA_CARGO_ARGS:-} \ 
+    --path . 
+CC=$SAVEDCC 
+ 
+popd 
+rm -rf deqp-runner 
+ 
+# remove unused test runners 
+if [ -z "${DEQP_RUNNER_GIT_TAG:-}" ]; then 
+    rm -f /usr/local/bin/igt-runner 
+fi 
tools/ci/gitlab-ci/scenarios/drm/build-igt.sh new file +80 -0
new file mode 100755 
index 000000000000..fc82aa6fddec 
@@ -0,0 +1,80 @@ 
+#!/bin/bash 
+# SPDX-License-Identifier: GPL-2.0-or-later 
+# 
+# Copyright (C) 2025 Collabora, Vignesh Raman [email protected]> 
+# 
+# Based on the build-igt.sh script from the drm-ci project: 
+# https://gitlab.freedesktop.org/drm/misc/kernel/-/blob/drm-misc-next/drivers/gpu/drm/ci/build-igt.sh 
+ 
+set -ex 
+ 
+function generate_testlist { 
+    set +x 
+    while read -r line; do 
+        if [ "$line" = "TESTLIST" ] || [ "$line" = "END TESTLIST" ]; then 
+            continue 
+        fi 
+ 
+        tests=$(echo "$line" | tr ' ' '\n') 
+ 
+        for test in $tests; do 
+            output=$(/igt/libexec/igt-gpu-tools/"$test" --list-subtests || true) 
+ 
+            if [ -z "$output" ]; then 
+                echo "$test" 
+            else 
+                echo "$output" | while read -r subtest; do 
+                    echo "$test@$subtest" 
+                done 
+            fi 
+        done 
+    done  /igt/libexec/igt-gpu-tools/ci-testlist.txt 
+    set -x 
+} 
+ 
+git clone https://gitlab.freedesktop.org/drm/igt-gpu-tools.git --single-branch --no-checkout 
+pushd igt-gpu-tools 
+git checkout $IGT_VERSION 
+ 
+if [[ "$KCI_KERNEL_ARCH" = "arm" ]]; then 
+    . ../tools/ci/gitlab-ci/scenarios/drm/create-cross-file.sh armhf 
+    EXTRA_MESON_ARGS="--cross-file /cross_file-armhf.txt" 
+fi 
+ 
+MESON_OPTIONS="-Doverlay=disabled                    \ 
+               -Dchamelium=disabled                  \ 
+               -Dvalgrind=disabled                   \ 
+               -Dman=enabled                         \ 
+               -Dtests=enabled                       \ 
+               -Drunner=enabled                      \ 
+               -Dlibunwind=enabled                   \ 
+               -Dprefix=/igt" 
+ 
+if [[ "$KCI_KERNEL_ARCH" = "arm64" ]] || [[ "$KCI_KERNEL_ARCH" = "arm" ]]; then 
+    MESON_OPTIONS="$MESON_OPTIONS -Dxe_driver=disabled" 
+fi 
+ 
+mkdir -p /igt 
+meson build $MESON_OPTIONS $EXTRA_MESON_ARGS 
+ninja -C build -j${FDO_CI_CONCURRENT:-4} || ninja -C build -j 1 
+ninja -C build install 
+ 
+if [[ "$KCI_KERNEL_ARCH" = "arm64" ]]; then 
+    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/igt/lib/aarch64-linux-gnu 
+elif [[ "$KCI_KERNEL_ARCH" = "arm" ]]; then 
+    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/igt/lib 
+else 
+    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/igt/lib/x86_64-linux-gnu 
+fi 
+ 
+echo "Generating ci-testlist.txt" 
+generate_testlist 
+ 
+export INSTALL_PATH="${CI_PROJECT_DIR}/artifacts/" 
+INSTALL_PATH+="igt-install-${KCI_KERNEL_ARCH}" 
+mkdir -p "$INSTALL_PATH" 
+ 
+tar -cf $INSTALL_PATH/igt.tar /igt 
+ 
+popd 
+rm -rf igt-gpu-tools 
tools/ci/gitlab-ci/scenarios/drm/build-rust.sh new file +42 -0
new file mode 100755 
index 000000000000..48702d5a9648 
@@ -0,0 +1,42 @@ 
+#!/bin/bash 
+# SPDX-License-Identifier: GPL-2.0-or-later 
+# 
+# Copyright (C) 2025 Collabora, Vignesh Raman [email protected]> 
+# 
+# Based on the build-rust.sh script from the mesa project: 
+# https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/.gitlab-ci/container/build-rust.sh 
+ 
+# Note that this script is not actually "building" rust, but build- is the 
+# convention for the shared helpers for putting stuff in our containers. 
+ 
+set -ex 
+ 
+# cargo (and rustup) wants to store stuff in $HOME/.cargo, and binaries in 
+# $HOME/.cargo/bin.  Make bin a link to a public bin directory so the commands 
+# are just available to all build jobs. 
+mkdir -p "$HOME"/.cargo 
+ln -s /usr/local/bin "$HOME"/.cargo/bin 
+ 
+# Pick a specific snapshot from rustup so the compiler doesn't drift on us. 
+RUST_VERSION=1.78.0-2024-05-02 
+ 
+# For rust in Mesa, we use rustup to install.  This lets us pick an arbitrary 
+# version of the compiler, rather than whatever the container's Debian comes 
+# with. 
+curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \ 
+    --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- \ 
+      --default-toolchain $RUST_VERSION \ 
+      --profile minimal \ 
+      -y 
+ 
+rustup component add clippy rustfmt 
+ 
+# Set up a config script for cross compiling -- cargo needs your system cc for 
+# linking in cross builds, but doesn't know what you want to use for system cc. 
+cat > /root/.cargo/config <<EOF 
+[target.armv7-unknown-linux-gnueabihf] 
+linker = "arm-linux-gnueabihf-gcc" 
+ 
+[target.aarch64-unknown-linux-gnu] 
+linker = "aarch64-linux-gnu-gcc" 
+EOF 
tools/ci/gitlab-ci/scenarios/drm/create-cross-file.sh new file +65 -0
new file mode 100755 
index 000000000000..e078346f23b3 
@@ -0,0 +1,65 @@ 
+#!/bin/bash 
+# SPDX-License-Identifier: GPL-2.0-or-later 
+# 
+# Copyright (C) 2025 Collabora, Vignesh Raman [email protected]> 
+# 
+# Based on the create-cross-file.sh script from the mesa project: 
+# https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/.gitlab-ci/container/create-cross-file.sh 
+ 
+arch=$1 
+cross_file="/cross_file-$arch.txt" 
+meson env2mfile --cross --debarch "$arch" -o "$cross_file" 
+ 
+# Explicitly set ccache path for cross compilers 
+sed -i \ 
+    "s|/usr/bin/\([^-]*\)-linux-gnu\([^-]*\)-g|/usr/lib/ccache/\\1-linux-gnu\\2-g|g" \ 
+    "$cross_file" 
+ 
+# Rely on qemu-user being configured in binfmt_misc on the host 
+# shellcheck disable=SC1003 # how this sed doesn't seems to work for me locally 
+sed -i -e '/\[properties\]/a\' -e "needs_exe_wrapper = False" "$cross_file" 
+ 
+# Add a line for rustc, which meson env2mfile is missing. 
+cc=$(sed -n "s|^c\s*=\s*\[?'\(.*\)'\]?|\1|p" < "$cross_file") 
+ 
+if [[ "$arch" = "arm64" ]]; then 
+    rust_target=aarch64-unknown-linux-gnu 
+elif [[ "$arch" = "armhf" ]]; then 
+    rust_target=armv7-unknown-linux-gnueabihf 
+elif [[ "$arch" = "i386" ]]; then 
+    rust_target=i686-unknown-linux-gnu 
+elif [[ "$arch" = "ppc64el" ]]; then 
+    rust_target=powerpc64le-unknown-linux-gnu 
+elif [[ "$arch" = "s390x" ]]; then 
+    rust_target=s390x-unknown-linux-gnu 
+else 
+    echo "Needs rustc target mapping" 
+fi 
+ 
+# shellcheck disable=SC1003 # single-quoted string ends in a backslash 
+sed -i \ 
+    -e '/\[binaries\]/a\' \ 
+    -e "rust = ['rustc', '--target=$rust_target', '-C', 'linker=$cc']" \ 
+    "$cross_file" 
+ 
+# Set up cmake cross compile toolchain file for dEQP builds 
+toolchain_file="/toolchain-$arch.cmake" 
+if [[ "$arch" = "arm64" ]]; then 
+    GCC_ARCH="aarch64-linux-gnu" 
+    DE_CPU="DE_CPU_ARM_64" 
+elif [[ "$arch" = "armhf" ]]; then 
+    GCC_ARCH="arm-linux-gnueabihf" 
+    DE_CPU="DE_CPU_ARM" 
+fi 
+ 
+if [[ -n "$GCC_ARCH" ]]; then 
+    { 
+        echo "set(CMAKE_SYSTEM_NAME Linux)"; 
+        echo "set(CMAKE_SYSTEM_PROCESSOR arm)"; 
+        echo "set(CMAKE_C_COMPILER /usr/lib/ccache/$GCC_ARCH-gcc)"; 
+        echo "set(CMAKE_CXX_COMPILER /usr/lib/ccache/$GCC_ARCH-g++)"; 
+        echo "set(CMAKE_CXX_FLAGS_INIT \"-Wno-psabi\")";  # makes ABI warnings quiet for ARMv7 
+        echo "set(ENV{PKG_CONFIG} \"/usr/bin/$GCC_ARCH-pkgconf\")"; 
+        echo "set(DE_CPU $DE_CPU)"; 
+    } > "$toolchain_file" 
+fi 
tools/ci/gitlab-ci/scenarios/drm/drm.yml +39 -6
index 206e6f0d1a46..220223544673 100644 
@@ -1,11 +1,44 @@ 
 # SPDX-License-Identifier: GPL-2.0-or-later 
 # 
 # Copyright (C) 2024 Collabora, Helen Koike [email protected]> 
+# DRM-specific scenario configurations based on drivers/gpu/drm/ci/build.yml 
 
-# Write here specific configurations and extensions for the given scenario 
+variables: 
+  FDO_DISTRIBUTION_TAG: "2025-01-21-drm" 
+  FDO_DISTRIBUTION_EXEC: ./tools/ci/gitlab-ci/scenarios/drm/prepare-container.sh 
+  IGT_VERSION: a73311079a5d8ac99eb25336a8369a2c3c6b519b 
+  DEQP_RUNNER_GIT_URL: https://gitlab.freedesktop.org/mesa/deqp-runner.git 
+  DEQP_RUNNER_GIT_TAG: v0.20.0 
 
-# Example - overwrite kernel combinations in the pipeline 
-# build:arm64: 
-#   variables: 
-#     KCI_KCONFIGS_ENABLE: "CONFIG1 CONFIG2" 
-#     KCI_DEFCONFIG: "my/custom/config1" 
+build:x86_64: 
+  variables: 
+    KCI_KCONFIGS_ENABLE: "DRM_VKMS DRM_BOCHS" 
+ 
+.igt: 
+  stage: build 
+  script: 
+    - FDO_CI_CONCURRENT=${FDO_CI_CONCURRENT} bash ./tools/ci/gitlab-ci/scenarios/drm/build-igt.sh 
+  artifacts: 
+    when: always 
+    paths: 
+      - artifacts/ 
+ 
+# Build IGT for testing on devices 
+# TODO: Fix cross compilation issue 
+.igt:arm32: 
+  extends: 
+    - .arm32-config 
+    - .use-debian/arm64_build 
+    - .igt 
+ 
+igt:arm64: 
+  extends: 
+    - .arm64-config 
+    - .use-debian/arm64_build 
+    - .igt 
+ 
+igt:x86_64: 
+  extends: 
+    - .x86_64-config 
+    - .use-debian/x86_64_build 
+    - .igt 
tools/ci/gitlab-ci/scenarios/drm/prepare-container.sh new file +18 -0
new file mode 100755 
index 000000000000..43fbfdcd3514 
@@ -0,0 +1,18 @@ 
+#!/bin/bash 
+# SPDX-License-Identifier: GPL-2.0-or-later 
+# 
+# Copyright (C) 2025 Collabora, Vignesh Raman [email protected]> 
+ 
+set -ex 
+ 
+############### Install Smatch 
+ 
+. ./tools/ci/gitlab-ci/ci-scripts/install-smatch.sh 
+ 
+############### Install Rust toolchain 
+ 
+. ./tools/ci/gitlab-ci/scenarios/drm/build-rust.sh 
+ 
+############### Build dEQP runner 
+ 
+. ./tools/ci/gitlab-ci/scenarios/drm/build-deqp-runner.sh 
tools/ci/gitlab-ci/scenarios/drm/run-igt.sh new file +83 -0
new file mode 100755 
index 000000000000..4822fcc2780f 
@@ -0,0 +1,83 @@ 
+#!/bin/sh 
+# SPDX-License-Identifier: GPL-2.0-or-later 
+# 
+# Copyright (C) 2025 Collabora, Vignesh Raman [email protected]> 
+# 
+# Based on the igt_runner.sh script from the drm-ci project: 
+# https://gitlab.freedesktop.org/drm/misc/kernel/-/blob/drm-misc-next/drivers/gpu/drm/ci/igt_runner.sh 
+ 
+set -ex 
+ 
+STATUS_FILE="${1}" 
+ 
+export IGT_FORCE_DRIVER=${DRIVER_NAME} 
+export PATH=$PATH:/igt/bin/ 
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:\ 
+/igt/lib/aarch64-linux-gnu:\ 
+/igt/lib/x86_64-linux-gnu:\ 
+/igt/lib:\ 
+/igt/lib64 
+ 
+# Uncomment the below to debug problems with driver probing 
+: ' 
+ls -l /dev/dri/ 
+cat /sys/kernel/debug/devices_deferred 
+cat /sys/kernel/debug/device_component/* 
+' 
+ 
+# Dump drm state to confirm that kernel was able to find a connected display: 
+set +e 
+cat /sys/kernel/debug/dri/*/state 
+set -e 
+ 
+if [ -e "/install/xfails/$DRIVER_NAME-$GPU_VERSION-skips.txt" ]; then 
+    IGT_SKIPS="--skips /install/xfails/$DRIVER_NAME-$GPU_VERSION-skips.txt" 
+fi 
+ 
+if [ -e "/install/xfails/$DRIVER_NAME-$GPU_VERSION-flakes.txt" ]; then 
+    IGT_FLAKES="--flakes /install/xfails/$DRIVER_NAME-$GPU_VERSION-flakes.txt" 
+fi 
+ 
+if [ -e "/install/xfails/$DRIVER_NAME-$GPU_VERSION-fails.txt" ]; then 
+    IGT_FAILS="--baseline /install/xfails/$DRIVER_NAME-$GPU_VERSION-fails.txt" 
+fi 
+ 
+TESTLIST="/igt/libexec/igt-gpu-tools/ci-testlist.txt" 
+ 
+# If the job is parallel at the gitab job level, take the corresponding fraction 
+# of the caselist. 
+if [ -n "$CI_NODE_INDEX" ]; then 
+    sed -ni $CI_NODE_INDEX~$CI_NODE_TOTAL"p" $TESTLIST 
+fi 
+ 
+# core_getversion checks if the driver is loaded and probed correctly 
+# so run it in all shards 
+if ! grep -q "core_getversion" $TESTLIST; then 
+    # Add the line to the file 
+    echo "core_getversion" >> $TESTLIST 
+fi 
+ 
+set +e 
+igt-runner \ 
+    run \ 
+    --igt-folder /igt/libexec/igt-gpu-tools \ 
+    --caselist $TESTLIST \ 
+    --output /results \ 
+    -vvvv \ 
+    $IGT_SKIPS \ 
+    $IGT_FLAKES \ 
+    $IGT_FAILS \ 
+    --jobs 1 
+ret=$? 
+set -e 
+ 
+deqp-runner junit \ 
+   --testsuite IGT \ 
+   --results /results/failures.csv \ 
+   --output /results/junit.xml \ 
+   --limit 50 \ 
+   --template "See https://$CI_PROJECT_ROOT_NAMESPACE.pages.freedesktop.org/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/results/{{testcase}}.xml" 
+ 
+cd $oldpath 
+echo $ret > ${STATUS_FILE} 
+exit $ret 
tools/ci/gitlab-ci/scenarios/drm/test.yml new file +32 -0
new file mode 100644 
index 000000000000..9fb37beb446d 
@@ -0,0 +1,32 @@ 
+# SPDX-License-Identifier: GPL-2.0-or-later 
+# 
+# Copyright (C) 2025 Collabora, Vignesh Raman [email protected]> 
+ 
+vkms:none: 
+  extends: build:x86_64 
+  stage: test 
+  timeout: "1h30m" 
+  variables: 
+    DRIVER_NAME: vkms 
+    GPU_VERSION: none 
+  tags: 
+    - kvm 
+  script: 
+    - mkdir -p /install/xfails 
+    - cp -rfv tools/ci/gitlab-ci/scenarios/drm/xfails /install/ 
+    - cp $CI_PROJECT_DIR/artifacts/kernel-install-${KCI_KERNEL_ARCH}/bzImage /install 
+    - tar -xv -C / -f $CI_PROJECT_DIR/artifacts/igt-install-${KCI_KERNEL_ARCH}/igt.tar 
+    - mkdir -p $CI_PROJECT_DIR/results 
+    - ln -sf $CI_PROJECT_DIR/results /results 
+    - ./tools/ci/gitlab-ci/ci-scripts/run-virtme.sh /install/bzImage ./tools/ci/gitlab-ci/scenarios/drm/run-igt.sh "DRIVER_NAME=$DRIVER_NAME GPU_VERSION=$GPU_VERSION" 
+  artifacts: 
+    when: always 
+    paths: 
+      - results/ 
+  needs: 
+    - build:x86_64 
+    - igt:x86_64 
+ 
+test-boot: 
+  rules: 
+    - when: never 
tools/ci/gitlab-ci/scenarios/drm/xfails/vkms-none-fails.txt new file +22 -0
new file mode 100644 
index 000000000000..3979c95c07ed 
@@ -0,0 +1,22 @@ 
+kms_cursor_crc@cursor-rapid-movement-256x85,Fail 
+kms_cursor_crc@cursor-rapid-movement-32x10,Fail 
+kms_cursor_crc@cursor-rapid-movement-64x64,Fail 
+kms_cursor_legacy@basic-flip-before-cursor-atomic,Fail 
+kms_cursor_legacy@basic-flip-before-cursor-legacy,Fail 
+kms_cursor_legacy@cursor-vs-flip-atomic,Fail 
+kms_cursor_legacy@cursor-vs-flip-legacy,Fail 
+kms_cursor_legacy@cursor-vs-flip-toggle,Fail 
+kms_cursor_legacy@cursor-vs-flip-varying-size,Fail 
+kms_cursor_legacy@flip-vs-cursor-atomic,Fail 
+kms_cursor_legacy@flip-vs-cursor-crc-atomic,Fail 
+kms_cursor_legacy@flip-vs-cursor-crc-legacy,Fail 
+kms_cursor_legacy@flip-vs-cursor-legacy,Fail 
+kms_flip@flip-vs-modeset-vs-hang,Fail 
+kms_flip@flip-vs-panning-vs-hang,Fail 
+kms_writeback@writeback-check-output,Fail 
+kms_writeback@writeback-check-output-XRGB2101010,Fail 
+kms_writeback@writeback-fb-id,Fail 
+kms_writeback@writeback-fb-id-XRGB2101010,Fail 
+kms_writeback@writeback-invalid-parameters,Fail 
+kms_writeback@writeback-pixel-formats,Fail 
+perf@i915-ref-count,Fail 
tools/ci/gitlab-ci/scenarios/drm/xfails/vkms-none-flakes.txt new file +90 -0
new file mode 100644 
index 000000000000..62428f3c8f31 
@@ -0,0 +1,90 @@ 
+# Board Name: vkms 
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u 
+# Failure Rate: 50 
+# IGT Version: 1.28-g0df7b9b97 
+# Linux Version: 6.9.0-rc7 
+kms_cursor_legacy@long-nonblocking-modeset-vs-cursor-atomic 
+ 
+# Board Name: vkms 
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u 
+# Failure Rate: 50 
+# IGT Version: 1.28-g0df7b9b97 
+# Linux Version: 6.9.0-rc7 
+kms_flip@basic-flip-vs-wf_vblank 
+ 
+# Board Name: vkms 
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u 
+# Failure Rate: 50 
+# IGT Version: 1.28-g0df7b9b97 
+# Linux Version: 6.9.0-rc7 
+kms_flip@flip-vs-expired-vblank-interruptible 
+ 
+# Board Name: vkms 
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u 
+# Failure Rate: 50 
+# IGT Version: 1.28-g0df7b9b97 
+# Linux Version: 6.9.0-rc7 
+kms_flip@flip-vs-wf_vblank-interruptible 
+ 
+# Board Name: vkms 
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u 
+# Failure Rate: 50 
+# IGT Version: 1.28-g0df7b9b97 
+# Linux Version: 6.9.0-rc7 
+kms_flip@plain-flip-fb-recreate-interruptible 
+ 
+# Board Name: vkms 
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u 
+# Failure Rate: 50 
+# IGT Version: 1.28-g0df7b9b97 
+# Linux Version: 6.9.0-rc7 
+kms_flip@plain-flip-ts-check 
+ 
+# Board Name: vkms 
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u 
+# Failure Rate: 50 
+# IGT Version: 1.28-g0df7b9b97 
+# Linux Version: 6.9.0-rc7 
+kms_flip@plain-flip-ts-check-interruptible 
+ 
+# Board Name: vkms 
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u 
+# Failure Rate: 50 
+# IGT Version: 1.28-g0df7b9b97 
+# Linux Version: 6.9.0-rc7 
+kms_flip@flip-vs-absolute-wf_vblank 
+ 
+# Board Name: vkms 
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u 
+# Failure Rate: 50 
+# IGT Version: 1.28-g0df7b9b97 
+# Linux Version: 6.9.0-rc7 
+kms_flip@flip-vs-absolute-wf_vblank-interruptible 
+ 
+# Board Name: vkms 
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u 
+# Failure Rate: 50 
+# IGT Version: 1.28-g0df7b9b97 
+# Linux Version: 6.9.0-rc7 
+kms_flip@flip-vs-blocking-wf-vblank 
+ 
+# Board Name: vkms 
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u 
+# Failure Rate: 50 
+# IGT Version: 1.28-gf13702b8e 
+# Linux Version: 6.10.0-rc5 
+kms_cursor_legacy@flip-vs-cursor-varying-size 
+ 
+# Board Name: vkms 
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u 
+# Failure Rate: 50 
+# IGT Version: 1.28-gf13702b8e 
+# Linux Version: 6.10.0-rc5 
+kms_flip@flip-vs-expired-vblank 
+ 
+# Board Name: vkms 
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u 
+# Failure Rate: 50 
+# IGT Version: 1.28-gf13702b8e 
+# Linux Version: 6.10.0-rc5 
+kms_pipe_crc_basic@nonblocking-crc-frame-sequence 
tools/ci/gitlab-ci/scenarios/drm/xfails/vkms-none-skips.txt new file +812 -0
new file mode 100644 
index 000000000000..24659c18c765 
@@ -0,0 +1,812 @@ 
+# skip suspend tests 
+.*suspend.* 
+ 
+# keeps printing vkms_vblank_simulate: vblank timer overrun and never ends 
+kms_invalid_mode@int-max-clock 
+ 
+# kernel panic seen with kms_cursor_crc tests 
+kms_cursor_crc.* 
+# kms_cursor_crc@cursor-rapid-movement-32x10 
+# Oops: 0000 [#1] PREEMPT SMP NOPTI 
+# CPU: 0 PID: 2635 Comm: kworker/u8:13 Not tainted 6.9.0-rc7-g40935263a1fd #1 
+# Hardware name: ChromiumOS crosvm, BIOS 0 
+# Workqueue: vkms_composer vkms_composer_worker [vkms] 
+# RIP: 0010:compose_active_planes+0x1c7/0x4e0 [vkms] 
+# Code: c9 0f 84 6a 01 00 00 8b 42 30 2b 42 28 41 39 c5 0f 8c 6f 01 00 00 49 83 c7 01 49 39 df 74 3b 4b 8b 34 fc 48 8b 96 48 01 00 00  42 78 89 c1 83 e1 0a a8 20 74 b1 45 89 f5 41 f7 d5 44 03 6a 34 
+# RSP: 0018:ffffbb4700c17d58 EFLAGS: 00010246 
+# RAX: 0000000000000400 RBX: 0000000000000002 RCX: 0000000000000002 
+# RDX: 0000000000000000 RSI: ffffa2ad0788c000 RDI: 00000000fff479a8 
+# RBP: 0000000000000004 R08: 0000000000000000 R09: 0000000000000000 
+# R10: ffffa2ad0bb14000 R11: 0000000000000000 R12: ffffa2ad03e21700 
+# R13: 0000000000000003 R14: 0000000000000004 R15: 0000000000000000 
+# FS:  0000000000000000(0000) GS:ffffa2ad2bc00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 0000000000000078 CR3: 000000010bd30000 CR4: 0000000000350ef0 
+# Call Trace: 
+#   
+#  ? __die+0x1e/0x60 
+#  ? page_fault_oops+0x17b/0x490 
+#  ? exc_page_fault+0x6d/0x230 
+#  ? asm_exc_page_fault+0x26/0x30 
+#  ? compose_active_planes+0x1c7/0x4e0 [vkms] 
+#  ? compose_active_planes+0x2a3/0x4e0 [vkms] 
+#  ? srso_return_thunk+0x5/0x5f 
+#  vkms_composer_worker+0x205/0x240 [vkms] 
+#  process_one_work+0x1f4/0x6b0 
+#  ? lock_is_held_type+0x9e/0x110 
+#  worker_thread+0x17e/0x350 
+#  ? __pfx_worker_thread+0x10/0x10 
+#  kthread+0xce/0x100 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork+0x2f/0x50 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork_asm+0x1a/0x30 
+#   
+# Modules linked in: vkms 
+# CR2: 0000000000000078 
+# ---[ end trace 0000000000000000 ]--- 
+# RIP: 0010:compose_active_planes+0x1c7/0x4e0 [vkms] 
+# Code: c9 0f 84 6a 01 00 00 8b 42 30 2b 42 28 41 39 c5 0f 8c 6f 01 00 00 49 83 c7 01 49 39 df 74 3b 4b 8b 34 fc 48 8b 96 48 01 00 00  42 78 89 c1 83 e1 0a a8 20 74 b1 45 89 f5 41 f7 d5 44 03 6a 34 
+# RSP: 0018:ffffbb4700c17d58 EFLAGS: 00010246 
+# RAX: 0000000000000400 RBX: 0000000000000002 RCX: 0000000000000002 
+# RDX: 0000000000000000 RSI: ffffa2ad0788c000 RDI: 00000000fff479a8 
+# RBP: 0000000000000004 R08: 0000000000000000 R09: 0000000000000000 
+# R10: ffffa2ad0bb14000 R11: 0000000000000000 R12: ffffa2ad03e21700 
+# R13: 0000000000000003 R14: 0000000000000004 R15: 0000000000000000 
+# FS:  0000000000000000(0000) GS:ffffa2ad2bc00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+ 
+#kms_cursor_crc@cursor-rapid-movement-256x85 
+# [drm:drm_crtc_add_crc_entry] *ERROR* Overflow of CRC buffer, userspace reads too slow. 
+# Oops: 0000 [#1] PREEMPT SMP NOPTI 
+# CPU: 1 PID: 10 Comm: kworker/u8:0 Not tainted 6.9.0-rc7-g646381cde463 #1 
+# Hardware name: ChromiumOS crosvm, BIOS 0 
+# Workqueue: vkms_composer vkms_composer_worker [vkms] 
+# RIP: 0010:compose_active_planes+0x1c7/0x4e0 [vkms] 
+# Code: c9 0f 84 6a 01 00 00 8b 42 30 2b 42 28 41 39 c5 0f 8c 6f 01 00 00 49 83 c7 01 49 39 df 74 3b 4b 8b 34 fc 48 8b 96 48 01 00 00  42 78 89 c1 83 e1 0a a8 20 74 b1 45 89 f5 41 f7 d5 44 03 6a 34 
+# RSP: 0018:ffffa7e980057d58 EFLAGS: 00010246 
+# RAX: 0000000000000400 RBX: 0000000000000002 RCX: 0000000000000002 
+# RDX: 0000000000000000 RSI: ffff977987aa5c00 RDI: 000000001b43a85f 
+# RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 
+# R10: ffff977981bf0000 R11: 0000000000000000 R12: ffff977989622590 
+# R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000000 
+# FS:  0000000000000000(0000) GS:ffff9779abd00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 0000000000000078 CR3: 0000000109b38000 CR4: 0000000000350ef0 
+# Call Trace: 
+#   
+#  ? __die+0x1e/0x60 
+#  ? page_fault_oops+0x17b/0x490 
+#  ? exc_page_fault+0x6d/0x230 
+#  ? asm_exc_page_fault+0x26/0x30 
+#  ? compose_active_planes+0x1c7/0x4e0 [vkms] 
+#  ? compose_active_planes+0x2a3/0x4e0 [vkms] 
+#  ? srso_return_thunk+0x5/0x5f 
+#  vkms_composer_worker+0x205/0x240 [vkms] 
+#  process_one_work+0x1f4/0x6b0 
+#  ? lock_is_held_type+0x9e/0x110 
+#  worker_thread+0x17e/0x350 
+#  ? __pfx_worker_thread+0x10/0x10 
+#  kthread+0xce/0x100 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork+0x2f/0x50 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork_asm+0x1a/0x30 
+#   
+# Modules linked in: vkms 
+# CR2: 0000000000000078 
+# ---[ end trace 0000000000000000 ]--- 
+# RIP: 0010:compose_active_planes+0x1c7/0x4e0 [vkms] 
+# Code: c9 0f 84 6a 01 00 00 8b 42 30 2b 42 28 41 39 c5 0f 8c 6f 01 00 00 49 83 c7 01 49 39 df 74 3b 4b 8b 34 fc 48 8b 96 48 01 00 00  42 78 89 c1 83 e1 0a a8 20 74 b1 45 89 f5 41 f7 d5 44 03 6a 34 
+# RSP: 0018:ffffa7e980057d58 EFLAGS: 00010246 
+# RAX: 0000000000000400 RBX: 0000000000000002 RCX: 0000000000000002 
+# RDX: 0000000000000000 RSI: ffff977987aa5c00 RDI: 000000001b43a85f 
+# RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 
+# R10: ffff977981bf0000 R11: 0000000000000000 R12: ffff977989622590 
+# R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000000 
+# FS:  0000000000000000(0000) GS:ffff9779abd00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 0000000000000078 CR3: 0000000109b38000 CR4: 0000000000350ef0 
+ 
+#kms_cursor_crc@cursor-onscreen-256x256 
+# Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI 
+# CPU: 1 PID: 1913 Comm: kworker/u8:6 Not tainted 6.10.0-rc5-g8a28e73ebead #1 
+# Hardware name: ChromiumOS crosvm, BIOS 0 
+# Workqueue: vkms_composer vkms_composer_worker [vkms] 
+# RIP: 0010:compose_active_planes+0x344/0x4e0 [vkms] 
+# Code: 6a 34 0f 8e 91 fe ff ff 44 89 ea 48 8d 7c 24 48 e8 71 f0 ff ff 4b 8b 04 fc 48 8b 4c 24 50 48 8b 7c 24 40 48 8b 80 48 01 00 00  63 70 18 8b 40 20 48 89 f2 48 c1 e6 03 29 d0 48 8b 54 24 48 48 
+# RSP: 0018:ffffb477409fbd58 EFLAGS: 00010282 
+# RAX: 0000000000000000 RBX: 0000000000000002 RCX: ffff8b124a242000 
+# RDX: 00000000000000ff RSI: ffff8b124a243ff8 RDI: ffff8b124a244000 
+# RBP: 0000000000000002 R08: 0000000000000000 R09: 00000000000003ff 
+# R10: ffff8b124a244000 R11: 0000000000000000 R12: ffff8b1249282f30 
+# R13: 0000000000000002 R14: 0000000000000002 R15: 0000000000000000 
+# FS:  0000000000000000(0000) GS:ffff8b126bd00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 0000000000000018 CR3: 0000000107a86000 CR4: 0000000000350ef0 
+# Call Trace: 
+#   
+#  ? __die+0x1e/0x60 
+#  ? page_fault_oops+0x17b/0x4a0 
+#  ? exc_page_fault+0x6d/0x230 
+#  ? asm_exc_page_fault+0x26/0x30 
+#  ? compose_active_planes+0x344/0x4e0 [vkms] 
+#  ? compose_active_planes+0x32f/0x4e0 [vkms] 
+#  ? srso_return_thunk+0x5/0x5f 
+#  vkms_composer_worker+0x205/0x240 [vkms] 
+#  process_one_work+0x201/0x6c0 
+#  ? lock_is_held_type+0x9e/0x110 
+#  worker_thread+0x17e/0x350 
+#  ? __pfx_worker_thread+0x10/0x10 
+#  kthread+0xce/0x100 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork+0x2f/0x50 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork_asm+0x1a/0x30 
+#   
+# Modules linked in: vkms 
+# CR2: 0000000000000018 
+# ---[ end trace 0000000000000000 ]--- 
+# RIP: 0010:compose_active_planes+0x344/0x4e0 [vkms] 
+# Code: 6a 34 0f 8e 91 fe ff ff 44 89 ea 48 8d 7c 24 48 e8 71 f0 ff ff 4b 8b 04 fc 48 8b 4c 24 50 48 8b 7c 24 40 48 8b 80 48 01 00 00  63 70 18 8b 40 20 48 89 f2 48 c1 e6 03 29 d0 48 8b 54 24 48 48 
+# RSP: 0018:ffffb477409fbd58 EFLAGS: 00010282 
+# RAX: 0000000000000000 RBX: 0000000000000002 RCX: ffff8b124a242000 
+# RDX: 00000000000000ff RSI: ffff8b124a243ff8 RDI: ffff8b124a244000 
+# RBP: 0000000000000002 R08: 0000000000000000 R09: 00000000000003ff 
+# R10: ffff8b124a244000 R11: 0000000000000000 R12: ffff8b1249282f30 
+# R13: 0000000000000002 R14: 0000000000000002 R15: 0000000000000000 
+# FS:  0000000000000000(0000) GS:ffff8b126bd00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 0000000000000018 CR3: 0000000107a86000 CR4: 0000000000350ef0 
+ 
+kms_cursor_edge_walk@128x128-right-edge 
+# Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI 
+# CPU: 0 PID: 1911 Comm: kworker/u8:3 Not tainted 6.10.0-rc5-g5e7a002eefe5 #1 
+# Hardware name: ChromiumOS crosvm, BIOS 0 
+# Workqueue: vkms_composer vkms_composer_worker [vkms] 
+# RIP: 0010:compose_active_planes+0x344/0x4e0 [vkms] 
+# Code: 6a 34 0f 8e 91 fe ff ff 44 89 ea 48 8d 7c 24 48 e8 71 f0 ff ff 4b 8b 04 fc 48 8b 4c 24 50 48 8b 7c 24 40 48 8b 80 48 01 00 00  63 70 18 8b 40 20 48 89 f2 48 c1 e6 03 29 d0 48 8b 54 24 48 48 
+# RSP: 0018:ffffb2f040a43d58 EFLAGS: 00010282 
+# RAX: 0000000000000000 RBX: 0000000000000002 RCX: ffffa2c181792000 
+# RDX: 0000000000000000 RSI: ffffa2c181793ff8 RDI: ffffa2c181790000 
+# RBP: 0000000000000031 R08: 0000000000000000 R09: 00000000000003ff 
+# R10: ffffa2c181790000 R11: 0000000000000000 R12: ffffa2c1814fa810 
+# R13: 0000000000000031 R14: 0000000000000031 R15: 0000000000000000 
+# FS:  0000000000000000(0000) GS:ffffa2c1abc00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 0000000000000018 CR3: 0000000106768000 CR4: 0000000000350ef0 
+# Call Trace: 
+#   
+#  ? __die+0x1e/0x60 
+#  ? page_fault_oops+0x17b/0x4a0 
+#  ? srso_return_thunk+0x5/0x5f 
+#  ? mark_held_locks+0x49/0x80 
+#  ? exc_page_fault+0x6d/0x230 
+#  ? asm_exc_page_fault+0x26/0x30 
+#  ? compose_active_planes+0x344/0x4e0 [vkms] 
+#  ? compose_active_planes+0x32f/0x4e0 [vkms] 
+#  ? srso_return_thunk+0x5/0x5f 
+#  vkms_composer_worker+0x205/0x240 [vkms] 
+#  process_one_work+0x201/0x6c0 
+#  ? lock_is_held_type+0x9e/0x110 
+#  worker_thread+0x17e/0x350 
+#  ? __pfx_worker_thread+0x10/0x10 
+#  kthread+0xce/0x100 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork+0x2f/0x50 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork_asm+0x1a/0x30 
+#   
+# Modules linked in: vkms 
+# CR2: 0000000000000018 
+# ---[ end trace 0000000000000000 ]--- 
+# RIP: 0010:compose_active_planes+0x344/0x4e0 [vkms] 
+# Code: 6a 34 0f 8e 91 fe ff ff 44 89 ea 48 8d 7c 24 48 e8 71 f0 ff ff 4b 8b 04 fc 48 8b 4c 24 50 48 8b 7c 24 40 48 8b 80 48 01 00 00  63 70 18 8b 40 20 48 89 f2 48 c1 e6 03 29 d0 48 8b 54 24 48 48 
+# RSP: 0018:ffffb2f040a43d58 EFLAGS: 00010282 
+# RAX: 0000000000000000 RBX: 0000000000000002 RCX: ffffa2c181792000 
+# RDX: 0000000000000000 RSI: ffffa2c181793ff8 RDI: ffffa2c181790000 
+# RBP: 0000000000000031 R08: 0000000000000000 R09: 00000000000003ff 
+# R10: ffffa2c181790000 R11: 0000000000000000 R12: ffffa2c1814fa810 
+# R13: 0000000000000031 R14: 0000000000000031 R15: 000000000000 
+ 
+kms_cursor_edge_walk@128x128-left-edge 
+# DEBUG - Begin test kms_cursor_edge_walk@128x128-left-edge 
+# Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI 
+# CPU: 0 UID: 0 PID: 27 Comm: kworker/u8:1 Not tainted 6.11.0-rc5-g5d3429a7e9aa #1 
+# Hardware name: ChromiumOS crosvm, BIOS 0 
+# Workqueue: vkms_composer vkms_composer_worker [vkms] 
+# RIP: 0010:compose_active_planes+0x344/0x4e0 [vkms] 
+# Code: 6a 34 0f 8e 91 fe ff ff 44 89 ea 48 8d 7c 24 48 e8 71 f0 ff ff 4b 8b 04 fc 48 8b 4c 24 50 48 8b 7c 24 40 48 8b 80 48 01 00 00  63 70 18 8b 40 20 48 89 f2 48 c1 e6 03 29 d0 48 8b 54 24 48 48 
+# RSP: 0018:ffffa437800ebd58 EFLAGS: 00010282 
+# RAX: 0000000000000000 RBX: 0000000000000002 RCX: ffffa0e841904000 
+# RDX: 00000000000000ff RSI: ffffa0e841905ff8 RDI: ffffa0e841902000 
+# RBP: 0000000000000000 R08: ffffa0e84158a600 R09: 00000000000003ff 
+# R10: 0000000078b2bcd2 R11: 00000000278b2bcd R12: ffffa0e84870fc60 
+# R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 
+# FS:  0000000000000000(0000) GS:ffffa0e86bc00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 0000000000000018 CR3: 0000000101710000 CR4: 0000000000350ef0 
+# Call Trace: 
+#   
+#  ? __die+0x1e/0x60 
+#  ? page_fault_oops+0x17b/0x4a0 
+#  ? exc_page_fault+0x6d/0x230 
+#  ? asm_exc_page_fault+0x26/0x30 
+#  ? compose_active_planes+0x344/0x4e0 [vkms] 
+#  ? compose_active_planes+0x32f/0x4e0 [vkms] 
+#  ? srso_return_thunk+0x5/0x5f 
+#  vkms_composer_worker+0x205/0x240 [vkms] 
+#  process_one_work+0x201/0x6c0 
+#  ? lock_is_held_type+0x9e/0x110 
+#  worker_thread+0x17e/0x310 
+#  ? __pfx_worker_thread+0x10/0x10 
+#  kthread+0xce/0x100 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork+0x2f/0x50 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork_asm+0x1a/0x30 
+#   
+# Modules linked in: vkms 
+# CR2: 0000000000000018 
+# ---[ end trace 0000000000000000 ]--- 
+# RIP: 0010:compose_active_planes+0x344/0x4e0 [vkms] 
+# Code: 6a 34 0f 8e 91 fe ff ff 44 89 ea 48 8d 7c 24 48 e8 71 f0 ff ff 4b 8b 04 fc 48 8b 4c 24 50 48 8b 7c 24 40 48 8b 80 48 01 00 00  63 70 18 8b 40 20 48 89 f2 48 c1 e6 03 29 d0 48 8b 54 24 48 48 
+# RSP: 0018:ffffa437800ebd58 EFLAGS: 00010282 
+# RAX: 0000000000000000 RBX: 0000000000000002 RCX: ffffa0e841904000 
+# RDX: 00000000000000ff RSI: ffffa0e841905ff8 RDI: ffffa0e841902000 
+# RBP: 0000000000000000 R08: ffffa0e84158a600 R09: 00000000000003ff 
+# R10: 0000000078b2bcd2 R11: 00000000278b2bcd R12: ffffa0e84870fc60 
+# R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 
+# FS:  0000000000000000(0000) GS:ffffa0e86bc00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 0000000000000018 CR3: 0000000101710000 CR4: 0000000000350ef0 
+# vkms_vblank_simulate: vblank timer overrun 
+ 
+# DEBUG - Begin test kms_cursor_crc@cursor-rapid-movement-64x64 
+# ------------[ cut here ]------------ 
+# WARNING: CPU: 1 PID: 1250 at drivers/gpu/drm/vkms/vkms_crtc.c:139 vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+# Modules linked in: vkms 
+# CPU: 1 UID: 0 PID: 1250 Comm: kms_cursor_crc Not tainted 6.13.0-rc2-ge95c88d68ac3 #1 
+# Hardware name: ChromiumOS crosvm, BIOS 0 
+# RIP: 0010:vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+# Code: f7 48 89 f3 e8 d0 bf ee ec 48 8b 83 50 01 00 00 a8 01 75 15 48 8b bb a0 01 00 00 e8 59 05 95 ec 48 89 df 5b e9 50 05 95 ec 90  0b 90 eb e5 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 
+# RSP: 0018:ffff9fb640aafb08 EFLAGS: 00010202 
+# RAX: ffff8e7240859e05 RBX: ffff8e7241cd6400 RCX: ffffffffae496b65 
+# RDX: ffffffffad2d1f80 RSI: 0000000000000000 RDI: 0000000000000000 
+# RBP: 0000000000000000 R08: 0000000000000034 R09: 0000000000000002 
+# R10: 0000000047dd15a5 R11: 00000000547dd15a R12: ffff8e72590cc000 
+# R13: 0000000000000000 R14: 00000000ffffffff R15: 0000000000000000 
+# FS:  00007f0942ad56c0(0000) GS:ffff8e726bd00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 00007f0942ad0008 CR3: 0000000118d1e000 CR4: 0000000000350ef0 
+# Call Trace: 
+#   
+#  ? __warn+0x8c/0x190 
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+#  ? report_bug+0x164/0x190 
+#  ? handle_bug+0x54/0x90 
+#  ? exc_invalid_op+0x17/0x70 
+#  ? asm_exc_invalid_op+0x1a/0x20 
+#  ? __pfx_drm_property_free_blob+0x10/0x10 
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+#  ? vkms_atomic_crtc_destroy_state+0x10/0x40 [vkms] 
+#  drm_atomic_state_default_clear+0x137/0x2f0 
+#  __drm_atomic_state_free+0x6c/0xb0 
+#  drm_atomic_helper_update_plane+0x100/0x150 
+#  drm_mode_cursor_universal+0x10e/0x270 
+#  drm_mode_cursor_common+0x115/0x240 
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10 
+#  drm_mode_cursor_ioctl+0x4a/0x70 
+#  drm_ioctl_kernel+0xb0/0x110 
+#  drm_ioctl+0x235/0x4b0 
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10 
+#  __x64_sys_ioctl+0x92/0xc0 
+#  do_syscall_64+0xbb/0x1d0 
+#  entry_SYSCALL_64_after_hwframe+0x77/0x7f 
+# RIP: 0033:0x7f0943a84cdb 
+# Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05  c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00 
+# RSP: 002b:00007fff267d68d0 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 
+# RAX: ffffffffffffffda RBX: 000000000000005a RCX: 00007f0943a84cdb 
+# RDX: 00007fff267d6960 RSI: 00000000c01c64a3 RDI: 0000000000000005 
+# RBP: 00007fff267d6960 R08: 0000000000000007 R09: 00005619a60f3450 
+# R10: fe95a83851609dee R11: 0000000000000246 R12: 00000000c01c64a3 
+# R13: 0000000000000005 R14: 00005619a3cd2c68 R15: 00005619a608c830 
+#   
+# irq event stamp: 57793 
+# hardirqs last  enabled at (57799): [] __up_console_sem+0x4d/0x60 
+# hardirqs last disabled at (57804): [] __up_console_sem+0x32/0x60 
+# softirqs last  enabled at (45586): [] handle_softirqs+0x310/0x3f0 
+# softirqs last disabled at (45569): [] __irq_exit_rcu+0xa1/0xc0 
+# ---[ end trace 0000000000000000 ]--- 
+# Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI 
+# CPU: 0 UID: 0 PID: 119 Comm: kworker/u8:6 Tainted: G        W          6.13.0-rc2-ge95c88d68ac3 #1 
+# Tainted: [W]=WARN 
+# Hardware name: ChromiumOS crosvm, BIOS 0 
+# Workqueue: vkms_composer vkms_composer_worker [vkms] 
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms] 
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00  50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00 
+# RSP: 0018:ffff9fb640efbd20 EFLAGS: 00010202 
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002 
+# RDX: ffff8e7241926000 RSI: ffff8e7241927ffc RDI: 000000000b7fb767 
+# RBP: ffff9fb640efbde0 R08: 0000000000000000 R09: 0000000000000000 
+# R10: ffff8e7241b09a80 R11: 0000000000000000 R12: ffff8e7241cd6200 
+# R13: 0000000000000013 R14: 0000000000000000 R15: ffff8e7241b09a80 
+# FS:  0000000000000000(0000) GS:ffff8e726bc00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 000000000000001c CR3: 0000000118d1e000 CR4: 0000000000350ef0 
+# Call Trace: 
+#   
+#  ? __die+0x1e/0x60 
+#  ? page_fault_oops+0x17b/0x4a0 
+#  ? srso_return_thunk+0x5/0x5f 
+#  ? exc_page_fault+0x6d/0x230 
+#  ? asm_exc_page_fault+0x26/0x30 
+#  ? compose_active_planes+0x1a3/0x760 [vkms] 
+#  vkms_composer_worker+0x205/0x240 [vkms] 
+#  process_one_work+0x201/0x6c0 
+#  ? lock_is_held_type+0x9e/0x110 
+#  worker_thread+0x17e/0x320 
+#  ? __pfx_worker_thread+0x10/0x10 
+#  kthread+0xce/0x100 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork+0x2f/0x50 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork_asm+0x1a/0x30 
+#   
+# Modules linked in: vkms 
+# CR2: 000000000000001c 
+# ---[ end trace 0000000000000000 ]--- 
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms] 
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00  50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00 
+# RSP: 0018:ffff9fb640efbd20 EFLAGS: 00010202 
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002 
+# RDX: ffff8e7241926000 RSI: ffff8e7241927ffc RDI: 000000000b7fb767 
+# RBP: ffff9fb640efbde0 R08: 0000000000000000 R09: 0000000000000000 
+# R10: ffff8e7241b09a80 R11: 0000000000000000 R12: ffff8e7241cd6200 
+# R13: 0000000000000013 R14: 0000000000000000 R15: ffff8e7241b09a80 
+# FS:  0000000000000000(0000) GS:ffff8e726bc00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 000000000000001c CR3: 0000000118d1e000 CR4: 0000000000350ef0 
+ 
+# DEBUG - Begin test kms_cursor_crc@cursor-rapid-movement-128x42 
+# ------------[ cut here ]------------ 
+# WARNING: CPU: 0 PID: 2933 at drivers/gpu/drm/vkms/vkms_crtc.c:139 vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+# Modules linked in: vkms 
+# CPU: 0 UID: 0 PID: 2933 Comm: kms_cursor_crc Not tainted 6.13.0-rc2-g5219242748c8 #1 
+# Hardware name: ChromiumOS crosvm, BIOS 0 
+# RIP: 0010:vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+# Code: f7 48 89 f3 e8 d0 bf 6e d0 48 8b 83 50 01 00 00 a8 01 75 15 48 8b bb a0 01 00 00 e8 59 05 15 d0 48 89 df 5b e9 50 05 15 d0 90  0b 90 eb e5 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 
+# RSP: 0018:ffffa14cc08b3b08 EFLAGS: 00010202 
+# RAX: ffff9b864084b605 RBX: ffff9b8641ba4600 RCX: ffffffff91c96b65 
+# RDX: ffffffff90ad1f80 RSI: 0000000000000000 RDI: 0000000000000000 
+# RBP: 0000000000000000 R08: 0000000000000034 R09: 0000000000000002 
+# R10: 0000000047dd15a5 R11: 00000000547dd15a R12: ffff9b864099c000 
+# R13: 0000000000000000 R14: 00000000ffffffff R15: 0000000000000000 
+# FS:  00007f4f437ab6c0(0000) GS:ffff9b866bc00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 00007f4f44c3cd40 CR3: 0000000108c14000 CR4: 0000000000350ef0 
+# Call Trace: 
+#   
+#  ? __warn+0x8c/0x190 
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+#  ? report_bug+0x164/0x190 
+#  ? handle_bug+0x54/0x90 
+#  ? exc_invalid_op+0x17/0x70 
+#  ? asm_exc_invalid_op+0x1a/0x20 
+#  ? __pfx_drm_property_free_blob+0x10/0x10 
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+#  ? vkms_atomic_crtc_destroy_state+0x10/0x40 [vkms] 
+#  drm_atomic_state_default_clear+0x137/0x2f0 
+#  __drm_atomic_state_free+0x6c/0xb0 
+#  drm_atomic_helper_update_plane+0x100/0x150 
+#  drm_mode_cursor_universal+0x10e/0x270 
+#  drm_mode_cursor_common+0x115/0x240 
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10 
+#  drm_mode_cursor_ioctl+0x4a/0x70 
+#  drm_ioctl_kernel+0xb0/0x110 
+#  drm_ioctl+0x235/0x4b0 
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10 
+#  __x64_sys_ioctl+0x92/0xc0 
+#  do_syscall_64+0xbb/0x1d0 
+#  entry_SYSCALL_64_after_hwframe+0x77/0x7f 
+# RIP: 0033:0x7f4f44960c5b 
+# Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05  c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00 
+# RSP: 002b:00007ffcdfb0b560 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 
+# RAX: ffffffffffffffda RBX: 0000000000000060 RCX: 00007f4f44960c5b 
+# RDX: 00007ffcdfb0b5f0 RSI: 00000000c01c64a3 RDI: 0000000000000005 
+# RBP: 00007ffcdfb0b5f0 R08: 0000000000000007 R09: 000055c3a5801a30 
+# R10: 3107764f00e1f281 R11: 0000000000000246 R12: 00000000c01c64a3 
+# R13: 0000000000000005 R14: 000055c38b7e42c8 R15: 000055c3a579aab0 
+#   
+# irq event stamp: 58747 
+# hardirqs last  enabled at (58753): [] __up_console_sem+0x4d/0x60 
+# hardirqs last disabled at (58758): [] __up_console_sem+0x32/0x60 
+# softirqs last  enabled at (47324): [] handle_softirqs+0x310/0x3f0 
+# softirqs last disabled at (47307): [] __irq_exit_rcu+0xa1/0xc0 
+# ---[ end trace 0000000000000000 ]--- 
+# Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI 
+# CPU: 1 UID: 0 PID: 11 Comm: kworker/u8:0 Tainted: G        W          6.13.0-rc2-g5219242748c8 #1 
+# Tainted: [W]=WARN 
+# Hardware name: ChromiumOS crosvm, BIOS 0 
+# Workqueue: vkms_composer vkms_composer_worker [vkms] 
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms] 
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00  50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00 
+# RSP: 0018:ffffa14cc005fd20 EFLAGS: 00010202 
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002 
+# RDX: ffff9b8669626000 RSI: ffff9b8669627ffc RDI: 00000000348d6c39 
+# RBP: ffffa14cc005fde0 R08: 0000000000000000 R09: 0000000000000000 
+# R10: ffff9b8645650eb0 R11: 0000000000000000 R12: ffff9b8641ba5800 
+# R13: 0000000000000028 R14: 0000000000000000 R15: ffff9b8645650eb0 
+# FS:  0000000000000000(0000) GS:ffff9b866bd00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 000000000000001c CR3: 0000000108c14000 CR4: 0000000000350ef0 
+# Call Trace: 
+#   
+#  ? __die+0x1e/0x60 
+#  ? page_fault_oops+0x17b/0x4a0 
+#  ? __kvmalloc_node_noprof+0x3e/0xc0 
+#  ? exc_page_fault+0x6d/0x230 
+#  ? asm_exc_page_fault+0x26/0x30 
+#  ? compose_active_planes+0x1a3/0x760 [vkms] 
+#  vkms_composer_worker+0x205/0x240 [vkms] 
+#  process_one_work+0x201/0x6c0 
+#  ? lock_is_held_type+0x9e/0x110 
+#  worker_thread+0x17e/0x320 
+#  ? __pfx_worker_thread+0x10/0x10 
+#  kthread+0xce/0x100 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork+0x2f/0x50 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork_asm+0x1a/0x30 
+#   
+# Modules linked in: vkms 
+# CR2: 000000000000001c 
+# ---[ end trace 0000000000000000 ]--- 
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms] 
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00  50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00 
+# RSP: 0018:ffffa14cc005fd20 EFLAGS: 00010202 
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002 
+# RDX: ffff9b8669626000 RSI: ffff9b8669627ffc RDI: 00000000348d6c39 
+# RBP: ffffa14cc005fde0 R08: 0000000000000000 R09: 0000000000000000 
+# R10: ffff9b8645650eb0 R11: 0000000000000000 R12: ffff9b8641ba5800 
+# R13: 0000000000000028 R14: 0000000000000000 R15: ffff9b8645650eb0 
+# FS:  0000000000000000(0000) GS:ffff9b866bd00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 000000000000001c CR3: 0000000108c14000 CR4: 0000000000350ef0 
+ 
+# DEBUG - Begin test kms_cursor_crc@cursor-rapid-movement-32x32 
+# ------------[ cut here ]------------ 
+# WARNING: CPU: 0 PID: 2933 at drivers/gpu/drm/vkms/vkms_crtc.c:139 vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+# Modules linked in: vkms 
+# CPU: 0 UID: 0 PID: 2933 Comm: kms_cursor_crc Not tainted 6.13.0-rc2-g5219242748c8 #1 
+# Hardware name: ChromiumOS crosvm, BIOS 0 
+# RIP: 0010:vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+# Code: f7 48 89 f3 e8 d0 bf 6e d0 48 8b 83 50 01 00 00 a8 01 75 15 48 8b bb a0 01 00 00 e8 59 05 15 d0 48 89 df 5b e9 50 05 15 d0 90  0b 90 eb e5 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 
+# RSP: 0018:ffffa14cc08b3b08 EFLAGS: 00010202 
+# RAX: ffff9b864084b605 RBX: ffff9b8641ba4600 RCX: ffffffff91c96b65 
+# RDX: ffffffff90ad1f80 RSI: 0000000000000000 RDI: 0000000000000000 
+# RBP: 0000000000000000 R08: 0000000000000034 R09: 0000000000000002 
+# R10: 0000000047dd15a5 R11: 00000000547dd15a R12: ffff9b864099c000 
+# R13: 0000000000000000 R14: 00000000ffffffff R15: 0000000000000000 
+# FS:  00007f4f437ab6c0(0000) GS:ffff9b866bc00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 00007f4f44c3cd40 CR3: 0000000108c14000 CR4: 0000000000350ef0 
+# Call Trace: 
+#   
+#  ? __warn+0x8c/0x190 
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+#  ? report_bug+0x164/0x190 
+#  ? handle_bug+0x54/0x90 
+#  ? exc_invalid_op+0x17/0x70 
+#  ? asm_exc_invalid_op+0x1a/0x20 
+#  ? __pfx_drm_property_free_blob+0x10/0x10 
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+#  ? vkms_atomic_crtc_destroy_state+0x10/0x40 [vkms] 
+#  drm_atomic_state_default_clear+0x137/0x2f0 
+#  __drm_atomic_state_free+0x6c/0xb0 
+#  drm_atomic_helper_update_plane+0x100/0x150 
+#  drm_mode_cursor_universal+0x10e/0x270 
+#  drm_mode_cursor_common+0x115/0x240 
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10 
+#  drm_mode_cursor_ioctl+0x4a/0x70 
+#  drm_ioctl_kernel+0xb0/0x110 
+#  drm_ioctl+0x235/0x4b0 
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10 
+#  __x64_sys_ioctl+0x92/0xc0 
+#  do_syscall_64+0xbb/0x1d0 
+#  entry_SYSCALL_64_after_hwframe+0x77/0x7f 
+# RIP: 0033:0x7f4f44960c5b 
+# Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05  c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00 
+# RSP: 002b:00007ffcdfb0b560 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 
+# RAX: ffffffffffffffda RBX: 0000000000000060 RCX: 00007f4f44960c5b 
+# RDX: 00007ffcdfb0b5f0 RSI: 00000000c01c64a3 RDI: 0000000000000005 
+# RBP: 00007ffcdfb0b5f0 R08: 0000000000000007 R09: 000055c3a5801a30 
+# R10: 3107764f00e1f281 R11: 0000000000000246 R12: 00000000c01c64a3 
+# R13: 0000000000000005 R14: 000055c38b7e42c8 R15: 000055c3a579aab0 
+#   
+# irq event stamp: 58747 
+# hardirqs last  enabled at (58753): [] __up_console_sem+0x4d/0x60 
+# hardirqs last disabled at (58758): [] __up_console_sem+0x32/0x60 
+# softirqs last  enabled at (47324): [] handle_softirqs+0x310/0x3f0 
+# softirqs last disabled at (47307): [] __irq_exit_rcu+0xa1/0xc0 
+# ---[ end trace 0000000000000000 ]--- 
+# Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI 
+# CPU: 1 UID: 0 PID: 11 Comm: kworker/u8:0 Tainted: G        W          6.13.0-rc2-g5219242748c8 #1 
+# Tainted: [W]=WARN 
+# Hardware name: ChromiumOS crosvm, BIOS 0 
+# Workqueue: vkms_composer vkms_composer_worker [vkms] 
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms] 
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00  50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00 
+# RSP: 0018:ffffa14cc005fd20 EFLAGS: 00010202 
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002 
+# RDX: ffff9b8669626000 RSI: ffff9b8669627ffc RDI: 00000000348d6c39 
+# RBP: ffffa14cc005fde0 R08: 0000000000000000 R09: 0000000000000000 
+# R10: ffff9b8645650eb0 R11: 0000000000000000 R12: ffff9b8641ba5800 
+# R13: 0000000000000028 R14: 0000000000000000 R15: ffff9b8645650eb0 
+# FS:  0000000000000000(0000) GS:ffff9b866bd00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 000000000000001c CR3: 0000000108c14000 CR4: 0000000000350ef0 
+# Call Trace: 
+#   
+#  ? __die+0x1e/0x60 
+#  ? page_fault_oops+0x17b/0x4a0 
+#  ? __kvmalloc_node_noprof+0x3e/0xc0 
+#  ? exc_page_fault+0x6d/0x230 
+#  ? asm_exc_page_fault+0x26/0x30 
+#  ? compose_active_planes+0x1a3/0x760 [vkms] 
+#  vkms_composer_worker+0x205/0x240 [vkms] 
+#  process_one_work+0x201/0x6c0 
+#  ? lock_is_held_type+0x9e/0x110 
+#  worker_thread+0x17e/0x320 
+#  ? __pfx_worker_thread+0x10/0x10 
+#  kthread+0xce/0x100 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork+0x2f/0x50 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork_asm+0x1a/0x30 
+#   
+# Modules linked in: vkms 
+# CR2: 000000000000001c 
+# ---[ end trace 0000000000000000 ]--- 
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms] 
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00  50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00 
+# RSP: 0018:ffffa14cc005fd20 EFLAGS: 00010202 
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002 
+# RDX: ffff9b8669626000 RSI: ffff9b8669627ffc RDI: 00000000348d6c39 
+# RBP: ffffa14cc005fde0 R08: 0000000000000000 R09: 0000000000000000 
+# R10: ffff9b8645650eb0 R11: 0000000000000000 R12: ffff9b8641ba5800 
+# R13: 0000000000000028 R14: 0000000000000000 R15: ffff9b8645650eb0 
+# FS:  0000000000000000(0000) GS:ffff9b866bd00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 000000000000001c CR3: 0000000108c14000 CR4: 0000000000350ef0 
+ 
+# DEBUG - Begin test kms_cursor_crc@cursor-rapid-movement-32x32 
+# ------------[ cut here ]------------ 
+# WARNING: CPU: 0 PID: 2933 at drivers/gpu/drm/vkms/vkms_crtc.c:139 vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+# Modules linked in: vkms 
+# CPU: 0 UID: 0 PID: 2933 Comm: kms_cursor_crc Not tainted 6.13.0-rc2-g5219242748c8 #1 
+# Hardware name: ChromiumOS crosvm, BIOS 0 
+# RIP: 0010:vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+# Code: f7 48 89 f3 e8 d0 bf 6e d0 48 8b 83 50 01 00 00 a8 01 75 15 48 8b bb a0 01 00 00 e8 59 05 15 d0 48 89 df 5b e9 50 05 15 d0 90  0b 90 eb e5 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 
+# RSP: 0018:ffffa14cc08b3b08 EFLAGS: 00010202 
+# RAX: ffff9b864084b605 RBX: ffff9b8641ba4600 RCX: ffffffff91c96b65 
+# RDX: ffffffff90ad1f80 RSI: 0000000000000000 RDI: 0000000000000000 
+# RBP: 0000000000000000 R08: 0000000000000034 R09: 0000000000000002 
+# R10: 0000000047dd15a5 R11: 00000000547dd15a R12: ffff9b864099c000 
+# R13: 0000000000000000 R14: 00000000ffffffff R15: 0000000000000000 
+# FS:  00007f4f437ab6c0(0000) GS:ffff9b866bc00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 00007f4f44c3cd40 CR3: 0000000108c14000 CR4: 0000000000350ef0 
+# Call Trace: 
+#   
+#  ? __warn+0x8c/0x190 
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+#  ? report_bug+0x164/0x190 
+#  ? handle_bug+0x54/0x90 
+#  ? exc_invalid_op+0x17/0x70 
+#  ? asm_exc_invalid_op+0x1a/0x20 
+#  ? __pfx_drm_property_free_blob+0x10/0x10 
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+#  ? vkms_atomic_crtc_destroy_state+0x10/0x40 [vkms] 
+#  drm_atomic_state_default_clear+0x137/0x2f0 
+#  __drm_atomic_state_free+0x6c/0xb0 
+#  drm_atomic_helper_update_plane+0x100/0x150 
+#  drm_mode_cursor_universal+0x10e/0x270 
+#  drm_mode_cursor_common+0x115/0x240 
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10 
+#  drm_mode_cursor_ioctl+0x4a/0x70 
+#  drm_ioctl_kernel+0xb0/0x110 
+#  drm_ioctl+0x235/0x4b0 
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10 
+#  __x64_sys_ioctl+0x92/0xc0 
+#  do_syscall_64+0xbb/0x1d0 
+#  entry_SYSCALL_64_after_hwframe+0x77/0x7f 
+# RIP: 0033:0x7f4f44960c5b 
+# Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05  c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00 
+# RSP: 002b:00007ffcdfb0b560 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 
+# RAX: ffffffffffffffda RBX: 0000000000000060 RCX: 00007f4f44960c5b 
+# RDX: 00007ffcdfb0b5f0 RSI: 00000000c01c64a3 RDI: 0000000000000005 
+# RBP: 00007ffcdfb0b5f0 R08: 0000000000000007 R09: 000055c3a5801a30 
+# R10: 3107764f00e1f281 R11: 0000000000000246 R12: 00000000c01c64a3 
+# R13: 0000000000000005 R14: 000055c38b7e42c8 R15: 000055c3a579aab0 
+#   
+# irq event stamp: 58747 
+# hardirqs last  enabled at (58753): [] __up_console_sem+0x4d/0x60 
+# hardirqs last disabled at (58758): [] __up_console_sem+0x32/0x60 
+# softirqs last  enabled at (47324): [] handle_softirqs+0x310/0x3f0 
+# softirqs last disabled at (47307): [] __irq_exit_rcu+0xa1/0xc0 
+# ---[ end trace 0000000000000000 ]--- 
+# Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI 
+# CPU: 1 UID: 0 PID: 11 Comm: kworker/u8:0 Tainted: G        W          6.13.0-rc2-g5219242748c8 #1 
+# Tainted: [W]=WARN 
+# Hardware name: ChromiumOS crosvm, BIOS 0 
+# Workqueue: vkms_composer vkms_composer_worker [vkms] 
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms] 
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00  50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00 
+# RSP: 0018:ffffa14cc005fd20 EFLAGS: 00010202 
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002 
+# RDX: ffff9b8669626000 RSI: ffff9b8669627ffc RDI: 00000000348d6c39 
+# RBP: ffffa14cc005fde0 R08: 0000000000000000 R09: 0000000000000000 
+# R10: ffff9b8645650eb0 R11: 0000000000000000 R12: ffff9b8641ba5800 
+# R13: 0000000000000028 R14: 0000000000000000 R15: ffff9b8645650eb0 
+# FS:  0000000000000000(0000) GS:ffff9b866bd00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 000000000000001c CR3: 0000000108c14000 CR4: 0000000000350ef0 
+# Call Trace: 
+#   
+#  ? __die+0x1e/0x60 
+#  ? page_fault_oops+0x17b/0x4a0 
+#  ? __kvmalloc_node_noprof+0x3e/0xc0 
+#  ? exc_page_fault+0x6d/0x230 
+#  ? asm_exc_page_fault+0x26/0x30 
+#  ? compose_active_planes+0x1a3/0x760 [vkms] 
+#  vkms_composer_worker+0x205/0x240 [vkms] 
+#  process_one_work+0x201/0x6c0 
+#  ? lock_is_held_type+0x9e/0x110 
+#  worker_thread+0x17e/0x320 
+#  ? __pfx_worker_thread+0x10/0x10 
+#  kthread+0xce/0x100 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork+0x2f/0x50 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork_asm+0x1a/0x30 
+#   
+# Modules linked in: vkms 
+# CR2: 000000000000001c 
+# ---[ end trace 0000000000000000 ]--- 
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms] 
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00  50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00 
+# RSP: 0018:ffffa14cc005fd20 EFLAGS: 00010202 
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002 
+# RDX: ffff9b8669626000 RSI: ffff9b8669627ffc RDI: 00000000348d6c39 
+# RBP: ffffa14cc005fde0 R08: 0000000000000000 R09: 0000000000000000 
+# R10: ffff9b8645650eb0 R11: 0000000000000000 R12: ffff9b8641ba5800 
+# R13: 0000000000000028 R14: 0000000000000000 R15: ffff9b8645650eb0 
+# FS:  0000000000000000(0000) GS:ffff9b866bd00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 000000000000001c CR3: 0000000108c14000 CR4: 0000000000350ef0 
+ 
+# DEBUG - Begin test kms_cursor_crc@cursor-rapid-movement-128x128 
+# ------------[ cut here ]------------ 
+# WARNING: CPU: 0 PID: 2898 at drivers/gpu/drm/vkms/vkms_crtc.c:139 vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+# Modules linked in: vkms 
+# CPU: 0 UID: 0 PID: 2898 Comm: kms_cursor_crc Not tainted 6.13.0-rc2-g1f006005ebf8 #1 
+# Hardware name: ChromiumOS crosvm, BIOS 0 
+# RIP: 0010:vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+# Code: f7 48 89 f3 e8 d0 bf 6e e1 48 8b 83 50 01 00 00 a8 01 75 15 48 8b bb a0 01 00 00 e8 59 05 15 e1 48 89 df 5b e9 50 05 15 e1 90  0b 90 eb e5 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 
+# RSP: 0018:ffffa35c4082fb08 EFLAGS: 00010202 
+# RAX: ffff8b02c1c0f005 RBX: ffff8b02d4509600 RCX: ffffffffa2c96b65 
+# RDX: ffffffffa1ad1f80 RSI: 0000000000000000 RDI: 0000000000000000 
+# RBP: 0000000000000000 R08: 0000000000000034 R09: 0000000000000002 
+# R10: 0000000030f11ddf R11: 00000000f30f11dd R12: ffff8b02d2528000 
+# R13: 0000000000000000 R14: 00000000ffffffff R15: 0000000000000000 
+# FS:  00007f4b071ab6c0(0000) GS:ffff8b02efc00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 000055f7f8384b48 CR3: 0000000104ef0000 CR4: 0000000000350ef0 
+# Call Trace: 
+#   
+#  ? __warn+0x8c/0x190 
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+#  ? report_bug+0x164/0x190 
+#  ? handle_bug+0x54/0x90 
+#  ? exc_invalid_op+0x17/0x70 
+#  ? asm_exc_invalid_op+0x1a/0x20 
+#  ? __pfx_drm_property_free_blob+0x10/0x10 
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+#  ? vkms_atomic_crtc_destroy_state+0x10/0x40 [vkms] 
+#  drm_atomic_state_default_clear+0x137/0x2f0 
+#  __drm_atomic_state_free+0x6c/0xb0 
+#  drm_atomic_helper_update_plane+0x100/0x150 
+#  drm_mode_cursor_universal+0x10e/0x270 
+#  drm_mode_cursor_common+0x115/0x240 
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10 
+#  drm_mode_cursor_ioctl+0x4a/0x70 
+#  drm_ioctl_kernel+0xb0/0x110 
+#  drm_ioctl+0x235/0x4b0 
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10 
+#  __x64_sys_ioctl+0x92/0xc0 
+#  do_syscall_64+0xbb/0x1d0 
+#  entry_SYSCALL_64_after_hwframe+0x77/0x7f 
+# RIP: 0033:0x7f4b0815ac5b 
+# Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05  c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00 
+# RSP: 002b:00007ffd726f75e0 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 
+# RAX: ffffffffffffffda RBX: 000000000000005d RCX: 00007f4b0815ac5b 
+# RDX: 00007ffd726f7670 RSI: 00000000c01c64a3 RDI: 0000000000000005 
+# RBP: 00007ffd726f7670 R08: 0000000000000007 R09: 000055f7f83e30c0 
+# R10: 2b16893c03bd381a R11: 0000000000000246 R12: 00000000c01c64a3 
+# R13: 0000000000000005 R14: 000055f7dbee72c8 R15: 000055f7f837bab0 
+#   
+# irq event stamp: 58921 
+# hardirqs last  enabled at (58927): [] __up_console_sem+0x4d/0x60 
+# hardirqs last disabled at (58932): [] __up_console_sem+0x32/0x60 
+# softirqs last  enabled at (46140): [] handle_softirqs+0x310/0x3f0 
+# softirqs last disabled at (46135): [] __irq_exit_rcu+0xa1/0xc0 
+# ---[ end trace 0000000000000000 ]--- 
+# Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI 
+# CPU: 1 UID: 0 PID: 1657 Comm: kworker/u8:14 Tainted: G        W          6.13.0-rc2-g1f006005ebf8 #1 
+# Tainted: [W]=WARN 
+# Hardware name: ChromiumOS crosvm, BIOS 0 
+# Workqueue: vkms_composer vkms_composer_worker [vkms] 
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms] 
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00  50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00 
+# RSP: 0018:ffffa35c40c43d20 EFLAGS: 00010202 
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002 
+# RDX: ffff8b02c52c8000 RSI: ffff8b02c52c9ffc RDI: 00000000fa4761c9 
+# RBP: ffffa35c40c43de0 R08: 0000000000000000 R09: 0000000000000000 
+# R10: ffff8b02c1c87840 R11: 0000000000000000 R12: ffff8b02d4508800 
+# R13: 0000000000000021 R14: 0000000000000000 R15: ffff8b02c1c87840 
+# FS:  0000000000000000(0000) GS:ffff8b02efd00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 000000000000001c CR3: 0000000104ef0000 CR4: 0000000000350ef0 
+# Call Trace: 
+#   
+#  ? __die+0x1e/0x60 
+#  ? page_fault_oops+0x17b/0x4a0 
+#  ? srso_return_thunk+0x5/0x5f 
+#  ? exc_page_fault+0x6d/0x230 
+#  ? asm_exc_page_fault+0x26/0x30 
+#  ? compose_active_planes+0x1a3/0x760 [vkms] 
+#  vkms_composer_worker+0x205/0x240 [vkms] 
+#  process_one_work+0x201/0x6c0 
+#  ? lock_is_held_type+0x9e/0x110 
+#  worker_thread+0x17e/0x320 
+#  ? __pfx_worker_thread+0x10/0x10 
+#  kthread+0xce/0x100 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork+0x2f/0x50 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork_asm+0x1a/0x30 
+#   
+# Modules linked in: vkms 
+# CR2: 000000000000001c 
+# ---[ end trace 0000000000000000 ]--- 
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms] 
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00  50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00 
+# RSP: 0018:ffffa35c40c43d20 EFLAGS: 00010202 
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002 
+# RDX: ffff8b02c52c8000 RSI: ffff8b02c52c9ffc RDI: 00000000fa4761c9 
+# RBP: ffffa35c40c43de0 R08: 0000000000000000 R09: 0000000000000000 
+# R10: ffff8b02c1c87840 R11: 0000000000000000 R12: ffff8b02d4508800 
+# R13: 0000000000000021 R14: 0000000000000000 R15: ffff8b02c1c87840 
+# FS:  0000000000000000(0000) GS:ffff8b02efd00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+ 
+# Skip driver specific tests 
+^amdgpu.* 
+^msm.* 
+nouveau_.* 
+^panfrost.* 
+^v3d.* 
+^vc4.* 
+^vmwgfx* 
+ 
+# Skip intel specific tests 
+gem_.* 
+i915_.* 
+xe_.* 
+tools_test.* 
+ 
+# IGT issue. is_joiner_mode() should return false for non-Intel hardware. 
+# https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/issues/162 
+kms_display_modes@extended-mode-basic 
+kms_display_modes@mst-extended-mode-negative 
Signature · 1 line
2.43.0 
Signature · 3 lines
Simona Vetter 
Software Engineer, Intel Corporation 
http://blog.ffwll.ch 
#6 lore raw

Re: [PATCH v2 3/5] kci-gitlab: Add drm scenario

Quoted 21 lines · Helen Mae Koike Fornazier

Hi Simona,

Thank you for your comments,

---- On Thu, 23 Jan 2025 17:06:15 -0300 Simona Vetter wrote ---

Quoted 5 lines · Vignesh Raman
Quoted 4 lines

Add a drm scenario that includes a job to run IGT tests for vkms. It also includes helper scripts to build deqp-runner and IGT, which are based on the mesa-ci project.

Quoted 7 lines
Quoted 3 lines

The xfails are added from drm-ci (drivers/gpu/drm/ci/xfails) Refer to Documentation/gpu/automated_testing.rst for details regarding fails/flakes/skips files.

Why does this need to be duplicated, especially since this is another gitlab-ci support like we have already? I know there's difference between the gitlab on fd.o and others, but this is a bit much.

Quoted 7 lines

We didn't want to duplicate, we were planing to remove it from drm-ci, please see this commit:

    https://gitlab.freedesktop.org/vigneshraman/kernel/-/commit/d5ac1612be0c67ea7b164800ccf124481042f5ce 

But we wanted to make sure the entire approach is correct first, so we dropped that commit for this version.

Ah please include that, and ideally implemented by just moving files around as needed so that it's easier to see what has changed compared to what we have now in drm-ci.

Quoted 8 lines
Quoted 5 lines

What I expected:
- Stuff that's relevant for the subsystem like the xfail list, or the igt version we want to test against or any of these things would stay in the subsystem ci folder, so drivers/gpu/drm/ci here. There should be no need to duplicate anything, definitely not for a virtual driver like vkms.

We can move the ci scenario folder to be inside the subsystem specific folder, I think this is a nice idea, we can do that for v3.

Yeah I'm just thinking about which patches should flow through which trees, and then put the ci parts into the right subfolders. So drm related xfail lists or igt uprev or changes to how the drm build/test targets work should probably flow through drm.git, hence my questions.

Otherwise we could end up with a mess of cross-tree coordination pain.

Quoted 15 lines
Quoted 7 lines

- Stuff that's used by multiple different ci needs to be shared somewhere, maybe in tools/ci/gitlab-ci/ or maybe in the drm/ci directory. Things like the script to build igt or assemble a drm specific container. Ideally we'd also be able to share entire gitlab build targets, at least the pure sw stuff really should work the same everywhere (plus/minus infra differences in how the docker images are stitched together maybe, but that's separate build targets anyway).

Ack

Quoted 4 lines

- Stuff that's needed by the kernel at large (like the rust build script) shouldn't be in a subsystem specific place at all once we get something else than what we have in drm/ci right now.

Quoted 7 lines

Ack

Quoted 2 lines

I'm confused.

I hope my replies above help, and thanks a lot for your feedback. please, keep them coming :)

Yeah this makes much more sense now :-)

Cheers, Sima

Quoted 1,456 lines

Cheers, Helen

Quoted 1,452 lines

Cheers, Sima

Quoted 1,443 lines

---

 MAINTAINERS                                   |   1 + 
 .../scenarios/drm/build-deqp-runner.sh        |  42 + 
 tools/ci/gitlab-ci/scenarios/drm/build-igt.sh |  80 ++ 
 .../ci/gitlab-ci/scenarios/drm/build-rust.sh  |  42 + 
 .../scenarios/drm/create-cross-file.sh        |  65 ++ 
 tools/ci/gitlab-ci/scenarios/drm/drm.yml      |  45 +- 
 .../scenarios/drm/prepare-container.sh        |  18 + 
 tools/ci/gitlab-ci/scenarios/drm/run-igt.sh   |  83 ++ 
 tools/ci/gitlab-ci/scenarios/drm/test.yml     |  32 + 
 .../scenarios/drm/xfails/vkms-none-fails.txt  |  22 + 
 .../scenarios/drm/xfails/vkms-none-flakes.txt |  90 ++ 
 .../scenarios/drm/xfails/vkms-none-skips.txt  | 812 ++++++++++++++++++ 
 12 files changed, 1326 insertions(+), 6 deletions(-) 
 create mode 100755 tools/ci/gitlab-ci/scenarios/drm/build-deqp-runner.sh 
 create mode 100755 tools/ci/gitlab-ci/scenarios/drm/build-igt.sh 
 create mode 100755 tools/ci/gitlab-ci/scenarios/drm/build-rust.sh 
 create mode 100755 tools/ci/gitlab-ci/scenarios/drm/create-cross-file.sh 
 create mode 100755 tools/ci/gitlab-ci/scenarios/drm/prepare-container.sh 
 create mode 100755 tools/ci/gitlab-ci/scenarios/drm/run-igt.sh 
 create mode 100644 tools/ci/gitlab-ci/scenarios/drm/test.yml 
 create mode 100644 tools/ci/gitlab-ci/scenarios/drm/xfails/vkms-none-fails.txt 
 create mode 100644 tools/ci/gitlab-ci/scenarios/drm/xfails/vkms-none-flakes.txt 
 create mode 100644 tools/ci/gitlab-ci/scenarios/drm/xfails/vkms-none-skips.txt 
MAINTAINERS +1 -0
index 874044e570f7..8de12618c3e1 100644 
@@ -7551,6 +7551,7 @@ S:    Maintained 
 T:    git https://gitlab.freedesktop.org/drm/misc/kernel.git 
 F:    Documentation/gpu/vkms.rst 
 F:    drivers/gpu/drm/ci/xfails/vkms* 
+F:    tools/ci/gitlab-ci/scenarios/drm/xfails/vkms* 
 F:    drivers/gpu/drm/vkms/ 
 
 DRM DRIVER FOR VIRTUALBOX VIRTUAL GPU 
tools/ci/gitlab-ci/scenarios/drm/build-deqp-runner.sh new file +42 -0
new file mode 100755 
index 000000000000..9f2574537423 
@@ -0,0 +1,42 @@ 
+#!/usr/bin/env bash 
+# SPDX-License-Identifier: GPL-2.0-or-later 
+# 
+# Copyright (C) 2025 Collabora, Vignesh Raman [email protected]> 
+# 
+# Based on the build-deqp-runner.sh script from the mesa project: 
+# https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/.gitlab-ci/container/build-deqp-runner.sh 
+# 
+# shellcheck disable=SC2086 # we want word splitting 
+ 
+set -uex 
+ 
+DEQP_RUNNER_GIT_URL="${DEQP_RUNNER_GIT_URL:-https://gitlab.freedesktop.org/mesa/deqp-runner.git}" 
+DEQP_RUNNER_GIT_TAG="${DEQP_RUNNER_GIT_TAG:-v0.20.0}" 
+ 
+git clone $DEQP_RUNNER_GIT_URL --single-branch --no-checkout 
+pushd deqp-runner 
+git checkout $DEQP_RUNNER_GIT_TAG 
+ 
+RUST_TARGET="${RUST_TARGET:-}" 
+ 
+# When CC (/usr/lib/ccache/gcc) variable is set, the rust compiler uses 
+# this variable when cross-compiling arm32 and build fails for zsys-sys. 
+# So unset the CC variable when cross-compiling for arm32. 
+SAVEDCC=${CC:-} 
+if [ "$RUST_TARGET" = "armv7-unknown-linux-gnueabihf" ]; then 
+    unset CC 
+fi 
+cargo install --locked  \ 
+    -j ${FDO_CI_CONCURRENT:-4} \ 
+    --root /usr/local \ 
+    ${EXTRA_CARGO_ARGS:-} \ 
+    --path . 
+CC=$SAVEDCC 
+ 
+popd 
+rm -rf deqp-runner 
+ 
+# remove unused test runners 
+if [ -z "${DEQP_RUNNER_GIT_TAG:-}" ]; then 
+    rm -f /usr/local/bin/igt-runner 
+fi 
tools/ci/gitlab-ci/scenarios/drm/build-igt.sh new file +80 -0
new file mode 100755 
index 000000000000..fc82aa6fddec 
@@ -0,0 +1,80 @@ 
+#!/bin/bash 
+# SPDX-License-Identifier: GPL-2.0-or-later 
+# 
+# Copyright (C) 2025 Collabora, Vignesh Raman [email protected]> 
+# 
+# Based on the build-igt.sh script from the drm-ci project: 
+# https://gitlab.freedesktop.org/drm/misc/kernel/-/blob/drm-misc-next/drivers/gpu/drm/ci/build-igt.sh 
+ 
+set -ex 
+ 
+function generate_testlist { 
+    set +x 
+    while read -r line; do 
+        if [ "$line" = "TESTLIST" ] || [ "$line" = "END TESTLIST" ]; then 
+            continue 
+        fi 
+ 
+        tests=$(echo "$line" | tr ' ' '\n') 
+ 
+        for test in $tests; do 
+            output=$(/igt/libexec/igt-gpu-tools/"$test" --list-subtests || true) 
+ 
+            if [ -z "$output" ]; then 
+                echo "$test" 
+            else 
+                echo "$output" | while read -r subtest; do 
+                    echo "$test@$subtest" 
+                done 
+            fi 
+        done 
+    done  /igt/libexec/igt-gpu-tools/ci-testlist.txt 
+    set -x 
+} 
+ 
+git clone https://gitlab.freedesktop.org/drm/igt-gpu-tools.git --single-branch --no-checkout 
+pushd igt-gpu-tools 
+git checkout $IGT_VERSION 
+ 
+if [[ "$KCI_KERNEL_ARCH" = "arm" ]]; then 
+    . ../tools/ci/gitlab-ci/scenarios/drm/create-cross-file.sh armhf 
+    EXTRA_MESON_ARGS="--cross-file /cross_file-armhf.txt" 
+fi 
+ 
+MESON_OPTIONS="-Doverlay=disabled                    \ 
+               -Dchamelium=disabled                  \ 
+               -Dvalgrind=disabled                   \ 
+               -Dman=enabled                         \ 
+               -Dtests=enabled                       \ 
+               -Drunner=enabled                      \ 
+               -Dlibunwind=enabled                   \ 
+               -Dprefix=/igt" 
+ 
+if [[ "$KCI_KERNEL_ARCH" = "arm64" ]] || [[ "$KCI_KERNEL_ARCH" = "arm" ]]; then 
+    MESON_OPTIONS="$MESON_OPTIONS -Dxe_driver=disabled" 
+fi 
+ 
+mkdir -p /igt 
+meson build $MESON_OPTIONS $EXTRA_MESON_ARGS 
+ninja -C build -j${FDO_CI_CONCURRENT:-4} || ninja -C build -j 1 
+ninja -C build install 
+ 
+if [[ "$KCI_KERNEL_ARCH" = "arm64" ]]; then 
+    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/igt/lib/aarch64-linux-gnu 
+elif [[ "$KCI_KERNEL_ARCH" = "arm" ]]; then 
+    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/igt/lib 
+else 
+    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/igt/lib/x86_64-linux-gnu 
+fi 
+ 
+echo "Generating ci-testlist.txt" 
+generate_testlist 
+ 
+export INSTALL_PATH="${CI_PROJECT_DIR}/artifacts/" 
+INSTALL_PATH+="igt-install-${KCI_KERNEL_ARCH}" 
+mkdir -p "$INSTALL_PATH" 
+ 
+tar -cf $INSTALL_PATH/igt.tar /igt 
+ 
+popd 
+rm -rf igt-gpu-tools 
tools/ci/gitlab-ci/scenarios/drm/build-rust.sh new file +42 -0
new file mode 100755 
index 000000000000..48702d5a9648 
@@ -0,0 +1,42 @@ 
+#!/bin/bash 
+# SPDX-License-Identifier: GPL-2.0-or-later 
+# 
+# Copyright (C) 2025 Collabora, Vignesh Raman [email protected]> 
+# 
+# Based on the build-rust.sh script from the mesa project: 
+# https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/.gitlab-ci/container/build-rust.sh 
+ 
+# Note that this script is not actually "building" rust, but build- is the 
+# convention for the shared helpers for putting stuff in our containers. 
+ 
+set -ex 
+ 
+# cargo (and rustup) wants to store stuff in $HOME/.cargo, and binaries in 
+# $HOME/.cargo/bin.  Make bin a link to a public bin directory so the commands 
+# are just available to all build jobs. 
+mkdir -p "$HOME"/.cargo 
+ln -s /usr/local/bin "$HOME"/.cargo/bin 
+ 
+# Pick a specific snapshot from rustup so the compiler doesn't drift on us. 
+RUST_VERSION=1.78.0-2024-05-02 
+ 
+# For rust in Mesa, we use rustup to install.  This lets us pick an arbitrary 
+# version of the compiler, rather than whatever the container's Debian comes 
+# with. 
+curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \ 
+    --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- \ 
+      --default-toolchain $RUST_VERSION \ 
+      --profile minimal \ 
+      -y 
+ 
+rustup component add clippy rustfmt 
+ 
+# Set up a config script for cross compiling -- cargo needs your system cc for 
+# linking in cross builds, but doesn't know what you want to use for system cc. 
+cat > /root/.cargo/config <<EOF 
+[target.armv7-unknown-linux-gnueabihf] 
+linker = "arm-linux-gnueabihf-gcc" 
+ 
+[target.aarch64-unknown-linux-gnu] 
+linker = "aarch64-linux-gnu-gcc" 
+EOF 
tools/ci/gitlab-ci/scenarios/drm/create-cross-file.sh new file +65 -0
new file mode 100755 
index 000000000000..e078346f23b3 
@@ -0,0 +1,65 @@ 
+#!/bin/bash 
+# SPDX-License-Identifier: GPL-2.0-or-later 
+# 
+# Copyright (C) 2025 Collabora, Vignesh Raman [email protected]> 
+# 
+# Based on the create-cross-file.sh script from the mesa project: 
+# https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/.gitlab-ci/container/create-cross-file.sh 
+ 
+arch=$1 
+cross_file="/cross_file-$arch.txt" 
+meson env2mfile --cross --debarch "$arch" -o "$cross_file" 
+ 
+# Explicitly set ccache path for cross compilers 
+sed -i \ 
+    "s|/usr/bin/\([^-]*\)-linux-gnu\([^-]*\)-g|/usr/lib/ccache/\\1-linux-gnu\\2-g|g" \ 
+    "$cross_file" 
+ 
+# Rely on qemu-user being configured in binfmt_misc on the host 
+# shellcheck disable=SC1003 # how this sed doesn't seems to work for me locally 
+sed -i -e '/\[properties\]/a\' -e "needs_exe_wrapper = False" "$cross_file" 
+ 
+# Add a line for rustc, which meson env2mfile is missing. 
+cc=$(sed -n "s|^c\s*=\s*\[?'\(.*\)'\]?|\1|p" < "$cross_file") 
+ 
+if [[ "$arch" = "arm64" ]]; then 
+    rust_target=aarch64-unknown-linux-gnu 
+elif [[ "$arch" = "armhf" ]]; then 
+    rust_target=armv7-unknown-linux-gnueabihf 
+elif [[ "$arch" = "i386" ]]; then 
+    rust_target=i686-unknown-linux-gnu 
+elif [[ "$arch" = "ppc64el" ]]; then 
+    rust_target=powerpc64le-unknown-linux-gnu 
+elif [[ "$arch" = "s390x" ]]; then 
+    rust_target=s390x-unknown-linux-gnu 
+else 
+    echo "Needs rustc target mapping" 
+fi 
+ 
+# shellcheck disable=SC1003 # single-quoted string ends in a backslash 
+sed -i \ 
+    -e '/\[binaries\]/a\' \ 
+    -e "rust = ['rustc', '--target=$rust_target', '-C', 'linker=$cc']" \ 
+    "$cross_file" 
+ 
+# Set up cmake cross compile toolchain file for dEQP builds 
+toolchain_file="/toolchain-$arch.cmake" 
+if [[ "$arch" = "arm64" ]]; then 
+    GCC_ARCH="aarch64-linux-gnu" 
+    DE_CPU="DE_CPU_ARM_64" 
+elif [[ "$arch" = "armhf" ]]; then 
+    GCC_ARCH="arm-linux-gnueabihf" 
+    DE_CPU="DE_CPU_ARM" 
+fi 
+ 
+if [[ -n "$GCC_ARCH" ]]; then 
+    { 
+        echo "set(CMAKE_SYSTEM_NAME Linux)"; 
+        echo "set(CMAKE_SYSTEM_PROCESSOR arm)"; 
+        echo "set(CMAKE_C_COMPILER /usr/lib/ccache/$GCC_ARCH-gcc)"; 
+        echo "set(CMAKE_CXX_COMPILER /usr/lib/ccache/$GCC_ARCH-g++)"; 
+        echo "set(CMAKE_CXX_FLAGS_INIT \"-Wno-psabi\")";  # makes ABI warnings quiet for ARMv7 
+        echo "set(ENV{PKG_CONFIG} \"/usr/bin/$GCC_ARCH-pkgconf\")"; 
+        echo "set(DE_CPU $DE_CPU)"; 
+    } > "$toolchain_file" 
+fi 
tools/ci/gitlab-ci/scenarios/drm/drm.yml +39 -6
index 206e6f0d1a46..220223544673 100644 
@@ -1,11 +1,44 @@ 
 # SPDX-License-Identifier: GPL-2.0-or-later 
 # 
 # Copyright (C) 2024 Collabora, Helen Koike [email protected]> 
+# DRM-specific scenario configurations based on drivers/gpu/drm/ci/build.yml 
 
-# Write here specific configurations and extensions for the given scenario 
+variables: 
+  FDO_DISTRIBUTION_TAG: "2025-01-21-drm" 
+  FDO_DISTRIBUTION_EXEC: ./tools/ci/gitlab-ci/scenarios/drm/prepare-container.sh 
+  IGT_VERSION: a73311079a5d8ac99eb25336a8369a2c3c6b519b 
+  DEQP_RUNNER_GIT_URL: https://gitlab.freedesktop.org/mesa/deqp-runner.git 
+  DEQP_RUNNER_GIT_TAG: v0.20.0 
 
-# Example - overwrite kernel combinations in the pipeline 
-# build:arm64: 
-#   variables: 
-#     KCI_KCONFIGS_ENABLE: "CONFIG1 CONFIG2" 
-#     KCI_DEFCONFIG: "my/custom/config1" 
+build:x86_64: 
+  variables: 
+    KCI_KCONFIGS_ENABLE: "DRM_VKMS DRM_BOCHS" 
+ 
+.igt: 
+  stage: build 
+  script: 
+    - FDO_CI_CONCURRENT=${FDO_CI_CONCURRENT} bash ./tools/ci/gitlab-ci/scenarios/drm/build-igt.sh 
+  artifacts: 
+    when: always 
+    paths: 
+      - artifacts/ 
+ 
+# Build IGT for testing on devices 
+# TODO: Fix cross compilation issue 
+.igt:arm32: 
+  extends: 
+    - .arm32-config 
+    - .use-debian/arm64_build 
+    - .igt 
+ 
+igt:arm64: 
+  extends: 
+    - .arm64-config 
+    - .use-debian/arm64_build 
+    - .igt 
+ 
+igt:x86_64: 
+  extends: 
+    - .x86_64-config 
+    - .use-debian/x86_64_build 
+    - .igt 
tools/ci/gitlab-ci/scenarios/drm/prepare-container.sh new file +18 -0
new file mode 100755 
index 000000000000..43fbfdcd3514 
@@ -0,0 +1,18 @@ 
+#!/bin/bash 
+# SPDX-License-Identifier: GPL-2.0-or-later 
+# 
+# Copyright (C) 2025 Collabora, Vignesh Raman [email protected]> 
+ 
+set -ex 
+ 
+############### Install Smatch 
+ 
+. ./tools/ci/gitlab-ci/ci-scripts/install-smatch.sh 
+ 
+############### Install Rust toolchain 
+ 
+. ./tools/ci/gitlab-ci/scenarios/drm/build-rust.sh 
+ 
+############### Build dEQP runner 
+ 
+. ./tools/ci/gitlab-ci/scenarios/drm/build-deqp-runner.sh 
tools/ci/gitlab-ci/scenarios/drm/run-igt.sh new file +83 -0
new file mode 100755 
index 000000000000..4822fcc2780f 
@@ -0,0 +1,83 @@ 
+#!/bin/sh 
+# SPDX-License-Identifier: GPL-2.0-or-later 
+# 
+# Copyright (C) 2025 Collabora, Vignesh Raman [email protected]> 
+# 
+# Based on the igt_runner.sh script from the drm-ci project: 
+# https://gitlab.freedesktop.org/drm/misc/kernel/-/blob/drm-misc-next/drivers/gpu/drm/ci/igt_runner.sh 
+ 
+set -ex 
+ 
+STATUS_FILE="${1}" 
+ 
+export IGT_FORCE_DRIVER=${DRIVER_NAME} 
+export PATH=$PATH:/igt/bin/ 
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:\ 
+/igt/lib/aarch64-linux-gnu:\ 
+/igt/lib/x86_64-linux-gnu:\ 
+/igt/lib:\ 
+/igt/lib64 
+ 
+# Uncomment the below to debug problems with driver probing 
+: ' 
+ls -l /dev/dri/ 
+cat /sys/kernel/debug/devices_deferred 
+cat /sys/kernel/debug/device_component/* 
+' 
+ 
+# Dump drm state to confirm that kernel was able to find a connected display: 
+set +e 
+cat /sys/kernel/debug/dri/*/state 
+set -e 
+ 
+if [ -e "/install/xfails/$DRIVER_NAME-$GPU_VERSION-skips.txt" ]; then 
+    IGT_SKIPS="--skips /install/xfails/$DRIVER_NAME-$GPU_VERSION-skips.txt" 
+fi 
+ 
+if [ -e "/install/xfails/$DRIVER_NAME-$GPU_VERSION-flakes.txt" ]; then 
+    IGT_FLAKES="--flakes /install/xfails/$DRIVER_NAME-$GPU_VERSION-flakes.txt" 
+fi 
+ 
+if [ -e "/install/xfails/$DRIVER_NAME-$GPU_VERSION-fails.txt" ]; then 
+    IGT_FAILS="--baseline /install/xfails/$DRIVER_NAME-$GPU_VERSION-fails.txt" 
+fi 
+ 
+TESTLIST="/igt/libexec/igt-gpu-tools/ci-testlist.txt" 
+ 
+# If the job is parallel at the gitab job level, take the corresponding fraction 
+# of the caselist. 
+if [ -n "$CI_NODE_INDEX" ]; then 
+    sed -ni $CI_NODE_INDEX~$CI_NODE_TOTAL"p" $TESTLIST 
+fi 
+ 
+# core_getversion checks if the driver is loaded and probed correctly 
+# so run it in all shards 
+if ! grep -q "core_getversion" $TESTLIST; then 
+    # Add the line to the file 
+    echo "core_getversion" >> $TESTLIST 
+fi 
+ 
+set +e 
+igt-runner \ 
+    run \ 
+    --igt-folder /igt/libexec/igt-gpu-tools \ 
+    --caselist $TESTLIST \ 
+    --output /results \ 
+    -vvvv \ 
+    $IGT_SKIPS \ 
+    $IGT_FLAKES \ 
+    $IGT_FAILS \ 
+    --jobs 1 
+ret=$? 
+set -e 
+ 
+deqp-runner junit \ 
+   --testsuite IGT \ 
+   --results /results/failures.csv \ 
+   --output /results/junit.xml \ 
+   --limit 50 \ 
+   --template "See https://$CI_PROJECT_ROOT_NAMESPACE.pages.freedesktop.org/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/results/{{testcase}}.xml" 
+ 
+cd $oldpath 
+echo $ret > ${STATUS_FILE} 
+exit $ret 
tools/ci/gitlab-ci/scenarios/drm/test.yml new file +32 -0
new file mode 100644 
index 000000000000..9fb37beb446d 
@@ -0,0 +1,32 @@ 
+# SPDX-License-Identifier: GPL-2.0-or-later 
+# 
+# Copyright (C) 2025 Collabora, Vignesh Raman [email protected]> 
+ 
+vkms:none: 
+  extends: build:x86_64 
+  stage: test 
+  timeout: "1h30m" 
+  variables: 
+    DRIVER_NAME: vkms 
+    GPU_VERSION: none 
+  tags: 
+    - kvm 
+  script: 
+    - mkdir -p /install/xfails 
+    - cp -rfv tools/ci/gitlab-ci/scenarios/drm/xfails /install/ 
+    - cp $CI_PROJECT_DIR/artifacts/kernel-install-${KCI_KERNEL_ARCH}/bzImage /install 
+    - tar -xv -C / -f $CI_PROJECT_DIR/artifacts/igt-install-${KCI_KERNEL_ARCH}/igt.tar 
+    - mkdir -p $CI_PROJECT_DIR/results 
+    - ln -sf $CI_PROJECT_DIR/results /results 
+    - ./tools/ci/gitlab-ci/ci-scripts/run-virtme.sh /install/bzImage ./tools/ci/gitlab-ci/scenarios/drm/run-igt.sh "DRIVER_NAME=$DRIVER_NAME GPU_VERSION=$GPU_VERSION" 
+  artifacts: 
+    when: always 
+    paths: 
+      - results/ 
+  needs: 
+    - build:x86_64 
+    - igt:x86_64 
+ 
+test-boot: 
+  rules: 
+    - when: never 
tools/ci/gitlab-ci/scenarios/drm/xfails/vkms-none-fails.txt new file +22 -0
new file mode 100644 
index 000000000000..3979c95c07ed 
@@ -0,0 +1,22 @@ 
+kms_cursor_crc@cursor-rapid-movement-256x85,Fail 
+kms_cursor_crc@cursor-rapid-movement-32x10,Fail 
+kms_cursor_crc@cursor-rapid-movement-64x64,Fail 
+kms_cursor_legacy@basic-flip-before-cursor-atomic,Fail 
+kms_cursor_legacy@basic-flip-before-cursor-legacy,Fail 
+kms_cursor_legacy@cursor-vs-flip-atomic,Fail 
+kms_cursor_legacy@cursor-vs-flip-legacy,Fail 
+kms_cursor_legacy@cursor-vs-flip-toggle,Fail 
+kms_cursor_legacy@cursor-vs-flip-varying-size,Fail 
+kms_cursor_legacy@flip-vs-cursor-atomic,Fail 
+kms_cursor_legacy@flip-vs-cursor-crc-atomic,Fail 
+kms_cursor_legacy@flip-vs-cursor-crc-legacy,Fail 
+kms_cursor_legacy@flip-vs-cursor-legacy,Fail 
+kms_flip@flip-vs-modeset-vs-hang,Fail 
+kms_flip@flip-vs-panning-vs-hang,Fail 
+kms_writeback@writeback-check-output,Fail 
+kms_writeback@writeback-check-output-XRGB2101010,Fail 
+kms_writeback@writeback-fb-id,Fail 
+kms_writeback@writeback-fb-id-XRGB2101010,Fail 
+kms_writeback@writeback-invalid-parameters,Fail 
+kms_writeback@writeback-pixel-formats,Fail 
+perf@i915-ref-count,Fail 
tools/ci/gitlab-ci/scenarios/drm/xfails/vkms-none-flakes.txt new file +90 -0
new file mode 100644 
index 000000000000..62428f3c8f31 
@@ -0,0 +1,90 @@ 
+# Board Name: vkms 
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u 
+# Failure Rate: 50 
+# IGT Version: 1.28-g0df7b9b97 
+# Linux Version: 6.9.0-rc7 
+kms_cursor_legacy@long-nonblocking-modeset-vs-cursor-atomic 
+ 
+# Board Name: vkms 
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u 
+# Failure Rate: 50 
+# IGT Version: 1.28-g0df7b9b97 
+# Linux Version: 6.9.0-rc7 
+kms_flip@basic-flip-vs-wf_vblank 
+ 
+# Board Name: vkms 
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u 
+# Failure Rate: 50 
+# IGT Version: 1.28-g0df7b9b97 
+# Linux Version: 6.9.0-rc7 
+kms_flip@flip-vs-expired-vblank-interruptible 
+ 
+# Board Name: vkms 
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u 
+# Failure Rate: 50 
+# IGT Version: 1.28-g0df7b9b97 
+# Linux Version: 6.9.0-rc7 
+kms_flip@flip-vs-wf_vblank-interruptible 
+ 
+# Board Name: vkms 
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u 
+# Failure Rate: 50 
+# IGT Version: 1.28-g0df7b9b97 
+# Linux Version: 6.9.0-rc7 
+kms_flip@plain-flip-fb-recreate-interruptible 
+ 
+# Board Name: vkms 
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u 
+# Failure Rate: 50 
+# IGT Version: 1.28-g0df7b9b97 
+# Linux Version: 6.9.0-rc7 
+kms_flip@plain-flip-ts-check 
+ 
+# Board Name: vkms 
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u 
+# Failure Rate: 50 
+# IGT Version: 1.28-g0df7b9b97 
+# Linux Version: 6.9.0-rc7 
+kms_flip@plain-flip-ts-check-interruptible 
+ 
+# Board Name: vkms 
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u 
+# Failure Rate: 50 
+# IGT Version: 1.28-g0df7b9b97 
+# Linux Version: 6.9.0-rc7 
+kms_flip@flip-vs-absolute-wf_vblank 
+ 
+# Board Name: vkms 
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u 
+# Failure Rate: 50 
+# IGT Version: 1.28-g0df7b9b97 
+# Linux Version: 6.9.0-rc7 
+kms_flip@flip-vs-absolute-wf_vblank-interruptible 
+ 
+# Board Name: vkms 
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u 
+# Failure Rate: 50 
+# IGT Version: 1.28-g0df7b9b97 
+# Linux Version: 6.9.0-rc7 
+kms_flip@flip-vs-blocking-wf-vblank 
+ 
+# Board Name: vkms 
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u 
+# Failure Rate: 50 
+# IGT Version: 1.28-gf13702b8e 
+# Linux Version: 6.10.0-rc5 
+kms_cursor_legacy@flip-vs-cursor-varying-size 
+ 
+# Board Name: vkms 
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u 
+# Failure Rate: 50 
+# IGT Version: 1.28-gf13702b8e 
+# Linux Version: 6.10.0-rc5 
+kms_flip@flip-vs-expired-vblank 
+ 
+# Board Name: vkms 
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u 
+# Failure Rate: 50 
+# IGT Version: 1.28-gf13702b8e 
+# Linux Version: 6.10.0-rc5 
+kms_pipe_crc_basic@nonblocking-crc-frame-sequence 
tools/ci/gitlab-ci/scenarios/drm/xfails/vkms-none-skips.txt new file +812 -0
new file mode 100644 
index 000000000000..24659c18c765 
@@ -0,0 +1,812 @@ 
+# skip suspend tests 
+.*suspend.* 
+ 
+# keeps printing vkms_vblank_simulate: vblank timer overrun and never ends 
+kms_invalid_mode@int-max-clock 
+ 
+# kernel panic seen with kms_cursor_crc tests 
+kms_cursor_crc.* 
+# kms_cursor_crc@cursor-rapid-movement-32x10 
+# Oops: 0000 [#1] PREEMPT SMP NOPTI 
+# CPU: 0 PID: 2635 Comm: kworker/u8:13 Not tainted 6.9.0-rc7-g40935263a1fd #1 
+# Hardware name: ChromiumOS crosvm, BIOS 0 
+# Workqueue: vkms_composer vkms_composer_worker [vkms] 
+# RIP: 0010:compose_active_planes+0x1c7/0x4e0 [vkms] 
+# Code: c9 0f 84 6a 01 00 00 8b 42 30 2b 42 28 41 39 c5 0f 8c 6f 01 00 00 49 83 c7 01 49 39 df 74 3b 4b 8b 34 fc 48 8b 96 48 01 00 00  42 78 89 c1 83 e1 0a a8 20 74 b1 45 89 f5 41 f7 d5 44 03 6a 34 
+# RSP: 0018:ffffbb4700c17d58 EFLAGS: 00010246 
+# RAX: 0000000000000400 RBX: 0000000000000002 RCX: 0000000000000002 
+# RDX: 0000000000000000 RSI: ffffa2ad0788c000 RDI: 00000000fff479a8 
+# RBP: 0000000000000004 R08: 0000000000000000 R09: 0000000000000000 
+# R10: ffffa2ad0bb14000 R11: 0000000000000000 R12: ffffa2ad03e21700 
+# R13: 0000000000000003 R14: 0000000000000004 R15: 0000000000000000 
+# FS:  0000000000000000(0000) GS:ffffa2ad2bc00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 0000000000000078 CR3: 000000010bd30000 CR4: 0000000000350ef0 
+# Call Trace: 
+#   
+#  ? __die+0x1e/0x60 
+#  ? page_fault_oops+0x17b/0x490 
+#  ? exc_page_fault+0x6d/0x230 
+#  ? asm_exc_page_fault+0x26/0x30 
+#  ? compose_active_planes+0x1c7/0x4e0 [vkms] 
+#  ? compose_active_planes+0x2a3/0x4e0 [vkms] 
+#  ? srso_return_thunk+0x5/0x5f 
+#  vkms_composer_worker+0x205/0x240 [vkms] 
+#  process_one_work+0x1f4/0x6b0 
+#  ? lock_is_held_type+0x9e/0x110 
+#  worker_thread+0x17e/0x350 
+#  ? __pfx_worker_thread+0x10/0x10 
+#  kthread+0xce/0x100 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork+0x2f/0x50 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork_asm+0x1a/0x30 
+#   
+# Modules linked in: vkms 
+# CR2: 0000000000000078 
+# ---[ end trace 0000000000000000 ]--- 
+# RIP: 0010:compose_active_planes+0x1c7/0x4e0 [vkms] 
+# Code: c9 0f 84 6a 01 00 00 8b 42 30 2b 42 28 41 39 c5 0f 8c 6f 01 00 00 49 83 c7 01 49 39 df 74 3b 4b 8b 34 fc 48 8b 96 48 01 00 00  42 78 89 c1 83 e1 0a a8 20 74 b1 45 89 f5 41 f7 d5 44 03 6a 34 
+# RSP: 0018:ffffbb4700c17d58 EFLAGS: 00010246 
+# RAX: 0000000000000400 RBX: 0000000000000002 RCX: 0000000000000002 
+# RDX: 0000000000000000 RSI: ffffa2ad0788c000 RDI: 00000000fff479a8 
+# RBP: 0000000000000004 R08: 0000000000000000 R09: 0000000000000000 
+# R10: ffffa2ad0bb14000 R11: 0000000000000000 R12: ffffa2ad03e21700 
+# R13: 0000000000000003 R14: 0000000000000004 R15: 0000000000000000 
+# FS:  0000000000000000(0000) GS:ffffa2ad2bc00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+ 
+#kms_cursor_crc@cursor-rapid-movement-256x85 
+# [drm:drm_crtc_add_crc_entry] *ERROR* Overflow of CRC buffer, userspace reads too slow. 
+# Oops: 0000 [#1] PREEMPT SMP NOPTI 
+# CPU: 1 PID: 10 Comm: kworker/u8:0 Not tainted 6.9.0-rc7-g646381cde463 #1 
+# Hardware name: ChromiumOS crosvm, BIOS 0 
+# Workqueue: vkms_composer vkms_composer_worker [vkms] 
+# RIP: 0010:compose_active_planes+0x1c7/0x4e0 [vkms] 
+# Code: c9 0f 84 6a 01 00 00 8b 42 30 2b 42 28 41 39 c5 0f 8c 6f 01 00 00 49 83 c7 01 49 39 df 74 3b 4b 8b 34 fc 48 8b 96 48 01 00 00  42 78 89 c1 83 e1 0a a8 20 74 b1 45 89 f5 41 f7 d5 44 03 6a 34 
+# RSP: 0018:ffffa7e980057d58 EFLAGS: 00010246 
+# RAX: 0000000000000400 RBX: 0000000000000002 RCX: 0000000000000002 
+# RDX: 0000000000000000 RSI: ffff977987aa5c00 RDI: 000000001b43a85f 
+# RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 
+# R10: ffff977981bf0000 R11: 0000000000000000 R12: ffff977989622590 
+# R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000000 
+# FS:  0000000000000000(0000) GS:ffff9779abd00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 0000000000000078 CR3: 0000000109b38000 CR4: 0000000000350ef0 
+# Call Trace: 
+#   
+#  ? __die+0x1e/0x60 
+#  ? page_fault_oops+0x17b/0x490 
+#  ? exc_page_fault+0x6d/0x230 
+#  ? asm_exc_page_fault+0x26/0x30 
+#  ? compose_active_planes+0x1c7/0x4e0 [vkms] 
+#  ? compose_active_planes+0x2a3/0x4e0 [vkms] 
+#  ? srso_return_thunk+0x5/0x5f 
+#  vkms_composer_worker+0x205/0x240 [vkms] 
+#  process_one_work+0x1f4/0x6b0 
+#  ? lock_is_held_type+0x9e/0x110 
+#  worker_thread+0x17e/0x350 
+#  ? __pfx_worker_thread+0x10/0x10 
+#  kthread+0xce/0x100 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork+0x2f/0x50 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork_asm+0x1a/0x30 
+#   
+# Modules linked in: vkms 
+# CR2: 0000000000000078 
+# ---[ end trace 0000000000000000 ]--- 
+# RIP: 0010:compose_active_planes+0x1c7/0x4e0 [vkms] 
+# Code: c9 0f 84 6a 01 00 00 8b 42 30 2b 42 28 41 39 c5 0f 8c 6f 01 00 00 49 83 c7 01 49 39 df 74 3b 4b 8b 34 fc 48 8b 96 48 01 00 00  42 78 89 c1 83 e1 0a a8 20 74 b1 45 89 f5 41 f7 d5 44 03 6a 34 
+# RSP: 0018:ffffa7e980057d58 EFLAGS: 00010246 
+# RAX: 0000000000000400 RBX: 0000000000000002 RCX: 0000000000000002 
+# RDX: 0000000000000000 RSI: ffff977987aa5c00 RDI: 000000001b43a85f 
+# RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 
+# R10: ffff977981bf0000 R11: 0000000000000000 R12: ffff977989622590 
+# R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000000 
+# FS:  0000000000000000(0000) GS:ffff9779abd00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 0000000000000078 CR3: 0000000109b38000 CR4: 0000000000350ef0 
+ 
+#kms_cursor_crc@cursor-onscreen-256x256 
+# Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI 
+# CPU: 1 PID: 1913 Comm: kworker/u8:6 Not tainted 6.10.0-rc5-g8a28e73ebead #1 
+# Hardware name: ChromiumOS crosvm, BIOS 0 
+# Workqueue: vkms_composer vkms_composer_worker [vkms] 
+# RIP: 0010:compose_active_planes+0x344/0x4e0 [vkms] 
+# Code: 6a 34 0f 8e 91 fe ff ff 44 89 ea 48 8d 7c 24 48 e8 71 f0 ff ff 4b 8b 04 fc 48 8b 4c 24 50 48 8b 7c 24 40 48 8b 80 48 01 00 00  63 70 18 8b 40 20 48 89 f2 48 c1 e6 03 29 d0 48 8b 54 24 48 48 
+# RSP: 0018:ffffb477409fbd58 EFLAGS: 00010282 
+# RAX: 0000000000000000 RBX: 0000000000000002 RCX: ffff8b124a242000 
+# RDX: 00000000000000ff RSI: ffff8b124a243ff8 RDI: ffff8b124a244000 
+# RBP: 0000000000000002 R08: 0000000000000000 R09: 00000000000003ff 
+# R10: ffff8b124a244000 R11: 0000000000000000 R12: ffff8b1249282f30 
+# R13: 0000000000000002 R14: 0000000000000002 R15: 0000000000000000 
+# FS:  0000000000000000(0000) GS:ffff8b126bd00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 0000000000000018 CR3: 0000000107a86000 CR4: 0000000000350ef0 
+# Call Trace: 
+#   
+#  ? __die+0x1e/0x60 
+#  ? page_fault_oops+0x17b/0x4a0 
+#  ? exc_page_fault+0x6d/0x230 
+#  ? asm_exc_page_fault+0x26/0x30 
+#  ? compose_active_planes+0x344/0x4e0 [vkms] 
+#  ? compose_active_planes+0x32f/0x4e0 [vkms] 
+#  ? srso_return_thunk+0x5/0x5f 
+#  vkms_composer_worker+0x205/0x240 [vkms] 
+#  process_one_work+0x201/0x6c0 
+#  ? lock_is_held_type+0x9e/0x110 
+#  worker_thread+0x17e/0x350 
+#  ? __pfx_worker_thread+0x10/0x10 
+#  kthread+0xce/0x100 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork+0x2f/0x50 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork_asm+0x1a/0x30 
+#   
+# Modules linked in: vkms 
+# CR2: 0000000000000018 
+# ---[ end trace 0000000000000000 ]--- 
+# RIP: 0010:compose_active_planes+0x344/0x4e0 [vkms] 
+# Code: 6a 34 0f 8e 91 fe ff ff 44 89 ea 48 8d 7c 24 48 e8 71 f0 ff ff 4b 8b 04 fc 48 8b 4c 24 50 48 8b 7c 24 40 48 8b 80 48 01 00 00  63 70 18 8b 40 20 48 89 f2 48 c1 e6 03 29 d0 48 8b 54 24 48 48 
+# RSP: 0018:ffffb477409fbd58 EFLAGS: 00010282 
+# RAX: 0000000000000000 RBX: 0000000000000002 RCX: ffff8b124a242000 
+# RDX: 00000000000000ff RSI: ffff8b124a243ff8 RDI: ffff8b124a244000 
+# RBP: 0000000000000002 R08: 0000000000000000 R09: 00000000000003ff 
+# R10: ffff8b124a244000 R11: 0000000000000000 R12: ffff8b1249282f30 
+# R13: 0000000000000002 R14: 0000000000000002 R15: 0000000000000000 
+# FS:  0000000000000000(0000) GS:ffff8b126bd00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 0000000000000018 CR3: 0000000107a86000 CR4: 0000000000350ef0 
+ 
+kms_cursor_edge_walk@128x128-right-edge 
+# Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI 
+# CPU: 0 PID: 1911 Comm: kworker/u8:3 Not tainted 6.10.0-rc5-g5e7a002eefe5 #1 
+# Hardware name: ChromiumOS crosvm, BIOS 0 
+# Workqueue: vkms_composer vkms_composer_worker [vkms] 
+# RIP: 0010:compose_active_planes+0x344/0x4e0 [vkms] 
+# Code: 6a 34 0f 8e 91 fe ff ff 44 89 ea 48 8d 7c 24 48 e8 71 f0 ff ff 4b 8b 04 fc 48 8b 4c 24 50 48 8b 7c 24 40 48 8b 80 48 01 00 00  63 70 18 8b 40 20 48 89 f2 48 c1 e6 03 29 d0 48 8b 54 24 48 48 
+# RSP: 0018:ffffb2f040a43d58 EFLAGS: 00010282 
+# RAX: 0000000000000000 RBX: 0000000000000002 RCX: ffffa2c181792000 
+# RDX: 0000000000000000 RSI: ffffa2c181793ff8 RDI: ffffa2c181790000 
+# RBP: 0000000000000031 R08: 0000000000000000 R09: 00000000000003ff 
+# R10: ffffa2c181790000 R11: 0000000000000000 R12: ffffa2c1814fa810 
+# R13: 0000000000000031 R14: 0000000000000031 R15: 0000000000000000 
+# FS:  0000000000000000(0000) GS:ffffa2c1abc00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 0000000000000018 CR3: 0000000106768000 CR4: 0000000000350ef0 
+# Call Trace: 
+#   
+#  ? __die+0x1e/0x60 
+#  ? page_fault_oops+0x17b/0x4a0 
+#  ? srso_return_thunk+0x5/0x5f 
+#  ? mark_held_locks+0x49/0x80 
+#  ? exc_page_fault+0x6d/0x230 
+#  ? asm_exc_page_fault+0x26/0x30 
+#  ? compose_active_planes+0x344/0x4e0 [vkms] 
+#  ? compose_active_planes+0x32f/0x4e0 [vkms] 
+#  ? srso_return_thunk+0x5/0x5f 
+#  vkms_composer_worker+0x205/0x240 [vkms] 
+#  process_one_work+0x201/0x6c0 
+#  ? lock_is_held_type+0x9e/0x110 
+#  worker_thread+0x17e/0x350 
+#  ? __pfx_worker_thread+0x10/0x10 
+#  kthread+0xce/0x100 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork+0x2f/0x50 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork_asm+0x1a/0x30 
+#   
+# Modules linked in: vkms 
+# CR2: 0000000000000018 
+# ---[ end trace 0000000000000000 ]--- 
+# RIP: 0010:compose_active_planes+0x344/0x4e0 [vkms] 
+# Code: 6a 34 0f 8e 91 fe ff ff 44 89 ea 48 8d 7c 24 48 e8 71 f0 ff ff 4b 8b 04 fc 48 8b 4c 24 50 48 8b 7c 24 40 48 8b 80 48 01 00 00  63 70 18 8b 40 20 48 89 f2 48 c1 e6 03 29 d0 48 8b 54 24 48 48 
+# RSP: 0018:ffffb2f040a43d58 EFLAGS: 00010282 
+# RAX: 0000000000000000 RBX: 0000000000000002 RCX: ffffa2c181792000 
+# RDX: 0000000000000000 RSI: ffffa2c181793ff8 RDI: ffffa2c181790000 
+# RBP: 0000000000000031 R08: 0000000000000000 R09: 00000000000003ff 
+# R10: ffffa2c181790000 R11: 0000000000000000 R12: ffffa2c1814fa810 
+# R13: 0000000000000031 R14: 0000000000000031 R15: 000000000000 
+ 
+kms_cursor_edge_walk@128x128-left-edge 
+# DEBUG - Begin test kms_cursor_edge_walk@128x128-left-edge 
+# Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI 
+# CPU: 0 UID: 0 PID: 27 Comm: kworker/u8:1 Not tainted 6.11.0-rc5-g5d3429a7e9aa #1 
+# Hardware name: ChromiumOS crosvm, BIOS 0 
+# Workqueue: vkms_composer vkms_composer_worker [vkms] 
+# RIP: 0010:compose_active_planes+0x344/0x4e0 [vkms] 
+# Code: 6a 34 0f 8e 91 fe ff ff 44 89 ea 48 8d 7c 24 48 e8 71 f0 ff ff 4b 8b 04 fc 48 8b 4c 24 50 48 8b 7c 24 40 48 8b 80 48 01 00 00  63 70 18 8b 40 20 48 89 f2 48 c1 e6 03 29 d0 48 8b 54 24 48 48 
+# RSP: 0018:ffffa437800ebd58 EFLAGS: 00010282 
+# RAX: 0000000000000000 RBX: 0000000000000002 RCX: ffffa0e841904000 
+# RDX: 00000000000000ff RSI: ffffa0e841905ff8 RDI: ffffa0e841902000 
+# RBP: 0000000000000000 R08: ffffa0e84158a600 R09: 00000000000003ff 
+# R10: 0000000078b2bcd2 R11: 00000000278b2bcd R12: ffffa0e84870fc60 
+# R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 
+# FS:  0000000000000000(0000) GS:ffffa0e86bc00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 0000000000000018 CR3: 0000000101710000 CR4: 0000000000350ef0 
+# Call Trace: 
+#   
+#  ? __die+0x1e/0x60 
+#  ? page_fault_oops+0x17b/0x4a0 
+#  ? exc_page_fault+0x6d/0x230 
+#  ? asm_exc_page_fault+0x26/0x30 
+#  ? compose_active_planes+0x344/0x4e0 [vkms] 
+#  ? compose_active_planes+0x32f/0x4e0 [vkms] 
+#  ? srso_return_thunk+0x5/0x5f 
+#  vkms_composer_worker+0x205/0x240 [vkms] 
+#  process_one_work+0x201/0x6c0 
+#  ? lock_is_held_type+0x9e/0x110 
+#  worker_thread+0x17e/0x310 
+#  ? __pfx_worker_thread+0x10/0x10 
+#  kthread+0xce/0x100 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork+0x2f/0x50 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork_asm+0x1a/0x30 
+#   
+# Modules linked in: vkms 
+# CR2: 0000000000000018 
+# ---[ end trace 0000000000000000 ]--- 
+# RIP: 0010:compose_active_planes+0x344/0x4e0 [vkms] 
+# Code: 6a 34 0f 8e 91 fe ff ff 44 89 ea 48 8d 7c 24 48 e8 71 f0 ff ff 4b 8b 04 fc 48 8b 4c 24 50 48 8b 7c 24 40 48 8b 80 48 01 00 00  63 70 18 8b 40 20 48 89 f2 48 c1 e6 03 29 d0 48 8b 54 24 48 48 
+# RSP: 0018:ffffa437800ebd58 EFLAGS: 00010282 
+# RAX: 0000000000000000 RBX: 0000000000000002 RCX: ffffa0e841904000 
+# RDX: 00000000000000ff RSI: ffffa0e841905ff8 RDI: ffffa0e841902000 
+# RBP: 0000000000000000 R08: ffffa0e84158a600 R09: 00000000000003ff 
+# R10: 0000000078b2bcd2 R11: 00000000278b2bcd R12: ffffa0e84870fc60 
+# R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 
+# FS:  0000000000000000(0000) GS:ffffa0e86bc00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 0000000000000018 CR3: 0000000101710000 CR4: 0000000000350ef0 
+# vkms_vblank_simulate: vblank timer overrun 
+ 
+# DEBUG - Begin test kms_cursor_crc@cursor-rapid-movement-64x64 
+# ------------[ cut here ]------------ 
+# WARNING: CPU: 1 PID: 1250 at drivers/gpu/drm/vkms/vkms_crtc.c:139 vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+# Modules linked in: vkms 
+# CPU: 1 UID: 0 PID: 1250 Comm: kms_cursor_crc Not tainted 6.13.0-rc2-ge95c88d68ac3 #1 
+# Hardware name: ChromiumOS crosvm, BIOS 0 
+# RIP: 0010:vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+# Code: f7 48 89 f3 e8 d0 bf ee ec 48 8b 83 50 01 00 00 a8 01 75 15 48 8b bb a0 01 00 00 e8 59 05 95 ec 48 89 df 5b e9 50 05 95 ec 90  0b 90 eb e5 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 
+# RSP: 0018:ffff9fb640aafb08 EFLAGS: 00010202 
+# RAX: ffff8e7240859e05 RBX: ffff8e7241cd6400 RCX: ffffffffae496b65 
+# RDX: ffffffffad2d1f80 RSI: 0000000000000000 RDI: 0000000000000000 
+# RBP: 0000000000000000 R08: 0000000000000034 R09: 0000000000000002 
+# R10: 0000000047dd15a5 R11: 00000000547dd15a R12: ffff8e72590cc000 
+# R13: 0000000000000000 R14: 00000000ffffffff R15: 0000000000000000 
+# FS:  00007f0942ad56c0(0000) GS:ffff8e726bd00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 00007f0942ad0008 CR3: 0000000118d1e000 CR4: 0000000000350ef0 
+# Call Trace: 
+#   
+#  ? __warn+0x8c/0x190 
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+#  ? report_bug+0x164/0x190 
+#  ? handle_bug+0x54/0x90 
+#  ? exc_invalid_op+0x17/0x70 
+#  ? asm_exc_invalid_op+0x1a/0x20 
+#  ? __pfx_drm_property_free_blob+0x10/0x10 
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+#  ? vkms_atomic_crtc_destroy_state+0x10/0x40 [vkms] 
+#  drm_atomic_state_default_clear+0x137/0x2f0 
+#  __drm_atomic_state_free+0x6c/0xb0 
+#  drm_atomic_helper_update_plane+0x100/0x150 
+#  drm_mode_cursor_universal+0x10e/0x270 
+#  drm_mode_cursor_common+0x115/0x240 
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10 
+#  drm_mode_cursor_ioctl+0x4a/0x70 
+#  drm_ioctl_kernel+0xb0/0x110 
+#  drm_ioctl+0x235/0x4b0 
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10 
+#  __x64_sys_ioctl+0x92/0xc0 
+#  do_syscall_64+0xbb/0x1d0 
+#  entry_SYSCALL_64_after_hwframe+0x77/0x7f 
+# RIP: 0033:0x7f0943a84cdb 
+# Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05  c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00 
+# RSP: 002b:00007fff267d68d0 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 
+# RAX: ffffffffffffffda RBX: 000000000000005a RCX: 00007f0943a84cdb 
+# RDX: 00007fff267d6960 RSI: 00000000c01c64a3 RDI: 0000000000000005 
+# RBP: 00007fff267d6960 R08: 0000000000000007 R09: 00005619a60f3450 
+# R10: fe95a83851609dee R11: 0000000000000246 R12: 00000000c01c64a3 
+# R13: 0000000000000005 R14: 00005619a3cd2c68 R15: 00005619a608c830 
+#   
+# irq event stamp: 57793 
+# hardirqs last  enabled at (57799): [] __up_console_sem+0x4d/0x60 
+# hardirqs last disabled at (57804): [] __up_console_sem+0x32/0x60 
+# softirqs last  enabled at (45586): [] handle_softirqs+0x310/0x3f0 
+# softirqs last disabled at (45569): [] __irq_exit_rcu+0xa1/0xc0 
+# ---[ end trace 0000000000000000 ]--- 
+# Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI 
+# CPU: 0 UID: 0 PID: 119 Comm: kworker/u8:6 Tainted: G        W          6.13.0-rc2-ge95c88d68ac3 #1 
+# Tainted: [W]=WARN 
+# Hardware name: ChromiumOS crosvm, BIOS 0 
+# Workqueue: vkms_composer vkms_composer_worker [vkms] 
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms] 
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00  50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00 
+# RSP: 0018:ffff9fb640efbd20 EFLAGS: 00010202 
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002 
+# RDX: ffff8e7241926000 RSI: ffff8e7241927ffc RDI: 000000000b7fb767 
+# RBP: ffff9fb640efbde0 R08: 0000000000000000 R09: 0000000000000000 
+# R10: ffff8e7241b09a80 R11: 0000000000000000 R12: ffff8e7241cd6200 
+# R13: 0000000000000013 R14: 0000000000000000 R15: ffff8e7241b09a80 
+# FS:  0000000000000000(0000) GS:ffff8e726bc00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 000000000000001c CR3: 0000000118d1e000 CR4: 0000000000350ef0 
+# Call Trace: 
+#   
+#  ? __die+0x1e/0x60 
+#  ? page_fault_oops+0x17b/0x4a0 
+#  ? srso_return_thunk+0x5/0x5f 
+#  ? exc_page_fault+0x6d/0x230 
+#  ? asm_exc_page_fault+0x26/0x30 
+#  ? compose_active_planes+0x1a3/0x760 [vkms] 
+#  vkms_composer_worker+0x205/0x240 [vkms] 
+#  process_one_work+0x201/0x6c0 
+#  ? lock_is_held_type+0x9e/0x110 
+#  worker_thread+0x17e/0x320 
+#  ? __pfx_worker_thread+0x10/0x10 
+#  kthread+0xce/0x100 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork+0x2f/0x50 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork_asm+0x1a/0x30 
+#   
+# Modules linked in: vkms 
+# CR2: 000000000000001c 
+# ---[ end trace 0000000000000000 ]--- 
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms] 
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00  50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00 
+# RSP: 0018:ffff9fb640efbd20 EFLAGS: 00010202 
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002 
+# RDX: ffff8e7241926000 RSI: ffff8e7241927ffc RDI: 000000000b7fb767 
+# RBP: ffff9fb640efbde0 R08: 0000000000000000 R09: 0000000000000000 
+# R10: ffff8e7241b09a80 R11: 0000000000000000 R12: ffff8e7241cd6200 
+# R13: 0000000000000013 R14: 0000000000000000 R15: ffff8e7241b09a80 
+# FS:  0000000000000000(0000) GS:ffff8e726bc00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 000000000000001c CR3: 0000000118d1e000 CR4: 0000000000350ef0 
+ 
+# DEBUG - Begin test kms_cursor_crc@cursor-rapid-movement-128x42 
+# ------------[ cut here ]------------ 
+# WARNING: CPU: 0 PID: 2933 at drivers/gpu/drm/vkms/vkms_crtc.c:139 vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+# Modules linked in: vkms 
+# CPU: 0 UID: 0 PID: 2933 Comm: kms_cursor_crc Not tainted 6.13.0-rc2-g5219242748c8 #1 
+# Hardware name: ChromiumOS crosvm, BIOS 0 
+# RIP: 0010:vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+# Code: f7 48 89 f3 e8 d0 bf 6e d0 48 8b 83 50 01 00 00 a8 01 75 15 48 8b bb a0 01 00 00 e8 59 05 15 d0 48 89 df 5b e9 50 05 15 d0 90  0b 90 eb e5 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 
+# RSP: 0018:ffffa14cc08b3b08 EFLAGS: 00010202 
+# RAX: ffff9b864084b605 RBX: ffff9b8641ba4600 RCX: ffffffff91c96b65 
+# RDX: ffffffff90ad1f80 RSI: 0000000000000000 RDI: 0000000000000000 
+# RBP: 0000000000000000 R08: 0000000000000034 R09: 0000000000000002 
+# R10: 0000000047dd15a5 R11: 00000000547dd15a R12: ffff9b864099c000 
+# R13: 0000000000000000 R14: 00000000ffffffff R15: 0000000000000000 
+# FS:  00007f4f437ab6c0(0000) GS:ffff9b866bc00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 00007f4f44c3cd40 CR3: 0000000108c14000 CR4: 0000000000350ef0 
+# Call Trace: 
+#   
+#  ? __warn+0x8c/0x190 
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+#  ? report_bug+0x164/0x190 
+#  ? handle_bug+0x54/0x90 
+#  ? exc_invalid_op+0x17/0x70 
+#  ? asm_exc_invalid_op+0x1a/0x20 
+#  ? __pfx_drm_property_free_blob+0x10/0x10 
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+#  ? vkms_atomic_crtc_destroy_state+0x10/0x40 [vkms] 
+#  drm_atomic_state_default_clear+0x137/0x2f0 
+#  __drm_atomic_state_free+0x6c/0xb0 
+#  drm_atomic_helper_update_plane+0x100/0x150 
+#  drm_mode_cursor_universal+0x10e/0x270 
+#  drm_mode_cursor_common+0x115/0x240 
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10 
+#  drm_mode_cursor_ioctl+0x4a/0x70 
+#  drm_ioctl_kernel+0xb0/0x110 
+#  drm_ioctl+0x235/0x4b0 
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10 
+#  __x64_sys_ioctl+0x92/0xc0 
+#  do_syscall_64+0xbb/0x1d0 
+#  entry_SYSCALL_64_after_hwframe+0x77/0x7f 
+# RIP: 0033:0x7f4f44960c5b 
+# Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05  c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00 
+# RSP: 002b:00007ffcdfb0b560 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 
+# RAX: ffffffffffffffda RBX: 0000000000000060 RCX: 00007f4f44960c5b 
+# RDX: 00007ffcdfb0b5f0 RSI: 00000000c01c64a3 RDI: 0000000000000005 
+# RBP: 00007ffcdfb0b5f0 R08: 0000000000000007 R09: 000055c3a5801a30 
+# R10: 3107764f00e1f281 R11: 0000000000000246 R12: 00000000c01c64a3 
+# R13: 0000000000000005 R14: 000055c38b7e42c8 R15: 000055c3a579aab0 
+#   
+# irq event stamp: 58747 
+# hardirqs last  enabled at (58753): [] __up_console_sem+0x4d/0x60 
+# hardirqs last disabled at (58758): [] __up_console_sem+0x32/0x60 
+# softirqs last  enabled at (47324): [] handle_softirqs+0x310/0x3f0 
+# softirqs last disabled at (47307): [] __irq_exit_rcu+0xa1/0xc0 
+# ---[ end trace 0000000000000000 ]--- 
+# Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI 
+# CPU: 1 UID: 0 PID: 11 Comm: kworker/u8:0 Tainted: G        W          6.13.0-rc2-g5219242748c8 #1 
+# Tainted: [W]=WARN 
+# Hardware name: ChromiumOS crosvm, BIOS 0 
+# Workqueue: vkms_composer vkms_composer_worker [vkms] 
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms] 
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00  50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00 
+# RSP: 0018:ffffa14cc005fd20 EFLAGS: 00010202 
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002 
+# RDX: ffff9b8669626000 RSI: ffff9b8669627ffc RDI: 00000000348d6c39 
+# RBP: ffffa14cc005fde0 R08: 0000000000000000 R09: 0000000000000000 
+# R10: ffff9b8645650eb0 R11: 0000000000000000 R12: ffff9b8641ba5800 
+# R13: 0000000000000028 R14: 0000000000000000 R15: ffff9b8645650eb0 
+# FS:  0000000000000000(0000) GS:ffff9b866bd00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 000000000000001c CR3: 0000000108c14000 CR4: 0000000000350ef0 
+# Call Trace: 
+#   
+#  ? __die+0x1e/0x60 
+#  ? page_fault_oops+0x17b/0x4a0 
+#  ? __kvmalloc_node_noprof+0x3e/0xc0 
+#  ? exc_page_fault+0x6d/0x230 
+#  ? asm_exc_page_fault+0x26/0x30 
+#  ? compose_active_planes+0x1a3/0x760 [vkms] 
+#  vkms_composer_worker+0x205/0x240 [vkms] 
+#  process_one_work+0x201/0x6c0 
+#  ? lock_is_held_type+0x9e/0x110 
+#  worker_thread+0x17e/0x320 
+#  ? __pfx_worker_thread+0x10/0x10 
+#  kthread+0xce/0x100 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork+0x2f/0x50 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork_asm+0x1a/0x30 
+#   
+# Modules linked in: vkms 
+# CR2: 000000000000001c 
+# ---[ end trace 0000000000000000 ]--- 
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms] 
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00  50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00 
+# RSP: 0018:ffffa14cc005fd20 EFLAGS: 00010202 
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002 
+# RDX: ffff9b8669626000 RSI: ffff9b8669627ffc RDI: 00000000348d6c39 
+# RBP: ffffa14cc005fde0 R08: 0000000000000000 R09: 0000000000000000 
+# R10: ffff9b8645650eb0 R11: 0000000000000000 R12: ffff9b8641ba5800 
+# R13: 0000000000000028 R14: 0000000000000000 R15: ffff9b8645650eb0 
+# FS:  0000000000000000(0000) GS:ffff9b866bd00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 000000000000001c CR3: 0000000108c14000 CR4: 0000000000350ef0 
+ 
+# DEBUG - Begin test kms_cursor_crc@cursor-rapid-movement-32x32 
+# ------------[ cut here ]------------ 
+# WARNING: CPU: 0 PID: 2933 at drivers/gpu/drm/vkms/vkms_crtc.c:139 vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+# Modules linked in: vkms 
+# CPU: 0 UID: 0 PID: 2933 Comm: kms_cursor_crc Not tainted 6.13.0-rc2-g5219242748c8 #1 
+# Hardware name: ChromiumOS crosvm, BIOS 0 
+# RIP: 0010:vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+# Code: f7 48 89 f3 e8 d0 bf 6e d0 48 8b 83 50 01 00 00 a8 01 75 15 48 8b bb a0 01 00 00 e8 59 05 15 d0 48 89 df 5b e9 50 05 15 d0 90  0b 90 eb e5 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 
+# RSP: 0018:ffffa14cc08b3b08 EFLAGS: 00010202 
+# RAX: ffff9b864084b605 RBX: ffff9b8641ba4600 RCX: ffffffff91c96b65 
+# RDX: ffffffff90ad1f80 RSI: 0000000000000000 RDI: 0000000000000000 
+# RBP: 0000000000000000 R08: 0000000000000034 R09: 0000000000000002 
+# R10: 0000000047dd15a5 R11: 00000000547dd15a R12: ffff9b864099c000 
+# R13: 0000000000000000 R14: 00000000ffffffff R15: 0000000000000000 
+# FS:  00007f4f437ab6c0(0000) GS:ffff9b866bc00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 00007f4f44c3cd40 CR3: 0000000108c14000 CR4: 0000000000350ef0 
+# Call Trace: 
+#   
+#  ? __warn+0x8c/0x190 
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+#  ? report_bug+0x164/0x190 
+#  ? handle_bug+0x54/0x90 
+#  ? exc_invalid_op+0x17/0x70 
+#  ? asm_exc_invalid_op+0x1a/0x20 
+#  ? __pfx_drm_property_free_blob+0x10/0x10 
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+#  ? vkms_atomic_crtc_destroy_state+0x10/0x40 [vkms] 
+#  drm_atomic_state_default_clear+0x137/0x2f0 
+#  __drm_atomic_state_free+0x6c/0xb0 
+#  drm_atomic_helper_update_plane+0x100/0x150 
+#  drm_mode_cursor_universal+0x10e/0x270 
+#  drm_mode_cursor_common+0x115/0x240 
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10 
+#  drm_mode_cursor_ioctl+0x4a/0x70 
+#  drm_ioctl_kernel+0xb0/0x110 
+#  drm_ioctl+0x235/0x4b0 
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10 
+#  __x64_sys_ioctl+0x92/0xc0 
+#  do_syscall_64+0xbb/0x1d0 
+#  entry_SYSCALL_64_after_hwframe+0x77/0x7f 
+# RIP: 0033:0x7f4f44960c5b 
+# Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05  c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00 
+# RSP: 002b:00007ffcdfb0b560 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 
+# RAX: ffffffffffffffda RBX: 0000000000000060 RCX: 00007f4f44960c5b 
+# RDX: 00007ffcdfb0b5f0 RSI: 00000000c01c64a3 RDI: 0000000000000005 
+# RBP: 00007ffcdfb0b5f0 R08: 0000000000000007 R09: 000055c3a5801a30 
+# R10: 3107764f00e1f281 R11: 0000000000000246 R12: 00000000c01c64a3 
+# R13: 0000000000000005 R14: 000055c38b7e42c8 R15: 000055c3a579aab0 
+#   
+# irq event stamp: 58747 
+# hardirqs last  enabled at (58753): [] __up_console_sem+0x4d/0x60 
+# hardirqs last disabled at (58758): [] __up_console_sem+0x32/0x60 
+# softirqs last  enabled at (47324): [] handle_softirqs+0x310/0x3f0 
+# softirqs last disabled at (47307): [] __irq_exit_rcu+0xa1/0xc0 
+# ---[ end trace 0000000000000000 ]--- 
+# Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI 
+# CPU: 1 UID: 0 PID: 11 Comm: kworker/u8:0 Tainted: G        W          6.13.0-rc2-g5219242748c8 #1 
+# Tainted: [W]=WARN 
+# Hardware name: ChromiumOS crosvm, BIOS 0 
+# Workqueue: vkms_composer vkms_composer_worker [vkms] 
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms] 
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00  50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00 
+# RSP: 0018:ffffa14cc005fd20 EFLAGS: 00010202 
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002 
+# RDX: ffff9b8669626000 RSI: ffff9b8669627ffc RDI: 00000000348d6c39 
+# RBP: ffffa14cc005fde0 R08: 0000000000000000 R09: 0000000000000000 
+# R10: ffff9b8645650eb0 R11: 0000000000000000 R12: ffff9b8641ba5800 
+# R13: 0000000000000028 R14: 0000000000000000 R15: ffff9b8645650eb0 
+# FS:  0000000000000000(0000) GS:ffff9b866bd00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 000000000000001c CR3: 0000000108c14000 CR4: 0000000000350ef0 
+# Call Trace: 
+#   
+#  ? __die+0x1e/0x60 
+#  ? page_fault_oops+0x17b/0x4a0 
+#  ? __kvmalloc_node_noprof+0x3e/0xc0 
+#  ? exc_page_fault+0x6d/0x230 
+#  ? asm_exc_page_fault+0x26/0x30 
+#  ? compose_active_planes+0x1a3/0x760 [vkms] 
+#  vkms_composer_worker+0x205/0x240 [vkms] 
+#  process_one_work+0x201/0x6c0 
+#  ? lock_is_held_type+0x9e/0x110 
+#  worker_thread+0x17e/0x320 
+#  ? __pfx_worker_thread+0x10/0x10 
+#  kthread+0xce/0x100 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork+0x2f/0x50 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork_asm+0x1a/0x30 
+#   
+# Modules linked in: vkms 
+# CR2: 000000000000001c 
+# ---[ end trace 0000000000000000 ]--- 
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms] 
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00  50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00 
+# RSP: 0018:ffffa14cc005fd20 EFLAGS: 00010202 
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002 
+# RDX: ffff9b8669626000 RSI: ffff9b8669627ffc RDI: 00000000348d6c39 
+# RBP: ffffa14cc005fde0 R08: 0000000000000000 R09: 0000000000000000 
+# R10: ffff9b8645650eb0 R11: 0000000000000000 R12: ffff9b8641ba5800 
+# R13: 0000000000000028 R14: 0000000000000000 R15: ffff9b8645650eb0 
+# FS:  0000000000000000(0000) GS:ffff9b866bd00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 000000000000001c CR3: 0000000108c14000 CR4: 0000000000350ef0 
+ 
+# DEBUG - Begin test kms_cursor_crc@cursor-rapid-movement-32x32 
+# ------------[ cut here ]------------ 
+# WARNING: CPU: 0 PID: 2933 at drivers/gpu/drm/vkms/vkms_crtc.c:139 vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+# Modules linked in: vkms 
+# CPU: 0 UID: 0 PID: 2933 Comm: kms_cursor_crc Not tainted 6.13.0-rc2-g5219242748c8 #1 
+# Hardware name: ChromiumOS crosvm, BIOS 0 
+# RIP: 0010:vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+# Code: f7 48 89 f3 e8 d0 bf 6e d0 48 8b 83 50 01 00 00 a8 01 75 15 48 8b bb a0 01 00 00 e8 59 05 15 d0 48 89 df 5b e9 50 05 15 d0 90  0b 90 eb e5 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 
+# RSP: 0018:ffffa14cc08b3b08 EFLAGS: 00010202 
+# RAX: ffff9b864084b605 RBX: ffff9b8641ba4600 RCX: ffffffff91c96b65 
+# RDX: ffffffff90ad1f80 RSI: 0000000000000000 RDI: 0000000000000000 
+# RBP: 0000000000000000 R08: 0000000000000034 R09: 0000000000000002 
+# R10: 0000000047dd15a5 R11: 00000000547dd15a R12: ffff9b864099c000 
+# R13: 0000000000000000 R14: 00000000ffffffff R15: 0000000000000000 
+# FS:  00007f4f437ab6c0(0000) GS:ffff9b866bc00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 00007f4f44c3cd40 CR3: 0000000108c14000 CR4: 0000000000350ef0 
+# Call Trace: 
+#   
+#  ? __warn+0x8c/0x190 
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+#  ? report_bug+0x164/0x190 
+#  ? handle_bug+0x54/0x90 
+#  ? exc_invalid_op+0x17/0x70 
+#  ? asm_exc_invalid_op+0x1a/0x20 
+#  ? __pfx_drm_property_free_blob+0x10/0x10 
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+#  ? vkms_atomic_crtc_destroy_state+0x10/0x40 [vkms] 
+#  drm_atomic_state_default_clear+0x137/0x2f0 
+#  __drm_atomic_state_free+0x6c/0xb0 
+#  drm_atomic_helper_update_plane+0x100/0x150 
+#  drm_mode_cursor_universal+0x10e/0x270 
+#  drm_mode_cursor_common+0x115/0x240 
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10 
+#  drm_mode_cursor_ioctl+0x4a/0x70 
+#  drm_ioctl_kernel+0xb0/0x110 
+#  drm_ioctl+0x235/0x4b0 
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10 
+#  __x64_sys_ioctl+0x92/0xc0 
+#  do_syscall_64+0xbb/0x1d0 
+#  entry_SYSCALL_64_after_hwframe+0x77/0x7f 
+# RIP: 0033:0x7f4f44960c5b 
+# Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05  c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00 
+# RSP: 002b:00007ffcdfb0b560 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 
+# RAX: ffffffffffffffda RBX: 0000000000000060 RCX: 00007f4f44960c5b 
+# RDX: 00007ffcdfb0b5f0 RSI: 00000000c01c64a3 RDI: 0000000000000005 
+# RBP: 00007ffcdfb0b5f0 R08: 0000000000000007 R09: 000055c3a5801a30 
+# R10: 3107764f00e1f281 R11: 0000000000000246 R12: 00000000c01c64a3 
+# R13: 0000000000000005 R14: 000055c38b7e42c8 R15: 000055c3a579aab0 
+#   
+# irq event stamp: 58747 
+# hardirqs last  enabled at (58753): [] __up_console_sem+0x4d/0x60 
+# hardirqs last disabled at (58758): [] __up_console_sem+0x32/0x60 
+# softirqs last  enabled at (47324): [] handle_softirqs+0x310/0x3f0 
+# softirqs last disabled at (47307): [] __irq_exit_rcu+0xa1/0xc0 
+# ---[ end trace 0000000000000000 ]--- 
+# Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI 
+# CPU: 1 UID: 0 PID: 11 Comm: kworker/u8:0 Tainted: G        W          6.13.0-rc2-g5219242748c8 #1 
+# Tainted: [W]=WARN 
+# Hardware name: ChromiumOS crosvm, BIOS 0 
+# Workqueue: vkms_composer vkms_composer_worker [vkms] 
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms] 
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00  50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00 
+# RSP: 0018:ffffa14cc005fd20 EFLAGS: 00010202 
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002 
+# RDX: ffff9b8669626000 RSI: ffff9b8669627ffc RDI: 00000000348d6c39 
+# RBP: ffffa14cc005fde0 R08: 0000000000000000 R09: 0000000000000000 
+# R10: ffff9b8645650eb0 R11: 0000000000000000 R12: ffff9b8641ba5800 
+# R13: 0000000000000028 R14: 0000000000000000 R15: ffff9b8645650eb0 
+# FS:  0000000000000000(0000) GS:ffff9b866bd00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 000000000000001c CR3: 0000000108c14000 CR4: 0000000000350ef0 
+# Call Trace: 
+#   
+#  ? __die+0x1e/0x60 
+#  ? page_fault_oops+0x17b/0x4a0 
+#  ? __kvmalloc_node_noprof+0x3e/0xc0 
+#  ? exc_page_fault+0x6d/0x230 
+#  ? asm_exc_page_fault+0x26/0x30 
+#  ? compose_active_planes+0x1a3/0x760 [vkms] 
+#  vkms_composer_worker+0x205/0x240 [vkms] 
+#  process_one_work+0x201/0x6c0 
+#  ? lock_is_held_type+0x9e/0x110 
+#  worker_thread+0x17e/0x320 
+#  ? __pfx_worker_thread+0x10/0x10 
+#  kthread+0xce/0x100 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork+0x2f/0x50 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork_asm+0x1a/0x30 
+#   
+# Modules linked in: vkms 
+# CR2: 000000000000001c 
+# ---[ end trace 0000000000000000 ]--- 
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms] 
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00  50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00 
+# RSP: 0018:ffffa14cc005fd20 EFLAGS: 00010202 
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002 
+# RDX: ffff9b8669626000 RSI: ffff9b8669627ffc RDI: 00000000348d6c39 
+# RBP: ffffa14cc005fde0 R08: 0000000000000000 R09: 0000000000000000 
+# R10: ffff9b8645650eb0 R11: 0000000000000000 R12: ffff9b8641ba5800 
+# R13: 0000000000000028 R14: 0000000000000000 R15: ffff9b8645650eb0 
+# FS:  0000000000000000(0000) GS:ffff9b866bd00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 000000000000001c CR3: 0000000108c14000 CR4: 0000000000350ef0 
+ 
+# DEBUG - Begin test kms_cursor_crc@cursor-rapid-movement-128x128 
+# ------------[ cut here ]------------ 
+# WARNING: CPU: 0 PID: 2898 at drivers/gpu/drm/vkms/vkms_crtc.c:139 vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+# Modules linked in: vkms 
+# CPU: 0 UID: 0 PID: 2898 Comm: kms_cursor_crc Not tainted 6.13.0-rc2-g1f006005ebf8 #1 
+# Hardware name: ChromiumOS crosvm, BIOS 0 
+# RIP: 0010:vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+# Code: f7 48 89 f3 e8 d0 bf 6e e1 48 8b 83 50 01 00 00 a8 01 75 15 48 8b bb a0 01 00 00 e8 59 05 15 e1 48 89 df 5b e9 50 05 15 e1 90  0b 90 eb e5 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 
+# RSP: 0018:ffffa35c4082fb08 EFLAGS: 00010202 
+# RAX: ffff8b02c1c0f005 RBX: ffff8b02d4509600 RCX: ffffffffa2c96b65 
+# RDX: ffffffffa1ad1f80 RSI: 0000000000000000 RDI: 0000000000000000 
+# RBP: 0000000000000000 R08: 0000000000000034 R09: 0000000000000002 
+# R10: 0000000030f11ddf R11: 00000000f30f11dd R12: ffff8b02d2528000 
+# R13: 0000000000000000 R14: 00000000ffffffff R15: 0000000000000000 
+# FS:  00007f4b071ab6c0(0000) GS:ffff8b02efc00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 000055f7f8384b48 CR3: 0000000104ef0000 CR4: 0000000000350ef0 
+# Call Trace: 
+#   
+#  ? __warn+0x8c/0x190 
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+#  ? report_bug+0x164/0x190 
+#  ? handle_bug+0x54/0x90 
+#  ? exc_invalid_op+0x17/0x70 
+#  ? asm_exc_invalid_op+0x1a/0x20 
+#  ? __pfx_drm_property_free_blob+0x10/0x10 
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms] 
+#  ? vkms_atomic_crtc_destroy_state+0x10/0x40 [vkms] 
+#  drm_atomic_state_default_clear+0x137/0x2f0 
+#  __drm_atomic_state_free+0x6c/0xb0 
+#  drm_atomic_helper_update_plane+0x100/0x150 
+#  drm_mode_cursor_universal+0x10e/0x270 
+#  drm_mode_cursor_common+0x115/0x240 
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10 
+#  drm_mode_cursor_ioctl+0x4a/0x70 
+#  drm_ioctl_kernel+0xb0/0x110 
+#  drm_ioctl+0x235/0x4b0 
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10 
+#  __x64_sys_ioctl+0x92/0xc0 
+#  do_syscall_64+0xbb/0x1d0 
+#  entry_SYSCALL_64_after_hwframe+0x77/0x7f 
+# RIP: 0033:0x7f4b0815ac5b 
+# Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05  c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00 
+# RSP: 002b:00007ffd726f75e0 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 
+# RAX: ffffffffffffffda RBX: 000000000000005d RCX: 00007f4b0815ac5b 
+# RDX: 00007ffd726f7670 RSI: 00000000c01c64a3 RDI: 0000000000000005 
+# RBP: 00007ffd726f7670 R08: 0000000000000007 R09: 000055f7f83e30c0 
+# R10: 2b16893c03bd381a R11: 0000000000000246 R12: 00000000c01c64a3 
+# R13: 0000000000000005 R14: 000055f7dbee72c8 R15: 000055f7f837bab0 
+#   
+# irq event stamp: 58921 
+# hardirqs last  enabled at (58927): [] __up_console_sem+0x4d/0x60 
+# hardirqs last disabled at (58932): [] __up_console_sem+0x32/0x60 
+# softirqs last  enabled at (46140): [] handle_softirqs+0x310/0x3f0 
+# softirqs last disabled at (46135): [] __irq_exit_rcu+0xa1/0xc0 
+# ---[ end trace 0000000000000000 ]--- 
+# Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI 
+# CPU: 1 UID: 0 PID: 1657 Comm: kworker/u8:14 Tainted: G        W          6.13.0-rc2-g1f006005ebf8 #1 
+# Tainted: [W]=WARN 
+# Hardware name: ChromiumOS crosvm, BIOS 0 
+# Workqueue: vkms_composer vkms_composer_worker [vkms] 
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms] 
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00  50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00 
+# RSP: 0018:ffffa35c40c43d20 EFLAGS: 00010202 
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002 
+# RDX: ffff8b02c52c8000 RSI: ffff8b02c52c9ffc RDI: 00000000fa4761c9 
+# RBP: ffffa35c40c43de0 R08: 0000000000000000 R09: 0000000000000000 
+# R10: ffff8b02c1c87840 R11: 0000000000000000 R12: ffff8b02d4508800 
+# R13: 0000000000000021 R14: 0000000000000000 R15: ffff8b02c1c87840 
+# FS:  0000000000000000(0000) GS:ffff8b02efd00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+# CR2: 000000000000001c CR3: 0000000104ef0000 CR4: 0000000000350ef0 
+# Call Trace: 
+#   
+#  ? __die+0x1e/0x60 
+#  ? page_fault_oops+0x17b/0x4a0 
+#  ? srso_return_thunk+0x5/0x5f 
+#  ? exc_page_fault+0x6d/0x230 
+#  ? asm_exc_page_fault+0x26/0x30 
+#  ? compose_active_planes+0x1a3/0x760 [vkms] 
+#  vkms_composer_worker+0x205/0x240 [vkms] 
+#  process_one_work+0x201/0x6c0 
+#  ? lock_is_held_type+0x9e/0x110 
+#  worker_thread+0x17e/0x320 
+#  ? __pfx_worker_thread+0x10/0x10 
+#  kthread+0xce/0x100 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork+0x2f/0x50 
+#  ? __pfx_kthread+0x10/0x10 
+#  ret_from_fork_asm+0x1a/0x30 
+#   
+# Modules linked in: vkms 
+# CR2: 000000000000001c 
+# ---[ end trace 0000000000000000 ]--- 
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms] 
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00  50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00 
+# RSP: 0018:ffffa35c40c43d20 EFLAGS: 00010202 
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002 
+# RDX: ffff8b02c52c8000 RSI: ffff8b02c52c9ffc RDI: 00000000fa4761c9 
+# RBP: ffffa35c40c43de0 R08: 0000000000000000 R09: 0000000000000000 
+# R10: ffff8b02c1c87840 R11: 0000000000000000 R12: ffff8b02d4508800 
+# R13: 0000000000000021 R14: 0000000000000000 R15: ffff8b02c1c87840 
+# FS:  0000000000000000(0000) GS:ffff8b02efd00000(0000) knlGS:0000000000000000 
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
+ 
+# Skip driver specific tests 
+^amdgpu.* 
+^msm.* 
+nouveau_.* 
+^panfrost.* 
+^v3d.* 
+^vc4.* 
+^vmwgfx* 
+ 
+# Skip intel specific tests 
+gem_.* 
+i915_.* 
+xe_.* 
+tools_test.* 
+ 
+# IGT issue. is_joiner_mode() should return false for non-Intel hardware. 
+# https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/issues/162 
+kms_display_modes@extended-mode-basic 
+kms_display_modes@mst-extended-mode-negative 
Signature · 1 line
2.43.0 
Signature · 3 lines
Simona Vetter 
Software Engineer, Intel Corporation 
http://blog.ffwll.ch 
Signature · 3 lines
Simona Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
#7 lore raw

Re: [PATCH v2 3/5] kci-gitlab: Add drm scenario

Hi Sima,

Quoted 25 lines · Simona Vetter
Quoted 24 lines · Helen Mae Koike Fornazier

Hi Simona,

Thank you for your comments,

---- On Thu, 23 Jan 2025 17:06:15 -0300 Simona Vetter wrote ---

Quoted 5 lines · Vignesh Raman
Quoted 4 lines

Add a drm scenario that includes a job to run IGT tests for vkms. It also includes helper scripts to build deqp-runner and IGT, which are based on the mesa-ci project.

Quoted 7 lines
Quoted 3 lines

The xfails are added from drm-ci (drivers/gpu/drm/ci/xfails) Refer to Documentation/gpu/automated_testing.rst for details regarding fails/flakes/skips files.

Why does this need to be duplicated, especially since this is another gitlab-ci support like we have already? I know there's difference between the gitlab on fd.o and others, but this is a bit much.

We didn't want to duplicate, we were planing to remove it from drm-ci, please see this commit:

Quoted 8 lines
Quoted 4 lines
     https://gitlab.freedesktop.org/vigneshraman/kernel/-/commit/d5ac1612be0c67ea7b164800ccf124481042f5ce

But we wanted to make sure the entire approach is correct first, so we dropped that commit for this version.

Ah please include that, and ideally implemented by just moving files around as needed so that it's easier to see what has changed compared to what we have now in drm-ci.

We will include this commit.

Quoted 10 lines
Quoted 9 lines
Quoted 6 lines

What I expected:
- Stuff that's relevant for the subsystem like the xfail list, or the igt version we want to test against or any of these things would stay in the subsystem ci folder, so drivers/gpu/drm/ci here. There should be no need to duplicate anything, definitely not for a virtual driver like vkms.

We can move the ci scenario folder to be inside the subsystem specific folder, I think this is a nice idea, we can do that for v3.

Quoted 6 lines

Yeah I'm just thinking about which patches should flow through which trees, and then put the ci parts into the right subfolders. So drm related xfail lists or igt uprev or changes to how the drm build/test targets work should probably flow through drm.git, hence my questions.

Otherwise we could end up with a mess of cross-tree coordination pain.

Agree. We can keep the xfails, igt build scripts in drm/ci directory.

Thanks.

Regards,
Vignesh

Quoted 1,485 lines
Quoted 16 lines
Quoted 8 lines

- Stuff that's used by multiple different ci needs to be shared somewhere, maybe in tools/ci/gitlab-ci/ or maybe in the drm/ci directory. Things like the script to build igt or assemble a drm specific container. Ideally we'd also be able to share entire gitlab build targets, at least the pure sw stuff really should work the same everywhere (plus/minus infra differences in how the docker images are stitched together maybe, but that's separate build targets anyway).

Ack

Quoted 4 lines

- Stuff that's needed by the kernel at large (like the rust build script) shouldn't be in a subsystem specific place at all once we get something else than what we have in drm/ci right now.

Quoted 7 lines

Ack

Quoted 2 lines

I'm confused.

I hope my replies above help, and thanks a lot for your feedback. please, keep them coming :)

Yeah this makes much more sense now :-)

Cheers, Sima

Quoted 1,456 lines

Cheers, Helen

Quoted 1,452 lines

Cheers, Sima

Quoted 1,441 lines
---
 MAINTAINERS                                   |   1 +
 .../scenarios/drm/build-deqp-runner.sh        |  42 +
 tools/ci/gitlab-ci/scenarios/drm/build-igt.sh |  80 ++
 .../ci/gitlab-ci/scenarios/drm/build-rust.sh  |  42 +
 .../scenarios/drm/create-cross-file.sh        |  65 ++
 tools/ci/gitlab-ci/scenarios/drm/drm.yml      |  45 +-
 .../scenarios/drm/prepare-container.sh        |  18 +
 tools/ci/gitlab-ci/scenarios/drm/run-igt.sh   |  83 ++
 tools/ci/gitlab-ci/scenarios/drm/test.yml     |  32 +
 .../scenarios/drm/xfails/vkms-none-fails.txt  |  22 +
 .../scenarios/drm/xfails/vkms-none-flakes.txt |  90 ++
 .../scenarios/drm/xfails/vkms-none-skips.txt  | 812 ++++++++++++++++++
 12 files changed, 1326 insertions(+), 6 deletions(-)
 create mode 100755 tools/ci/gitlab-ci/scenarios/drm/build-deqp-runner.sh
 create mode 100755 tools/ci/gitlab-ci/scenarios/drm/build-igt.sh
 create mode 100755 tools/ci/gitlab-ci/scenarios/drm/build-rust.sh
 create mode 100755 tools/ci/gitlab-ci/scenarios/drm/create-cross-file.sh
 create mode 100755 tools/ci/gitlab-ci/scenarios/drm/prepare-container.sh
 create mode 100755 tools/ci/gitlab-ci/scenarios/drm/run-igt.sh
 create mode 100644 tools/ci/gitlab-ci/scenarios/drm/test.yml
 create mode 100644 tools/ci/gitlab-ci/scenarios/drm/xfails/vkms-none-fails.txt
 create mode 100644 tools/ci/gitlab-ci/scenarios/drm/xfails/vkms-none-flakes.txt
 create mode 100644 tools/ci/gitlab-ci/scenarios/drm/xfails/vkms-none-skips.txt
MAINTAINERS +1 -0
index 874044e570f7..8de12618c3e1 100644
@@ -7551,6 +7551,7 @@ S:    Maintained
 T:    git https://gitlab.freedesktop.org/drm/misc/kernel.git
 F:    Documentation/gpu/vkms.rst
 F:    drivers/gpu/drm/ci/xfails/vkms*
+F:    tools/ci/gitlab-ci/scenarios/drm/xfails/vkms*
 F:    drivers/gpu/drm/vkms/
 
 DRM DRIVER FOR VIRTUALBOX VIRTUAL GPU
tools/ci/gitlab-ci/scenarios/drm/build-deqp-runner.sh new file +42 -0
new file mode 100755
index 000000000000..9f2574537423
@@ -0,0 +1,42 @@
+#!/usr/bin/env bash
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2025 Collabora, Vignesh Raman [email protected]>
+#
+# Based on the build-deqp-runner.sh script from the mesa project:
+# https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/.gitlab-ci/container/build-deqp-runner.sh
+#
+# shellcheck disable=SC2086 # we want word splitting
+
+set -uex
+
+DEQP_RUNNER_GIT_URL="${DEQP_RUNNER_GIT_URL:-https://gitlab.freedesktop.org/mesa/deqp-runner.git}"
+DEQP_RUNNER_GIT_TAG="${DEQP_RUNNER_GIT_TAG:-v0.20.0}"
+
+git clone $DEQP_RUNNER_GIT_URL --single-branch --no-checkout
+pushd deqp-runner
+git checkout $DEQP_RUNNER_GIT_TAG
+
+RUST_TARGET="${RUST_TARGET:-}"
+
+# When CC (/usr/lib/ccache/gcc) variable is set, the rust compiler uses
+# this variable when cross-compiling arm32 and build fails for zsys-sys.
+# So unset the CC variable when cross-compiling for arm32.
+SAVEDCC=${CC:-}
+if [ "$RUST_TARGET" = "armv7-unknown-linux-gnueabihf" ]; then
+    unset CC
+fi
+cargo install --locked  \
+    -j ${FDO_CI_CONCURRENT:-4} \
+    --root /usr/local \
+    ${EXTRA_CARGO_ARGS:-} \
+    --path .
+CC=$SAVEDCC
+
+popd
+rm -rf deqp-runner
+
+# remove unused test runners
+if [ -z "${DEQP_RUNNER_GIT_TAG:-}" ]; then
+    rm -f /usr/local/bin/igt-runner
+fi
tools/ci/gitlab-ci/scenarios/drm/build-igt.sh new file +80 -0
new file mode 100755
index 000000000000..fc82aa6fddec
@@ -0,0 +1,80 @@
+#!/bin/bash
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2025 Collabora, Vignesh Raman [email protected]>
+#
+# Based on the build-igt.sh script from the drm-ci project:
+# https://gitlab.freedesktop.org/drm/misc/kernel/-/blob/drm-misc-next/drivers/gpu/drm/ci/build-igt.sh
+
+set -ex
+
+function generate_testlist {
+    set +x
+    while read -r line; do
+        if [ "$line" = "TESTLIST" ] || [ "$line" = "END TESTLIST" ]; then
+            continue
+        fi
+
+        tests=$(echo "$line" | tr ' ' '\n')
+
+        for test in $tests; do
+            output=$(/igt/libexec/igt-gpu-tools/"$test" --list-subtests || true)
+
+            if [ -z "$output" ]; then
+                echo "$test"
+            else
+                echo "$output" | while read -r subtest; do
+                    echo "$test@$subtest"
+                done
+            fi
+        done
+    done  /igt/libexec/igt-gpu-tools/ci-testlist.txt
+    set -x
+}
+
+git clone https://gitlab.freedesktop.org/drm/igt-gpu-tools.git --single-branch --no-checkout
+pushd igt-gpu-tools
+git checkout $IGT_VERSION
+
+if [[ "$KCI_KERNEL_ARCH" = "arm" ]]; then
+    . ../tools/ci/gitlab-ci/scenarios/drm/create-cross-file.sh armhf
+    EXTRA_MESON_ARGS="--cross-file /cross_file-armhf.txt"
+fi
+
+MESON_OPTIONS="-Doverlay=disabled                    \
+               -Dchamelium=disabled                  \
+               -Dvalgrind=disabled                   \
+               -Dman=enabled                         \
+               -Dtests=enabled                       \
+               -Drunner=enabled                      \
+               -Dlibunwind=enabled                   \
+               -Dprefix=/igt"
+
+if [[ "$KCI_KERNEL_ARCH" = "arm64" ]] || [[ "$KCI_KERNEL_ARCH" = "arm" ]]; then
+    MESON_OPTIONS="$MESON_OPTIONS -Dxe_driver=disabled"
+fi
+
+mkdir -p /igt
+meson build $MESON_OPTIONS $EXTRA_MESON_ARGS
+ninja -C build -j${FDO_CI_CONCURRENT:-4} || ninja -C build -j 1
+ninja -C build install
+
+if [[ "$KCI_KERNEL_ARCH" = "arm64" ]]; then
+    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/igt/lib/aarch64-linux-gnu
+elif [[ "$KCI_KERNEL_ARCH" = "arm" ]]; then
+    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/igt/lib
+else
+    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/igt/lib/x86_64-linux-gnu
+fi
+
+echo "Generating ci-testlist.txt"
+generate_testlist
+
+export INSTALL_PATH="${CI_PROJECT_DIR}/artifacts/"
+INSTALL_PATH+="igt-install-${KCI_KERNEL_ARCH}"
+mkdir -p "$INSTALL_PATH"
+
+tar -cf $INSTALL_PATH/igt.tar /igt
+
+popd
+rm -rf igt-gpu-tools
tools/ci/gitlab-ci/scenarios/drm/build-rust.sh new file +42 -0
new file mode 100755
index 000000000000..48702d5a9648
@@ -0,0 +1,42 @@
+#!/bin/bash
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2025 Collabora, Vignesh Raman [email protected]>
+#
+# Based on the build-rust.sh script from the mesa project:
+# https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/.gitlab-ci/container/build-rust.sh
+
+# Note that this script is not actually "building" rust, but build- is the
+# convention for the shared helpers for putting stuff in our containers.
+
+set -ex
+
+# cargo (and rustup) wants to store stuff in $HOME/.cargo, and binaries in
+# $HOME/.cargo/bin.  Make bin a link to a public bin directory so the commands
+# are just available to all build jobs.
+mkdir -p "$HOME"/.cargo
+ln -s /usr/local/bin "$HOME"/.cargo/bin
+
+# Pick a specific snapshot from rustup so the compiler doesn't drift on us.
+RUST_VERSION=1.78.0-2024-05-02
+
+# For rust in Mesa, we use rustup to install.  This lets us pick an arbitrary
+# version of the compiler, rather than whatever the container's Debian comes
+# with.
+curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
+    --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- \
+      --default-toolchain $RUST_VERSION \
+      --profile minimal \
+      -y
+
+rustup component add clippy rustfmt
+
+# Set up a config script for cross compiling -- cargo needs your system cc for
+# linking in cross builds, but doesn't know what you want to use for system cc.
+cat > /root/.cargo/config <<EOF
+[target.armv7-unknown-linux-gnueabihf]
+linker = "arm-linux-gnueabihf-gcc"
+
+[target.aarch64-unknown-linux-gnu]
+linker = "aarch64-linux-gnu-gcc"
+EOF
tools/ci/gitlab-ci/scenarios/drm/create-cross-file.sh new file +65 -0
new file mode 100755
index 000000000000..e078346f23b3
@@ -0,0 +1,65 @@
+#!/bin/bash
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2025 Collabora, Vignesh Raman [email protected]>
+#
+# Based on the create-cross-file.sh script from the mesa project:
+# https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/.gitlab-ci/container/create-cross-file.sh
+
+arch=$1
+cross_file="/cross_file-$arch.txt"
+meson env2mfile --cross --debarch "$arch" -o "$cross_file"
+
+# Explicitly set ccache path for cross compilers
+sed -i \
+    "s|/usr/bin/\([^-]*\)-linux-gnu\([^-]*\)-g|/usr/lib/ccache/\\1-linux-gnu\\2-g|g" \
+    "$cross_file"
+
+# Rely on qemu-user being configured in binfmt_misc on the host
+# shellcheck disable=SC1003 # how this sed doesn't seems to work for me locally
+sed -i -e '/\[properties\]/a\' -e "needs_exe_wrapper = False" "$cross_file"
+
+# Add a line for rustc, which meson env2mfile is missing.
+cc=$(sed -n "s|^c\s*=\s*\[?'\(.*\)'\]?|\1|p" < "$cross_file")
+
+if [[ "$arch" = "arm64" ]]; then
+    rust_target=aarch64-unknown-linux-gnu
+elif [[ "$arch" = "armhf" ]]; then
+    rust_target=armv7-unknown-linux-gnueabihf
+elif [[ "$arch" = "i386" ]]; then
+    rust_target=i686-unknown-linux-gnu
+elif [[ "$arch" = "ppc64el" ]]; then
+    rust_target=powerpc64le-unknown-linux-gnu
+elif [[ "$arch" = "s390x" ]]; then
+    rust_target=s390x-unknown-linux-gnu
+else
+    echo "Needs rustc target mapping"
+fi
+
+# shellcheck disable=SC1003 # single-quoted string ends in a backslash
+sed -i \
+    -e '/\[binaries\]/a\' \
+    -e "rust = ['rustc', '--target=$rust_target', '-C', 'linker=$cc']" \
+    "$cross_file"
+
+# Set up cmake cross compile toolchain file for dEQP builds
+toolchain_file="/toolchain-$arch.cmake"
+if [[ "$arch" = "arm64" ]]; then
+    GCC_ARCH="aarch64-linux-gnu"
+    DE_CPU="DE_CPU_ARM_64"
+elif [[ "$arch" = "armhf" ]]; then
+    GCC_ARCH="arm-linux-gnueabihf"
+    DE_CPU="DE_CPU_ARM"
+fi
+
+if [[ -n "$GCC_ARCH" ]]; then
+    {
+        echo "set(CMAKE_SYSTEM_NAME Linux)";
+        echo "set(CMAKE_SYSTEM_PROCESSOR arm)";
+        echo "set(CMAKE_C_COMPILER /usr/lib/ccache/$GCC_ARCH-gcc)";
+        echo "set(CMAKE_CXX_COMPILER /usr/lib/ccache/$GCC_ARCH-g++)";
+        echo "set(CMAKE_CXX_FLAGS_INIT \"-Wno-psabi\")";  # makes ABI warnings quiet for ARMv7
+        echo "set(ENV{PKG_CONFIG} \"/usr/bin/$GCC_ARCH-pkgconf\")";
+        echo "set(DE_CPU $DE_CPU)";
+    } > "$toolchain_file"
+fi
tools/ci/gitlab-ci/scenarios/drm/drm.yml +39 -6
index 206e6f0d1a46..220223544673 100644
@@ -1,11 +1,44 @@
 # SPDX-License-Identifier: GPL-2.0-or-later
 #
 # Copyright (C) 2024 Collabora, Helen Koike [email protected]>
+# DRM-specific scenario configurations based on drivers/gpu/drm/ci/build.yml
 
-# Write here specific configurations and extensions for the given scenario
+variables:
+  FDO_DISTRIBUTION_TAG: "2025-01-21-drm"
+  FDO_DISTRIBUTION_EXEC: ./tools/ci/gitlab-ci/scenarios/drm/prepare-container.sh
+  IGT_VERSION: a73311079a5d8ac99eb25336a8369a2c3c6b519b
+  DEQP_RUNNER_GIT_URL: https://gitlab.freedesktop.org/mesa/deqp-runner.git
+  DEQP_RUNNER_GIT_TAG: v0.20.0
 
-# Example - overwrite kernel combinations in the pipeline
-# build:arm64:
-#   variables:
-#     KCI_KCONFIGS_ENABLE: "CONFIG1 CONFIG2"
-#     KCI_DEFCONFIG: "my/custom/config1"
+build:x86_64:
+  variables:
+    KCI_KCONFIGS_ENABLE: "DRM_VKMS DRM_BOCHS"
+
+.igt:
+  stage: build
+  script:
+    - FDO_CI_CONCURRENT=${FDO_CI_CONCURRENT} bash ./tools/ci/gitlab-ci/scenarios/drm/build-igt.sh
+  artifacts:
+    when: always
+    paths:
+      - artifacts/
+
+# Build IGT for testing on devices
+# TODO: Fix cross compilation issue
+.igt:arm32:
+  extends:
+    - .arm32-config
+    - .use-debian/arm64_build
+    - .igt
+
+igt:arm64:
+  extends:
+    - .arm64-config
+    - .use-debian/arm64_build
+    - .igt
+
+igt:x86_64:
+  extends:
+    - .x86_64-config
+    - .use-debian/x86_64_build
+    - .igt
tools/ci/gitlab-ci/scenarios/drm/prepare-container.sh new file +18 -0
new file mode 100755
index 000000000000..43fbfdcd3514
@@ -0,0 +1,18 @@
+#!/bin/bash
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2025 Collabora, Vignesh Raman [email protected]>
+
+set -ex
+
+############### Install Smatch
+
+. ./tools/ci/gitlab-ci/ci-scripts/install-smatch.sh
+
+############### Install Rust toolchain
+
+. ./tools/ci/gitlab-ci/scenarios/drm/build-rust.sh
+
+############### Build dEQP runner
+
+. ./tools/ci/gitlab-ci/scenarios/drm/build-deqp-runner.sh
tools/ci/gitlab-ci/scenarios/drm/run-igt.sh new file +83 -0
new file mode 100755
index 000000000000..4822fcc2780f
@@ -0,0 +1,83 @@
+#!/bin/sh
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2025 Collabora, Vignesh Raman [email protected]>
+#
+# Based on the igt_runner.sh script from the drm-ci project:
+# https://gitlab.freedesktop.org/drm/misc/kernel/-/blob/drm-misc-next/drivers/gpu/drm/ci/igt_runner.sh
+
+set -ex
+
+STATUS_FILE="${1}"
+
+export IGT_FORCE_DRIVER=${DRIVER_NAME}
+export PATH=$PATH:/igt/bin/
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:\
+/igt/lib/aarch64-linux-gnu:\
+/igt/lib/x86_64-linux-gnu:\
+/igt/lib:\
+/igt/lib64
+
+# Uncomment the below to debug problems with driver probing
+: '
+ls -l /dev/dri/
+cat /sys/kernel/debug/devices_deferred
+cat /sys/kernel/debug/device_component/*
+'
+
+# Dump drm state to confirm that kernel was able to find a connected display:
+set +e
+cat /sys/kernel/debug/dri/*/state
+set -e
+
+if [ -e "/install/xfails/$DRIVER_NAME-$GPU_VERSION-skips.txt" ]; then
+    IGT_SKIPS="--skips /install/xfails/$DRIVER_NAME-$GPU_VERSION-skips.txt"
+fi
+
+if [ -e "/install/xfails/$DRIVER_NAME-$GPU_VERSION-flakes.txt" ]; then
+    IGT_FLAKES="--flakes /install/xfails/$DRIVER_NAME-$GPU_VERSION-flakes.txt"
+fi
+
+if [ -e "/install/xfails/$DRIVER_NAME-$GPU_VERSION-fails.txt" ]; then
+    IGT_FAILS="--baseline /install/xfails/$DRIVER_NAME-$GPU_VERSION-fails.txt"
+fi
+
+TESTLIST="/igt/libexec/igt-gpu-tools/ci-testlist.txt"
+
+# If the job is parallel at the gitab job level, take the corresponding fraction
+# of the caselist.
+if [ -n "$CI_NODE_INDEX" ]; then
+    sed -ni $CI_NODE_INDEX~$CI_NODE_TOTAL"p" $TESTLIST
+fi
+
+# core_getversion checks if the driver is loaded and probed correctly
+# so run it in all shards
+if ! grep -q "core_getversion" $TESTLIST; then
+    # Add the line to the file
+    echo "core_getversion" >> $TESTLIST
+fi
+
+set +e
+igt-runner \
+    run \
+    --igt-folder /igt/libexec/igt-gpu-tools \
+    --caselist $TESTLIST \
+    --output /results \
+    -vvvv \
+    $IGT_SKIPS \
+    $IGT_FLAKES \
+    $IGT_FAILS \
+    --jobs 1
+ret=$?
+set -e
+
+deqp-runner junit \
+   --testsuite IGT \
+   --results /results/failures.csv \
+   --output /results/junit.xml \
+   --limit 50 \
+   --template "See https://$CI_PROJECT_ROOT_NAMESPACE.pages.freedesktop.org/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/results/{{testcase}}.xml"
+
+cd $oldpath
+echo $ret > ${STATUS_FILE}
+exit $ret
tools/ci/gitlab-ci/scenarios/drm/test.yml new file +32 -0
new file mode 100644
index 000000000000..9fb37beb446d
@@ -0,0 +1,32 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2025 Collabora, Vignesh Raman [email protected]>
+
+vkms:none:
+  extends: build:x86_64
+  stage: test
+  timeout: "1h30m"
+  variables:
+    DRIVER_NAME: vkms
+    GPU_VERSION: none
+  tags:
+    - kvm
+  script:
+    - mkdir -p /install/xfails
+    - cp -rfv tools/ci/gitlab-ci/scenarios/drm/xfails /install/
+    - cp $CI_PROJECT_DIR/artifacts/kernel-install-${KCI_KERNEL_ARCH}/bzImage /install
+    - tar -xv -C / -f $CI_PROJECT_DIR/artifacts/igt-install-${KCI_KERNEL_ARCH}/igt.tar
+    - mkdir -p $CI_PROJECT_DIR/results
+    - ln -sf $CI_PROJECT_DIR/results /results
+    - ./tools/ci/gitlab-ci/ci-scripts/run-virtme.sh /install/bzImage ./tools/ci/gitlab-ci/scenarios/drm/run-igt.sh "DRIVER_NAME=$DRIVER_NAME GPU_VERSION=$GPU_VERSION"
+  artifacts:
+    when: always
+    paths:
+      - results/
+  needs:
+    - build:x86_64
+    - igt:x86_64
+
+test-boot:
+  rules:
+    - when: never
tools/ci/gitlab-ci/scenarios/drm/xfails/vkms-none-fails.txt new file +22 -0
new file mode 100644
index 000000000000..3979c95c07ed
@@ -0,0 +1,22 @@
+kms_cursor_crc@cursor-rapid-movement-256x85,Fail
+kms_cursor_crc@cursor-rapid-movement-32x10,Fail
+kms_cursor_crc@cursor-rapid-movement-64x64,Fail
+kms_cursor_legacy@basic-flip-before-cursor-atomic,Fail
+kms_cursor_legacy@basic-flip-before-cursor-legacy,Fail
+kms_cursor_legacy@cursor-vs-flip-atomic,Fail
+kms_cursor_legacy@cursor-vs-flip-legacy,Fail
+kms_cursor_legacy@cursor-vs-flip-toggle,Fail
+kms_cursor_legacy@cursor-vs-flip-varying-size,Fail
+kms_cursor_legacy@flip-vs-cursor-atomic,Fail
+kms_cursor_legacy@flip-vs-cursor-crc-atomic,Fail
+kms_cursor_legacy@flip-vs-cursor-crc-legacy,Fail
+kms_cursor_legacy@flip-vs-cursor-legacy,Fail
+kms_flip@flip-vs-modeset-vs-hang,Fail
+kms_flip@flip-vs-panning-vs-hang,Fail
+kms_writeback@writeback-check-output,Fail
+kms_writeback@writeback-check-output-XRGB2101010,Fail
+kms_writeback@writeback-fb-id,Fail
+kms_writeback@writeback-fb-id-XRGB2101010,Fail
+kms_writeback@writeback-invalid-parameters,Fail
+kms_writeback@writeback-pixel-formats,Fail
+perf@i915-ref-count,Fail
tools/ci/gitlab-ci/scenarios/drm/xfails/vkms-none-flakes.txt new file +90 -0
new file mode 100644
index 000000000000..62428f3c8f31
@@ -0,0 +1,90 @@
+# Board Name: vkms
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u
+# Failure Rate: 50
+# IGT Version: 1.28-g0df7b9b97
+# Linux Version: 6.9.0-rc7
+kms_cursor_legacy@long-nonblocking-modeset-vs-cursor-atomic
+
+# Board Name: vkms
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u
+# Failure Rate: 50
+# IGT Version: 1.28-g0df7b9b97
+# Linux Version: 6.9.0-rc7
+kms_flip@basic-flip-vs-wf_vblank
+
+# Board Name: vkms
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u
+# Failure Rate: 50
+# IGT Version: 1.28-g0df7b9b97
+# Linux Version: 6.9.0-rc7
+kms_flip@flip-vs-expired-vblank-interruptible
+
+# Board Name: vkms
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u
+# Failure Rate: 50
+# IGT Version: 1.28-g0df7b9b97
+# Linux Version: 6.9.0-rc7
+kms_flip@flip-vs-wf_vblank-interruptible
+
+# Board Name: vkms
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u
+# Failure Rate: 50
+# IGT Version: 1.28-g0df7b9b97
+# Linux Version: 6.9.0-rc7
+kms_flip@plain-flip-fb-recreate-interruptible
+
+# Board Name: vkms
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u
+# Failure Rate: 50
+# IGT Version: 1.28-g0df7b9b97
+# Linux Version: 6.9.0-rc7
+kms_flip@plain-flip-ts-check
+
+# Board Name: vkms
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u
+# Failure Rate: 50
+# IGT Version: 1.28-g0df7b9b97
+# Linux Version: 6.9.0-rc7
+kms_flip@plain-flip-ts-check-interruptible
+
+# Board Name: vkms
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u
+# Failure Rate: 50
+# IGT Version: 1.28-g0df7b9b97
+# Linux Version: 6.9.0-rc7
+kms_flip@flip-vs-absolute-wf_vblank
+
+# Board Name: vkms
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u
+# Failure Rate: 50
+# IGT Version: 1.28-g0df7b9b97
+# Linux Version: 6.9.0-rc7
+kms_flip@flip-vs-absolute-wf_vblank-interruptible
+
+# Board Name: vkms
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u
+# Failure Rate: 50
+# IGT Version: 1.28-g0df7b9b97
+# Linux Version: 6.9.0-rc7
+kms_flip@flip-vs-blocking-wf-vblank
+
+# Board Name: vkms
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u
+# Failure Rate: 50
+# IGT Version: 1.28-gf13702b8e
+# Linux Version: 6.10.0-rc5
+kms_cursor_legacy@flip-vs-cursor-varying-size
+
+# Board Name: vkms
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u
+# Failure Rate: 50
+# IGT Version: 1.28-gf13702b8e
+# Linux Version: 6.10.0-rc5
+kms_flip@flip-vs-expired-vblank
+
+# Board Name: vkms
+# Bug Report: https://lore.kernel.org/dri-devel/[email protected]/T/#u
+# Failure Rate: 50
+# IGT Version: 1.28-gf13702b8e
+# Linux Version: 6.10.0-rc5
+kms_pipe_crc_basic@nonblocking-crc-frame-sequence
tools/ci/gitlab-ci/scenarios/drm/xfails/vkms-none-skips.txt new file +812 -1
new file mode 100644
index 000000000000..24659c18c765
@@ -0,0 +1,812 @@
+# skip suspend tests
+.*suspend.*
+
+# keeps printing vkms_vblank_simulate: vblank timer overrun and never ends
+kms_invalid_mode@int-max-clock
+
+# kernel panic seen with kms_cursor_crc tests
+kms_cursor_crc.*
+# kms_cursor_crc@cursor-rapid-movement-32x10
+# Oops: 0000 [#1] PREEMPT SMP NOPTI
+# CPU: 0 PID: 2635 Comm: kworker/u8:13 Not tainted 6.9.0-rc7-g40935263a1fd #1
+# Hardware name: ChromiumOS crosvm, BIOS 0
+# Workqueue: vkms_composer vkms_composer_worker [vkms]
+# RIP: 0010:compose_active_planes+0x1c7/0x4e0 [vkms]
+# Code: c9 0f 84 6a 01 00 00 8b 42 30 2b 42 28 41 39 c5 0f 8c 6f 01 00 00 49 83 c7 01 49 39 df 74 3b 4b 8b 34 fc 48 8b 96 48 01 00 00  42 78 89 c1 83 e1 0a a8 20 74 b1 45 89 f5 41 f7 d5 44 03 6a 34
+# RSP: 0018:ffffbb4700c17d58 EFLAGS: 00010246
+# RAX: 0000000000000400 RBX: 0000000000000002 RCX: 0000000000000002
+# RDX: 0000000000000000 RSI: ffffa2ad0788c000 RDI: 00000000fff479a8
+# RBP: 0000000000000004 R08: 0000000000000000 R09: 0000000000000000
+# R10: ffffa2ad0bb14000 R11: 0000000000000000 R12: ffffa2ad03e21700
+# R13: 0000000000000003 R14: 0000000000000004 R15: 0000000000000000
+# FS:  0000000000000000(0000) GS:ffffa2ad2bc00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 0000000000000078 CR3: 000000010bd30000 CR4: 0000000000350ef0
+# Call Trace:
+#
+#  ? __die+0x1e/0x60
+#  ? page_fault_oops+0x17b/0x490
+#  ? exc_page_fault+0x6d/0x230
+#  ? asm_exc_page_fault+0x26/0x30
+#  ? compose_active_planes+0x1c7/0x4e0 [vkms]
+#  ? compose_active_planes+0x2a3/0x4e0 [vkms]
+#  ? srso_return_thunk+0x5/0x5f
+#  vkms_composer_worker+0x205/0x240 [vkms]
+#  process_one_work+0x1f4/0x6b0
+#  ? lock_is_held_type+0x9e/0x110
+#  worker_thread+0x17e/0x350
+#  ? __pfx_worker_thread+0x10/0x10
+#  kthread+0xce/0x100
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork+0x2f/0x50
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork_asm+0x1a/0x30
+#
+# Modules linked in: vkms
+# CR2: 0000000000000078
+# ---[ end trace 0000000000000000 ]---
+# RIP: 0010:compose_active_planes+0x1c7/0x4e0 [vkms]
+# Code: c9 0f 84 6a 01 00 00 8b 42 30 2b 42 28 41 39 c5 0f 8c 6f 01 00 00 49 83 c7 01 49 39 df 74 3b 4b 8b 34 fc 48 8b 96 48 01 00 00  42 78 89 c1 83 e1 0a a8 20 74 b1 45 89 f5 41 f7 d5 44 03 6a 34
+# RSP: 0018:ffffbb4700c17d58 EFLAGS: 00010246
+# RAX: 0000000000000400 RBX: 0000000000000002 RCX: 0000000000000002
+# RDX: 0000000000000000 RSI: ffffa2ad0788c000 RDI: 00000000fff479a8
+# RBP: 0000000000000004 R08: 0000000000000000 R09: 0000000000000000
+# R10: ffffa2ad0bb14000 R11: 0000000000000000 R12: ffffa2ad03e21700
+# R13: 0000000000000003 R14: 0000000000000004 R15: 0000000000000000
+# FS:  0000000000000000(0000) GS:ffffa2ad2bc00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+
+#kms_cursor_crc@cursor-rapid-movement-256x85
+# [drm:drm_crtc_add_crc_entry] *ERROR* Overflow of CRC buffer, userspace reads too slow.
+# Oops: 0000 [#1] PREEMPT SMP NOPTI
+# CPU: 1 PID: 10 Comm: kworker/u8:0 Not tainted 6.9.0-rc7-g646381cde463 #1
+# Hardware name: ChromiumOS crosvm, BIOS 0
+# Workqueue: vkms_composer vkms_composer_worker [vkms]
+# RIP: 0010:compose_active_planes+0x1c7/0x4e0 [vkms]
+# Code: c9 0f 84 6a 01 00 00 8b 42 30 2b 42 28 41 39 c5 0f 8c 6f 01 00 00 49 83 c7 01 49 39 df 74 3b 4b 8b 34 fc 48 8b 96 48 01 00 00  42 78 89 c1 83 e1 0a a8 20 74 b1 45 89 f5 41 f7 d5 44 03 6a 34
+# RSP: 0018:ffffa7e980057d58 EFLAGS: 00010246
+# RAX: 0000000000000400 RBX: 0000000000000002 RCX: 0000000000000002
+# RDX: 0000000000000000 RSI: ffff977987aa5c00 RDI: 000000001b43a85f
+# RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
+# R10: ffff977981bf0000 R11: 0000000000000000 R12: ffff977989622590
+# R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000000
+# FS:  0000000000000000(0000) GS:ffff9779abd00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 0000000000000078 CR3: 0000000109b38000 CR4: 0000000000350ef0
+# Call Trace:
+#
+#  ? __die+0x1e/0x60
+#  ? page_fault_oops+0x17b/0x490
+#  ? exc_page_fault+0x6d/0x230
+#  ? asm_exc_page_fault+0x26/0x30
+#  ? compose_active_planes+0x1c7/0x4e0 [vkms]
+#  ? compose_active_planes+0x2a3/0x4e0 [vkms]
+#  ? srso_return_thunk+0x5/0x5f
+#  vkms_composer_worker+0x205/0x240 [vkms]
+#  process_one_work+0x1f4/0x6b0
+#  ? lock_is_held_type+0x9e/0x110
+#  worker_thread+0x17e/0x350
+#  ? __pfx_worker_thread+0x10/0x10
+#  kthread+0xce/0x100
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork+0x2f/0x50
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork_asm+0x1a/0x30
+#
+# Modules linked in: vkms
+# CR2: 0000000000000078
+# ---[ end trace 0000000000000000 ]---
+# RIP: 0010:compose_active_planes+0x1c7/0x4e0 [vkms]
+# Code: c9 0f 84 6a 01 00 00 8b 42 30 2b 42 28 41 39 c5 0f 8c 6f 01 00 00 49 83 c7 01 49 39 df 74 3b 4b 8b 34 fc 48 8b 96 48 01 00 00  42 78 89 c1 83 e1 0a a8 20 74 b1 45 89 f5 41 f7 d5 44 03 6a 34
+# RSP: 0018:ffffa7e980057d58 EFLAGS: 00010246
+# RAX: 0000000000000400 RBX: 0000000000000002 RCX: 0000000000000002
+# RDX: 0000000000000000 RSI: ffff977987aa5c00 RDI: 000000001b43a85f
+# RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
+# R10: ffff977981bf0000 R11: 0000000000000000 R12: ffff977989622590
+# R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000000
+# FS:  0000000000000000(0000) GS:ffff9779abd00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 0000000000000078 CR3: 0000000109b38000 CR4: 0000000000350ef0
+
+#kms_cursor_crc@cursor-onscreen-256x256
+# Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI
+# CPU: 1 PID: 1913 Comm: kworker/u8:6 Not tainted 6.10.0-rc5-g8a28e73ebead #1
+# Hardware name: ChromiumOS crosvm, BIOS 0
+# Workqueue: vkms_composer vkms_composer_worker [vkms]
+# RIP: 0010:compose_active_planes+0x344/0x4e0 [vkms]
+# Code: 6a 34 0f 8e 91 fe ff ff 44 89 ea 48 8d 7c 24 48 e8 71 f0 ff ff 4b 8b 04 fc 48 8b 4c 24 50 48 8b 7c 24 40 48 8b 80 48 01 00 00  63 70 18 8b 40 20 48 89 f2 48 c1 e6 03 29 d0 48 8b 54 24 48 48
+# RSP: 0018:ffffb477409fbd58 EFLAGS: 00010282
+# RAX: 0000000000000000 RBX: 0000000000000002 RCX: ffff8b124a242000
+# RDX: 00000000000000ff RSI: ffff8b124a243ff8 RDI: ffff8b124a244000
+# RBP: 0000000000000002 R08: 0000000000000000 R09: 00000000000003ff
+# R10: ffff8b124a244000 R11: 0000000000000000 R12: ffff8b1249282f30
+# R13: 0000000000000002 R14: 0000000000000002 R15: 0000000000000000
+# FS:  0000000000000000(0000) GS:ffff8b126bd00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 0000000000000018 CR3: 0000000107a86000 CR4: 0000000000350ef0
+# Call Trace:
+#
+#  ? __die+0x1e/0x60
+#  ? page_fault_oops+0x17b/0x4a0
+#  ? exc_page_fault+0x6d/0x230
+#  ? asm_exc_page_fault+0x26/0x30
+#  ? compose_active_planes+0x344/0x4e0 [vkms]
+#  ? compose_active_planes+0x32f/0x4e0 [vkms]
+#  ? srso_return_thunk+0x5/0x5f
+#  vkms_composer_worker+0x205/0x240 [vkms]
+#  process_one_work+0x201/0x6c0
+#  ? lock_is_held_type+0x9e/0x110
+#  worker_thread+0x17e/0x350
+#  ? __pfx_worker_thread+0x10/0x10
+#  kthread+0xce/0x100
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork+0x2f/0x50
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork_asm+0x1a/0x30
+#
+# Modules linked in: vkms
+# CR2: 0000000000000018
+# ---[ end trace 0000000000000000 ]---
+# RIP: 0010:compose_active_planes+0x344/0x4e0 [vkms]
+# Code: 6a 34 0f 8e 91 fe ff ff 44 89 ea 48 8d 7c 24 48 e8 71 f0 ff ff 4b 8b 04 fc 48 8b 4c 24 50 48 8b 7c 24 40 48 8b 80 48 01 00 00  63 70 18 8b 40 20 48 89 f2 48 c1 e6 03 29 d0 48 8b 54 24 48 48
+# RSP: 0018:ffffb477409fbd58 EFLAGS: 00010282
+# RAX: 0000000000000000 RBX: 0000000000000002 RCX: ffff8b124a242000
+# RDX: 00000000000000ff RSI: ffff8b124a243ff8 RDI: ffff8b124a244000
+# RBP: 0000000000000002 R08: 0000000000000000 R09: 00000000000003ff
+# R10: ffff8b124a244000 R11: 0000000000000000 R12: ffff8b1249282f30
+# R13: 0000000000000002 R14: 0000000000000002 R15: 0000000000000000
+# FS:  0000000000000000(0000) GS:ffff8b126bd00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 0000000000000018 CR3: 0000000107a86000 CR4: 0000000000350ef0
+
+kms_cursor_edge_walk@128x128-right-edge
+# Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI
+# CPU: 0 PID: 1911 Comm: kworker/u8:3 Not tainted 6.10.0-rc5-g5e7a002eefe5 #1
+# Hardware name: ChromiumOS crosvm, BIOS 0
+# Workqueue: vkms_composer vkms_composer_worker [vkms]
+# RIP: 0010:compose_active_planes+0x344/0x4e0 [vkms]
+# Code: 6a 34 0f 8e 91 fe ff ff 44 89 ea 48 8d 7c 24 48 e8 71 f0 ff ff 4b 8b 04 fc 48 8b 4c 24 50 48 8b 7c 24 40 48 8b 80 48 01 00 00  63 70 18 8b 40 20 48 89 f2 48 c1 e6 03 29 d0 48 8b 54 24 48 48
+# RSP: 0018:ffffb2f040a43d58 EFLAGS: 00010282
+# RAX: 0000000000000000 RBX: 0000000000000002 RCX: ffffa2c181792000
+# RDX: 0000000000000000 RSI: ffffa2c181793ff8 RDI: ffffa2c181790000
+# RBP: 0000000000000031 R08: 0000000000000000 R09: 00000000000003ff
+# R10: ffffa2c181790000 R11: 0000000000000000 R12: ffffa2c1814fa810
+# R13: 0000000000000031 R14: 0000000000000031 R15: 0000000000000000
+# FS:  0000000000000000(0000) GS:ffffa2c1abc00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 0000000000000018 CR3: 0000000106768000 CR4: 0000000000350ef0
+# Call Trace:
+#
+#  ? __die+0x1e/0x60
+#  ? page_fault_oops+0x17b/0x4a0
+#  ? srso_return_thunk+0x5/0x5f
+#  ? mark_held_locks+0x49/0x80
+#  ? exc_page_fault+0x6d/0x230
+#  ? asm_exc_page_fault+0x26/0x30
+#  ? compose_active_planes+0x344/0x4e0 [vkms]
+#  ? compose_active_planes+0x32f/0x4e0 [vkms]
+#  ? srso_return_thunk+0x5/0x5f
+#  vkms_composer_worker+0x205/0x240 [vkms]
+#  process_one_work+0x201/0x6c0
+#  ? lock_is_held_type+0x9e/0x110
+#  worker_thread+0x17e/0x350
+#  ? __pfx_worker_thread+0x10/0x10
+#  kthread+0xce/0x100
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork+0x2f/0x50
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork_asm+0x1a/0x30
+#
+# Modules linked in: vkms
+# CR2: 0000000000000018
+# ---[ end trace 0000000000000000 ]---
+# RIP: 0010:compose_active_planes+0x344/0x4e0 [vkms]
+# Code: 6a 34 0f 8e 91 fe ff ff 44 89 ea 48 8d 7c 24 48 e8 71 f0 ff ff 4b 8b 04 fc 48 8b 4c 24 50 48 8b 7c 24 40 48 8b 80 48 01 00 00  63 70 18 8b 40 20 48 89 f2 48 c1 e6 03 29 d0 48 8b 54 24 48 48
+# RSP: 0018:ffffb2f040a43d58 EFLAGS: 00010282
+# RAX: 0000000000000000 RBX: 0000000000000002 RCX: ffffa2c181792000
+# RDX: 0000000000000000 RSI: ffffa2c181793ff8 RDI: ffffa2c181790000
+# RBP: 0000000000000031 R08: 0000000000000000 R09: 00000000000003ff
+# R10: ffffa2c181790000 R11: 0000000000000000 R12: ffffa2c1814fa810
+# R13: 0000000000000031 R14: 0000000000000031 R15: 000000000000
+
+kms_cursor_edge_walk@128x128-left-edge
+# DEBUG - Begin test kms_cursor_edge_walk@128x128-left-edge
+# Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI
+# CPU: 0 UID: 0 PID: 27 Comm: kworker/u8:1 Not tainted 6.11.0-rc5-g5d3429a7e9aa #1
+# Hardware name: ChromiumOS crosvm, BIOS 0
+# Workqueue: vkms_composer vkms_composer_worker [vkms]
+# RIP: 0010:compose_active_planes+0x344/0x4e0 [vkms]
+# Code: 6a 34 0f 8e 91 fe ff ff 44 89 ea 48 8d 7c 24 48 e8 71 f0 ff ff 4b 8b 04 fc 48 8b 4c 24 50 48 8b 7c 24 40 48 8b 80 48 01 00 00  63 70 18 8b 40 20 48 89 f2 48 c1 e6 03 29 d0 48 8b 54 24 48 48
+# RSP: 0018:ffffa437800ebd58 EFLAGS: 00010282
+# RAX: 0000000000000000 RBX: 0000000000000002 RCX: ffffa0e841904000
+# RDX: 00000000000000ff RSI: ffffa0e841905ff8 RDI: ffffa0e841902000
+# RBP: 0000000000000000 R08: ffffa0e84158a600 R09: 00000000000003ff
+# R10: 0000000078b2bcd2 R11: 00000000278b2bcd R12: ffffa0e84870fc60
+# R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
+# FS:  0000000000000000(0000) GS:ffffa0e86bc00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 0000000000000018 CR3: 0000000101710000 CR4: 0000000000350ef0
+# Call Trace:
+#
+#  ? __die+0x1e/0x60
+#  ? page_fault_oops+0x17b/0x4a0
+#  ? exc_page_fault+0x6d/0x230
+#  ? asm_exc_page_fault+0x26/0x30
+#  ? compose_active_planes+0x344/0x4e0 [vkms]
+#  ? compose_active_planes+0x32f/0x4e0 [vkms]
+#  ? srso_return_thunk+0x5/0x5f
+#  vkms_composer_worker+0x205/0x240 [vkms]
+#  process_one_work+0x201/0x6c0
+#  ? lock_is_held_type+0x9e/0x110
+#  worker_thread+0x17e/0x310
+#  ? __pfx_worker_thread+0x10/0x10
+#  kthread+0xce/0x100
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork+0x2f/0x50
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork_asm+0x1a/0x30
+#
+# Modules linked in: vkms
+# CR2: 0000000000000018
+# ---[ end trace 0000000000000000 ]---
+# RIP: 0010:compose_active_planes+0x344/0x4e0 [vkms]
+# Code: 6a 34 0f 8e 91 fe ff ff 44 89 ea 48 8d 7c 24 48 e8 71 f0 ff ff 4b 8b 04 fc 48 8b 4c 24 50 48 8b 7c 24 40 48 8b 80 48 01 00 00  63 70 18 8b 40 20 48 89 f2 48 c1 e6 03 29 d0 48 8b 54 24 48 48
+# RSP: 0018:ffffa437800ebd58 EFLAGS: 00010282
+# RAX: 0000000000000000 RBX: 0000000000000002 RCX: ffffa0e841904000
+# RDX: 00000000000000ff RSI: ffffa0e841905ff8 RDI: ffffa0e841902000
+# RBP: 0000000000000000 R08: ffffa0e84158a600 R09: 00000000000003ff
+# R10: 0000000078b2bcd2 R11: 00000000278b2bcd R12: ffffa0e84870fc60
+# R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
+# FS:  0000000000000000(0000) GS:ffffa0e86bc00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 0000000000000018 CR3: 0000000101710000 CR4: 0000000000350ef0
+# vkms_vblank_simulate: vblank timer overrun
+
+# DEBUG - Begin test kms_cursor_crc@cursor-rapid-movement-64x64
+# ------------[ cut here ]------------
+# WARNING: CPU: 1 PID: 1250 at drivers/gpu/drm/vkms/vkms_crtc.c:139 vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+# Modules linked in: vkms
+# CPU: 1 UID: 0 PID: 1250 Comm: kms_cursor_crc Not tainted 6.13.0-rc2-ge95c88d68ac3 #1
+# Hardware name: ChromiumOS crosvm, BIOS 0
+# RIP: 0010:vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+# Code: f7 48 89 f3 e8 d0 bf ee ec 48 8b 83 50 01 00 00 a8 01 75 15 48 8b bb a0 01 00 00 e8 59 05 95 ec 48 89 df 5b e9 50 05 95 ec 90  0b 90 eb e5 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90
+# RSP: 0018:ffff9fb640aafb08 EFLAGS: 00010202
+# RAX: ffff8e7240859e05 RBX: ffff8e7241cd6400 RCX: ffffffffae496b65
+# RDX: ffffffffad2d1f80 RSI: 0000000000000000 RDI: 0000000000000000
+# RBP: 0000000000000000 R08: 0000000000000034 R09: 0000000000000002
+# R10: 0000000047dd15a5 R11: 00000000547dd15a R12: ffff8e72590cc000
+# R13: 0000000000000000 R14: 00000000ffffffff R15: 0000000000000000
+# FS:  00007f0942ad56c0(0000) GS:ffff8e726bd00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 00007f0942ad0008 CR3: 0000000118d1e000 CR4: 0000000000350ef0
+# Call Trace:
+#
+#  ? __warn+0x8c/0x190
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+#  ? report_bug+0x164/0x190
+#  ? handle_bug+0x54/0x90
+#  ? exc_invalid_op+0x17/0x70
+#  ? asm_exc_invalid_op+0x1a/0x20
+#  ? __pfx_drm_property_free_blob+0x10/0x10
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+#  ? vkms_atomic_crtc_destroy_state+0x10/0x40 [vkms]
+#  drm_atomic_state_default_clear+0x137/0x2f0
+#  __drm_atomic_state_free+0x6c/0xb0
+#  drm_atomic_helper_update_plane+0x100/0x150
+#  drm_mode_cursor_universal+0x10e/0x270
+#  drm_mode_cursor_common+0x115/0x240
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10
+#  drm_mode_cursor_ioctl+0x4a/0x70
+#  drm_ioctl_kernel+0xb0/0x110
+#  drm_ioctl+0x235/0x4b0
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10
+#  __x64_sys_ioctl+0x92/0xc0
+#  do_syscall_64+0xbb/0x1d0
+#  entry_SYSCALL_64_after_hwframe+0x77/0x7f
+# RIP: 0033:0x7f0943a84cdb
+# Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05  c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00
+# RSP: 002b:00007fff267d68d0 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
+# RAX: ffffffffffffffda RBX: 000000000000005a RCX: 00007f0943a84cdb
+# RDX: 00007fff267d6960 RSI: 00000000c01c64a3 RDI: 0000000000000005
+# RBP: 00007fff267d6960 R08: 0000000000000007 R09: 00005619a60f3450
+# R10: fe95a83851609dee R11: 0000000000000246 R12: 00000000c01c64a3
+# R13: 0000000000000005 R14: 00005619a3cd2c68 R15: 00005619a608c830
+#
+# irq event stamp: 57793
+# hardirqs last  enabled at (57799): [] __up_console_sem+0x4d/0x60
+# hardirqs last disabled at (57804): [] __up_console_sem+0x32/0x60
+# softirqs last  enabled at (45586): [] handle_softirqs+0x310/0x3f0
+# softirqs last disabled at (45569): [] __irq_exit_rcu+0xa1/0xc0
+# ---[ end trace 0000000000000000 ]---
+# Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI
+# CPU: 0 UID: 0 PID: 119 Comm: kworker/u8:6 Tainted: G        W          6.13.0-rc2-ge95c88d68ac3 #1
+# Tainted: [W]=WARN
+# Hardware name: ChromiumOS crosvm, BIOS 0
+# Workqueue: vkms_composer vkms_composer_worker [vkms]
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms]
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00  50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00
+# RSP: 0018:ffff9fb640efbd20 EFLAGS: 00010202
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002
+# RDX: ffff8e7241926000 RSI: ffff8e7241927ffc RDI: 000000000b7fb767
+# RBP: ffff9fb640efbde0 R08: 0000000000000000 R09: 0000000000000000
+# R10: ffff8e7241b09a80 R11: 0000000000000000 R12: ffff8e7241cd6200
+# R13: 0000000000000013 R14: 0000000000000000 R15: ffff8e7241b09a80
+# FS:  0000000000000000(0000) GS:ffff8e726bc00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 000000000000001c CR3: 0000000118d1e000 CR4: 0000000000350ef0
+# Call Trace:
+#
+#  ? __die+0x1e/0x60
+#  ? page_fault_oops+0x17b/0x4a0
+#  ? srso_return_thunk+0x5/0x5f
+#  ? exc_page_fault+0x6d/0x230
+#  ? asm_exc_page_fault+0x26/0x30
+#  ? compose_active_planes+0x1a3/0x760 [vkms]
+#  vkms_composer_worker+0x205/0x240 [vkms]
+#  process_one_work+0x201/0x6c0
+#  ? lock_is_held_type+0x9e/0x110
+#  worker_thread+0x17e/0x320
+#  ? __pfx_worker_thread+0x10/0x10
+#  kthread+0xce/0x100
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork+0x2f/0x50
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork_asm+0x1a/0x30
+#
+# Modules linked in: vkms
+# CR2: 000000000000001c
+# ---[ end trace 0000000000000000 ]---
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms]
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00  50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00
+# RSP: 0018:ffff9fb640efbd20 EFLAGS: 00010202
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002
+# RDX: ffff8e7241926000 RSI: ffff8e7241927ffc RDI: 000000000b7fb767
+# RBP: ffff9fb640efbde0 R08: 0000000000000000 R09: 0000000000000000
+# R10: ffff8e7241b09a80 R11: 0000000000000000 R12: ffff8e7241cd6200
+# R13: 0000000000000013 R14: 0000000000000000 R15: ffff8e7241b09a80
+# FS:  0000000000000000(0000) GS:ffff8e726bc00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 000000000000001c CR3: 0000000118d1e000 CR4: 0000000000350ef0
+
+# DEBUG - Begin test kms_cursor_crc@cursor-rapid-movement-128x42
+# ------------[ cut here ]------------
+# WARNING: CPU: 0 PID: 2933 at drivers/gpu/drm/vkms/vkms_crtc.c:139 vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+# Modules linked in: vkms
+# CPU: 0 UID: 0 PID: 2933 Comm: kms_cursor_crc Not tainted 6.13.0-rc2-g5219242748c8 #1
+# Hardware name: ChromiumOS crosvm, BIOS 0
+# RIP: 0010:vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+# Code: f7 48 89 f3 e8 d0 bf 6e d0 48 8b 83 50 01 00 00 a8 01 75 15 48 8b bb a0 01 00 00 e8 59 05 15 d0 48 89 df 5b e9 50 05 15 d0 90  0b 90 eb e5 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90
+# RSP: 0018:ffffa14cc08b3b08 EFLAGS: 00010202
+# RAX: ffff9b864084b605 RBX: ffff9b8641ba4600 RCX: ffffffff91c96b65
+# RDX: ffffffff90ad1f80 RSI: 0000000000000000 RDI: 0000000000000000
+# RBP: 0000000000000000 R08: 0000000000000034 R09: 0000000000000002
+# R10: 0000000047dd15a5 R11: 00000000547dd15a R12: ffff9b864099c000
+# R13: 0000000000000000 R14: 00000000ffffffff R15: 0000000000000000
+# FS:  00007f4f437ab6c0(0000) GS:ffff9b866bc00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 00007f4f44c3cd40 CR3: 0000000108c14000 CR4: 0000000000350ef0
+# Call Trace:
+#
+#  ? __warn+0x8c/0x190
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+#  ? report_bug+0x164/0x190
+#  ? handle_bug+0x54/0x90
+#  ? exc_invalid_op+0x17/0x70
+#  ? asm_exc_invalid_op+0x1a/0x20
+#  ? __pfx_drm_property_free_blob+0x10/0x10
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+#  ? vkms_atomic_crtc_destroy_state+0x10/0x40 [vkms]
+#  drm_atomic_state_default_clear+0x137/0x2f0
+#  __drm_atomic_state_free+0x6c/0xb0
+#  drm_atomic_helper_update_plane+0x100/0x150
+#  drm_mode_cursor_universal+0x10e/0x270
+#  drm_mode_cursor_common+0x115/0x240
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10
+#  drm_mode_cursor_ioctl+0x4a/0x70
+#  drm_ioctl_kernel+0xb0/0x110
+#  drm_ioctl+0x235/0x4b0
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10
+#  __x64_sys_ioctl+0x92/0xc0
+#  do_syscall_64+0xbb/0x1d0
+#  entry_SYSCALL_64_after_hwframe+0x77/0x7f
+# RIP: 0033:0x7f4f44960c5b
+# Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05  c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00
+# RSP: 002b:00007ffcdfb0b560 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
+# RAX: ffffffffffffffda RBX: 0000000000000060 RCX: 00007f4f44960c5b
+# RDX: 00007ffcdfb0b5f0 RSI: 00000000c01c64a3 RDI: 0000000000000005
+# RBP: 00007ffcdfb0b5f0 R08: 0000000000000007 R09: 000055c3a5801a30
+# R10: 3107764f00e1f281 R11: 0000000000000246 R12: 00000000c01c64a3
+# R13: 0000000000000005 R14: 000055c38b7e42c8 R15: 000055c3a579aab0
+#
+# irq event stamp: 58747
+# hardirqs last  enabled at (58753): [] __up_console_sem+0x4d/0x60
+# hardirqs last disabled at (58758): [] __up_console_sem+0x32/0x60
+# softirqs last  enabled at (47324): [] handle_softirqs+0x310/0x3f0
+# softirqs last disabled at (47307): [] __irq_exit_rcu+0xa1/0xc0
+# ---[ end trace 0000000000000000 ]---
+# Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI
+# CPU: 1 UID: 0 PID: 11 Comm: kworker/u8:0 Tainted: G        W          6.13.0-rc2-g5219242748c8 #1
+# Tainted: [W]=WARN
+# Hardware name: ChromiumOS crosvm, BIOS 0
+# Workqueue: vkms_composer vkms_composer_worker [vkms]
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms]
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00  50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00
+# RSP: 0018:ffffa14cc005fd20 EFLAGS: 00010202
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002
+# RDX: ffff9b8669626000 RSI: ffff9b8669627ffc RDI: 00000000348d6c39
+# RBP: ffffa14cc005fde0 R08: 0000000000000000 R09: 0000000000000000
+# R10: ffff9b8645650eb0 R11: 0000000000000000 R12: ffff9b8641ba5800
+# R13: 0000000000000028 R14: 0000000000000000 R15: ffff9b8645650eb0
+# FS:  0000000000000000(0000) GS:ffff9b866bd00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 000000000000001c CR3: 0000000108c14000 CR4: 0000000000350ef0
+# Call Trace:
+#
+#  ? __die+0x1e/0x60
+#  ? page_fault_oops+0x17b/0x4a0
+#  ? __kvmalloc_node_noprof+0x3e/0xc0
+#  ? exc_page_fault+0x6d/0x230
+#  ? asm_exc_page_fault+0x26/0x30
+#  ? compose_active_planes+0x1a3/0x760 [vkms]
+#  vkms_composer_worker+0x205/0x240 [vkms]
+#  process_one_work+0x201/0x6c0
+#  ? lock_is_held_type+0x9e/0x110
+#  worker_thread+0x17e/0x320
+#  ? __pfx_worker_thread+0x10/0x10
+#  kthread+0xce/0x100
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork+0x2f/0x50
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork_asm+0x1a/0x30
+#
+# Modules linked in: vkms
+# CR2: 000000000000001c
+# ---[ end trace 0000000000000000 ]---
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms]
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00  50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00
+# RSP: 0018:ffffa14cc005fd20 EFLAGS: 00010202
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002
+# RDX: ffff9b8669626000 RSI: ffff9b8669627ffc RDI: 00000000348d6c39
+# RBP: ffffa14cc005fde0 R08: 0000000000000000 R09: 0000000000000000
+# R10: ffff9b8645650eb0 R11: 0000000000000000 R12: ffff9b8641ba5800
+# R13: 0000000000000028 R14: 0000000000000000 R15: ffff9b8645650eb0
+# FS:  0000000000000000(0000) GS:ffff9b866bd00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 000000000000001c CR3: 0000000108c14000 CR4: 0000000000350ef0
+
+# DEBUG - Begin test kms_cursor_crc@cursor-rapid-movement-32x32
+# ------------[ cut here ]------------
+# WARNING: CPU: 0 PID: 2933 at drivers/gpu/drm/vkms/vkms_crtc.c:139 vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+# Modules linked in: vkms
+# CPU: 0 UID: 0 PID: 2933 Comm: kms_cursor_crc Not tainted 6.13.0-rc2-g5219242748c8 #1
+# Hardware name: ChromiumOS crosvm, BIOS 0
+# RIP: 0010:vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+# Code: f7 48 89 f3 e8 d0 bf 6e d0 48 8b 83 50 01 00 00 a8 01 75 15 48 8b bb a0 01 00 00 e8 59 05 15 d0 48 89 df 5b e9 50 05 15 d0 90  0b 90 eb e5 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90
+# RSP: 0018:ffffa14cc08b3b08 EFLAGS: 00010202
+# RAX: ffff9b864084b605 RBX: ffff9b8641ba4600 RCX: ffffffff91c96b65
+# RDX: ffffffff90ad1f80 RSI: 0000000000000000 RDI: 0000000000000000
+# RBP: 0000000000000000 R08: 0000000000000034 R09: 0000000000000002
+# R10: 0000000047dd15a5 R11: 00000000547dd15a R12: ffff9b864099c000
+# R13: 0000000000000000 R14: 00000000ffffffff R15: 0000000000000000
+# FS:  00007f4f437ab6c0(0000) GS:ffff9b866bc00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 00007f4f44c3cd40 CR3: 0000000108c14000 CR4: 0000000000350ef0
+# Call Trace:
+#
+#  ? __warn+0x8c/0x190
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+#  ? report_bug+0x164/0x190
+#  ? handle_bug+0x54/0x90
+#  ? exc_invalid_op+0x17/0x70
+#  ? asm_exc_invalid_op+0x1a/0x20
+#  ? __pfx_drm_property_free_blob+0x10/0x10
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+#  ? vkms_atomic_crtc_destroy_state+0x10/0x40 [vkms]
+#  drm_atomic_state_default_clear+0x137/0x2f0
+#  __drm_atomic_state_free+0x6c/0xb0
+#  drm_atomic_helper_update_plane+0x100/0x150
+#  drm_mode_cursor_universal+0x10e/0x270
+#  drm_mode_cursor_common+0x115/0x240
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10
+#  drm_mode_cursor_ioctl+0x4a/0x70
+#  drm_ioctl_kernel+0xb0/0x110
+#  drm_ioctl+0x235/0x4b0
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10
+#  __x64_sys_ioctl+0x92/0xc0
+#  do_syscall_64+0xbb/0x1d0
+#  entry_SYSCALL_64_after_hwframe+0x77/0x7f
+# RIP: 0033:0x7f4f44960c5b
+# Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05  c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00
+# RSP: 002b:00007ffcdfb0b560 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
+# RAX: ffffffffffffffda RBX: 0000000000000060 RCX: 00007f4f44960c5b
+# RDX: 00007ffcdfb0b5f0 RSI: 00000000c01c64a3 RDI: 0000000000000005
+# RBP: 00007ffcdfb0b5f0 R08: 0000000000000007 R09: 000055c3a5801a30
+# R10: 3107764f00e1f281 R11: 0000000000000246 R12: 00000000c01c64a3
+# R13: 0000000000000005 R14: 000055c38b7e42c8 R15: 000055c3a579aab0
+#
+# irq event stamp: 58747
+# hardirqs last  enabled at (58753): [] __up_console_sem+0x4d/0x60
+# hardirqs last disabled at (58758): [] __up_console_sem+0x32/0x60
+# softirqs last  enabled at (47324): [] handle_softirqs+0x310/0x3f0
+# softirqs last disabled at (47307): [] __irq_exit_rcu+0xa1/0xc0
+# ---[ end trace 0000000000000000 ]---
+# Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI
+# CPU: 1 UID: 0 PID: 11 Comm: kworker/u8:0 Tainted: G        W          6.13.0-rc2-g5219242748c8 #1
+# Tainted: [W]=WARN
+# Hardware name: ChromiumOS crosvm, BIOS 0
+# Workqueue: vkms_composer vkms_composer_worker [vkms]
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms]
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00  50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00
+# RSP: 0018:ffffa14cc005fd20 EFLAGS: 00010202
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002
+# RDX: ffff9b8669626000 RSI: ffff9b8669627ffc RDI: 00000000348d6c39
+# RBP: ffffa14cc005fde0 R08: 0000000000000000 R09: 0000000000000000
+# R10: ffff9b8645650eb0 R11: 0000000000000000 R12: ffff9b8641ba5800
+# R13: 0000000000000028 R14: 0000000000000000 R15: ffff9b8645650eb0
+# FS:  0000000000000000(0000) GS:ffff9b866bd00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 000000000000001c CR3: 0000000108c14000 CR4: 0000000000350ef0
+# Call Trace:
+#
+#  ? __die+0x1e/0x60
+#  ? page_fault_oops+0x17b/0x4a0
+#  ? __kvmalloc_node_noprof+0x3e/0xc0
+#  ? exc_page_fault+0x6d/0x230
+#  ? asm_exc_page_fault+0x26/0x30
+#  ? compose_active_planes+0x1a3/0x760 [vkms]
+#  vkms_composer_worker+0x205/0x240 [vkms]
+#  process_one_work+0x201/0x6c0
+#  ? lock_is_held_type+0x9e/0x110
+#  worker_thread+0x17e/0x320
+#  ? __pfx_worker_thread+0x10/0x10
+#  kthread+0xce/0x100
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork+0x2f/0x50
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork_asm+0x1a/0x30
+#
+# Modules linked in: vkms
+# CR2: 000000000000001c
+# ---[ end trace 0000000000000000 ]---
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms]
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00  50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00
+# RSP: 0018:ffffa14cc005fd20 EFLAGS: 00010202
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002
+# RDX: ffff9b8669626000 RSI: ffff9b8669627ffc RDI: 00000000348d6c39
+# RBP: ffffa14cc005fde0 R08: 0000000000000000 R09: 0000000000000000
+# R10: ffff9b8645650eb0 R11: 0000000000000000 R12: ffff9b8641ba5800
+# R13: 0000000000000028 R14: 0000000000000000 R15: ffff9b8645650eb0
+# FS:  0000000000000000(0000) GS:ffff9b866bd00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 000000000000001c CR3: 0000000108c14000 CR4: 0000000000350ef0
+
+# DEBUG - Begin test kms_cursor_crc@cursor-rapid-movement-32x32
+# ------------[ cut here ]------------
+# WARNING: CPU: 0 PID: 2933 at drivers/gpu/drm/vkms/vkms_crtc.c:139 vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+# Modules linked in: vkms
+# CPU: 0 UID: 0 PID: 2933 Comm: kms_cursor_crc Not tainted 6.13.0-rc2-g5219242748c8 #1
+# Hardware name: ChromiumOS crosvm, BIOS 0
+# RIP: 0010:vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+# Code: f7 48 89 f3 e8 d0 bf 6e d0 48 8b 83 50 01 00 00 a8 01 75 15 48 8b bb a0 01 00 00 e8 59 05 15 d0 48 89 df 5b e9 50 05 15 d0 90  0b 90 eb e5 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90
+# RSP: 0018:ffffa14cc08b3b08 EFLAGS: 00010202
+# RAX: ffff9b864084b605 RBX: ffff9b8641ba4600 RCX: ffffffff91c96b65
+# RDX: ffffffff90ad1f80 RSI: 0000000000000000 RDI: 0000000000000000
+# RBP: 0000000000000000 R08: 0000000000000034 R09: 0000000000000002
+# R10: 0000000047dd15a5 R11: 00000000547dd15a R12: ffff9b864099c000
+# R13: 0000000000000000 R14: 00000000ffffffff R15: 0000000000000000
+# FS:  00007f4f437ab6c0(0000) GS:ffff9b866bc00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 00007f4f44c3cd40 CR3: 0000000108c14000 CR4: 0000000000350ef0
+# Call Trace:
+#
+#  ? __warn+0x8c/0x190
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+#  ? report_bug+0x164/0x190
+#  ? handle_bug+0x54/0x90
+#  ? exc_invalid_op+0x17/0x70
+#  ? asm_exc_invalid_op+0x1a/0x20
+#  ? __pfx_drm_property_free_blob+0x10/0x10
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+#  ? vkms_atomic_crtc_destroy_state+0x10/0x40 [vkms]
+#  drm_atomic_state_default_clear+0x137/0x2f0
+#  __drm_atomic_state_free+0x6c/0xb0
+#  drm_atomic_helper_update_plane+0x100/0x150
+#  drm_mode_cursor_universal+0x10e/0x270
+#  drm_mode_cursor_common+0x115/0x240
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10
+#  drm_mode_cursor_ioctl+0x4a/0x70
+#  drm_ioctl_kernel+0xb0/0x110
+#  drm_ioctl+0x235/0x4b0
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10
+#  __x64_sys_ioctl+0x92/0xc0
+#  do_syscall_64+0xbb/0x1d0
+#  entry_SYSCALL_64_after_hwframe+0x77/0x7f
+# RIP: 0033:0x7f4f44960c5b
+# Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05  c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00
+# RSP: 002b:00007ffcdfb0b560 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
+# RAX: ffffffffffffffda RBX: 0000000000000060 RCX: 00007f4f44960c5b
+# RDX: 00007ffcdfb0b5f0 RSI: 00000000c01c64a3 RDI: 0000000000000005
+# RBP: 00007ffcdfb0b5f0 R08: 0000000000000007 R09: 000055c3a5801a30
+# R10: 3107764f00e1f281 R11: 0000000000000246 R12: 00000000c01c64a3
+# R13: 0000000000000005 R14: 000055c38b7e42c8 R15: 000055c3a579aab0
+#
+# irq event stamp: 58747
+# hardirqs last  enabled at (58753): [] __up_console_sem+0x4d/0x60
+# hardirqs last disabled at (58758): [] __up_console_sem+0x32/0x60
+# softirqs last  enabled at (47324): [] handle_softirqs+0x310/0x3f0
+# softirqs last disabled at (47307): [] __irq_exit_rcu+0xa1/0xc0
+# ---[ end trace 0000000000000000 ]---
+# Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI
+# CPU: 1 UID: 0 PID: 11 Comm: kworker/u8:0 Tainted: G        W          6.13.0-rc2-g5219242748c8 #1
+# Tainted: [W]=WARN
+# Hardware name: ChromiumOS crosvm, BIOS 0
+# Workqueue: vkms_composer vkms_composer_worker [vkms]
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms]
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00  50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00
+# RSP: 0018:ffffa14cc005fd20 EFLAGS: 00010202
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002
+# RDX: ffff9b8669626000 RSI: ffff9b8669627ffc RDI: 00000000348d6c39
+# RBP: ffffa14cc005fde0 R08: 0000000000000000 R09: 0000000000000000
+# R10: ffff9b8645650eb0 R11: 0000000000000000 R12: ffff9b8641ba5800
+# R13: 0000000000000028 R14: 0000000000000000 R15: ffff9b8645650eb0
+# FS:  0000000000000000(0000) GS:ffff9b866bd00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 000000000000001c CR3: 0000000108c14000 CR4: 0000000000350ef0
+# Call Trace:
+#
+#  ? __die+0x1e/0x60
+#  ? page_fault_oops+0x17b/0x4a0
+#  ? __kvmalloc_node_noprof+0x3e/0xc0
+#  ? exc_page_fault+0x6d/0x230
+#  ? asm_exc_page_fault+0x26/0x30
+#  ? compose_active_planes+0x1a3/0x760 [vkms]
+#  vkms_composer_worker+0x205/0x240 [vkms]
+#  process_one_work+0x201/0x6c0
+#  ? lock_is_held_type+0x9e/0x110
+#  worker_thread+0x17e/0x320
+#  ? __pfx_worker_thread+0x10/0x10
+#  kthread+0xce/0x100
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork+0x2f/0x50
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork_asm+0x1a/0x30
+#
+# Modules linked in: vkms
+# CR2: 000000000000001c
+# ---[ end trace 0000000000000000 ]---
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms]
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00  50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00
+# RSP: 0018:ffffa14cc005fd20 EFLAGS: 00010202
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002
+# RDX: ffff9b8669626000 RSI: ffff9b8669627ffc RDI: 00000000348d6c39
+# RBP: ffffa14cc005fde0 R08: 0000000000000000 R09: 0000000000000000
+# R10: ffff9b8645650eb0 R11: 0000000000000000 R12: ffff9b8641ba5800
+# R13: 0000000000000028 R14: 0000000000000000 R15: ffff9b8645650eb0
+# FS:  0000000000000000(0000) GS:ffff9b866bd00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 000000000000001c CR3: 0000000108c14000 CR4: 0000000000350ef0
+
+# DEBUG - Begin test kms_cursor_crc@cursor-rapid-movement-128x128
+# ------------[ cut here ]------------
+# WARNING: CPU: 0 PID: 2898 at drivers/gpu/drm/vkms/vkms_crtc.c:139 vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+# Modules linked in: vkms
+# CPU: 0 UID: 0 PID: 2898 Comm: kms_cursor_crc Not tainted 6.13.0-rc2-g1f006005ebf8 #1
+# Hardware name: ChromiumOS crosvm, BIOS 0
+# RIP: 0010:vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+# Code: f7 48 89 f3 e8 d0 bf 6e e1 48 8b 83 50 01 00 00 a8 01 75 15 48 8b bb a0 01 00 00 e8 59 05 15 e1 48 89 df 5b e9 50 05 15 e1 90  0b 90 eb e5 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90
+# RSP: 0018:ffffa35c4082fb08 EFLAGS: 00010202
+# RAX: ffff8b02c1c0f005 RBX: ffff8b02d4509600 RCX: ffffffffa2c96b65
+# RDX: ffffffffa1ad1f80 RSI: 0000000000000000 RDI: 0000000000000000
+# RBP: 0000000000000000 R08: 0000000000000034 R09: 0000000000000002
+# R10: 0000000030f11ddf R11: 00000000f30f11dd R12: ffff8b02d2528000
+# R13: 0000000000000000 R14: 00000000ffffffff R15: 0000000000000000
+# FS:  00007f4b071ab6c0(0000) GS:ffff8b02efc00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 000055f7f8384b48 CR3: 0000000104ef0000 CR4: 0000000000350ef0
+# Call Trace:
+#
+#  ? __warn+0x8c/0x190
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+#  ? report_bug+0x164/0x190
+#  ? handle_bug+0x54/0x90
+#  ? exc_invalid_op+0x17/0x70
+#  ? asm_exc_invalid_op+0x1a/0x20
+#  ? __pfx_drm_property_free_blob+0x10/0x10
+#  ? vkms_atomic_crtc_destroy_state+0x31/0x40 [vkms]
+#  ? vkms_atomic_crtc_destroy_state+0x10/0x40 [vkms]
+#  drm_atomic_state_default_clear+0x137/0x2f0
+#  __drm_atomic_state_free+0x6c/0xb0
+#  drm_atomic_helper_update_plane+0x100/0x150
+#  drm_mode_cursor_universal+0x10e/0x270
+#  drm_mode_cursor_common+0x115/0x240
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10
+#  drm_mode_cursor_ioctl+0x4a/0x70
+#  drm_ioctl_kernel+0xb0/0x110
+#  drm_ioctl+0x235/0x4b0
+#  ? __pfx_drm_mode_cursor_ioctl+0x10/0x10
+#  __x64_sys_ioctl+0x92/0xc0
+#  do_syscall_64+0xbb/0x1d0
+#  entry_SYSCALL_64_after_hwframe+0x77/0x7f
+# RIP: 0033:0x7f4b0815ac5b
+# Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05  c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00
+# RSP: 002b:00007ffd726f75e0 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
+# RAX: ffffffffffffffda RBX: 000000000000005d RCX: 00007f4b0815ac5b
+# RDX: 00007ffd726f7670 RSI: 00000000c01c64a3 RDI: 0000000000000005
+# RBP: 00007ffd726f7670 R08: 0000000000000007 R09: 000055f7f83e30c0
+# R10: 2b16893c03bd381a R11: 0000000000000246 R12: 00000000c01c64a3
+# R13: 0000000000000005 R14: 000055f7dbee72c8 R15: 000055f7f837bab0
+#
+# irq event stamp: 58921
+# hardirqs last  enabled at (58927): [] __up_console_sem+0x4d/0x60
+# hardirqs last disabled at (58932): [] __up_console_sem+0x32/0x60
+# softirqs last  enabled at (46140): [] handle_softirqs+0x310/0x3f0
+# softirqs last disabled at (46135): [] __irq_exit_rcu+0xa1/0xc0
+# ---[ end trace 0000000000000000 ]---
+# Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI
+# CPU: 1 UID: 0 PID: 1657 Comm: kworker/u8:14 Tainted: G        W          6.13.0-rc2-g1f006005ebf8 #1
+# Tainted: [W]=WARN
+# Hardware name: ChromiumOS crosvm, BIOS 0
+# Workqueue: vkms_composer vkms_composer_worker [vkms]
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms]
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00  50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00
+# RSP: 0018:ffffa35c40c43d20 EFLAGS: 00010202
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002
+# RDX: ffff8b02c52c8000 RSI: ffff8b02c52c9ffc RDI: 00000000fa4761c9
+# RBP: ffffa35c40c43de0 R08: 0000000000000000 R09: 0000000000000000
+# R10: ffff8b02c1c87840 R11: 0000000000000000 R12: ffff8b02d4508800
+# R13: 0000000000000021 R14: 0000000000000000 R15: ffff8b02c1c87840
+# FS:  0000000000000000(0000) GS:ffff8b02efd00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+# CR2: 000000000000001c CR3: 0000000104ef0000 CR4: 0000000000350ef0
+# Call Trace:
+#
+#  ? __die+0x1e/0x60
+#  ? page_fault_oops+0x17b/0x4a0
+#  ? srso_return_thunk+0x5/0x5f
+#  ? exc_page_fault+0x6d/0x230
+#  ? asm_exc_page_fault+0x26/0x30
+#  ? compose_active_planes+0x1a3/0x760 [vkms]
+#  vkms_composer_worker+0x205/0x240 [vkms]
+#  process_one_work+0x201/0x6c0
+#  ? lock_is_held_type+0x9e/0x110
+#  worker_thread+0x17e/0x320
+#  ? __pfx_worker_thread+0x10/0x10
+#  kthread+0xce/0x100
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork+0x2f/0x50
+#  ? __pfx_kthread+0x10/0x10
+#  ret_from_fork_asm+0x1a/0x30
+#
+# Modules linked in: vkms
+# CR2: 000000000000001c
+# ---[ end trace 0000000000000000 ]---
+# RIP: 0010:compose_active_planes+0x1a3/0x760 [vkms]
+# Code: db 4d 89 fa 85 c9 0f 84 32 03 00 00 4d 8b 24 da 48 c7 44 24 60 00 00 00 00 48 c7 44 24 68 00 00 00 00 49 8b 84 24 48 01 00 00  50 1c 44 39 ea 0f 8f f3 02 00 00 44 39 68 24 0f 8e e9 02 00 00
+# RSP: 0018:ffffa35c40c43d20 EFLAGS: 00010202
+# RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002
+# RDX: ffff8b02c52c8000 RSI: ffff8b02c52c9ffc RDI: 00000000fa4761c9
+# RBP: ffffa35c40c43de0 R08: 0000000000000000 R09: 0000000000000000
+# R10: ffff8b02c1c87840 R11: 0000000000000000 R12: ffff8b02d4508800
+# R13: 0000000000000021 R14: 0000000000000000 R15: ffff8b02c1c87840
+# FS:  0000000000000000(0000) GS:ffff8b02efd00000(0000) knlGS:0000000000000000
+# CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+
+# Skip driver specific tests
+^amdgpu.*
+^msm.*
+nouveau_.*
+^panfrost.*
+^v3d.*
+^vc4.*
+^vmwgfx*
+
+# Skip intel specific tests
+gem_.*
+i915_.*
+xe_.*
+tools_test.*
+
+# IGT issue. is_joiner_mode() should return false for non-Intel hardware.
+# https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/issues/162
+kms_display_modes@extended-mode-basic
+kms_display_modes@mst-extended-mode-negative
--
Quoted 2 lines

2.43.0

--
Simona Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch

#8 lore raw

PATCH v2 4/5 kci-gitlab: Add documentation

In reply to Vignesh Raman

From: Helen Koike <[email protected]>

Add documentation of kci-gitlab.

---
 Documentation/ci/gitlab-ci/gitlab-ci.rst | 471 +++++++++++++++++++++++
 Documentation/index.rst                  |   7 +
 2 files changed, 478 insertions(+)
 create mode 100644 Documentation/ci/gitlab-ci/gitlab-ci.rst
Documentation/ci/gitlab-ci/gitlab-ci.rst new file +471 -0
new file mode 100644
index 000000000000..940a80006923
@@ -0,0 +1,471 @@
+.. SPDX-License-Identifier: GPL-2.0+
+
+=========================================
+Automated Testing with kci-gitlab
+=========================================
+
+
+This documentation outlines kci-gitlab, a GitLab CI/CD workflow for the
+Linux Kernel. kci-gitlab pipeline is specifically designed for kernel testing.
+It provides kernel developers with an integrated, efficient, and flexible
+testing framework using GitLab's CI/CD capabilities. The workflow is designed
+to simplify testing for developers, allowing tests to be run on any branch at
+any time, without the need for specific infrastructure. Tests are automatically
+triggered on each `git push`, with results displayed in the GitLab UI.
+
+.. image:: images/the-pipeline.png
+   :alt: GitLab-CI pipeline for kernel testing
+   :align: center
+
+Customizations and extensions of the pipeline are possible through the
+scenarios. Scenarios can override existing jobs, change configurations, or
+define new jobs and stages. See :ref:`extending-the-ci` section.
+
+.. note:: If you are unfamiliar with GitLab CI/CD basic concepts, please check
+   the `official documentation <https://docs.gitlab.com/ee/ci/>`_.
+
+.. only:: subproject and html
+
+   Indices
+   =======
+
+   * :ref:`genindex`
+
+Setup
+-----
+
+The kci-gitlab pipeline is set up with minimal configuration required. Pushing code to a
+GitLab repository automatically triggers the pipeline provided the CI/CD configuration
+file path is set as per the instructions given below..
+
+    .. code-block:: bash
+
+      # Download the Linux kernel source code
+      git clone https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
+      # Create a repository on GitLab and add it as a remote
+      git remote add gitlab https://gitlab.yourinstance.com/your-username/your-repo.git
+      # In GitlabCI, go to Settings > CI/CD > General pipelines > CI/CD Configuration file
+      # and add the following path to it :-
+      tools/ci/gitlab-ci/gitlab-ci.yml
+      # Push the code to GitLab
+      git push gitlab
+
+.. image:: images/pipelines-on-push.png
+   :alt: Pipeline triggered on push
+   :align: center
+
+Troubleshooting
+---------------
+
+If the pipeline doesn't trigger automatically, check the following:
+
+1. **Enable CI/CD in Project Settings:**
+
+   - Go to `Settings > General > Visibility, project features, permissions`.
+   - Under `Repository`, ensure the `CI/CD` toggle is enabled.
+
+2. **Enable Container Registry:**
+
+   - Still in `Settings`, find the `Container Registry` section.
+   - Enable the `Container Registry` toggle.
+
+3. **CI Minutes and Resources:**
+
+   - If you've exhausted CI minutes or other resources on the Free Tier,
+     consider setting up a local GitLab runner (see below).
+
+Setting Up a Local GitLab Runner
+--------------------------------
+
+You can use your own machine as a runner, instead of the shared runners provided
+by your GitLab instance.
+
+1. **Generate a GitLab Runner Token:**
+
+   - Navigate to `Settings > CI/CD > Runners`.
+   - Expand the `Runners` section and click on "New project runner".
+   - Choose "Run untagged jobs" and click "Create runner".
+   - Copy the provided token.
+
+.. image:: images/new-project-runner.png
+   :alt: New project runner button
+   :align: center
+
+2. **Launch the Runner:**
+
+   - Ensure Docker is installed and your user is added to the Docker group:
+
+    .. code-block:: bash
+
+        sudo usermod -aG docker <your-user>
+
+   - Log in again to apply the changes.
+   - Set up the runner:
+
+    .. code-block:: bash
+
+     export GITLAB_RUNNER_TOKEN=<your_token>
+     export GITLAB_URL=https://gitlab.yourinstance.com  # Use this for instances other than gitlab.com
+     cd tools/ci/gitlab-ci
+     ./bootstrap-gitlab-runner.sh
+
+
+Current Pipeline Jobs
+---------------------
+
+stage: container
+^^^^^^^^^^^^^^^^
+
+**job: debian/x86_64_build debian/arm64_build**
+
+This job prepares the container for x86_64 and arm64 architectures that will be
+used by subsequent jobs. It starts from a base Debian image, installing necessary
+tools for building the kernel and running tests. The resulting image is pushed to
+the project registry and cached. If the image already exists in the registry, it
+won't be rebuilt.
+
+To force a rebuild, update the `FDO_DISTRIBUTION_TAG` variable in the
+`container.yml` file.
+
+stage: static-checks
+^^^^^^^^^^^^^^^^^^^^
+
+**job: checkpatch**
+
+Runs the `checkpatch.pl` script on the last `$ICI_PATCH_SERIES_SIZE` commits.
+This variable is determined by:
+
+- `ICI_PATCH_SERIES_SIZE=` The number of differing patches between target and
+  source branches for merge requests; Or
+- `ICI_PATCH_SERIES_SIZE=$KCI_PATCH_SERIES_SIZE` if `KCI_PATCH_SERIES_SIZE` is
+  set (see :ref:`how-to-set-variables` below).
+
+Defaults to 1 and raises a GitLab warning if unable to identify the number of
+commits.
+
+**job: smatch**
+
+Checks `.c` files in the last `$ICI_PATCH_SERIES_SIZE` commits. Creates a
+job based on architecture and configuration mentioned in the scenario specific
+yaml files.
+If a smatch database exists (see `job: smatch-db-generate` below), it reuses it.
+
+stage: build
+^^^^^^^^^^^^
+
+**job: build:arm32 build:arm64 build:x86_64**
+
+Compiles the kernel for each architecture and configuration
+in `container.yml`.
+
+Raises a GitLab warning if "warning" is found in the build log.
+
+.. image:: images/job-matrix.png
+   :alt: build kernel jobs
+   :align: center
+
+**job: build-docs**
+
+Builds documentation. Creates a job for each documentation type. Not run
+automatically; requires manual triggering.
+
+stage: test
+^^^^^^^^^^^
+
+**job: test-boot**
+
+Runs boot tests using virtme to launch a virtual machine and execute
+`test-boot.sh` script.
+
+stage: cache
+^^^^^^^^^^^^
+
+**job: smatch-db-generate**
+
+Generates a smatch database for use by the `smatch` job. Not run automatically;
+requires manual triggering.
+
+.. _extending-the-ci:
+
+Extending the CI - Test Scenarios (KCI_SCENARIO)
+------------------------------------------------
+
+The kci-gitlab pipeline offers flexibility and adaptability through the use of
+scenarios, enhancing the CI/CD process with broad customization options.
+Key capabilities include:
+
+- **Overriding Existing Jobs:** Tailor existing jobs to meet specific needs or
+  conditions.
+
+- **Changing Configurations:** Dynamically adapt job settings to suit various
+  environments or subsystem requirements.
+
+- **Defining New Jobs and Stages:** Introduce new jobs and stages for additional
+  tests, build processes, or deployment strategies.
+
+These features are particularly useful when a subsystem has distinct
+requirements. For instance, to enable testing different configurations for a
+specific architecture, running static checks with varied arguments, or
+installing specialized tools to conduct targeted tests.
+
+Writing a test scenario
+^^^^^^^^^^^^^^^^^^^^^^^
+
+The kci-gitlab pipeline configuration allows the inclusion of additional `.yml` files
+based on the `KCI_SCENARIO` variable. For example, setting `KCI_SCENARIO` to `my-scenario`
+includes `my-scenario.yml` from the `scenarios/<my-scenario>/` folder.
+
+A different container image can be built for the newly added scenario by modifying
+the FDO_DISTRIBUTION_TAG. FDO_DISTRIBUTION_EXEC can be used to run scripts to install
+the required tools for the container. To illustrate, building a container for a specific
+architecture with a custom configuration can be achieved by overriding the `build` job
+in the `scenarios/<my-scenario>/my-scenario.yml` file:
+
+.. code-block:: yaml
+
+    variables:
+      FDO_DISTRIBUTION_TAG: "<tag>"
+      FDO_DISTRIBUTION_EXEC: <script>
+
+    build:arm64:
+      variables:
+        KCI_KCONFIGS_ENABLE: "CONFIG1 CONFIG2"
+        KCI_DEFCONFIG: "my/custom/config1"
+
+We also need to add `scenarios/<my-scenario>/test.yml` to override the test-boot job
+and add job to run tests for the scenario.
+
+This modifies the builds and static checks for `arm64` with different configurations.
+
+To select this scenario, trigger the pipeline with KCI_SCENARIO=my-scenario. See
+:ref:`how-to-set-variables` below.
+
+Additionally, we need to add `scenarios/<my-scenario>/test.yml` to override the default
+test-boot job and add job to run tests for the scenario.
+
+DRM scenario
+^^^^^^^^^^^^
+
+Setting `KCI_SCENARIO` to `drm` includes `drm.yml` from the `scenarios/drm/` folder.
+
+A different container image can be built for the newly added `drm` scenario by modifying
+the FDO_DISTRIBUTION_TAG. FDO_DISTRIBUTION_EXEC runs the `prepare-container.sh` script,
+which installs the required tools (e.g., deqp-runner, IGT, Rust) for the container.
+To illustrate, building a container for a specific architecture with a custom
+configuration can be achieved by overriding the build job in the `scenarios/drm/drm.yml` file:
+
+.. code-block:: yaml
+
+    variables:
+      FDO_DISTRIBUTION_TAG: "<tag>"
+      FDO_DISTRIBUTION_EXEC: <prepare-container.sh>
+
+    build:arm64:
+      variables:
+        KCI_KCONFIGS_ENABLE: "DRM_VKMS DRM_BOCHS"
+
+This modifies the builds for x86_64 to enable VKMS driver in the kernel.
+
+Additionally, we need to add `scenarios/drm/test.yml` to override the default
+test-boot job and add job to run tests for the `drm` scenario.
+
+Below is a pipeline running IGT tests using igt-runner provided by
+deqp-runner for :ref:`VKMS <vkms>`.
+
+.. image:: images/drm-vkms.png
+   :alt: DRM vkms job
+   :align: center
+
+`deqp-runner tool <https://gitlab.freedesktop.org/mesa/deqp-runner>`_ supports parallel
+testing of various test suites, including dEQP, Piglit, GTest, and IGT GPU Tools,
+using baseline expectations and known flakes. deqp-runner contains experimental support
+for running IGT tests. `IGT GPU Tools <https://gitlab.freedesktop.org/drm/igt-gpu-tools>`_
+is a collection of tools for development and testing of the DRM drivers.
+
+Refer to Documentation/gpu/automated_testing.rst for details regarding
+fails/flakes/skips files.
+
+Variables
+---------
+
+kci-gitlab supports various variables to modify pipeline behavior or for use
+in jobs.
+
+- **CI_ Prefix:** Standard GitLab CI/CD variables (see GitLab documentation).
+- **KCI_ Prefix:** Custom variables defined for kernel CI.
+- **ICI_ Prefix:** Internal variables used between scripts (not for external
+  use).
+
+.. _how-to-set-variables:
+
+How to Set Variables
+--------------------
+
+Variables can be set in several ways:
+
+- **Project Settings:** Under `CI/CD > Variables`.
+- **Pipeline UI:** When triggering a pipeline manually.
+- **Command Line:** When triggering a pipeline manually (see
+  :ref:`triggering-pipelines-from-command-line` below).
+- **YML Files:** Using the `variables` keyword.
+- **Commit Message:** For runtime variables only (see
+  :ref:`setting-variables-in-the-commit-message` below).
+
+.. image:: images/variables.png
+   :alt: Manual creation of pipeline
+   :align: center
+
+Variables Precedence
+--------------------
+
+- **Commit Message Variables:** Highest precedence if evaluated at runtime.
+- **Pipeline Variables:** Next in precedence.
+- **Project Variables:** Follow pipeline variables.
+- **YML File Variables:** Considered after the above levels.
+
+.. _setting-variables-in-the-commit-message:
+
+Setting Variables in the Commit Message
+---------------------------------------
+
+Runtime variables can be set in the commit message. Patterns like
+`KCI_VARIABLE=value` are extracted and exported to the job. To avoid including
+variables in the git history, add them after three dashes (`---`) in the commit
+message, as `git am` ignores text after this line.
+
+Example:
+
+.. code-block::
+
+    Title of my awesome commit
+
+    This is the commit message description of my awesome patch
+    ---
+    KCI_PATCH_SERIES_SIZE=4
+
+Description of Each Variable
+----------------------------
+
+**KCI_BUILD_ARCH**
+    Defines the build architecture to be used in FDO_REPO_SUFFIX for the container
+    image name.
+
+**KCI_KERNEL_ARCH**
+    Defines the architecture to be used in the kernel build jobs and static checks jobs.
+    Usually set in the `container.yml` or overridden in scenarios/<my-scenario>/my-scenario.yml.
+
+**KCI_DEFCONFIG**
+    Defines the config file to be used in the build-kernel and static checks
+    jobs. Usually set in the `container.yml` or overridden in scenarios/<my-scenario>/my-scenario.yml.
+
+**KCI_KCONFIGS_{ENABLE,DISABLE,MODULE}**
+    Defines the extra configs to be enabled, disabled or set as a module, used
+    in the build-kernel and static checks jobs. Usually set in the `container.yml` or
+    overridden in scenarios/<my-scenario>/my-scenario.yml.
+
+**KCI_SCENARIO**
+    Used to select which extra scenario file to include in the pipeline. See
+    :ref:`extending-the-ci` section above. Usually set by the user at project or
+    pipeline level.
+
+**KCI_CHECKPATCH_OPTIONS**
+    Used in `checkpatch.pl "$KCI_CHECKPATCH_OPTIONS"` (see checkpatch
+    documentation). It is commonly used with the --ignore flag to suppress
+    specific warnings generated by checkpatch.pl. It can also be defined in the
+    commit message, since it is evaluated in run time.
+
+**KCI_PATCH_SERIES_SIZE**
+    Used to define the size of the patch series, see `job: checkpatch` section
+    above. It is evaluated in run time, and can be set in the commit message.
+
+.. _triggering-pipelines-from-command-line:
+
+Triggering Pipelines from Command Line
+--------------------------------------
+
+Pipelines can be triggered from the command line with custom variables using the
+`GitLab CLI tool <https://docs.gitlab.com/ee/editor_extensions/gitlab_cli>`_.
+
+Example:
+
+.. code-block:: bash
+
+    glab auth login
+    glab ci run -b gitlab-draft -R https://gitlab.collabora.com/koike/linux/ --variables-env KCI_PATCH_SERIES_SIZE:4
+
+
+Debugging and Replicating Jobs Locally
+--------------------------------------
+
+When a job fails in GitLab CI/CD, it's handy to replicate the issue in the
+same environment used by the GitLab CI/CD runner. This allows for interactive
+execution of each step and the use of debugging tools to pinpoint the failure's
+root cause.
+
+Rather than repeatedly modifying scripts and running the entire pipeline for
+debugging, you can download the specific Docker image used by the job and run it
+locally.
+
+To do this, first inspect the failed job in GitLab CI/CD. Look for a message
+indicating the Docker image used, typically in this format:
+
+   Pulling docker image registry.gitlab.collabora.com/koike/linux/debian/bookworm-slim:2024-02-6-ci-test-1
+
+You can then use this image to run the job locally. For example:
+
+.. code-block:: bash
+
+   IMAGE=registry.gitlab.collabora.com/koike/linux/debian/bookworm-slim:2024-02-6-ci-test-1
+   docker pull $IMAGE
+   docker run --rm -v `pwd`:/linux -w /linux $IMAGE bash
+
+
+Suggestions
+-----------
+
+Send Pipeline Links with Your Patch
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+When submitting patches or merge requests, it's highly beneficial to include
+links to the related GitLab CI pipelines. This practice enhances the review
+process in several ways:
+
+1. **Immediate Visibility:** Reviewers can immediately see the results of
+   automated tests, making it easier to assess the patch's impact.
+
+2. **Increased Confidence:** Successful pipeline runs increase confidence in the
+   changes, demonstrating that they pass existing tests.
+
+3. **Efficient Troubleshooting:** If there are issues, pipeline links allow both
+   authors and reviewers to quickly access logs and test results, facilitating
+   faster troubleshooting and iteration.
+
+4. **Transparency:** Providing pipeline links promotes transparency in the
+   development process, making it clear how changes have been verified.
+
+To include a pipeline link in your patch or merge request, simply copy the URL
+of the pipeline from your GitLab project's CI/CD pipeline page and paste it into
+your commit description after three dashes (`---`) or as a reply to your email
+patch.
+
+Always Green Pipeline
+^^^^^^^^^^^^^^^^^^^^^
+
+Maintaining an "always green" pipeline refers to the practice of ensuring that
+the main branch's pipeline is always in a passing state. This approach has
+several advantages:
+
+1. **Reliable Main Branch:** A green pipeline indicates a stable and reliable
+   main branch, which is crucial for continuous integration practices.
+
+2. **Immediate Feedback:** Developers receive immediate feedback on their
+   changes. If a merge causes the pipeline to fail, it's a clear signal that the
+   change introduced an issue.
+
+3. **Faster Iteration:** An always green pipeline facilitates faster development
+   and iteration, as developers can confidently build on top of the latest main
+   branch without worrying about hidden failures.
+
+4. **Culture of Responsibility:** It fosters a culture of responsibility, where
+   developers are encouraged to fix broken builds promptly and avoid merging
+   changes that could disrupt the pipeline.
Documentation/index.rst +7 -0
index f9f525f4c0dd..701e70b54780 100644
@@ -101,6 +101,13 @@ Architecture-specific documentation
 
    CPU architectures <arch/index>
 
+CI: Automated testing documentation
+===================================
+
+.. toctree::
+   :maxdepth: 2
+
+   ci/gitlab-ci/gitlab-ci
 
 Other documentation
 ===================
Signature · 1 line
2.43.0
#9 lore raw

PATCH v2 5/5 kci-gitlab: docs: Add images

In reply to Vignesh Raman

From: Helen Koike <[email protected]>

Add images to kci-gitlab documentation.

---
KCI_PATCH_SERIES_SIZE=3 KCI_CHECKPATCH_OPTIONS="--ignore FILE_PATH_CHANGES"

---
 Documentation/ci/gitlab-ci/images/drm-vkms.png | Bin 0 -> 73810 bytes
 .../ci/gitlab-ci/images/job-matrix.png         | Bin 0 -> 20000 bytes
 .../ci/gitlab-ci/images/new-project-runner.png | Bin 0 -> 607737 bytes
 .../ci/gitlab-ci/images/pipelines-on-push.png  | Bin 0 -> 532143 bytes
 .../ci/gitlab-ci/images/the-pipeline.png       | Bin 0 -> 62464 bytes
 .../ci/gitlab-ci/images/variables.png          | Bin 0 -> 277518 bytes
 6 files changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 Documentation/ci/gitlab-ci/images/drm-vkms.png
 create mode 100644 Documentation/ci/gitlab-ci/images/job-matrix.png
 create mode 100644 Documentation/ci/gitlab-ci/images/new-project-runner.png
 create mode 100644 Documentation/ci/gitlab-ci/images/pipelines-on-push.png
 create mode 100644 Documentation/ci/gitlab-ci/images/the-pipeline.png
 create mode 100644 Documentation/ci/gitlab-ci/images/variables.png
Documentation/ci/gitlab-ci/images/drm-vkms.png new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..f79af2265a330be67daddfe5f6c866b8fea2ed32
GIT binary patch
Documentation/ci/gitlab-ci/images/job-matrix.png new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..2d8776cf654240ece99e2ceb98da668a76d0d26b
GIT binary patch
Documentation/ci/gitlab-ci/images/new-project-runner.png new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..d59de9f7eeab8982a61e872824c1a69c1027c532
GIT binary patch
Documentation/ci/gitlab-ci/images/pipelines-on-push.png new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..569c1d63503cf1a21b4a8fd9d01942b4dab86e97
GIT binary patch
Documentation/ci/gitlab-ci/images/the-pipeline.png new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..a9a2afa3855b7849bf82d584eb21e8b8f0fced92
GIT binary patch
Documentation/ci/gitlab-ci/images/variables.png new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..02cfe146614a8cd60498ed132d80cc65896cf0bf
GIT binary patch
Signature · 1 line
2.43.0
#10 lore raw

Re: [PATCH v2 5/5] kci-gitlab: docs: Add images

Quoted 7 lines · Vignesh Raman
 Documentation/ci/gitlab-ci/images/drm-vkms.png | Bin 0 -> 73810 bytes
 .../ci/gitlab-ci/images/job-matrix.png         | Bin 0 -> 20000 bytes
 .../ci/gitlab-ci/images/new-project-runner.png | Bin 0 -> 607737 bytes
 .../ci/gitlab-ci/images/pipelines-on-push.png  | Bin 0 -> 532143 bytes
 .../ci/gitlab-ci/images/the-pipeline.png       | Bin 0 -> 62464 bytes
 .../ci/gitlab-ci/images/variables.png          | Bin 0 -> 277518 bytes

This seems excessive.

We have a few images in the tree, but they tend to be either the penguin logo or various source SVGs.

Not a set of random screenshots or whatever.

Linus

#11 lore raw

Re: [PATCH v2 5/5] kci-gitlab: docs: Add images

Le jeudi 23 janvier 2025 à 07:46 -0800, Linus Torvalds a écrit :

Quoted 10 lines · Vignesh Raman
Quoted 7 lines
 Documentation/ci/gitlab-ci/images/drm-vkms.png | Bin 0 -> 73810 bytes
 .../ci/gitlab-ci/images/job-matrix.png         | Bin 0 -> 20000 bytes
 .../ci/gitlab-ci/images/new-project-runner.png | Bin 0 -> 607737 bytes
 .../ci/gitlab-ci/images/pipelines-on-push.png  | Bin 0 -> 532143 bytes
 .../ci/gitlab-ci/images/the-pipeline.png       | Bin 0 -> 62464 bytes
 .../ci/gitlab-ci/images/variables.png          | Bin 0 -> 277518 bytes
Quoted 6 lines

This seems excessive.

We have a few images in the tree, but they tend to be either the penguin logo or various source SVGs.

Not a set of random screenshots or whatever.

I can only agree.

Nicolas

Quoted 2 lines

Linus

#12 lore raw

Re: [PATCH v2 5/5] kci-gitlab: docs: Add images

In reply to Linus Torvalds

Hi Linus,

Quoted 10 lines · Linus Torvalds
Quoted 7 lines · Vignesh Raman
  Documentation/ci/gitlab-ci/images/drm-vkms.png | Bin 0 -> 73810 bytes
  .../ci/gitlab-ci/images/job-matrix.png         | Bin 0 -> 20000 bytes
  .../ci/gitlab-ci/images/new-project-runner.png | Bin 0 -> 607737 bytes
  .../ci/gitlab-ci/images/pipelines-on-push.png  | Bin 0 -> 532143 bytes
  .../ci/gitlab-ci/images/the-pipeline.png       | Bin 0 -> 62464 bytes
  .../ci/gitlab-ci/images/variables.png          | Bin 0 -> 277518 bytes
Quoted 6 lines

This seems excessive.

We have a few images in the tree, but they tend to be either the penguin logo or various source SVGs.

Not a set of random screenshots or whatever.

We will remove this commit and update the documentation. Thanks.

Regards,
Vignesh

Quoted 2 lines

Linus

#13 lore raw
In reply to Vignesh Raman
Quoted 6 lines · Vignesh Raman

We are working towards creating a generic, upstream GitLab-CI pipeline (kci-gitlab) that will replace DRM-CI [1]. The proposed GitLab-CI pipeline is designed with a distributed infrastructure model, making it possible to run on any gitLab instance. We plan to leverage KernelCI [2] as the backend, utilizing its hardware, rootfs, test plans, and KCIDB [3] integration.

Why can't you keep the next version of your great pipeline outside the kernel tree?

If there is a legit motivation for doing that, why it needs to be bound to Gitlab? Why can't you make script callable from any CI?

BR, Jarkko

#14 lore raw
Quoted 8 lines · Jarkko Sakkinen
Quoted 6 lines · Vignesh Raman

We are working towards creating a generic, upstream GitLab-CI pipeline (kci-gitlab) that will replace DRM-CI [1]. The proposed GitLab-CI pipeline is designed with a distributed infrastructure model, making it possible to run on any gitLab instance. We plan to leverage KernelCI [2] as the backend, utilizing its hardware, rootfs, test plans, and KCIDB [3] integration.

Quoted 5 lines

Why can't you keep the next version of your great pipeline outside the kernel tree?

If there is a legit motivation for doing that, why it needs to be bound to Gitlab? Why can't you make script callable from any CI?

To add, most of the distributions have their CI pipelines but they don't proactively push them over here.

BR, Jarkko

#15 lore raw
In reply to Jarkko Sakkinen

Hi Jarkko,

Quoted 8 lines · Jarkko Sakkinen
Quoted 6 lines · Vignesh Raman

We are working towards creating a generic, upstream GitLab-CI pipeline (kci-gitlab) that will replace DRM-CI [1]. The proposed GitLab-CI pipeline is designed with a distributed infrastructure model, making it possible to run on any gitLab instance. We plan to leverage KernelCI [2] as the backend, utilizing its hardware, rootfs, test plans, and KCIDB [3] integration.

Quoted 5 lines

Why can't you keep the next version of your great pipeline outside the kernel tree?

If there is a legit motivation for doing that, why it needs to be bound to Gitlab? Why can't you make script callable from any CI?

Greetings from the (today's) sunny Espoo!

Of course we could keep it outside the kernel tree. However, the point of this contribution is to provide kernel maintainers and developers with an easy way to setup their CI pipeline on a GitLab instance (the main one, FreeDesktop one, or any other). Basically this is like a template or a library, if you wish, which helps you do that. Approved by Linus too.

Why GitLab? Because it's one of the best, if not *the* best CI system these days, with lots of flexibility, and it's Open-Source too (well, at least open-core, which is still very capable). And also because a number of maintainers and companies are already using it.

Sure, a script could be contributed too, but the value of this contribution is a ready-made integration. And we want to make it easily discoverable, and easily contributed to.

BTW, here's the talk we gave at last year's LPC regarding current use of GitLab in the kernel and surrounding community:

https://lpc.events/event/18/contributions/1728/

Nick

#16 lore raw
Quoted 17 lines · Nikolai Kondrashov

Hi Jarkko,

Quoted 8 lines · Jarkko Sakkinen
Quoted 6 lines · Vignesh Raman

We are working towards creating a generic, upstream GitLab-CI pipeline (kci-gitlab) that will replace DRM-CI [1]. The proposed GitLab-CI pipeline is designed with a distributed infrastructure model, making it possible to run on any gitLab instance. We plan to leverage KernelCI [2] as the backend, utilizing its hardware, rootfs, test plans, and KCIDB [3] integration.

Quoted 5 lines

Why can't you keep the next version of your great pipeline outside the kernel tree?

If there is a legit motivation for doing that, why it needs to be bound to Gitlab? Why can't you make script callable from any CI?

Quoted 7 lines

Greetings from the (today's) sunny Espoo!

Of course we could keep it outside the kernel tree. However, the point of this contribution is to provide kernel maintainers and developers with an easy way to setup their CI pipeline on a GitLab instance (the main one, FreeDesktop one, or any other). Basically this is like a template or a library, if you wish, which helps you do that. Approved by Linus too.

With all due respect, "approved by Linus" is not an argument :-) I get that Linus can make the "ultimate decision" but in argumentation I'm not a strong believer of authority based decision making process. Not downplaying this more than that I knowingly ignore this comment.

Quoted 4 lines

Why GitLab? Because it's one of the best, if not *the* best CI system these days, with lots of flexibility, and it's Open-Source too (well, at least open-core, which is still very capable). And also because a number of maintainers and companies are already using it.

There's also Github Runners and Woodpecker CI used by Codeberg. To add, some companies and other organizations prefer Jenkins. This one fit for all strategy is somewhat short-sighted.

Also running Gitlab tasks locally is possible but is heavy-lifting.

Can we then agree that any CI changes can be sent untested to LKML if a patch set needs to reflect on those? It's not reasonable to except local runs Gitlab from individuals for patch sets. It makes our lives more difficult, not easier.

All maintainers I know test their patches for the most part with BuildRoot, distro VM's and stuff like that. Not claiming that they don't exist, but never heard of kernel maintainer who uses Gitlab as their main kernel testing tool.

Quoted 3 lines

Sure, a script could be contributed too, but the value of this contribution is a ready-made integration. And we want to make it easily discoverable, and easily contributed to.

This is definitely NOT "lots of flexibility".

Are you dead seriously claiming that DevOps engineers could not handle well defined CI scripts and bind to whatever CI makes sense to them? o_O

Quoted 5 lines

BTW, here's the talk we gave at last year's LPC regarding current use of GitLab in the kernel and surrounding community:

https://lpc.events/event/18/contributions/1728/

This patch set should make the case, not an old presentation.

Quoted 1 line

Nick

BR, Jarkko

#17 lore raw

Hi Jarkko,

Quoted 11 lines · Jarkko Sakkinen
Quoted 5 lines · Nikolai Kondrashov

Of course we could keep it outside the kernel tree. However, the point of this contribution is to provide kernel maintainers and developers with an easy way to setup their CI pipeline on a GitLab instance (the main one, FreeDesktop one, or any other). Basically this is like a template or a library, if you wish, which helps you do that. Approved by Linus too.

With all due respect, "approved by Linus" is not an argument :-) I get that Linus can make the "ultimate decision" but in argumentation I'm not a strong believer of authority based decision making process. Not downplaying this more than that I knowingly ignore this comment.

Sure, fair enough!

Quoted 8 lines
Quoted 4 lines

Why GitLab? Because it's one of the best, if not *the* best CI system these days, with lots of flexibility, and it's Open-Source too (well, at least open-core, which is still very capable). And also because a number of maintainers and companies are already using it.

There's also Github Runners and Woodpecker CI used by Codeberg. To add, some companies and other organizations prefer Jenkins. This one fit for all strategy is somewhat short-sighted.

We're not suggesting everyone should use this. We've just been using it, know it well, know it works, and so are trying to help people use it. Please feel free to use something else, and of course contribute the corresponding CI setup to the kernel repo! Not that I can stop anyone, of course, but that's the idea behind this. Note the "/ci/gitlab-ci/" path. Anything which could help maintainers/developers integrate testing with their development workflow cango under "/ci/", I think.

Quoted 1 line

Also running Gitlab tasks locally is possible but is heavy-lifting.

Yeah, it's not perfect.

Quoted 4 lines

Can we then agree that any CI changes can be sent untested to LKML if a patch set needs to reflect on those? It's not reasonable to except local runs Gitlab from individuals for patch sets. It makes our lives more difficult, not easier.

This is not really for individual contributors, but for maintainers/subsystems to help automate their team's (and contributor's) testing.

And this is not saying you're required to run GitLab CI for your contribution. It's up to a particular subsystem to decide their policies: whether to just have the maintainers send contributions off to a GitLab CI instance during review, or larger merges, give co-maintainers access to it, or require contributors to submit an (automatically-tested) MR.

If you send patches changing CI, then of course you're expected to test it, as with any contribution to any project. But if you're not running it, why would you do that? And if you or the recipient maintainer run it, then you get it tested automatically.

Quoted 4 lines

All maintainers I know test their patches for the most part with BuildRoot, distro VM's and stuff like that. Not claiming that they don't exist, but never heard of kernel maintainer who uses Gitlab as their main kernel testing tool.

Well, some of the people in this discussion do that, and more are mentioned in that talk I linked. But sure, I think contributing their setups to the kernel tree would help others who want to automate their testing.

Quoted 9 lines
Quoted 3 lines

Sure, a script could be contributed too, but the value of this contribution is a ready-made integration. And we want to make it easily discoverable, and easily contributed to.

This is definitely NOT "lots of flexibility".

Are you dead seriously claiming that DevOps engineers could not handle well defined CI scripts and bind to whatever CI makes sense to them? o_O

No, of course not. This is simply to make life easier for maintainers, who are not necessarily DevOps engineers themselves, and want to try it out, or have it setup.

Of course, having well-defined CI scripts would be great, and we enjoy e.g. well-defined make interface in CI, for example. I assume engineers who implemented this (Helen et al.) would be happy to use such a script, if it existed and was suitable. The problem is that it would still need to interface with GitLab CI, which is while flexible, suffers the flip-side problem of being complex. And that's where the devil is, and this contribution is trying to help defeat it.

Quoted 6 lines
Quoted 4 lines

BTW, here's the talk we gave at last year's LPC regarding current use of GitLab in the kernel and surrounding community:

https://lpc.events/event/18/contributions/1728/

This patch set should make the case, not an old presentation.

Well, I'm sure there are angles not covered by the cover letter and commit messages of this contribution, and I'm partially to blame, as I was one of the pre-reviewers. However, I'm sure we have left more stuff uncovered than we discuss here, even considering the discussion of the first version. And so I provided the link to the talk as a rectification. But if it would help, I can provide a summary of it here too.

Nick

#18 lore raw
In reply to Jarkko Sakkinen
Quoted 4 lines · Jarkko Sakkinen

Can we then agree that any CI changes can be sent untested to LKML if a patch set needs to reflect on those? It's not reasonable to except local runs Gitlab from individuals for patch sets. It makes our lives more difficult, not easier.

I think the theory here is that this more shared building blocks for people who want to set something up using gitlab rather than the one true CI system that everyone has to use. Even with people who do end up using gitlab there's going to be issues with things like hardware access and just realistic resources which mean that not everyone can test everything. We generally have an expectation that people will make a reasonable effort to test things, not that they're going to cover everything, and I don't see why this should be different.

Quoted 4 lines

All maintainers I know test their patches for the most part with BuildRoot, distro VM's and stuff like that. Not claiming that they don't exist, but never heard of kernel maintainer who uses Gitlab as their main kernel testing tool.

There's a huge diversity in what people are using for their CI infrastructure, gitlab instances are definitely in there already. The last time I looked at the implementation the clang testing was driven through gitlab, AIUI the DRM and media systems also have something. One of the ways gitlab is handy is that it's something that companies are likely to have set up anyway which helps with getting things provisioned.

Quoted 9 lines
Quoted 3 lines

Sure, a script could be contributed too, but the value of this contribution is a ready-made integration. And we want to make it easily discoverable, and easily contributed to.

This is definitely NOT "lots of flexibility".

Are you dead seriously claiming that DevOps engineers could not handle well defined CI scripts and bind to whatever CI makes sense to them? o_O

There's going to be an audience out there for people who aren't specifically devops people and would find it helpful to have something to look at when getting started, and even where people are capable of doing the work it seems helpful to pool effort on the more common stuff.

#19 lore raw
In reply to Jarkko Sakkinen
Quoted 34 lines · Jarkko Sakkinen
Quoted 15 lines · Nikolai Kondrashov
Quoted 8 lines · Jarkko Sakkinen
Quoted 6 lines · Vignesh Raman

We are working towards creating a generic, upstream GitLab-CI pipeline (kci-gitlab) that will replace DRM-CI [1]. The proposed GitLab-CI pipeline is designed with a distributed infrastructure model, making it possible to run on any gitLab instance. We plan to leverage KernelCI [2] as the backend, utilizing its hardware, rootfs, test plans, and KCIDB [3] integration.

Quoted 5 lines

Why can't you keep the next version of your great pipeline outside the kernel tree?

If there is a legit motivation for doing that, why it needs to be bound to Gitlab? Why can't you make script callable from any CI?

Quoted 7 lines

Greetings from the (today's) sunny Espoo!

Of course we could keep it outside the kernel tree. However, the point of this contribution is to provide kernel maintainers and developers with an easy way to setup their CI pipeline on a GitLab instance (the main one, FreeDesktop one, or any other). Basically this is like a template or a library, if you wish, which helps you do that. Approved by Linus too.

With all due respect, "approved by Linus" is not an argument :-) I get that Linus can make the "ultimate decision" but in argumentation I'm not a strong believer of authority based decision making process. Not downplaying this more than that I knowingly ignore this comment.

Quoted 4 lines

Why GitLab? Because it's one of the best, if not *the* best CI system these days, with lots of flexibility, and it's Open-Source too (well, at least open-core, which is still very capable). And also because a number of maintainers and companies are already using it.

Quoted 5 lines

There's also Github Runners and Woodpecker CI used by Codeberg. To add, some companies and other organizations prefer Jenkins. This one fit for all strategy is somewhat short-sighted.

Also running Gitlab tasks locally is possible but is heavy-lifting.

That's my personal opinion too. In all the CI pipelines I've designed (which totals to an amount of exactly one) I've implemented as much as possible in shell scripts that are called from a minimal service-specific CI configuration. I find this architecture to ease running tests locally.

Quoted 9 lines

Can we then agree that any CI changes can be sent untested to LKML if a patch set needs to reflect on those? It's not reasonable to except local runs Gitlab from individuals for patch sets. It makes our lives more difficult, not easier.

All maintainers I know test their patches for the most part with BuildRoot, distro VM's and stuff like that. Not claiming that they don't exist, but never heard of kernel maintainer who uses Gitlab as their main kernel testing tool.

That's highly subsystem-specific, and depends on what kind of testing is performed. The Linux media subsystem recently adopted gitlab.freedesktop.org for compilation and other static tests. As a developer, I compile-test my kernel patches locally, and run them on hardware without going through CI pipelines.

Quoted 16 lines
Quoted 3 lines

Sure, a script could be contributed too, but the value of this contribution is a ready-made integration. And we want to make it easily discoverable, and easily contributed to.

This is definitely NOT "lots of flexibility".

Are you dead seriously claiming that DevOps engineers could not handle well defined CI scripts and bind to whatever CI makes sense to them? o_O

Quoted 4 lines

BTW, here's the talk we gave at last year's LPC regarding current use of GitLab in the kernel and surrounding community:

https://lpc.events/event/18/contributions/1728/

This patch set should make the case, not an old presentation.

Signature · 3 lines
Regards,

Laurent Pinchart
#20 lore raw
In reply to Vignesh Raman
Quoted 52 lines · Vignesh Raman

This patch series introduces "kci-gitlab," a GitLab CI pipeline specifically designed for kernel testing. It provides kernel developers with an integrated, efficient, and flexible testing framework using GitLab's CI/CD capabilities. This patch includes a .gitlab-ci file in the tools/ci/gitlab-ci/ folder, along with additional YAML and script files, to define a basic test pipeline triggered by code pushes to a GitLab-CI instance.
The initial version implements:

- Static checks: Includes checkpatch and smatch for code validation.
- Build tests: Covers various architectures and configurations.
- Boot tests: Utilizes virtme for basic boot testing.

Additionally, it introduces a flexible "scenarios" mechanism to support subsystem-specific extensions.

This series also introduces a drm scenario that adds a job to run IGT tests for vkms. This scenario includes helper scripts to build deqp-runner and IGT, leveraging approaches from the drm-ci/mesa-ci project.

We are working towards creating a generic, upstream GitLab-CI pipeline (kci-gitlab) that will replace DRM-CI [1]. The proposed GitLab-CI pipeline is designed with a distributed infrastructure model, making it possible to run on any gitLab instance. We plan to leverage KernelCI [2] as the backend, utilizing its hardware, rootfs, test plans, and KCIDB [3] integration.

For an example of a fully executed pipeline with drm scenario set, including documentation generation,
see: https://gitlab.freedesktop.org/vigneshraman/kernel/-/pipelines/1350262

Please refer to the documentation included in the patch, or check the rendered version, here:
https://vigneshraman.pages.freedesktop.org/-/kernel/-/jobs/69787927/artifacts/artifacts/Documentation-output/ci/gitlab-ci/gitlab-ci.html

Differences from v1 to v2:
- moved to tools/ci as suggested by Linus on the previous version
- add arm64 containers for native compilation
- added boot tests using virtme: this is the base structure for boot tests, next steps would be adding other tests such as kselftests/kunit tests
- added DRM scenario testing on vkms: this should replace current vkms test in drm-ci. This work shows how a test scenario can be used by different subsystems to add their tests.
- update documentation

For more details on the motivation behind this work, please refer to the
cover letter of v1: https://patchwork.kernel.org/project/linux-kselftest/cover/[email protected]/

[1] https://www.collabora.com/news-and-blog/blog/2024/02/08/drm-ci-a-gitlab-ci-pipeline-for-linux-kernel-testing/
[2] https://kernelci.org/
[3] https://docs.kernelci.org/kcidb/

Quoted 8 lines

Helen Koike (3):
kci-gitlab: Introducing GitLab-CI Pipeline for Kernel Testing
kci-gitlab: Add documentation
kci-gitlab: docs: Add images

Vignesh Raman (2):
MAINTAINERS: Add an entry for ci automated testing
kci-gitlab: Add drm scenario

Hi Vignesh Raman,
I am very happy to see this project going forward :)

It's been a few years since I first thought on finding a good way of helping kernel developers testing their patches, while making use of the free runner minutes Gitlab offers. It can greatly simplify the testing for people who are new to kernel development, or students trying to understand it better.

And this patchset allows that to happen :)

Actually, I spoke to Helen last year, and to enable it to run on the free Gitlab-CI runners, there is a small extra patch which is needed:

https://lore.kernel.org/all/[email protected]/

Could you please apply it on top of your tree?
Some stuff changed places, but I can send a v2 with that fix if you want.

While I have yet to review this v2 patchset, I applied it on my repo for testing, and cherry-picked the patch on above link, triggering a Pipeline:

https://gitlab.com/linux-kernel/linux/-/pipelines/1638955600

It seems to be working fine, please check it, as you may be more used to the results.

Thanks!
Leo

#21 lore raw
Quoted 70 lines · Leonardo Brás
Quoted 52 lines · Vignesh Raman

This patch series introduces "kci-gitlab," a GitLab CI pipeline specifically designed for kernel testing. It provides kernel developers with an integrated, efficient, and flexible testing framework using GitLab's CI/CD capabilities. This patch includes a .gitlab-ci file in the tools/ci/gitlab-ci/ folder, along with additional YAML and script files, to define a basic test pipeline triggered by code pushes to a GitLab-CI instance.
The initial version implements:

- Static checks: Includes checkpatch and smatch for code validation.
- Build tests: Covers various architectures and configurations.
- Boot tests: Utilizes virtme for basic boot testing.

Additionally, it introduces a flexible "scenarios" mechanism to support subsystem-specific extensions.

This series also introduces a drm scenario that adds a job to run IGT tests for vkms. This scenario includes helper scripts to build deqp-runner and IGT, leveraging approaches from the drm-ci/mesa-ci project.

We are working towards creating a generic, upstream GitLab-CI pipeline (kci-gitlab) that will replace DRM-CI [1]. The proposed GitLab-CI pipeline is designed with a distributed infrastructure model, making it possible to run on any gitLab instance. We plan to leverage KernelCI [2] as the backend, utilizing its hardware, rootfs, test plans, and KCIDB [3] integration.

For an example of a fully executed pipeline with drm scenario set, including documentation generation,
see: https://gitlab.freedesktop.org/vigneshraman/kernel/-/pipelines/1350262

Please refer to the documentation included in the patch, or check the rendered version, here:
https://vigneshraman.pages.freedesktop.org/-/kernel/-/jobs/69787927/artifacts/artifacts/Documentation-output/ci/gitlab-ci/gitlab-ci.html

Differences from v1 to v2:
- moved to tools/ci as suggested by Linus on the previous version
- add arm64 containers for native compilation
- added boot tests using virtme: this is the base structure for boot tests, next steps would be adding other tests such as kselftests/kunit tests
- added DRM scenario testing on vkms: this should replace current vkms test in drm-ci. This work shows how a test scenario can be used by different subsystems to add their tests.
- update documentation

For more details on the motivation behind this work, please refer to the
cover letter of v1: https://patchwork.kernel.org/project/linux-kselftest/cover/[email protected]/

[1] https://www.collabora.com/news-and-blog/blog/2024/02/08/drm-ci-a-gitlab-ci-pipeline-for-linux-kernel-testing/
[2] https://kernelci.org/
[3] https://docs.kernelci.org/kcidb/

Quoted 8 lines

Helen Koike (3):
kci-gitlab: Introducing GitLab-CI Pipeline for Kernel Testing
kci-gitlab: Add documentation
kci-gitlab: docs: Add images

Vignesh Raman (2):
MAINTAINERS: Add an entry for ci automated testing
kci-gitlab: Add drm scenario

Hi Vignesh Raman,
I am very happy to see this project going forward :)

It's been a few years since I first thought on finding a good way of helping kernel developers testing their patches, while making use of the free runner minutes Gitlab offers. It can greatly simplify the testing for people who are new to kernel development, or students trying to understand it better.

Quoted 6 lines

And this patchset allows that to happen :)

Actually, I spoke to Helen last year, and to enable it to run on the free Gitlab-CI runners, there is a small extra patch which is needed:

https://lore.kernel.org/all/[email protected]/

Gitlab as an open-source software project (the community edition) is one thing, but can we please avoid advertising specific proprietary services in the kernel documentation ?

Quoted 14 lines

Could you please apply it on top of your tree?
Some stuff changed places, but I can send a v2 with that fix if you want.

While I have yet to review this v2 patchset, I applied it on my repo for testing, and cherry-picked the patch on above link, triggering a Pipeline:

https://gitlab.com/linux-kernel/linux/-/pipelines/1638955600

It seems to be working fine, please check it, as you may be more used to the results.

Thanks!
Leo

Signature · 3 lines
Regards,

Laurent Pinchart
#22 lore raw
Quoted 3 lines · Laurent Pinchart

Gitlab as an open-source software project (the community edition) is one thing, but can we please avoid advertising specific proprietary services in the kernel documentation ?

I don't think we should have any of this in the mainline kernel.

One angle is that "no regressions rule" applies also to the shenanigans.

Do we really spend energy on this proprietary crap to the eternity?

BR, Jarkko

#23 lore raw
Quoted 10 lines · Jarkko Sakkinen
Quoted 3 lines · Laurent Pinchart

Gitlab as an open-source software project (the community edition) is one thing, but can we please avoid advertising specific proprietary services in the kernel documentation ?

I don't think we should have any of this in the mainline kernel.

One angle is that "no regressions rule" applies also to the shenanigans.

Do we really spend energy on this proprietary crap to the eternity?

This is not getting included into the kernel itself, the contributed code is, of course, open-source. And yes it would execute just fine on the fully open-source community-edition GitLab. I don't think "no regressions rule" should apply here. This is for developers only, and is a template for making your own pipeline mostly, with pieces which can be reused.

Nick

#24 lore raw

Hi,

Le vendredi 24 janvier 2025 à 15:00 +0200, Nikolai Kondrashov a écrit :

Quoted 10 lines · Jarkko Sakkinen
Quoted 9 lines · Laurent Pinchart
Quoted 3 lines

Gitlab as an open-source software project (the community edition) is one thing, but can we please avoid advertising specific proprietary services in the kernel documentation ?

I don't think we should have any of this in the mainline kernel.

One angle is that "no regressions rule" applies also to the shenanigans.

Quoted 7 lines
Quoted 1 line

Do we really spend energy on this proprietary crap to the eternity?

This is not getting included into the kernel itself, the contributed code is, of course, open-source. And yes it would execute just fine on the fully open-source community-edition GitLab. I don't think "no regressions rule" should apply here. This is for developers only, and is a template for making your own pipeline mostly, with pieces which can be reused.

Perhpas worth clarifying that Media and DRM subsystem have opted for the Freedesktop instance. This instance is running the Open Source version of Gitlab, with hundreds of CI runners contributed and shared among many projects (which includes Mesa, GStreamer, Wayland, Pipewire, libcamera, just to name few).

Nicolas

#25 lore raw

Em Fri, 24 Jan 2025 09:26:33 -0500
Nicolas Dufresne <[email protected]> escreveu:

Quoted 20 lines

Hi,

Le vendredi 24 janvier 2025 à 15:00 +0200, Nikolai Kondrashov a écrit :

Quoted 17 lines · Jarkko Sakkinen
Quoted 10 lines · Laurent Pinchart
Quoted 3 lines

Gitlab as an open-source software project (the community edition) is one thing, but can we please avoid advertising specific proprietary services in the kernel documentation ?

I don't think we should have any of this in the mainline kernel.

One angle is that "no regressions rule" applies also to the shenanigans.

Do we really spend energy on this proprietary crap to the eternity?

This is not getting included into the kernel itself, the contributed code is, of course, open-source. And yes it would execute just fine on the fully open-source community-edition GitLab.

I don't think "no regressions rule" should apply here.

It doesn't, as this is not a Kernel userspace API. It is just some facility to integrate Kernel builds using a CI infrastructure. This can change with time as needed.

Still, once people start using it, developers need to take some care to avoid regressions that would cause CI builds to fail for the ones using such facilities.

Also, ideally, this should be completely independent of the Kernel version, e.g. if one sets up an infra using the version that was there when, let's say, Kernel 6.14 is released, the same CI scripts should work just fine with stable Kernels and even future Kernels.

Due to that, I'm not convinced that such kernel CI files should be hosted at the Kernel tree.

IMO, this should be stored on a separate repository hosted at kernel.org, using Semantic Versoning (https://semver.org/) - e. g. when there are incompatible changes, major version number will be increased.

Quoted 8 lines
Quoted 2 lines

This is for developers only, and is a template for making your own pipeline mostly, with pieces which can be reused.

Perhpas worth clarifying that Media and DRM subsystem have opted for the Freedesktop instance. This instance is running the Open Source version of Gitlab, with hundreds of CI runners contributed and shared among many projects (which includes Mesa, GStreamer, Wayland, Pipewire, libcamera, just to name few).

It doesn't matter much what git forge some projects are currently using, as things like that could change with time.

Starting with supporting just one type of git forge sounds OK to me, but long term goal should be to make it generic enough to be used with as much CI engines as possible - not only forges developed by companies that provide paid services like Gitlab/Github, but also completely open source forges and even Jenkins.

Thanks,
Mauro

#26 lore raw

Hi Mauro,

---- On Fri, 24 Jan 2025 12:29:16 -0300 Mauro Carvalho Chehab wrote ---

Quoted 28 lines

Em Fri, 24 Jan 2025 09:26:33 -0500
Nicolas Dufresne [email protected]> escreveu:

Quoted 20 lines

Hi,

Le vendredi 24 janvier 2025 à 15:00 +0200, Nikolai Kondrashov a écrit :

Quoted 17 lines · Jarkko Sakkinen
Quoted 10 lines · Laurent Pinchart
Quoted 3 lines

Gitlab as an open-source software project (the community edition) is one thing, but can we please avoid advertising specific proprietary services in the kernel documentation ?

I don't think we should have any of this in the mainline kernel.

One angle is that "no regressions rule" applies also to the shenanigans.

Do we really spend energy on this proprietary crap to the eternity?

This is not getting included into the kernel itself, the contributed code is, of course, open-source. And yes it would execute just fine on the fully open-source community-edition GitLab.

I don't think "no regressions rule" should apply here.

It doesn't, as this is not a Kernel userspace API. It is just some facility to integrate Kernel builds using a CI infrastructure. This can change with time as needed.

Quoted 8 lines

Still, once people start using it, developers need to take some care to avoid regressions that would cause CI builds to fail for the ones using such facilities.

Also, ideally, this should be completely independent of the Kernel version, e.g. if one sets up an infra using the version that was there when, let's say, Kernel 6.14 is released, the same CI scripts should work just fine with stable Kernels and even future Kernels.

Or you can just configure your GitLab CI to work and an older version of the script by just pointing the right yaml URL at that versions in the configs, or am I missing something?

Quoted 8 lines

Due to that, I'm not convinced that such kernel CI files should be hosted at the Kernel tree.

IMO, this should be stored on a separate repository hosted at kernel.org, using Semantic Versoning (https://semver.org/) - e. g. when there are incompatible changes, major version number will be increased.

A key benefit of having it in-tree is the test expectation list, as seen with DRM-CI. This allows developers to track the state of drivers and progress over time by showing which tests are expected to pass or fail at a given point in history. (From what I see in DRM-CI, this adds a considerable amount of value.) Please check the VKMS patch in this patchset.

Also, if we keep this tool out of tree, I’m concerned that subsystems like DRM and Media will continue not collaborating—each currently has its own solution when the base could be shared and reused. All static checks, build processes, and boot mechanisms are fundamentally the same, with only minor differences that are customizable. Other subsystems could use just the base or build their specific configurations/tests on top of it.
Having it in-tree sends a message: "You can create your own GitLab CI pipeline, but why not use this existing one, contribute to it, and collaborate for everyone's benefit?".
Since it's under the tools/ folder, it’s a helper tool.

Make sense?

Thanks,
Helen

Quoted 22 lines
Quoted 9 lines
Quoted 3 lines

This is for developers only, and is a template for making your own pipeline mostly, with pieces which can be reused.

Perhpas worth clarifying that Media and DRM subsystem have opted for the Freedesktop instance. This instance is running the Open Source version of Gitlab, with hundreds of CI runners contributed and shared among many projects (which includes Mesa, GStreamer, Wayland, Pipewire, libcamera, just to name few).

It doesn't matter much what git forge some projects are currently using, as things like that could change with time.

Starting with supporting just one type of git forge sounds OK to me, but long term goal should be to make it generic enough to be used with as much CI engines as possible - not only forges developed by companies that provide paid services like Gitlab/Github, but also completely open source forges and even Jenkins.

Thanks,
Mauro

#27 lore raw
Quoted 64 lines

-----Original Message-----
From: Helen Mae Koike Fornazier <[email protected]> Hi Mauro,

---- On Fri, 24 Jan 2025 12:29:16 -0300 Mauro Carvalho Chehab wrote ---

Quoted 28 lines

Em Fri, 24 Jan 2025 09:26:33 -0500
Nicolas Dufresne [email protected]> escreveu:

Quoted 20 lines

Hi,

Quoted 17 lines · Nikolai Kondrashov
Quoted 10 lines · Jarkko Sakkinen
Quoted 3 lines · Laurent Pinchart

Gitlab as an open-source software project (the community edition) is one thing, but can we please avoid advertising specific proprietary services in the kernel documentation ?

I don't think we should have any of this in the mainline kernel.

One angle is that "no regressions rule" applies also to the shenanigans.

Do we really spend energy on this proprietary crap to the eternity?

This is not getting included into the kernel itself, the contributed code is, of course, open-source. And yes it would execute just fine on the fully open-source community-edition GitLab.

I don't think "no regressions rule" should apply here.

It doesn't, as this is not a Kernel userspace API. It is just some facility to integrate Kernel builds using a CI infrastructure. This can change with time as needed.

Quoted 8 lines

Still, once people start using it, developers need to take some care to avoid regressions that would cause CI builds to fail for the ones using such facilities.

Also, ideally, this should be completely independent of the Kernel version, e.g. if one sets up an infra using the version that was there when, let's say, Kernel 6.14 is released, the same CI scripts should work just fine with stable Kernels and even future Kernels.

Or you can just configure your GitLab CI to work and an older version of the script by just pointing the right yaml URL at that versions in the configs, or am I missing something?

Quoted 8 lines

Due to that, I'm not convinced that such kernel CI files should be hosted at the Kernel tree.

IMO, this should be stored on a separate repository hosted at kernel.org, using Semantic Versoning (https://semver.org/) - e. g. when there are incompatible changes, major version number will be increased.

A key benefit of having it in-tree is the test expectation list, as seen with DRM-CI. This allows developers to track the state of drivers and progress over time by showing which tests are expected to pass or fail at a given point in history. (From what I see in DRM-CI, this adds a considerable amount of value.) Please check the VKMS patch in this patchset.

Quoted 10 lines

Also, if we keep this tool out of tree, I’m concerned that subsystems like DRM and Media will continue not collaborating—each currently has its own solution when the base could be shared and reused. All static checks, build processes, and boot mechanisms are fundamentally the same, with only minor differences that are customizable. Other subsystems could use just the base or build their specific configurations/tests on top of it.
Having it in-tree sends a message: "You can create your own GitLab CI pipeline, but why not use this existing one, contribute to it, and collaborate for everyone's benefit?".
Since it's under the tools/ folder, it’s a helper tool.

Although I don't use gitlab CI for my kernel testing (I use Fuego), I've been waiting for this so that I can see if it's possible to leverage the information contained in it for my own CI system. I may not end up using the info myself, but at a minimum it will show me the info needed by another CI system.

Having this upstream is useful, IMHO, even if it just reflects a single CI system currently being used.
-- Tim

Quoted 22 lines
Quoted 21 lines
Quoted 8 lines
Quoted 2 lines

This is for developers only, and is a template for making your own pipeline mostly, with pieces which can be reused.

Perhpas worth clarifying that Media and DRM subsystem have opted for the Freedesktop instance. This instance is running the Open Source version of Gitlab, with hundreds of CI runners contributed and shared among many projects (which includes Mesa, GStreamer, Wayland, Pipewire, libcamera, just to name few).

It doesn't matter much what git forge some projects are currently using, as things like that could change with time.

Starting with supporting just one type of git forge sounds OK to me, but long term goal should be to make it generic enough to be used with as much CI engines as possible - not only forges developed by companies that provide paid services like Gitlab/Github, but also completely open source forges and even Jenkins.

Thanks,
Mauro

#28 lore raw
In reply to Helen Mae Koike Fornazier

Em Fri, 24 Jan 2025 16:49:30 -0300
Helen Mae Koike Fornazier <[email protected]> escreveu:

Quoted 38 lines

Hi Mauro,

---- On Fri, 24 Jan 2025 12:29:16 -0300 Mauro Carvalho Chehab wrote ---

Quoted 32 lines

Em Fri, 24 Jan 2025 09:26:33 -0500
Nicolas Dufresne [email protected]> escreveu:

Quoted 20 lines

Hi,

Le vendredi 24 janvier 2025 à 15:00 +0200, Nikolai Kondrashov a écrit :

Quoted 17 lines · Jarkko Sakkinen
Quoted 10 lines · Laurent Pinchart
Quoted 3 lines

Gitlab as an open-source software project (the community edition) is one thing, but can we please avoid advertising specific proprietary services in the kernel documentation ?

I don't think we should have any of this in the mainline kernel.

One angle is that "no regressions rule" applies also to the shenanigans.

Do we really spend energy on this proprietary crap to the eternity?

This is not getting included into the kernel itself, the contributed code is, of course, open-source. And yes it would execute just fine on the fully open-source community-edition GitLab.

I don't think "no regressions rule" should apply here.

It doesn't, as this is not a Kernel userspace API. It is just some facility to integrate Kernel builds using a CI infrastructure. This can change with time as needed.

Still, once people start using it, developers need to take some care to avoid regressions that would cause CI builds to fail for the ones using such facilities.

Quoted 8 lines
Quoted 4 lines

Also, ideally, this should be completely independent of the Kernel version, e.g. if one sets up an infra using the version that was there when, let's say, Kernel 6.14 is released, the same CI scripts should work just fine with stable Kernels and even future Kernels.

Or you can just configure your GitLab CI to work and an older version of the script by just pointing the right yaml URL at that versions in the configs, or am I missing something?

The problem of placing them altogether is that it would be hard to track incompatible changes, as there's not separate versioning for the yaml files.

Quoted 9 lines
Quoted 8 lines

Due to that, I'm not convinced that such kernel CI files should be hosted at the Kernel tree.

IMO, this should be stored on a separate repository hosted at kernel.org, using Semantic Versoning (https://semver.org/) - e. g. when there are incompatible changes, major version number will be increased.

Quoted 5 lines

A key benefit of having it in-tree is the test expectation list, as seen with DRM-CI. This allows developers to track the state of drivers and progress over time by showing which tests are expected to pass or fail at a given point in history. (From what I see in DRM-CI, this adds a considerable amount of value.) Please check the VKMS patch in this patchset.

I'm not saying that everything should be on a separate tree. Things like expected tests and test results are dependent at Kernel versions.

What I'm saying is that hosting CI-specific files a separate repository is better, as you can keep there what is generic.

Quoted 6 lines

Also, if we keep this tool out of tree, I’m concerned that subsystems like DRM and Media will continue not collaborating—each currently has its own solution when the base could be shared and reused. All static checks, build processes, and boot mechanisms are fundamentally the same, with only minor differences that are customizable. Other subsystems could use just the base or build their specific configurations/tests on top of it.

I'm in favor of having a common set of CI tooling for all subsystems interested on setting up CI. Yet moving part of it to be on a separate repository won't prevent collaboration. Also, either in or out of tree won't avoid different subsystems to use different solutions.

What would make people use it is the capability of quickly setting it up on a new repository. For this to happen, documentation is really important. Equally important is to have support for multiple git forges and other CI engines.

For instance, besides media and DRM, I'm also personally interested on having it setup for other subsystems that I also collaborate.

Quoted 5 lines

Having it in-tree sends a message: "You can create your own GitLab CI pipeline, but why not use this existing one, contribute to it, and collaborate for everyone's benefit?".

Since it's under the tools/ folder, it’s a helper tool.

It makes sense to have it documented at the Kernel Documentation folder and to have something at tools/ that would setup the git forge repositories used for CI to do Kernel builds.

Quoted 28 lines

Make sense?

Thanks,
Helen

Quoted 22 lines
Quoted 9 lines
Quoted 3 lines

This is for developers only, and is a template for making your own pipeline mostly, with pieces which can be reused.

Perhpas worth clarifying that Media and DRM subsystem have opted for the Freedesktop instance. This instance is running the Open Source version of Gitlab, with hundreds of CI runners contributed and shared among many projects (which includes Mesa, GStreamer, Wayland, Pipewire, libcamera, just to name few).

It doesn't matter much what git forge some projects are currently using, as things like that could change with time.

Starting with supporting just one type of git forge sounds OK to me, but long term goal should be to make it generic enough to be used with as much CI engines as possible - not only forges developed by companies that provide paid services like Gitlab/Github, but also completely open source forges and even Jenkins.

Thanks,
Mauro

Thanks,
Mauro

#29 lore raw
In reply to Nikolai Kondrashov
Quoted 10 lines · Nikolai Kondrashov
Quoted 9 lines · Jarkko Sakkinen
Quoted 3 lines · Laurent Pinchart

Gitlab as an open-source software project (the community edition) is one thing, but can we please avoid advertising specific proprietary services in the kernel documentation ?

I don't think we should have any of this in the mainline kernel.

One angle is that "no regressions rule" applies also to the shenanigans.

Quoted 7 lines
Quoted 1 line

Do we really spend energy on this proprietary crap to the eternity?

This is not getting included into the kernel itself, the contributed code is, of course, open-source. And yes it would execute just fine on the fully open-source community-edition GitLab. I don't think "no regressions rule" should apply here. This is for developers only, and is a template for making your own pipeline mostly, with pieces which can be reused.

Ah, OK then it is fine. It was a kernel list so I assumed it was for kernel.

Then: I don't care about this ;-) I use a different testing tool (BuildRoot) and a different CI (Woodpecker in my local server).

So go ahead and do what you like...

Quoted 2 lines

Nick

BR, Jarkko

#30 lore raw
In reply to Laurent Pinchart

Em Fri, 24 Jan 2025 10:12:50 +0200
Laurent Pinchart <[email protected]> escreveu:

Quoted 11 lines
Quoted 11 lines

It's been a few years since I first thought on finding a good way of helping kernel developers testing their patches, while making use of the free runner minutes Gitlab offers. It can greatly simplify the testing for people who are new to kernel development, or students trying to understand it better.

And this patchset allows that to happen :)

Actually, I spoke to Helen last year, and to enable it to run on the free Gitlab-CI runners, there is a small extra patch which is needed:

https://lore.kernel.org/all/[email protected]/

Sounds interesting!

Quoted 3 lines

Gitlab as an open-source software project (the community edition) is one thing, but can we please avoid advertising specific proprietary services in the kernel documentation ?

Every time Gitlab is mentioned, the brand of the company that developed it and has been providing proprietary services is also advertised. If you're not happy with that, you should move to use a git forge developed by some open source community.

The way I see, the best would be if the CI integration could work with more than one type of forge and being able to use any free Git??b-CI runners that would be available for developers to use, as this would allow testing more subsystems with CI, thus increasing code quality.

Thanks,
Mauro

#31 lore raw
Quoted 16 lines · Mauro Carvalho Chehab

Em Fri, 24 Jan 2025 10:12:50 +0200 Laurent Pinchart escreveu:

Quoted 11 lines
Quoted 11 lines

It's been a few years since I first thought on finding a good way of helping kernel developers testing their patches, while making use of the free runner minutes Gitlab offers. It can greatly simplify the testing for people who are new to kernel development, or students trying to understand it better.

And this patchset allows that to happen :)

Actually, I spoke to Helen last year, and to enable it to run on the free Gitlab-CI runners, there is a small extra patch which is needed:

https://lore.kernel.org/all/[email protected]/

Sounds interesting!

Quoted 8 lines
Quoted 3 lines

Gitlab as an open-source software project (the community edition) is one thing, but can we please avoid advertising specific proprietary services in the kernel documentation ?

Every time Gitlab is mentioned, the brand of the company that developed it and has been providing proprietary services is also advertised. If you're not happy with that, you should move to use a git forge developed by some open source community.

I'm fine mentioning the gitlab community edition, I'm not fine advertising gitlab.com SaaS in the kernel source tree.

Quoted 5 lines

The way I see, the best would be if the CI integration could work with more than one type of forge and being able to use any free Git??b-CI runners that would be available for developers to use, as this would allow testing more subsystems with CI, thus increasing code quality.

Signature · 3 lines
Regards,

Laurent Pinchart
#32 lore raw

Le vendredi 24 janvier 2025 à 15:00 +0200, Laurent Pinchart a écrit :

Quoted 21 lines · Mauro Carvalho Chehab
Quoted 20 lines

Em Fri, 24 Jan 2025 10:12:50 +0200 Laurent Pinchart escreveu:

Quoted 11 lines
Quoted 11 lines

It's been a few years since I first thought on finding a good way of helping kernel developers testing their patches, while making use of the free runner minutes Gitlab offers. It can greatly simplify the testing for people who are new to kernel development, or students trying to understand it better.

And this patchset allows that to happen :)

Actually, I spoke to Helen last year, and to enable it to run on the free Gitlab-CI runners, there is a small extra patch which is needed:

https://lore.kernel.org/all/[email protected]/

Sounds interesting!

Quoted 3 lines

Gitlab as an open-source software project (the community edition) is one thing, but can we please avoid advertising specific proprietary services in the kernel documentation ?

Quoted 7 lines
Quoted 4 lines

Every time Gitlab is mentioned, the brand of the company that developed it and has been providing proprietary services is also advertised. If you're not happy with that, you should move to use a git forge developed by some open source community.

I'm fine mentioning the gitlab community edition, I'm not fine advertising gitlab.com SaaS in the kernel source tree.

I've just looked attentively, the intention is just to explain you may need to set gitlab variable in your project fork in order to select correctly sized sized runners in your own instance. Its is not strictly about commercial gitlab.com instance. The default only works with the original project used instance (which is not gitlab.com as far as I know), but the comment refer to companies that will choose gitlab.com internally to reduce their IT cost.

Its quite a stretch to call this "advertisement", that makes it looks very dramatic. I personally believe its quite ahead of most other gitlab CI to take into consideration running these pipelines on foreign (to the project) instances.

Nicolas

Quoted 7 lines
Quoted 6 lines

The way I see, the best would be if the CI integration could work with more than one type of forge and being able to use any free Git??b-CI runners that would be available for developers to use, as this would allow testing more subsystems with CI, thus increasing code quality.

#33 lore raw
Quoted 29 lines · Nicolas Dufresne

Le vendredi 24 janvier 2025 à 15:00 +0200, Laurent Pinchart a écrit :

Quoted 28 lines · Mauro Carvalho Chehab
Quoted 16 lines

Em Fri, 24 Jan 2025 10:12:50 +0200 Laurent Pinchart escreveu:

Quoted 11 lines
Quoted 11 lines

It's been a few years since I first thought on finding a good way of helping kernel developers testing their patches, while making use of the free runner minutes Gitlab offers. It can greatly simplify the testing for people who are new to kernel development, or students trying to understand it better.

And this patchset allows that to happen :)

Actually, I spoke to Helen last year, and to enable it to run on the free Gitlab-CI runners, there is a small extra patch which is needed:

https://lore.kernel.org/all/[email protected]/

Sounds interesting!

Quoted 8 lines
Quoted 3 lines

Gitlab as an open-source software project (the community edition) is one thing, but can we please avoid advertising specific proprietary services in the kernel documentation ?

Every time Gitlab is mentioned, the brand of the company that developed it and has been providing proprietary services is also advertised. If you're not happy with that, you should move to use a git forge developed by some open source community.

I'm fine mentioning the gitlab community edition, I'm not fine advertising gitlab.com SaaS in the kernel source tree.

Hello Laurent,

I see your point, and I see no issue on removing the two last lines of CI_TAGS documentation.

I just added this information on documentation because the default runner used for the Free Tier of Gitlab does not work for this CI, as it needs more resources to run. This information can be added on some other place, but at the time I thought it would be ok to let it be there.
This other runner I mentioned in the patch is also available on the Free Tier (free as in beer).

I would like to make it clear that I have no connection/affiliation to Gitlab, other than a free account in their system, which I use for some CI. I have no interest on advertising anything from them.

My only objective is to make it easier to hobbyists/beginners to use those available free minutes to test some change before sending the patch, if they think that's valuable.

Quoted 4 lines

I've just looked attentively, the intention is just to explain you may need to set gitlab variable in your project fork in order to select correctly sized sized runners in your own instance.

That's correct

Quoted 1 line

Its is not strictly about commercial gitlab.com instance.

Exactly, the change is about being able to choose the runner you want.

Quoted 3 lines

The default only works with the original project used
instance (which is not gitlab.com as far as I know), but the comment refer to companies that will choose gitlab.com internally to reduce their IT cost.

Correct.
Companies can benefit on that, but my focus was on hobbyist (or begginers) who may want to test their patches on free CI before sending them to the ML.

Quoted 7 lines

Its quite a stretch to call this "advertisement", that makes it looks very dramatic. I personally believe its quite ahead of most other gitlab CI to take into consideration running these pipelines on foreign (to the project) instances.

Nicolas

Thank you!
Leo

Quoted 9 lines
Quoted 8 lines
Quoted 7 lines

The way I see, the best would be if the CI integration could work with more than one type of forge and being able to use any free Git??b-CI runners that would be available for developers to use, as this would allow testing more subsystems with CI, thus increasing code quality.

#34 lore raw
Quoted 43 lines · Leonardo Brás
Quoted 29 lines · Nicolas Dufresne

Le vendredi 24 janvier 2025 à 15:00 +0200, Laurent Pinchart a écrit :

Quoted 28 lines · Mauro Carvalho Chehab
Quoted 16 lines

Em Fri, 24 Jan 2025 10:12:50 +0200 Laurent Pinchart escreveu:

Quoted 11 lines
Quoted 11 lines

It's been a few years since I first thought on finding a good way of helping kernel developers testing their patches, while making use of the free runner minutes Gitlab offers. It can greatly simplify the testing for people who are new to kernel development, or students trying to understand it better.

And this patchset allows that to happen :)

Actually, I spoke to Helen last year, and to enable it to run on the free Gitlab-CI runners, there is a small extra patch which is needed:

https://lore.kernel.org/all/[email protected]/

Sounds interesting!

Quoted 8 lines
Quoted 3 lines

Gitlab as an open-source software project (the community edition) is one thing, but can we please avoid advertising specific proprietary services in the kernel documentation ?

Every time Gitlab is mentioned, the brand of the company that developed it and has been providing proprietary services is also advertised. If you're not happy with that, you should move to use a git forge developed by some open source community.

I'm fine mentioning the gitlab community edition, I'm not fine advertising gitlab.com SaaS in the kernel source tree.

Hello Laurent,

I see your point, and I see no issue on removing the two last lines of CI_TAGS documentation.

I just added this information on documentation because the default runner used for the Free Tier of Gitlab does not work for this CI, as it needs more resources to run. This information can be added on some other place, but at the time I thought it would be ok to let it be there.
This other runner I mentioned in the patch is also available on the Free Tier (free as in beer).

Quoted 7 lines

I would like to make it clear that I have no connection/affiliation to Gitlab, other than a free account in their system, which I use for some CI. I have no interest on advertising anything from them.

My only objective is to make it easier to hobbyists/beginners to use those available free minutes to test some change before sending the patch, if they think that's valuable.

Given the 400 free computes minute per month, and the fact that the saas-linux-medium-amd64 runner consumers two minutes per minute, how many of the proposed CI runs would be available per month ?

CI pipeline runs always compile the kernel from scratch as far as can see. This may not be an issue for final testing before submission of a patch series, but it just won't work for incremental testing of changes. Think of how inefficient it would be to run a full pipeline just to get the checkpatch.pl output for instance. This is why I believe tests should focus first and foremost on ease of use in developers' local environments. A standardized, from-scratch, comprehensive test run as a gate keeper for integration has value as well, but that won't help beginners much.

Quoted 28 lines
Quoted 3 lines

I've just looked attentively, the intention is just to explain you may need to set gitlab variable in your project fork in order to select correctly sized sized runners in your own instance.

That's correct

Quoted 1 line

Its is not strictly about commercial gitlab.com instance.

Exactly, the change is about being able to choose the runner you want.

Quoted 3 lines

The default only works with the original project used
instance (which is not gitlab.com as far as I know), but the comment refer to companies that will choose gitlab.com internally to reduce their IT cost.

Correct.
Companies can benefit on that, but my focus was on hobbyist (or begginers) who may want to test their patches on free CI before sending them to the ML.

Quoted 10 lines

Its quite a stretch to call this "advertisement", that makes it looks very dramatic. I personally believe its quite ahead of most other gitlab CI to take into consideration running these pipelines on foreign (to the project) instances.

Quoted 5 lines
Quoted 5 lines

The way I see, the best would be if the CI integration could work with more than one type of forge and being able to use any free Git??b-CI runners that would be available for developers to use, as this would allow testing more subsystems with CI, thus increasing code quality.

Signature · 3 lines
Regards,

Laurent Pinchart
#35 lore raw

Em Mon, 27 Jan 2025 08:07:38 +0200
Laurent Pinchart <[email protected]> escreveu:

Quoted 56 lines · Leonardo Brás
Quoted 43 lines · Nicolas Dufresne
Quoted 29 lines

Le vendredi 24 janvier 2025 à 15:00 +0200, Laurent Pinchart a écrit :

Quoted 28 lines · Mauro Carvalho Chehab
Quoted 16 lines

Em Fri, 24 Jan 2025 10:12:50 +0200 Laurent Pinchart escreveu:

Quoted 11 lines
Quoted 11 lines

It's been a few years since I first thought on finding a good way of helping kernel developers testing their patches, while making use of the free runner minutes Gitlab offers. It can greatly simplify the testing for people who are new to kernel development, or students trying to understand it better.

And this patchset allows that to happen :)

Actually, I spoke to Helen last year, and to enable it to run on the free Gitlab-CI runners, there is a small extra patch which is needed:

https://lore.kernel.org/all/[email protected]/

Sounds interesting!

Quoted 8 lines
Quoted 3 lines

Gitlab as an open-source software project (the community edition) is one thing, but can we please avoid advertising specific proprietary services in the kernel documentation ?

Every time Gitlab is mentioned, the brand of the company that developed it and has been providing proprietary services is also advertised. If you're not happy with that, you should move to use a git forge developed by some open source community.

I'm fine mentioning the gitlab community edition, I'm not fine advertising gitlab.com SaaS in the kernel source tree.

Hello Laurent,

I see your point, and I see no issue on removing the two last lines of CI_TAGS documentation.

I just added this information on documentation because the default runner used for the Free Tier of Gitlab does not work for this CI, as it needs more resources to run. This information can be added on some other place, but at the time I thought it would be ok to let it be there.
This other runner I mentioned in the patch is also available on the Free Tier (free as in beer).

Quoted 7 lines

I would like to make it clear that I have no connection/affiliation to Gitlab, other than a free account in their system, which I use for some CI. I have no interest on advertising anything from them.

My only objective is to make it easier to hobbyists/beginners to use those available free minutes to test some change before sending the patch, if they think that's valuable.

Given the 400 free computes minute per month, and the fact that the saas-linux-medium-amd64 runner consumers two minutes per minute, how many of the proposed CI runs would be available per month ?

Quoted 9 lines

CI pipeline runs always compile the kernel from scratch as far as can see. This may not be an issue for final testing before submission of a patch series, but it just won't work for incremental testing of changes. Think of how inefficient it would be to run a full pipeline just to get the checkpatch.pl output for instance. This is why I believe tests should focus first and foremost on ease of use in developers' local environments. A standardized, from-scratch, comprehensive test run as a gate keeper for integration has value as well, but that won't help beginners much.

To better cope with free minutes, CI pipelines should allow setting up build just the subsystem instead of the entire Kernel. Not perfect, but still if CI would test multiple archs/Kconfig options, it would be useful to get early lots of potential issues.

That's said, using developers' local environments is interesting. Yet, there's s potential risk of using it while having an external entity running a git forge, as it would mean that a remote entity would trigger something to run locally. Personally, I would

So, if I were to setup a local build environment, I would either use a separate machine outside my internal network or I would opt to install a local git forge instance. No idea how easy/hard would be to maintain such local gitlab instance.

Thanks,
Mauro

#36 lore raw
In reply to Laurent Pinchart

Le lundi 27 janvier 2025 à 08:07 +0200, Laurent Pinchart a écrit :

Quoted 56 lines · Leonardo Brás
Quoted 43 lines · Nicolas Dufresne
Quoted 29 lines

Le vendredi 24 janvier 2025 à 15:00 +0200, Laurent Pinchart a écrit :

Quoted 28 lines · Mauro Carvalho Chehab
Quoted 16 lines

Em Fri, 24 Jan 2025 10:12:50 +0200 Laurent Pinchart escreveu:

Quoted 11 lines
Quoted 11 lines

It's been a few years since I first thought on finding a good way of helping kernel developers testing their patches, while making use of the free runner minutes Gitlab offers. It can greatly simplify the testing for people who are new to kernel development, or students trying to understand it better.

And this patchset allows that to happen :)

Actually, I spoke to Helen last year, and to enable it to run on the free Gitlab-CI runners, there is a small extra patch which is needed:

https://lore.kernel.org/all/[email protected]/

Sounds interesting!

Quoted 8 lines
Quoted 3 lines

Gitlab as an open-source software project (the community edition) is one thing, but can we please avoid advertising specific proprietary services in the kernel documentation ?

Every time Gitlab is mentioned, the brand of the company that developed it and has been providing proprietary services is also advertised. If you're not happy with that, you should move to use a git forge developed by some open source community.

I'm fine mentioning the gitlab community edition, I'm not fine advertising gitlab.com SaaS in the kernel source tree.

Hello Laurent,

I see your point, and I see no issue on removing the two last lines of CI_TAGS documentation.

I just added this information on documentation because the default runner used for the Free Tier of Gitlab does not work for this CI, as it needs more resources to run. This information can be added on some other place, but at the time I thought it would be ok to let it be there.
This other runner I mentioned in the patch is also available on the Free Tier (free as in beer).

Quoted 7 lines

I would like to make it clear that I have no connection/affiliation to Gitlab, other than a free account in their system, which I use for some CI. I have no interest on advertising anything from them.

My only objective is to make it easier to hobbyists/beginners to use those available free minutes to test some change before sending the patch, if they think that's valuable.

Given the 400 free computes minute per month, and the fact that the saas-linux-medium-amd64 runner consumers two minutes per minute, how many of the proposed CI runs would be available per month ?

Quoted 9 lines

CI pipeline runs always compile the kernel from scratch as far as can see. This may not be an issue for final testing before submission of a patch series, but it just won't work for incremental testing of changes. Think of how inefficient it would be to run a full pipeline just to get the checkpatch.pl output for instance. This is why I believe tests should focus first and foremost on ease of use in developers' local environments. A standardized, from-scratch, comprehensive test run as a gate keeper for integration has value as well, but that won't help beginners much.

Perhaps we can provide pointers how to run a private gitlab runner on your local computer. My experience is that this take few minutes, unlike figuring all the foreign bash scripts dependency, and debugging issues related to some tools not having the right version, which inevitably lead to folks criticizing distro choices and other counter productive discussions. Of course, it can only work if that process is used and tested.

Quoted 30 lines
Quoted 29 lines
Quoted 4 lines

I've just looked attentively, the intention is just to explain you may need to set gitlab variable in your project fork in order to select correctly sized sized runners in your own instance.

That's correct

Quoted 1 line

Its is not strictly about commercial gitlab.com instance.

Exactly, the change is about being able to choose the runner you want.

Quoted 3 lines

The default only works with the original project used
instance (which is not gitlab.com as far as I know), but the comment refer to companies that will choose gitlab.com internally to reduce their IT cost.

Correct.
Companies can benefit on that, but my focus was on hobbyist (or begginers) who may want to test their patches on free CI before sending them to the ML.

Quoted 10 lines

Its quite a stretch to call this "advertisement", that makes it looks very dramatic. I personally believe its quite ahead of most other gitlab CI to take into consideration running these pipelines on foreign (to the project) instances.

Quoted 5 lines
Quoted 5 lines

The way I see, the best would be if the CI integration could work with more than one type of forge and being able to use any free Git??b-CI runners that would be available for developers to use, as this would allow testing more subsystems with CI, thus increasing code quality.

#37 lore raw

Hi Nicolas,

Quoted 67 lines · Nicolas Dufresne

Le lundi 27 janvier 2025 à 08:07 +0200, Laurent Pinchart a écrit :

Quoted 56 lines · Leonardo Brás
Quoted 43 lines · Nicolas Dufresne
Quoted 29 lines

Le vendredi 24 janvier 2025 à 15:00 +0200, Laurent Pinchart a écrit :

Quoted 28 lines · Mauro Carvalho Chehab
Quoted 16 lines

Em Fri, 24 Jan 2025 10:12:50 +0200 Laurent Pinchart escreveu:

Quoted 11 lines
Quoted 11 lines

It's been a few years since I first thought on finding a good way of helping kernel developers testing their patches, while making use of the free runner minutes Gitlab offers. It can greatly simplify the testing for people who are new to kernel development, or students trying to understand it better.

And this patchset allows that to happen :)

Actually, I spoke to Helen last year, and to enable it to run on the free Gitlab-CI runners, there is a small extra patch which is needed:

https://lore.kernel.org/all/[email protected]/

Sounds interesting!

Quoted 8 lines
Quoted 3 lines

Gitlab as an open-source software project (the community edition) is one thing, but can we please avoid advertising specific proprietary services in the kernel documentation ?

Every time Gitlab is mentioned, the brand of the company that developed it and has been providing proprietary services is also advertised. If you're not happy with that, you should move to use a git forge developed by some open source community.

I'm fine mentioning the gitlab community edition, I'm not fine advertising gitlab.com SaaS in the kernel source tree.

Hello Laurent,

I see your point, and I see no issue on removing the two last lines of CI_TAGS documentation.

I just added this information on documentation because the default runner used for the Free Tier of Gitlab does not work for this CI, as it needs more resources to run. This information can be added on some other place, but at the time I thought it would be ok to let it be there.
This other runner I mentioned in the patch is also available on the Free Tier (free as in beer).

Quoted 7 lines

I would like to make it clear that I have no connection/affiliation to Gitlab, other than a free account in their system, which I use for some CI. I have no interest on advertising anything from them.

My only objective is to make it easier to hobbyists/beginners to use those available free minutes to test some change before sending the patch, if they think that's valuable.

Given the 400 free computes minute per month, and the fact that the saas-linux-medium-amd64 runner consumers two minutes per minute, how many of the proposed CI runs would be available per month ?

Quoted 9 lines

CI pipeline runs always compile the kernel from scratch as far as can see. This may not be an issue for final testing before submission of a patch series, but it just won't work for incremental testing of changes. Think of how inefficient it would be to run a full pipeline just to get the checkpatch.pl output for instance. This is why I believe tests should focus first and foremost on ease of use in developers' local environments. A standardized, from-scratch, comprehensive test run as a gate keeper for integration has value as well, but that won't help beginners much.

Quoted 6 lines

Perhaps we can provide pointers how to run a private gitlab runner on your local computer. My experience is that this take few minutes, unlike figuring all the foreign bash scripts dependency, and debugging issues related to some tools not having the right version, which inevitably lead to folks criticizing distro choices and other counter productive discussions. Of course, it can only work if that process is used and tested.

I've run that before. It's not necessarily extremely complicated (we of course all know that in IT "a few minutes" means at least half a day - the rule of thumb is to multiple any time estimate by two and bump to the next unit :-)), but it will still take a massive amount of CPU time to run CI loads designed for a large number of powerful runners on a development laptop. As I said before, it has its uses, but mostly as a last check before merging (or sending patches), and not as an iterative process during development. And yes, if we run a gitlab runner locally we could also set up a cache that makes builds incremental, but that will only work if incremental builds are supported as a first class citizen by the CI pipeline developers. I don't see that happening very often.

The point I'm trying to make is that I believe it would be more valuable for beginners (and also more experienced developers) if we could provide them with the ability to run individual tests incrementally with the lowest overheard, even if the setup time is a bit longer.

Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 3 lines

I've just looked attentively, the intention is just to explain you may need to set gitlab variable in your project fork in order to select correctly sized sized runners in your own instance.

That's correct

Quoted 1 line

Its is not strictly about commercial gitlab.com instance.

Exactly, the change is about being able to choose the runner you want.

Quoted 3 lines

The default only works with the original project used
instance (which is not gitlab.com as far as I know), but the comment refer to companies that will choose gitlab.com internally to reduce their IT cost.

Correct.
Companies can benefit on that, but my focus was on hobbyist (or begginers) who may want to test their patches on free CI before sending them to the ML.

Quoted 10 lines

Its quite a stretch to call this "advertisement", that makes it looks very dramatic. I personally believe its quite ahead of most other gitlab CI to take into consideration running these pipelines on foreign (to the project) instances.

Quoted 5 lines
Quoted 5 lines

The way I see, the best would be if the CI integration could work with more than one type of forge and being able to use any free Git??b-CI runners that would be available for developers to use, as this would allow testing more subsystems with CI, thus increasing code quality.

Signature · 3 lines
Regards,

Laurent Pinchart
#38 lore raw
In reply to Mauro Carvalho Chehab
Quoted 8 lines · Mauro Carvalho Chehab

Em Fri, 24 Jan 2025 10:12:50 +0200
Laurent Pinchart <[email protected]> escreveu:

Quoted 5 lines
Quoted 5 lines

It's been a few years since I first thought on finding a good way of helping kernel developers testing their patches, while making use of the free runner minutes Gitlab offers. It can greatly simplify the testing for people who are new to kernel development, or students trying to understand it better.

Quoted 8 lines
Quoted 6 lines
Quoted 6 lines

And this patchset allows that to happen :)

Actually, I spoke to Helen last year, and to enable it to run on the free Gitlab-CI runners, there is a small extra patch which is needed:

https://lore.kernel.org/all/[email protected]/

Sounds interesting!

Thanks! :)

Quoted 10 lines
Quoted 4 lines

Gitlab as an open-source software project (the community edition) is one thing, but can we please avoid advertising specific proprietary services in the kernel documentation ?

Every time Gitlab is mentioned, the brand of the company that developed it and has been providing proprietary services is also advertised. If you're not happy with that, you should move to use a git forge developed by some open source community.

Quoted 5 lines

The way I see, the best would be if the CI integration could work with more than one type of forge and being able to use any free Git??b-CI runners that would be available for developers to use, as this would allow testing more subsystems with CI, thus increasing code quality.

Completely agree!
I think that this Gitlab contribution will set a base for implementing other forges / CI systems as well, and allow us to make use of those resources for better kernel testing.

Thanks!
Leo

Quoted 3 lines

Thanks,
Mauro

#39 lore raw
In reply to Laurent Pinchart

Hi Leo,

Quoted 66 lines · Laurent Pinchart
Quoted 65 lines · Leonardo Brás
Quoted 52 lines · Vignesh Raman

This patch series introduces "kci-gitlab," a GitLab CI pipeline specifically designed for kernel testing. It provides kernel developers with an integrated, efficient, and flexible testing framework using GitLab's CI/CD capabilities. This patch includes a .gitlab-ci file in the tools/ci/gitlab-ci/ folder, along with additional YAML and script files, to define a basic test pipeline triggered by code pushes to a GitLab-CI instance.
The initial version implements:

- Static checks: Includes checkpatch and smatch for code validation.
- Build tests: Covers various architectures and configurations.
- Boot tests: Utilizes virtme for basic boot testing.

Additionally, it introduces a flexible "scenarios" mechanism to support subsystem-specific extensions.

This series also introduces a drm scenario that adds a job to run IGT tests for vkms. This scenario includes helper scripts to build deqp-runner and IGT, leveraging approaches from the drm-ci/mesa-ci project.

We are working towards creating a generic, upstream GitLab-CI pipeline (kci-gitlab) that will replace DRM-CI [1]. The proposed GitLab-CI pipeline is designed with a distributed infrastructure model, making it possible to run on any gitLab instance. We plan to leverage KernelCI [2] as the backend, utilizing its hardware, rootfs, test plans, and KCIDB [3] integration.

For an example of a fully executed pipeline with drm scenario set, including documentation generation,
see: https://gitlab.freedesktop.org/vigneshraman/kernel/-/pipelines/1350262

Please refer to the documentation included in the patch, or check the rendered version, here:
https://vigneshraman.pages.freedesktop.org/-/kernel/-/jobs/69787927/artifacts/artifacts/Documentation-output/ci/gitlab-ci/gitlab-ci.html

Differences from v1 to v2:
- moved to tools/ci as suggested by Linus on the previous version
- add arm64 containers for native compilation
- added boot tests using virtme: this is the base structure for boot tests, next steps would be adding other tests such as kselftests/kunit tests
- added DRM scenario testing on vkms: this should replace current vkms test in drm-ci. This work shows how a test scenario can be used by different subsystems to add their tests.
- update documentation

For more details on the motivation behind this work, please refer to the
cover letter of v1: https://patchwork.kernel.org/project/linux-kselftest/cover/[email protected]/

[1] https://www.collabora.com/news-and-blog/blog/2024/02/08/drm-ci-a-gitlab-ci-pipeline-for-linux-kernel-testing/
[2] https://kernelci.org/
[3] https://docs.kernelci.org/kcidb/

Quoted 8 lines

Helen Koike (3):
kci-gitlab: Introducing GitLab-CI Pipeline for Kernel Testing
kci-gitlab: Add documentation
kci-gitlab: docs: Add images

Vignesh Raman (2):
MAINTAINERS: Add an entry for ci automated testing
kci-gitlab: Add drm scenario

Hi Vignesh Raman,
I am very happy to see this project going forward :)

Quoted 6 lines
Quoted 6 lines

It's been a few years since I first thought on finding a good way of helping kernel developers testing their patches, while making use of the free runner minutes Gitlab offers. It can greatly simplify the testing for people who are new to kernel development, or students trying to understand it better.

And this patchset allows that to happen :)

Thanks for testing the patch and providing feedback.

Quoted 5 lines
Quoted 5 lines

Actually, I spoke to Helen last year, and to enable it to run on the free Gitlab-CI runners, there is a small extra patch which is needed:

https://lore.kernel.org/all/[email protected]/

Thanks for the patch.

We can keep the variable name as KCI_CI_TAGS (like other variables) and add it in variables with default empty string.

Quoted 4 lines

Gitlab as an open-source software project (the community edition) is one thing, but can we please avoid advertising specific proprietary services in the kernel documentation ?

Agree. We could remove the lines which mentions gitlab.com SaaS in commit message and documentation.

Quoted 3 lines
Quoted 3 lines

Could you please apply it on top of your tree?
Some stuff changed places, but I can send a v2 with that fix if you want.

I will test your patch and we can add this for v3.

Regards,
Vignesh

Quoted 13 lines
Quoted 12 lines

While I have yet to review this v2 patchset, I applied it on my repo for testing, and cherry-picked the patch on above link, triggering a Pipeline:

https://gitlab.com/linux-kernel/linux/-/pipelines/1638955600

It seems to be working fine, please check it, as you may be more used to the results.

Thanks!
Leo

#40 lore raw
Quoted 69 lines · Vignesh Raman

Hi Leo,

Quoted 66 lines · Laurent Pinchart
Quoted 65 lines · Leonardo Brás
Quoted 52 lines · Vignesh Raman

This patch series introduces "kci-gitlab," a GitLab CI pipeline specifically designed for kernel testing. It provides kernel developers with an integrated, efficient, and flexible testing framework using GitLab's CI/CD capabilities. This patch includes a .gitlab-ci file in the tools/ci/gitlab-ci/ folder, along with additional YAML and script files, to define a basic test pipeline triggered by code pushes to a GitLab-CI instance.
The initial version implements:

- Static checks: Includes checkpatch and smatch for code validation.
- Build tests: Covers various architectures and configurations.
- Boot tests: Utilizes virtme for basic boot testing.

Additionally, it introduces a flexible "scenarios" mechanism to support subsystem-specific extensions.

This series also introduces a drm scenario that adds a job to run IGT tests for vkms. This scenario includes helper scripts to build deqp-runner and IGT, leveraging approaches from the drm-ci/mesa-ci project.

We are working towards creating a generic, upstream GitLab-CI pipeline (kci-gitlab) that will replace DRM-CI [1]. The proposed GitLab-CI pipeline is designed with a distributed infrastructure model, making it possible to run on any gitLab instance. We plan to leverage KernelCI [2] as the backend, utilizing its hardware, rootfs, test plans, and KCIDB [3] integration.

For an example of a fully executed pipeline with drm scenario set, including documentation generation,
see: https://gitlab.freedesktop.org/vigneshraman/kernel/-/pipelines/1350262

Please refer to the documentation included in the patch, or check the rendered version, here:
https://vigneshraman.pages.freedesktop.org/-/kernel/-/jobs/69787927/artifacts/artifacts/Documentation-output/ci/gitlab-ci/gitlab-ci.html

Differences from v1 to v2:
- moved to tools/ci as suggested by Linus on the previous version
- add arm64 containers for native compilation
- added boot tests using virtme: this is the base structure for boot tests, next steps would be adding other tests such as kselftests/kunit tests
- added DRM scenario testing on vkms: this should replace current vkms test in drm-ci. This work shows how a test scenario can be used by different subsystems to add their tests.
- update documentation

For more details on the motivation behind this work, please refer to the
cover letter of v1: https://patchwork.kernel.org/project/linux-kselftest/cover/[email protected]/

[1] https://www.collabora.com/news-and-blog/blog/2024/02/08/drm-ci-a-gitlab-ci-pipeline-for-linux-kernel-testing/
[2] https://kernelci.org/
[3] https://docs.kernelci.org/kcidb/

Quoted 8 lines

Helen Koike (3):
kci-gitlab: Introducing GitLab-CI Pipeline for Kernel Testing
kci-gitlab: Add documentation
kci-gitlab: docs: Add images

Vignesh Raman (2):
MAINTAINERS: Add an entry for ci automated testing
kci-gitlab: Add drm scenario

Hi Vignesh Raman,
I am very happy to see this project going forward :)

Quoted 8 lines
Quoted 6 lines
Quoted 6 lines

It's been a few years since I first thought on finding a good way of helping kernel developers testing their patches, while making use of the free runner minutes Gitlab offers. It can greatly simplify the testing for people who are new to kernel development, or students trying to understand it better.

And this patchset allows that to happen :)

Thanks for testing the patch and providing feedback.

:)

Quoted 8 lines
Quoted 6 lines
Quoted 6 lines

Actually, I spoke to Helen last year, and to enable it to run on the free Gitlab-CI runners, there is a small extra patch which is needed:

https://lore.kernel.org/all/[email protected]/

Thanks for the patch.

Thank you for most of the work, it sure will be useful :)

Quoted 3 lines

We can keep the variable name as KCI_CI_TAGS (like other variables) and add it in variables with default empty string.

Just tested, if it's an empty string, it will just be ignored, as it won't match anything (that is not an empty string)

Quoted 8 lines
Quoted 5 lines

Gitlab as an open-source software project (the community edition) is one thing, but can we please avoid advertising specific proprietary services in the kernel documentation ?

Agree. We could remove the lines which mentions gitlab.com SaaS in commit message and documentation.

Done :)
Added a generic reason for needing better instance

Quoted 6 lines
Quoted 4 lines
Quoted 4 lines

Could you please apply it on top of your tree?
Some stuff changed places, but I can send a v2 with that fix if you want.

I will test your patch and we can add this for v3.

Thanks!
That's the v2 with the required changes:

https://lore.kernel.org/all/[email protected]/T/#u

Please let me know if any further change is needed.

Thanks!
Leo

Quoted 17 lines

Regards,
Vignesh

Quoted 13 lines
Quoted 12 lines

While I have yet to review this v2 patchset, I applied it on my repo for testing, and cherry-picked the patch on above link, triggering a Pipeline:

https://gitlab.com/linux-kernel/linux/-/pipelines/1638955600

It seems to be working fine, please check it, as you may be more used to the results.

Thanks!
Leo

#41 lore raw

Hi Leo,

Quoted 90 lines · Leonardo Brás
Quoted 69 lines · Vignesh Raman

Hi Leo,

Quoted 66 lines · Laurent Pinchart
Quoted 65 lines · Leonardo Brás
Quoted 52 lines · Vignesh Raman

This patch series introduces "kci-gitlab," a GitLab CI pipeline specifically designed for kernel testing. It provides kernel developers with an integrated, efficient, and flexible testing framework using GitLab's CI/CD capabilities. This patch includes a .gitlab-ci file in the tools/ci/gitlab-ci/ folder, along with additional YAML and script files, to define a basic test pipeline triggered by code pushes to a GitLab-CI instance.
The initial version implements:

- Static checks: Includes checkpatch and smatch for code validation.
- Build tests: Covers various architectures and configurations.
- Boot tests: Utilizes virtme for basic boot testing.

Additionally, it introduces a flexible "scenarios" mechanism to support subsystem-specific extensions.

This series also introduces a drm scenario that adds a job to run IGT tests for vkms. This scenario includes helper scripts to build deqp-runner and IGT, leveraging approaches from the drm-ci/mesa-ci project.

We are working towards creating a generic, upstream GitLab-CI pipeline (kci-gitlab) that will replace DRM-CI [1]. The proposed GitLab-CI pipeline is designed with a distributed infrastructure model, making it possible to run on any gitLab instance. We plan to leverage KernelCI [2] as the backend, utilizing its hardware, rootfs, test plans, and KCIDB [3] integration.

For an example of a fully executed pipeline with drm scenario set, including documentation generation,
see: https://gitlab.freedesktop.org/vigneshraman/kernel/-/pipelines/1350262

Please refer to the documentation included in the patch, or check the rendered version, here:
https://vigneshraman.pages.freedesktop.org/-/kernel/-/jobs/69787927/artifacts/artifacts/Documentation-output/ci/gitlab-ci/gitlab-ci.html

Differences from v1 to v2:
- moved to tools/ci as suggested by Linus on the previous version
- add arm64 containers for native compilation
- added boot tests using virtme: this is the base structure for boot tests, next steps would be adding other tests such as kselftests/kunit tests
- added DRM scenario testing on vkms: this should replace current vkms test in drm-ci. This work shows how a test scenario can be used by different subsystems to add their tests.
- update documentation

For more details on the motivation behind this work, please refer to the
cover letter of v1: https://patchwork.kernel.org/project/linux-kselftest/cover/[email protected]/

[1] https://www.collabora.com/news-and-blog/blog/2024/02/08/drm-ci-a-gitlab-ci-pipeline-for-linux-kernel-testing/
[2] https://kernelci.org/
[3] https://docs.kernelci.org/kcidb/

Quoted 8 lines

Helen Koike (3):
kci-gitlab: Introducing GitLab-CI Pipeline for Kernel Testing
kci-gitlab: Add documentation
kci-gitlab: docs: Add images

Vignesh Raman (2):
MAINTAINERS: Add an entry for ci automated testing
kci-gitlab: Add drm scenario

Hi Vignesh Raman,
I am very happy to see this project going forward :)

Quoted 8 lines
Quoted 6 lines
Quoted 6 lines

It's been a few years since I first thought on finding a good way of helping kernel developers testing their patches, while making use of the free runner minutes Gitlab offers. It can greatly simplify the testing for people who are new to kernel development, or students trying to understand it better.

And this patchset allows that to happen :)

Thanks for testing the patch and providing feedback.

:)

Quoted 8 lines
Quoted 6 lines
Quoted 6 lines

Actually, I spoke to Helen last year, and to enable it to run on the free Gitlab-CI runners, there is a small extra patch which is needed:

https://lore.kernel.org/all/[email protected]/

Thanks for the patch.

Quoted 8 lines

Thank you for most of the work, it sure will be useful :)

Quoted 3 lines

We can keep the variable name as KCI_CI_TAGS (like other variables) and add it in variables with default empty string.

Just tested, if it's an empty string, it will just be ignored, as it won't match anything (that is not an empty string)

Ack. Adding it to variables will allow us pass KCI_CI_TAGS when manually creating a pipeline without changing the CI/CD settings, but we can ignore this for now.

Quoted 19 lines
Quoted 10 lines
Quoted 7 lines

Gitlab as an open-source software project (the community edition) is one thing, but can we please avoid advertising specific proprietary services in the kernel documentation ?

Agree. We could remove the lines which mentions gitlab.com SaaS in commit message and documentation.

Done :)
Added a generic reason for needing better instance

Quoted 5 lines
Quoted 4 lines
Quoted 4 lines

Could you please apply it on top of your tree?
Some stuff changed places, but I can send a v2 with that fix if you want.

Quoted 8 lines
Quoted 1 line

I will test your patch and we can add this for v3.

Thanks!
That's the v2 with the required changes:

https://lore.kernel.org/all/[email protected]/T/#u

Please let me know if any further change is needed.

Thanks for the patch. We will pick this for v3.

Regards,
Vignesh

Quoted 22 lines

Thanks!
Leo

Quoted 17 lines

Regards,
Vignesh

Quoted 13 lines
Quoted 12 lines

While I have yet to review this v2 patchset, I applied it on my repo for testing, and cherry-picked the patch on above link, triggering a Pipeline:

https://gitlab.com/linux-kernel/linux/-/pipelines/1638955600

It seems to be working fine, please check it, as you may be more used to the results.

Thanks!
Leo