Skip to contentSkip to conversation

drm/xe/guc: Hold device ref until queue teardown completes

PATCH Superseded Arvind Yadav 3 participants 6 messages Jun 22 – Jun 23

Subsystems (2)

v6 of 12 Superseded Latest is v12 →

lore
Share & tools
lore
#0 lore raw

PATCH v6 1/1 drm/xe/guc: Hold device ref until queue teardown completes

GuC exec queue destruction can run asynchronously. If the final device put happens from a destroy worker, drmm cleanup can end up draining the same workqueue and deadlock.

Hold a drm_device reference for the queue lifetime and drop it after queue teardown completes. This keeps drmm cleanup from running while async destroy work is still pending.

Move destroy work to a module-lifetime Xe workqueue and flush it on PCI remove so hot-unbind/rebind still waits for pending destroy work.

With queue-held device refs, guc_submit_sw_fini() cannot run with live GuC IDs. Replace the fini wait with an assertion and remove the unused fini_wq.

v2:
- Rebase

v3:
- Switch to queue-lifetime drm_dev_get()/drm_dev_put() model. (Matt)
- Queue async teardown on system_dfl_wq instead of xe->destroy_wq. (Matt)
- Drop separate deferred drm_dev_put worker.
- Remove stale drain_workqueue(xe->destroy_wq) from guc_submit_sw_fini().

v4:
- Replace the guc_submit_sw_fini() wait with an assertion and remove the now-unused fini_wq. (sashiko)

v5:
- Move destroy work to a module-lifetime Xe workqueue instead of system_dfl_wq. (Matt)
- Flush the module-lifetime destroy workqueue during PCI remove to preserve the old device-remove wait semantics.

v6:
- Keep SVM pagemap destroy work on the per-device destroy_wq to avoid letting it outlive the xe_device/drm_device. (Sashiko)
- Use WQ_MEM_RECLAIM for xe->destroy_wq because SVM pagemap destroy work can be queued from the reclaim path.

Fixes 2d2be279f1ca ("drm/xe: fix UAF around queue destruction")
Cc Matthew Brost <[email protected]>
Cc Thomas Hellström <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Himal Prasad Ghimiray <[email protected]>
Cc Tejas Upadhyay <[email protected]>
---
 drivers/gpu/drm/xe/xe_device.c       |  2 +-
 drivers/gpu/drm/xe/xe_device_types.h |  2 +-
 drivers/gpu/drm/xe/xe_exec_queue.c   | 30 +++++++++++++
 drivers/gpu/drm/xe/xe_exec_queue.h   |  7 +++
 drivers/gpu/drm/xe/xe_guc_submit.c   | 65 ++++++++++++++++------------
 drivers/gpu/drm/xe/xe_guc_types.h    |  2 -
 drivers/gpu/drm/xe/xe_module.c       |  5 +++
 drivers/gpu/drm/xe/xe_pci.c          |  7 +++
 8 files changed, 88 insertions(+), 32 deletions(-)
drivers/gpu/drm/xe/xe_device.c +1 -1
index 089872507bdd..a81345811a8d 100644
@@ -580,7 +580,7 @@ int xe_device_init_early(struct xe_device *xe)
 						       WQ_MEM_RECLAIM);
 	xe->ordered_wq = alloc_ordered_workqueue("xe-ordered-wq", 0);
 	xe->unordered_wq = alloc_workqueue("xe-unordered-wq", WQ_PERCPU, 0);
-	xe->destroy_wq = alloc_workqueue("xe-destroy-wq", WQ_PERCPU, 0);
+	xe->destroy_wq = alloc_workqueue("xe-destroy-wq", WQ_MEM_RECLAIM, 0);
 	if (!xe->ordered_wq || !xe->unordered_wq ||
 	    !xe->preempt_fence_wq || !xe->destroy_wq) {
 		/*
drivers/gpu/drm/xe/xe_device_types.h +1 -1
index 32dd2ffbc796..0e6065d62e37 100644
@@ -355,7 +355,7 @@ struct xe_device {
 	/** @unordered_wq: used to serialize unordered work */
 	struct workqueue_struct *unordered_wq;
 
-	/** @destroy_wq: used to serialize user destroy work, like queue */
+	/** @destroy_wq: used for device-lifetime async destroy work */
 	struct workqueue_struct *destroy_wq;
 
 	/** @tiles: device tiles */
drivers/gpu/drm/xe/xe_exec_queue.c +30 -0
index 1b5ca3ce578a..43990d19ec63 100644
@@ -6,6 +6,7 @@
 #include "xe_exec_queue.h"
 
 #include <linux/nospec.h>
+#include <linux/workqueue.h>
 
 #include <drm/drm_device.h>
 #include <drm/drm_drv.h>
@@ -30,6 +31,35 @@
 #include "xe_vm.h"
 #include "xe_pxp.h"
 
+static struct workqueue_struct *xe_destroy_wq;
+
+int __init xe_exec_queue_module_init(void)
+{
+	xe_destroy_wq = alloc_workqueue("xe-exec-queue-destroy-wq",
+					WQ_UNBOUND | WQ_MEM_RECLAIM, 0);
+	if (!xe_destroy_wq)
+		return -ENOMEM;
+	return 0;
+}
+
+void xe_exec_queue_module_exit(void)
+{
+	if (xe_destroy_wq)
+		destroy_workqueue(xe_destroy_wq);
+	xe_destroy_wq = NULL;
+}
+
+bool xe_exec_queue_destroy_wq_queue(struct work_struct *work)
+{
+	return queue_work(xe_destroy_wq, work);
+}
+
+void xe_exec_queue_destroy_wq_flush(void)
+{
+	if (xe_destroy_wq)
+		flush_workqueue(xe_destroy_wq);
+}
+
 /**
  * DOC: Execution Queue
  *
drivers/gpu/drm/xe/xe_exec_queue.h +7 -0
index 0225426c57b0..a269bb0f77c7 100644
@@ -31,6 +31,13 @@ struct xe_exec_queue *xe_exec_queue_create_bind(struct xe_device *xe,
 						struct xe_vm *user_vm,
 						u32 flags, u64 extensions);
 
+struct work_struct;
+
+int xe_exec_queue_module_init(void);
+void xe_exec_queue_module_exit(void);
+bool xe_exec_queue_destroy_wq_queue(struct work_struct *work);
+void xe_exec_queue_destroy_wq_flush(void);
+
 void xe_exec_queue_fini(struct xe_exec_queue *q);
 void xe_exec_queue_destroy(struct kref *ref);
 void xe_exec_queue_assign_name(struct xe_exec_queue *q, u32 instance);
drivers/gpu/drm/xe/xe_guc_submit.c +37 -28

137 lines not on this page · raw message

drivers/gpu/drm/xe/xe_guc_types.h +0 -2
index c7b9642b41ba..31a2acb63ac3 100644
@@ -100,8 +100,6 @@ struct xe_guc {
 		 * even initialized - before that not even the lock is valid
 		 */
 		bool initialized;
-		/** @submission_state.fini_wq: submit fini wait queue */
-		wait_queue_head_t fini_wq;
 	} submission_state;
 
 	/** @hwconfig: Hardware config state */
drivers/gpu/drm/xe/xe_module.c +5 -0
index 4cb578182912..1949fb3242bb 100644
@@ -18,6 +18,7 @@
 #include "xe_pci.h"
 #include "xe_pm.h"
 #include "xe_observation.h"
+#include "xe_exec_queue.h"
 #include "xe_sched_job.h"
 
 struct xe_modparam xe_modparam = {
@@ -112,6 +113,10 @@ static const struct init_funcs init_funcs[] = {
 		.init = xe_sched_job_module_init,
 		.exit = xe_sched_job_module_exit,
 	},
+	{
+		.init = xe_exec_queue_module_init,
+		.exit = xe_exec_queue_module_exit,
+	},
 	{
 		.init = xe_register_pci_driver,
 		.exit = xe_unregister_pci_driver,
drivers/gpu/drm/xe/xe_pci.c +7 -0
index 78fc2e4dcfc6..5a185ca00c1f 100644
@@ -21,6 +21,7 @@
 #include "xe_configfs.h"
 #include "xe_device.h"
 #include "xe_drv.h"
+#include "xe_exec_queue.h"
 #include "xe_gt.h"
 #include "xe_gt_sriov_vf.h"
 #include "xe_guc.h"
@@ -1049,6 +1050,12 @@ static void xe_pci_remove(struct pci_dev *pdev)
 		return;
 
 	xe_device_remove(xe);
+
+	/*
+	 * Preserve remove-time flush after moving destroy work to module
+	 * lifetime.
+	 */
+	xe_exec_queue_destroy_wq_flush();
 	xe_pm_fini(xe);
 }
 
Signature · 1 line
2.43.0
#1 lore raw

✓ CI.KUnit: success for drm/xe/guc: Hold device ref until queue teardown completes (rev4)

== Series Details ==

== Series Details ==

Series: drm/xe/guc: Hold device ref until queue teardown completes (rev4)
URL : https://patchwork.freedesktop.org/series/168424/
State : success

== Summary ==

+ trap cleanup EXIT
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig [14:13:14] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:

$ make ARCH=um O=.kunit olddefconfig
[14:13:18] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48
[14:13:49] Starting KUnit Kernel (1/1)...
[14:13:49] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[14:13:50] ================== guc_buf (11 subtests) ===================
[14:13:50] [PASSED] test_smallest
[14:13:50] [PASSED] test_largest
[14:13:50] [PASSED] test_granular
[14:13:50] [PASSED] test_unique
[14:13:50] [PASSED] test_overlap
[14:13:50] [PASSED] test_reusable
[14:13:50] [PASSED] test_too_big
[14:13:50] [PASSED] test_flush
[14:13:50] [PASSED] test_lookup
[14:13:50] [PASSED] test_data
[14:13:50] [PASSED] test_class
[14:13:50] ===================== [PASSED] guc_buf =====================
[14:13:50] =================== guc_dbm (7 subtests) ===================
[14:13:50] [PASSED] test_empty
[14:13:50] [PASSED] test_default
[14:13:50] ======================== test_size  ========================
[14:13:50] [PASSED] 4
[14:13:50] [PASSED] 8
[14:13:50] [PASSED] 32
[14:13:50] [PASSED] 256
[14:13:50] ==================== [PASSED] test_size ====================
[14:13:50] ======================= test_reuse  ========================
[14:13:50] [PASSED] 4
[14:13:50] [PASSED] 8
[14:13:50] [PASSED] 32
[14:13:50] [PASSED] 256
[14:13:50] =================== [PASSED] test_reuse ====================
[14:13:50] =================== test_range_overlap  ====================
[14:13:50] [PASSED] 4
[14:13:50] [PASSED] 8
[14:13:50] [PASSED] 32
[14:13:50] [PASSED] 256
[14:13:50] =============== [PASSED] test_range_overlap ================
[14:13:50] =================== test_range_compact  ====================
[14:13:50] [PASSED] 4
[14:13:50] [PASSED] 8
[14:13:50] [PASSED] 32
[14:13:50] [PASSED] 256
[14:13:50] =============== [PASSED] test_range_compact ================
[14:13:50] ==================== test_range_spare  =====================
[14:13:50] [PASSED] 4
[14:13:50] [PASSED] 8
[14:13:50] [PASSED] 32
[14:13:50] [PASSED] 256
[14:13:50] ================ [PASSED] test_range_spare =================
[14:13:50] ===================== [PASSED] guc_dbm =====================
[14:13:50] =================== guc_idm (6 subtests) ===================
[14:13:50] [PASSED] bad_init
[14:13:50] [PASSED] no_init
[14:13:50] [PASSED] init_fini
[14:13:50] [PASSED] check_used
[14:13:50] [PASSED] check_quota
[14:13:50] [PASSED] check_all
[14:13:50] ===================== [PASSED] guc_idm =====================
[14:13:50] ================== no_relay (3 subtests) ===================
[14:13:50] [PASSED] xe_drops_guc2pf_if_not_ready
[14:13:50] [PASSED] xe_drops_guc2vf_if_not_ready
[14:13:50] [PASSED] xe_rejects_send_if_not_ready
[14:13:50] ==================== [PASSED] no_relay =====================
[14:13:50] ================== pf_relay (14 subtests) ==================
[14:13:50] [PASSED] pf_rejects_guc2pf_too_short
[14:13:50] [PASSED] pf_rejects_guc2pf_too_long
[14:13:50] [PASSED] pf_rejects_guc2pf_no_payload
[14:13:50] [PASSED] pf_fails_no_payload
[14:13:50] [PASSED] pf_fails_bad_origin
[14:13:50] [PASSED] pf_fails_bad_type
[14:13:50] [PASSED] pf_txn_reports_error
[14:13:50] [PASSED] pf_txn_sends_pf2guc
[14:13:50] [PASSED] pf_sends_pf2guc
[14:13:50] [SKIPPED] pf_loopback_nop
[14:13:50] [SKIPPED] pf_loopback_echo
[14:13:50] [SKIPPED] pf_loopback_fail
[14:13:50] [SKIPPED] pf_loopback_busy
[14:13:50] [SKIPPED] pf_loopback_retry
[14:13:50] ==================== [PASSED] pf_relay =====================
[14:13:50] ================== vf_relay (3 subtests) ===================
[14:13:50] [PASSED] vf_rejects_guc2vf_too_short
[14:13:50] [PASSED] vf_rejects_guc2vf_too_long
[14:13:50] [PASSED] vf_rejects_guc2vf_no_payload
[14:13:50] ==================== [PASSED] vf_relay =====================
[14:13:50] ================ pf_gt_config (9 subtests) =================
[14:13:50] [PASSED] fair_contexts_1vf
[14:13:50] [PASSED] fair_doorbells_1vf
[14:13:50] [PASSED] fair_ggtt_1vf
[14:13:50] ====================== fair_vram_1vf  ======================
[14:13:50] [PASSED] 3.50 GiB
[14:13:50] [PASSED] 11.5 GiB
[14:13:50] [PASSED] 15.5 GiB
[14:13:50] [PASSED] 31.5 GiB
[14:13:50] [PASSED] 63.5 GiB
[14:13:50] [PASSED] 1.91 GiB
[14:13:50] ================== [PASSED] fair_vram_1vf ==================
[14:13:50] ================ fair_vram_1vf_admin_only  =================
[14:13:50] [PASSED] 3.50 GiB
[14:13:50] [PASSED] 11.5 GiB
[14:13:50] [PASSED] 15.5 GiB
[14:13:50] [PASSED] 31.5 GiB
[14:13:50] [PASSED] 63.5 GiB
[14:13:50] [PASSED] 1.91 GiB
[14:13:50] ============ [PASSED] fair_vram_1vf_admin_only =============
[14:13:50] ====================== fair_contexts  ======================
[14:13:50] [PASSED] 1 VF
[14:13:50] [PASSED] 2 VFs
[14:13:50] [PASSED] 3 VFs
[14:13:50] [PASSED] 4 VFs
[14:13:50] [PASSED] 5 VFs
[14:13:50] [PASSED] 6 VFs
[14:13:50] [PASSED] 7 VFs
[14:13:50] [PASSED] 8 VFs
[14:13:50] [PASSED] 9 VFs
[14:13:50] [PASSED] 10 VFs
[14:13:50] [PASSED] 11 VFs
[14:13:50] [PASSED] 12 VFs
[14:13:50] [PASSED] 13 VFs
[14:13:50] [PASSED] 14 VFs
[14:13:50] [PASSED] 15 VFs
[14:13:50] [PASSED] 16 VFs
[14:13:50] [PASSED] 17 VFs
[14:13:50] [PASSED] 18 VFs
[14:13:50] [PASSED] 19 VFs
[14:13:50] [PASSED] 20 VFs
[14:13:50] [PASSED] 21 VFs
[14:13:50] [PASSED] 22 VFs
[14:13:50] [PASSED] 23 VFs
[14:13:50] [PASSED] 24 VFs
[14:13:50] [PASSED] 25 VFs
[14:13:50] [PASSED] 26 VFs
[14:13:50] [PASSED] 27 VFs
[14:13:50] [PASSED] 28 VFs
[14:13:50] [PASSED] 29 VFs
[14:13:50] [PASSED] 30 VFs
[14:13:50] [PASSED] 31 VFs
[14:13:50] [PASSED] 32 VFs
[14:13:50] [PASSED] 33 VFs
[14:13:50] [PASSED] 34 VFs
[14:13:50] [PASSED] 35 VFs
[14:13:50] [PASSED] 36 VFs
[14:13:50] [PASSED] 37 VFs
[14:13:50] [PASSED] 38 VFs
[14:13:50] [PASSED] 39 VFs
[14:13:50] [PASSED] 40 VFs
[14:13:50] [PASSED] 41 VFs
[14:13:50] [PASSED] 42 VFs
[14:13:50] [PASSED] 43 VFs
[14:13:50] [PASSED] 44 VFs
[14:13:50] [PASSED] 45 VFs
[14:13:50] [PASSED] 46 VFs
[14:13:50] [PASSED] 47 VFs
[14:13:50] [PASSED] 48 VFs
[14:13:50] [PASSED] 49 VFs
[14:13:50] [PASSED] 50 VFs
[14:13:50] [PASSED] 51 VFs
[14:13:50] [PASSED] 52 VFs
[14:13:50] [PASSED] 53 VFs
[14:13:50] [PASSED] 54 VFs
[14:13:50] [PASSED] 55 VFs
[14:13:50] [PASSED] 56 VFs
[14:13:50] [PASSED] 57 VFs
[14:13:50] [PASSED] 58 VFs
[14:13:50] [PASSED] 59 VFs
[14:13:50] [PASSED] 60 VFs
[14:13:50] [PASSED] 61 VFs
[14:13:50] [PASSED] 62 VFs
[14:13:50] [PASSED] 63 VFs
[14:13:50] ================== [PASSED] fair_contexts ==================
[14:13:50] ===================== fair_doorbells  ======================
[14:13:50] [PASSED] 1 VF
[14:13:50] [PASSED] 2 VFs
[14:13:50] [PASSED] 3 VFs
[14:13:50] [PASSED] 4 VFs
[14:13:50] [PASSED] 5 VFs
[14:13:50] [PASSED] 6 VFs
[14:13:50] [PASSED] 7 VFs
[14:13:50] [PASSED] 8 VFs
[14:13:50] [PASSED] 9 VFs
[14:13:50] [PASSED] 10 VFs
[14:13:50] [PASSED] 11 VFs
[14:13:50] [PASSED] 12 VFs
[14:13:50] [PASSED] 13 VFs
[14:13:50] [PASSED] 14 VFs
[14:13:50] [PASSED] 15 VFs
[14:13:50] [PASSED] 16 VFs
[14:13:50] [PASSED] 17 VFs
[14:13:50] [PASSED] 18 VFs
[14:13:50] [PASSED] 19 VFs
[14:13:50] [PASSED] 20 VFs
[14:13:50] [PASSED] 21 VFs
[14:13:50] [PASSED] 22 VFs
[14:13:50] [PASSED] 23 VFs
[14:13:50] [PASSED] 24 VFs
[14:13:50] [PASSED] 25 VFs
[14:13:50] [PASSED] 26 VFs
[14:13:50] [PASSED] 27 VFs
[14:13:50] [PASSED] 28 VFs
[14:13:50] [PASSED] 29 VFs
[14:13:50] [PASSED] 30 VFs
[14:13:50] [PASSED] 31 VFs
[14:13:50] [PASSED] 32 VFs
[14:13:50] [PASSED] 33 VFs
[14:13:50] [PASSED] 34 VFs
[14:13:50] [PASSED] 35 VFs
[14:13:50] [PASSED] 36 VFs
[14:13:50] [PASSED] 37 VFs
[14:13:50] [PASSED] 38 VFs
[14:13:50] [PASSED] 39 VFs
[14:13:50] [PASSED] 40 VFs
[14:13:50] [PASSED] 41 VFs
[14:13:50] [PASSED] 42 VFs
[14:13:50] [PASSED] 43 VFs
[14:13:50] [PASSED] 44 VFs
[14:13:50] [PASSED] 45 VFs
[14:13:50] [PASSED] 46 VFs
[14:13:50] [PASSED] 47 VFs
[14:13:50] [PASSED] 48 VFs
[14:13:50] [PASSED] 49 VFs
[14:13:50] [PASSED] 50 VFs
[14:13:50] [PASSED] 51 VFs
[14:13:50] [PASSED] 52 VFs
[14:13:50] [PASSED] 53 VFs
[14:13:50] [PASSED] 54 VFs
[14:13:50] [PASSED] 55 VFs
[14:13:50] [PASSED] 56 VFs
[14:13:50] [PASSED] 57 VFs
[14:13:50] [PASSED] 58 VFs
[14:13:50] [PASSED] 59 VFs
[14:13:50] [PASSED] 60 VFs
[14:13:50] [PASSED] 61 VFs
[14:13:50] [PASSED] 62 VFs
[14:13:50] [PASSED] 63 VFs
[14:13:50] ================= [PASSED] fair_doorbells ==================
[14:13:50] ======================== fair_ggtt  ========================
[14:13:50] [PASSED] 1 VF
[14:13:50] [PASSED] 2 VFs
[14:13:50] [PASSED] 3 VFs
[14:13:50] [PASSED] 4 VFs
[14:13:50] [PASSED] 5 VFs
[14:13:50] [PASSED] 6 VFs
[14:13:50] [PASSED] 7 VFs
[14:13:50] [PASSED] 8 VFs
[14:13:50] [PASSED] 9 VFs
[14:13:50] [PASSED] 10 VFs
[14:13:50] [PASSED] 11 VFs
[14:13:50] [PASSED] 12 VFs
[14:13:50] [PASSED] 13 VFs
[14:13:50] [PASSED] 14 VFs
[14:13:50] [PASSED] 15 VFs
[14:13:50] [PASSED] 16 VFs
[14:13:50] [PASSED] 17 VFs
[14:13:50] [PASSED] 18 VFs
[14:13:50] [PASSED] 19 VFs
[14:13:50] [PASSED] 20 VFs
[14:13:50] [PASSED] 21 VFs
[14:13:50] [PASSED] 22 VFs
[14:13:50] [PASSED] 23 VFs
[14:13:50] [PASSED] 24 VFs
[14:13:50] [PASSED] 25 VFs
[14:13:50] [PASSED] 26 VFs
[14:13:50] [PASSED] 27 VFs
[14:13:50] [PASSED] 28 VFs
[14:13:50] [PASSED] 29 VFs
[14:13:50] [PASSED] 30 VFs
[14:13:50] [PASSED] 31 VFs
[14:13:50] [PASSED] 32 VFs
[14:13:50] [PASSED] 33 VFs
[14:13:50] [PASSED] 34 VFs
[14:13:50] [PASSED] 35 VFs
[14:13:50] [PASSED] 36 VFs
[14:13:50] [PASSED] 37 VFs
[14:13:50] [PASSED] 38 VFs
[14:13:50] [PASSED] 39 VFs
[14:13:50] [PASSED] 40 VFs
[14:13:50] [PASSED] 41 VFs
[14:13:50] [PASSED] 42 VFs
[14:13:50] [PASSED] 43 VFs
[14:13:50] [PASSED] 44 VFs
[14:13:50] [PASSED] 45 VFs
[14:13:50] [PASSED] 46 VFs
[14:13:50] [PASSED] 47 VFs
[14:13:50] [PASSED] 48 VFs
[14:13:50] [PASSED] 49 VFs
[14:13:50] [PASSED] 50 VFs
[14:13:50] [PASSED] 51 VFs
[14:13:50] [PASSED] 52 VFs
[14:13:50] [PASSED] 53 VFs
[14:13:50] [PASSED] 54 VFs
[14:13:50] [PASSED] 55 VFs
[14:13:50] [PASSED] 56 VFs
[14:13:50] [PASSED] 57 VFs
[14:13:50] [PASSED] 58 VFs
[14:13:50] [PASSED] 59 VFs
[14:13:50] [PASSED] 60 VFs
[14:13:50] [PASSED] 61 VFs
[14:13:50] [PASSED] 62 VFs
[14:13:50] [PASSED] 63 VFs
[14:13:50] ==================== [PASSED] fair_ggtt ====================
[14:13:50] ======================== fair_vram  ========================
[14:13:50] [PASSED] 1 VF
[14:13:50] [PASSED] 2 VFs
[14:13:50] [PASSED] 3 VFs
[14:13:50] [PASSED] 4 VFs
[14:13:50] [PASSED] 5 VFs
[14:13:50] [PASSED] 6 VFs
[14:13:50] [PASSED] 7 VFs
[14:13:50] [PASSED] 8 VFs
[14:13:50] [PASSED] 9 VFs
[14:13:50] [PASSED] 10 VFs
[14:13:50] [PASSED] 11 VFs
[14:13:50] [PASSED] 12 VFs
[14:13:50] [PASSED] 13 VFs
[14:13:50] [PASSED] 14 VFs
[14:13:50] [PASSED] 15 VFs
[14:13:50] [PASSED] 16 VFs
[14:13:50] [PASSED] 17 VFs
[14:13:50] [PASSED] 18 VFs
[14:13:50] [PASSED] 19 VFs
[14:13:50] [PASSED] 20 VFs
[14:13:50] [PASSED] 21 VFs
[14:13:50] [PASSED] 22 VFs
[14:13:50] [PASSED] 23 VFs
[14:13:50] [PASSED] 24 VFs
[14:13:50] [PASSED] 25 VFs
[14:13:50] [PASSED] 26 VFs
[14:13:50] [PASSED] 27 VFs
[14:13:50] [PASSED] 28 VFs
[14:13:50] [PASSED] 29 VFs
[14:13:50] [PASSED] 30 VFs
[14:13:50] [PASSED] 31 VFs
[14:13:50] [PASSED] 32 VFs
[14:13:50] [PASSED] 33 VFs
[14:13:50] [PASSED] 34 VFs
[14:13:50] [PASSED] 35 VFs
[14:13:50] [PASSED] 36 VFs
[14:13:50] [PASSED] 37 VFs
[14:13:50] [PASSED] 38 VFs
[14:13:50] [PASSED] 39 VFs
[14:13:50] [PASSED] 40 VFs
[14:13:50] [PASSED] 41 VFs
[14:13:50] [PASSED] 42 VFs
[14:13:50] [PASSED] 43 VFs
[14:13:50] [PASSED] 44 VFs
[14:13:50] [PASSED] 45 VFs
[14:13:50] [PASSED] 46 VFs
[14:13:50] [PASSED] 47 VFs
[14:13:50] [PASSED] 48 VFs
[14:13:50] [PASSED] 49 VFs
[14:13:50] [PASSED] 50 VFs
[14:13:50] [PASSED] 51 VFs
[14:13:50] [PASSED] 52 VFs
[14:13:50] [PASSED] 53 VFs
[14:13:50] [PASSED] 54 VFs
[14:13:50] [PASSED] 55 VFs
[14:13:50] [PASSED] 56 VFs
[14:13:50] [PASSED] 57 VFs
[14:13:50] [PASSED] 58 VFs
[14:13:50] [PASSED] 59 VFs
[14:13:50] [PASSED] 60 VFs
[14:13:50] [PASSED] 61 VFs
[14:13:50] [PASSED] 62 VFs
[14:13:50] [PASSED] 63 VFs
[14:13:50] ==================== [PASSED] fair_vram ====================
[14:13:50] ================== [PASSED] pf_gt_config ===================
[14:13:50] ===================== lmtt (1 subtest) =====================
[14:13:50] ======================== test_ops  =========================
[14:13:50] [PASSED] 2-level
[14:13:50] [PASSED] multi-level
[14:13:50] ==================== [PASSED] test_ops =====================
[14:13:50] ====================== [PASSED] lmtt =======================
[14:13:50] ================= pf_service (11 subtests) =================
[14:13:50] [PASSED] pf_negotiate_any
[14:13:50] [PASSED] pf_negotiate_base_match
[14:13:50] [PASSED] pf_negotiate_base_newer
[14:13:50] [PASSED] pf_negotiate_base_next
[14:13:50] [SKIPPED] pf_negotiate_base_older
[14:13:50] [PASSED] pf_negotiate_base_prev
[14:13:50] [PASSED] pf_negotiate_latest_match
[14:13:50] [PASSED] pf_negotiate_latest_newer
[14:13:50] [PASSED] pf_negotiate_latest_next
[14:13:50] [SKIPPED] pf_negotiate_latest_older
[14:13:50] [SKIPPED] pf_negotiate_latest_prev
[14:13:50] =================== [PASSED] pf_service ====================
[14:13:50] ================= xe_guc_g2g (2 subtests) ==================
[14:13:50] ============== xe_live_guc_g2g_kunit_default  ==============
[14:13:50] ========= [SKIPPED] xe_live_guc_g2g_kunit_default ==========
[14:13:50] ============== xe_live_guc_g2g_kunit_allmem  ===============
[14:13:50] ========== [SKIPPED] xe_live_guc_g2g_kunit_allmem ==========
[14:13:50] =================== [SKIPPED] xe_guc_g2g ===================
[14:13:50] =================== xe_mocs (2 subtests) ===================
[14:13:50] ================ xe_live_mocs_kernel_kunit  ================
[14:13:50] =========== [SKIPPED] xe_live_mocs_kernel_kunit ============
[14:13:50] ================ xe_live_mocs_reset_kunit  =================
[14:13:50] ============ [SKIPPED] xe_live_mocs_reset_kunit ============
[14:13:50] ==================== [SKIPPED] xe_mocs =====================
[14:13:50] ================= xe_migrate (2 subtests) ==================
[14:13:50] ================= xe_migrate_sanity_kunit  =================
[14:13:50] ============ [SKIPPED] xe_migrate_sanity_kunit =============
[14:13:50] ================== xe_validate_ccs_kunit  ==================
[14:13:50] ============= [SKIPPED] xe_validate_ccs_kunit ==============
[14:13:50] =================== [SKIPPED] xe_migrate ===================
[14:13:50] ================== xe_dma_buf (1 subtest) ==================
[14:13:50] ==================== xe_dma_buf_kunit  =====================
[14:13:50] ================ [SKIPPED] xe_dma_buf_kunit ================
[14:13:50] =================== [SKIPPED] xe_dma_buf ===================
[14:13:50] ================= xe_bo_shrink (1 subtest) =================
[14:13:50] =================== xe_bo_shrink_kunit  ====================
[14:13:50] =============== [SKIPPED] xe_bo_shrink_kunit ===============
[14:13:50] ================== [SKIPPED] xe_bo_shrink ==================
[14:13:50] ==================== xe_bo (2 subtests) ====================
[14:13:50] ================== xe_ccs_migrate_kunit  ===================
[14:13:50] ============== [SKIPPED] xe_ccs_migrate_kunit ==============
[14:13:50] ==================== xe_bo_evict_kunit  ====================
[14:13:50] =============== [SKIPPED] xe_bo_evict_kunit ================
[14:13:50] ===================== [SKIPPED] xe_bo ======================
[14:13:50] ==================== args (13 subtests) ====================
[14:13:50] [PASSED] count_args_test
[14:13:50] [PASSED] call_args_example
[14:13:50] [PASSED] call_args_test
[14:13:50] [PASSED] drop_first_arg_example
[14:13:50] [PASSED] drop_first_arg_test
[14:13:50] [PASSED] first_arg_example
[14:13:50] [PASSED] first_arg_test
[14:13:50] [PASSED] last_arg_example
[14:13:50] [PASSED] last_arg_test
[14:13:50] [PASSED] pick_arg_example
[14:13:50] [PASSED] if_args_example
[14:13:50] [PASSED] if_args_test
[14:13:50] [PASSED] sep_comma_example
[14:13:50] ====================== [PASSED] args =======================
[14:13:50] =================== xe_pci (3 subtests) ====================
[14:13:50] ==================== check_graphics_ip  ====================
[14:13:50] [PASSED] 12.00 Xe_LP
[14:13:50] [PASSED] 12.10 Xe_LP+
[14:13:50] [PASSED] 12.55 Xe_HPG
[14:13:50] [PASSED] 12.60 Xe_HPC
[14:13:50] [PASSED] 12.70 Xe_LPG
[14:13:50] [PASSED] 12.71 Xe_LPG
[14:13:50] [PASSED] 12.74 Xe_LPG+
[14:13:50] [PASSED] 20.01 Xe2_HPG
[14:13:50] [PASSED] 20.02 Xe2_HPG
[14:13:50] [PASSED] 20.04 Xe2_LPG
[14:13:50] [PASSED] 30.00 Xe3_LPG
[14:13:50] [PASSED] 30.01 Xe3_LPG
[14:13:50] [PASSED] 30.03 Xe3_LPG
[14:13:50] [PASSED] 30.04 Xe3_LPG
[14:13:50] [PASSED] 30.05 Xe3_LPG
[14:13:50] [PASSED] 35.10 Xe3p_LPG
[14:13:50] [PASSED] 35.11 Xe3p_XPC
[14:13:50] ================ [PASSED] check_graphics_ip ================
[14:13:50] ===================== check_media_ip  ======================
[14:13:50] [PASSED] 12.00 Xe_M
[14:13:50] [PASSED] 12.55 Xe_HPM
[14:13:50] [PASSED] 13.00 Xe_LPM+
[14:13:50] [PASSED] 13.01 Xe2_HPM
[14:13:50] [PASSED] 20.00 Xe2_LPM
[14:13:50] [PASSED] 30.00 Xe3_LPM
[14:13:50] [PASSED] 30.02 Xe3_LPM
[14:13:50] [PASSED] 35.00 Xe3p_LPM
[14:13:50] [PASSED] 35.03 Xe3p_HPM
[14:13:50] ================= [PASSED] check_media_ip ==================
[14:13:50] =================== check_platform_desc  ===================
[14:13:50] [PASSED] 0x9A60 (TIGERLAKE)
[14:13:50] [PASSED] 0x9A68 (TIGERLAKE)
[14:13:50] [PASSED] 0x9A70 (TIGERLAKE)
[14:13:50] [PASSED] 0x9A40 (TIGERLAKE)
[14:13:50] [PASSED] 0x9A49 (TIGERLAKE)
[14:13:50] [PASSED] 0x9A59 (TIGERLAKE)
[14:13:50] [PASSED] 0x9A78 (TIGERLAKE)
[14:13:50] [PASSED] 0x9AC0 (TIGERLAKE)
[14:13:50] [PASSED] 0x9AC9 (TIGERLAKE)
[14:13:50] [PASSED] 0x9AD9 (TIGERLAKE)
[14:13:50] [PASSED] 0x9AF8 (TIGERLAKE)
[14:13:50] [PASSED] 0x4C80 (ROCKETLAKE)
[14:13:50] [PASSED] 0x4C8A (ROCKETLAKE)
[14:13:50] [PASSED] 0x4C8B (ROCKETLAKE)
[14:13:50] [PASSED] 0x4C8C (ROCKETLAKE)
[14:13:50] [PASSED] 0x4C90 (ROCKETLAKE)
[14:13:50] [PASSED] 0x4C9A (ROCKETLAKE)
[14:13:50] [PASSED] 0x4680 (ALDERLAKE_S)
[14:13:50] [PASSED] 0x4682 (ALDERLAKE_S)
[14:13:50] [PASSED] 0x4688 (ALDERLAKE_S)
[14:13:50] [PASSED] 0x468A (ALDERLAKE_S)
[14:13:50] [PASSED] 0x468B (ALDERLAKE_S)
[14:13:50] [PASSED] 0x4690 (ALDERLAKE_S)
[14:13:50] [PASSED] 0x4692 (ALDERLAKE_S)
[14:13:50] [PASSED] 0x4693 (ALDERLAKE_S)
[14:13:50] [PASSED] 0x46A0 (ALDERLAKE_P)
[14:13:50] [PASSED] 0x46A1 (ALDERLAKE_P)
[14:13:50] [PASSED] 0x46A2 (ALDERLAKE_P)
[14:13:50] [PASSED] 0x46A3 (ALDERLAKE_P)
[14:13:50] [PASSED] 0x46A6 (ALDERLAKE_P)
[14:13:50] [PASSED] 0x46A8 (ALDERLAKE_P)
[14:13:50] [PASSED] 0x46AA (ALDERLAKE_P)
[14:13:50] [PASSED] 0x462A (ALDERLAKE_P)
[14:13:50] [PASSED] 0x4626 (ALDERLAKE_P)
[14:13:50] [PASSED] 0x4628 (ALDERLAKE_P)
[14:13:50] [PASSED] 0x46B0 (ALDERLAKE_P)
[14:13:50] [PASSED] 0x46B1 (ALDERLAKE_P)
[14:13:50] [PASSED] 0x46B2 (ALDERLAKE_P)
[14:13:50] [PASSED] 0x46B3 (ALDERLAKE_P)
[14:13:50] [PASSED] 0x46C0 (ALDERLAKE_P)
[14:13:50] [PASSED] 0x46C1 (ALDERLAKE_P)
[14:13:50] [PASSED] 0x46C2 (ALDERLAKE_P)
[14:13:50] [PASSED] 0x46C3 (ALDERLAKE_P)
[14:13:50] [PASSED] 0x46D0 (ALDERLAKE_N)
[14:13:50] [PASSED] 0x46D1 (ALDERLAKE_N)
[14:13:50] [PASSED] 0x46D2 (ALDERLAKE_N)
[14:13:50] [PASSED] 0x46D3 (ALDERLAKE_N)
[14:13:50] [PASSED] 0x46D4 (ALDERLAKE_N)
[14:13:50] [PASSED] 0xA721 (ALDERLAKE_P)
[14:13:50] [PASSED] 0xA7A1 (ALDERLAKE_P)
[14:13:50] [PASSED] 0xA7A9 (ALDERLAKE_P)
[14:13:50] [PASSED] 0xA7AC (ALDERLAKE_P)
[14:13:50] [PASSED] 0xA7AD (ALDERLAKE_P)
[14:13:50] [PASSED] 0xA720 (ALDERLAKE_P)
[14:13:50] [PASSED] 0xA7A0 (ALDERLAKE_P)
[14:13:50] [PASSED] 0xA7A8 (ALDERLAKE_P)
[14:13:50] [PASSED] 0xA7AA (ALDERLAKE_P)
[14:13:50] [PASSED] 0xA7AB (ALDERLAKE_P)
[14:13:50] [PASSED] 0xA780 (ALDERLAKE_S)
[14:13:50] [PASSED] 0xA781 (ALDERLAKE_S)
[14:13:50] [PASSED] 0xA782 (ALDERLAKE_S)
[14:13:50] [PASSED] 0xA783 (ALDERLAKE_S)
[14:13:50] [PASSED] 0xA788 (ALDERLAKE_S)
[14:13:50] [PASSED] 0xA789 (ALDERLAKE_S)
[14:13:50] [PASSED] 0xA78A (ALDERLAKE_S)
[14:13:50] [PASSED] 0xA78B (ALDERLAKE_S)
[14:13:50] [PASSED] 0x4905 (DG1)
[14:13:50] [PASSED] 0x4906 (DG1)
[14:13:50] [PASSED] 0x4907 (DG1)
[14:13:50] [PASSED] 0x4908 (DG1)
[14:13:50] [PASSED] 0x4909 (DG1)
[14:13:50] [PASSED] 0x56C0 (DG2)
[14:13:50] [PASSED] 0x56C2 (DG2)
[14:13:50] [PASSED] 0x56C1 (DG2)
[14:13:50] [PASSED] 0x7D51 (METEORLAKE)
[14:13:50] [PASSED] 0x7DD1 (METEORLAKE)
[14:13:50] [PASSED] 0x7D41 (METEORLAKE)
[14:13:50] [PASSED] 0x7D67 (METEORLAKE)
[14:13:50] [PASSED] 0xB640 (METEORLAKE)
[14:13:50] [PASSED] 0x56A0 (DG2)
[14:13:50] [PASSED] 0x56A1 (DG2)
[14:13:50] [PASSED] 0x56A2 (DG2)
[14:13:50] [PASSED] 0x56BE (DG2)
[14:13:50] [PASSED] 0x56BF (DG2)
[14:13:50] [PASSED] 0x5690 (DG2)
[14:13:50] [PASSED] 0x5691 (DG2)
[14:13:50] [PASSED] 0x5692 (DG2)
[14:13:50] [PASSED] 0x56A5 (DG2)
[14:13:50] [PASSED] 0x56A6 (DG2)
[14:13:50] [PASSED] 0x56B0 (DG2)
[14:13:50] [PASSED] 0x56B1 (DG2)
[14:13:50] [PASSED] 0x56BA (DG2)
[14:13:50] [PASSED] 0x56BB (DG2)
[14:13:50] [PASSED] 0x56BC (DG2)
[14:13:50] [PASSED] 0x56BD (DG2)
[14:13:50] [PASSED] 0x5693 (DG2)
[14:13:50] [PASSED] 0x5694 (DG2)
[14:13:50] [PASSED] 0x5695 (DG2)
[14:13:50] [PASSED] 0x56A3 (DG2)
[14:13:50] [PASSED] 0x56A4 (DG2)
[14:13:50] [PASSED] 0x56B2 (DG2)
[14:13:50] [PASSED] 0x56B3 (DG2)
[14:13:50] [PASSED] 0x5696 (DG2)
[14:13:50] [PASSED] 0x5697 (DG2)
[14:13:50] [PASSED] 0xB69 (PVC)
[14:13:50] [PASSED] 0xB6E (PVC)
[14:13:50] [PASSED] 0xBD4 (PVC)
[14:13:50] [PASSED] 0xBD5 (PVC)
[14:13:50] [PASSED] 0xBD6 (PVC)
[14:13:50] [PASSED] 0xBD7 (PVC)
[14:13:50] [PASSED] 0xBD8 (PVC)
[14:13:50] [PASSED] 0xBD9 (PVC)
[14:13:50] [PASSED] 0xBDA (PVC)
[14:13:50] [PASSED] 0xBDB (PVC)
[14:13:50] [PASSED] 0xBE0 (PVC)
[14:13:50] [PASSED] 0xBE1 (PVC)
[14:13:50] [PASSED] 0xBE5 (PVC)
[14:13:50] [PASSED] 0x7D40 (METEORLAKE)
[14:13:50] [PASSED] 0x7D45 (METEORLAKE)
[14:13:50] [PASSED] 0x7D55 (METEORLAKE)
[14:13:50] [PASSED] 0x7D60 (METEORLAKE)
[14:13:50] [PASSED] 0x7DD5 (METEORLAKE)
[14:13:50] [PASSED] 0x6420 (LUNARLAKE)
[14:13:50] [PASSED] 0x64A0 (LUNARLAKE)
[14:13:50] [PASSED] 0x64B0 (LUNARLAKE)
[14:13:50] [PASSED] 0xE202 (BATTLEMAGE)
[14:13:50] [PASSED] 0xE209 (BATTLEMAGE)
[14:13:50] [PASSED] 0xE20B (BATTLEMAGE)
[14:13:50] [PASSED] 0xE20C (BATTLEMAGE)
[14:13:50] [PASSED] 0xE20D (BATTLEMAGE)
[14:13:50] [PASSED] 0xE210 (BATTLEMAGE)
[14:13:50] [PASSED] 0xE211 (BATTLEMAGE)
[14:13:50] [PASSED] 0xE212 (BATTLEMAGE)
[14:13:50] [PASSED] 0xE216 (BATTLEMAGE)
[14:13:50] [PASSED] 0xE220 (BATTLEMAGE)
[14:13:50] [PASSED] 0xE221 (BATTLEMAGE)
[14:13:50] [PASSED] 0xE222 (BATTLEMAGE)
[14:13:50] [PASSED] 0xE223 (BATTLEMAGE)
[14:13:50] [PASSED] 0xB080 (PANTHERLAKE)
[14:13:50] [PASSED] 0xB081 (PANTHERLAKE)
[14:13:50] [PASSED] 0xB082 (PANTHERLAKE)
[14:13:50] [PASSED] 0xB083 (PANTHERLAKE)
[14:13:50] [PASSED] 0xB084 (PANTHERLAKE)
[14:13:50] [PASSED] 0xB085 (PANTHERLAKE)
[14:13:50] [PASSED] 0xB086 (PANTHERLAKE)
[14:13:50] [PASSED] 0xB087 (PANTHERLAKE)
[14:13:50] [PASSED] 0xB08F (PANTHERLAKE)
[14:13:50] [PASSED] 0xB090 (PANTHERLAKE)
[14:13:50] [PASSED] 0xB0A0 (PANTHERLAKE)
[14:13:50] [PASSED] 0xB0B0 (PANTHERLAKE)
[14:13:50] [PASSED] 0xFD80 (PANTHERLAKE)
[14:13:50] [PASSED] 0xFD81 (PANTHERLAKE)
[14:13:50] [PASSED] 0xD740 (NOVALAKE_S)
[14:13:50] [PASSED] 0xD741 (NOVALAKE_S)
[14:13:50] [PASSED] 0xD742 (NOVALAKE_S)
[14:13:50] [PASSED] 0xD743 (NOVALAKE_S)
[14:13:50] [PASSED] 0xD745 (NOVALAKE_S)
[14:13:50] [PASSED] 0xD74A (NOVALAKE_S)
[14:13:50] [PASSED] 0xD74B (NOVALAKE_S)
[14:13:50] [PASSED] 0x674C (CRESCENTISLAND)
[14:13:50] [PASSED] 0x674D (CRESCENTISLAND)
[14:13:50] [PASSED] 0x674E (CRESCENTISLAND)
[14:13:50] [PASSED] 0x674F (CRESCENTISLAND)
[14:13:50] [PASSED] 0x6750 (CRESCENTISLAND)
[14:13:50] [PASSED] 0xD750 (NOVALAKE_P)
[14:13:50] [PASSED] 0xD751 (NOVALAKE_P)
[14:13:50] [PASSED] 0xD752 (NOVALAKE_P)
[14:13:50] [PASSED] 0xD753 (NOVALAKE_P)
[14:13:50] [PASSED] 0xD754 (NOVALAKE_P)
[14:13:50] [PASSED] 0xD755 (NOVALAKE_P)
[14:13:50] [PASSED] 0xD756 (NOVALAKE_P)
[14:13:50] [PASSED] 0xD757 (NOVALAKE_P)
[14:13:50] [PASSED] 0xD75F (NOVALAKE_P)
[14:13:50] =============== [PASSED] check_platform_desc ===============
[14:13:50] ===================== [PASSED] xe_pci ======================
[14:13:50] ============= xe_rtp_tables_test (4 subtests) ==============
[14:13:50] ================== xe_rtp_table_gt_test  ===================
[14:13:50] [PASSED] gt_was/14011060649
[14:13:50] [PASSED] gt_was/14011059788
[14:13:50] [PASSED] gt_was/14015795083
[14:13:50] [PASSED] gt_was/16021867713
[14:13:50] [PASSED] gt_was/14019449301
[14:13:50] [PASSED] gt_was/16028005424
[14:13:50] [PASSED] gt_was/14026578760
[14:13:50] [PASSED] gt_was/1409420604
[14:13:50] [PASSED] gt_was/1408615072
[14:13:50] [PASSED] gt_was/22010523718
[14:13:50] [PASSED] gt_was/14011006942
[14:13:50] [PASSED] gt_was/14014830051
[14:13:50] [PASSED] gt_was/18018781329
[14:13:50] [PASSED] gt_was/1509235366
[14:13:50] [PASSED] gt_was/18018781329
[14:13:50] [PASSED] gt_was/16016694945
[14:13:50] [PASSED] gt_was/14018575942
[14:13:50] [PASSED] gt_was/22016670082
[14:13:50] [PASSED] gt_was/22016670082
[14:13:50] [PASSED] gt_was/14017421178
[14:13:50] [PASSED] gt_was/16025250150
[14:13:50] [PASSED] gt_was/14021871409
[14:13:50] [PASSED] gt_was/16021865536
[14:13:50] [PASSED] gt_was/14021486841
[14:13:50] [PASSED] gt_was/14025160223
[14:13:50] [PASSED] gt_was/14026144927, 16029437861, 14026127056
[14:13:50] [PASSED] gt_was/14025635424
[14:13:50] [PASSED] gt_was/16028005424
[14:13:50] ============== [PASSED] xe_rtp_table_gt_test ===============
[14:13:50] ================== xe_rtp_table_gt_test  ===================
[14:13:50] [PASSED] gt_tunings/Tuning: Blend Fill Caching Optimization Disable
[14:13:50] [PASSED] gt_tunings/Tuning: 32B Access Enable
[14:13:50] [PASSED] gt_tunings/Tuning: L3 cache
[14:13:50] [PASSED] gt_tunings/Tuning: L3 cache - media
[14:13:50] [PASSED] gt_tunings/Tuning: Compression Overfetch
[14:13:50] [PASSED] gt_tunings/Tuning: Compression Overfetch - media
[14:13:50] [PASSED] gt_tunings/Tuning: Enable compressible partial write overfetch in L3
[14:13:50] [PASSED] gt_tunings/Tuning: Enable compressible partial write overfetch in L3 - media
[14:13:50] [PASSED] gt_tunings/Tuning: L2 Overfetch Compressible Only
[14:13:50] [PASSED] gt_tunings/Tuning: L2 Overfetch Compressible Only - media
[14:13:50] [PASSED] gt_tunings/Tuning: Stateless compression control
[14:13:50] [PASSED] gt_tunings/Tuning: Stateless compression control - media
[14:13:50] [PASSED] gt_tunings/Tuning: L3 RW flush all Cache
[14:13:50] [PASSED] gt_tunings/Tuning: L3 RW flush all cache - media
[14:13:50] [PASSED] gt_tunings/Tuning: Set STLB Bank Hash Mode to 4KB
[14:13:50] ============== [PASSED] xe_rtp_table_gt_test ===============
[14:13:50] ================== xe_rtp_table_oob_test  ==================
[14:13:50] [PASSED] oob_was/1607983814
[14:13:50] [PASSED] oob_was/16010904313
[14:13:50] [PASSED] oob_was/18022495364
[14:13:50] [PASSED] oob_was/22012773006
[14:13:50] [PASSED] oob_was/14014475959
[14:13:50] [PASSED] oob_was/22011391025
[14:13:50] [PASSED] oob_was/22012727170
[14:13:50] [PASSED] oob_was/22012727685
[14:13:50] [PASSED] oob_was/22016596838
[14:13:50] [PASSED] oob_was/18020744125
[14:13:50] [PASSED] oob_was/1409600907
[14:13:50] [PASSED] oob_was/22014953428
[14:13:50] [PASSED] oob_was/16017236439
[14:13:50] [PASSED] oob_was/14019821291
[14:13:50] [PASSED] oob_was/14015076503
[14:13:50] [PASSED] oob_was/14018913170
[14:13:50] [PASSED] oob_was/14018094691
[14:13:50] [PASSED] oob_was/18024947630
[14:13:50] [PASSED] oob_was/16022287689
[14:13:50] [PASSED] oob_was/13011645652
[14:13:50] [PASSED] oob_was/14022293748
[14:13:50] [PASSED] oob_was/22019794406
[14:13:50] [PASSED] oob_was/22019338487
[14:13:50] [PASSED] oob_was/16023588340
[14:13:50] [PASSED] oob_was/14019789679
[14:13:50] [PASSED] oob_was/14022866841
[14:13:50] [PASSED] oob_was/16021333562
[14:13:50] [PASSED] oob_was/14016712196
[14:13:50] [PASSED] oob_was/14015568240
[14:13:50] [PASSED] oob_was/18013179988
[14:13:50] [PASSED] oob_was/1508761755
[14:13:50] [PASSED] oob_was/16023105232
[14:13:50] [PASSED] oob_was/16026508708
[14:13:50] [PASSED] oob_was/14020001231
[14:13:50] [PASSED] oob_was/16023683509
[14:13:50] [PASSED] oob_was/14025515070
[14:13:50] [PASSED] oob_was/15015404425_disable
[14:13:50] [PASSED] oob_was/16026007364
[14:13:50] [PASSED] oob_was/14020316580
[14:13:50] [PASSED] oob_was/14025883347
[14:13:50] [PASSED] oob_was/16029380221
[14:13:50] ============== [PASSED] xe_rtp_table_oob_test ==============
[14:13:50] ================ xe_rtp_table_dev_oob_test  ================
[14:13:50] [PASSED] device_oob_was/22010954014
[14:13:50] [PASSED] device_oob_was/15015404425
[14:13:50] [PASSED] device_oob_was/22019338487_display
[14:13:50] [PASSED] device_oob_was/14022085890
[14:13:50] [PASSED] device_oob_was/14026539277
[14:13:50] [PASSED] device_oob_was/14026633728
[14:13:50] [PASSED] device_oob_was/14026746987
[14:13:50] [PASSED] device_oob_was/14026779378
[14:13:50] ============ [PASSED] xe_rtp_table_dev_oob_test ============
[14:13:50] =============== [PASSED] xe_rtp_tables_test ================
[14:13:50] =================== xe_rtp (3 subtests) ====================
[14:13:50] =================== xe_rtp_rules_tests  ====================
[14:13:50] [PASSED] no
[14:13:50] [PASSED] yes
[14:13:50] [PASSED] no-and-no
[14:13:50] [PASSED] no-and-yes
[14:13:50] [PASSED] yes-and-no
[14:13:50] [PASSED] yes-and-yes
[14:13:50] [PASSED] no-or-no
[14:13:50] [PASSED] no-or-yes
[14:13:50] [PASSED] yes-or-no
[14:13:50] [PASSED] yes-or-yes
[14:13:50] [PASSED] no-yes-or-yes-no
[14:13:50] [PASSED] no-yes-or-yes-yes
[14:13:50] [PASSED] yes-yes-or-no-yes
[14:13:50] [PASSED] yes-yes-or-yes-yes
[14:13:50] [PASSED] no-no-or-yes-or-no
[14:13:50] [PASSED] or
[14:13:50] [PASSED] or-yes
[14:13:50] [PASSED] or-no
[14:13:50] [PASSED] yes-or
[14:13:50] [PASSED] no-or
[14:13:50] [PASSED] no-or-or-yes
[14:13:50] [PASSED] yes-or-or-no
[14:13:50] [PASSED] no-or-or-no
[14:13:50] [PASSED] missing-context-engine-class
[14:13:50] [PASSED] missing-context-engine-class-or-yes
[14:13:50] [PASSED] missing-context-engine-class-or-or-yes
[14:13:50] =============== [PASSED] xe_rtp_rules_tests ================
[14:13:50] =============== xe_rtp_process_to_sr_tests  ================
[14:13:50] [PASSED] coalesce-same-reg
[14:13:50] [PASSED] coalesce-same-reg-literal-and-func
[14:13:50] [PASSED] no-match-no-add
[14:13:50] [PASSED] two-regs-two-entries
[14:13:50] [PASSED] clr-one-set-other
[14:13:50] [PASSED] set-field
[14:13:50] [PASSED] conflict-duplicate
[14:13:50] [PASSED] conflict-not-disjoint
[14:13:50] [PASSED] conflict-not-disjoint-literal-and-func
[14:13:50] [PASSED] conflict-reg-type
[14:13:50] [PASSED] bad-mcr-reg-forced-to-regular
[14:13:50] [PASSED] bad-regular-reg-forced-to-mcr
[14:13:50] =========== [PASSED] xe_rtp_process_to_sr_tests ============
[14:13:50] ================== xe_rtp_process_tests  ===================
[14:13:50] [PASSED] active1
[14:13:50] [PASSED] active2
[14:13:50] [PASSED] active-inactive
[14:13:50] [PASSED] inactive-active
[14:13:50] [PASSED] inactive-active-inactive
[14:13:50] [PASSED] inactive-inactive-inactive
[14:13:50] ============== [PASSED] xe_rtp_process_tests ===============
[14:13:50] ===================== [PASSED] xe_rtp ======================
[14:13:50] ==================== xe_wa (1 subtest) =====================
[14:13:50] ======================== xe_wa_gt  =========================
[14:13:50] [PASSED] TIGERLAKE B0
[14:13:50] [PASSED] DG1 A0
[14:13:50] [PASSED] DG1 B0
[14:13:50] [PASSED] ALDERLAKE_S A0
[14:13:50] [PASSED] ALDERLAKE_S B0
[14:13:50] [PASSED] ALDERLAKE_S C0
[14:13:50] [PASSED] ALDERLAKE_S D0
[14:13:50] [PASSED] ALDERLAKE_P A0
[14:13:50] [PASSED] ALDERLAKE_P B0
[14:13:50] [PASSED] ALDERLAKE_P C0
[14:13:50] [PASSED] ALDERLAKE_S RPLS D0
[14:13:50] [PASSED] ALDERLAKE_P RPLU E0
[14:13:50] [PASSED] DG2 G10 C0
[14:13:50] [PASSED] DG2 G11 B1
[14:13:50] [PASSED] DG2 G12 A1
[14:13:50] [PASSED] METEORLAKE 12.70(Xe_LPG) A0 13.00(Xe_LPM+) A0
[14:13:50] [PASSED] METEORLAKE 12.71(Xe_LPG) A0 13.00(Xe_LPM+) A0
[14:13:50] [PASSED] METEORLAKE 12.74(Xe_LPG+) A0 13.00(Xe_LPM+) A0
[14:13:50] [PASSED] LUNARLAKE 20.04(Xe2_LPG) A0 20.00(Xe2_LPM) A0
[14:13:50] [PASSED] LUNARLAKE 20.04(Xe2_LPG) B0 20.00(Xe2_LPM) A0
[14:13:50] [PASSED] BATTLEMAGE 20.01(Xe2_HPG) A0 13.01(Xe2_HPM) A1
[14:13:50] [PASSED] PANTHERLAKE 30.00(Xe3_LPG) A0 30.00(Xe3_LPM) A0
[14:13:50] ==================== [PASSED] xe_wa_gt =====================
[14:13:50] ====================== [PASSED] xe_wa ======================
[14:13:50] ============================================================
[14:13:50] Testing complete. Ran 719 tests: passed: 701, skipped: 18
[14:13:50] Elapsed time: 36.217s total, 4.313s configuring, 31.238s building, 0.652s running

+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/tests/.kunitconfig [14:13:50] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:

$ make ARCH=um O=.kunit olddefconfig
[14:13:52] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48
[14:14:16] Starting KUnit Kernel (1/1)...
[14:14:16] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[14:14:16] ============ drm_test_pick_cmdline (2 subtests) ============
[14:14:16] [PASSED] drm_test_pick_cmdline_res_1920_1080_60
[14:14:16] =============== drm_test_pick_cmdline_named  ===============
[14:14:16] [PASSED] NTSC
[14:14:16] [PASSED] NTSC-J
[14:14:16] [PASSED] PAL
[14:14:16] [PASSED] PAL-M
[14:14:16] =========== [PASSED] drm_test_pick_cmdline_named ===========
[14:14:16] ============== [PASSED] drm_test_pick_cmdline ==============
[14:14:16] == drm_test_atomic_get_connector_for_encoder (1 subtest) ===
[14:14:16] [PASSED] drm_test_drm_atomic_get_connector_for_encoder
[14:14:16] ==== [PASSED] drm_test_atomic_get_connector_for_encoder ====
[14:14:16] =========== drm_validate_clone_mode (2 subtests) ===========
[14:14:16] ============== drm_test_check_in_clone_mode  ===============
[14:14:16] [PASSED] in_clone_mode
[14:14:16] [PASSED] not_in_clone_mode
[14:14:16] ========== [PASSED] drm_test_check_in_clone_mode ===========
[14:14:16] =============== drm_test_check_valid_clones  ===============
[14:14:16] [PASSED] not_in_clone_mode
[14:14:16] [PASSED] valid_clone
[14:14:16] [PASSED] invalid_clone
[14:14:16] =========== [PASSED] drm_test_check_valid_clones ===========
[14:14:16] ============= [PASSED] drm_validate_clone_mode =============
[14:14:16] ============= drm_validate_modeset (1 subtest) =============
[14:14:16] [PASSED] drm_test_check_connector_changed_modeset
[14:14:16] ============== [PASSED] drm_validate_modeset ===============
[14:14:16] ====== drm_test_bridge_get_current_state (2 subtests) ======
[14:14:16] [PASSED] drm_test_drm_bridge_get_current_state_atomic
[14:14:16] [PASSED] drm_test_drm_bridge_get_current_state_legacy
[14:14:16] ======== [PASSED] drm_test_bridge_get_current_state ========
[14:14:16] ====== drm_test_bridge_helper_reset_crtc (4 subtests) ======
[14:14:16] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic
[14:14:16] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic_disabled
[14:14:16] [PASSED] drm_test_drm_bridge_helper_reset_crtc_legacy
[14:14:16] [PASSED] drm_test_drm_bridge_helper_hdmi_output_bus_fmts
[14:14:16] ======== [PASSED] drm_test_bridge_helper_reset_crtc ========
[14:14:16] ============== drm_bridge_alloc (2 subtests) ===============
[14:14:16] [PASSED] drm_test_drm_bridge_alloc_basic
[14:14:16] [PASSED] drm_test_drm_bridge_alloc_get_put
[14:14:16] ================ [PASSED] drm_bridge_alloc =================
[14:14:16] ============= drm_bridge_bus_fmt (5 subtests) ==============
[14:14:16] [PASSED] drm_test_bridge_rgb_yuv_rgb
[14:14:16] [PASSED] drm_test_bridge_must_convert_to_yuv444
[14:14:16] [PASSED] drm_test_bridge_hdmi_auto_rgb
[14:14:16] [PASSED] drm_test_bridge_auto_first
[14:14:16] [PASSED] drm_test_bridge_rgb_yuv_no_path
[14:14:16] =============== [PASSED] drm_bridge_bus_fmt ================
[14:14:16] ============= drm_cmdline_parser (40 subtests) =============
[14:14:16] [PASSED] drm_test_cmdline_force_d_only
[14:14:16] [PASSED] drm_test_cmdline_force_D_only_dvi
[14:14:16] [PASSED] drm_test_cmdline_force_D_only_hdmi
[14:14:16] [PASSED] drm_test_cmdline_force_D_only_not_digital
[14:14:16] [PASSED] drm_test_cmdline_force_e_only
[14:14:16] [PASSED] drm_test_cmdline_res
[14:14:16] [PASSED] drm_test_cmdline_res_vesa
[14:14:16] [PASSED] drm_test_cmdline_res_vesa_rblank
[14:14:16] [PASSED] drm_test_cmdline_res_rblank
[14:14:16] [PASSED] drm_test_cmdline_res_bpp
[14:14:16] [PASSED] drm_test_cmdline_res_refresh
[14:14:16] [PASSED] drm_test_cmdline_res_bpp_refresh
[14:14:16] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced
[14:14:16] [PASSED] drm_test_cmdline_res_bpp_refresh_margins
[14:14:16] [PASSED] drm_test_cmdline_res_bpp_refresh_force_off
[14:14:16] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on
[14:14:16] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_analog
[14:14:16] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_digital
[14:14:16] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced_margins_force_on
[14:14:16] [PASSED] drm_test_cmdline_res_margins_force_on
[14:14:16] [PASSED] drm_test_cmdline_res_vesa_margins
[14:14:16] [PASSED] drm_test_cmdline_name
[14:14:16] [PASSED] drm_test_cmdline_name_bpp
[14:14:16] [PASSED] drm_test_cmdline_name_option
[14:14:16] [PASSED] drm_test_cmdline_name_bpp_option
[14:14:16] [PASSED] drm_test_cmdline_rotate_0
[14:14:16] [PASSED] drm_test_cmdline_rotate_90
[14:14:16] [PASSED] drm_test_cmdline_rotate_180
[14:14:16] [PASSED] drm_test_cmdline_rotate_270
[14:14:16] [PASSED] drm_test_cmdline_hmirror
[14:14:16] [PASSED] drm_test_cmdline_vmirror
[14:14:16] [PASSED] drm_test_cmdline_margin_options
[14:14:16] [PASSED] drm_test_cmdline_multiple_options
[14:14:16] [PASSED] drm_test_cmdline_bpp_extra_and_option
[14:14:16] [PASSED] drm_test_cmdline_extra_and_option
[14:14:16] [PASSED] drm_test_cmdline_freestanding_options
[14:14:16] [PASSED] drm_test_cmdline_freestanding_force_e_and_options
[14:14:16] [PASSED] drm_test_cmdline_panel_orientation
[14:14:16] ================ drm_test_cmdline_invalid  =================
[14:14:16] [PASSED] margin_only
[14:14:16] [PASSED] interlace_only
[14:14:16] [PASSED] res_missing_x
[14:14:16] [PASSED] res_missing_y
[14:14:16] [PASSED] res_bad_y
[14:14:16] [PASSED] res_missing_y_bpp
[14:14:16] [PASSED] res_bad_bpp
[14:14:16] [PASSED] res_bad_refresh
[14:14:16] [PASSED] res_bpp_refresh_force_on_off
[14:14:16] [PASSED] res_invalid_mode
[14:14:16] [PASSED] res_bpp_wrong_place_mode
[14:14:16] [PASSED] name_bpp_refresh
[14:14:16] [PASSED] name_refresh
[14:14:16] [PASSED] name_refresh_wrong_mode
[14:14:16] [PASSED] name_refresh_invalid_mode
[14:14:16] [PASSED] rotate_multiple
[14:14:16] [PASSED] rotate_invalid_val
[14:14:16] [PASSED] rotate_truncated
[14:14:16] [PASSED] invalid_option
[14:14:16] [PASSED] invalid_tv_option
[14:14:16] [PASSED] truncated_tv_option
[14:14:16] ============ [PASSED] drm_test_cmdline_invalid =============
[14:14:16] =============== drm_test_cmdline_tv_options  ===============
[14:14:16] [PASSED] NTSC
[14:14:16] [PASSED] NTSC_443
[14:14:16] [PASSED] NTSC_J
[14:14:16] [PASSED] PAL
[14:14:16] [PASSED] PAL_M
[14:14:16] [PASSED] PAL_N
[14:14:16] [PASSED] SECAM
[14:14:16] [PASSED] MONO_525
[14:14:16] [PASSED] MONO_625
[14:14:16] =========== [PASSED] drm_test_cmdline_tv_options ===========
[14:14:16] =============== [PASSED] drm_cmdline_parser ================
[14:14:16] ========== drmm_connector_hdmi_init (20 subtests) ==========
[14:14:16] [PASSED] drm_test_connector_hdmi_init_valid
[14:14:16] [PASSED] drm_test_connector_hdmi_init_bpc_8
[14:14:16] [PASSED] drm_test_connector_hdmi_init_bpc_10
[14:14:16] [PASSED] drm_test_connector_hdmi_init_bpc_12
[14:14:16] [PASSED] drm_test_connector_hdmi_init_bpc_invalid
[14:14:16] [PASSED] drm_test_connector_hdmi_init_bpc_null
[14:14:16] [PASSED] drm_test_connector_hdmi_init_formats_empty
[14:14:16] [PASSED] drm_test_connector_hdmi_init_formats_no_rgb
[14:14:16] === drm_test_connector_hdmi_init_formats_yuv420_allowed  ===
[14:14:16] [PASSED] supported_formats=0x9 yuv420_allowed=1
[14:14:16] [PASSED] supported_formats=0x9 yuv420_allowed=0
[14:14:16] [PASSED] supported_formats=0x5 yuv420_allowed=1
[14:14:16] [PASSED] supported_formats=0x5 yuv420_allowed=0
[14:14:16] === [PASSED] drm_test_connector_hdmi_init_formats_yuv420_allowed ===
[14:14:16] [PASSED] drm_test_connector_hdmi_init_null_ddc
[14:14:16] [PASSED] drm_test_connector_hdmi_init_null_product
[14:14:16] [PASSED] drm_test_connector_hdmi_init_null_vendor
[14:14:16] [PASSED] drm_test_connector_hdmi_init_product_length_exact
[14:14:16] [PASSED] drm_test_connector_hdmi_init_product_length_too_long
[14:14:16] [PASSED] drm_test_connector_hdmi_init_product_valid
[14:14:16] [PASSED] drm_test_connector_hdmi_init_vendor_length_exact
[14:14:16] [PASSED] drm_test_connector_hdmi_init_vendor_length_too_long
[14:14:16] [PASSED] drm_test_connector_hdmi_init_vendor_valid
[14:14:16] ========= drm_test_connector_hdmi_init_type_valid  =========
[14:14:16] [PASSED] HDMI-A
[14:14:16] [PASSED] HDMI-B
[14:14:16] ===== [PASSED] drm_test_connector_hdmi_init_type_valid =====
[14:14:16] ======== drm_test_connector_hdmi_init_type_invalid  ========
[14:14:16] [PASSED] Unknown
[14:14:16] [PASSED] VGA
[14:14:16] [PASSED] DVI-I
[14:14:16] [PASSED] DVI-D
[14:14:16] [PASSED] DVI-A
[14:14:16] [PASSED] Composite
[14:14:16] [PASSED] SVIDEO
[14:14:16] [PASSED] LVDS
[14:14:16] [PASSED] Component
[14:14:16] [PASSED] DIN
[14:14:16] [PASSED] DP
[14:14:16] [PASSED] TV
[14:14:16] [PASSED] eDP
[14:14:16] [PASSED] Virtual
[14:14:16] [PASSED] DSI
[14:14:16] [PASSED] DPI
[14:14:16] [PASSED] Writeback
[14:14:16] [PASSED] SPI
[14:14:16] [PASSED] USB
[14:14:16] ==== [PASSED] drm_test_connector_hdmi_init_type_invalid ====
[14:14:16] ============ [PASSED] drmm_connector_hdmi_init =============
[14:14:16] ============= drmm_connector_init (3 subtests) =============
[14:14:16] [PASSED] drm_test_drmm_connector_init
[14:14:16] [PASSED] drm_test_drmm_connector_init_null_ddc
[14:14:16] ========= drm_test_drmm_connector_init_type_valid  =========
[14:14:16] [PASSED] Unknown
[14:14:16] [PASSED] VGA
[14:14:16] [PASSED] DVI-I
[14:14:16] [PASSED] DVI-D
[14:14:16] [PASSED] DVI-A
[14:14:16] [PASSED] Composite
[14:14:16] [PASSED] SVIDEO
[14:14:16] [PASSED] LVDS
[14:14:16] [PASSED] Component
[14:14:16] [PASSED] DIN
[14:14:16] [PASSED] DP
[14:14:16] [PASSED] HDMI-A
[14:14:16] [PASSED] HDMI-B
[14:14:16] [PASSED] TV
[14:14:16] [PASSED] eDP
[14:14:16] [PASSED] Virtual
[14:14:16] [PASSED] DSI
[14:14:16] [PASSED] DPI
[14:14:16] [PASSED] Writeback
[14:14:16] [PASSED] SPI
[14:14:16] [PASSED] USB
[14:14:16] ===== [PASSED] drm_test_drmm_connector_init_type_valid =====
[14:14:16] =============== [PASSED] drmm_connector_init ===============
[14:14:16] ========= drm_connector_dynamic_init (6 subtests) ==========
[14:14:16] [PASSED] drm_test_drm_connector_dynamic_init
[14:14:16] [PASSED] drm_test_drm_connector_dynamic_init_null_ddc
[14:14:16] [PASSED] drm_test_drm_connector_dynamic_init_not_added
[14:14:16] [PASSED] drm_test_drm_connector_dynamic_init_properties
[14:14:16] ===== drm_test_drm_connector_dynamic_init_type_valid  ======
[14:14:16] [PASSED] Unknown
[14:14:16] [PASSED] VGA
[14:14:16] [PASSED] DVI-I
[14:14:16] [PASSED] DVI-D
[14:14:16] [PASSED] DVI-A
[14:14:16] [PASSED] Composite
[14:14:16] [PASSED] SVIDEO
[14:14:16] [PASSED] LVDS
[14:14:16] [PASSED] Component
[14:14:16] [PASSED] DIN
[14:14:16] [PASSED] DP
[14:14:16] [PASSED] HDMI-A
[14:14:16] [PASSED] HDMI-B
[14:14:16] [PASSED] TV
[14:14:16] [PASSED] eDP
[14:14:16] [PASSED] Virtual
[14:14:16] [PASSED] DSI
[14:14:16] [PASSED] DPI
[14:14:16] [PASSED] Writeback
[14:14:16] [PASSED] SPI
[14:14:16] [PASSED] USB
[14:14:16] = [PASSED] drm_test_drm_connector_dynamic_init_type_valid ==
[14:14:16] ======== drm_test_drm_connector_dynamic_init_name  =========
[14:14:16] [PASSED] Unknown
[14:14:16] [PASSED] VGA
[14:14:16] [PASSED] DVI-I
[14:14:16] [PASSED] DVI-D
[14:14:16] [PASSED] DVI-A
[14:14:16] [PASSED] Composite
[14:14:16] [PASSED] SVIDEO
[14:14:16] [PASSED] LVDS
[14:14:16] [PASSED] Component
[14:14:16] [PASSED] DIN
[14:14:16] [PASSED] DP
[14:14:16] [PASSED] HDMI-A
[14:14:16] [PASSED] HDMI-B
[14:14:16] [PASSED] TV
[14:14:16] [PASSED] eDP
[14:14:16] [PASSED] Virtual
[14:14:16] [PASSED] DSI
[14:14:16] [PASSED] DPI
[14:14:16] [PASSED] Writeback
[14:14:16] [PASSED] SPI
[14:14:16] [PASSED] USB
[14:14:16] ==== [PASSED] drm_test_drm_connector_dynamic_init_name =====
[14:14:16] =========== [PASSED] drm_connector_dynamic_init ============
[14:14:16] ==== drm_connector_dynamic_register_early (4 subtests) =====
[14:14:16] [PASSED] drm_test_drm_connector_dynamic_register_early_on_list
[14:14:16] [PASSED] drm_test_drm_connector_dynamic_register_early_defer
[14:14:16] [PASSED] drm_test_drm_connector_dynamic_register_early_no_init
[14:14:16] [PASSED] drm_test_drm_connector_dynamic_register_early_no_mode_object
[14:14:16] ====== [PASSED] drm_connector_dynamic_register_early =======
[14:14:16] ======= drm_connector_dynamic_register (7 subtests) ========
[14:14:16] [PASSED] drm_test_drm_connector_dynamic_register_on_list
[14:14:16] [PASSED] drm_test_drm_connector_dynamic_register_no_defer
[14:14:16] [PASSED] drm_test_drm_connector_dynamic_register_no_init
[14:14:16] [PASSED] drm_test_drm_connector_dynamic_register_mode_object
[14:14:16] [PASSED] drm_test_drm_connector_dynamic_register_sysfs
[14:14:16] [PASSED] drm_test_drm_connector_dynamic_register_sysfs_name
[14:14:16] [PASSED] drm_test_drm_connector_dynamic_register_debugfs
[14:14:16] ========= [PASSED] drm_connector_dynamic_register ==========
[14:14:16] = drm_connector_attach_broadcast_rgb_property (2 subtests) =
[14:14:16] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property
[14:14:16] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property_hdmi_connector
[14:14:16] === [PASSED] drm_connector_attach_broadcast_rgb_property ===
[14:14:16] ========== drm_get_tv_mode_from_name (2 subtests) ==========
[14:14:16] ========== drm_test_get_tv_mode_from_name_valid  ===========
[14:14:16] [PASSED] NTSC
[14:14:16] [PASSED] NTSC-443
[14:14:16] [PASSED] NTSC-J
[14:14:16] [PASSED] PAL
[14:14:16] [PASSED] PAL-M
[14:14:16] [PASSED] PAL-N
[14:14:16] [PASSED] SECAM
[14:14:16] [PASSED] Mono
[14:14:16] ====== [PASSED] drm_test_get_tv_mode_from_name_valid =======
[14:14:16] [PASSED] drm_test_get_tv_mode_from_name_truncated
[14:14:16] ============ [PASSED] drm_get_tv_mode_from_name ============
[14:14:16] = drm_test_connector_hdmi_compute_mode_clock (12 subtests) =
[14:14:16] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb
[14:14:16] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc
[14:14:16] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc_vic_1
[14:14:16] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc
[14:14:16] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc_vic_1
[14:14:16] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_double
[14:14:16] = drm_test_connector_hdmi_compute_mode_clock_yuv420_valid  =
[14:14:16] [PASSED] VIC 96
[14:14:16] [PASSED] VIC 97
[14:14:16] [PASSED] VIC 101
[14:14:16] [PASSED] VIC 102
[14:14:16] [PASSED] VIC 106
[14:14:16] [PASSED] VIC 107
[14:14:16] === [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_valid ===
[14:14:16] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_10_bpc
[14:14:16] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_12_bpc
[14:14:16] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_8_bpc
[14:14:16] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_10_bpc
[14:14:16] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_12_bpc
[14:14:16] === [PASSED] drm_test_connector_hdmi_compute_mode_clock ====
[14:14:16] == drm_hdmi_connector_get_broadcast_rgb_name (2 subtests) ==
[14:14:16] === drm_test_drm_hdmi_connector_get_broadcast_rgb_name  ====
[14:14:16] [PASSED] Automatic
[14:14:16] [PASSED] Full
[14:14:16] [PASSED] Limited 16:235
[14:14:16] === [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name ===
[14:14:16] [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name_invalid
[14:14:16] ==== [PASSED] drm_hdmi_connector_get_broadcast_rgb_name ====
[14:14:16] == drm_hdmi_connector_get_output_format_name (2 subtests) ==
[14:14:16] === drm_test_drm_hdmi_connector_get_output_format_name  ====
[14:14:16] [PASSED] RGB
[14:14:16] [PASSED] YUV 4:2:0
[14:14:16] [PASSED] YUV 4:2:2
[14:14:16] [PASSED] YUV 4:4:4
[14:14:16] === [PASSED] drm_test_drm_hdmi_connector_get_output_format_name ===
[14:14:16] [PASSED] drm_test_drm_hdmi_connector_get_output_format_name_invalid
[14:14:16] ==== [PASSED] drm_hdmi_connector_get_output_format_name ====
[14:14:16] ============= drm_damage_helper (21 subtests) ==============
[14:14:16] [PASSED] drm_test_damage_iter_no_damage
[14:14:16] [PASSED] drm_test_damage_iter_no_damage_fractional_src
[14:14:16] [PASSED] drm_test_damage_iter_no_damage_src_moved
[14:14:16] [PASSED] drm_test_damage_iter_no_damage_fractional_src_moved
[14:14:16] [PASSED] drm_test_damage_iter_no_damage_not_visible
[14:14:16] [PASSED] drm_test_damage_iter_no_damage_no_crtc
[14:14:16] [PASSED] drm_test_damage_iter_no_damage_no_fb
[14:14:16] [PASSED] drm_test_damage_iter_simple_damage
[14:14:16] [PASSED] drm_test_damage_iter_single_damage
[14:14:16] [PASSED] drm_test_damage_iter_single_damage_intersect_src
[14:14:16] [PASSED] drm_test_damage_iter_single_damage_outside_src
[14:14:16] [PASSED] drm_test_damage_iter_single_damage_fractional_src
[14:14:16] [PASSED] drm_test_damage_iter_single_damage_intersect_fractional_src
[14:14:16] [PASSED] drm_test_damage_iter_single_damage_outside_fractional_src
[14:14:16] [PASSED] drm_test_damage_iter_single_damage_src_moved
[14:14:16] [PASSED] drm_test_damage_iter_single_damage_fractional_src_moved
[14:14:16] [PASSED] drm_test_damage_iter_damage
[14:14:16] [PASSED] drm_test_damage_iter_damage_one_intersect
[14:14:16] [PASSED] drm_test_damage_iter_damage_one_outside
[14:14:16] [PASSED] drm_test_damage_iter_damage_src_moved
[14:14:16] [PASSED] drm_test_damage_iter_damage_not_visible
[14:14:16] ================ [PASSED] drm_damage_helper ================
[14:14:16] ============== drm_dp_mst_helper (3 subtests) ==============
[14:14:16] ============== drm_test_dp_mst_calc_pbn_mode  ==============
[14:14:16] [PASSED] Clock 154000 BPP 30 DSC disabled
[14:14:16] [PASSED] Clock 234000 BPP 30 DSC disabled
[14:14:16] [PASSED] Clock 297000 BPP 24 DSC disabled
[14:14:16] [PASSED] Clock 332880 BPP 24 DSC enabled
[14:14:16] [PASSED] Clock 324540 BPP 24 DSC enabled
[14:14:16] ========== [PASSED] drm_test_dp_mst_calc_pbn_mode ==========
[14:14:16] ============== drm_test_dp_mst_calc_pbn_div  ===============
[14:14:16] [PASSED] Link rate 2000000 lane count 4
[14:14:16] [PASSED] Link rate 2000000 lane count 2
[14:14:16] [PASSED] Link rate 2000000 lane count 1
[14:14:16] [PASSED] Link rate 1350000 lane count 4
[14:14:16] [PASSED] Link rate 1350000 lane count 2
[14:14:16] [PASSED] Link rate 1350000 lane count 1
[14:14:16] [PASSED] Link rate 1000000 lane count 4
[14:14:16] [PASSED] Link rate 1000000 lane count 2
[14:14:16] [PASSED] Link rate 1000000 lane count 1
[14:14:16] [PASSED] Link rate 810000 lane count 4
[14:14:16] [PASSED] Link rate 810000 lane count 2
[14:14:16] [PASSED] Link rate 810000 lane count 1
[14:14:16] [PASSED] Link rate 540000 lane count 4
[14:14:16] [PASSED] Link rate 540000 lane count 2
[14:14:16] [PASSED] Link rate 540000 lane count 1
[14:14:16] [PASSED] Link rate 270000 lane count 4
[14:14:16] [PASSED] Link rate 270000 lane count 2
[14:14:16] [PASSED] Link rate 270000 lane count 1
[14:14:16] [PASSED] Link rate 162000 lane count 4
[14:14:16] [PASSED] Link rate 162000 lane count 2
[14:14:16] [PASSED] Link rate 162000 lane count 1
[14:14:16] ========== [PASSED] drm_test_dp_mst_calc_pbn_div ===========
[14:14:16] ========= drm_test_dp_mst_sideband_msg_req_decode  =========
[14:14:16] [PASSED] DP_ENUM_PATH_RESOURCES with port number
[14:14:16] [PASSED] DP_POWER_UP_PHY with port number
[14:14:16] [PASSED] DP_POWER_DOWN_PHY with port number
[14:14:16] [PASSED] DP_ALLOCATE_PAYLOAD with SDP stream sinks
[14:14:16] [PASSED] DP_ALLOCATE_PAYLOAD with port number
[14:14:16] [PASSED] DP_ALLOCATE_PAYLOAD with VCPI
[14:14:16] [PASSED] DP_ALLOCATE_PAYLOAD with PBN
[14:14:16] [PASSED] DP_QUERY_PAYLOAD with port number
[14:14:16] [PASSED] DP_QUERY_PAYLOAD with VCPI
[14:14:16] [PASSED] DP_REMOTE_DPCD_READ with port number
[14:14:16] [PASSED] DP_REMOTE_DPCD_READ with DPCD address
[14:14:16] [PASSED] DP_REMOTE_DPCD_READ with max number of bytes
[14:14:16] [PASSED] DP_REMOTE_DPCD_WRITE with port number
[14:14:16] [PASSED] DP_REMOTE_DPCD_WRITE with DPCD address
[14:14:16] [PASSED] DP_REMOTE_DPCD_WRITE with data array
[14:14:16] [PASSED] DP_REMOTE_I2C_READ with port number
[14:14:16] [PASSED] DP_REMOTE_I2C_READ with I2C device ID
[14:14:16] [PASSED] DP_REMOTE_I2C_READ with transactions array
[14:14:16] [PASSED] DP_REMOTE_I2C_WRITE with port number
[14:14:16] [PASSED] DP_REMOTE_I2C_WRITE with I2C device ID
[14:14:16] [PASSED] DP_REMOTE_I2C_WRITE with data array
[14:14:16] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream ID
[14:14:16] [PASSED] DP_QUERY_STREAM_ENC_STATUS with client ID
[14:14:16] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream event
[14:14:16] [PASSED] DP_QUERY_STREAM_ENC_STATUS with valid stream event
[14:14:16] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream behavior
[14:14:16] [PASSED] DP_QUERY_STREAM_ENC_STATUS with a valid stream behavior
[14:14:16] ===== [PASSED] drm_test_dp_mst_sideband_msg_req_decode =====
[14:14:16] ================ [PASSED] drm_dp_mst_helper ================
[14:14:16] ================== drm_exec (7 subtests) ===================
[14:14:16] [PASSED] sanitycheck
[14:14:16] [PASSED] test_lock
[14:14:16] [PASSED] test_lock_unlock
[14:14:16] [PASSED] test_duplicates
[14:14:16] [PASSED] test_prepare
[14:14:16] [PASSED] test_prepare_array
[14:14:16] [PASSED] test_multiple_loops
[14:14:16] ==================== [PASSED] drm_exec =====================
[14:14:16] =========== drm_format_helper_test (17 subtests) ===========
[14:14:16] ============== drm_test_fb_xrgb8888_to_gray8  ==============
[14:14:16] [PASSED] single_pixel_source_buffer
[14:14:16] [PASSED] single_pixel_clip_rectangle
[14:14:16] [PASSED] well_known_colors
[14:14:16] [PASSED] destination_pitch
[14:14:16] ========== [PASSED] drm_test_fb_xrgb8888_to_gray8 ==========
[14:14:16] ============= drm_test_fb_xrgb8888_to_rgb332  ==============
[14:14:16] [PASSED] single_pixel_source_buffer
[14:14:16] [PASSED] single_pixel_clip_rectangle
[14:14:16] [PASSED] well_known_colors
[14:14:16] [PASSED] destination_pitch
[14:14:16] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb332 ==========
[14:14:16] ============= drm_test_fb_xrgb8888_to_rgb565  ==============
[14:14:16] [PASSED] single_pixel_source_buffer
[14:14:16] [PASSED] single_pixel_clip_rectangle
[14:14:16] [PASSED] well_known_colors
[14:14:16] [PASSED] destination_pitch
[14:14:16] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb565 ==========
[14:14:16] ============ drm_test_fb_xrgb8888_to_xrgb1555  =============
[14:14:16] [PASSED] single_pixel_source_buffer
[14:14:16] [PASSED] single_pixel_clip_rectangle
[14:14:16] [PASSED] well_known_colors
[14:14:16] [PASSED] destination_pitch
[14:14:16] ======== [PASSED] drm_test_fb_xrgb8888_to_xrgb1555 =========
[14:14:16] ============ drm_test_fb_xrgb8888_to_argb1555  =============
[14:14:16] [PASSED] single_pixel_source_buffer
[14:14:16] [PASSED] single_pixel_clip_rectangle
[14:14:16] [PASSED] well_known_colors
[14:14:16] [PASSED] destination_pitch
[14:14:16] ======== [PASSED] drm_test_fb_xrgb8888_to_argb1555 =========
[14:14:16] ============ drm_test_fb_xrgb8888_to_rgba5551  =============
[14:14:16] [PASSED] single_pixel_source_buffer
[14:14:16] [PASSED] single_pixel_clip_rectangle
[14:14:16] [PASSED] well_known_colors
[14:14:16] [PASSED] destination_pitch
[14:14:16] ======== [PASSED] drm_test_fb_xrgb8888_to_rgba5551 =========
[14:14:16] ============= drm_test_fb_xrgb8888_to_rgb888  ==============
[14:14:16] [PASSED] single_pixel_source_buffer
[14:14:16] [PASSED] single_pixel_clip_rectangle
[14:14:16] [PASSED] well_known_colors
[14:14:16] [PASSED] destination_pitch
[14:14:16] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb888 ==========
[14:14:16] ============= drm_test_fb_xrgb8888_to_bgr888  ==============
[14:14:16] [PASSED] single_pixel_source_buffer
[14:14:16] [PASSED] single_pixel_clip_rectangle
[14:14:16] [PASSED] well_known_colors
[14:14:16] [PASSED] destination_pitch
[14:14:16] ========= [PASSED] drm_test_fb_xrgb8888_to_bgr888 ==========
[14:14:16] ============ drm_test_fb_xrgb8888_to_argb8888  =============
[14:14:16] [PASSED] single_pixel_source_buffer
[14:14:16] [PASSED] single_pixel_clip_rectangle
[14:14:16] [PASSED] well_known_colors
[14:14:16] [PASSED] destination_pitch
[14:14:16] ======== [PASSED] drm_test_fb_xrgb8888_to_argb8888 =========
[14:14:16] =========== drm_test_fb_xrgb8888_to_xrgb2101010  ===========
[14:14:16] [PASSED] single_pixel_source_buffer
[14:14:16] [PASSED] single_pixel_clip_rectangle
[14:14:16] [PASSED] well_known_colors
[14:14:16] [PASSED] destination_pitch
[14:14:16] ======= [PASSED] drm_test_fb_xrgb8888_to_xrgb2101010 =======
[14:14:16] =========== drm_test_fb_xrgb8888_to_argb2101010  ===========
[14:14:16] [PASSED] single_pixel_source_buffer
[14:14:16] [PASSED] single_pixel_clip_rectangle
[14:14:16] [PASSED] well_known_colors
[14:14:16] [PASSED] destination_pitch
[14:14:16] ======= [PASSED] drm_test_fb_xrgb8888_to_argb2101010 =======
[14:14:16] ============== drm_test_fb_xrgb8888_to_mono  ===============
[14:14:16] [PASSED] single_pixel_source_buffer
[14:14:16] [PASSED] single_pixel_clip_rectangle
[14:14:16] [PASSED] well_known_colors
[14:14:16] [PASSED] destination_pitch
[14:14:16] ========== [PASSED] drm_test_fb_xrgb8888_to_mono ===========
[14:14:16] ==================== drm_test_fb_swab  =====================
[14:14:16] [PASSED] single_pixel_source_buffer
[14:14:16] [PASSED] single_pixel_clip_rectangle
[14:14:16] [PASSED] well_known_colors
[14:14:16] [PASSED] destination_pitch
[14:14:16] ================ [PASSED] drm_test_fb_swab =================
[14:14:16] ============ drm_test_fb_xrgb8888_to_xbgr8888  =============
[14:14:16] [PASSED] single_pixel_source_buffer
[14:14:16] [PASSED] single_pixel_clip_rectangle
[14:14:16] [PASSED] well_known_colors
[14:14:16] [PASSED] destination_pitch
[14:14:16] ======== [PASSED] drm_test_fb_xrgb8888_to_xbgr8888 =========
[14:14:16] ============ drm_test_fb_xrgb8888_to_abgr8888  =============
[14:14:16] [PASSED] single_pixel_source_buffer
[14:14:16] [PASSED] single_pixel_clip_rectangle
[14:14:16] [PASSED] well_known_colors
[14:14:16] [PASSED] destination_pitch
[14:14:16] ======== [PASSED] drm_test_fb_xrgb8888_to_abgr8888 =========
[14:14:16] ================= drm_test_fb_clip_offset  =================
[14:14:16] [PASSED] pass through
[14:14:16] [PASSED] horizontal offset
[14:14:16] [PASSED] vertical offset
[14:14:16] [PASSED] horizontal and vertical offset
[14:14:16] [PASSED] horizontal offset (custom pitch)
[14:14:16] [PASSED] vertical offset (custom pitch)
[14:14:16] [PASSED] horizontal and vertical offset (custom pitch)
[14:14:16] ============= [PASSED] drm_test_fb_clip_offset =============
[14:14:16] =================== drm_test_fb_memcpy  ====================
[14:14:16] [PASSED] single_pixel_source_buffer: XR24 little-endian (0x34325258)
[14:14:16] [PASSED] single_pixel_source_buffer: XRA8 little-endian (0x38415258)
[14:14:16] [PASSED] single_pixel_source_buffer: YU24 little-endian (0x34325559)
[14:14:16] [PASSED] single_pixel_clip_rectangle: XB24 little-endian (0x34324258)
[14:14:16] [PASSED] single_pixel_clip_rectangle: XRA8 little-endian (0x38415258)
[14:14:16] [PASSED] single_pixel_clip_rectangle: YU24 little-endian (0x34325559)
[14:14:16] [PASSED] well_known_colors: XB24 little-endian (0x34324258)
[14:14:16] [PASSED] well_known_colors: XRA8 little-endian (0x38415258)
[14:14:16] [PASSED] well_known_colors: YU24 little-endian (0x34325559)
[14:14:16] [PASSED] destination_pitch: XB24 little-endian (0x34324258)
[14:14:16] [PASSED] destination_pitch: XRA8 little-endian (0x38415258)
[14:14:16] [PASSED] destination_pitch: YU24 little-endian (0x34325559)
[14:14:16] =============== [PASSED] drm_test_fb_memcpy ================
[14:14:16] ============= [PASSED] drm_format_helper_test ==============
[14:14:16] ================= drm_format (18 subtests) =================
[14:14:16] [PASSED] drm_test_format_block_width_invalid
[14:14:16] [PASSED] drm_test_format_block_width_one_plane
[14:14:16] [PASSED] drm_test_format_block_width_two_plane
[14:14:16] [PASSED] drm_test_format_block_width_three_plane
[14:14:16] [PASSED] drm_test_format_block_width_tiled
[14:14:16] [PASSED] drm_test_format_block_height_invalid
[14:14:16] [PASSED] drm_test_format_block_height_one_plane
[14:14:16] [PASSED] drm_test_format_block_height_two_plane
[14:14:16] [PASSED] drm_test_format_block_height_three_plane
[14:14:16] [PASSED] drm_test_format_block_height_tiled
[14:14:16] [PASSED] drm_test_format_min_pitch_invalid
[14:14:16] [PASSED] drm_test_format_min_pitch_one_plane_8bpp
[14:14:16] [PASSED] drm_test_format_min_pitch_one_plane_16bpp
[14:14:16] [PASSED] drm_test_format_min_pitch_one_plane_24bpp
[14:14:16] [PASSED] drm_test_format_min_pitch_one_plane_32bpp
[14:14:16] [PASSED] drm_test_format_min_pitch_two_plane
[14:14:16] [PASSED] drm_test_format_min_pitch_three_plane_8bpp
[14:14:16] [PASSED] drm_test_format_min_pitch_tiled
[14:14:16] =================== [PASSED] drm_format ====================
[14:14:16] ============== drm_framebuffer (10 subtests) ===============
[14:14:16] ========== drm_test_framebuffer_check_src_coords  ==========
[14:14:16] [PASSED] Success: source fits into fb
[14:14:16] [PASSED] Fail: overflowing fb with x-axis coordinate
[14:14:16] [PASSED] Fail: overflowing fb with y-axis coordinate
[14:14:16] [PASSED] Fail: overflowing fb with source width
[14:14:16] [PASSED] Fail: overflowing fb with source height
[14:14:16] ====== [PASSED] drm_test_framebuffer_check_src_coords ======
[14:14:16] [PASSED] drm_test_framebuffer_cleanup
[14:14:16] =============== drm_test_framebuffer_create  ===============
[14:14:16] [PASSED] ABGR8888 normal sizes
[14:14:16] [PASSED] ABGR8888 max sizes
[14:14:16] [PASSED] ABGR8888 pitch greater than min required
[14:14:16] [PASSED] ABGR8888 pitch less than min required
[14:14:16] [PASSED] ABGR8888 Invalid width
[14:14:16] [PASSED] ABGR8888 Invalid buffer handle
[14:14:16] [PASSED] No pixel format
[14:14:16] [PASSED] ABGR8888 Width 0
[14:14:16] [PASSED] ABGR8888 Height 0
[14:14:16] [PASSED] ABGR8888 Out of bound height * pitch combination
[14:14:16] [PASSED] ABGR8888 Large buffer offset
[14:14:16] [PASSED] ABGR8888 Buffer offset for inexistent plane
[14:14:16] [PASSED] ABGR8888 Invalid flag
[14:14:16] [PASSED] ABGR8888 Set DRM_MODE_FB_MODIFIERS without modifiers
[14:14:16] [PASSED] ABGR8888 Valid buffer modifier
[14:14:16] [PASSED] ABGR8888 Invalid buffer modifier(DRM_FORMAT_MOD_SAMSUNG_64_32_TILE)
[14:14:16] [PASSED] ABGR8888 Extra pitches without DRM_MODE_FB_MODIFIERS
[14:14:16] [PASSED] ABGR8888 Extra pitches with DRM_MODE_FB_MODIFIERS
[14:14:16] [PASSED] NV12 Normal sizes
[14:14:16] [PASSED] NV12 Max sizes
[14:14:16] [PASSED] NV12 Invalid pitch
[14:14:16] [PASSED] NV12 Invalid modifier/missing DRM_MODE_FB_MODIFIERS flag
[14:14:16] [PASSED] NV12 different  modifier per-plane
[14:14:16] [PASSED] NV12 with DRM_FORMAT_MOD_SAMSUNG_64_32_TILE
[14:14:16] [PASSED] NV12 Valid modifiers without DRM_MODE_FB_MODIFIERS
[14:14:16] [PASSED] NV12 Modifier for inexistent plane
[14:14:16] [PASSED] NV12 Handle for inexistent plane
[14:14:16] [PASSED] NV12 Handle for inexistent plane without DRM_MODE_FB_MODIFIERS
[14:14:16] [PASSED] YVU420 DRM_MODE_FB_MODIFIERS set without modifier
[14:14:16] [PASSED] YVU420 Normal sizes
[14:14:16] [PASSED] YVU420 Max sizes
[14:14:16] [PASSED] YVU420 Invalid pitch
[14:14:16] [PASSED] YVU420 Different pitches
[14:14:16] [PASSED] YVU420 Different buffer offsets/pitches
[14:14:16] [PASSED] YVU420 Modifier set just for plane 0, without DRM_MODE_FB_MODIFIERS
[14:14:16] [PASSED] YVU420 Modifier set just for planes 0, 1, without DRM_MODE_FB_MODIFIERS
[14:14:16] [PASSED] YVU420 Modifier set just for plane 0, 1, with DRM_MODE_FB_MODIFIERS
[14:14:16] [PASSED] YVU420 Valid modifier
[14:14:16] [PASSED] YVU420 Different modifiers per plane
[14:14:16] [PASSED] YVU420 Modifier for inexistent plane
[14:14:16] [PASSED] YUV420_10BIT Invalid modifier(DRM_FORMAT_MOD_LINEAR)
[14:14:16] [PASSED] X0L2 Normal sizes
[14:14:16] [PASSED] X0L2 Max sizes
[14:14:16] [PASSED] X0L2 Invalid pitch
[14:14:16] [PASSED] X0L2 Pitch greater than minimum required
[14:14:16] [PASSED] X0L2 Handle for inexistent plane
[14:14:16] [PASSED] X0L2 Offset for inexistent plane, without DRM_MODE_FB_MODIFIERS set
[14:14:16] [PASSED] X0L2 Modifier without DRM_MODE_FB_MODIFIERS set
[14:14:16] [PASSED] X0L2 Valid modifier
[14:14:16] [PASSED] X0L2 Modifier for inexistent plane
[14:14:16] =========== [PASSED] drm_test_framebuffer_create ===========
[14:14:16] [PASSED] drm_test_framebuffer_free
[14:14:16] [PASSED] drm_test_framebuffer_init
[14:14:16] [PASSED] drm_test_framebuffer_init_bad_format
[14:14:16] [PASSED] drm_test_framebuffer_init_dev_mismatch
[14:14:16] [PASSED] drm_test_framebuffer_lookup
[14:14:16] [PASSED] drm_test_framebuffer_lookup_inexistent
[14:14:16] [PASSED] drm_test_framebuffer_modifiers_not_supported
[14:14:16] ================= [PASSED] drm_framebuffer =================
[14:14:16] ================ drm_gem_shmem (8 subtests) ================
[14:14:16] [PASSED] drm_gem_shmem_test_obj_create
[14:14:16] [PASSED] drm_gem_shmem_test_obj_create_private
[14:14:16] [PASSED] drm_gem_shmem_test_pin_pages
[14:14:16] [PASSED] drm_gem_shmem_test_vmap
[14:14:16] [PASSED] drm_gem_shmem_test_get_sg_table
[14:14:16] [PASSED] drm_gem_shmem_test_get_pages_sgt
[14:14:16] [PASSED] drm_gem_shmem_test_madvise
[14:14:16] [PASSED] drm_gem_shmem_test_purge
[14:14:16] ================== [PASSED] drm_gem_shmem ==================
[14:14:16] === drm_atomic_helper_connector_hdmi_check (29 subtests) ===
[14:14:16] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode
[14:14:16] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode_vic_1
[14:14:16] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode
[14:14:16] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode_vic_1
[14:14:16] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode
[14:14:16] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode_vic_1
[14:14:16] ====== drm_test_check_broadcast_rgb_cea_mode_yuv420  =======
[14:14:16] [PASSED] Automatic
[14:14:16] [PASSED] Full
[14:14:16] [PASSED] Limited 16:235
[14:14:16] == [PASSED] drm_test_check_broadcast_rgb_cea_mode_yuv420 ===
[14:14:16] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_changed
[14:14:16] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_not_changed
[14:14:16] [PASSED] drm_test_check_disable_connector
[14:14:16] [PASSED] drm_test_check_hdmi_funcs_reject_rate
[14:14:16] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_rgb
[14:14:16] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_yuv420
[14:14:16] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv422
[14:14:16] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv420
[14:14:16] [PASSED] drm_test_check_driver_unsupported_fallback_yuv420
[14:14:16] [PASSED] drm_test_check_output_bpc_crtc_mode_changed
[14:14:16] [PASSED] drm_test_check_output_bpc_crtc_mode_not_changed
[14:14:16] [PASSED] drm_test_check_output_bpc_dvi
[14:14:16] [PASSED] drm_test_check_output_bpc_format_vic_1
[14:14:16] [PASSED] drm_test_check_output_bpc_format_display_8bpc_only
[14:14:16] [PASSED] drm_test_check_output_bpc_format_display_rgb_only
[14:14:16] [PASSED] drm_test_check_output_bpc_format_driver_8bpc_only
[14:14:16] [PASSED] drm_test_check_output_bpc_format_driver_rgb_only
[14:14:16] [PASSED] drm_test_check_tmds_char_rate_rgb_8bpc
[14:14:16] [PASSED] drm_test_check_tmds_char_rate_rgb_10bpc
[14:14:16] [PASSED] drm_test_check_tmds_char_rate_rgb_12bpc
[14:14:16] ============ drm_test_check_hdmi_color_format  =============
[14:14:16] [PASSED] AUTO -> RGB
[14:14:16] [PASSED] YCBCR422 -> YUV422
[14:14:16] [PASSED] YCBCR420 -> YUV420
[14:14:16] [PASSED] YCBCR444 -> YUV444
[14:14:16] [PASSED] RGB -> RGB
[14:14:16] ======== [PASSED] drm_test_check_hdmi_color_format =========
[14:14:16] ======== drm_test_check_hdmi_color_format_420_only  ========
[14:14:16] [PASSED] RGB should fail
[14:14:16] [PASSED] YUV444 should fail
[14:14:16] [PASSED] YUV422 should fail
[14:14:16] [PASSED] YUV420 should work
[14:14:16] ==== [PASSED] drm_test_check_hdmi_color_format_420_only ====
[14:14:16] ===== [PASSED] drm_atomic_helper_connector_hdmi_check ======
[14:14:16] === drm_atomic_helper_connector_hdmi_reset (6 subtests) ====
[14:14:16] [PASSED] drm_test_check_broadcast_rgb_value
[14:14:16] [PASSED] drm_test_check_bpc_8_value
[14:14:16] [PASSED] drm_test_check_bpc_10_value
[14:14:16] [PASSED] drm_test_check_bpc_12_value
[14:14:16] [PASSED] drm_test_check_format_value
[14:14:16] [PASSED] drm_test_check_tmds_char_value
[14:14:16] ===== [PASSED] drm_atomic_helper_connector_hdmi_reset ======
[14:14:16] = drm_atomic_helper_connector_hdmi_mode_valid (7 subtests) =
[14:14:16] [PASSED] drm_test_check_mode_valid
[14:14:16] [PASSED] drm_test_check_mode_valid_reject
[14:14:16] [PASSED] drm_test_check_mode_valid_reject_rate
[14:14:16] [PASSED] drm_test_check_mode_valid_reject_max_clock
[14:14:16] [PASSED] drm_test_check_mode_valid_yuv420_only_max_clock
[14:14:16] [PASSED] drm_test_check_mode_valid_reject_yuv420_only_connector
[14:14:16] [PASSED] drm_test_check_mode_valid_accept_yuv420_also_connector_rgb
[14:14:16] === [PASSED] drm_atomic_helper_connector_hdmi_mode_valid ===
[14:14:16] = drm_atomic_helper_connector_hdmi_infoframes (5 subtests) =
[14:14:16] [PASSED] drm_test_check_infoframes
[14:14:16] [PASSED] drm_test_check_reject_avi_infoframe
[14:14:16] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_8
[14:14:16] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_10
[14:14:16] [PASSED] drm_test_check_reject_audio_infoframe
[14:14:16] === [PASSED] drm_atomic_helper_connector_hdmi_infoframes ===
[14:14:16] ================= drm_managed (2 subtests) =================
[14:14:16] [PASSED] drm_test_managed_release_action
[14:14:16] [PASSED] drm_test_managed_run_action
[14:14:16] =================== [PASSED] drm_managed ===================
[14:14:16] =================== drm_mm (6 subtests) ====================
[14:14:16] [PASSED] drm_test_mm_init
[14:14:16] [PASSED] drm_test_mm_debug
[14:14:16] [PASSED] drm_test_mm_align32
[14:14:16] [PASSED] drm_test_mm_align64
[14:14:16] [PASSED] drm_test_mm_lowest
[14:14:16] [PASSED] drm_test_mm_highest
[14:14:16] ===================== [PASSED] drm_mm ======================
[14:14:16] ============= drm_modes_analog_tv (5 subtests) =============
[14:14:16] [PASSED] drm_test_modes_analog_tv_mono_576i
[14:14:16] [PASSED] drm_test_modes_analog_tv_ntsc_480i
[14:14:16] [PASSED] drm_test_modes_analog_tv_ntsc_480i_inlined
[14:14:16] [PASSED] drm_test_modes_analog_tv_pal_576i
[14:14:16] [PASSED] drm_test_modes_analog_tv_pal_576i_inlined
[14:14:16] =============== [PASSED] drm_modes_analog_tv ===============
[14:14:16] ============== drm_plane_helper (2 subtests) ===============
[14:14:16] =============== drm_test_check_plane_state  ================
[14:14:16] [PASSED] clipping_simple
[14:14:16] [PASSED] clipping_rotate_reflect
[14:14:16] [PASSED] positioning_simple
[14:14:16] [PASSED] upscaling
[14:14:16] [PASSED] downscaling
[14:14:16] [PASSED] rounding1
[14:14:16] [PASSED] rounding2
[14:14:16] [PASSED] rounding3
[14:14:16] [PASSED] rounding4
[14:14:16] =========== [PASSED] drm_test_check_plane_state ============
[14:14:16] =========== drm_test_check_invalid_plane_state  ============
[14:14:16] [PASSED] positioning_invalid
[14:14:16] [PASSED] upscaling_invalid
[14:14:16] [PASSED] downscaling_invalid
[14:14:16] ======= [PASSED] drm_test_check_invalid_plane_state ========
[14:14:16] ================ [PASSED] drm_plane_helper =================
[14:14:16] ====== drm_connector_helper_tv_get_modes (1 subtest) =======
[14:14:16] ====== drm_test_connector_helper_tv_get_modes_check  =======
[14:14:16] [PASSED] None
[14:14:16] [PASSED] PAL
[14:14:16] [PASSED] NTSC
[14:14:16] [PASSED] Both, NTSC Default
[14:14:16] [PASSED] Both, PAL Default
[14:14:16] [PASSED] Both, NTSC Default, with PAL on command-line
[14:14:16] [PASSED] Both, PAL Default, with NTSC on command-line
[14:14:16] == [PASSED] drm_test_connector_helper_tv_get_modes_check ===
[14:14:16] ======== [PASSED] drm_connector_helper_tv_get_modes ========
[14:14:16] ================== drm_rect (9 subtests) ===================
[14:14:16] [PASSED] drm_test_rect_clip_scaled_div_by_zero
[14:14:16] [PASSED] drm_test_rect_clip_scaled_not_clipped
[14:14:16] [PASSED] drm_test_rect_clip_scaled_clipped
[14:14:16] [PASSED] drm_test_rect_clip_scaled_signed_vs_unsigned
[14:14:16] ================= drm_test_rect_intersect  =================
[14:14:16] [PASSED] top-left x bottom-right: 2x2+1+1 x 2x2+0+0
[14:14:16] [PASSED] top-right x bottom-left: 2x2+0+0 x 2x2+1-1
[14:14:16] [PASSED] bottom-left x top-right: 2x2+1-1 x 2x2+0+0
[14:14:16] [PASSED] bottom-right x top-left: 2x2+0+0 x 2x2+1+1
[14:14:16] [PASSED] right x left: 2x1+0+0 x 3x1+1+0
[14:14:16] [PASSED] left x right: 3x1+1+0 x 2x1+0+0
[14:14:16] [PASSED] up x bottom: 1x2+0+0 x 1x3+0-1
[14:14:16] [PASSED] bottom x up: 1x3+0-1 x 1x2+0+0
[14:14:16] [PASSED] touching corner: 1x1+0+0 x 2x2+1+1
[14:14:16] [PASSED] touching side: 1x1+0+0 x 1x1+1+0
[14:14:16] [PASSED] equal rects: 2x2+0+0 x 2x2+0+0
[14:14:16] [PASSED] inside another: 2x2+0+0 x 1x1+1+1
[14:14:16] [PASSED] far away: 1x1+0+0 x 1x1+3+6
[14:14:16] [PASSED] points intersecting: 0x0+5+10 x 0x0+5+10
[14:14:16] [PASSED] points not intersecting: 0x0+0+0 x 0x0+5+10
[14:14:16] ============= [PASSED] drm_test_rect_intersect =============
[14:14:16] ================ drm_test_rect_calc_hscale  ================
[14:14:16] [PASSED] normal use
[14:14:16] [PASSED] out of max range
[14:14:16] [PASSED] out of min range
[14:14:16] [PASSED] zero dst
[14:14:16] [PASSED] negative src
[14:14:16] [PASSED] negative dst
[14:14:16] ============ [PASSED] drm_test_rect_calc_hscale ============
[14:14:16] ================ drm_test_rect_calc_vscale  ================
[14:14:16] [PASSED] normal use
[14:14:16] [PASSED] out of max range
[14:14:16] [PASSED] out of min range
[14:14:16] [PASSED] zero dst
[14:14:16] [PASSED] negative src
[14:14:16] [PASSED] negative dst
[14:14:16] ============ [PASSED] drm_test_rect_calc_vscale ============
[14:14:16] ================== drm_test_rect_rotate  ===================
[14:14:16] [PASSED] reflect-x
[14:14:16] [PASSED] reflect-y
[14:14:16] [PASSED] rotate-0
[14:14:16] [PASSED] rotate-90
[14:14:16] [PASSED] rotate-180
[14:14:16] [PASSED] rotate-270
[14:14:16] ============== [PASSED] drm_test_rect_rotate ===============
[14:14:16] ================ drm_test_rect_rotate_inv  =================
[14:14:16] [PASSED] reflect-x
[14:14:16] [PASSED] reflect-y
[14:14:16] [PASSED] rotate-0
[14:14:16] [PASSED] rotate-90
[14:14:16] [PASSED] rotate-180
[14:14:16] [PASSED] rotate-270
[14:14:16] ============ [PASSED] drm_test_rect_rotate_inv =============
[14:14:16] ==================== [PASSED] drm_rect =====================
[14:14:16] ============ drm_sysfb_modeset_test (1 subtest) ============
[14:14:16] ============ drm_test_sysfb_build_fourcc_list  =============
[14:14:16] [PASSED] no native formats
[14:14:16] [PASSED] XRGB8888 as native format
[14:14:16] [PASSED] remove duplicates
[14:14:16] [PASSED] convert alpha formats
[14:14:16] [PASSED] random formats
[14:14:16] ======== [PASSED] drm_test_sysfb_build_fourcc_list =========
[14:14:16] ============= [PASSED] drm_sysfb_modeset_test ==============
[14:14:16] ================== drm_fixp (2 subtests) ===================
[14:14:16] [PASSED] drm_test_int2fixp
[14:14:16] [PASSED] drm_test_sm2fixp
[14:14:16] ==================== [PASSED] drm_fixp =====================
[14:14:16] ============================================================
[14:14:16] Testing complete. Ran 639 tests: passed: 639
[14:14:16] Elapsed time: 26.060s total, 1.736s configuring, 24.158s building, 0.141s running

+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/ttm/tests/.kunitconfig [14:14:16] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:

$ make ARCH=um O=.kunit olddefconfig
[14:14:18] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48
[14:14:28] Starting KUnit Kernel (1/1)...
[14:14:28] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[14:14:28] ================= ttm_device (5 subtests) ==================
[14:14:28] [PASSED] ttm_device_init_basic
[14:14:28] [PASSED] ttm_device_init_multiple
[14:14:28] [PASSED] ttm_device_fini_basic
[14:14:28] [PASSED] ttm_device_init_no_vma_man
[14:14:28] ================== ttm_device_init_pools  ==================
[14:14:28] [PASSED] No DMA allocations, no DMA32 required
[14:14:28] [PASSED] DMA allocations, DMA32 required
[14:14:28] [PASSED] No DMA allocations, DMA32 required
[14:14:28] [PASSED] DMA allocations, no DMA32 required
[14:14:28] ============== [PASSED] ttm_device_init_pools ==============
[14:14:28] =================== [PASSED] ttm_device ====================
[14:14:28] ================== ttm_pool (8 subtests) ===================
[14:14:28] ================== ttm_pool_alloc_basic  ===================
[14:14:28] [PASSED] One page
[14:14:28] [PASSED] More than one page
[14:14:28] [PASSED] Above the allocation limit
[14:14:28] [PASSED] One page, with coherent DMA mappings enabled
[14:14:28] [PASSED] Above the allocation limit, with coherent DMA mappings enabled
[14:14:28] ============== [PASSED] ttm_pool_alloc_basic ===============
[14:14:28] ============== ttm_pool_alloc_basic_dma_addr  ==============
[14:14:28] [PASSED] One page
[14:14:28] [PASSED] More than one page
[14:14:28] [PASSED] Above the allocation limit
[14:14:28] [PASSED] One page, with coherent DMA mappings enabled
[14:14:28] [PASSED] Above the allocation limit, with coherent DMA mappings enabled
[14:14:28] ========== [PASSED] ttm_pool_alloc_basic_dma_addr ==========
[14:14:28] [PASSED] ttm_pool_alloc_order_caching_match
[14:14:28] [PASSED] ttm_pool_alloc_caching_mismatch
[14:14:28] [PASSED] ttm_pool_alloc_order_mismatch
[14:14:28] [PASSED] ttm_pool_free_dma_alloc
[14:14:28] [PASSED] ttm_pool_free_no_dma_alloc
[14:14:28] [PASSED] ttm_pool_fini_basic
[14:14:28] ==================== [PASSED] ttm_pool =====================
[14:14:28] ================ ttm_resource (8 subtests) =================
[14:14:28] ================= ttm_resource_init_basic  =================
[14:14:28] [PASSED] Init resource in TTM_PL_SYSTEM
[14:14:28] [PASSED] Init resource in TTM_PL_VRAM
[14:14:28] [PASSED] Init resource in a private placement
[14:14:28] [PASSED] Init resource in TTM_PL_SYSTEM, set placement flags
[14:14:28] ============= [PASSED] ttm_resource_init_basic =============
[14:14:28] [PASSED] ttm_resource_init_pinned
[14:14:28] [PASSED] ttm_resource_fini_basic
[14:14:28] [PASSED] ttm_resource_manager_init_basic
[14:14:28] [PASSED] ttm_resource_manager_usage_basic
[14:14:28] [PASSED] ttm_resource_manager_set_used_basic
[14:14:28] [PASSED] ttm_sys_man_alloc_basic
[14:14:28] [PASSED] ttm_sys_man_free_basic
[14:14:28] ================== [PASSED] ttm_resource ===================
[14:14:28] =================== ttm_tt (15 subtests) ===================
[14:14:28] ==================== ttm_tt_init_basic  ====================
[14:14:28] [PASSED] Page-aligned size
[14:14:28] [PASSED] Extra pages requested
[14:14:28] ================ [PASSED] ttm_tt_init_basic ================
[14:14:28] [PASSED] ttm_tt_init_misaligned
[14:14:28] [PASSED] ttm_tt_fini_basic
[14:14:28] [PASSED] ttm_tt_fini_sg
[14:14:28] [PASSED] ttm_tt_fini_shmem
[14:14:28] [PASSED] ttm_tt_create_basic
[14:14:28] [PASSED] ttm_tt_create_invalid_bo_type
[14:14:28] [PASSED] ttm_tt_create_ttm_exists
[14:14:28] [PASSED] ttm_tt_create_failed
[14:14:28] [PASSED] ttm_tt_destroy_basic
[14:14:28] [PASSED] ttm_tt_populate_null_ttm
[14:14:28] [PASSED] ttm_tt_populate_populated_ttm
[14:14:28] [PASSED] ttm_tt_unpopulate_basic
[14:14:28] [PASSED] ttm_tt_unpopulate_empty_ttm
[14:14:28] [PASSED] ttm_tt_swapin_basic
[14:14:28] ===================== [PASSED] ttm_tt ======================
[14:14:28] =================== ttm_bo (14 subtests) ===================
[14:14:28] =========== ttm_bo_reserve_optimistic_no_ticket  ===========
[14:14:28] [PASSED] Cannot be interrupted and sleeps
[14:14:28] [PASSED] Cannot be interrupted, locks straight away
[14:14:28] [PASSED] Can be interrupted, sleeps
[14:14:28] ======= [PASSED] ttm_bo_reserve_optimistic_no_ticket =======
[14:14:28] [PASSED] ttm_bo_reserve_locked_no_sleep
[14:14:28] [PASSED] ttm_bo_reserve_no_wait_ticket
[14:14:28] [PASSED] ttm_bo_reserve_double_resv
[14:14:28] [PASSED] ttm_bo_reserve_interrupted
[14:14:28] [PASSED] ttm_bo_reserve_deadlock
[14:14:28] [PASSED] ttm_bo_unreserve_basic
[14:14:28] [PASSED] ttm_bo_unreserve_pinned
[14:14:28] [PASSED] ttm_bo_unreserve_bulk
[14:14:28] [PASSED] ttm_bo_fini_basic
[14:14:28] [PASSED] ttm_bo_fini_shared_resv
[14:14:28] [PASSED] ttm_bo_pin_basic
[14:14:28] [PASSED] ttm_bo_pin_unpin_resource
[14:14:28] [PASSED] ttm_bo_multiple_pin_one_unpin
[14:14:28] ===================== [PASSED] ttm_bo ======================
[14:14:28] ============== ttm_bo_validate (22 subtests) ===============
[14:14:28] ============== ttm_bo_init_reserved_sys_man  ===============
[14:14:28] [PASSED] Buffer object for userspace
[14:14:28] [PASSED] Kernel buffer object
[14:14:28] [PASSED] Shared buffer object
[14:14:28] ========== [PASSED] ttm_bo_init_reserved_sys_man ===========
[14:14:28] ============== ttm_bo_init_reserved_mock_man  ==============
[14:14:28] [PASSED] Buffer object for userspace
[14:14:28] [PASSED] Kernel buffer object
[14:14:28] [PASSED] Shared buffer object
[14:14:28] ========== [PASSED] ttm_bo_init_reserved_mock_man ==========
[14:14:28] [PASSED] ttm_bo_init_reserved_resv
[14:14:28] ================== ttm_bo_validate_basic  ==================
[14:14:28] [PASSED] Buffer object for userspace
[14:14:28] [PASSED] Kernel buffer object
[14:14:28] [PASSED] Shared buffer object
[14:14:28] ============== [PASSED] ttm_bo_validate_basic ==============
[14:14:28] [PASSED] ttm_bo_validate_invalid_placement
[14:14:28] ============= ttm_bo_validate_same_placement  ==============
[14:14:28] [PASSED] System manager
[14:14:28] [PASSED] VRAM manager
[14:14:28] ========= [PASSED] ttm_bo_validate_same_placement ==========
[14:14:28] [PASSED] ttm_bo_validate_failed_alloc
[14:14:28] [PASSED] ttm_bo_validate_pinned
[14:14:28] [PASSED] ttm_bo_validate_busy_placement
[14:14:28] ================ ttm_bo_validate_multihop  =================
[14:14:28] [PASSED] Buffer object for userspace
[14:14:28] [PASSED] Kernel buffer object
[14:14:28] [PASSED] Shared buffer object
[14:14:28] ============ [PASSED] ttm_bo_validate_multihop =============
[14:14:28] ========== ttm_bo_validate_no_placement_signaled  ==========
[14:14:28] [PASSED] Buffer object in system domain, no page vector
[14:14:28] [PASSED] Buffer object in system domain with an existing page vector
[14:14:28] ====== [PASSED] ttm_bo_validate_no_placement_signaled ======
[14:14:28] ======== ttm_bo_validate_no_placement_not_signaled  ========
[14:14:28] [PASSED] Buffer object for userspace
[14:14:28] [PASSED] Kernel buffer object
[14:14:28] [PASSED] Shared buffer object
[14:14:28] ==== [PASSED] ttm_bo_validate_no_placement_not_signaled ====
[14:14:28] [PASSED] ttm_bo_validate_move_fence_signaled
[14:14:28] ========= ttm_bo_validate_move_fence_not_signaled  =========
[14:14:28] [PASSED] Waits for GPU
[14:14:28] [PASSED] Tries to lock straight away
[14:14:28] ===== [PASSED] ttm_bo_validate_move_fence_not_signaled =====
[14:14:28] [PASSED] ttm_bo_validate_swapout
[14:14:28] [PASSED] ttm_bo_validate_happy_evict
[14:14:28] [PASSED] ttm_bo_validate_all_pinned_evict
[14:14:28] [PASSED] ttm_bo_validate_allowed_only_evict
[14:14:28] [PASSED] ttm_bo_validate_deleted_evict
[14:14:28] [PASSED] ttm_bo_validate_busy_domain_evict
[14:14:28] [PASSED] ttm_bo_validate_evict_gutting
[14:14:28] [PASSED] ttm_bo_validate_recrusive_evict
[14:14:28] ================= [PASSED] ttm_bo_validate =================
[14:14:28] ============================================================
[14:14:28] Testing complete. Ran 102 tests: passed: 102
[14:14:28] Elapsed time: 11.664s total, 1.735s configuring, 9.715s building, 0.178s running

+ cleanup
++ stat -c %u:%g /kernel
+ chown -R 1003:1003 /kernel

#2 lore raw

✓ Xe.CI.BAT: success for drm/xe/guc: Hold device ref until queue teardown completes (rev4)

In reply to Arvind Yadav
== Series Details ==

== Series Details ==

Series: drm/xe/guc: Hold device ref until queue teardown completes (rev4)
URL : https://patchwork.freedesktop.org/series/168424/
State : success

== Summary ==

CI Bug Log - changes from xe-5285-55ba13f332ab983d0c3ce0c448d46af3da717294_BAT -> xe-pw-168424v4_BAT
====================================================

Summary
-------

**SUCCESS**

No regressions found.

Participating hosts (13 -> 10)
------------------------------

Missing (3): bat-wcl-1 bat-bmg-vm bat-ptl-vm

Changes
-------

No changes found

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

* Linux: xe-5285-55ba13f332ab983d0c3ce0c448d46af3da717294 -> xe-pw-168424v4

IGT_8976: 8976
xe-5285-55ba13f332ab983d0c3ce0c448d46af3da717294: 55ba13f332ab983d0c3ce0c448d46af3da717294
xe-pw-168424v4: 168424v4

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-168424v4/index.html

#3 lore raw

✓ Xe.CI.FULL: success for drm/xe/guc: Hold device ref until queue teardown completes (rev4)

In reply to Arvind Yadav
== Series Details ==

== Series Details ==

Series: drm/xe/guc: Hold device ref until queue teardown completes (rev4)
URL : https://patchwork.freedesktop.org/series/168424/
State : success

== Summary ==

CI Bug Log - changes from xe-5285-55ba13f332ab983d0c3ce0c448d46af3da717294_FULL -> xe-pw-168424v4_FULL
====================================================

Summary
-------

**SUCCESS**

No regressions found.

Participating hosts (2 -> 2)
------------------------------

No changes in participating hosts

New tests
---------

New tests have been introduced between xe-5285-55ba13f332ab983d0c3ce0c448d46af3da717294_FULL and xe-pw-168424v4_FULL:

### New IGT tests (14) ###

* igt@kms_async_flips@crc@pipe-a-hdmi-a-3:
- Statuses : 1 pass(s)
- Exec time: [2.31] s

* igt@kms_async_flips@crc@pipe-b-hdmi-a-3:
- Statuses : 1 pass(s)
- Exec time: [2.29] s

* igt@kms_async_flips@crc@pipe-c-hdmi-a-3:
- Statuses : 1 pass(s)
- Exec time: [2.29] s

* igt@kms_async_flips@crc@pipe-d-hdmi-a-3:
- Statuses : 1 pass(s)
- Exec time: [2.29] s

* igt@kms_async_flips@test-cursor@pipe-a-hdmi-a-3:
- Statuses : 1 pass(s)
- Exec time: [0.20] s

* igt@kms_async_flips@test-cursor@pipe-b-hdmi-a-3:
- Statuses : 1 pass(s)
- Exec time: [0.20] s

* igt@kms_async_flips@test-cursor@pipe-c-hdmi-a-3:
- Statuses : 1 pass(s)
- Exec time: [0.20] s

* igt@kms_async_flips@test-cursor@pipe-d-hdmi-a-3:
- Statuses : 1 pass(s)
- Exec time: [0.21] s

* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-nv12@pipe-a-dp-2:
- Statuses : 1 pass(s)
- Exec time: [0.78] s

* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-nv12@pipe-d-dp-2:
- Statuses : 1 pass(s)
- Exec time: [0.57] s

* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-xr24@pipe-a-dp-2:
- Statuses : 1 pass(s)
- Exec time: [0.63] s

* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-xr24@pipe-d-dp-2:
- Statuses : 1 pass(s)
- Exec time: [0.45] s

* igt@kms_pipe_crc_basic@nonblocking-crc@pipe-c-dp-2:
- Statuses : 1 pass(s)
- Exec time: [0.63] s

* igt@kms_pipe_crc_basic@read-crc@pipe-c-dp-2:
- Statuses : 1 pass(s)
- Exec time: [0.55] s

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

Here are the changes found in xe-pw-168424v4_FULL that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@kms_big_fb@yf-tiled-max-hw-stride-64bpp-rotate-180-hflip:
- shard-lnl: NOTRUN -> [SKIP][1] ([Intel XE#1124])
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-168424v4/shard-lnl-7/igt@[email protected]
- shard-bmg: NOTRUN -> [SKIP][2] ([Intel XE#1124])
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-168424v4/shard-bmg-10/igt@[email protected]

* igt@kms_bw@linear-tiling-1-displays-target-3840x2160p:
- shard-bmg: NOTRUN -> [SKIP][3] ([Intel XE#367])
[3]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-168424v4/shard-bmg-10/igt@[email protected]

* igt@kms_ccs@bad-pixel-format-4-tiled-dg2-mc-ccs:
- shard-bmg: NOTRUN -> [SKIP][4] ([Intel XE#2887])
[4]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-168424v4/shard-bmg-10/igt@[email protected]
- shard-lnl: NOTRUN -> [SKIP][5] ([Intel XE#2887])
[5]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-168424v4/shard-lnl-7/igt@[email protected]

* igt@kms_cursor_legacy@flip-vs-cursor-legacy:
- shard-bmg: [PASS][6] -> [FAIL][7] ([Intel XE#7571])
[6]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5285-55ba13f332ab983d0c3ce0c448d46af3da717294/shard-bmg-1/igt@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-168424v4/shard-bmg-9/igt@[email protected]

* igt@kms_frontbuffer_tracking@drrshdr-rgb565-draw-mmap-wc:
- shard-bmg: NOTRUN -> [SKIP][8] ([Intel XE#2311])
[8]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-168424v4/shard-bmg-10/igt@[email protected]
- shard-lnl: NOTRUN -> [SKIP][9] ([Intel XE#6312])
[9]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-168424v4/shard-lnl-7/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbchdr-suspend:
- shard-bmg: [PASS][10] -> [INCOMPLETE][11] ([Intel XE#8368])
[10]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5285-55ba13f332ab983d0c3ce0c448d46af3da717294/shard-bmg-9/igt@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-168424v4/shard-bmg-6/igt@[email protected]

* igt@kms_hdr@invalid-hdr:
- shard-bmg: [PASS][12] -> [SKIP][13] ([Intel XE#1503])
[12]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5285-55ba13f332ab983d0c3ce0c448d46af3da717294/shard-bmg-6/igt@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-168424v4/shard-bmg-4/igt@[email protected]

* igt@kms_hdr@invalid-hdr@pipe-a-hdmi-a-3-xrgb2101010:
- shard-bmg: [PASS][14] -> [SKIP][15] ([Intel XE#7922]) +1 other test skip
[14]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5285-55ba13f332ab983d0c3ce0c448d46af3da717294/shard-bmg-6/igt@kms_hdr@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-168424v4/shard-bmg-4/igt@kms_hdr@[email protected]

* igt@kms_hdr@static-swap@pipe-a-hdmi-a-3-xrgb2101010:
- shard-bmg: [PASS][16] -> [SKIP][17] ([Intel XE#7915]) +1 other test skip
[16]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5285-55ba13f332ab983d0c3ce0c448d46af3da717294/shard-bmg-9/igt@kms_hdr@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-168424v4/shard-bmg-6/igt@kms_hdr@[email protected]

* igt@xe_eudebug@basic-exec-queues:
- shard-bmg: NOTRUN -> [SKIP][18] ([Intel XE#7636])
[18]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-168424v4/shard-bmg-10/igt@[email protected]
- shard-lnl: NOTRUN -> [SKIP][19] ([Intel XE#7636])
[19]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-168424v4/shard-lnl-7/igt@[email protected]

* igt@xe_exec_multi_queue@one-queue-preempt-mode-userptr-invalidate:
- shard-bmg: NOTRUN -> [SKIP][20] ([Intel XE#8364]) +2 other tests skip
[20]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-168424v4/shard-bmg-10/igt@xe_exec_multi_queue@one-queue-preempt-mode-userptr-invalidate.html
- shard-lnl: NOTRUN -> [SKIP][21] ([Intel XE#8364]) +2 other tests skip
[21]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-168424v4/shard-lnl-7/igt@xe_exec_multi_queue@one-queue-preempt-mode-userptr-invalidate.html

* igt@xe_exec_reset@long-spin-reuse-many-preempt-media:
- shard-bmg: [PASS][22] -> [FAIL][23] ([Intel XE#7850])
[22]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5285-55ba13f332ab983d0c3ce0c448d46af3da717294/shard-bmg-9/igt@[email protected]
[23]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-168424v4/shard-bmg-6/igt@[email protected]

#### Possible fixes ####

* igt@kms_fbcon_fbt@psr-suspend:
- shard-lnl: [FAIL][24] ([Intel XE#7949]) -> [PASS][25]
[24]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5285-55ba13f332ab983d0c3ce0c448d46af3da717294/shard-lnl-8/igt@[email protected]
[25]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-168424v4/shard-lnl-1/igt@[email protected]

* igt@kms_flip@flip-vs-blocking-wf-vblank@a-dp2:
- shard-bmg: [FAIL][26] ([Intel XE#6266]) -> [PASS][27] +1 other test pass
[26]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5285-55ba13f332ab983d0c3ce0c448d46af3da717294/shard-bmg-4/igt@kms_flip@[email protected]
[27]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-168424v4/shard-bmg-7/igt@kms_flip@[email protected]

* igt@kms_flip@flip-vs-expired-vblank@b-edp1:
- shard-lnl: [FAIL][28] ([Intel XE#301]) -> [PASS][29] +2 other tests pass
[28]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5285-55ba13f332ab983d0c3ce0c448d46af3da717294/shard-lnl-4/igt@kms_flip@[email protected]
[29]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-168424v4/shard-lnl-8/igt@kms_flip@[email protected]

* igt@kms_hdr@invalid-metadata-sizes@pipe-a-hdmi-a-3-xrgb16161616f:
- shard-bmg: [SKIP][30] ([Intel XE#7915]) -> [PASS][31] +1 other test pass
[30]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5285-55ba13f332ab983d0c3ce0c448d46af3da717294/shard-bmg-7/igt@kms_hdr@[email protected]
[31]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-168424v4/shard-bmg-5/igt@kms_hdr@[email protected]

* igt@xe_evict@evict-mixed-many-threads-small:
- shard-bmg: [INCOMPLETE][32] ([Intel XE#6321] / [Intel XE#8355]) -> [PASS][33]
[32]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5285-55ba13f332ab983d0c3ce0c448d46af3da717294/shard-bmg-8/igt@[email protected]
[33]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-168424v4/shard-bmg-10/igt@[email protected]

* igt@xe_exec_reset@long-spin-many-preempt-threads:
- shard-bmg: [FAIL][34] ([Intel XE#7956]) -> [PASS][35]
[34]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5285-55ba13f332ab983d0c3ce0c448d46af3da717294/shard-bmg-10/igt@[email protected]
[35]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-168424v4/shard-bmg-9/igt@[email protected]

* igt@xe_exec_reset@long-spin-sys-reuse-many-preempt-threads:
- shard-bmg: [FAIL][36] ([Intel XE#7850]) -> [PASS][37]
[36]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5285-55ba13f332ab983d0c3ce0c448d46af3da717294/shard-bmg-5/igt@[email protected]
[37]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-168424v4/shard-bmg-1/igt@[email protected]

* igt@xe_vm@large-userptr-binds-16777216:
- shard-lnl: [ABORT][38] ([Intel XE#8007]) -> [PASS][39]
[38]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5285-55ba13f332ab983d0c3ce0c448d46af3da717294/shard-lnl-5/igt@[email protected]
[39]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-168424v4/shard-lnl-7/igt@[email protected]

* igt@xe_wedged@wedged-mode-toggle:
- shard-bmg: [ABORT][40] ([Intel XE#8007]) -> [PASS][41]
[40]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5285-55ba13f332ab983d0c3ce0c448d46af3da717294/shard-bmg-8/igt@[email protected]
[41]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-168424v4/shard-bmg-10/igt@[email protected]

#### Warnings ####

* igt@kms_tiled_display@basic-test-pattern:
- shard-bmg: [SKIP][42] ([Intel XE#2426] / [Intel XE#5848]) -> [FAIL][43] ([Intel XE#1729] / [Intel XE#7424])
[42]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5285-55ba13f332ab983d0c3ce0c448d46af3da717294/shard-bmg-2/igt@[email protected]
[43]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-168424v4/shard-bmg-3/igt@[email protected]

* igt@kms_tiled_display@basic-test-pattern-with-chamelium:
- shard-bmg: [SKIP][44] ([Intel XE#2509] / [Intel XE#7437]) -> [SKIP][45] ([Intel XE#2426] / [Intel XE#5848])
[44]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5285-55ba13f332ab983d0c3ce0c448d46af3da717294/shard-bmg-4/igt@[email protected]
[45]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-168424v4/shard-bmg-8/igt@[email protected]

[Intel XE#1124]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1124
[Intel XE#1503]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1503
[Intel XE#1729]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1729
[Intel XE#2311]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2311
[Intel XE#2426]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2426
[Intel XE#2509]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2509
[Intel XE#2887]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2887
[Intel XE#301]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/301
[Intel XE#367]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/367
[Intel XE#5848]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5848
[Intel XE#6266]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6266
[Intel XE#6312]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6312
[Intel XE#6321]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6321
[Intel XE#7424]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7424
[Intel XE#7437]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7437
[Intel XE#7571]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7571
[Intel XE#7636]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7636
[Intel XE#7850]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7850
[Intel XE#7915]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7915
[Intel XE#7922]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7922
[Intel XE#7949]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7949
[Intel XE#7956]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7956
[Intel XE#8007]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8007
[Intel XE#8355]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8355
[Intel XE#8364]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8364
[Intel XE#8368]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8368

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

* Linux: xe-5285-55ba13f332ab983d0c3ce0c448d46af3da717294 -> xe-pw-168424v4

IGT_8976: 8976
xe-5285-55ba13f332ab983d0c3ce0c448d46af3da717294: 55ba13f332ab983d0c3ce0c448d46af3da717294
xe-pw-168424v4: 168424v4

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-168424v4/index.html

maintainer
#4 lore raw
In reply to Arvind Yadav
Quoted 63 lines · Arvind Yadav

GuC exec queue destruction can run asynchronously. If the final device put happens from a destroy worker, drmm cleanup can end up draining the same workqueue and deadlock.

Hold a drm_device reference for the queue lifetime and drop it after queue teardown completes. This keeps drmm cleanup from running while async destroy work is still pending.

Move destroy work to a module-lifetime Xe workqueue and flush it on PCI remove so hot-unbind/rebind still waits for pending destroy work.

With queue-held device refs, guc_submit_sw_fini() cannot run with live GuC IDs. Replace the fini wait with an assertion and remove the unused fini_wq.

v2:
- Rebase

v3:
- Switch to queue-lifetime drm_dev_get()/drm_dev_put() model. (Matt)
- Queue async teardown on system_dfl_wq instead of xe->destroy_wq. (Matt)
- Drop separate deferred drm_dev_put worker.
- Remove stale drain_workqueue(xe->destroy_wq) from guc_submit_sw_fini().

v4:
- Replace the guc_submit_sw_fini() wait with an assertion and remove the now-unused fini_wq. (sashiko)

v5:
- Move destroy work to a module-lifetime Xe workqueue instead of system_dfl_wq. (Matt)
- Flush the module-lifetime destroy workqueue during PCI remove to preserve the old device-remove wait semantics.

v6:
- Keep SVM pagemap destroy work on the per-device destroy_wq to avoid letting it outlive the xe_device/drm_device. (Sashiko)
- Use WQ_MEM_RECLAIM for xe->destroy_wq because SVM pagemap destroy work can be queued from the reclaim path.

Fixes 2d2be279f1ca ("drm/xe: fix UAF around queue destruction")
Cc Matthew Brost <[email protected]>
Cc Thomas Hellström <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Himal Prasad Ghimiray <[email protected]>
Cc Tejas Upadhyay <[email protected]>
---
 drivers/gpu/drm/xe/xe_device.c       |  2 +-
 drivers/gpu/drm/xe/xe_device_types.h |  2 +-
 drivers/gpu/drm/xe/xe_exec_queue.c   | 30 +++++++++++++
 drivers/gpu/drm/xe/xe_exec_queue.h   |  7 +++
 drivers/gpu/drm/xe/xe_guc_submit.c   | 65 ++++++++++++++++------------
 drivers/gpu/drm/xe/xe_guc_types.h    |  2 -
 drivers/gpu/drm/xe/xe_module.c       |  5 +++
 drivers/gpu/drm/xe/xe_pci.c          |  7 +++
 8 files changed, 88 insertions(+), 32 deletions(-)
drivers/gpu/drm/xe/xe_device.c +0 -0
index 089872507bdd..a81345811a8d 100644

drivers/gpu/drm/xe/xe_device.c int xe_device_init_early(struct xe_device *xe) · line 583

Quoted 5 lines
drivers/gpu/drm/xe/xe_device.c +1 -1
@@ -580,7 +580,7 @@ int xe_device_init_early(struct xe_device *xe)
 						       WQ_MEM_RECLAIM);
 	xe->ordered_wq = alloc_ordered_workqueue("xe-ordered-wq", 0);
 	xe->unordered_wq = alloc_workqueue("xe-unordered-wq", WQ_PERCPU, 0);
-	xe->destroy_wq = alloc_workqueue("xe-destroy-wq", WQ_PERCPU, 0);
+	xe->destroy_wq = alloc_workqueue("xe-destroy-wq", WQ_MEM_RECLAIM, 0);

Can't we just drop this? xe->destroy_wq is used in xe_svm.c but that can use the module level one.

Quoted 50 lines
drivers/gpu/drm/xe/xe_device.c +0 -0
 	if (!xe->ordered_wq || !xe->unordered_wq ||
 	    !xe->preempt_fence_wq || !xe->destroy_wq) {
 		/*
drivers/gpu/drm/xe/xe_device_types.h +1 -1
index 32dd2ffbc796..0e6065d62e37 100644
@@ -355,7 +355,7 @@ struct xe_device {
 	/** @unordered_wq: used to serialize unordered work */
 	struct workqueue_struct *unordered_wq;
 
-	/** @destroy_wq: used to serialize user destroy work, like queue */
+	/** @destroy_wq: used for device-lifetime async destroy work */
 	struct workqueue_struct *destroy_wq;
 
 	/** @tiles: device tiles */
drivers/gpu/drm/xe/xe_exec_queue.c +19 -0
index 1b5ca3ce578a..43990d19ec63 100644
@@ -6,6 +6,7 @@
 #include "xe_exec_queue.h"
 
 #include <linux/nospec.h>
+#include <linux/workqueue.h>
 
 #include <drm/drm_device.h>
 #include <drm/drm_drv.h>
@@ -30,6 +31,35 @@
 #include "xe_vm.h"
 #include "xe_pxp.h"
 
+static struct workqueue_struct *xe_destroy_wq;
+
+int __init xe_exec_queue_module_init(void)
+{
+	xe_destroy_wq = alloc_workqueue("xe-exec-queue-destroy-wq",
+					WQ_UNBOUND | WQ_MEM_RECLAIM, 0);
+	if (!xe_destroy_wq)
+		return -ENOMEM;
+	return 0;
+}
+
+void xe_exec_queue_module_exit(void)
+{
+	if (xe_destroy_wq)
+		destroy_workqueue(xe_destroy_wq);
+	xe_destroy_wq = NULL;
+}
+

drivers/gpu/drm/xe/xe_exec_queue.c line 61

Quoted 10 lines
drivers/gpu/drm/xe/xe_exec_queue.c +10 -0
+bool xe_exec_queue_destroy_wq_queue(struct work_struct *work)
+{
+	return queue_work(xe_destroy_wq, work);
+}
+
+void xe_exec_queue_destroy_wq_flush(void)
+{
+	if (xe_destroy_wq)
+		flush_workqueue(xe_destroy_wq);
+}

Then here s/xe_exec_queue_destroy_wq*/xe_destroy_wq*

and make this module generic?

Matt

Quoted 236 lines
drivers/gpu/drm/xe/xe_exec_queue.c +1 -0
+
 /**
  * DOC: Execution Queue
  *
drivers/gpu/drm/xe/xe_exec_queue.h +7 -0
index 0225426c57b0..a269bb0f77c7 100644
@@ -31,6 +31,13 @@ struct xe_exec_queue *xe_exec_queue_create_bind(struct xe_device *xe,
 						struct xe_vm *user_vm,
 						u32 flags, u64 extensions);
 
+struct work_struct;
+
+int xe_exec_queue_module_init(void);
+void xe_exec_queue_module_exit(void);
+bool xe_exec_queue_destroy_wq_queue(struct work_struct *work);
+void xe_exec_queue_destroy_wq_flush(void);
+
 void xe_exec_queue_fini(struct xe_exec_queue *q);
 void xe_exec_queue_destroy(struct kref *ref);
 void xe_exec_queue_assign_name(struct xe_exec_queue *q, u32 instance);
drivers/gpu/drm/xe/xe_guc_submit.c +37 -28
index afe5d99cdd8b..64d3029fa6ac 100644
@@ -10,6 +10,7 @@
 #include <linux/circ_buf.h>
 #include <linux/dma-fence-array.h>
 
+#include <drm/drm_drv.h>
 #include <drm/drm_managed.h>
 
 #include "abi/guc_actions_abi.h"
@@ -232,17 +233,9 @@ static bool exec_queue_killed_or_banned_or_wedged(struct xe_exec_queue *q)
 static void guc_submit_sw_fini(struct drm_device *drm, void *arg)
 {
 	struct xe_guc *guc = arg;
-	struct xe_device *xe = guc_to_xe(guc);
 	struct xe_gt *gt = guc_to_gt(guc);
-	int ret;
-
-	ret = wait_event_timeout(guc->submission_state.fini_wq,
-				 xa_empty(&guc->submission_state.exec_queue_lookup),
-				 HZ * 5);
 
-	drain_workqueue(xe->destroy_wq);
-
-	xe_gt_assert(gt, ret);
+	xe_gt_assert(gt, xa_empty(&guc->submission_state.exec_queue_lookup));
 
 	xa_destroy(&guc->submission_state.exec_queue_lookup);
 }
@@ -319,8 +312,6 @@ int xe_guc_submit_init(struct xe_guc *guc, unsigned int num_ids)
 
 	xa_init(&guc->submission_state.exec_queue_lookup);
 
-	init_waitqueue_head(&guc->submission_state.fini_wq);
-
 	primelockdep(guc);
 
 	guc->submission_state.initialized = true;
@@ -411,9 +402,6 @@ static void __release_guc_id(struct xe_guc *guc, struct xe_exec_queue *q,
 	xe_guc_id_mgr_release_locked(&guc->submission_state.idm,
 				     q->guc->id, q->width);
 
-	if (xa_empty(&guc->submission_state.exec_queue_lookup))
-		wake_up(&guc->submission_state.fini_wq);
-
 	mutex_unlock(&guc->submission_state.lock);
 }
 
@@ -1685,6 +1673,7 @@ static void guc_exec_queue_fini(struct xe_exec_queue *q)
 {
 	struct xe_guc_exec_queue *ge = q->guc;
 	struct xe_guc *guc = exec_queue_to_guc(q);
+	struct drm_device *drm = &guc_to_xe(guc)->drm;
 
 	if (xe_exec_queue_is_multi_queue_secondary(q)) {
 		struct xe_exec_queue_group *group = q->multi_queue.group;
@@ -1703,36 +1692,52 @@ static void guc_exec_queue_fini(struct xe_exec_queue *q)
 	 * (timeline name).
 	 */
 	kfree_rcu(ge, rcu);
+
+	drm_dev_put(drm);
 }
 
-static void __guc_exec_queue_destroy_async(struct work_struct *w)
+static void guc_exec_queue_do_destroy(struct xe_exec_queue *q)
 {
-	struct xe_guc_exec_queue *ge =
-		container_of(w, struct xe_guc_exec_queue, destroy_async);
-	struct xe_exec_queue *q = ge->q;
+	struct xe_guc_exec_queue *ge = q->guc;
 	struct xe_guc *guc = exec_queue_to_guc(q);
+	struct xe_device *xe = guc_to_xe(guc);
+	struct drm_device *drm = &xe->drm;
 
-	guard(xe_pm_runtime)(guc_to_xe(guc));
-	trace_xe_exec_queue_destroy(q);
+	/*
+	 * guc_exec_queue_fini() drops the queue's drm_device ref.
+	 * Keep the device alive until the PM-runtime guard unwinds.
+	 */
+	drm_dev_get(drm);
 
-	/* Confirm no work left behind accessing device structures */
-	cancel_delayed_work_sync(&ge->sched.base.work_tdr);
+	scoped_guard(xe_pm_runtime, xe) {
+		trace_xe_exec_queue_destroy(q);
 
-	xe_exec_queue_fini(q);
+		/* Confirm no work left behind accessing device structures */
+		cancel_delayed_work_sync(&ge->sched.base.work_tdr);
+
+		xe_exec_queue_fini(q);
+	}
+
+	drm_dev_put(drm);
 }
 
-static void guc_exec_queue_destroy_async(struct xe_exec_queue *q)
+static void __guc_exec_queue_destroy_async(struct work_struct *w)
 {
-	struct xe_guc *guc = exec_queue_to_guc(q);
-	struct xe_device *xe = guc_to_xe(guc);
+	struct xe_guc_exec_queue *ge =
+		container_of(w, struct xe_guc_exec_queue, destroy_async);
+
+	guc_exec_queue_do_destroy(ge->q);
+}
 
+static void guc_exec_queue_destroy_async(struct xe_exec_queue *q)
+{
 	INIT_WORK(&q->guc->destroy_async, __guc_exec_queue_destroy_async);
 
 	/* We must block on kernel engines so slabs are empty on driver unload */
 	if (q->flags & EXEC_QUEUE_FLAG_PERMANENT || exec_queue_wedged(q))
-		__guc_exec_queue_destroy_async(&q->guc->destroy_async);
+		guc_exec_queue_do_destroy(q);
 	else
-		queue_work(xe->destroy_wq, &q->guc->destroy_async);
+		xe_exec_queue_destroy_wq_queue(&q->guc->destroy_async);
 }
 
 static void __guc_exec_queue_destroy(struct xe_guc *guc, struct xe_exec_queue *q)
@@ -1927,6 +1932,7 @@ static int guc_exec_queue_init(struct xe_exec_queue *q)
 {
 	struct xe_gpu_scheduler *sched;
 	struct xe_guc *guc = exec_queue_to_guc(q);
+	struct drm_device *drm = &guc_to_xe(guc)->drm;
 	struct workqueue_struct *submit_wq = NULL;
 	struct xe_guc_exec_queue *ge;
 	long timeout;
@@ -1938,6 +1944,8 @@ static int guc_exec_queue_init(struct xe_exec_queue *q)
 	if (!ge)
 		return -ENOMEM;
 
+	drm_dev_get(drm);
+
 	q->guc = ge;
 	ge->q = q;
 	init_rcu_head(&ge->rcu);
@@ -2014,6 +2022,7 @@ static int guc_exec_queue_init(struct xe_exec_queue *q)
 	release_guc_id(guc, q);
 err_free:
 	kfree(ge);
+	drm_dev_put(drm);
 
 	return err;
 }
drivers/gpu/drm/xe/xe_guc_types.h +0 -2
index c7b9642b41ba..31a2acb63ac3 100644
@@ -100,8 +100,6 @@ struct xe_guc {
 		 * even initialized - before that not even the lock is valid
 		 */
 		bool initialized;
-		/** @submission_state.fini_wq: submit fini wait queue */
-		wait_queue_head_t fini_wq;
 	} submission_state;
 
 	/** @hwconfig: Hardware config state */
drivers/gpu/drm/xe/xe_module.c +5 -0
index 4cb578182912..1949fb3242bb 100644
@@ -18,6 +18,7 @@
 #include "xe_pci.h"
 #include "xe_pm.h"
 #include "xe_observation.h"
+#include "xe_exec_queue.h"
 #include "xe_sched_job.h"
 
 struct xe_modparam xe_modparam = {
@@ -112,6 +113,10 @@ static const struct init_funcs init_funcs[] = {
 		.init = xe_sched_job_module_init,
 		.exit = xe_sched_job_module_exit,
 	},
+	{
+		.init = xe_exec_queue_module_init,
+		.exit = xe_exec_queue_module_exit,
+	},
 	{
 		.init = xe_register_pci_driver,
 		.exit = xe_unregister_pci_driver,
drivers/gpu/drm/xe/xe_pci.c +7 -0
index 78fc2e4dcfc6..5a185ca00c1f 100644
@@ -21,6 +21,7 @@
 #include "xe_configfs.h"
 #include "xe_device.h"
 #include "xe_drv.h"
+#include "xe_exec_queue.h"
 #include "xe_gt.h"
 #include "xe_gt_sriov_vf.h"
 #include "xe_guc.h"
@@ -1049,6 +1050,12 @@ static void xe_pci_remove(struct pci_dev *pdev)
 		return;
 
 	xe_device_remove(xe);
+
+	/*
+	 * Preserve remove-time flush after moving destroy work to module
+	 * lifetime.
+	 */
+	xe_exec_queue_destroy_wq_flush();
 	xe_pm_fini(xe);
 }
 
Signature · 1 line
2.43.0
#5 lore raw
Quoted 59 lines · Matthew Brost
Quoted 58 lines · Arvind Yadav

GuC exec queue destruction can run asynchronously. If the final device put happens from a destroy worker, drmm cleanup can end up draining the same workqueue and deadlock.

Hold a drm_device reference for the queue lifetime and drop it after queue teardown completes. This keeps drmm cleanup from running while async destroy work is still pending.

Move destroy work to a module-lifetime Xe workqueue and flush it on PCI remove so hot-unbind/rebind still waits for pending destroy work.

With queue-held device refs, guc_submit_sw_fini() cannot run with live GuC IDs. Replace the fini wait with an assertion and remove the unused fini_wq.

v2:
- Rebase

v3:
- Switch to queue-lifetime drm_dev_get()/drm_dev_put() model. (Matt)
- Queue async teardown on system_dfl_wq instead of xe->destroy_wq. (Matt)
- Drop separate deferred drm_dev_put worker.
- Remove stale drain_workqueue(xe->destroy_wq) from guc_submit_sw_fini().

v4:
- Replace the guc_submit_sw_fini() wait with an assertion and remove the now-unused fini_wq. (sashiko)

v5:
- Move destroy work to a module-lifetime Xe workqueue instead of system_dfl_wq. (Matt)
- Flush the module-lifetime destroy workqueue during PCI remove to preserve the old device-remove wait semantics.

v6:
- Keep SVM pagemap destroy work on the per-device destroy_wq to avoid letting it outlive the xe_device/drm_device. (Sashiko)
- Use WQ_MEM_RECLAIM for xe->destroy_wq because SVM pagemap destroy work can be queued from the reclaim path.

Fixes 2d2be279f1ca ("drm/xe: fix UAF around queue destruction")
Cc Matthew Brost <[email protected]>
Cc Thomas Hellström <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Himal Prasad Ghimiray <[email protected]>
Cc Tejas Upadhyay <[email protected]>
---
  drivers/gpu/drm/xe/xe_device.c       |  2 +-
  drivers/gpu/drm/xe/xe_device_types.h |  2 +-
  drivers/gpu/drm/xe/xe_exec_queue.c   | 30 +++++++++++++
  drivers/gpu/drm/xe/xe_exec_queue.h   |  7 +++
  drivers/gpu/drm/xe/xe_guc_submit.c   | 65 ++++++++++++++++------------
  drivers/gpu/drm/xe/xe_guc_types.h    |  2 -
  drivers/gpu/drm/xe/xe_module.c       |  5 +++
  drivers/gpu/drm/xe/xe_pci.c          |  7 +++
  8 files changed, 88 insertions(+), 32 deletions(-)
Quoted 12 lines

drivers/gpu/drm/xe/xe_device.c int xe_device_init_early(struct xe_device *xe) · line 583

Quoted 10 lines
drivers/gpu/drm/xe/xe_device.c +1 -1
index 089872507bdd..a81345811a8d 100644
@@ -580,7 +580,7 @@ int xe_device_init_early(struct xe_device *xe)
  						       WQ_MEM_RECLAIM);
  	xe->ordered_wq = alloc_ordered_workqueue("xe-ordered-wq", 0);
  	xe->unordered_wq = alloc_workqueue("xe-unordered-wq", WQ_PERCPU, 0);
-	xe->destroy_wq = alloc_workqueue("xe-destroy-wq", WQ_PERCPU, 0);
+	xe->destroy_wq = alloc_workqueue("xe-destroy-wq", WQ_MEM_RECLAIM, 0);

Can't we just drop this? xe->destroy_wq is used in xe_svm.c but that can use the module level one.

Agreed.
I will drop xe->destroy_wq and use the module-level destroy WQ for the xe_svm.c user too. SVM pagemap destroy should be safe there since the pagemap lifetime keeps the drm_device/module alive.

Quoted 63 lines
Quoted 51 lines
drivers/gpu/drm/xe/xe_device.c +0 -0
  	if (!xe->ordered_wq || !xe->unordered_wq ||
  	    !xe->preempt_fence_wq || !xe->destroy_wq) {
  		/*
drivers/gpu/drm/xe/xe_device_types.h +1 -1
index 32dd2ffbc796..0e6065d62e37 100644
@@ -355,7 +355,7 @@ struct xe_device {
  	/** @unordered_wq: used to serialize unordered work */
  	struct workqueue_struct *unordered_wq;
 
-	/** @destroy_wq: used to serialize user destroy work, like queue */
+	/** @destroy_wq: used for device-lifetime async destroy work */
  	struct workqueue_struct *destroy_wq;
 
  	/** @tiles: device tiles */
drivers/gpu/drm/xe/xe_exec_queue.c +19 -0
index 1b5ca3ce578a..43990d19ec63 100644
@@ -6,6 +6,7 @@
  #include "xe_exec_queue.h"
 
  #include <linux/nospec.h>
+#include <linux/workqueue.h>
 
  #include <drm/drm_device.h>
  #include <drm/drm_drv.h>
@@ -30,6 +31,35 @@
  #include "xe_vm.h"
  #include "xe_pxp.h"
 
+static struct workqueue_struct *xe_destroy_wq;
+
+int __init xe_exec_queue_module_init(void)
+{
+	xe_destroy_wq = alloc_workqueue("xe-exec-queue-destroy-wq",
+					WQ_UNBOUND | WQ_MEM_RECLAIM, 0);
+	if (!xe_destroy_wq)
+		return -ENOMEM;
+	return 0;
+}
+
+void xe_exec_queue_module_exit(void)
+{
+	if (xe_destroy_wq)
+		destroy_workqueue(xe_destroy_wq);
+	xe_destroy_wq = NULL;
+}
+

drivers/gpu/drm/xe/xe_exec_queue.c line 61

Quoted 10 lines
drivers/gpu/drm/xe/xe_exec_queue.c +10 -0
+bool xe_exec_queue_destroy_wq_queue(struct work_struct *work)
+{
+	return queue_work(xe_destroy_wq, work);
+}
+
+void xe_exec_queue_destroy_wq_flush(void)
+{
+	if (xe_destroy_wq)
+		flush_workqueue(xe_destroy_wq);
+}

Then here s/xe_exec_queue_destroy_wq*/xe_destroy_wq*

Quoted 1 line

and make this module generic?

I will rename xe_exec_queue_destroy_wq_*() to xe_destroy_wq_*() and make it generic.

~Arvind,

Quoted 239 lines

Matt

Quoted 236 lines
drivers/gpu/drm/xe/xe_exec_queue.c +1 -0
+
  /**
   * DOC: Execution Queue
   *
drivers/gpu/drm/xe/xe_exec_queue.h +7 -0
index 0225426c57b0..a269bb0f77c7 100644
@@ -31,6 +31,13 @@ struct xe_exec_queue *xe_exec_queue_create_bind(struct xe_device *xe,
  						struct xe_vm *user_vm,
  						u32 flags, u64 extensions);
 
+struct work_struct;
+
+int xe_exec_queue_module_init(void);
+void xe_exec_queue_module_exit(void);
+bool xe_exec_queue_destroy_wq_queue(struct work_struct *work);
+void xe_exec_queue_destroy_wq_flush(void);
+
  void xe_exec_queue_fini(struct xe_exec_queue *q);
  void xe_exec_queue_destroy(struct kref *ref);
  void xe_exec_queue_assign_name(struct xe_exec_queue *q, u32 instance);
drivers/gpu/drm/xe/xe_guc_submit.c +37 -28
index afe5d99cdd8b..64d3029fa6ac 100644
@@ -10,6 +10,7 @@
  #include <linux/circ_buf.h>
  #include <linux/dma-fence-array.h>
 
+#include <drm/drm_drv.h>
  #include <drm/drm_managed.h>
 
  #include "abi/guc_actions_abi.h"
@@ -232,17 +233,9 @@ static bool exec_queue_killed_or_banned_or_wedged(struct xe_exec_queue *q)
  static void guc_submit_sw_fini(struct drm_device *drm, void *arg)
  {
  	struct xe_guc *guc = arg;
-	struct xe_device *xe = guc_to_xe(guc);
  	struct xe_gt *gt = guc_to_gt(guc);
-	int ret;
-
-	ret = wait_event_timeout(guc->submission_state.fini_wq,
-				 xa_empty(&guc->submission_state.exec_queue_lookup),
-				 HZ * 5);
 
-	drain_workqueue(xe->destroy_wq);
-
-	xe_gt_assert(gt, ret);
+	xe_gt_assert(gt, xa_empty(&guc->submission_state.exec_queue_lookup));
 
  	xa_destroy(&guc->submission_state.exec_queue_lookup);
  }
@@ -319,8 +312,6 @@ int xe_guc_submit_init(struct xe_guc *guc, unsigned int num_ids)
 
  	xa_init(&guc->submission_state.exec_queue_lookup);
 
-	init_waitqueue_head(&guc->submission_state.fini_wq);
-
  	primelockdep(guc);
 
  	guc->submission_state.initialized = true;
@@ -411,9 +402,6 @@ static void __release_guc_id(struct xe_guc *guc, struct xe_exec_queue *q,
  	xe_guc_id_mgr_release_locked(&guc->submission_state.idm,
  				     q->guc->id, q->width);
 
-	if (xa_empty(&guc->submission_state.exec_queue_lookup))
-		wake_up(&guc->submission_state.fini_wq);
-
  	mutex_unlock(&guc->submission_state.lock);
  }
 
@@ -1685,6 +1673,7 @@ static void guc_exec_queue_fini(struct xe_exec_queue *q)
  {
  	struct xe_guc_exec_queue *ge = q->guc;
  	struct xe_guc *guc = exec_queue_to_guc(q);
+	struct drm_device *drm = &guc_to_xe(guc)->drm;
 
  	if (xe_exec_queue_is_multi_queue_secondary(q)) {
  		struct xe_exec_queue_group *group = q->multi_queue.group;
@@ -1703,36 +1692,52 @@ static void guc_exec_queue_fini(struct xe_exec_queue *q)
  	 * (timeline name).
  	 */
  	kfree_rcu(ge, rcu);
+
+	drm_dev_put(drm);
  }
 
-static void __guc_exec_queue_destroy_async(struct work_struct *w)
+static void guc_exec_queue_do_destroy(struct xe_exec_queue *q)
  {
-	struct xe_guc_exec_queue *ge =
-		container_of(w, struct xe_guc_exec_queue, destroy_async);
-	struct xe_exec_queue *q = ge->q;
+	struct xe_guc_exec_queue *ge = q->guc;
  	struct xe_guc *guc = exec_queue_to_guc(q);
+	struct xe_device *xe = guc_to_xe(guc);
+	struct drm_device *drm = &xe->drm;
 
-	guard(xe_pm_runtime)(guc_to_xe(guc));
-	trace_xe_exec_queue_destroy(q);
+	/*
+	 * guc_exec_queue_fini() drops the queue's drm_device ref.
+	 * Keep the device alive until the PM-runtime guard unwinds.
+	 */
+	drm_dev_get(drm);
 
-	/* Confirm no work left behind accessing device structures */
-	cancel_delayed_work_sync(&ge->sched.base.work_tdr);
+	scoped_guard(xe_pm_runtime, xe) {
+		trace_xe_exec_queue_destroy(q);
 
-	xe_exec_queue_fini(q);
+		/* Confirm no work left behind accessing device structures */
+		cancel_delayed_work_sync(&ge->sched.base.work_tdr);
+
+		xe_exec_queue_fini(q);
+	}
+
+	drm_dev_put(drm);
  }
 
-static void guc_exec_queue_destroy_async(struct xe_exec_queue *q)
+static void __guc_exec_queue_destroy_async(struct work_struct *w)
  {
-	struct xe_guc *guc = exec_queue_to_guc(q);
-	struct xe_device *xe = guc_to_xe(guc);
+	struct xe_guc_exec_queue *ge =
+		container_of(w, struct xe_guc_exec_queue, destroy_async);
+
+	guc_exec_queue_do_destroy(ge->q);
+}
 
+static void guc_exec_queue_destroy_async(struct xe_exec_queue *q)
+{
  	INIT_WORK(&q->guc->destroy_async, __guc_exec_queue_destroy_async);
 
  	/* We must block on kernel engines so slabs are empty on driver unload */
  	if (q->flags & EXEC_QUEUE_FLAG_PERMANENT || exec_queue_wedged(q))
-		__guc_exec_queue_destroy_async(&q->guc->destroy_async);
+		guc_exec_queue_do_destroy(q);
  	else
-		queue_work(xe->destroy_wq, &q->guc->destroy_async);
+		xe_exec_queue_destroy_wq_queue(&q->guc->destroy_async);
  }
 
  static void __guc_exec_queue_destroy(struct xe_guc *guc, struct xe_exec_queue *q)
@@ -1927,6 +1932,7 @@ static int guc_exec_queue_init(struct xe_exec_queue *q)
  {
  	struct xe_gpu_scheduler *sched;
  	struct xe_guc *guc = exec_queue_to_guc(q);
+	struct drm_device *drm = &guc_to_xe(guc)->drm;
  	struct workqueue_struct *submit_wq = NULL;
  	struct xe_guc_exec_queue *ge;
  	long timeout;
@@ -1938,6 +1944,8 @@ static int guc_exec_queue_init(struct xe_exec_queue *q)
  	if (!ge)
  		return -ENOMEM;
 
+	drm_dev_get(drm);
+
  	q->guc = ge;
  	ge->q = q;
  	init_rcu_head(&ge->rcu);
@@ -2014,6 +2022,7 @@ static int guc_exec_queue_init(struct xe_exec_queue *q)
  	release_guc_id(guc, q);
  err_free:
  	kfree(ge);
+	drm_dev_put(drm);
 
  	return err;
  }
drivers/gpu/drm/xe/xe_guc_types.h +0 -2
index c7b9642b41ba..31a2acb63ac3 100644
@@ -100,8 +100,6 @@ struct xe_guc {
  		 * even initialized - before that not even the lock is valid
  		 */
  		bool initialized;
-		/** @submission_state.fini_wq: submit fini wait queue */
-		wait_queue_head_t fini_wq;
  	} submission_state;
 
  	/** @hwconfig: Hardware config state */
drivers/gpu/drm/xe/xe_module.c +5 -0
index 4cb578182912..1949fb3242bb 100644
@@ -18,6 +18,7 @@
  #include "xe_pci.h"
  #include "xe_pm.h"
  #include "xe_observation.h"
+#include "xe_exec_queue.h"
  #include "xe_sched_job.h"
 
  struct xe_modparam xe_modparam = {
@@ -112,6 +113,10 @@ static const struct init_funcs init_funcs[] = {
  		.init = xe_sched_job_module_init,
  		.exit = xe_sched_job_module_exit,
  	},
+	{
+		.init = xe_exec_queue_module_init,
+		.exit = xe_exec_queue_module_exit,
+	},
  	{
  		.init = xe_register_pci_driver,
  		.exit = xe_unregister_pci_driver,
drivers/gpu/drm/xe/xe_pci.c +7 -0
index 78fc2e4dcfc6..5a185ca00c1f 100644
@@ -21,6 +21,7 @@
  #include "xe_configfs.h"
  #include "xe_device.h"
  #include "xe_drv.h"
+#include "xe_exec_queue.h"
  #include "xe_gt.h"
  #include "xe_gt_sriov_vf.h"
  #include "xe_guc.h"
@@ -1049,6 +1050,12 @@ static void xe_pci_remove(struct pci_dev *pdev)
  		return;
 
  	xe_device_remove(xe);
+
+	/*
+	 * Preserve remove-time flush after moving destroy work to module
+	 * lifetime.
+	 */
+	xe_exec_queue_destroy_wq_flush();
  	xe_pm_fini(xe);
  }
 
Signature · 1 line
2.43.0