public inbox for intel-xe@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH 0/4] drm/xe: Fix resource leaks in bo init and dma-buf paths
@ 2026-04-07 20:15 Shuicheng Lin
  2026-04-07 20:15 ` [PATCH 1/4] drm/xe/bo: Fix bo leak on unaligned size validation in xe_bo_init_locked() Shuicheng Lin
                   ` (5 more replies)
  0 siblings, 6 replies; 15+ messages in thread
From: Shuicheng Lin @ 2026-04-07 20:15 UTC (permalink / raw)
  To: intel-xe; +Cc: Shuicheng Lin

Fix several resource leaks in the xe driver's buffer object
initialization and dma-buf import paths:

Patches 1-2 fix xe_bo_init_locked() where two early validation error
paths return without freeing a caller-provided bo, violating the
documented contract that bo is freed on failure.

Patch 3 fixes xe_dma_buf_init_obj() where the pre-allocated storage bo
is leaked when drm_gpuvm_resv_object_alloc() fails.

Patch 4 fixes xe_gem_prime_import() where the dma-buf attachment is
leaked when xe_dma_buf_init_obj() fails.

Shuicheng Lin (4):
  drm/xe/bo: Fix bo leak on unaligned size validation in
    xe_bo_init_locked()
  drm/xe/bo: Fix bo leak on GGTT flag validation in xe_bo_init_locked()
  drm/xe: Fix bo leak in xe_dma_buf_init_obj() on allocation failure
  drm/xe: Fix dma-buf attachment leak in xe_gem_prime_import()

 drivers/gpu/drm/xe/xe_bo.c      |  8 ++++++--
 drivers/gpu/drm/xe/xe_dma_buf.c | 15 ++++++++++-----
 2 files changed, 16 insertions(+), 7 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [PATCH 1/4] drm/xe/bo: Fix bo leak on unaligned size validation in xe_bo_init_locked()
  2026-04-07 20:15 [PATCH 0/4] drm/xe: Fix resource leaks in bo init and dma-buf paths Shuicheng Lin
@ 2026-04-07 20:15 ` Shuicheng Lin
  2026-04-08  4:52   ` Matthew Brost
  2026-04-07 20:15 ` [PATCH 2/4] drm/xe/bo: Fix bo leak on GGTT flag " Shuicheng Lin
                   ` (4 subsequent siblings)
  5 siblings, 1 reply; 15+ messages in thread
From: Shuicheng Lin @ 2026-04-07 20:15 UTC (permalink / raw)
  To: intel-xe; +Cc: Shuicheng Lin, stable

When type is ttm_bo_type_device and aligned_size != size, the function
returns an error without freeing a caller-provided bo, violating the
documented contract that bo is freed on failure.

Add xe_bo_free(bo) before returning the error.

Fixes: 4e03b584143e ("drm/xe/uapi: Reject bo creation of unaligned size")
Cc: stable@vger.kernel.org
Assisted-by: Claude:claude-opus-4.6
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
---
 drivers/gpu/drm/xe/xe_bo.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_bo.c b/drivers/gpu/drm/xe/xe_bo.c
index b70e8396e56f..6e4ebbe72952 100644
--- a/drivers/gpu/drm/xe/xe_bo.c
+++ b/drivers/gpu/drm/xe/xe_bo.c
@@ -2342,8 +2342,10 @@ struct xe_bo *xe_bo_init_locked(struct xe_device *xe, struct xe_bo *bo,
 		alignment = SZ_4K >> PAGE_SHIFT;
 	}
 
-	if (type == ttm_bo_type_device && aligned_size != size)
+	if (type == ttm_bo_type_device && aligned_size != size) {
+		xe_bo_free(bo);
 		return ERR_PTR(-EINVAL);
+	}
 
 	if (!bo) {
 		bo = xe_bo_alloc();
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 2/4] drm/xe/bo: Fix bo leak on GGTT flag validation in xe_bo_init_locked()
  2026-04-07 20:15 [PATCH 0/4] drm/xe: Fix resource leaks in bo init and dma-buf paths Shuicheng Lin
  2026-04-07 20:15 ` [PATCH 1/4] drm/xe/bo: Fix bo leak on unaligned size validation in xe_bo_init_locked() Shuicheng Lin
@ 2026-04-07 20:15 ` Shuicheng Lin
  2026-04-08  4:54   ` Matthew Brost
  2026-04-07 20:15 ` [PATCH 3/4] drm/xe: Fix bo leak in xe_dma_buf_init_obj() on allocation failure Shuicheng Lin
                   ` (3 subsequent siblings)
  5 siblings, 1 reply; 15+ messages in thread
From: Shuicheng Lin @ 2026-04-07 20:15 UTC (permalink / raw)
  To: intel-xe; +Cc: Shuicheng Lin, stable

When XE_BO_FLAG_GGTT_ALL is set without XE_BO_FLAG_GGTT, the function
returns an error without freeing a caller-provided bo, violating the
documented contract that bo is freed on failure.

Add xe_bo_free(bo) before returning the error.

Fixes: 5a3b0df25d6a ("drm/xe: Allow bo mapping on multiple ggtts")
Cc: stable@vger.kernel.org
Assisted-by: Claude:claude-opus-4.6
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
---
 drivers/gpu/drm/xe/xe_bo.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_bo.c b/drivers/gpu/drm/xe/xe_bo.c
index 6e4ebbe72952..d09e96b996b9 100644
--- a/drivers/gpu/drm/xe/xe_bo.c
+++ b/drivers/gpu/drm/xe/xe_bo.c
@@ -2322,8 +2322,10 @@ struct xe_bo *xe_bo_init_locked(struct xe_device *xe, struct xe_bo *bo,
 	}
 
 	/* XE_BO_FLAG_GGTTx requires XE_BO_FLAG_GGTT also be set */
-	if ((flags & XE_BO_FLAG_GGTT_ALL) && !(flags & XE_BO_FLAG_GGTT))
+	if ((flags & XE_BO_FLAG_GGTT_ALL) && !(flags & XE_BO_FLAG_GGTT)) {
+		xe_bo_free(bo);
 		return ERR_PTR(-EINVAL);
+	}
 
 	if (flags & (XE_BO_FLAG_VRAM_MASK | XE_BO_FLAG_STOLEN) &&
 	    !(flags & XE_BO_FLAG_IGNORE_MIN_PAGE_SIZE) &&
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 3/4] drm/xe: Fix bo leak in xe_dma_buf_init_obj() on allocation failure
  2026-04-07 20:15 [PATCH 0/4] drm/xe: Fix resource leaks in bo init and dma-buf paths Shuicheng Lin
  2026-04-07 20:15 ` [PATCH 1/4] drm/xe/bo: Fix bo leak on unaligned size validation in xe_bo_init_locked() Shuicheng Lin
  2026-04-07 20:15 ` [PATCH 2/4] drm/xe/bo: Fix bo leak on GGTT flag " Shuicheng Lin
@ 2026-04-07 20:15 ` Shuicheng Lin
  2026-04-08  5:01   ` Matthew Brost
  2026-04-07 20:15 ` [PATCH 4/4] drm/xe: Fix dma-buf attachment leak in xe_gem_prime_import() Shuicheng Lin
                   ` (2 subsequent siblings)
  5 siblings, 1 reply; 15+ messages in thread
From: Shuicheng Lin @ 2026-04-07 20:15 UTC (permalink / raw)
  To: intel-xe; +Cc: Shuicheng Lin, stable

When drm_gpuvm_resv_object_alloc() fails, the pre-allocated storage bo
is not freed. Add xe_bo_free(storage) before returning the error.

Fixes: eb289a5f6cc6 ("drm/xe: Convert xe_dma_buf.c for exhaustive eviction")
Cc: stable@vger.kernel.org
Assisted-by: Claude:claude-opus-4.6
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
---
 drivers/gpu/drm/xe/xe_dma_buf.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_dma_buf.c b/drivers/gpu/drm/xe/xe_dma_buf.c
index 7f9602b3363d..24d9d82426b9 100644
--- a/drivers/gpu/drm/xe/xe_dma_buf.c
+++ b/drivers/gpu/drm/xe/xe_dma_buf.c
@@ -271,8 +271,10 @@ xe_dma_buf_init_obj(struct drm_device *dev, struct xe_bo *storage,
 	int ret = 0;
 
 	dummy_obj = drm_gpuvm_resv_object_alloc(&xe->drm);
-	if (!dummy_obj)
+	if (!dummy_obj) {
+		xe_bo_free(storage);
 		return ERR_PTR(-ENOMEM);
+	}
 
 	dummy_obj->resv = resv;
 	xe_validation_guard(&ctx, &xe->val, &exec, (struct xe_val_flags) {}, ret) {
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 4/4] drm/xe: Fix dma-buf attachment leak in xe_gem_prime_import()
  2026-04-07 20:15 [PATCH 0/4] drm/xe: Fix resource leaks in bo init and dma-buf paths Shuicheng Lin
                   ` (2 preceding siblings ...)
  2026-04-07 20:15 ` [PATCH 3/4] drm/xe: Fix bo leak in xe_dma_buf_init_obj() on allocation failure Shuicheng Lin
@ 2026-04-07 20:15 ` Shuicheng Lin
  2026-04-08  5:04   ` Matthew Brost
  2026-04-07 21:48 ` ✗ CI.checkpatch: warning for drm/xe: Fix resource leaks in bo init and dma-buf paths Patchwork
  2026-04-07 21:50 ` ✗ CI.KUnit: failure " Patchwork
  5 siblings, 1 reply; 15+ messages in thread
From: Shuicheng Lin @ 2026-04-07 20:15 UTC (permalink / raw)
  To: intel-xe; +Cc: Shuicheng Lin, stable

When xe_dma_buf_init_obj() fails, the attachment from
dma_buf_dynamic_attach() is not detached. Add dma_buf_detach() before
returning the error. Note: we cannot use goto out_err here because
xe_dma_buf_init_obj() already frees bo on failure, and out_err would
double-free it.

Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs")
Cc: stable@vger.kernel.org
Assisted-by: Claude:claude-opus-4.6
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
---
 drivers/gpu/drm/xe/xe_dma_buf.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_dma_buf.c b/drivers/gpu/drm/xe/xe_dma_buf.c
index 24d9d82426b9..7702a6bdaae5 100644
--- a/drivers/gpu/drm/xe/xe_dma_buf.c
+++ b/drivers/gpu/drm/xe/xe_dma_buf.c
@@ -370,12 +370,15 @@ struct drm_gem_object *xe_gem_prime_import(struct drm_device *dev,
 		goto out_err;
 	}
 
-	/* Errors here will take care of freeing the bo. */
+	/*
+	 * xe_dma_buf_init_obj() takes ownership of bo on both success
+	 * and failure, so we must not touch bo after this call.
+	 */
 	obj = xe_dma_buf_init_obj(dev, bo, dma_buf);
-	if (IS_ERR(obj))
+	if (IS_ERR(obj)) {
+		dma_buf_detach(dma_buf, attach);
 		return obj;
-
-
+	}
 	get_dma_buf(dma_buf);
 	obj->import_attach = attach;
 	return obj;
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* ✗ CI.checkpatch: warning for drm/xe: Fix resource leaks in bo init and dma-buf paths
  2026-04-07 20:15 [PATCH 0/4] drm/xe: Fix resource leaks in bo init and dma-buf paths Shuicheng Lin
                   ` (3 preceding siblings ...)
  2026-04-07 20:15 ` [PATCH 4/4] drm/xe: Fix dma-buf attachment leak in xe_gem_prime_import() Shuicheng Lin
@ 2026-04-07 21:48 ` Patchwork
  2026-04-07 21:50 ` ✗ CI.KUnit: failure " Patchwork
  5 siblings, 0 replies; 15+ messages in thread
From: Patchwork @ 2026-04-07 21:48 UTC (permalink / raw)
  To: Shuicheng Lin; +Cc: intel-xe

== Series Details ==

Series: drm/xe: Fix resource leaks in bo init and dma-buf paths
URL   : https://patchwork.freedesktop.org/series/164476/
State : warning

== Summary ==

+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt
Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master
1f57ba1afceae32108bd24770069f764d940a0e4
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 09c060bfdd054bfab4979b9aa38f0c59c44fa5a0
Author: Shuicheng Lin <shuicheng.lin@intel.com>
Date:   Tue Apr 7 20:15:42 2026 +0000

    drm/xe: Fix dma-buf attachment leak in xe_gem_prime_import()
    
    When xe_dma_buf_init_obj() fails, the attachment from
    dma_buf_dynamic_attach() is not detached. Add dma_buf_detach() before
    returning the error. Note: we cannot use goto out_err here because
    xe_dma_buf_init_obj() already frees bo on failure, and out_err would
    double-free it.
    
    Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs")
    Cc: stable@vger.kernel.org
    Assisted-by: Claude:claude-opus-4.6
    Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
+ /mt/dim checkpatch 2dc939ed1bd66b5eac479a95968188a87de9cf81 drm-intel
f5a90be00b05 drm/xe/bo: Fix bo leak on unaligned size validation in xe_bo_init_locked()
-:15: WARNING:BAD_SIGN_OFF: Non-standard signature: Assisted-by:
#15: 
Assisted-by: Claude:claude-opus-4.6

-:15: ERROR:BAD_SIGN_OFF: Unrecognized email address: 'Claude:claude-opus-4.6'
#15: 
Assisted-by: Claude:claude-opus-4.6

total: 1 errors, 1 warnings, 0 checks, 11 lines checked
80673b3a23a4 drm/xe/bo: Fix bo leak on GGTT flag validation in xe_bo_init_locked()
-:15: WARNING:BAD_SIGN_OFF: Non-standard signature: Assisted-by:
#15: 
Assisted-by: Claude:claude-opus-4.6

-:15: ERROR:BAD_SIGN_OFF: Unrecognized email address: 'Claude:claude-opus-4.6'
#15: 
Assisted-by: Claude:claude-opus-4.6

total: 1 errors, 1 warnings, 0 checks, 11 lines checked
c85fa54d778b drm/xe: Fix bo leak in xe_dma_buf_init_obj() on allocation failure
-:12: WARNING:BAD_SIGN_OFF: Non-standard signature: Assisted-by:
#12: 
Assisted-by: Claude:claude-opus-4.6

-:12: ERROR:BAD_SIGN_OFF: Unrecognized email address: 'Claude:claude-opus-4.6'
#12: 
Assisted-by: Claude:claude-opus-4.6

total: 1 errors, 1 warnings, 0 checks, 11 lines checked
09c060bfdd05 drm/xe: Fix dma-buf attachment leak in xe_gem_prime_import()
-:14: WARNING:BAD_SIGN_OFF: Non-standard signature: Assisted-by:
#14: 
Assisted-by: Claude:claude-opus-4.6

-:14: ERROR:BAD_SIGN_OFF: Unrecognized email address: 'Claude:claude-opus-4.6'
#14: 
Assisted-by: Claude:claude-opus-4.6

total: 1 errors, 1 warnings, 0 checks, 19 lines checked



^ permalink raw reply	[flat|nested] 15+ messages in thread

* ✗ CI.KUnit: failure for drm/xe: Fix resource leaks in bo init and dma-buf paths
  2026-04-07 20:15 [PATCH 0/4] drm/xe: Fix resource leaks in bo init and dma-buf paths Shuicheng Lin
                   ` (4 preceding siblings ...)
  2026-04-07 21:48 ` ✗ CI.checkpatch: warning for drm/xe: Fix resource leaks in bo init and dma-buf paths Patchwork
@ 2026-04-07 21:50 ` Patchwork
  5 siblings, 0 replies; 15+ messages in thread
From: Patchwork @ 2026-04-07 21:50 UTC (permalink / raw)
  To: Shuicheng Lin; +Cc: intel-xe

== Series Details ==

Series: drm/xe: Fix resource leaks in bo init and dma-buf paths
URL   : https://patchwork.freedesktop.org/series/164476/
State : failure

== Summary ==

+ trap cleanup EXIT
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig
[21:48:56] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[21:49:01] 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=25
[21:49:39] Starting KUnit Kernel (1/1)...
[21:49:39] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[21:49:39] ================== guc_buf (11 subtests) ===================
[21:49:39] [PASSED] test_smallest
[21:49:39] [PASSED] test_largest
[21:49:39] [PASSED] test_granular
[21:49:39] [PASSED] test_unique
[21:49:39] [PASSED] test_overlap
[21:49:39] [PASSED] test_reusable
[21:49:39] [PASSED] test_too_big
[21:49:39] [PASSED] test_flush
[21:49:39] [PASSED] test_lookup
[21:49:39] [PASSED] test_data
[21:49:39] [PASSED] test_class
[21:49:39] ===================== [PASSED] guc_buf =====================
[21:49:39] =================== guc_dbm (7 subtests) ===================
[21:49:39] [PASSED] test_empty
[21:49:39] [PASSED] test_default
[21:49:39] ======================== test_size  ========================
[21:49:39] [PASSED] 4
[21:49:39] [PASSED] 8
[21:49:39] [PASSED] 32
[21:49:39] [PASSED] 256
[21:49:39] ==================== [PASSED] test_size ====================
[21:49:39] ======================= test_reuse  ========================
[21:49:39] [PASSED] 4
[21:49:39] [PASSED] 8
[21:49:39] [PASSED] 32
[21:49:39] [PASSED] 256
[21:49:39] =================== [PASSED] test_reuse ====================
[21:49:39] =================== test_range_overlap  ====================
[21:49:39] [PASSED] 4
[21:49:39] [PASSED] 8
[21:49:39] [PASSED] 32
[21:49:39] [PASSED] 256
[21:49:39] =============== [PASSED] test_range_overlap ================
[21:49:39] =================== test_range_compact  ====================
[21:49:39] [PASSED] 4
[21:49:39] [PASSED] 8
[21:49:39] [PASSED] 32
[21:49:39] [PASSED] 256
[21:49:39] =============== [PASSED] test_range_compact ================
[21:49:39] ==================== test_range_spare  =====================
[21:49:39] [PASSED] 4
[21:49:39] [PASSED] 8
[21:49:39] [PASSED] 32
[21:49:39] [PASSED] 256
[21:49:39] ================ [PASSED] test_range_spare =================
[21:49:39] ===================== [PASSED] guc_dbm =====================
[21:49:39] =================== guc_idm (6 subtests) ===================
[21:49:39] [PASSED] bad_init
[21:49:39] [PASSED] no_init
[21:49:39] [PASSED] init_fini
[21:49:39] [PASSED] check_used
[21:49:39] [PASSED] check_quota
[21:49:39] [PASSED] check_all
[21:49:39] ===================== [PASSED] guc_idm =====================
[21:49:39] ================== no_relay (3 subtests) ===================
[21:49:39] [PASSED] xe_drops_guc2pf_if_not_ready
[21:49:39] [PASSED] xe_drops_guc2vf_if_not_ready
[21:49:39] [PASSED] xe_rejects_send_if_not_ready
[21:49:39] ==================== [PASSED] no_relay =====================
[21:49:39] ================== pf_relay (14 subtests) ==================
[21:49:39] [PASSED] pf_rejects_guc2pf_too_short
[21:49:39] [PASSED] pf_rejects_guc2pf_too_long
[21:49:39] [PASSED] pf_rejects_guc2pf_no_payload
[21:49:39] [PASSED] pf_fails_no_payload
[21:49:39] [PASSED] pf_fails_bad_origin
[21:49:39] [PASSED] pf_fails_bad_type
[21:49:39] [PASSED] pf_txn_reports_error
[21:49:39] [PASSED] pf_txn_sends_pf2guc
[21:49:39] [PASSED] pf_sends_pf2guc
[21:49:39] [SKIPPED] pf_loopback_nop
[21:49:39] [SKIPPED] pf_loopback_echo
[21:49:39] [SKIPPED] pf_loopback_fail
[21:49:39] [SKIPPED] pf_loopback_busy
[21:49:39] [SKIPPED] pf_loopback_retry
[21:49:39] ==================== [PASSED] pf_relay =====================
[21:49:39] ================== vf_relay (3 subtests) ===================
[21:49:39] [PASSED] vf_rejects_guc2vf_too_short
[21:49:39] [PASSED] vf_rejects_guc2vf_too_long
[21:49:39] [PASSED] vf_rejects_guc2vf_no_payload
[21:49:39] ==================== [PASSED] vf_relay =====================
[21:49:39] ================ pf_gt_config (9 subtests) =================
[21:49:39] [PASSED] fair_contexts_1vf
[21:49:39] [PASSED] fair_doorbells_1vf
[21:49:39] [PASSED] fair_ggtt_1vf
[21:49:39] ====================== fair_vram_1vf  ======================
[21:49:39] [PASSED] 3.50 GiB
[21:49:39] [PASSED] 11.5 GiB
[21:49:39] [PASSED] 15.5 GiB
[21:49:39] [PASSED] 31.5 GiB
[21:49:39] [PASSED] 63.5 GiB
[21:49:39] [PASSED] 1.91 GiB
[21:49:39] ================== [PASSED] fair_vram_1vf ==================
[21:49:39] ================ fair_vram_1vf_admin_only  =================
[21:49:39] [PASSED] 3.50 GiB
[21:49:39] [PASSED] 11.5 GiB
[21:49:39] [PASSED] 15.5 GiB
[21:49:39] [PASSED] 31.5 GiB
[21:49:39] [PASSED] 63.5 GiB
[21:49:39] [PASSED] 1.91 GiB
[21:49:39] ============ [PASSED] fair_vram_1vf_admin_only =============
[21:49:39] ====================== fair_contexts  ======================
[21:49:39] [PASSED] 1 VF
[21:49:39] [PASSED] 2 VFs
[21:49:39] [PASSED] 3 VFs
[21:49:39] [PASSED] 4 VFs
[21:49:39] [PASSED] 5 VFs
[21:49:39] [PASSED] 6 VFs
[21:49:39] [PASSED] 7 VFs
[21:49:39] [PASSED] 8 VFs
[21:49:39] [PASSED] 9 VFs
[21:49:39] [PASSED] 10 VFs
[21:49:39] [PASSED] 11 VFs
[21:49:39] [PASSED] 12 VFs
[21:49:39] [PASSED] 13 VFs
[21:49:39] [PASSED] 14 VFs
[21:49:39] [PASSED] 15 VFs
[21:49:39] [PASSED] 16 VFs
[21:49:39] [PASSED] 17 VFs
[21:49:39] [PASSED] 18 VFs
[21:49:39] [PASSED] 19 VFs
[21:49:39] [PASSED] 20 VFs
[21:49:39] [PASSED] 21 VFs
[21:49:39] [PASSED] 22 VFs
[21:49:39] [PASSED] 23 VFs
[21:49:39] [PASSED] 24 VFs
[21:49:39] [PASSED] 25 VFs
[21:49:39] [PASSED] 26 VFs
[21:49:39] [PASSED] 27 VFs
[21:49:39] [PASSED] 28 VFs
[21:49:39] [PASSED] 29 VFs
[21:49:39] [PASSED] 30 VFs
[21:49:39] [PASSED] 31 VFs
[21:49:39] [PASSED] 32 VFs
[21:49:39] [PASSED] 33 VFs
[21:49:39] [PASSED] 34 VFs
[21:49:39] [PASSED] 35 VFs
[21:49:39] [PASSED] 36 VFs
[21:49:39] [PASSED] 37 VFs
[21:49:39] [PASSED] 38 VFs
[21:49:39] [PASSED] 39 VFs
[21:49:39] [PASSED] 40 VFs
[21:49:39] [PASSED] 41 VFs
[21:49:39] [PASSED] 42 VFs
[21:49:39] [PASSED] 43 VFs
[21:49:39] [PASSED] 44 VFs
[21:49:39] [PASSED] 45 VFs
[21:49:39] [PASSED] 46 VFs
[21:49:39] [PASSED] 47 VFs
[21:49:39] [PASSED] 48 VFs
[21:49:39] [PASSED] 49 VFs
[21:49:39] [PASSED] 50 VFs
[21:49:39] [PASSED] 51 VFs
[21:49:39] [PASSED] 52 VFs
[21:49:39] [PASSED] 53 VFs
[21:49:39] [PASSED] 54 VFs
[21:49:39] [PASSED] 55 VFs
[21:49:39] [PASSED] 56 VFs
[21:49:39] [PASSED] 57 VFs
[21:49:39] [PASSED] 58 VFs
[21:49:39] [PASSED] 59 VFs
[21:49:39] [PASSED] 60 VFs
[21:49:39] [PASSED] 61 VFs
[21:49:39] [PASSED] 62 VFs
[21:49:39] [PASSED] 63 VFs
[21:49:39] ================== [PASSED] fair_contexts ==================
[21:49:39] ===================== fair_doorbells  ======================
[21:49:39] [PASSED] 1 VF
[21:49:39] [PASSED] 2 VFs
[21:49:39] [PASSED] 3 VFs
[21:49:39] [PASSED] 4 VFs
[21:49:39] [PASSED] 5 VFs
[21:49:39] [PASSED] 6 VFs
[21:49:39] [PASSED] 7 VFs
[21:49:39] [PASSED] 8 VFs
[21:49:39] [PASSED] 9 VFs
[21:49:39] [PASSED] 10 VFs
[21:49:39] [PASSED] 11 VFs
[21:49:39] [PASSED] 12 VFs
[21:49:39] [PASSED] 13 VFs
[21:49:39] [PASSED] 14 VFs
[21:49:39] [PASSED] 15 VFs
[21:49:39] [PASSED] 16 VFs
[21:49:39] [PASSED] 17 VFs
[21:49:39] [PASSED] 18 VFs
[21:49:39] [PASSED] 19 VFs
[21:49:39] [PASSED] 20 VFs
[21:49:39] [PASSED] 21 VFs
[21:49:39] [PASSED] 22 VFs
[21:49:39] [PASSED] 23 VFs
[21:49:39] [PASSED] 24 VFs
[21:49:39] [PASSED] 25 VFs
[21:49:39] [PASSED] 26 VFs
[21:49:39] [PASSED] 27 VFs
[21:49:39] [PASSED] 28 VFs
[21:49:39] [PASSED] 29 VFs
[21:49:39] [PASSED] 30 VFs
[21:49:39] [PASSED] 31 VFs
[21:49:39] [PASSED] 32 VFs
[21:49:39] [PASSED] 33 VFs
[21:49:39] [PASSED] 34 VFs
[21:49:39] [PASSED] 35 VFs
[21:49:39] [PASSED] 36 VFs
[21:49:39] [PASSED] 37 VFs
[21:49:39] [PASSED] 38 VFs
[21:49:39] [PASSED] 39 VFs
[21:49:39] [PASSED] 40 VFs
[21:49:39] [PASSED] 41 VFs
[21:49:39] [PASSED] 42 VFs
[21:49:39] [PASSED] 43 VFs
[21:49:39] [PASSED] 44 VFs
[21:49:39] [PASSED] 45 VFs
[21:49:39] [PASSED] 46 VFs
[21:49:39] [PASSED] 47 VFs
[21:49:39] [PASSED] 48 VFs
[21:49:39] [PASSED] 49 VFs
[21:49:39] [PASSED] 50 VFs
[21:49:39] [PASSED] 51 VFs
[21:49:39] [PASSED] 52 VFs
[21:49:39] [PASSED] 53 VFs
[21:49:39] [PASSED] 54 VFs
[21:49:39] [PASSED] 55 VFs
[21:49:39] [PASSED] 56 VFs
[21:49:39] [PASSED] 57 VFs
[21:49:39] [PASSED] 58 VFs
[21:49:39] [PASSED] 59 VFs
[21:49:39] [PASSED] 60 VFs
[21:49:39] [PASSED] 61 VFs
[21:49:39] [PASSED] 62 VFs
[21:49:39] [PASSED] 63 VFs
[21:49:39] ================= [PASSED] fair_doorbells ==================
[21:49:39] ======================== fair_ggtt  ========================
[21:49:39] [PASSED] 1 VF
[21:49:39] [PASSED] 2 VFs
[21:49:39] [PASSED] 3 VFs
[21:49:39] [PASSED] 4 VFs
[21:49:39] [PASSED] 5 VFs
[21:49:39] [PASSED] 6 VFs
[21:49:39] [PASSED] 7 VFs
[21:49:39] [PASSED] 8 VFs
[21:49:39] [PASSED] 9 VFs
[21:49:39] [PASSED] 10 VFs
[21:49:39] [PASSED] 11 VFs
[21:49:39] [PASSED] 12 VFs
[21:49:39] [PASSED] 13 VFs
[21:49:39] [PASSED] 14 VFs
[21:49:39] [PASSED] 15 VFs
[21:49:39] [PASSED] 16 VFs
[21:49:39] [PASSED] 17 VFs
[21:49:39] [PASSED] 18 VFs
[21:49:39] [PASSED] 19 VFs
[21:49:39] [PASSED] 20 VFs
[21:49:39] [PASSED] 21 VFs
[21:49:39] [PASSED] 22 VFs
[21:49:39] [PASSED] 23 VFs
[21:49:39] [PASSED] 24 VFs
[21:49:39] [PASSED] 25 VFs
[21:49:39] [PASSED] 26 VFs
[21:49:39] [PASSED] 27 VFs
[21:49:39] [PASSED] 28 VFs
[21:49:39] [PASSED] 29 VFs
[21:49:39] [PASSED] 30 VFs
[21:49:39] [PASSED] 31 VFs
[21:49:39] [PASSED] 32 VFs
[21:49:39] [PASSED] 33 VFs
[21:49:39] [PASSED] 34 VFs
[21:49:39] [PASSED] 35 VFs
[21:49:39] [PASSED] 36 VFs
[21:49:39] [PASSED] 37 VFs
[21:49:40] [PASSED] 38 VFs
[21:49:40] [PASSED] 39 VFs
[21:49:40] [PASSED] 40 VFs
[21:49:40] [PASSED] 41 VFs
[21:49:40] [PASSED] 42 VFs
[21:49:40] [PASSED] 43 VFs
[21:49:40] [PASSED] 44 VFs
[21:49:40] [PASSED] 45 VFs
[21:49:40] [PASSED] 46 VFs
[21:49:40] [PASSED] 47 VFs
[21:49:40] [PASSED] 48 VFs
[21:49:40] [PASSED] 49 VFs
[21:49:40] [PASSED] 50 VFs
[21:49:40] [PASSED] 51 VFs
[21:49:40] [PASSED] 52 VFs
[21:49:40] [PASSED] 53 VFs
[21:49:40] [PASSED] 54 VFs
[21:49:40] [PASSED] 55 VFs
[21:49:40] [PASSED] 56 VFs
[21:49:40] [PASSED] 57 VFs
[21:49:40] [PASSED] 58 VFs
[21:49:40] [PASSED] 59 VFs
[21:49:40] [PASSED] 60 VFs
[21:49:40] [PASSED] 61 VFs
[21:49:40] [PASSED] 62 VFs
[21:49:40] [PASSED] 63 VFs
[21:49:40] ==================== [PASSED] fair_ggtt ====================
[21:49:40] ======================== fair_vram  ========================
[21:49:40] [PASSED] 1 VF
[21:49:40] [PASSED] 2 VFs
[21:49:40] [PASSED] 3 VFs
[21:49:40] [PASSED] 4 VFs
[21:49:40] [PASSED] 5 VFs
[21:49:40] [PASSED] 6 VFs
[21:49:40] [PASSED] 7 VFs
[21:49:40] [PASSED] 8 VFs
[21:49:40] [PASSED] 9 VFs
[21:49:40] [PASSED] 10 VFs
[21:49:40] [PASSED] 11 VFs
[21:49:40] [PASSED] 12 VFs
[21:49:40] [PASSED] 13 VFs
[21:49:40] [PASSED] 14 VFs
[21:49:40] [PASSED] 15 VFs
[21:49:40] [PASSED] 16 VFs
[21:49:40] [PASSED] 17 VFs
[21:49:40] [PASSED] 18 VFs
[21:49:40] [PASSED] 19 VFs
[21:49:40] [PASSED] 20 VFs
[21:49:40] [PASSED] 21 VFs
[21:49:40] [PASSED] 22 VFs
[21:49:40] [PASSED] 23 VFs
[21:49:40] [PASSED] 24 VFs
[21:49:40] [PASSED] 25 VFs
[21:49:40] [PASSED] 26 VFs
[21:49:40] [PASSED] 27 VFs
[21:49:40] [PASSED] 28 VFs
[21:49:40] [PASSED] 29 VFs
[21:49:40] [PASSED] 30 VFs
[21:49:40] [PASSED] 31 VFs
[21:49:40] [PASSED] 32 VFs
[21:49:40] [PASSED] 33 VFs
[21:49:40] [PASSED] 34 VFs
[21:49:40] [PASSED] 35 VFs
[21:49:40] [PASSED] 36 VFs
[21:49:40] [PASSED] 37 VFs
[21:49:40] [PASSED] 38 VFs
[21:49:40] [PASSED] 39 VFs
[21:49:40] [PASSED] 40 VFs
[21:49:40] [PASSED] 41 VFs
[21:49:40] [PASSED] 42 VFs
[21:49:40] [PASSED] 43 VFs
[21:49:40] [PASSED] 44 VFs
[21:49:40] [PASSED] 45 VFs
[21:49:40] [PASSED] 46 VFs
[21:49:40] [PASSED] 47 VFs
[21:49:40] [PASSED] 48 VFs
[21:49:40] [PASSED] 49 VFs
[21:49:40] [PASSED] 50 VFs
[21:49:40] [PASSED] 51 VFs
[21:49:40] [PASSED] 52 VFs
[21:49:40] [PASSED] 53 VFs
[21:49:40] [PASSED] 54 VFs
[21:49:40] [PASSED] 55 VFs
[21:49:40] [PASSED] 56 VFs
[21:49:40] [PASSED] 57 VFs
[21:49:40] [PASSED] 58 VFs
[21:49:40] [PASSED] 59 VFs
[21:49:40] [PASSED] 60 VFs
[21:49:40] [PASSED] 61 VFs
[21:49:40] [PASSED] 62 VFs
[21:49:40] [PASSED] 63 VFs
[21:49:40] ==================== [PASSED] fair_vram ====================
[21:49:40] ================== [PASSED] pf_gt_config ===================
[21:49:40] ===================== lmtt (1 subtest) =====================
[21:49:40] ======================== test_ops  =========================
[21:49:40] [PASSED] 2-level
[21:49:40] [PASSED] multi-level
[21:49:40] ==================== [PASSED] test_ops =====================
[21:49:40] ====================== [PASSED] lmtt =======================
[21:49:40] ================= pf_service (11 subtests) =================
[21:49:40] [PASSED] pf_negotiate_any
[21:49:40] [PASSED] pf_negotiate_base_match
[21:49:40] [PASSED] pf_negotiate_base_newer
[21:49:40] [PASSED] pf_negotiate_base_next
[21:49:40] [SKIPPED] pf_negotiate_base_older
[21:49:40] [PASSED] pf_negotiate_base_prev
[21:49:40] [PASSED] pf_negotiate_latest_match
[21:49:40] [PASSED] pf_negotiate_latest_newer
[21:49:40] [PASSED] pf_negotiate_latest_next
[21:49:40] [SKIPPED] pf_negotiate_latest_older
[21:49:40] [SKIPPED] pf_negotiate_latest_prev
[21:49:40] =================== [PASSED] pf_service ====================
[21:49:40] ================= xe_guc_g2g (2 subtests) ==================
[21:49:40] ============== xe_live_guc_g2g_kunit_default  ==============
[21:49:40] ========= [SKIPPED] xe_live_guc_g2g_kunit_default ==========
[21:49:40] ============== xe_live_guc_g2g_kunit_allmem  ===============
[21:49:40] ========== [SKIPPED] xe_live_guc_g2g_kunit_allmem ==========
[21:49:40] =================== [SKIPPED] xe_guc_g2g ===================
[21:49:40] =================== xe_mocs (2 subtests) ===================
[21:49:40] ================ xe_live_mocs_kernel_kunit  ================
[21:49:40] =========== [SKIPPED] xe_live_mocs_kernel_kunit ============
[21:49:40] ================ xe_live_mocs_reset_kunit  =================
[21:49:40] ============ [SKIPPED] xe_live_mocs_reset_kunit ============
[21:49:40] ==================== [SKIPPED] xe_mocs =====================
[21:49:40] ================= xe_migrate (2 subtests) ==================
[21:49:40] ================= xe_migrate_sanity_kunit  =================
[21:49:40] ============ [SKIPPED] xe_migrate_sanity_kunit =============
[21:49:40] ================== xe_validate_ccs_kunit  ==================
[21:49:40] ============= [SKIPPED] xe_validate_ccs_kunit ==============
[21:49:40] =================== [SKIPPED] xe_migrate ===================
[21:49:40] ================== xe_dma_buf (1 subtest) ==================
[21:49:40] ==================== xe_dma_buf_kunit  =====================
[21:49:40] ================ [SKIPPED] xe_dma_buf_kunit ================
[21:49:40] =================== [SKIPPED] xe_dma_buf ===================
[21:49:40] ================= xe_bo_shrink (1 subtest) =================
[21:49:40] =================== xe_bo_shrink_kunit  ====================
[21:49:40] =============== [SKIPPED] xe_bo_shrink_kunit ===============
[21:49:40] ================== [SKIPPED] xe_bo_shrink ==================
[21:49:40] ==================== xe_bo (2 subtests) ====================
[21:49:40] ================== xe_ccs_migrate_kunit  ===================
[21:49:40] ============== [SKIPPED] xe_ccs_migrate_kunit ==============
[21:49:40] ==================== xe_bo_evict_kunit  ====================
[21:49:40] =============== [SKIPPED] xe_bo_evict_kunit ================
[21:49:40] ===================== [SKIPPED] xe_bo ======================
[21:49:40] ==================== args (13 subtests) ====================
[21:49:40] [PASSED] count_args_test
[21:49:40] [PASSED] call_args_example
[21:49:40] [PASSED] call_args_test
[21:49:40] [PASSED] drop_first_arg_example
[21:49:40] [PASSED] drop_first_arg_test
[21:49:40] [PASSED] first_arg_example
[21:49:40] [PASSED] first_arg_test
[21:49:40] [PASSED] last_arg_example
[21:49:40] [PASSED] last_arg_test
[21:49:40] [PASSED] pick_arg_example
[21:49:40] [PASSED] if_args_example
[21:49:40] [PASSED] if_args_test
[21:49:40] [PASSED] sep_comma_example
[21:49:40] ====================== [PASSED] args =======================
[21:49:40] =================== xe_pci (3 subtests) ====================
[21:49:40] ==================== check_graphics_ip  ====================
[21:49:40] [PASSED] 12.00 Xe_LP
[21:49:40] [PASSED] 12.10 Xe_LP+
[21:49:40] [PASSED] 12.55 Xe_HPG
[21:49:40] [PASSED] 12.60 Xe_HPC
[21:49:40] [PASSED] 12.70 Xe_LPG
[21:49:40] [PASSED] 12.71 Xe_LPG
[21:49:40] [PASSED] 12.74 Xe_LPG+
[21:49:40] [PASSED] 20.01 Xe2_HPG
[21:49:40] [PASSED] 20.02 Xe2_HPG
[21:49:40] [PASSED] 20.04 Xe2_LPG
[21:49:40] [PASSED] 30.00 Xe3_LPG
[21:49:40] [PASSED] 30.01 Xe3_LPG
[21:49:40] [PASSED] 30.03 Xe3_LPG
[21:49:40] [PASSED] 30.04 Xe3_LPG
[21:49:40] [PASSED] 30.05 Xe3_LPG
[21:49:40] [PASSED] 35.10 Xe3p_LPG
[21:49:40] [PASSED] 35.11 Xe3p_XPC
[21:49:40] ================ [PASSED] check_graphics_ip ================
[21:49:40] ===================== check_media_ip  ======================
[21:49:40] [PASSED] 12.00 Xe_M
[21:49:40] [PASSED] 12.55 Xe_HPM
[21:49:40] [PASSED] 13.00 Xe_LPM+
[21:49:40] [PASSED] 13.01 Xe2_HPM
[21:49:40] [PASSED] 20.00 Xe2_LPM
[21:49:40] [PASSED] 30.00 Xe3_LPM
[21:49:40] [PASSED] 30.02 Xe3_LPM
[21:49:40] [PASSED] 35.00 Xe3p_LPM
[21:49:40] [PASSED] 35.03 Xe3p_HPM
[21:49:40] ================= [PASSED] check_media_ip ==================
[21:49:40] =================== check_platform_desc  ===================
[21:49:40] [PASSED] 0x9A60 (TIGERLAKE)
[21:49:40] [PASSED] 0x9A68 (TIGERLAKE)
[21:49:40] [PASSED] 0x9A70 (TIGERLAKE)
[21:49:40] [PASSED] 0x9A40 (TIGERLAKE)
[21:49:40] [PASSED] 0x9A49 (TIGERLAKE)
[21:49:40] [PASSED] 0x9A59 (TIGERLAKE)
[21:49:40] [PASSED] 0x9A78 (TIGERLAKE)
[21:49:40] [PASSED] 0x9AC0 (TIGERLAKE)
[21:49:40] [PASSED] 0x9AC9 (TIGERLAKE)
[21:49:40] [PASSED] 0x9AD9 (TIGERLAKE)
[21:49:40] [PASSED] 0x9AF8 (TIGERLAKE)
[21:49:40] [PASSED] 0x4C80 (ROCKETLAKE)
[21:49:40] [PASSED] 0x4C8A (ROCKETLAKE)
[21:49:40] [PASSED] 0x4C8B (ROCKETLAKE)
[21:49:40] [PASSED] 0x4C8C (ROCKETLAKE)
[21:49:40] [PASSED] 0x4C90 (ROCKETLAKE)
[21:49:40] [PASSED] 0x4C9A (ROCKETLAKE)
[21:49:40] [PASSED] 0x4680 (ALDERLAKE_S)
[21:49:40] [PASSED] 0x4682 (ALDERLAKE_S)
[21:49:40] [PASSED] 0x4688 (ALDERLAKE_S)
[21:49:40] [PASSED] 0x468A (ALDERLAKE_S)
[21:49:40] [PASSED] 0x468B (ALDERLAKE_S)
[21:49:40] [PASSED] 0x4690 (ALDERLAKE_S)
[21:49:40] [PASSED] 0x4692 (ALDERLAKE_S)
[21:49:40] [PASSED] 0x4693 (ALDERLAKE_S)
[21:49:40] [PASSED] 0x46A0 (ALDERLAKE_P)
[21:49:40] [PASSED] 0x46A1 (ALDERLAKE_P)
[21:49:40] [PASSED] 0x46A2 (ALDERLAKE_P)
[21:49:40] [PASSED] 0x46A3 (ALDERLAKE_P)
[21:49:40] [PASSED] 0x46A6 (ALDERLAKE_P)
[21:49:40] [PASSED] 0x46A8 (ALDERLAKE_P)
[21:49:40] [PASSED] 0x46AA (ALDERLAKE_P)
[21:49:40] [PASSED] 0x462A (ALDERLAKE_P)
[21:49:40] [PASSED] 0x4626 (ALDERLAKE_P)
[21:49:40] [PASSED] 0x4628 (ALDERLAKE_P)
[21:49:40] [PASSED] 0x46B0 (ALDERLAKE_P)
[21:49:40] [PASSED] 0x46B1 (ALDERLAKE_P)
[21:49:40] [PASSED] 0x46B2 (ALDERLAKE_P)
[21:49:40] [PASSED] 0x46B3 (ALDERLAKE_P)
[21:49:40] [PASSED] 0x46C0 (ALDERLAKE_P)
[21:49:40] [PASSED] 0x46C1 (ALDERLAKE_P)
[21:49:40] [PASSED] 0x46C2 (ALDERLAKE_P)
[21:49:40] [PASSED] 0x46C3 (ALDERLAKE_P)
[21:49:40] [PASSED] 0x46D0 (ALDERLAKE_N)
[21:49:40] [PASSED] 0x46D1 (ALDERLAKE_N)
[21:49:40] [PASSED] 0x46D2 (ALDERLAKE_N)
[21:49:40] [PASSED] 0x46D3 (ALDERLAKE_N)
[21:49:40] [PASSED] 0x46D4 (ALDERLAKE_N)
[21:49:40] [PASSED] 0xA721 (ALDERLAKE_P)
[21:49:40] [PASSED] 0xA7A1 (ALDERLAKE_P)
[21:49:40] [PASSED] 0xA7A9 (ALDERLAKE_P)
[21:49:40] [PASSED] 0xA7AC (ALDERLAKE_P)
[21:49:40] [PASSED] 0xA7AD (ALDERLAKE_P)
[21:49:40] [PASSED] 0xA720 (ALDERLAKE_P)
[21:49:40] [PASSED] 0xA7A0 (ALDERLAKE_P)
[21:49:40] [PASSED] 0xA7A8 (ALDERLAKE_P)
[21:49:40] [PASSED] 0xA7AA (ALDERLAKE_P)
[21:49:40] [PASSED] 0xA7AB (ALDERLAKE_P)
[21:49:40] [PASSED] 0xA780 (ALDERLAKE_S)
[21:49:40] [PASSED] 0xA781 (ALDERLAKE_S)
[21:49:40] [PASSED] 0xA782 (ALDERLAKE_S)
[21:49:40] [PASSED] 0xA783 (ALDERLAKE_S)
[21:49:40] [PASSED] 0xA788 (ALDERLAKE_S)
[21:49:40] [PASSED] 0xA789 (ALDERLAKE_S)
[21:49:40] [PASSED] 0xA78A (ALDERLAKE_S)
[21:49:40] [PASSED] 0xA78B (ALDERLAKE_S)
[21:49:40] [PASSED] 0x4905 (DG1)
[21:49:40] [PASSED] 0x4906 (DG1)
[21:49:40] [PASSED] 0x4907 (DG1)
[21:49:40] [PASSED] 0x4908 (DG1)
[21:49:40] [PASSED] 0x4909 (DG1)
[21:49:40] [PASSED] 0x56C0 (DG2)
[21:49:40] [PASSED] 0x56C2 (DG2)
[21:49:40] [PASSED] 0x56C1 (DG2)
[21:49:40] [PASSED] 0x7D51 (METEORLAKE)
[21:49:40] [PASSED] 0x7DD1 (METEORLAKE)
[21:49:40] [PASSED] 0x7D41 (METEORLAKE)
[21:49:40] [PASSED] 0x7D67 (METEORLAKE)
[21:49:40] [PASSED] 0xB640 (METEORLAKE)
[21:49:40] [PASSED] 0x56A0 (DG2)
[21:49:40] [PASSED] 0x56A1 (DG2)
[21:49:40] [PASSED] 0x56A2 (DG2)
[21:49:40] [PASSED] 0x56BE (DG2)
[21:49:40] [PASSED] 0x56BF (DG2)
[21:49:40] [PASSED] 0x5690 (DG2)
[21:49:40] [PASSED] 0x5691 (DG2)
[21:49:40] [PASSED] 0x5692 (DG2)
[21:49:40] [PASSED] 0x56A5 (DG2)
[21:49:40] [PASSED] 0x56A6 (DG2)
[21:49:40] [PASSED] 0x56B0 (DG2)
[21:49:40] [PASSED] 0x56B1 (DG2)
[21:49:40] [PASSED] 0x56BA (DG2)
[21:49:40] [PASSED] 0x56BB (DG2)
[21:49:40] [PASSED] 0x56BC (DG2)
[21:49:40] [PASSED] 0x56BD (DG2)
[21:49:40] [PASSED] 0x5693 (DG2)
[21:49:40] [PASSED] 0x5694 (DG2)
[21:49:40] [PASSED] 0x5695 (DG2)
[21:49:40] [PASSED] 0x56A3 (DG2)
[21:49:40] [PASSED] 0x56A4 (DG2)
[21:49:40] [PASSED] 0x56B2 (DG2)
[21:49:40] [PASSED] 0x56B3 (DG2)
[21:49:40] [PASSED] 0x5696 (DG2)
[21:49:40] [PASSED] 0x5697 (DG2)
[21:49:40] [PASSED] 0xB69 (PVC)
[21:49:40] [PASSED] 0xB6E (PVC)
[21:49:40] [PASSED] 0xBD4 (PVC)
[21:49:40] [PASSED] 0xBD5 (PVC)
[21:49:40] [PASSED] 0xBD6 (PVC)
[21:49:40] [PASSED] 0xBD7 (PVC)
[21:49:40] [PASSED] 0xBD8 (PVC)
[21:49:40] [PASSED] 0xBD9 (PVC)
[21:49:40] [PASSED] 0xBDA (PVC)
[21:49:40] [PASSED] 0xBDB (PVC)
[21:49:40] [PASSED] 0xBE0 (PVC)
[21:49:40] [PASSED] 0xBE1 (PVC)
[21:49:40] [PASSED] 0xBE5 (PVC)
[21:49:40] [PASSED] 0x7D40 (METEORLAKE)
[21:49:40] [PASSED] 0x7D45 (METEORLAKE)
[21:49:40] [PASSED] 0x7D55 (METEORLAKE)
[21:49:40] [PASSED] 0x7D60 (METEORLAKE)
[21:49:40] [PASSED] 0x7DD5 (METEORLAKE)
[21:49:40] [PASSED] 0x6420 (LUNARLAKE)
[21:49:40] [PASSED] 0x64A0 (LUNARLAKE)
[21:49:40] [PASSED] 0x64B0 (LUNARLAKE)
[21:49:40] [PASSED] 0xE202 (BATTLEMAGE)
[21:49:40] [PASSED] 0xE209 (BATTLEMAGE)
[21:49:40] [PASSED] 0xE20B (BATTLEMAGE)
[21:49:40] [PASSED] 0xE20C (BATTLEMAGE)
[21:49:40] [PASSED] 0xE20D (BATTLEMAGE)
[21:49:40] [PASSED] 0xE210 (BATTLEMAGE)
[21:49:40] [PASSED] 0xE211 (BATTLEMAGE)
[21:49:40] [PASSED] 0xE212 (BATTLEMAGE)
[21:49:40] [PASSED] 0xE216 (BATTLEMAGE)
[21:49:40] [PASSED] 0xE220 (BATTLEMAGE)
[21:49:40] [PASSED] 0xE221 (BATTLEMAGE)
[21:49:40] [PASSED] 0xE222 (BATTLEMAGE)
[21:49:40] [PASSED] 0xE223 (BATTLEMAGE)
[21:49:40] [PASSED] 0xB080 (PANTHERLAKE)
[21:49:40] [PASSED] 0xB081 (PANTHERLAKE)
[21:49:40] [PASSED] 0xB082 (PANTHERLAKE)
[21:49:40] [PASSED] 0xB083 (PANTHERLAKE)
[21:49:40] [PASSED] 0xB084 (PANTHERLAKE)
[21:49:40] [PASSED] 0xB085 (PANTHERLAKE)
[21:49:40] [PASSED] 0xB086 (PANTHERLAKE)
[21:49:40] [PASSED] 0xB087 (PANTHERLAKE)
[21:49:40] [PASSED] 0xB08F (PANTHERLAKE)
[21:49:40] [PASSED] 0xB090 (PANTHERLAKE)
[21:49:40] [PASSED] 0xB0A0 (PANTHERLAKE)
[21:49:40] [PASSED] 0xB0B0 (PANTHERLAKE)
[21:49:40] [PASSED] 0xFD80 (PANTHERLAKE)
[21:49:40] [PASSED] 0xFD81 (PANTHERLAKE)
[21:49:40] [PASSED] 0xD740 (NOVALAKE_S)
[21:49:40] [PASSED] 0xD741 (NOVALAKE_S)
[21:49:40] [PASSED] 0xD742 (NOVALAKE_S)
[21:49:40] [PASSED] 0xD743 (NOVALAKE_S)
[21:49:40] [PASSED] 0xD744 (NOVALAKE_S)
[21:49:40] [PASSED] 0xD745 (NOVALAKE_S)
[21:49:40] [PASSED] 0x674C (CRESCENTISLAND)
[21:49:40] [PASSED] 0xD750 (NOVALAKE_P)
[21:49:40] [PASSED] 0xD751 (NOVALAKE_P)
[21:49:40] [PASSED] 0xD752 (NOVALAKE_P)
[21:49:40] [PASSED] 0xD753 (NOVALAKE_P)
[21:49:40] [PASSED] 0xD754 (NOVALAKE_P)
[21:49:40] [PASSED] 0xD755 (NOVALAKE_P)
[21:49:40] [PASSED] 0xD756 (NOVALAKE_P)
[21:49:40] [PASSED] 0xD757 (NOVALAKE_P)
[21:49:40] [PASSED] 0xD75F (NOVALAKE_P)
[21:49:40] =============== [PASSED] check_platform_desc ===============
[21:49:40] ===================== [PASSED] xe_pci ======================
[21:49:40] =================== xe_rtp (2 subtests) ====================
[21:49:40] =============== xe_rtp_process_to_sr_tests  ================
[21:49:40] [PASSED] coalesce-same-reg
[21:49:40] [PASSED] no-match-no-add
[21:49:40] [PASSED] match-or
[21:49:40] [PASSED] match-or-xfail
[21:49:40] [PASSED] no-match-no-add-multiple-rules
[21:49:40] [PASSED] two-regs-two-entries
[21:49:40] [PASSED] clr-one-set-other
[21:49:40] [PASSED] set-field
[21:49:40] [PASSED] conflict-duplicate
stty: 'standard input': Inappropriate ioctl for device
[21:49:40] [PASSED] conflict-not-disjoint
[21:49:40] [PASSED] conflict-reg-type
[21:49:40] =========== [PASSED] xe_rtp_process_to_sr_tests ============
[21:49:40] ================== xe_rtp_process_tests  ===================
[21:49:40] [PASSED] active1
[21:49:40] [PASSED] active2
[21:49:40] [PASSED] active-inactive
[21:49:40] [PASSED] inactive-active
[21:49:40] [PASSED] inactive-1st_or_active-inactive
[21:49:40] [PASSED] inactive-2nd_or_active-inactive
[21:49:40] [PASSED] inactive-last_or_active-inactive
[21:49:40] [PASSED] inactive-no_or_active-inactive
[21:49:40] ============== [PASSED] xe_rtp_process_tests ===============
[21:49:40] ===================== [PASSED] xe_rtp ======================
[21:49:40] ==================== xe_wa (1 subtest) =====================
[21:49:40] ======================== xe_wa_gt  =========================
[21:49:40] [PASSED] TIGERLAKE B0
[21:49:40] [PASSED] DG1 A0
[21:49:40] [PASSED] DG1 B0
[21:49:40] [PASSED] ALDERLAKE_S A0
[21:49:40] [PASSED] ALDERLAKE_S B0
[21:49:40] [PASSED] ALDERLAKE_S C0
[21:49:40] [PASSED] ALDERLAKE_S D0
[21:49:40] [PASSED] ALDERLAKE_P A0
[21:49:40] [PASSED] ALDERLAKE_P B0
[21:49:40] [PASSED] ALDERLAKE_P C0
[21:49:40] [PASSED] ALDERLAKE_S RPLS D0
[21:49:40] [PASSED] ALDERLAKE_P RPLU E0
[21:49:40] [PASSED] DG2 G10 C0
[21:49:40] [PASSED] DG2 G11 B1
[21:49:40] [PASSED] DG2 G12 A1
[21:49:40] [PASSED] METEORLAKE 12.70(Xe_LPG) A0 13.00(Xe_LPM+) A0
[21:49:40] [PASSED] METEORLAKE 12.71(Xe_LPG) A0 13.00(Xe_LPM+) A0
[21:49:40] [PASSED] METEORLAKE 12.74(Xe_LPG+) A0 13.00(Xe_LPM+) A0
[21:49:40] [PASSED] LUNARLAKE 20.04(Xe2_LPG) A0 20.00(Xe2_LPM) A0
[21:49:40] [PASSED] LUNARLAKE 20.04(Xe2_LPG) B0 20.00(Xe2_LPM) A0
[21:49:40] [PASSED] BATTLEMAGE 20.01(Xe2_HPG) A0 13.01(Xe2_HPM) A1
[21:49:40] [PASSED] PANTHERLAKE 30.00(Xe3_LPG) A0 30.00(Xe3_LPM) A0
[21:49:40] ==================== [PASSED] xe_wa_gt =====================
[21:49:40] ====================== [PASSED] xe_wa ======================
[21:49:40] ============================================================
[21:49:40] Testing complete. Ran 597 tests: passed: 579, skipped: 18
[21:49:40] Elapsed time: 43.326s total, 4.310s configuring, 38.348s building, 0.612s running

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

+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/ttm/tests/.kunitconfig
stty: 'standard input': Inappropriate ioctl for device
[21:50:10] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[21:50:12] 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=25
[21:50:21] Starting KUnit Kernel (1/1)...
[21:50:21] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[21:50:21] ================= ttm_device (5 subtests) ==================
[21:50:21] [PASSED] ttm_device_init_basic
[21:50:21] [PASSED] ttm_device_init_multiple
[21:50:21] [PASSED] ttm_device_fini_basic
[21:50:21] [PASSED] ttm_device_init_no_vma_man
[21:50:21] ================== ttm_device_init_pools  ==================
[21:50:21] [PASSED] No DMA allocations, no DMA32 required
[21:50:21] # ttm_device_init_pools: ASSERTION FAILED at drivers/gpu/drm/ttm/tests/ttm_device_test.c:178
[21:50:21] Expected !list_lru_count(&pt.pages) to be false, but is true
[21:50:21] [FAILED] DMA allocations, DMA32 required
[21:50:21] [PASSED] No DMA allocations, DMA32 required
[21:50:21]     # ttm_device_init_pools: ASSERTION FAILED at drivers/gpu/drm/ttm/tests/ttm_device_test.c:178
[21:50:21]     Expected !list_lru_count(&pt.pages) to be false, but is true
[21:50:21] ------------[ cut here ]------------
[21:50:21] WARNING: lib/refcount.c:28 at devres_release_all+0xaa/0x100, CPU#0: kunit_try_catch/46
[21:50:21] refcount_t: underflow; use-after-free.
[21:50:21] CPU: 0 UID: 0 PID: 46 Comm: kunit_try_catch Tainted: G        W        N  7.0.0-rc7-g09c060bfdd05 #3 VOLUNTARY
[21:50:21] Tainted: [W]=WARN, [N]=TEST
[21:50:21] Stack:
[21:50:21]  6044ed8b 00000000 00000000 00000001
[21:50:21]  ffffff00 6044ed8b 6032367a 00000009
[21:50:21]  0000001c 60043e88 6002381c d80cbd40
[21:50:21] Call Trace:
[21:50:21]  [<6032367a>] ? devres_release_all+0xaa/0x100
[21:50:21]  [<60043e88>] ? dump_stack_lvl+0x5e/0x7a
[21:50:21]  [<6002381c>] ? _printk+0x0/0x65
[21:50:21]  [<6001f09f>] ? __warn.cold+0x79/0x11f
[21:50:21]  [<6001f1d9>] ? warn_slowpath_fmt+0x94/0xa1
[21:50:21]  [<601ef1a0>] ? kernfs_free_rcu+0x0/0x70
[21:50:21]  [<60052e36>] ? um_set_signals+0x36/0x60
[21:50:21]  [<600c5a42>] ? call_rcu+0x52/0x90
[21:50:21]  [<6001f145>] ? warn_slowpath_fmt+0x0/0xa1
[21:50:21]  [<60147f50>] ? kfree+0x0/0x250
[21:50:21]  [<6032367a>] ? devres_release_all+0xaa/0x100
[21:50:21]  [<60396bb0>] ? mutex_unlock+0x0/0x30
[21:50:21]  [<6031c3c0>] ? bus_notify+0x0/0x60
[21:50:21]  [<60396bb0>] ? mutex_unlock+0x0/0x30
[21:50:21]  [<60398620>] ? mutex_lock+0x0/0x40
[21:50:21]  [<6031ca24>] ? device_unbind_cleanup+0x14/0xb0
[21:50:21]  [<6031e1f6>] ? device_release_driver_internal+0x256/0x2b0
[21:50:21]  [<60372210>] ? kobject_put+0x0/0x150
[21:50:21]  [<601f3d40>] ? sysfs_remove_file_ns+0x0/0x20
[21:50:21]  [<6031c00f>] ? bus_remove_device+0x10f/0x1a0
[21:50:21]  [<601f3d40>] ? sysfs_remove_file_ns+0x0/0x20
[21:50:21]  [<601f17b8>] ? kernfs_remove_by_name_ns+0x98/0x130
[21:50:21]  [<60315a8c>] ? device_del+0x1bc/0x600
[21:50:21]  [<60052e00>] ? um_set_signals+0x0/0x60
[21:50:21]  [<6025b2a0>] ? device_unregister_wrapper+0x0/0x10
[21:50:21]  [<60052e00>] ? um_set_signals+0x0/0x60
[21:50:21]  [<60315ee4>] ? device_unregister+0x14/0x40
[21:50:21]  [<60257e66>] ? kunit_release_action+0xf6/0x170
[21:50:21]  [<60257d70>] ? kunit_release_action+0x0/0x170
[21:50:21]  [<6025b2e2>] ? kunit_device_unregister+0x32/0x80
[21:50:21]  [<60259890>] ? kunit_generic_run_threadfn_adapter+0x0/0x30
[21:50:21]  [<6025748e>] ? kunit_try_run_case_cleanup+0x2e/0x40
[21:50:21]  [<602598a6>] ? kunit_generic_run_threadfn_adapter+0x16/0x30
[21:50:21]  [<60081e36>] ? kthread+0xe6/0x150
[21:50:21]  [<60046435>] ? new_thread_handler+0x45/0x60
[21:50:21] ---[ end trace 0000000000000000 ]---
[21:50:21] [FAILED] DMA allocations, no DMA32 required
[21:50:21] # ttm_device_init_pools: pass:2 fail:2 skip:0 total:4
[21:50:21] ============== [FAILED] ttm_device_init_pools ==============
[21:50:21]     # module: ttm_device_test
[21:50:21] # ttm_device: pass:4 fail:1 skip:0 total:5
[21:50:21] # Totals: pass:6 fail:2 skip:0 total:8
[21:50:21] =================== [FAILED] ttm_device ====================
[21:50:21] ================== ttm_pool (8 subtests) ===================
[21:50:21] ================== ttm_pool_alloc_basic  ===================
[21:50:21] [PASSED] One page
[21:50:21] [PASSED] More than one page
[21:50:21] [PASSED] Above the allocation limit
[21:50:21] [PASSED] One page, with coherent DMA mappings enabled
[21:50:21] [PASSED] Above the allocation limit, with coherent DMA mappings enabled
[21:50:21] ============== [PASSED] ttm_pool_alloc_basic ===============
[21:50:21] ============== ttm_pool_alloc_basic_dma_addr  ==============
[21:50:21] [PASSED] One page
[21:50:21] [PASSED] More than one page
[21:50:21] [PASSED] Above the allocation limit
[21:50:21] [PASSED] One page, with coherent DMA mappings enabled
[21:50:21] [PASSED] Above the allocation limit, with coherent DMA mappings enabled
[21:50:21] ========== [PASSED] ttm_pool_alloc_basic_dma_addr ==========
[21:50:21] [PASSED] ttm_pool_alloc_order_caching_match
[21:50:21] [PASSED] ttm_pool_alloc_caching_mismatch
[21:50:21] [PASSED] ttm_pool_alloc_order_mismatch
[21:50:21] [PASSED] ttm_pool_free_dma_alloc
[21:50:22] [ERROR] Test: ttm_pool: missing expected subtest!
[21:50:22] 
[21:50:22] Pid: 75, comm: kunit_try_catch Tainted: G        W        N  7.0.0-rc7-g09c060bfdd05
[21:50:22] RIP: 0033:list_lru_count_node+0xe/0x20
[21:50:22] RSP: 00000000d80cbed8  EFLAGS: 00010246
[21:50:22] RAX: 0000000000000000 RBX: 00000000d8003c90 RCX: 000000009824c7d8
[21:50:22] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000098086880
[21:50:22] RBP: 0000000098086800 R08: 00000000d6a4fc28 R09: 0000000098050f80
[21:50:22] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000098050f80
[21:50:22] R13: 0000000060440770 R14: 000000006010eb50 R15: 0000000098086880
[21:50:22] Kernel panic - not syncing: Segfault with no mm
[21:50:22] [CRASHED] 
[21:50:22] [ERROR] Test: ttm_pool: missing expected subtest!
[21:50:22] [CRASHED] 
[21:50:22] [ERROR] Test: ttm_pool: missing subtest result line!
[21:50:22] # module: ttm_pool_test
[21:50:22] ==================== [CRASHED] ttm_pool ====================
[21:50:22] [ERROR] Test: main: missing expected subtest!
[21:50:22] [CRASHED] 
[21:50:22] [ERROR] Test: main: missing expected subtest!
[21:50:22] [CRASHED] 
[21:50:22] [ERROR] Test: main: missing expected subtest!
[21:50:22] [CRASHED] 
[21:50:22] [ERROR] Test: main: missing expected subtest!
[21:50:22] [CRASHED] 
[21:50:22] ============================================================
[21:50:22] Testing complete. Ran 28 tests: passed: 20, failed: 2, crashed: 6, errors: 7
The kernel seems to have crashed; you can decode the stack traces with:
$ scripts/decode_stacktrace.sh .kunit/vmlinux .kunit < .kunit/test.log | tee .kunit/decoded.log | /kernel/tools/testing/kunit/kunit.py parse
[21:50:22] Elapsed time: 11.161s total, 1.643s configuring, 9.200s building, 0.317s running

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



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 1/4] drm/xe/bo: Fix bo leak on unaligned size validation in xe_bo_init_locked()
  2026-04-07 20:15 ` [PATCH 1/4] drm/xe/bo: Fix bo leak on unaligned size validation in xe_bo_init_locked() Shuicheng Lin
@ 2026-04-08  4:52   ` Matthew Brost
  0 siblings, 0 replies; 15+ messages in thread
From: Matthew Brost @ 2026-04-08  4:52 UTC (permalink / raw)
  To: Shuicheng Lin; +Cc: intel-xe, stable

On Tue, Apr 07, 2026 at 08:15:39PM +0000, Shuicheng Lin wrote:
> When type is ttm_bo_type_device and aligned_size != size, the function
> returns an error without freeing a caller-provided bo, violating the
> documented contract that bo is freed on failure.
> 
> Add xe_bo_free(bo) before returning the error.
> 
> Fixes: 4e03b584143e ("drm/xe/uapi: Reject bo creation of unaligned size")
> Cc: stable@vger.kernel.org

Reviewed-by: Matthew Brost <matthew.brost@intel.com>

> Assisted-by: Claude:claude-opus-4.6
> Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
> ---
>  drivers/gpu/drm/xe/xe_bo.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_bo.c b/drivers/gpu/drm/xe/xe_bo.c
> index b70e8396e56f..6e4ebbe72952 100644
> --- a/drivers/gpu/drm/xe/xe_bo.c
> +++ b/drivers/gpu/drm/xe/xe_bo.c
> @@ -2342,8 +2342,10 @@ struct xe_bo *xe_bo_init_locked(struct xe_device *xe, struct xe_bo *bo,
>  		alignment = SZ_4K >> PAGE_SHIFT;
>  	}
>  
> -	if (type == ttm_bo_type_device && aligned_size != size)
> +	if (type == ttm_bo_type_device && aligned_size != size) {
> +		xe_bo_free(bo);
>  		return ERR_PTR(-EINVAL);
> +	}
>  
>  	if (!bo) {
>  		bo = xe_bo_alloc();
> -- 
> 2.43.0
> 

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 2/4] drm/xe/bo: Fix bo leak on GGTT flag validation in xe_bo_init_locked()
  2026-04-07 20:15 ` [PATCH 2/4] drm/xe/bo: Fix bo leak on GGTT flag " Shuicheng Lin
@ 2026-04-08  4:54   ` Matthew Brost
  0 siblings, 0 replies; 15+ messages in thread
From: Matthew Brost @ 2026-04-08  4:54 UTC (permalink / raw)
  To: Shuicheng Lin; +Cc: intel-xe, stable

On Tue, Apr 07, 2026 at 08:15:40PM +0000, Shuicheng Lin wrote:
> When XE_BO_FLAG_GGTT_ALL is set without XE_BO_FLAG_GGTT, the function
> returns an error without freeing a caller-provided bo, violating the
> documented contract that bo is freed on failure.
> 
> Add xe_bo_free(bo) before returning the error.
> 
> Fixes: 5a3b0df25d6a ("drm/xe: Allow bo mapping on multiple ggtts")
> Cc: stable@vger.kernel.org

Reviewed-by: Matthew Brost <matthew.brost@intel.com>

> Assisted-by: Claude:claude-opus-4.6
> Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
> ---
>  drivers/gpu/drm/xe/xe_bo.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_bo.c b/drivers/gpu/drm/xe/xe_bo.c
> index 6e4ebbe72952..d09e96b996b9 100644
> --- a/drivers/gpu/drm/xe/xe_bo.c
> +++ b/drivers/gpu/drm/xe/xe_bo.c
> @@ -2322,8 +2322,10 @@ struct xe_bo *xe_bo_init_locked(struct xe_device *xe, struct xe_bo *bo,
>  	}
>  
>  	/* XE_BO_FLAG_GGTTx requires XE_BO_FLAG_GGTT also be set */
> -	if ((flags & XE_BO_FLAG_GGTT_ALL) && !(flags & XE_BO_FLAG_GGTT))
> +	if ((flags & XE_BO_FLAG_GGTT_ALL) && !(flags & XE_BO_FLAG_GGTT)) {
> +		xe_bo_free(bo);
>  		return ERR_PTR(-EINVAL);
> +	}
>  
>  	if (flags & (XE_BO_FLAG_VRAM_MASK | XE_BO_FLAG_STOLEN) &&
>  	    !(flags & XE_BO_FLAG_IGNORE_MIN_PAGE_SIZE) &&
> -- 
> 2.43.0
> 

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 3/4] drm/xe: Fix bo leak in xe_dma_buf_init_obj() on allocation failure
  2026-04-07 20:15 ` [PATCH 3/4] drm/xe: Fix bo leak in xe_dma_buf_init_obj() on allocation failure Shuicheng Lin
@ 2026-04-08  5:01   ` Matthew Brost
  2026-04-08 15:58     ` Lin, Shuicheng
  0 siblings, 1 reply; 15+ messages in thread
From: Matthew Brost @ 2026-04-08  5:01 UTC (permalink / raw)
  To: Shuicheng Lin; +Cc: intel-xe, stable

On Tue, Apr 07, 2026 at 08:15:41PM +0000, Shuicheng Lin wrote:
> When drm_gpuvm_resv_object_alloc() fails, the pre-allocated storage bo
> is not freed. Add xe_bo_free(storage) before returning the error.
> 
> Fixes: eb289a5f6cc6 ("drm/xe: Convert xe_dma_buf.c for exhaustive eviction")
> Cc: stable@vger.kernel.org
> Assisted-by: Claude:claude-opus-4.6
> Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
> ---
>  drivers/gpu/drm/xe/xe_dma_buf.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_dma_buf.c b/drivers/gpu/drm/xe/xe_dma_buf.c
> index 7f9602b3363d..24d9d82426b9 100644
> --- a/drivers/gpu/drm/xe/xe_dma_buf.c
> +++ b/drivers/gpu/drm/xe/xe_dma_buf.c
> @@ -271,8 +271,10 @@ xe_dma_buf_init_obj(struct drm_device *dev, struct xe_bo *storage,
>  	int ret = 0;
>  
>  	dummy_obj = drm_gpuvm_resv_object_alloc(&xe->drm);
> -	if (!dummy_obj)
> +	if (!dummy_obj) {

I know the comment at caller says 'Errors here will take care of freeing the bo.'

But I'm not sure that is right sematic as this patch alone won't free
the BO give this line not seen in this diff:

296         return ret ? ERR_PTR(ret) : &bo->ttm.base;

So IMO we make the caller own the freeing of the BO here.

Matt

> +		xe_bo_free(storage);
>  		return ERR_PTR(-ENOMEM);
> +	}
>  
>  	dummy_obj->resv = resv;
>  	xe_validation_guard(&ctx, &xe->val, &exec, (struct xe_val_flags) {}, ret) {
> -- 
> 2.43.0
> 

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 4/4] drm/xe: Fix dma-buf attachment leak in xe_gem_prime_import()
  2026-04-07 20:15 ` [PATCH 4/4] drm/xe: Fix dma-buf attachment leak in xe_gem_prime_import() Shuicheng Lin
@ 2026-04-08  5:04   ` Matthew Brost
  2026-04-08 17:34     ` Lin, Shuicheng
  0 siblings, 1 reply; 15+ messages in thread
From: Matthew Brost @ 2026-04-08  5:04 UTC (permalink / raw)
  To: Shuicheng Lin; +Cc: intel-xe, stable

On Tue, Apr 07, 2026 at 08:15:42PM +0000, Shuicheng Lin wrote:
> When xe_dma_buf_init_obj() fails, the attachment from
> dma_buf_dynamic_attach() is not detached. Add dma_buf_detach() before
> returning the error. Note: we cannot use goto out_err here because
> xe_dma_buf_init_obj() already frees bo on failure, and out_err would
> double-free it.
> 
> Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs")
> Cc: stable@vger.kernel.org
> Assisted-by: Claude:claude-opus-4.6
> Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
> ---
>  drivers/gpu/drm/xe/xe_dma_buf.c | 11 +++++++----
>  1 file changed, 7 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_dma_buf.c b/drivers/gpu/drm/xe/xe_dma_buf.c
> index 24d9d82426b9..7702a6bdaae5 100644
> --- a/drivers/gpu/drm/xe/xe_dma_buf.c
> +++ b/drivers/gpu/drm/xe/xe_dma_buf.c
> @@ -370,12 +370,15 @@ struct drm_gem_object *xe_gem_prime_import(struct drm_device *dev,
>  		goto out_err;
>  	}
>  
> -	/* Errors here will take care of freeing the bo. */
> +	/*
> +	 * xe_dma_buf_init_obj() takes ownership of bo on both success
> +	 * and failure, so we must not touch bo after this call.
> +	 */
>  	obj = xe_dma_buf_init_obj(dev, bo, dma_buf);
> -	if (IS_ERR(obj))
> +	if (IS_ERR(obj)) {
> +		dma_buf_detach(dma_buf, attach);

Based on my feedback from the previous patch [1], I think we also want...

		xe_bo_free(bo);

Also unseen in this diff is this code:

365         attach = dma_buf_dynamic_attach(dma_buf, dev->dev, attach_ops, &bo->ttm.base);
366         if (IS_ERR(attach)) {
367                 obj = ERR_CAST(attach);
368                 goto out_err;
369         }

We also need a xe_bo_free(bo) in this failures if statement.

Matt

[1] https://patchwork.freedesktop.org/patch/716820/?series=164476&rev=1#comment_1319810

>  		return obj;
> -
> -
> +	}
>  	get_dma_buf(dma_buf);
>  	obj->import_attach = attach;
>  	return obj;
> -- 
> 2.43.0
> 

^ permalink raw reply	[flat|nested] 15+ messages in thread

* RE: [PATCH 3/4] drm/xe: Fix bo leak in xe_dma_buf_init_obj() on allocation failure
  2026-04-08  5:01   ` Matthew Brost
@ 2026-04-08 15:58     ` Lin, Shuicheng
  2026-04-08 16:41       ` Matthew Brost
  0 siblings, 1 reply; 15+ messages in thread
From: Lin, Shuicheng @ 2026-04-08 15:58 UTC (permalink / raw)
  To: Brost, Matthew; +Cc: intel-xe@lists.freedesktop.org, stable@vger.kernel.org

On Tue, Apr 7, 2026 10:01 PM Matthew Brost wrote:
> On Tue, Apr 07, 2026 at 08:15:41PM +0000, Shuicheng Lin wrote:
> > When drm_gpuvm_resv_object_alloc() fails, the pre-allocated storage bo
> > is not freed. Add xe_bo_free(storage) before returning the error.
> >
> > Fixes: eb289a5f6cc6 ("drm/xe: Convert xe_dma_buf.c for exhaustive
> > eviction")
> > Cc: stable@vger.kernel.org
> > Assisted-by: Claude:claude-opus-4.6
> > Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
> > ---
> >  drivers/gpu/drm/xe/xe_dma_buf.c | 4 +++-
> >  1 file changed, 3 insertions(+), 1 deletion(-)
> >
> > diff --git a/drivers/gpu/drm/xe/xe_dma_buf.c
> > b/drivers/gpu/drm/xe/xe_dma_buf.c index 7f9602b3363d..24d9d82426b9
> > 100644
> > --- a/drivers/gpu/drm/xe/xe_dma_buf.c
> > +++ b/drivers/gpu/drm/xe/xe_dma_buf.c
> > @@ -271,8 +271,10 @@ xe_dma_buf_init_obj(struct drm_device *dev, struct
> xe_bo *storage,
> >  	int ret = 0;
> >
> >  	dummy_obj = drm_gpuvm_resv_object_alloc(&xe->drm);
> > -	if (!dummy_obj)
> > +	if (!dummy_obj) {
> 
> I know the comment at caller says 'Errors here will take care of freeing the bo.'
> 
> But I'm not sure that is right sematic as this patch alone won't free the BO give
> this line not seen in this diff:
> 
> 296         return ret ? ERR_PTR(ret) : &bo->ttm.base;
> 
> So IMO we make the caller own the freeing of the BO here.

xe_dma_buf_init_obj() calls xe_bo_init_locked(), which frees the BO on error.
Therefore, xe_dma_buf_init_obj() must also free the BO on its error paths.
Otherwise, since xe_gem_prime_import() cannot distinguish whether the failure originated from xe_dma_buf_init_obj() or from xe_bo_init_locked(), it cannot safely decide whether the BO should be freed.

On success, ownership of the BO is transferred to the drm_gem_object.

How about add some comments in this function like below?

+/*
+ * Takes ownership of @storage: on success it is transferred to the returned
+ * drm_gem_object; on failure it is freed before returning the error.
+ * This matches the contract of xe_bo_init_locked() which frees @storage on
+ * its error paths, so callers need not (and must not) free @storage after
+ * this call.
+ */
 static struct drm_gem_object *
 xe_dma_buf_init_obj(struct drm_device *dev, struct xe_bo *storage,
                    struct dma_buf *dma_buf)

Shuicheng

> 
> Matt
> 
> > +		xe_bo_free(storage);
> >  		return ERR_PTR(-ENOMEM);
> > +	}
> >
> >  	dummy_obj->resv = resv;
> >  	xe_validation_guard(&ctx, &xe->val, &exec, (struct xe_val_flags) {},
> > ret) {
> > --
> > 2.43.0
> >

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 3/4] drm/xe: Fix bo leak in xe_dma_buf_init_obj() on allocation failure
  2026-04-08 15:58     ` Lin, Shuicheng
@ 2026-04-08 16:41       ` Matthew Brost
  0 siblings, 0 replies; 15+ messages in thread
From: Matthew Brost @ 2026-04-08 16:41 UTC (permalink / raw)
  To: Lin, Shuicheng; +Cc: intel-xe@lists.freedesktop.org, stable@vger.kernel.org

On Wed, Apr 08, 2026 at 09:58:06AM -0600, Lin, Shuicheng wrote:
> On Tue, Apr 7, 2026 10:01 PM Matthew Brost wrote:
> > On Tue, Apr 07, 2026 at 08:15:41PM +0000, Shuicheng Lin wrote:
> > > When drm_gpuvm_resv_object_alloc() fails, the pre-allocated storage bo
> > > is not freed. Add xe_bo_free(storage) before returning the error.
> > >
> > > Fixes: eb289a5f6cc6 ("drm/xe: Convert xe_dma_buf.c for exhaustive
> > > eviction")
> > > Cc: stable@vger.kernel.org
> > > Assisted-by: Claude:claude-opus-4.6
> > > Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
> > > ---
> > >  drivers/gpu/drm/xe/xe_dma_buf.c | 4 +++-
> > >  1 file changed, 3 insertions(+), 1 deletion(-)
> > >
> > > diff --git a/drivers/gpu/drm/xe/xe_dma_buf.c
> > > b/drivers/gpu/drm/xe/xe_dma_buf.c index 7f9602b3363d..24d9d82426b9
> > > 100644
> > > --- a/drivers/gpu/drm/xe/xe_dma_buf.c
> > > +++ b/drivers/gpu/drm/xe/xe_dma_buf.c
> > > @@ -271,8 +271,10 @@ xe_dma_buf_init_obj(struct drm_device *dev, struct
> > xe_bo *storage,
> > >  	int ret = 0;
> > >
> > >  	dummy_obj = drm_gpuvm_resv_object_alloc(&xe->drm);
> > > -	if (!dummy_obj)
> > > +	if (!dummy_obj) {
> > 
> > I know the comment at caller says 'Errors here will take care of freeing the bo.'
> > 
> > But I'm not sure that is right sematic as this patch alone won't free the BO give
> > this line not seen in this diff:
> > 
> > 296         return ret ? ERR_PTR(ret) : &bo->ttm.base;
> > 
> > So IMO we make the caller own the freeing of the BO here.
> 
> xe_dma_buf_init_obj() calls xe_bo_init_locked(), which frees the BO on error.
> Therefore, xe_dma_buf_init_obj() must also free the BO on its error paths.

Yes, right. It is easy to forget these consuming interfaces on error.

> Otherwise, since xe_gem_prime_import() cannot distinguish whether the failure originated from xe_dma_buf_init_obj() or from xe_bo_init_locked(), it cannot safely decide whether the BO should be freed.
> 
> On success, ownership of the BO is transferred to the drm_gem_object.
> 
> How about add some comments in this function like below?
> 
> +/*
> + * Takes ownership of @storage: on success it is transferred to the returned
> + * drm_gem_object; on failure it is freed before returning the error.
> + * This matches the contract of xe_bo_init_locked() which frees @storage on
> + * its error paths, so callers need not (and must not) free @storage after
> + * this call.
> + */

Yes, that's good to avoid forgetting.

So this patch looks correct:

Reviewed-by: Matthew Brost <matthew.brost@intel.com>

>  static struct drm_gem_object *
>  xe_dma_buf_init_obj(struct drm_device *dev, struct xe_bo *storage,
>                     struct dma_buf *dma_buf)
> 
> Shuicheng
> 
> > 
> > Matt
> > 
> > > +		xe_bo_free(storage);
> > >  		return ERR_PTR(-ENOMEM);
> > > +	}
> > >
> > >  	dummy_obj->resv = resv;
> > >  	xe_validation_guard(&ctx, &xe->val, &exec, (struct xe_val_flags) {},
> > > ret) {
> > > --
> > > 2.43.0
> > >

^ permalink raw reply	[flat|nested] 15+ messages in thread

* RE: [PATCH 4/4] drm/xe: Fix dma-buf attachment leak in xe_gem_prime_import()
  2026-04-08  5:04   ` Matthew Brost
@ 2026-04-08 17:34     ` Lin, Shuicheng
  2026-04-08 17:38       ` Matthew Brost
  0 siblings, 1 reply; 15+ messages in thread
From: Lin, Shuicheng @ 2026-04-08 17:34 UTC (permalink / raw)
  To: Brost, Matthew; +Cc: intel-xe@lists.freedesktop.org, stable@vger.kernel.org

On Tue, Apr 7, 2026 10:05 PM Matthew Brost wrote:
> On Tue, Apr 07, 2026 at 08:15:42PM +0000, Shuicheng Lin wrote:
> > When xe_dma_buf_init_obj() fails, the attachment from
> > dma_buf_dynamic_attach() is not detached. Add dma_buf_detach() before
> > returning the error. Note: we cannot use goto out_err here because
> > xe_dma_buf_init_obj() already frees bo on failure, and out_err would
> > double-free it.
> >
> > Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel
> > GPUs")
> > Cc: stable@vger.kernel.org
> > Assisted-by: Claude:claude-opus-4.6
> > Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
> > ---
> >  drivers/gpu/drm/xe/xe_dma_buf.c | 11 +++++++----
> >  1 file changed, 7 insertions(+), 4 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/xe/xe_dma_buf.c
> > b/drivers/gpu/drm/xe/xe_dma_buf.c index 24d9d82426b9..7702a6bdaae5
> > 100644
> > --- a/drivers/gpu/drm/xe/xe_dma_buf.c
> > +++ b/drivers/gpu/drm/xe/xe_dma_buf.c
> > @@ -370,12 +370,15 @@ struct drm_gem_object
> *xe_gem_prime_import(struct drm_device *dev,
> >  		goto out_err;
> >  	}
> >
> > -	/* Errors here will take care of freeing the bo. */
> > +	/*
> > +	 * xe_dma_buf_init_obj() takes ownership of bo on both success
> > +	 * and failure, so we must not touch bo after this call.
> > +	 */
> >  	obj = xe_dma_buf_init_obj(dev, bo, dma_buf);
> > -	if (IS_ERR(obj))
> > +	if (IS_ERR(obj)) {
> > +		dma_buf_detach(dma_buf, attach);
> 
> Based on my feedback from the previous patch [1], I think we also want...
> 
> 		xe_bo_free(bo);
> 
> Also unseen in this diff is this code:
> 
> 365         attach = dma_buf_dynamic_attach(dma_buf, dev->dev, attach_ops,
> &bo->ttm.base);
> 366         if (IS_ERR(attach)) {
> 367                 obj = ERR_CAST(attach);
> 368                 goto out_err;
> 369         }
> 
> We also need a xe_bo_free(bo) in this failures if statement.
> 
> Matt
> 
> [1]
> https://patchwork.freedesktop.org/patch/716820/?series=164476&rev=1#c
> omment_1319810
> 

As discussed in another email, could you please help me	review this patch again?
Thanks.

Shuicheng

> >  		return obj;
> > -
> > -
> > +	}
> >  	get_dma_buf(dma_buf);
> >  	obj->import_attach = attach;
> >  	return obj;
> > --
> > 2.43.0
> >

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 4/4] drm/xe: Fix dma-buf attachment leak in xe_gem_prime_import()
  2026-04-08 17:34     ` Lin, Shuicheng
@ 2026-04-08 17:38       ` Matthew Brost
  0 siblings, 0 replies; 15+ messages in thread
From: Matthew Brost @ 2026-04-08 17:38 UTC (permalink / raw)
  To: Lin, Shuicheng; +Cc: intel-xe@lists.freedesktop.org, stable@vger.kernel.org

On Wed, Apr 08, 2026 at 11:34:28AM -0600, Lin, Shuicheng wrote:
> On Tue, Apr 7, 2026 10:05 PM Matthew Brost wrote:
> > On Tue, Apr 07, 2026 at 08:15:42PM +0000, Shuicheng Lin wrote:
> > > When xe_dma_buf_init_obj() fails, the attachment from
> > > dma_buf_dynamic_attach() is not detached. Add dma_buf_detach() before
> > > returning the error. Note: we cannot use goto out_err here because
> > > xe_dma_buf_init_obj() already frees bo on failure, and out_err would
> > > double-free it.
> > >
> > > Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel
> > > GPUs")
> > > Cc: stable@vger.kernel.org
> > > Assisted-by: Claude:claude-opus-4.6
> > > Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
> > > ---
> > >  drivers/gpu/drm/xe/xe_dma_buf.c | 11 +++++++----
> > >  1 file changed, 7 insertions(+), 4 deletions(-)
> > >
> > > diff --git a/drivers/gpu/drm/xe/xe_dma_buf.c
> > > b/drivers/gpu/drm/xe/xe_dma_buf.c index 24d9d82426b9..7702a6bdaae5
> > > 100644
> > > --- a/drivers/gpu/drm/xe/xe_dma_buf.c
> > > +++ b/drivers/gpu/drm/xe/xe_dma_buf.c
> > > @@ -370,12 +370,15 @@ struct drm_gem_object
> > *xe_gem_prime_import(struct drm_device *dev,
> > >  		goto out_err;
> > >  	}
> > >
> > > -	/* Errors here will take care of freeing the bo. */
> > > +	/*
> > > +	 * xe_dma_buf_init_obj() takes ownership of bo on both success
> > > +	 * and failure, so we must not touch bo after this call.
> > > +	 */
> > >  	obj = xe_dma_buf_init_obj(dev, bo, dma_buf);
> > > -	if (IS_ERR(obj))
> > > +	if (IS_ERR(obj)) {
> > > +		dma_buf_detach(dma_buf, attach);
> > 
> > Based on my feedback from the previous patch [1], I think we also want...
> > 
> > 		xe_bo_free(bo);
> > 
> > Also unseen in this diff is this code:
> > 
> > 365         attach = dma_buf_dynamic_attach(dma_buf, dev->dev, attach_ops,
> > &bo->ttm.base);
> > 366         if (IS_ERR(attach)) {
> > 367                 obj = ERR_CAST(attach);
> > 368                 goto out_err;
> > 369         }
> > 
> > We also need a xe_bo_free(bo) in this failures if statement.
> > 
> > Matt

^^^ Ignore all of this. Missed out_err calls xe_bo_free too.

So patch LGTM:
Reviewed-by: Mattheq Brost <matthew.brost@intel.com>

> > 
> > [1]
> > https://patchwork.freedesktop.org/patch/716820/?series=164476&rev=1#c
> > omment_1319810
> > 
> 
> As discussed in another email, could you please help me	review this patch again?
> Thanks.
> 
> Shuicheng
> 
> > >  		return obj;
> > > -
> > > -
> > > +	}
> > >  	get_dma_buf(dma_buf);
> > >  	obj->import_attach = attach;
> > >  	return obj;
> > > --
> > > 2.43.0
> > >

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2026-04-08 17:38 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-07 20:15 [PATCH 0/4] drm/xe: Fix resource leaks in bo init and dma-buf paths Shuicheng Lin
2026-04-07 20:15 ` [PATCH 1/4] drm/xe/bo: Fix bo leak on unaligned size validation in xe_bo_init_locked() Shuicheng Lin
2026-04-08  4:52   ` Matthew Brost
2026-04-07 20:15 ` [PATCH 2/4] drm/xe/bo: Fix bo leak on GGTT flag " Shuicheng Lin
2026-04-08  4:54   ` Matthew Brost
2026-04-07 20:15 ` [PATCH 3/4] drm/xe: Fix bo leak in xe_dma_buf_init_obj() on allocation failure Shuicheng Lin
2026-04-08  5:01   ` Matthew Brost
2026-04-08 15:58     ` Lin, Shuicheng
2026-04-08 16:41       ` Matthew Brost
2026-04-07 20:15 ` [PATCH 4/4] drm/xe: Fix dma-buf attachment leak in xe_gem_prime_import() Shuicheng Lin
2026-04-08  5:04   ` Matthew Brost
2026-04-08 17:34     ` Lin, Shuicheng
2026-04-08 17:38       ` Matthew Brost
2026-04-07 21:48 ` ✗ CI.checkpatch: warning for drm/xe: Fix resource leaks in bo init and dma-buf paths Patchwork
2026-04-07 21:50 ` ✗ CI.KUnit: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox