Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] LMTT invalidation
@ 2025-07-02 22:30 Michal Wajdeczko
  2025-07-02 22:30 ` [PATCH 1/3] drm/xe/pf: Force GuC virtualization mode Michal Wajdeczko
                   ` (8 more replies)
  0 siblings, 9 replies; 17+ messages in thread
From: Michal Wajdeczko @ 2025-07-02 22:30 UTC (permalink / raw)
  To: intel-xe; +Cc: Michal Wajdeczko

Michal Wajdeczko (3):
  drm/xe/pf: Force GuC virtualization mode
  drm/xe/pf: Invalidate LMTT during LMEM unprovisioning
  drm/xe/pf: Invalidate LMTT after completing changes

 drivers/gpu/drm/xe/xe_device.h              |  4 ++
 drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c  | 43 +++++++++++++++-
 drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c | 35 +++++++++++++
 drivers/gpu/drm/xe/xe_gt_tlb_invalidation.h |  2 +
 drivers/gpu/drm/xe/xe_lmtt.c                | 56 +++++++++++++++++++++
 drivers/gpu/drm/xe/xe_lmtt.h                |  1 +
 6 files changed, 140 insertions(+), 1 deletion(-)

-- 
2.47.1


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

* [PATCH 1/3] drm/xe/pf: Force GuC virtualization mode
  2025-07-02 22:30 [PATCH 0/3] LMTT invalidation Michal Wajdeczko
@ 2025-07-02 22:30 ` Michal Wajdeczko
  2025-07-02 22:30 ` [PATCH 2/3] drm/xe/pf: Invalidate LMTT during LMEM unprovisioning Michal Wajdeczko
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 17+ messages in thread
From: Michal Wajdeczko @ 2025-07-02 22:30 UTC (permalink / raw)
  To: intel-xe; +Cc: Michal Wajdeczko

By default the GuC starts in the 'native' mode and enables the VGT
mode (aka 'virtualization' mode) only after it receives at least one
set of VF configuration data. While this happens naturally while PF
begins VFs provisioning, we might need this sooner as some actions,
like TLB_INVALIDATION_ALL(0x7002), is supported by the GuC only in
the VGT mode.

And this becomes a real problem if we would want to use above action
to invalidate the LMTT early during VFs auto-provisioning, before VFs
are enabled, as such H2G would be rejected:

 [ ] xe 0000:4d:00.0: [drm] *ERROR* GT0: FAST_REQ H2G fence 0x804e failed! e=0x30, h=0
 [ ] xe 0000:4d:00.0: [drm] *ERROR* GT0: Fence 0x804e was used by action 0x7002 sent at:
      h2g_write+0x33e/0x870 [xe]
      __guc_ct_send_locked+0x1e1/0x1110 [xe]
      guc_ct_send_locked+0x9f/0x740 [xe]
      xe_guc_ct_send_locked+0x19/0x60 [xe]
      send_tlb_invalidation+0xc2/0x470 [xe]
      xe_gt_tlb_invalidation_all_async+0x45/0xa0 [xe]
      xe_gt_tlb_invalidation_all+0x4b/0xa0 [xe]
      lmtt_invalidate_hw+0x64/0x1a0 [xe]
      xe_lmtt_invalidate_hw+0x5c/0x340 [xe]
      pf_update_vf_lmtt+0x398/0xae0 [xe]
      pf_provision_vf_lmem+0x350/0xa60 [xe]
      xe_gt_sriov_pf_config_bulk_set_lmem+0xe2/0x410 [xe]
      xe_gt_sriov_pf_config_set_fair_lmem+0x1c6/0x620 [xe]
      xe_gt_sriov_pf_config_set_fair+0xd5/0x3f0 [xe]
      xe_pci_sriov_configure+0x360/0x1200 [xe]
      sriov_numvfs_store+0xbc/0x1d0
      dev_attr_store+0x17/0x40
      sysfs_kf_write+0x4a/0x80
      kernfs_fop_write_iter+0x166/0x220
      vfs_write+0x2ba/0x580
      ksys_write+0x77/0x100
      __x64_sys_write+0x19/0x30
      x64_sys_call+0x2bf/0x2660
      do_syscall_64+0x93/0x7a0
      entry_SYSCALL_64_after_hwframe+0x76/0x7e
 [ ] xe 0000:4d:00.0: [drm] *ERROR* GT0: CT dequeue failed: -71
 [ ] xe 0000:4d:00.0: [drm] GT0: trying reset from receive_g2h [xe]

This could be mitigated by pushing earlier a PF self-configuration
with some hard-coded values that cover unlimited access to the GGTT,
use of all GuC contexts and doorbells.  This step is sufficient for
the GuC to switch into the VGT mode.  We must do that on init and
repeat on every GT/GuC reset.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
---
 drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c | 31 ++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c b/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
index d186f780885d..a75ef4007a1e 100644
--- a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
+++ b/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
@@ -2366,6 +2366,30 @@ int xe_gt_sriov_pf_config_restore(struct xe_gt *gt, unsigned int vfid,
 	return err;
 }
 
+static int pf_push_self_config(struct xe_gt *gt)
+{
+	struct xe_tile *tile = gt_to_tile(gt);
+	struct xe_device *xe = gt_to_xe(gt);
+	u64 ggtt_reserved = xe_wopcm_size(xe);
+	u64 ggtt_size = tile->mem.ggtt->size - ggtt_reserved;
+	int fail = 0;
+
+	xe_gt_assert(gt, IS_SRIOV_PF(xe));
+
+	/* GuC will turn on the VGT mode once it receives this minimal config */
+	fail |= pf_push_vf_cfg_ggtt(gt, PFID, ggtt_reserved, ggtt_size);
+	fail |= pf_push_vf_cfg_ctxs(gt, PFID, 0, GUC_ID_MAX);
+	fail |= pf_push_vf_cfg_dbs(gt, PFID, 0, GUC_NUM_DOORBELLS);
+
+	if (fail) {
+		xe_gt_sriov_notice(gt, "Failed to push self configuration\n");
+		return -ECONNREFUSED;
+	}
+
+	xe_gt_sriov_dbg(gt, "self configuration completed\n");
+	return 0;
+}
+
 static void fini_config(void *arg)
 {
 	struct xe_gt *gt = arg;
@@ -2389,9 +2413,14 @@ static void fini_config(void *arg)
 int xe_gt_sriov_pf_config_init(struct xe_gt *gt)
 {
 	struct xe_device *xe = gt_to_xe(gt);
+	int err;
 
 	xe_gt_assert(gt, IS_SRIOV_PF(xe));
 
+	err = pf_push_self_config(gt);
+	if (err)
+		return err;
+
 	return devm_add_action_or_reset(xe->drm.dev, fini_config, gt);
 }
 
@@ -2409,6 +2438,8 @@ void xe_gt_sriov_pf_config_restart(struct xe_gt *gt)
 	unsigned int n, total_vfs = xe_sriov_pf_get_totalvfs(gt_to_xe(gt));
 	unsigned int fail = 0, skip = 0;
 
+	pf_push_self_config(gt);
+
 	for (n = 1; n <= total_vfs; n++) {
 		if (xe_gt_sriov_pf_config_is_empty(gt, n))
 			skip++;
-- 
2.47.1


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

* [PATCH 2/3] drm/xe/pf: Invalidate LMTT during LMEM unprovisioning
  2025-07-02 22:30 [PATCH 0/3] LMTT invalidation Michal Wajdeczko
  2025-07-02 22:30 ` [PATCH 1/3] drm/xe/pf: Force GuC virtualization mode Michal Wajdeczko
@ 2025-07-02 22:30 ` Michal Wajdeczko
  2025-07-03  9:10   ` [PATCH v2 " Michal Wajdeczko
                     ` (2 more replies)
  2025-07-02 22:30 ` [PATCH 3/3] drm/xe/pf: Invalidate LMTT after completing changes Michal Wajdeczko
                   ` (6 subsequent siblings)
  8 siblings, 3 replies; 17+ messages in thread
From: Michal Wajdeczko @ 2025-07-02 22:30 UTC (permalink / raw)
  To: intel-xe; +Cc: Michal Wajdeczko, Michał Winiarski, Piotr Piórkowski

Invalidate LMTT immediately after removing VF's LMTT page tables
and clearing root PTE in the LMTT PD to avoid any invalid access
by the hardware (and VF) due to stale data.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Michał Winiarski <michal.winiarski@intel.com>
Cc: Piotr Piórkowski <piotr.piorkowski@intel.com>
---
 drivers/gpu/drm/xe/xe_device.h              |  4 ++
 drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c | 35 +++++++++++++
 drivers/gpu/drm/xe/xe_gt_tlb_invalidation.h |  2 +
 drivers/gpu/drm/xe/xe_lmtt.c                | 56 +++++++++++++++++++++
 drivers/gpu/drm/xe/xe_lmtt.h                |  1 +
 5 files changed, 98 insertions(+)

diff --git a/drivers/gpu/drm/xe/xe_device.h b/drivers/gpu/drm/xe/xe_device.h
index e4da797a984b..a7acd899aa76 100644
--- a/drivers/gpu/drm/xe/xe_device.h
+++ b/drivers/gpu/drm/xe/xe_device.h
@@ -130,6 +130,10 @@ static inline bool xe_device_uc_enabled(struct xe_device *xe)
 	for ((id__) = 1; (id__) < (xe__)->info.tile_count; (id__)++) \
 		for_each_if((tile__) = &(xe__)->tiles[(id__)])
 
+#define for_each_gt_on_tile(gt__, tile__, id__) \
+	for ((id__) = 0; (id__) < XE_MAX_GT_PER_TILE; (id__)++) \
+		for_each_if((gt__) = xe_tile_get_gt((tile__), (id__)))
+
 /*
  * FIXME: This only works for now since multi-tile and standalone media
  * happen to be mutually exclusive.  Future platforms may change this...
diff --git a/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c b/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c
index 6088df8e159c..4fdd5b300265 100644
--- a/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c
+++ b/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c
@@ -330,6 +330,41 @@ int xe_gt_tlb_invalidation_ggtt(struct xe_gt *gt)
 	return 0;
 }
 
+static int send_tlb_invalidation_all(struct xe_gt *gt,
+				     struct xe_gt_tlb_invalidation_fence *fence)
+{
+	u32 action[] = {
+		XE_GUC_ACTION_TLB_INVALIDATION_ALL,
+		0,  /* seqno, replaced in send_tlb_invalidation */
+		MAKE_INVAL_OP(XE_GUC_TLB_INVAL_FULL),
+	};
+
+	return send_tlb_invalidation(&gt->uc.guc, fence, action, ARRAY_SIZE(action));
+}
+
+/**
+ * xe_gt_tlb_invalidation_all_async - Invalidate all TLBs across PF and all VFs.
+ * @gt: the &xe_gt structure
+ * @fence: the &xe_gt_tlb_invalidation_fence to be signaled on completion
+ *
+ * Send a request to invalidate all TLBs across PF and all VFs.
+ *
+ * Return: 0 on success, negative error code on error
+ */
+int xe_gt_tlb_invalidation_all_async(struct xe_gt *gt,
+				     struct xe_gt_tlb_invalidation_fence *fence)
+{
+	int err;
+
+	xe_gt_assert(gt, gt == fence->gt);
+
+	err = send_tlb_invalidation_all(gt, fence);
+	if (err)
+		xe_gt_err(gt, "TLB invalidation request failed (%pe)", ERR_PTR(err));
+
+	return err;
+}
+
 /*
  * Ensure that roundup_pow_of_two(length) doesn't overflow.
  * Note that roundup_pow_of_two() operates on unsigned long,
diff --git a/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.h b/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.h
index 31072dbcad8e..40648f952aee 100644
--- a/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.h
+++ b/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.h
@@ -20,6 +20,8 @@ int xe_gt_tlb_invalidation_init_early(struct xe_gt *gt);
 void xe_gt_tlb_invalidation_reset(struct xe_gt *gt);
 int xe_gt_tlb_invalidation_ggtt(struct xe_gt *gt);
 void xe_gt_tlb_invalidation_vm(struct xe_gt *gt, struct xe_vm *vm);
+int xe_gt_tlb_invalidation_all_async(struct xe_gt *gt,
+				     struct xe_gt_tlb_invalidation_fence *fence);
 int xe_gt_tlb_invalidation_range(struct xe_gt *gt,
 				 struct xe_gt_tlb_invalidation_fence *fence,
 				 u64 start, u64 end, u32 asid);
diff --git a/drivers/gpu/drm/xe/xe_lmtt.c b/drivers/gpu/drm/xe/xe_lmtt.c
index b56437a816e4..aa51c06e2416 100644
--- a/drivers/gpu/drm/xe/xe_lmtt.c
+++ b/drivers/gpu/drm/xe/xe_lmtt.c
@@ -11,6 +11,7 @@
 
 #include "xe_assert.h"
 #include "xe_bo.h"
+#include "xe_gt_tlb_invalidation.h"
 #include "xe_lmtt.h"
 #include "xe_map.h"
 #include "xe_mmio.h"
@@ -216,6 +217,60 @@ void xe_lmtt_init_hw(struct xe_lmtt *lmtt)
 	lmtt_setup_dir_ptr(lmtt);
 }
 
+static int lmtt_invalidate_hw(struct xe_lmtt *lmtt)
+{
+	struct xe_gt_tlb_invalidation_fence fences[XE_MAX_GT_PER_TILE];
+	struct xe_gt_tlb_invalidation_fence *fence = fences;
+	struct xe_tile *tile = lmtt_to_tile(lmtt);
+	struct xe_gt *gt;
+	int num_fences;
+	int result = 0;
+	int err;
+	u8 id;
+
+	for_each_gt_on_tile(gt, tile, id) {
+		xe_gt_tlb_invalidation_fence_init(gt, fence, true);
+		err = xe_gt_tlb_invalidation_all_async(gt, fence);
+		result = result ?: err;
+		fence++;
+	}
+
+	num_fences = fence - fences;
+	lmtt_debug(lmtt, "num_fences=%d err=%d\n", num_fences, result);
+
+	/*
+	 * It is fine to wait for all fences, even for those which covers the
+	 * invalidation request that failed, as such fence should be already
+	 * marked as signaled.
+	 */
+	fence = fences;
+	for_each_gt_on_tile(gt, tile, id)
+		xe_gt_tlb_invalidation_fence_wait(fence++);
+
+	return result;
+}
+
+/**
+ * xe_lmtt_invalidate_hw - Invalidate LMTT hardware.
+ * @lmtt: the &xe_lmtt to invalidate
+ *
+ * Send requests to all GuCs on this tile to invalidate all TLBs.
+ *
+ * This function should be called only when running as a PF driver.
+ */
+void xe_lmtt_invalidate_hw(struct xe_lmtt *lmtt)
+{
+	struct xe_device *xe = lmtt_to_xe(lmtt);
+	int err;
+
+	lmtt_assert(lmtt, IS_SRIOV_PF(xe));
+
+	err = lmtt_invalidate_hw(lmtt);
+	if (err)
+		xe_sriov_warn(xe, "LMTT%u invalidation failed (%pe)",
+			      lmtt_to_tile(lmtt)->id, ERR_PTR(err));
+}
+
 static void lmtt_write_pte(struct xe_lmtt *lmtt, struct xe_lmtt_pt *pt,
 			   u64 pte, unsigned int idx)
 {
@@ -265,6 +320,7 @@ static void lmtt_drop_pages(struct xe_lmtt *lmtt, unsigned int vfid)
 		return;
 
 	lmtt_write_pte(lmtt, pd, LMTT_PTE_INVALID, vfid);
+	lmtt_invalidate_hw(lmtt);
 
 	lmtt_assert(lmtt, pd->level > 0);
 	lmtt_assert(lmtt, pt->level == pd->level - 1);
diff --git a/drivers/gpu/drm/xe/xe_lmtt.h b/drivers/gpu/drm/xe/xe_lmtt.h
index cb10ef994db6..75a234fbf367 100644
--- a/drivers/gpu/drm/xe/xe_lmtt.h
+++ b/drivers/gpu/drm/xe/xe_lmtt.h
@@ -15,6 +15,7 @@ struct xe_lmtt_ops;
 #ifdef CONFIG_PCI_IOV
 int xe_lmtt_init(struct xe_lmtt *lmtt);
 void xe_lmtt_init_hw(struct xe_lmtt *lmtt);
+void xe_lmtt_invalidate_hw(struct xe_lmtt *lmtt);
 int xe_lmtt_prepare_pages(struct xe_lmtt *lmtt, unsigned int vfid, u64 range);
 int xe_lmtt_populate_pages(struct xe_lmtt *lmtt, unsigned int vfid, struct xe_bo *bo, u64 offset);
 void xe_lmtt_drop_pages(struct xe_lmtt *lmtt, unsigned int vfid);
-- 
2.47.1


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

* [PATCH 3/3] drm/xe/pf: Invalidate LMTT after completing changes
  2025-07-02 22:30 [PATCH 0/3] LMTT invalidation Michal Wajdeczko
  2025-07-02 22:30 ` [PATCH 1/3] drm/xe/pf: Force GuC virtualization mode Michal Wajdeczko
  2025-07-02 22:30 ` [PATCH 2/3] drm/xe/pf: Invalidate LMTT during LMEM unprovisioning Michal Wajdeczko
@ 2025-07-02 22:30 ` Michal Wajdeczko
  2025-07-02 22:41   ` Matthew Brost
  2025-07-02 22:52 ` ✗ CI.checkpatch: warning for LMTT invalidation Patchwork
                   ` (5 subsequent siblings)
  8 siblings, 1 reply; 17+ messages in thread
From: Michal Wajdeczko @ 2025-07-02 22:30 UTC (permalink / raw)
  To: intel-xe; +Cc: Michal Wajdeczko, Michał Winiarski, Piotr Piórkowski

Once we finish populating all leaf pages in the VF's LMTT we should
make sure that hardware will not access any stale data. Explicitly
force LMTT invalidation (as it was already planned in the past).

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Michał Winiarski <michal.winiarski@intel.com>
Cc: Piotr Piórkowski <piotr.piorkowski@intel.com>
---
 drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c b/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
index a75ef4007a1e..a1b916e80fdd 100644
--- a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
+++ b/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
@@ -1327,7 +1327,17 @@ static int pf_distribute_config_lmem(struct xe_gt *gt, unsigned int vfid, u64 si
 
 static void pf_force_lmtt_invalidate(struct xe_device *xe)
 {
-	/* TODO */
+	struct xe_lmtt *lmtt;
+	struct xe_tile *tile;
+	unsigned int tid;
+
+	xe_assert(xe, xe_device_has_lmtt(xe));
+	xe_assert(xe, IS_SRIOV_PF(xe));
+
+	for_each_tile(tile, xe, tid) {
+		lmtt = &tile->sriov.pf.lmtt;
+		xe_lmtt_invalidate_hw(lmtt);
+	}
 }
 
 static void pf_reset_vf_lmtt(struct xe_device *xe, unsigned int vfid)
-- 
2.47.1


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

* Re: [PATCH 3/3] drm/xe/pf: Invalidate LMTT after completing changes
  2025-07-02 22:30 ` [PATCH 3/3] drm/xe/pf: Invalidate LMTT after completing changes Michal Wajdeczko
@ 2025-07-02 22:41   ` Matthew Brost
  2025-07-03 14:03     ` Michal Wajdeczko
  0 siblings, 1 reply; 17+ messages in thread
From: Matthew Brost @ 2025-07-02 22:41 UTC (permalink / raw)
  To: Michal Wajdeczko; +Cc: intel-xe, Michał Winiarski, Piotr Piórkowski

On Thu, Jul 03, 2025 at 12:30:41AM +0200, Michal Wajdeczko wrote:
> Once we finish populating all leaf pages in the VF's LMTT we should
> make sure that hardware will not access any stale data. Explicitly
> force LMTT invalidation (as it was already planned in the past).
> 
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
> Cc: Michał Winiarski <michal.winiarski@intel.com>
> Cc: Piotr Piórkowski <piotr.piorkowski@intel.com>
> ---
>  drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c | 12 +++++++++++-
>  1 file changed, 11 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c b/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
> index a75ef4007a1e..a1b916e80fdd 100644
> --- a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
> +++ b/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
> @@ -1327,7 +1327,17 @@ static int pf_distribute_config_lmem(struct xe_gt *gt, unsigned int vfid, u64 si
>  
>  static void pf_force_lmtt_invalidate(struct xe_device *xe)
>  {
> -	/* TODO */
> +	struct xe_lmtt *lmtt;
> +	struct xe_tile *tile;
> +	unsigned int tid;
> +
> +	xe_assert(xe, xe_device_has_lmtt(xe));
> +	xe_assert(xe, IS_SRIOV_PF(xe));
> +
> +	for_each_tile(tile, xe, tid) {
> +		lmtt = &tile->sriov.pf.lmtt;
> +		xe_lmtt_invalidate_hw(lmtt);

If this is a critical path, you may want to consider issuing all TLB
invalidations across all GTs/tiles, then waiting on all fences to
pipeline these - we do this the VM code which is certainly a critical
path. If this is not-so-critical here, maybe this is ok.

Matt

> +	}
>  }
>  
>  static void pf_reset_vf_lmtt(struct xe_device *xe, unsigned int vfid)
> -- 
> 2.47.1
> 

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

* ✗ CI.checkpatch: warning for LMTT invalidation
  2025-07-02 22:30 [PATCH 0/3] LMTT invalidation Michal Wajdeczko
                   ` (2 preceding siblings ...)
  2025-07-02 22:30 ` [PATCH 3/3] drm/xe/pf: Invalidate LMTT after completing changes Michal Wajdeczko
@ 2025-07-02 22:52 ` Patchwork
  2025-07-02 22:53 ` ✓ CI.KUnit: success " Patchwork
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 17+ messages in thread
From: Patchwork @ 2025-07-02 22:52 UTC (permalink / raw)
  To: Michal Wajdeczko; +Cc: intel-xe

== Series Details ==

Series: LMTT invalidation
URL   : https://patchwork.freedesktop.org/series/151092/
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
f8ff75ae1d2127635239b134695774ed4045d05b
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 1f0daf660bbdb9161aa970264538f224029b6c8c
Author: Michal Wajdeczko <michal.wajdeczko@intel.com>
Date:   Thu Jul 3 00:30:41 2025 +0200

    drm/xe/pf: Invalidate LMTT after completing changes
    
    Once we finish populating all leaf pages in the VF's LMTT we should
    make sure that hardware will not access any stale data. Explicitly
    force LMTT invalidation (as it was already planned in the past).
    
    Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
    Cc: Michał Winiarski <michal.winiarski@intel.com>
    Cc: Piotr Piórkowski <piotr.piorkowski@intel.com>
+ /mt/dim checkpatch 339a9f6176f6e176caa8e631859c73b34ffb07d6 drm-intel
32fcd4eeccbe drm/xe/pf: Force GuC virtualization mode
-:17: WARNING:COMMIT_LOG_LONG_LINE: Prefer a maximum 75 chars per line (possible unwrapped commit description?)
#17: 
 [ ] xe 0000:4d:00.0: [drm] *ERROR* GT0: FAST_REQ H2G fence 0x804e failed! e=0x30, h=0

total: 0 errors, 1 warnings, 0 checks, 52 lines checked
a295b4248dfe drm/xe/pf: Invalidate LMTT during LMEM unprovisioning
-:25: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'id__' - possible side-effects?
#25: FILE: drivers/gpu/drm/xe/xe_device.h:133:
+#define for_each_gt_on_tile(gt__, tile__, id__) \
+	for ((id__) = 0; (id__) < XE_MAX_GT_PER_TILE; (id__)++) \
+		for_each_if((gt__) = xe_tile_get_gt((tile__), (id__)))

total: 0 errors, 0 warnings, 1 checks, 140 lines checked
1f0daf660bbd drm/xe/pf: Invalidate LMTT after completing changes



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

* ✓ CI.KUnit: success for LMTT invalidation
  2025-07-02 22:30 [PATCH 0/3] LMTT invalidation Michal Wajdeczko
                   ` (3 preceding siblings ...)
  2025-07-02 22:52 ` ✗ CI.checkpatch: warning for LMTT invalidation Patchwork
@ 2025-07-02 22:53 ` Patchwork
  2025-07-03 14:23 ` ✗ CI.checkpatch: warning for LMTT invalidation (rev3) Patchwork
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 17+ messages in thread
From: Patchwork @ 2025-07-02 22:53 UTC (permalink / raw)
  To: Michal Wajdeczko; +Cc: intel-xe

== Series Details ==

Series: LMTT invalidation
URL   : https://patchwork.freedesktop.org/series/151092/
State : success

== Summary ==

+ trap cleanup EXIT
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig
[22:52:25] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[22:52:29] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48
../drivers/gpu/drm/xe/xe_lmtt.c: In function ‘lmtt_invalidate_hw’:
../drivers/gpu/drm/xe/xe_lmtt.c:226:13: warning: variable ‘num_fences’ set but not used [-Wunused-but-set-variable]
  226 |         int num_fences;
      |             ^~~~~~~~~~

[22:52:56] Starting KUnit Kernel (1/1)...
[22:52:56] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[22:52:56] ================== guc_buf (11 subtests) ===================
[22:52:56] [PASSED] test_smallest
[22:52:56] [PASSED] test_largest
[22:52:56] [PASSED] test_granular
[22:52:56] [PASSED] test_unique
[22:52:56] [PASSED] test_overlap
[22:52:56] [PASSED] test_reusable
[22:52:56] [PASSED] test_too_big
[22:52:56] [PASSED] test_flush
[22:52:56] [PASSED] test_lookup
[22:52:56] [PASSED] test_data
[22:52:56] [PASSED] test_class
[22:52:56] ===================== [PASSED] guc_buf =====================
[22:52:56] =================== guc_dbm (7 subtests) ===================
[22:52:56] [PASSED] test_empty
[22:52:56] [PASSED] test_default
[22:52:56] ======================== test_size  ========================
[22:52:56] [PASSED] 4
[22:52:56] [PASSED] 8
[22:52:56] [PASSED] 32
[22:52:56] [PASSED] 256
[22:52:56] ==================== [PASSED] test_size ====================
[22:52:56] ======================= test_reuse  ========================
[22:52:56] [PASSED] 4
[22:52:56] [PASSED] 8
[22:52:56] [PASSED] 32
[22:52:56] [PASSED] 256
[22:52:56] =================== [PASSED] test_reuse ====================
[22:52:56] =================== test_range_overlap  ====================
[22:52:56] [PASSED] 4
[22:52:56] [PASSED] 8
[22:52:56] [PASSED] 32
[22:52:56] [PASSED] 256
[22:52:56] =============== [PASSED] test_range_overlap ================
[22:52:56] =================== test_range_compact  ====================
[22:52:56] [PASSED] 4
[22:52:56] [PASSED] 8
[22:52:56] [PASSED] 32
[22:52:56] [PASSED] 256
[22:52:56] =============== [PASSED] test_range_compact ================
[22:52:56] ==================== test_range_spare  =====================
[22:52:56] [PASSED] 4
[22:52:56] [PASSED] 8
[22:52:56] [PASSED] 32
[22:52:56] [PASSED] 256
[22:52:56] ================ [PASSED] test_range_spare =================
[22:52:56] ===================== [PASSED] guc_dbm =====================
[22:52:56] =================== guc_idm (6 subtests) ===================
[22:52:56] [PASSED] bad_init
[22:52:56] [PASSED] no_init
[22:52:56] [PASSED] init_fini
[22:52:56] [PASSED] check_used
[22:52:56] [PASSED] check_quota
[22:52:56] [PASSED] check_all
[22:52:56] ===================== [PASSED] guc_idm =====================
[22:52:56] ================== no_relay (3 subtests) ===================
[22:52:56] [PASSED] xe_drops_guc2pf_if_not_ready
[22:52:56] [PASSED] xe_drops_guc2vf_if_not_ready
[22:52:56] [PASSED] xe_rejects_send_if_not_ready
[22:52:56] ==================== [PASSED] no_relay =====================
[22:52:56] ================== pf_relay (14 subtests) ==================
[22:52:56] [PASSED] pf_rejects_guc2pf_too_short
[22:52:56] [PASSED] pf_rejects_guc2pf_too_long
[22:52:56] [PASSED] pf_rejects_guc2pf_no_payload
[22:52:56] [PASSED] pf_fails_no_payload
[22:52:56] [PASSED] pf_fails_bad_origin
[22:52:56] [PASSED] pf_fails_bad_type
[22:52:56] [PASSED] pf_txn_reports_error
[22:52:56] [PASSED] pf_txn_sends_pf2guc
[22:52:56] [PASSED] pf_sends_pf2guc
[22:52:56] [SKIPPED] pf_loopback_nop
[22:52:56] [SKIPPED] pf_loopback_echo
[22:52:56] [SKIPPED] pf_loopback_fail
[22:52:56] [SKIPPED] pf_loopback_busy
[22:52:56] [SKIPPED] pf_loopback_retry
[22:52:56] ==================== [PASSED] pf_relay =====================
[22:52:56] ================== vf_relay (3 subtests) ===================
[22:52:56] [PASSED] vf_rejects_guc2vf_too_short
[22:52:56] [PASSED] vf_rejects_guc2vf_too_long
[22:52:56] [PASSED] vf_rejects_guc2vf_no_payload
[22:52:56] ==================== [PASSED] vf_relay =====================
[22:52:56] ================= pf_service (11 subtests) =================
[22:52:56] [PASSED] pf_negotiate_any
[22:52:56] [PASSED] pf_negotiate_base_match
[22:52:56] [PASSED] pf_negotiate_base_newer
[22:52:56] [PASSED] pf_negotiate_base_next
[22:52:56] [SKIPPED] pf_negotiate_base_older
[22:52:56] [PASSED] pf_negotiate_base_prev
[22:52:56] [PASSED] pf_negotiate_latest_match
[22:52:56] [PASSED] pf_negotiate_latest_newer
[22:52:56] [PASSED] pf_negotiate_latest_next
[22:52:56] [SKIPPED] pf_negotiate_latest_older
[22:52:56] [SKIPPED] pf_negotiate_latest_prev
[22:52:56] =================== [PASSED] pf_service ====================
[22:52:56] ===================== lmtt (1 subtest) =====================
[22:52:56] ======================== test_ops  =========================
[22:52:56] [PASSED] 2-level
[22:52:56] [PASSED] multi-level
[22:52:56] ==================== [PASSED] test_ops =====================
[22:52:56] ====================== [PASSED] lmtt =======================
[22:52:56] =================== xe_mocs (2 subtests) ===================
[22:52:56] ================ xe_live_mocs_kernel_kunit  ================
[22:52:56] =========== [SKIPPED] xe_live_mocs_kernel_kunit ============
[22:52:56] ================ xe_live_mocs_reset_kunit  =================
[22:52:56] ============ [SKIPPED] xe_live_mocs_reset_kunit ============
[22:52:56] ==================== [SKIPPED] xe_mocs =====================
[22:52:56] ================= xe_migrate (2 subtests) ==================
[22:52:56] ================= xe_migrate_sanity_kunit  =================
[22:52:56] ============ [SKIPPED] xe_migrate_sanity_kunit =============
[22:52:56] ================== xe_validate_ccs_kunit  ==================
[22:52:56] ============= [SKIPPED] xe_validate_ccs_kunit ==============
[22:52:56] =================== [SKIPPED] xe_migrate ===================
[22:52:56] ================== xe_dma_buf (1 subtest) ==================
[22:52:56] ==================== xe_dma_buf_kunit  =====================
[22:52:56] ================ [SKIPPED] xe_dma_buf_kunit ================
[22:52:56] =================== [SKIPPED] xe_dma_buf ===================
[22:52:56] ================= xe_bo_shrink (1 subtest) =================
[22:52:56] =================== xe_bo_shrink_kunit  ====================
[22:52:56] =============== [SKIPPED] xe_bo_shrink_kunit ===============
[22:52:56] ================== [SKIPPED] xe_bo_shrink ==================
[22:52:56] ==================== xe_bo (2 subtests) ====================
[22:52:56] ================== xe_ccs_migrate_kunit  ===================
[22:52:56] ============== [SKIPPED] xe_ccs_migrate_kunit ==============
[22:52:56] ==================== xe_bo_evict_kunit  ====================
[22:52:56] =============== [SKIPPED] xe_bo_evict_kunit ================
[22:52:56] ===================== [SKIPPED] xe_bo ======================
[22:52:56] ==================== args (11 subtests) ====================
[22:52:56] [PASSED] count_args_test
[22:52:56] [PASSED] call_args_example
[22:52:56] [PASSED] call_args_test
[22:52:56] [PASSED] drop_first_arg_example
[22:52:56] [PASSED] drop_first_arg_test
[22:52:56] [PASSED] first_arg_example
[22:52:56] [PASSED] first_arg_test
[22:52:56] [PASSED] last_arg_example
[22:52:56] [PASSED] last_arg_test
[22:52:56] [PASSED] pick_arg_example
[22:52:56] [PASSED] sep_comma_example
[22:52:56] ====================== [PASSED] args =======================
[22:52:56] =================== xe_pci (2 subtests) ====================
[22:52:56] ==================== check_graphics_ip  ====================
[22:52:56] [PASSED] 12.70 Xe_LPG
[22:52:56] [PASSED] 12.71 Xe_LPG
[22:52:56] [PASSED] 12.74 Xe_LPG+
[22:52:56] [PASSED] 20.01 Xe2_HPG
[22:52:56] [PASSED] 20.02 Xe2_HPG
[22:52:56] [PASSED] 20.04 Xe2_LPG
[22:52:56] [PASSED] 30.00 Xe3_LPG
[22:52:56] [PASSED] 30.01 Xe3_LPG
[22:52:56] [PASSED] 30.03 Xe3_LPG
[22:52:56] ================ [PASSED] check_graphics_ip ================
stty: 'standard input': Inappropriate ioctl for device
[22:52:56] ===================== check_media_ip  ======================
[22:52:56] [PASSED] 13.00 Xe_LPM+
[22:52:56] [PASSED] 13.01 Xe2_HPM
[22:52:56] [PASSED] 20.00 Xe2_LPM
[22:52:56] [PASSED] 30.00 Xe3_LPM
[22:52:56] [PASSED] 30.02 Xe3_LPM
[22:52:56] ================= [PASSED] check_media_ip ==================
[22:52:56] ===================== [PASSED] xe_pci ======================
[22:52:56] =================== xe_rtp (2 subtests) ====================
[22:52:56] =============== xe_rtp_process_to_sr_tests  ================
[22:52:56] [PASSED] coalesce-same-reg
[22:52:56] [PASSED] no-match-no-add
[22:52:56] [PASSED] match-or
[22:52:56] [PASSED] match-or-xfail
[22:52:56] [PASSED] no-match-no-add-multiple-rules
[22:52:56] [PASSED] two-regs-two-entries
[22:52:56] [PASSED] clr-one-set-other
[22:52:56] [PASSED] set-field
[22:52:56] [PASSED] conflict-duplicate
[22:52:56] [PASSED] conflict-not-disjoint
[22:52:56] [PASSED] conflict-reg-type
[22:52:56] =========== [PASSED] xe_rtp_process_to_sr_tests ============
[22:52:56] ================== xe_rtp_process_tests  ===================
[22:52:56] [PASSED] active1
[22:52:56] [PASSED] active2
[22:52:56] [PASSED] active-inactive
[22:52:56] [PASSED] inactive-active
[22:52:56] [PASSED] inactive-1st_or_active-inactive
[22:52:56] [PASSED] inactive-2nd_or_active-inactive
[22:52:56] [PASSED] inactive-last_or_active-inactive
[22:52:56] [PASSED] inactive-no_or_active-inactive
[22:52:56] ============== [PASSED] xe_rtp_process_tests ===============
[22:52:56] ===================== [PASSED] xe_rtp ======================
[22:52:56] ==================== xe_wa (1 subtest) =====================
[22:52:56] ======================== xe_wa_gt  =========================
[22:52:56] [PASSED] TIGERLAKE (B0)
[22:52:56] [PASSED] DG1 (A0)
[22:52:56] [PASSED] DG1 (B0)
[22:52:56] [PASSED] ALDERLAKE_S (A0)
[22:52:56] [PASSED] ALDERLAKE_S (B0)
[22:52:56] [PASSED] ALDERLAKE_S (C0)
[22:52:56] [PASSED] ALDERLAKE_S (D0)
[22:52:56] [PASSED] ALDERLAKE_P (A0)
[22:52:56] [PASSED] ALDERLAKE_P (B0)
[22:52:56] [PASSED] ALDERLAKE_P (C0)
[22:52:56] [PASSED] ALDERLAKE_S_RPLS (D0)
[22:52:56] [PASSED] ALDERLAKE_P_RPLU (E0)
[22:52:56] [PASSED] DG2_G10 (C0)
[22:52:56] [PASSED] DG2_G11 (B1)
[22:52:56] [PASSED] DG2_G12 (A1)
[22:52:56] [PASSED] METEORLAKE (g:A0, m:A0)
[22:52:56] [PASSED] METEORLAKE (g:A0, m:A0)
[22:52:56] [PASSED] METEORLAKE (g:A0, m:A0)
[22:52:56] [PASSED] LUNARLAKE (g:A0, m:A0)
[22:52:56] [PASSED] LUNARLAKE (g:B0, m:A0)
[22:52:56] [PASSED] BATTLEMAGE (g:A0, m:A1)
[22:52:56] ==================== [PASSED] xe_wa_gt =====================
[22:52:56] ====================== [PASSED] xe_wa ======================
[22:52:56] ============================================================
[22:52:56] Testing complete. Ran 145 tests: passed: 129, skipped: 16
[22:52:56] Elapsed time: 31.303s total, 4.210s configuring, 26.777s building, 0.303s running

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

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

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



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

* [PATCH v2 2/3] drm/xe/pf: Invalidate LMTT during LMEM unprovisioning
  2025-07-02 22:30 ` [PATCH 2/3] drm/xe/pf: Invalidate LMTT during LMEM unprovisioning Michal Wajdeczko
@ 2025-07-03  9:10   ` Michal Wajdeczko
  2025-07-03 14:18   ` [PATCH v3 " Michal Wajdeczko
  2025-07-03 17:31   ` [PATCH " Matthew Brost
  2 siblings, 0 replies; 17+ messages in thread
From: Michal Wajdeczko @ 2025-07-03  9:10 UTC (permalink / raw)
  To: intel-xe; +Cc: Michal Wajdeczko, Michał Winiarski, Piotr Piórkowski

Invalidate LMTT immediately after removing VF's LMTT page tables
and clearing root PTE in the LMTT PD to avoid any invalid access
by the hardware (and VF) due to stale data.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Michał Winiarski <michal.winiarski@intel.com>
Cc: Piotr Piórkowski <piotr.piorkowski@intel.com>
---
v2: drop unused num_fences (CI)
---
 drivers/gpu/drm/xe/xe_device.h              |  4 ++
 drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c | 35 +++++++++++++
 drivers/gpu/drm/xe/xe_gt_tlb_invalidation.h |  2 +
 drivers/gpu/drm/xe/xe_lmtt.c                | 54 +++++++++++++++++++++
 drivers/gpu/drm/xe/xe_lmtt.h                |  1 +
 5 files changed, 96 insertions(+)

diff --git a/drivers/gpu/drm/xe/xe_device.h b/drivers/gpu/drm/xe/xe_device.h
index e4da797a984b..a7acd899aa76 100644
--- a/drivers/gpu/drm/xe/xe_device.h
+++ b/drivers/gpu/drm/xe/xe_device.h
@@ -130,6 +130,10 @@ static inline bool xe_device_uc_enabled(struct xe_device *xe)
 	for ((id__) = 1; (id__) < (xe__)->info.tile_count; (id__)++) \
 		for_each_if((tile__) = &(xe__)->tiles[(id__)])
 
+#define for_each_gt_on_tile(gt__, tile__, id__) \
+	for ((id__) = 0; (id__) < XE_MAX_GT_PER_TILE; (id__)++) \
+		for_each_if((gt__) = xe_tile_get_gt((tile__), (id__)))
+
 /*
  * FIXME: This only works for now since multi-tile and standalone media
  * happen to be mutually exclusive.  Future platforms may change this...
diff --git a/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c b/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c
index 6088df8e159c..4fdd5b300265 100644
--- a/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c
+++ b/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c
@@ -330,6 +330,41 @@ int xe_gt_tlb_invalidation_ggtt(struct xe_gt *gt)
 	return 0;
 }
 
+static int send_tlb_invalidation_all(struct xe_gt *gt,
+				     struct xe_gt_tlb_invalidation_fence *fence)
+{
+	u32 action[] = {
+		XE_GUC_ACTION_TLB_INVALIDATION_ALL,
+		0,  /* seqno, replaced in send_tlb_invalidation */
+		MAKE_INVAL_OP(XE_GUC_TLB_INVAL_FULL),
+	};
+
+	return send_tlb_invalidation(&gt->uc.guc, fence, action, ARRAY_SIZE(action));
+}
+
+/**
+ * xe_gt_tlb_invalidation_all_async - Invalidate all TLBs across PF and all VFs.
+ * @gt: the &xe_gt structure
+ * @fence: the &xe_gt_tlb_invalidation_fence to be signaled on completion
+ *
+ * Send a request to invalidate all TLBs across PF and all VFs.
+ *
+ * Return: 0 on success, negative error code on error
+ */
+int xe_gt_tlb_invalidation_all_async(struct xe_gt *gt,
+				     struct xe_gt_tlb_invalidation_fence *fence)
+{
+	int err;
+
+	xe_gt_assert(gt, gt == fence->gt);
+
+	err = send_tlb_invalidation_all(gt, fence);
+	if (err)
+		xe_gt_err(gt, "TLB invalidation request failed (%pe)", ERR_PTR(err));
+
+	return err;
+}
+
 /*
  * Ensure that roundup_pow_of_two(length) doesn't overflow.
  * Note that roundup_pow_of_two() operates on unsigned long,
diff --git a/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.h b/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.h
index 31072dbcad8e..40648f952aee 100644
--- a/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.h
+++ b/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.h
@@ -20,6 +20,8 @@ int xe_gt_tlb_invalidation_init_early(struct xe_gt *gt);
 void xe_gt_tlb_invalidation_reset(struct xe_gt *gt);
 int xe_gt_tlb_invalidation_ggtt(struct xe_gt *gt);
 void xe_gt_tlb_invalidation_vm(struct xe_gt *gt, struct xe_vm *vm);
+int xe_gt_tlb_invalidation_all_async(struct xe_gt *gt,
+				     struct xe_gt_tlb_invalidation_fence *fence);
 int xe_gt_tlb_invalidation_range(struct xe_gt *gt,
 				 struct xe_gt_tlb_invalidation_fence *fence,
 				 u64 start, u64 end, u32 asid);
diff --git a/drivers/gpu/drm/xe/xe_lmtt.c b/drivers/gpu/drm/xe/xe_lmtt.c
index b56437a816e4..0e842939b027 100644
--- a/drivers/gpu/drm/xe/xe_lmtt.c
+++ b/drivers/gpu/drm/xe/xe_lmtt.c
@@ -11,6 +11,7 @@
 
 #include "xe_assert.h"
 #include "xe_bo.h"
+#include "xe_gt_tlb_invalidation.h"
 #include "xe_lmtt.h"
 #include "xe_map.h"
 #include "xe_mmio.h"
@@ -216,6 +217,58 @@ void xe_lmtt_init_hw(struct xe_lmtt *lmtt)
 	lmtt_setup_dir_ptr(lmtt);
 }
 
+static int lmtt_invalidate_hw(struct xe_lmtt *lmtt)
+{
+	struct xe_gt_tlb_invalidation_fence fences[XE_MAX_GT_PER_TILE];
+	struct xe_gt_tlb_invalidation_fence *fence = fences;
+	struct xe_tile *tile = lmtt_to_tile(lmtt);
+	struct xe_gt *gt;
+	int result = 0;
+	int err;
+	u8 id;
+
+	for_each_gt_on_tile(gt, tile, id) {
+		xe_gt_tlb_invalidation_fence_init(gt, fence, true);
+		err = xe_gt_tlb_invalidation_all_async(gt, fence);
+		result = result ?: err;
+		fence++;
+	}
+
+	lmtt_debug(lmtt, "num_fences=%d err=%d\n", (int)(fence - fences), result);
+
+	/*
+	 * It is fine to wait for all fences, even for those which covers the
+	 * invalidation request that failed, as such fence should be already
+	 * marked as signaled.
+	 */
+	fence = fences;
+	for_each_gt_on_tile(gt, tile, id)
+		xe_gt_tlb_invalidation_fence_wait(fence++);
+
+	return result;
+}
+
+/**
+ * xe_lmtt_invalidate_hw - Invalidate LMTT hardware.
+ * @lmtt: the &xe_lmtt to invalidate
+ *
+ * Send requests to all GuCs on this tile to invalidate all TLBs.
+ *
+ * This function should be called only when running as a PF driver.
+ */
+void xe_lmtt_invalidate_hw(struct xe_lmtt *lmtt)
+{
+	struct xe_device *xe = lmtt_to_xe(lmtt);
+	int err;
+
+	lmtt_assert(lmtt, IS_SRIOV_PF(xe));
+
+	err = lmtt_invalidate_hw(lmtt);
+	if (err)
+		xe_sriov_warn(xe, "LMTT%u invalidation failed (%pe)",
+			      lmtt_to_tile(lmtt)->id, ERR_PTR(err));
+}
+
 static void lmtt_write_pte(struct xe_lmtt *lmtt, struct xe_lmtt_pt *pt,
 			   u64 pte, unsigned int idx)
 {
@@ -265,6 +318,7 @@ static void lmtt_drop_pages(struct xe_lmtt *lmtt, unsigned int vfid)
 		return;
 
 	lmtt_write_pte(lmtt, pd, LMTT_PTE_INVALID, vfid);
+	lmtt_invalidate_hw(lmtt);
 
 	lmtt_assert(lmtt, pd->level > 0);
 	lmtt_assert(lmtt, pt->level == pd->level - 1);
diff --git a/drivers/gpu/drm/xe/xe_lmtt.h b/drivers/gpu/drm/xe/xe_lmtt.h
index cb10ef994db6..75a234fbf367 100644
--- a/drivers/gpu/drm/xe/xe_lmtt.h
+++ b/drivers/gpu/drm/xe/xe_lmtt.h
@@ -15,6 +15,7 @@ struct xe_lmtt_ops;
 #ifdef CONFIG_PCI_IOV
 int xe_lmtt_init(struct xe_lmtt *lmtt);
 void xe_lmtt_init_hw(struct xe_lmtt *lmtt);
+void xe_lmtt_invalidate_hw(struct xe_lmtt *lmtt);
 int xe_lmtt_prepare_pages(struct xe_lmtt *lmtt, unsigned int vfid, u64 range);
 int xe_lmtt_populate_pages(struct xe_lmtt *lmtt, unsigned int vfid, struct xe_bo *bo, u64 offset);
 void xe_lmtt_drop_pages(struct xe_lmtt *lmtt, unsigned int vfid);
-- 
2.47.1


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

* Re: [PATCH 3/3] drm/xe/pf: Invalidate LMTT after completing changes
  2025-07-02 22:41   ` Matthew Brost
@ 2025-07-03 14:03     ` Michal Wajdeczko
  0 siblings, 0 replies; 17+ messages in thread
From: Michal Wajdeczko @ 2025-07-03 14:03 UTC (permalink / raw)
  To: Matthew Brost; +Cc: intel-xe, Michał Winiarski, Piotr Piórkowski



On 03.07.2025 00:41, Matthew Brost wrote:
> On Thu, Jul 03, 2025 at 12:30:41AM +0200, Michal Wajdeczko wrote:
>> Once we finish populating all leaf pages in the VF's LMTT we should
>> make sure that hardware will not access any stale data. Explicitly
>> force LMTT invalidation (as it was already planned in the past).
>>
>> Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
>> Cc: Michał Winiarski <michal.winiarski@intel.com>
>> Cc: Piotr Piórkowski <piotr.piorkowski@intel.com>
>> ---
>>  drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c | 12 +++++++++++-
>>  1 file changed, 11 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c b/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
>> index a75ef4007a1e..a1b916e80fdd 100644
>> --- a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
>> +++ b/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
>> @@ -1327,7 +1327,17 @@ static int pf_distribute_config_lmem(struct xe_gt *gt, unsigned int vfid, u64 si
>>  
>>  static void pf_force_lmtt_invalidate(struct xe_device *xe)
>>  {
>> -	/* TODO */
>> +	struct xe_lmtt *lmtt;
>> +	struct xe_tile *tile;
>> +	unsigned int tid;
>> +
>> +	xe_assert(xe, xe_device_has_lmtt(xe));
>> +	xe_assert(xe, IS_SRIOV_PF(xe));
>> +
>> +	for_each_tile(tile, xe, tid) {
>> +		lmtt = &tile->sriov.pf.lmtt;
>> +		xe_lmtt_invalidate_hw(lmtt);
> 
> If this is a critical path, you may want to consider issuing all TLB
> invalidations across all GTs/tiles, then waiting on all fences to
> pipeline these - we do this the VM code which is certainly a critical
> path. If this is not-so-critical here, maybe this is ok.

no, it's not on any critical path right now and btw I already have some
hybrid solution: first I'm sending TLBINVAL to all GTs per tile and then
waiting for those fences, as this was more self contained from the LMTT
SW component POV (since it's per-tile)

> 
> Matt
> 
>> +	}
>>  }
>>  
>>  static void pf_reset_vf_lmtt(struct xe_device *xe, unsigned int vfid)
>> -- 
>> 2.47.1
>>


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

* [PATCH v3 2/3] drm/xe/pf: Invalidate LMTT during LMEM unprovisioning
  2025-07-02 22:30 ` [PATCH 2/3] drm/xe/pf: Invalidate LMTT during LMEM unprovisioning Michal Wajdeczko
  2025-07-03  9:10   ` [PATCH v2 " Michal Wajdeczko
@ 2025-07-03 14:18   ` Michal Wajdeczko
  2025-07-03 17:31   ` [PATCH " Matthew Brost
  2 siblings, 0 replies; 17+ messages in thread
From: Michal Wajdeczko @ 2025-07-03 14:18 UTC (permalink / raw)
  To: intel-xe; +Cc: Michal Wajdeczko, Michał Winiarski, Piotr Piórkowski

Invalidate LMTT immediately after removing VF's LMTT page tables
and clearing root PTE in the LMTT PD to avoid any invalid access
by the hardware (and VF) due to stale data.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Michał Winiarski <michal.winiarski@intel.com>
Cc: Piotr Piórkowski <piotr.piorkowski@intel.com>
---
v2: drop unused num_fences (CI)
v3: rebase (drm-tip)
---
 drivers/gpu/drm/xe/xe_device.h              |  4 ++
 drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c | 35 +++++++++++++
 drivers/gpu/drm/xe/xe_gt_tlb_invalidation.h |  2 +
 drivers/gpu/drm/xe/xe_lmtt.c                | 54 +++++++++++++++++++++
 drivers/gpu/drm/xe/xe_lmtt.h                |  1 +
 5 files changed, 96 insertions(+)

diff --git a/drivers/gpu/drm/xe/xe_device.h b/drivers/gpu/drm/xe/xe_device.h
index f0eb8150f185..bc802e066a7d 100644
--- a/drivers/gpu/drm/xe/xe_device.h
+++ b/drivers/gpu/drm/xe/xe_device.h
@@ -131,6 +131,10 @@ static inline bool xe_device_uc_enabled(struct xe_device *xe)
 	for ((id__) = 0; (id__) < (xe__)->info.tile_count * (xe__)->info.max_gt_per_tile; (id__)++) \
 		for_each_if((gt__) = xe_device_get_gt((xe__), (id__)))
 
+#define for_each_gt_on_tile(gt__, tile__, id__) \
+	for_each_gt((gt__), (tile__)->xe, (id__)) \
+		for_each_if((gt__)->tile == (tile__))
+
 static inline struct xe_force_wake *gt_to_fw(struct xe_gt *gt)
 {
 	return &gt->pm.fw;
diff --git a/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c b/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c
index 6088df8e159c..4fdd5b300265 100644
--- a/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c
+++ b/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c
@@ -330,6 +330,41 @@ int xe_gt_tlb_invalidation_ggtt(struct xe_gt *gt)
 	return 0;
 }
 
+static int send_tlb_invalidation_all(struct xe_gt *gt,
+				     struct xe_gt_tlb_invalidation_fence *fence)
+{
+	u32 action[] = {
+		XE_GUC_ACTION_TLB_INVALIDATION_ALL,
+		0,  /* seqno, replaced in send_tlb_invalidation */
+		MAKE_INVAL_OP(XE_GUC_TLB_INVAL_FULL),
+	};
+
+	return send_tlb_invalidation(&gt->uc.guc, fence, action, ARRAY_SIZE(action));
+}
+
+/**
+ * xe_gt_tlb_invalidation_all_async - Invalidate all TLBs across PF and all VFs.
+ * @gt: the &xe_gt structure
+ * @fence: the &xe_gt_tlb_invalidation_fence to be signaled on completion
+ *
+ * Send a request to invalidate all TLBs across PF and all VFs.
+ *
+ * Return: 0 on success, negative error code on error
+ */
+int xe_gt_tlb_invalidation_all_async(struct xe_gt *gt,
+				     struct xe_gt_tlb_invalidation_fence *fence)
+{
+	int err;
+
+	xe_gt_assert(gt, gt == fence->gt);
+
+	err = send_tlb_invalidation_all(gt, fence);
+	if (err)
+		xe_gt_err(gt, "TLB invalidation request failed (%pe)", ERR_PTR(err));
+
+	return err;
+}
+
 /*
  * Ensure that roundup_pow_of_two(length) doesn't overflow.
  * Note that roundup_pow_of_two() operates on unsigned long,
diff --git a/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.h b/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.h
index 31072dbcad8e..40648f952aee 100644
--- a/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.h
+++ b/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.h
@@ -20,6 +20,8 @@ int xe_gt_tlb_invalidation_init_early(struct xe_gt *gt);
 void xe_gt_tlb_invalidation_reset(struct xe_gt *gt);
 int xe_gt_tlb_invalidation_ggtt(struct xe_gt *gt);
 void xe_gt_tlb_invalidation_vm(struct xe_gt *gt, struct xe_vm *vm);
+int xe_gt_tlb_invalidation_all_async(struct xe_gt *gt,
+				     struct xe_gt_tlb_invalidation_fence *fence);
 int xe_gt_tlb_invalidation_range(struct xe_gt *gt,
 				 struct xe_gt_tlb_invalidation_fence *fence,
 				 u64 start, u64 end, u32 asid);
diff --git a/drivers/gpu/drm/xe/xe_lmtt.c b/drivers/gpu/drm/xe/xe_lmtt.c
index b56437a816e4..0e842939b027 100644
--- a/drivers/gpu/drm/xe/xe_lmtt.c
+++ b/drivers/gpu/drm/xe/xe_lmtt.c
@@ -11,6 +11,7 @@
 
 #include "xe_assert.h"
 #include "xe_bo.h"
+#include "xe_gt_tlb_invalidation.h"
 #include "xe_lmtt.h"
 #include "xe_map.h"
 #include "xe_mmio.h"
@@ -216,6 +217,58 @@ void xe_lmtt_init_hw(struct xe_lmtt *lmtt)
 	lmtt_setup_dir_ptr(lmtt);
 }
 
+static int lmtt_invalidate_hw(struct xe_lmtt *lmtt)
+{
+	struct xe_gt_tlb_invalidation_fence fences[XE_MAX_GT_PER_TILE];
+	struct xe_gt_tlb_invalidation_fence *fence = fences;
+	struct xe_tile *tile = lmtt_to_tile(lmtt);
+	struct xe_gt *gt;
+	int result = 0;
+	int err;
+	u8 id;
+
+	for_each_gt_on_tile(gt, tile, id) {
+		xe_gt_tlb_invalidation_fence_init(gt, fence, true);
+		err = xe_gt_tlb_invalidation_all_async(gt, fence);
+		result = result ?: err;
+		fence++;
+	}
+
+	lmtt_debug(lmtt, "num_fences=%d err=%d\n", (int)(fence - fences), result);
+
+	/*
+	 * It is fine to wait for all fences, even for those which covers the
+	 * invalidation request that failed, as such fence should be already
+	 * marked as signaled.
+	 */
+	fence = fences;
+	for_each_gt_on_tile(gt, tile, id)
+		xe_gt_tlb_invalidation_fence_wait(fence++);
+
+	return result;
+}
+
+/**
+ * xe_lmtt_invalidate_hw - Invalidate LMTT hardware.
+ * @lmtt: the &xe_lmtt to invalidate
+ *
+ * Send requests to all GuCs on this tile to invalidate all TLBs.
+ *
+ * This function should be called only when running as a PF driver.
+ */
+void xe_lmtt_invalidate_hw(struct xe_lmtt *lmtt)
+{
+	struct xe_device *xe = lmtt_to_xe(lmtt);
+	int err;
+
+	lmtt_assert(lmtt, IS_SRIOV_PF(xe));
+
+	err = lmtt_invalidate_hw(lmtt);
+	if (err)
+		xe_sriov_warn(xe, "LMTT%u invalidation failed (%pe)",
+			      lmtt_to_tile(lmtt)->id, ERR_PTR(err));
+}
+
 static void lmtt_write_pte(struct xe_lmtt *lmtt, struct xe_lmtt_pt *pt,
 			   u64 pte, unsigned int idx)
 {
@@ -265,6 +318,7 @@ static void lmtt_drop_pages(struct xe_lmtt *lmtt, unsigned int vfid)
 		return;
 
 	lmtt_write_pte(lmtt, pd, LMTT_PTE_INVALID, vfid);
+	lmtt_invalidate_hw(lmtt);
 
 	lmtt_assert(lmtt, pd->level > 0);
 	lmtt_assert(lmtt, pt->level == pd->level - 1);
diff --git a/drivers/gpu/drm/xe/xe_lmtt.h b/drivers/gpu/drm/xe/xe_lmtt.h
index cb10ef994db6..75a234fbf367 100644
--- a/drivers/gpu/drm/xe/xe_lmtt.h
+++ b/drivers/gpu/drm/xe/xe_lmtt.h
@@ -15,6 +15,7 @@ struct xe_lmtt_ops;
 #ifdef CONFIG_PCI_IOV
 int xe_lmtt_init(struct xe_lmtt *lmtt);
 void xe_lmtt_init_hw(struct xe_lmtt *lmtt);
+void xe_lmtt_invalidate_hw(struct xe_lmtt *lmtt);
 int xe_lmtt_prepare_pages(struct xe_lmtt *lmtt, unsigned int vfid, u64 range);
 int xe_lmtt_populate_pages(struct xe_lmtt *lmtt, unsigned int vfid, struct xe_bo *bo, u64 offset);
 void xe_lmtt_drop_pages(struct xe_lmtt *lmtt, unsigned int vfid);
-- 
2.47.1


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

* ✗ CI.checkpatch: warning for LMTT invalidation (rev3)
  2025-07-02 22:30 [PATCH 0/3] LMTT invalidation Michal Wajdeczko
                   ` (4 preceding siblings ...)
  2025-07-02 22:53 ` ✓ CI.KUnit: success " Patchwork
@ 2025-07-03 14:23 ` Patchwork
  2025-07-03 14:24 ` ✓ CI.KUnit: success " Patchwork
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 17+ messages in thread
From: Patchwork @ 2025-07-03 14:23 UTC (permalink / raw)
  To: Michal Wajdeczko; +Cc: intel-xe

== Series Details ==

Series: LMTT invalidation (rev3)
URL   : https://patchwork.freedesktop.org/series/151092/
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
f8ff75ae1d2127635239b134695774ed4045d05b
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit b8b96ddb7a331d28b806c1af235b0e0ed94a9d85
Author: Michal Wajdeczko <michal.wajdeczko@intel.com>
Date:   Thu Jul 3 00:30:41 2025 +0200

    drm/xe/pf: Invalidate LMTT after completing changes
    
    Once we finish populating all leaf pages in the VF's LMTT we should
    make sure that hardware will not access any stale data. Explicitly
    force LMTT invalidation (as it was already planned in the past).
    
    Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
    Cc: Michał Winiarski <michal.winiarski@intel.com>
    Cc: Piotr Piórkowski <piotr.piorkowski@intel.com>
+ /mt/dim checkpatch d04a54cd3b99001adbc4cd3305b44f9f3e658407 drm-intel
0f7d90616af0 drm/xe/pf: Force GuC virtualization mode
-:17: WARNING:COMMIT_LOG_LONG_LINE: Prefer a maximum 75 chars per line (possible unwrapped commit description?)
#17: 
 [ ] xe 0000:4d:00.0: [drm] *ERROR* GT0: FAST_REQ H2G fence 0x804e failed! e=0x30, h=0

total: 0 errors, 1 warnings, 0 checks, 52 lines checked
732ec78abc69 drm/xe/pf: Invalidate LMTT during LMEM unprovisioning
-:25: ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#25: FILE: drivers/gpu/drm/xe/xe_device.h:134:
+#define for_each_gt_on_tile(gt__, tile__, id__) \
+	for_each_gt((gt__), (tile__)->xe, (id__)) \
+		for_each_if((gt__)->tile == (tile__))

BUT SEE:

   do {} while (0) advice is over-stated in a few situations:

   The more obvious case is macros, like MODULE_PARM_DESC, invoked at
   file-scope, where C disallows code (it must be in functions).  See
   $exceptions if you have one to add by name.

   More troublesome is declarative macros used at top of new scope,
   like DECLARE_PER_CPU.  These might just compile with a do-while-0
   wrapper, but would be incorrect.  Most of these are handled by
   detecting struct,union,etc declaration primitives in $exceptions.

   Theres also macros called inside an if (block), which "return" an
   expression.  These cannot do-while, and need a ({}) wrapper.

   Enjoy this qualification while we work to improve our heuristics.

-:25: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'gt__' - possible side-effects?
#25: FILE: drivers/gpu/drm/xe/xe_device.h:134:
+#define for_each_gt_on_tile(gt__, tile__, id__) \
+	for_each_gt((gt__), (tile__)->xe, (id__)) \
+		for_each_if((gt__)->tile == (tile__))

-:25: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'tile__' - possible side-effects?
#25: FILE: drivers/gpu/drm/xe/xe_device.h:134:
+#define for_each_gt_on_tile(gt__, tile__, id__) \
+	for_each_gt((gt__), (tile__)->xe, (id__)) \
+		for_each_if((gt__)->tile == (tile__))

total: 1 errors, 0 warnings, 2 checks, 138 lines checked
b8b96ddb7a33 drm/xe/pf: Invalidate LMTT after completing changes



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

* ✓ CI.KUnit: success for LMTT invalidation (rev3)
  2025-07-02 22:30 [PATCH 0/3] LMTT invalidation Michal Wajdeczko
                   ` (5 preceding siblings ...)
  2025-07-03 14:23 ` ✗ CI.checkpatch: warning for LMTT invalidation (rev3) Patchwork
@ 2025-07-03 14:24 ` Patchwork
  2025-07-03 15:01 ` ✗ Xe.CI.BAT: failure " Patchwork
  2025-07-05  3:01 ` ✗ Xe.CI.Full: " Patchwork
  8 siblings, 0 replies; 17+ messages in thread
From: Patchwork @ 2025-07-03 14:24 UTC (permalink / raw)
  To: Michal Wajdeczko; +Cc: intel-xe

== Series Details ==

Series: LMTT invalidation (rev3)
URL   : https://patchwork.freedesktop.org/series/151092/
State : success

== Summary ==

+ trap cleanup EXIT
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig
[14:23:50] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[14:23:54] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48
[14:24:21] Starting KUnit Kernel (1/1)...
[14:24:21] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[14:24:21] ================== guc_buf (11 subtests) ===================
[14:24:21] [PASSED] test_smallest
[14:24:21] [PASSED] test_largest
[14:24:21] [PASSED] test_granular
[14:24:21] [PASSED] test_unique
[14:24:21] [PASSED] test_overlap
[14:24:21] [PASSED] test_reusable
[14:24:21] [PASSED] test_too_big
[14:24:21] [PASSED] test_flush
[14:24:21] [PASSED] test_lookup
[14:24:21] [PASSED] test_data
[14:24:21] [PASSED] test_class
[14:24:21] ===================== [PASSED] guc_buf =====================
[14:24:21] =================== guc_dbm (7 subtests) ===================
[14:24:21] [PASSED] test_empty
[14:24:21] [PASSED] test_default
[14:24:21] ======================== test_size  ========================
[14:24:21] [PASSED] 4
[14:24:21] [PASSED] 8
[14:24:21] [PASSED] 32
[14:24:21] [PASSED] 256
[14:24:21] ==================== [PASSED] test_size ====================
[14:24:21] ======================= test_reuse  ========================
[14:24:21] [PASSED] 4
[14:24:21] [PASSED] 8
[14:24:21] [PASSED] 32
[14:24:21] [PASSED] 256
[14:24:21] =================== [PASSED] test_reuse ====================
[14:24:21] =================== test_range_overlap  ====================
[14:24:21] [PASSED] 4
[14:24:21] [PASSED] 8
[14:24:21] [PASSED] 32
[14:24:21] [PASSED] 256
[14:24:21] =============== [PASSED] test_range_overlap ================
[14:24:21] =================== test_range_compact  ====================
[14:24:21] [PASSED] 4
[14:24:21] [PASSED] 8
[14:24:21] [PASSED] 32
[14:24:21] [PASSED] 256
[14:24:21] =============== [PASSED] test_range_compact ================
[14:24:21] ==================== test_range_spare  =====================
[14:24:21] [PASSED] 4
[14:24:21] [PASSED] 8
[14:24:21] [PASSED] 32
[14:24:21] [PASSED] 256
[14:24:21] ================ [PASSED] test_range_spare =================
[14:24:21] ===================== [PASSED] guc_dbm =====================
[14:24:21] =================== guc_idm (6 subtests) ===================
[14:24:21] [PASSED] bad_init
[14:24:21] [PASSED] no_init
[14:24:21] [PASSED] init_fini
[14:24:21] [PASSED] check_used
[14:24:21] [PASSED] check_quota
[14:24:21] [PASSED] check_all
[14:24:21] ===================== [PASSED] guc_idm =====================
[14:24:21] ================== no_relay (3 subtests) ===================
[14:24:21] [PASSED] xe_drops_guc2pf_if_not_ready
[14:24:21] [PASSED] xe_drops_guc2vf_if_not_ready
[14:24:21] [PASSED] xe_rejects_send_if_not_ready
[14:24:21] ==================== [PASSED] no_relay =====================
[14:24:21] ================== pf_relay (14 subtests) ==================
[14:24:21] [PASSED] pf_rejects_guc2pf_too_short
[14:24:21] [PASSED] pf_rejects_guc2pf_too_long
[14:24:21] [PASSED] pf_rejects_guc2pf_no_payload
[14:24:21] [PASSED] pf_fails_no_payload
[14:24:21] [PASSED] pf_fails_bad_origin
[14:24:21] [PASSED] pf_fails_bad_type
[14:24:21] [PASSED] pf_txn_reports_error
[14:24:21] [PASSED] pf_txn_sends_pf2guc
[14:24:21] [PASSED] pf_sends_pf2guc
[14:24:21] [SKIPPED] pf_loopback_nop
[14:24:21] [SKIPPED] pf_loopback_echo
[14:24:21] [SKIPPED] pf_loopback_fail
[14:24:21] [SKIPPED] pf_loopback_busy
[14:24:21] [SKIPPED] pf_loopback_retry
[14:24:21] ==================== [PASSED] pf_relay =====================
[14:24:21] ================== vf_relay (3 subtests) ===================
[14:24:21] [PASSED] vf_rejects_guc2vf_too_short
[14:24:21] [PASSED] vf_rejects_guc2vf_too_long
[14:24:21] [PASSED] vf_rejects_guc2vf_no_payload
[14:24:21] ==================== [PASSED] vf_relay =====================
[14:24:21] ================= pf_service (11 subtests) =================
[14:24:21] [PASSED] pf_negotiate_any
[14:24:21] [PASSED] pf_negotiate_base_match
[14:24:21] [PASSED] pf_negotiate_base_newer
[14:24:21] [PASSED] pf_negotiate_base_next
[14:24:21] [SKIPPED] pf_negotiate_base_older
[14:24:21] [PASSED] pf_negotiate_base_prev
[14:24:21] [PASSED] pf_negotiate_latest_match
[14:24:21] [PASSED] pf_negotiate_latest_newer
[14:24:21] [PASSED] pf_negotiate_latest_next
[14:24:21] [SKIPPED] pf_negotiate_latest_older
[14:24:21] [SKIPPED] pf_negotiate_latest_prev
[14:24:21] =================== [PASSED] pf_service ====================
[14:24:21] ===================== lmtt (1 subtest) =====================
[14:24:21] ======================== test_ops  =========================
[14:24:21] [PASSED] 2-level
[14:24:21] [PASSED] multi-level
[14:24:21] ==================== [PASSED] test_ops =====================
[14:24:21] ====================== [PASSED] lmtt =======================
[14:24:21] =================== xe_mocs (2 subtests) ===================
[14:24:21] ================ xe_live_mocs_kernel_kunit  ================
[14:24:21] =========== [SKIPPED] xe_live_mocs_kernel_kunit ============
[14:24:21] ================ xe_live_mocs_reset_kunit  =================
[14:24:21] ============ [SKIPPED] xe_live_mocs_reset_kunit ============
[14:24:21] ==================== [SKIPPED] xe_mocs =====================
[14:24:21] ================= xe_migrate (2 subtests) ==================
[14:24:21] ================= xe_migrate_sanity_kunit  =================
[14:24:21] ============ [SKIPPED] xe_migrate_sanity_kunit =============
[14:24:21] ================== xe_validate_ccs_kunit  ==================
[14:24:21] ============= [SKIPPED] xe_validate_ccs_kunit ==============
[14:24:21] =================== [SKIPPED] xe_migrate ===================
[14:24:21] ================== xe_dma_buf (1 subtest) ==================
[14:24:21] ==================== xe_dma_buf_kunit  =====================
[14:24:21] ================ [SKIPPED] xe_dma_buf_kunit ================
[14:24:21] =================== [SKIPPED] xe_dma_buf ===================
[14:24:21] ================= xe_bo_shrink (1 subtest) =================
[14:24:21] =================== xe_bo_shrink_kunit  ====================
[14:24:21] =============== [SKIPPED] xe_bo_shrink_kunit ===============
[14:24:21] ================== [SKIPPED] xe_bo_shrink ==================
[14:24:21] ==================== xe_bo (2 subtests) ====================
[14:24:21] ================== xe_ccs_migrate_kunit  ===================
[14:24:21] ============== [SKIPPED] xe_ccs_migrate_kunit ==============
[14:24:21] ==================== xe_bo_evict_kunit  ====================
[14:24:21] =============== [SKIPPED] xe_bo_evict_kunit ================
[14:24:21] ===================== [SKIPPED] xe_bo ======================
[14:24:21] ==================== args (11 subtests) ====================
[14:24:21] [PASSED] count_args_test
[14:24:21] [PASSED] call_args_example
[14:24:21] [PASSED] call_args_test
[14:24:21] [PASSED] drop_first_arg_example
[14:24:21] [PASSED] drop_first_arg_test
[14:24:21] [PASSED] first_arg_example
[14:24:21] [PASSED] first_arg_test
[14:24:21] [PASSED] last_arg_example
[14:24:21] [PASSED] last_arg_test
[14:24:21] [PASSED] pick_arg_example
[14:24:21] [PASSED] sep_comma_example
[14:24:21] ====================== [PASSED] args =======================
[14:24:21] =================== xe_pci (3 subtests) ====================
[14:24:21] ==================== check_graphics_ip  ====================
[14:24:21] [PASSED] 12.70 Xe_LPG
[14:24:21] [PASSED] 12.71 Xe_LPG
[14:24:21] [PASSED] 12.74 Xe_LPG+
[14:24:21] [PASSED] 20.01 Xe2_HPG
[14:24:21] [PASSED] 20.02 Xe2_HPG
[14:24:21] [PASSED] 20.04 Xe2_LPG
[14:24:21] [PASSED] 30.00 Xe3_LPG
[14:24:21] [PASSED] 30.01 Xe3_LPG
[14:24:21] [PASSED] 30.03 Xe3_LPG
[14:24:21] ================ [PASSED] check_graphics_ip ================
[14:24:21] ===================== check_media_ip  ======================
[14:24:21] [PASSED] 13.00 Xe_LPM+
[14:24:21] [PASSED] 13.01 Xe2_HPM
[14:24:21] [PASSED] 20.00 Xe2_LPM
[14:24:21] [PASSED] 30.00 Xe3_LPM
[14:24:21] [PASSED] 30.02 Xe3_LPM
[14:24:21] ================= [PASSED] check_media_ip ==================
[14:24:21] ================= check_platform_gt_count  =================
[14:24:21] [PASSED] 0x9A60 (TIGERLAKE)
[14:24:21] [PASSED] 0x9A68 (TIGERLAKE)
[14:24:21] [PASSED] 0x9A70 (TIGERLAKE)
[14:24:21] [PASSED] 0x9A40 (TIGERLAKE)
[14:24:21] [PASSED] 0x9A49 (TIGERLAKE)
[14:24:21] [PASSED] 0x9A59 (TIGERLAKE)
[14:24:21] [PASSED] 0x9A78 (TIGERLAKE)
[14:24:21] [PASSED] 0x9AC0 (TIGERLAKE)
[14:24:21] [PASSED] 0x9AC9 (TIGERLAKE)
[14:24:21] [PASSED] 0x9AD9 (TIGERLAKE)
[14:24:21] [PASSED] 0x9AF8 (TIGERLAKE)
[14:24:21] [PASSED] 0x4C80 (ROCKETLAKE)
[14:24:21] [PASSED] 0x4C8A (ROCKETLAKE)
[14:24:21] [PASSED] 0x4C8B (ROCKETLAKE)
[14:24:21] [PASSED] 0x4C8C (ROCKETLAKE)
[14:24:21] [PASSED] 0x4C90 (ROCKETLAKE)
[14:24:21] [PASSED] 0x4C9A (ROCKETLAKE)
[14:24:21] [PASSED] 0x4680 (ALDERLAKE_S)
[14:24:21] [PASSED] 0x4682 (ALDERLAKE_S)
[14:24:21] [PASSED] 0x4688 (ALDERLAKE_S)
[14:24:21] [PASSED] 0x468A (ALDERLAKE_S)
[14:24:21] [PASSED] 0x468B (ALDERLAKE_S)
[14:24:21] [PASSED] 0x4690 (ALDERLAKE_S)
[14:24:21] [PASSED] 0x4692 (ALDERLAKE_S)
[14:24:21] [PASSED] 0x4693 (ALDERLAKE_S)
[14:24:21] [PASSED] 0x46A0 (ALDERLAKE_P)
[14:24:21] [PASSED] 0x46A1 (ALDERLAKE_P)
[14:24:21] [PASSED] 0x46A2 (ALDERLAKE_P)
[14:24:21] [PASSED] 0x46A3 (ALDERLAKE_P)
[14:24:21] [PASSED] 0x46A6 (ALDERLAKE_P)
[14:24:21] [PASSED] 0x46A8 (ALDERLAKE_P)
[14:24:21] [PASSED] 0x46AA (ALDERLAKE_P)
[14:24:21] [PASSED] 0x462A (ALDERLAKE_P)
[14:24:21] [PASSED] 0x4626 (ALDERLAKE_P)
[14:24:21] [PASSED] 0x4628 (ALDERLAKE_P)
[14:24:21] [PASSED] 0x46B0 (ALDERLAKE_P)
[14:24:21] [PASSED] 0x46B1 (ALDERLAKE_P)
[14:24:21] [PASSED] 0x46B2 (ALDERLAKE_P)
[14:24:21] [PASSED] 0x46B3 (ALDERLAKE_P)
[14:24:21] [PASSED] 0x46C0 (ALDERLAKE_P)
[14:24:21] [PASSED] 0x46C1 (ALDERLAKE_P)
[14:24:21] [PASSED] 0x46C2 (ALDERLAKE_P)
[14:24:21] [PASSED] 0x46C3 (ALDERLAKE_P)
[14:24:21] [PASSED] 0x46D0 (ALDERLAKE_N)
[14:24:21] [PASSED] 0x46D1 (ALDERLAKE_N)
[14:24:21] [PASSED] 0x46D2 (ALDERLAKE_N)
[14:24:21] [PASSED] 0x46D3 (ALDERLAKE_N)
[14:24:21] [PASSED] 0x46D4 (ALDERLAKE_N)
[14:24:21] [PASSED] 0xA721 (ALDERLAKE_P)
[14:24:21] [PASSED] 0xA7A1 (ALDERLAKE_P)
[14:24:21] [PASSED] 0xA7A9 (ALDERLAKE_P)
[14:24:21] [PASSED] 0xA7AC (ALDERLAKE_P)
[14:24:21] [PASSED] 0xA7AD (ALDERLAKE_P)
[14:24:21] [PASSED] 0xA720 (ALDERLAKE_P)
[14:24:21] [PASSED] 0xA7A0 (ALDERLAKE_P)
[14:24:21] [PASSED] 0xA7A8 (ALDERLAKE_P)
[14:24:21] [PASSED] 0xA7AA (ALDERLAKE_P)
[14:24:21] [PASSED] 0xA7AB (ALDERLAKE_P)
[14:24:21] [PASSED] 0xA780 (ALDERLAKE_S)
[14:24:21] [PASSED] 0xA781 (ALDERLAKE_S)
[14:24:21] [PASSED] 0xA782 (ALDERLAKE_S)
[14:24:21] [PASSED] 0xA783 (ALDERLAKE_S)
[14:24:21] [PASSED] 0xA788 (ALDERLAKE_S)
[14:24:21] [PASSED] 0xA789 (ALDERLAKE_S)
[14:24:21] [PASSED] 0xA78A (ALDERLAKE_S)
[14:24:21] [PASSED] 0xA78B (ALDERLAKE_S)
[14:24:21] [PASSED] 0x4905 (DG1)
[14:24:21] [PASSED] 0x4906 (DG1)
[14:24:21] [PASSED] 0x4907 (DG1)
[14:24:21] [PASSED] 0x4908 (DG1)
[14:24:21] [PASSED] 0x4909 (DG1)
[14:24:21] [PASSED] 0x56C0 (DG2)
[14:24:21] [PASSED] 0x56C2 (DG2)
[14:24:21] [PASSED] 0x56C1 (DG2)
[14:24:21] [PASSED] 0x7D51 (METEORLAKE)
[14:24:21] [PASSED] 0x7DD1 (METEORLAKE)
[14:24:21] [PASSED] 0x7D41 (METEORLAKE)
[14:24:21] [PASSED] 0x7D67 (METEORLAKE)
[14:24:21] [PASSED] 0xB640 (METEORLAKE)
[14:24:21] [PASSED] 0x56A0 (DG2)
[14:24:21] [PASSED] 0x56A1 (DG2)
[14:24:21] [PASSED] 0x56A2 (DG2)
[14:24:21] [PASSED] 0x56BE (DG2)
[14:24:21] [PASSED] 0x56BF (DG2)
[14:24:21] [PASSED] 0x5690 (DG2)
[14:24:21] [PASSED] 0x5691 (DG2)
[14:24:21] [PASSED] 0x5692 (DG2)
[14:24:21] [PASSED] 0x56A5 (DG2)
[14:24:21] [PASSED] 0x56A6 (DG2)
[14:24:21] [PASSED] 0x56B0 (DG2)
[14:24:21] [PASSED] 0x56B1 (DG2)
[14:24:21] [PASSED] 0x56BA (DG2)
[14:24:21] [PASSED] 0x56BB (DG2)
[14:24:21] [PASSED] 0x56BC (DG2)
[14:24:21] [PASSED] 0x56BD (DG2)
[14:24:21] [PASSED] 0x5693 (DG2)
[14:24:21] [PASSED] 0x5694 (DG2)
[14:24:21] [PASSED] 0x5695 (DG2)
[14:24:21] [PASSED] 0x56A3 (DG2)
[14:24:21] [PASSED] 0x56A4 (DG2)
[14:24:21] [PASSED] 0x56B2 (DG2)
[14:24:21] [PASSED] 0x56B3 (DG2)
[14:24:21] [PASSED] 0x5696 (DG2)
[14:24:21] [PASSED] 0x5697 (DG2)
[14:24:21] [PASSED] 0xB69 (PVC)
[14:24:21] [PASSED] 0xB6E (PVC)
[14:24:21] [PASSED] 0xBD4 (PVC)
[14:24:21] [PASSED] 0xBD5 (PVC)
[14:24:21] [PASSED] 0xBD6 (PVC)
[14:24:21] [PASSED] 0xBD7 (PVC)
[14:24:21] [PASSED] 0xBD8 (PVC)
[14:24:21] [PASSED] 0xBD9 (PVC)
[14:24:21] [PASSED] 0xBDA (PVC)
[14:24:21] [PASSED] 0xBDB (PVC)
[14:24:21] [PASSED] 0xBE0 (PVC)
[14:24:21] [PASSED] 0xBE1 (PVC)
[14:24:21] [PASSED] 0xBE5 (PVC)
[14:24:21] [PASSED] 0x7D40 (METEORLAKE)
[14:24:21] [PASSED] 0x7D45 (METEORLAKE)
[14:24:21] [PASSED] 0x7D55 (METEORLAKE)
[14:24:21] [PASSED] 0x7D60 (METEORLAKE)
[14:24:21] [PASSED] 0x7DD5 (METEORLAKE)
[14:24:21] [PASSED] 0x6420 (LUNARLAKE)
[14:24:21] [PASSED] 0x64A0 (LUNARLAKE)
[14:24:21] [PASSED] 0x64B0 (LUNARLAKE)
[14:24:21] [PASSED] 0xE202 (BATTLEMAGE)
[14:24:21] [PASSED] 0xE20B (BATTLEMAGE)
[14:24:21] [PASSED] 0xE20C (BATTLEMAGE)
[14:24:21] [PASSED] 0xE20D (BATTLEMAGE)
[14:24:21] [PASSED] 0xE210 (BATTLEMAGE)
[14:24:21] [PASSED] 0xE211 (BATTLEMAGE)
[14:24:21] [PASSED] 0xE212 (BATTLEMAGE)
[14:24:21] [PASSED] 0xE216 (BATTLEMAGE)
[14:24:21] [PASSED] 0xE220 (BATTLEMAGE)
[14:24:21] [PASSED] 0xE221 (BATTLEMAGE)
[14:24:21] [PASSED] 0xE222 (BATTLEMAGE)
[14:24:21] [PASSED] 0xE223 (BATTLEMAGE)
[14:24:21] [PASSED] 0xB080 (PANTHERLAKE)
[14:24:21] [PASSED] 0xB081 (PANTHERLAKE)
[14:24:21] [PASSED] 0xB082 (PANTHERLAKE)
[14:24:21] [PASSED] 0xB083 (PANTHERLAKE)
[14:24:21] [PASSED] 0xB084 (PANTHERLAKE)
[14:24:21] [PASSED] 0xB085 (PANTHERLAKE)
[14:24:21] [PASSED] 0xB086 (PANTHERLAKE)
[14:24:21] [PASSED] 0xB087 (PANTHERLAKE)
[14:24:21] [PASSED] 0xB08F (PANTHERLAKE)
[14:24:21] [PASSED] 0xB090 (PANTHERLAKE)
[14:24:21] [PASSED] 0xB0A0 (PANTHERLAKE)
[14:24:21] [PASSED] 0xB0B0 (PANTHERLAKE)
[14:24:21] [PASSED] 0xFD80 (PANTHERLAKE)
[14:24:21] [PASSED] 0xFD81 (PANTHERLAKE)
[14:24:21] ============= [PASSED] check_platform_gt_count =============
[14:24:21] ===================== [PASSED] xe_pci ======================
[14:24:21] =================== xe_rtp (2 subtests) ====================
[14:24:21] =============== xe_rtp_process_to_sr_tests  ================
[14:24:21] [PASSED] coalesce-same-reg
[14:24:21] [PASSED] no-match-no-add
[14:24:21] [PASSED] match-or
[14:24:21] [PASSED] match-or-xfail
[14:24:21] [PASSED] no-match-no-add-multiple-rules
[14:24:21] [PASSED] two-regs-two-entries
[14:24:21] [PASSED] clr-one-set-other
[14:24:21] [PASSED] set-field
[14:24:21] [PASSED] conflict-duplicate
[14:24:21] [PASSED] conflict-not-disjoint
[14:24:21] [PASSED] conflict-reg-type
[14:24:21] =========== [PASSED] xe_rtp_process_to_sr_tests ============
[14:24:21] ================== xe_rtp_process_tests  ===================
[14:24:21] [PASSED] active1
[14:24:21] [PASSED] active2
[14:24:21] [PASSED] active-inactive
[14:24:21] [PASSED] inactive-active
[14:24:21] [PASSED] inactive-1st_or_active-inactive
[14:24:21] [PASSED] inactive-2nd_or_active-inactive
[14:24:21] [PASSED] inactive-last_or_active-inactive
[14:24:21] [PASSED] inactive-no_or_active-inactive
[14:24:21] ============== [PASSED] xe_rtp_process_tests ===============
[14:24:21] ===================== [PASSED] xe_rtp ======================
[14:24:21] ==================== xe_wa (1 subtest) =====================
[14:24:21] ======================== xe_wa_gt  =========================
[14:24:21] [PASSED] TIGERLAKE (B0)
[14:24:21] [PASSED] DG1 (A0)
[14:24:21] [PASSED] DG1 (B0)
[14:24:21] [PASSED] ALDERLAKE_S (A0)
[14:24:21] [PASSED] ALDERLAKE_S (B0)
[14:24:21] [PASSED] ALDERLAKE_S (C0)
[14:24:21] [PASSED] ALDERLAKE_S (D0)
[14:24:21] [PASSED] ALDERLAKE_P (A0)
[14:24:21] [PASSED] ALDERLAKE_P (B0)
[14:24:21] [PASSED] ALDERLAKE_P (C0)
[14:24:21] [PASSED] ALDERLAKE_S_RPLS (D0)
[14:24:21] [PASSED] ALDERLAKE_P_RPLU (E0)
[14:24:21] [PASSED] DG2_G10 (C0)
[14:24:21] [PASSED] DG2_G11 (B1)
[14:24:21] [PASSED] DG2_G12 (A1)
[14:24:21] [PASSED] METEORLAKE (g:A0, m:A0)
[14:24:21] [PASSED] METEORLAKE (g:A0, m:A0)
[14:24:21] [PASSED] METEORLAKE (g:A0, m:A0)
[14:24:21] [PASSED] LUNARLAKE (g:A0, m:A0)
[14:24:21] [PASSED] LUNARLAKE (g:B0, m:A0)
[14:24:21] [PASSED] BATTLEMAGE (g:A0, m:A1)
stty: 'standard input': Inappropriate ioctl for device
[14:24:21] ==================== [PASSED] xe_wa_gt =====================
[14:24:21] ====================== [PASSED] xe_wa ======================
[14:24:21] ============================================================
[14:24:21] Testing complete. Ran 296 tests: passed: 280, skipped: 16
[14:24:21] Elapsed time: 31.257s total, 4.161s configuring, 26.780s building, 0.308s running

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

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

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



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

* ✗ Xe.CI.BAT: failure for LMTT invalidation (rev3)
  2025-07-02 22:30 [PATCH 0/3] LMTT invalidation Michal Wajdeczko
                   ` (6 preceding siblings ...)
  2025-07-03 14:24 ` ✓ CI.KUnit: success " Patchwork
@ 2025-07-03 15:01 ` Patchwork
  2025-07-05  3:01 ` ✗ Xe.CI.Full: " Patchwork
  8 siblings, 0 replies; 17+ messages in thread
From: Patchwork @ 2025-07-03 15:01 UTC (permalink / raw)
  To: Michal Wajdeczko; +Cc: intel-xe

[-- Attachment #1: Type: text/plain, Size: 1972 bytes --]

== Series Details ==

Series: LMTT invalidation (rev3)
URL   : https://patchwork.freedesktop.org/series/151092/
State : failure

== Summary ==

CI Bug Log - changes from xe-3339-d04a54cd3b99001adbc4cd3305b44f9f3e658407_BAT -> xe-pw-151092v3_BAT
====================================================

Summary
-------

  **FAILURE**

  Serious unknown changes coming with xe-pw-151092v3_BAT absolutely need to be
  verified manually.
  
  If you think the reported changes have nothing to do with the changes
  introduced in xe-pw-151092v3_BAT, please notify your bug team (I915-ci-infra@lists.freedesktop.org) to allow them
  to document this new failure mode, which will reduce false positives in CI.

  

Participating hosts (9 -> 8)
------------------------------

  Missing    (1): bat-adlp-vm 

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

  Here are the unknown changes that may have been introduced in xe-pw-151092v3_BAT:

### IGT changes ###

#### Possible regressions ####

  * igt@intel_sysfs_debugfs@xe-debugfs-read-all-entries:
    - bat-adlp-7:         [PASS][1] -> [DMESG-WARN][2]
   [1]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3339-d04a54cd3b99001adbc4cd3305b44f9f3e658407/bat-adlp-7/igt@intel_sysfs_debugfs@xe-debugfs-read-all-entries.html
   [2]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151092v3/bat-adlp-7/igt@intel_sysfs_debugfs@xe-debugfs-read-all-entries.html

  


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

  * IGT: IGT_8434 -> IGT_8436
  * Linux: xe-3339-d04a54cd3b99001adbc4cd3305b44f9f3e658407 -> xe-pw-151092v3

  IGT_8434: 5185b9527673518a418d575c3f58b5554e27f111 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
  IGT_8436: 3b7595f0e7f95de6d79e7ae6bb72e86b0a08a08c @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
  xe-3339-d04a54cd3b99001adbc4cd3305b44f9f3e658407: d04a54cd3b99001adbc4cd3305b44f9f3e658407
  xe-pw-151092v3: 151092v3

== Logs ==

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

[-- Attachment #2: Type: text/html, Size: 2571 bytes --]

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

* Re: [PATCH 2/3] drm/xe/pf: Invalidate LMTT during LMEM unprovisioning
  2025-07-02 22:30 ` [PATCH 2/3] drm/xe/pf: Invalidate LMTT during LMEM unprovisioning Michal Wajdeczko
  2025-07-03  9:10   ` [PATCH v2 " Michal Wajdeczko
  2025-07-03 14:18   ` [PATCH v3 " Michal Wajdeczko
@ 2025-07-03 17:31   ` Matthew Brost
  2025-07-03 17:42     ` Michal Wajdeczko
  2 siblings, 1 reply; 17+ messages in thread
From: Matthew Brost @ 2025-07-03 17:31 UTC (permalink / raw)
  To: Michal Wajdeczko; +Cc: intel-xe, Michał Winiarski, Piotr Piórkowski

On Thu, Jul 03, 2025 at 12:30:40AM +0200, Michal Wajdeczko wrote:
> Invalidate LMTT immediately after removing VF's LMTT page tables
> and clearing root PTE in the LMTT PD to avoid any invalid access
> by the hardware (and VF) due to stale data.
> 
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
> Cc: Michał Winiarski <michal.winiarski@intel.com>
> Cc: Piotr Piórkowski <piotr.piorkowski@intel.com>
> ---
>  drivers/gpu/drm/xe/xe_device.h              |  4 ++
>  drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c | 35 +++++++++++++
>  drivers/gpu/drm/xe/xe_gt_tlb_invalidation.h |  2 +
>  drivers/gpu/drm/xe/xe_lmtt.c                | 56 +++++++++++++++++++++
>  drivers/gpu/drm/xe/xe_lmtt.h                |  1 +
>  5 files changed, 98 insertions(+)
> 
> diff --git a/drivers/gpu/drm/xe/xe_device.h b/drivers/gpu/drm/xe/xe_device.h
> index e4da797a984b..a7acd899aa76 100644
> --- a/drivers/gpu/drm/xe/xe_device.h
> +++ b/drivers/gpu/drm/xe/xe_device.h
> @@ -130,6 +130,10 @@ static inline bool xe_device_uc_enabled(struct xe_device *xe)
>  	for ((id__) = 1; (id__) < (xe__)->info.tile_count; (id__)++) \
>  		for_each_if((tile__) = &(xe__)->tiles[(id__)])
>  
> +#define for_each_gt_on_tile(gt__, tile__, id__) \
> +	for ((id__) = 0; (id__) < XE_MAX_GT_PER_TILE; (id__)++) \
> +		for_each_if((gt__) = xe_tile_get_gt((tile__), (id__)))
> +
>  /*
>   * FIXME: This only works for now since multi-tile and standalone media
>   * happen to be mutually exclusive.  Future platforms may change this...
> diff --git a/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c b/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c
> index 6088df8e159c..4fdd5b300265 100644
> --- a/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c
> +++ b/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c
> @@ -330,6 +330,41 @@ int xe_gt_tlb_invalidation_ggtt(struct xe_gt *gt)
>  	return 0;
>  }
>  
> +static int send_tlb_invalidation_all(struct xe_gt *gt,
> +				     struct xe_gt_tlb_invalidation_fence *fence)
> +{
> +	u32 action[] = {
> +		XE_GUC_ACTION_TLB_INVALIDATION_ALL,
> +		0,  /* seqno, replaced in send_tlb_invalidation */
> +		MAKE_INVAL_OP(XE_GUC_TLB_INVAL_FULL),
> +	};
> +
> +	return send_tlb_invalidation(&gt->uc.guc, fence, action, ARRAY_SIZE(action));
> +}
> +
> +/**
> + * xe_gt_tlb_invalidation_all_async - Invalidate all TLBs across PF and all VFs.
> + * @gt: the &xe_gt structure
> + * @fence: the &xe_gt_tlb_invalidation_fence to be signaled on completion
> + *
> + * Send a request to invalidate all TLBs across PF and all VFs.
> + *
> + * Return: 0 on success, negative error code on error
> + */
> +int xe_gt_tlb_invalidation_all_async(struct xe_gt *gt,
> +				     struct xe_gt_tlb_invalidation_fence *fence)

I'd drop _async part of the naming as I think it is implied with the
fence argument that is this async, like xe_gt_tlb_invalidation_range.

All the changes around GT TLB invalidations look correct (for now, this
whole layer needs rework).

Matt 

> +{
> +	int err;
> +
> +	xe_gt_assert(gt, gt == fence->gt);
> +
> +	err = send_tlb_invalidation_all(gt, fence);
> +	if (err)
> +		xe_gt_err(gt, "TLB invalidation request failed (%pe)", ERR_PTR(err));
> +
> +	return err;
> +}
> +
>  /*
>   * Ensure that roundup_pow_of_two(length) doesn't overflow.
>   * Note that roundup_pow_of_two() operates on unsigned long,
> diff --git a/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.h b/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.h
> index 31072dbcad8e..40648f952aee 100644
> --- a/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.h
> +++ b/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.h
> @@ -20,6 +20,8 @@ int xe_gt_tlb_invalidation_init_early(struct xe_gt *gt);
>  void xe_gt_tlb_invalidation_reset(struct xe_gt *gt);
>  int xe_gt_tlb_invalidation_ggtt(struct xe_gt *gt);
>  void xe_gt_tlb_invalidation_vm(struct xe_gt *gt, struct xe_vm *vm);
> +int xe_gt_tlb_invalidation_all_async(struct xe_gt *gt,
> +				     struct xe_gt_tlb_invalidation_fence *fence);
>  int xe_gt_tlb_invalidation_range(struct xe_gt *gt,
>  				 struct xe_gt_tlb_invalidation_fence *fence,
>  				 u64 start, u64 end, u32 asid);
> diff --git a/drivers/gpu/drm/xe/xe_lmtt.c b/drivers/gpu/drm/xe/xe_lmtt.c
> index b56437a816e4..aa51c06e2416 100644
> --- a/drivers/gpu/drm/xe/xe_lmtt.c
> +++ b/drivers/gpu/drm/xe/xe_lmtt.c
> @@ -11,6 +11,7 @@
>  
>  #include "xe_assert.h"
>  #include "xe_bo.h"
> +#include "xe_gt_tlb_invalidation.h"
>  #include "xe_lmtt.h"
>  #include "xe_map.h"
>  #include "xe_mmio.h"
> @@ -216,6 +217,60 @@ void xe_lmtt_init_hw(struct xe_lmtt *lmtt)
>  	lmtt_setup_dir_ptr(lmtt);
>  }
>  
> +static int lmtt_invalidate_hw(struct xe_lmtt *lmtt)
> +{
> +	struct xe_gt_tlb_invalidation_fence fences[XE_MAX_GT_PER_TILE];
> +	struct xe_gt_tlb_invalidation_fence *fence = fences;
> +	struct xe_tile *tile = lmtt_to_tile(lmtt);
> +	struct xe_gt *gt;
> +	int num_fences;
> +	int result = 0;
> +	int err;
> +	u8 id;
> +
> +	for_each_gt_on_tile(gt, tile, id) {
> +		xe_gt_tlb_invalidation_fence_init(gt, fence, true);
> +		err = xe_gt_tlb_invalidation_all_async(gt, fence);
> +		result = result ?: err;
> +		fence++;
> +	}
> +
> +	num_fences = fence - fences;
> +	lmtt_debug(lmtt, "num_fences=%d err=%d\n", num_fences, result);
> +
> +	/*
> +	 * It is fine to wait for all fences, even for those which covers the
> +	 * invalidation request that failed, as such fence should be already
> +	 * marked as signaled.
> +	 */
> +	fence = fences;
> +	for_each_gt_on_tile(gt, tile, id)
> +		xe_gt_tlb_invalidation_fence_wait(fence++);
> +
> +	return result;
> +}
> +
> +/**
> + * xe_lmtt_invalidate_hw - Invalidate LMTT hardware.
> + * @lmtt: the &xe_lmtt to invalidate
> + *
> + * Send requests to all GuCs on this tile to invalidate all TLBs.
> + *
> + * This function should be called only when running as a PF driver.
> + */
> +void xe_lmtt_invalidate_hw(struct xe_lmtt *lmtt)
> +{
> +	struct xe_device *xe = lmtt_to_xe(lmtt);
> +	int err;
> +
> +	lmtt_assert(lmtt, IS_SRIOV_PF(xe));
> +
> +	err = lmtt_invalidate_hw(lmtt);
> +	if (err)
> +		xe_sriov_warn(xe, "LMTT%u invalidation failed (%pe)",
> +			      lmtt_to_tile(lmtt)->id, ERR_PTR(err));
> +}
> +
>  static void lmtt_write_pte(struct xe_lmtt *lmtt, struct xe_lmtt_pt *pt,
>  			   u64 pte, unsigned int idx)
>  {
> @@ -265,6 +320,7 @@ static void lmtt_drop_pages(struct xe_lmtt *lmtt, unsigned int vfid)
>  		return;
>  
>  	lmtt_write_pte(lmtt, pd, LMTT_PTE_INVALID, vfid);
> +	lmtt_invalidate_hw(lmtt);
>  
>  	lmtt_assert(lmtt, pd->level > 0);
>  	lmtt_assert(lmtt, pt->level == pd->level - 1);
> diff --git a/drivers/gpu/drm/xe/xe_lmtt.h b/drivers/gpu/drm/xe/xe_lmtt.h
> index cb10ef994db6..75a234fbf367 100644
> --- a/drivers/gpu/drm/xe/xe_lmtt.h
> +++ b/drivers/gpu/drm/xe/xe_lmtt.h
> @@ -15,6 +15,7 @@ struct xe_lmtt_ops;
>  #ifdef CONFIG_PCI_IOV
>  int xe_lmtt_init(struct xe_lmtt *lmtt);
>  void xe_lmtt_init_hw(struct xe_lmtt *lmtt);
> +void xe_lmtt_invalidate_hw(struct xe_lmtt *lmtt);
>  int xe_lmtt_prepare_pages(struct xe_lmtt *lmtt, unsigned int vfid, u64 range);
>  int xe_lmtt_populate_pages(struct xe_lmtt *lmtt, unsigned int vfid, struct xe_bo *bo, u64 offset);
>  void xe_lmtt_drop_pages(struct xe_lmtt *lmtt, unsigned int vfid);
> -- 
> 2.47.1
> 

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

* Re: [PATCH 2/3] drm/xe/pf: Invalidate LMTT during LMEM unprovisioning
  2025-07-03 17:31   ` [PATCH " Matthew Brost
@ 2025-07-03 17:42     ` Michal Wajdeczko
  2025-07-03 17:56       ` Matthew Brost
  0 siblings, 1 reply; 17+ messages in thread
From: Michal Wajdeczko @ 2025-07-03 17:42 UTC (permalink / raw)
  To: Matthew Brost; +Cc: intel-xe, Michał Winiarski, Piotr Piórkowski



On 03.07.2025 19:31, Matthew Brost wrote:
> On Thu, Jul 03, 2025 at 12:30:40AM +0200, Michal Wajdeczko wrote:
>> Invalidate LMTT immediately after removing VF's LMTT page tables
>> and clearing root PTE in the LMTT PD to avoid any invalid access
>> by the hardware (and VF) due to stale data.
>>
>> Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
>> Cc: Michał Winiarski <michal.winiarski@intel.com>
>> Cc: Piotr Piórkowski <piotr.piorkowski@intel.com>
>> ---
>>  drivers/gpu/drm/xe/xe_device.h              |  4 ++
>>  drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c | 35 +++++++++++++
>>  drivers/gpu/drm/xe/xe_gt_tlb_invalidation.h |  2 +
>>  drivers/gpu/drm/xe/xe_lmtt.c                | 56 +++++++++++++++++++++
>>  drivers/gpu/drm/xe/xe_lmtt.h                |  1 +
>>  5 files changed, 98 insertions(+)
>>
>> diff --git a/drivers/gpu/drm/xe/xe_device.h b/drivers/gpu/drm/xe/xe_device.h
>> index e4da797a984b..a7acd899aa76 100644
>> --- a/drivers/gpu/drm/xe/xe_device.h
>> +++ b/drivers/gpu/drm/xe/xe_device.h
>> @@ -130,6 +130,10 @@ static inline bool xe_device_uc_enabled(struct xe_device *xe)
>>  	for ((id__) = 1; (id__) < (xe__)->info.tile_count; (id__)++) \
>>  		for_each_if((tile__) = &(xe__)->tiles[(id__)])
>>  
>> +#define for_each_gt_on_tile(gt__, tile__, id__) \
>> +	for ((id__) = 0; (id__) < XE_MAX_GT_PER_TILE; (id__)++) \
>> +		for_each_if((gt__) = xe_tile_get_gt((tile__), (id__)))
>> +
>>  /*
>>   * FIXME: This only works for now since multi-tile and standalone media
>>   * happen to be mutually exclusive.  Future platforms may change this...
>> diff --git a/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c b/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c
>> index 6088df8e159c..4fdd5b300265 100644
>> --- a/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c
>> +++ b/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c
>> @@ -330,6 +330,41 @@ int xe_gt_tlb_invalidation_ggtt(struct xe_gt *gt)
>>  	return 0;
>>  }
>>  
>> +static int send_tlb_invalidation_all(struct xe_gt *gt,
>> +				     struct xe_gt_tlb_invalidation_fence *fence)
>> +{
>> +	u32 action[] = {
>> +		XE_GUC_ACTION_TLB_INVALIDATION_ALL,
>> +		0,  /* seqno, replaced in send_tlb_invalidation */
>> +		MAKE_INVAL_OP(XE_GUC_TLB_INVAL_FULL),
>> +	};
>> +
>> +	return send_tlb_invalidation(&gt->uc.guc, fence, action, ARRAY_SIZE(action));
>> +}
>> +
>> +/**
>> + * xe_gt_tlb_invalidation_all_async - Invalidate all TLBs across PF and all VFs.
>> + * @gt: the &xe_gt structure
>> + * @fence: the &xe_gt_tlb_invalidation_fence to be signaled on completion
>> + *
>> + * Send a request to invalidate all TLBs across PF and all VFs.
>> + *
>> + * Return: 0 on success, negative error code on error
>> + */
>> +int xe_gt_tlb_invalidation_all_async(struct xe_gt *gt,
>> +				     struct xe_gt_tlb_invalidation_fence *fence)
> 
> I'd drop _async part of the naming as I think it is implied with the
> fence argument that is this async, like xe_gt_tlb_invalidation_range.

this suffix is here because initially I was also having this variant:

	int xe_gt_tlb_invalidation_all(struct xe_gt *gt);

which actually was waiting for the TLB fence inside - like it is done in
the xe_gt_tlb_invalidation_ggtt() - but finally dropped it from this
patch as not used in current code

> 
> All the changes around GT TLB invalidations look correct (for now, this
> whole layer needs rework).

yes, please ;)

> 
> Matt 
> 

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

* Re: [PATCH 2/3] drm/xe/pf: Invalidate LMTT during LMEM unprovisioning
  2025-07-03 17:42     ` Michal Wajdeczko
@ 2025-07-03 17:56       ` Matthew Brost
  0 siblings, 0 replies; 17+ messages in thread
From: Matthew Brost @ 2025-07-03 17:56 UTC (permalink / raw)
  To: Michal Wajdeczko; +Cc: intel-xe, Michał Winiarski, Piotr Piórkowski

On Thu, Jul 03, 2025 at 07:42:25PM +0200, Michal Wajdeczko wrote:
> 
> 
> On 03.07.2025 19:31, Matthew Brost wrote:
> > On Thu, Jul 03, 2025 at 12:30:40AM +0200, Michal Wajdeczko wrote:
> >> Invalidate LMTT immediately after removing VF's LMTT page tables
> >> and clearing root PTE in the LMTT PD to avoid any invalid access
> >> by the hardware (and VF) due to stale data.
> >>
> >> Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
> >> Cc: Michał Winiarski <michal.winiarski@intel.com>
> >> Cc: Piotr Piórkowski <piotr.piorkowski@intel.com>
> >> ---
> >>  drivers/gpu/drm/xe/xe_device.h              |  4 ++
> >>  drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c | 35 +++++++++++++
> >>  drivers/gpu/drm/xe/xe_gt_tlb_invalidation.h |  2 +
> >>  drivers/gpu/drm/xe/xe_lmtt.c                | 56 +++++++++++++++++++++
> >>  drivers/gpu/drm/xe/xe_lmtt.h                |  1 +
> >>  5 files changed, 98 insertions(+)
> >>
> >> diff --git a/drivers/gpu/drm/xe/xe_device.h b/drivers/gpu/drm/xe/xe_device.h
> >> index e4da797a984b..a7acd899aa76 100644
> >> --- a/drivers/gpu/drm/xe/xe_device.h
> >> +++ b/drivers/gpu/drm/xe/xe_device.h
> >> @@ -130,6 +130,10 @@ static inline bool xe_device_uc_enabled(struct xe_device *xe)
> >>  	for ((id__) = 1; (id__) < (xe__)->info.tile_count; (id__)++) \
> >>  		for_each_if((tile__) = &(xe__)->tiles[(id__)])
> >>  
> >> +#define for_each_gt_on_tile(gt__, tile__, id__) \
> >> +	for ((id__) = 0; (id__) < XE_MAX_GT_PER_TILE; (id__)++) \
> >> +		for_each_if((gt__) = xe_tile_get_gt((tile__), (id__)))
> >> +
> >>  /*
> >>   * FIXME: This only works for now since multi-tile and standalone media
> >>   * happen to be mutually exclusive.  Future platforms may change this...
> >> diff --git a/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c b/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c
> >> index 6088df8e159c..4fdd5b300265 100644
> >> --- a/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c
> >> +++ b/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c
> >> @@ -330,6 +330,41 @@ int xe_gt_tlb_invalidation_ggtt(struct xe_gt *gt)
> >>  	return 0;
> >>  }
> >>  
> >> +static int send_tlb_invalidation_all(struct xe_gt *gt,
> >> +				     struct xe_gt_tlb_invalidation_fence *fence)
> >> +{
> >> +	u32 action[] = {
> >> +		XE_GUC_ACTION_TLB_INVALIDATION_ALL,
> >> +		0,  /* seqno, replaced in send_tlb_invalidation */
> >> +		MAKE_INVAL_OP(XE_GUC_TLB_INVAL_FULL),
> >> +	};
> >> +
> >> +	return send_tlb_invalidation(&gt->uc.guc, fence, action, ARRAY_SIZE(action));
> >> +}
> >> +
> >> +/**
> >> + * xe_gt_tlb_invalidation_all_async - Invalidate all TLBs across PF and all VFs.
> >> + * @gt: the &xe_gt structure
> >> + * @fence: the &xe_gt_tlb_invalidation_fence to be signaled on completion
> >> + *
> >> + * Send a request to invalidate all TLBs across PF and all VFs.
> >> + *
> >> + * Return: 0 on success, negative error code on error
> >> + */
> >> +int xe_gt_tlb_invalidation_all_async(struct xe_gt *gt,
> >> +				     struct xe_gt_tlb_invalidation_fence *fence)
> > 
> > I'd drop _async part of the naming as I think it is implied with the
> > fence argument that is this async, like xe_gt_tlb_invalidation_range.
> 
> this suffix is here because initially I was also having this variant:
> 
> 	int xe_gt_tlb_invalidation_all(struct xe_gt *gt);
> 
> which actually was waiting for the TLB fence inside - like it is done in
> the xe_gt_tlb_invalidation_ggtt() - but finally dropped it from this
> patch as not used in current code
> 

Ok, makes sense. If you need xe_gt_tlb_invalidation_all to be sync, I'd
suggest passing in a NULL fence, then have xe_gt_tlb_invalidation_all
initialize a fence on the stack + wait on it.

> > 
> > All the changes around GT TLB invalidations look correct (for now, this
> > whole layer needs rework).
> 
> yes, please ;)

I took pass at it while back, I thought other were going to pick this
up though. Will check on this.

Matt 

> 
> > 
> > Matt 
> > 

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

* ✗ Xe.CI.Full: failure for LMTT invalidation (rev3)
  2025-07-02 22:30 [PATCH 0/3] LMTT invalidation Michal Wajdeczko
                   ` (7 preceding siblings ...)
  2025-07-03 15:01 ` ✗ Xe.CI.BAT: failure " Patchwork
@ 2025-07-05  3:01 ` Patchwork
  8 siblings, 0 replies; 17+ messages in thread
From: Patchwork @ 2025-07-05  3:01 UTC (permalink / raw)
  To: Michal Wajdeczko; +Cc: intel-xe

[-- Attachment #1: Type: text/plain, Size: 355 bytes --]

== Series Details ==

Series: LMTT invalidation (rev3)
URL   : https://patchwork.freedesktop.org/series/151092/
State : failure

== Summary ==

ERROR: The runconfig 'xe-3339-d04a54cd3b99001adbc4cd3305b44f9f3e658407_FULL' does not exist in the database

== Logs ==

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

[-- Attachment #2: Type: text/html, Size: 920 bytes --]

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

end of thread, other threads:[~2025-07-05  3:01 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-02 22:30 [PATCH 0/3] LMTT invalidation Michal Wajdeczko
2025-07-02 22:30 ` [PATCH 1/3] drm/xe/pf: Force GuC virtualization mode Michal Wajdeczko
2025-07-02 22:30 ` [PATCH 2/3] drm/xe/pf: Invalidate LMTT during LMEM unprovisioning Michal Wajdeczko
2025-07-03  9:10   ` [PATCH v2 " Michal Wajdeczko
2025-07-03 14:18   ` [PATCH v3 " Michal Wajdeczko
2025-07-03 17:31   ` [PATCH " Matthew Brost
2025-07-03 17:42     ` Michal Wajdeczko
2025-07-03 17:56       ` Matthew Brost
2025-07-02 22:30 ` [PATCH 3/3] drm/xe/pf: Invalidate LMTT after completing changes Michal Wajdeczko
2025-07-02 22:41   ` Matthew Brost
2025-07-03 14:03     ` Michal Wajdeczko
2025-07-02 22:52 ` ✗ CI.checkpatch: warning for LMTT invalidation Patchwork
2025-07-02 22:53 ` ✓ CI.KUnit: success " Patchwork
2025-07-03 14:23 ` ✗ CI.checkpatch: warning for LMTT invalidation (rev3) Patchwork
2025-07-03 14:24 ` ✓ CI.KUnit: success " Patchwork
2025-07-03 15:01 ` ✗ Xe.CI.BAT: failure " Patchwork
2025-07-05  3:01 ` ✗ Xe.CI.Full: " Patchwork

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