Skip to contentSkip to conversation

xe_ggtt node refactor for safer node removal

RFC New Rodrigo Vivi 2 participants 23 messages Jun 28, 2024 – Jul 1, 2024

Subsystems (6)
lore
Share & tools
lore

Rodrigo Vivi

author maintainer
#0 lore raw

cover xe_ggtt node refactor for safer node removal

The ultimate goal is to be able to remove the GGTT memory node from a workqueue where we can wake-up the device from runtime suspend in a dead-lock free situation.

However, the previous attempts failed so badly because the drm-mm-node itself is controlled from many places outside of the ggtt (drm-mm component).

So, this refactor aims to encapsulate the drm-mm-node inside xe_ggtt with new xe_ggtt_node functions. And documenting xe_ggtt and doing other clean-ups while at ti.

I still have a issue with initial display fb creation with this version.
[drm] *ERROR* Failed to setup i915 fbdev emulation (ret=-2)

But bisect there is taking longer then I thought. So, I'm sending this series right now as an RFC to get some feedback before I continue on this path...

Thanks,
Rodrigo.

Rodrigo Vivi (12):
drm/xe: Removed unused xe_ggtt_printk
drm/xe: Introduce GGTT documentation
drm/xe: Remove unnecessary drm_mm.h includes drm/{i915,xe}: Avoid direct inspection of dpt_vma from outside dpt drm/xe: Encapsulate drm_mm_node inside xe_ggtt_node drm/xe: Rename xe_ggtt_node related functions
drm/xe: Limit drm_mm_node_allocated access to xe_ggtt_node drm/xe: Introduce xe_ggtt_largest_hole
drm/xe: Introduce xe_ggtt_print_holes
drm/xe: Rename xe_ggtt balloon functions to make the node clear drm/xe: Make xe_ggtt_node struct independent
drm/xe: Fix missing runtime outer protection for ggtt_remove_node

 Documentation/gpu/xe/xe_mm.rst                |  15 +
 drivers/gpu/drm/i915/display/intel_dpt.c      |   4 +
 drivers/gpu/drm/i915/display/intel_dpt.h      |   1 +
 .../drm/i915/display/skl_universal_plane.c    |   3 +-
 .../gpu/drm/xe/compat-i915-headers/i915_vma.h |   7 +-
 drivers/gpu/drm/xe/display/xe_fb_pin.c        |  35 +-
 drivers/gpu/drm/xe/xe_bo.c                    |   2 +-
 drivers/gpu/drm/xe/xe_bo.h                    |   9 +-
 drivers/gpu/drm/xe/xe_bo_types.h              |   5 +-
 drivers/gpu/drm/xe/xe_device_types.h          |   2 +-
 drivers/gpu/drm/xe/xe_ggtt.c                  | 473 ++++++++++++++----
 drivers/gpu/drm/xe/xe_ggtt.h                  |  26 +-
 drivers/gpu/drm/xe/xe_ggtt_types.h            |  58 ++-
 drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c    |  97 ++--
 .../gpu/drm/xe/xe_gt_sriov_pf_config_types.h  |   4 +-
 drivers/gpu/drm/xe/xe_gt_sriov_vf.c           |  26 +-
 drivers/gpu/drm/xe/xe_migrate.h               |   2 +-
 drivers/gpu/drm/xe/xe_res_cursor.h            |   1 -
 drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c        |   1 -
 19 files changed, 544 insertions(+), 227 deletions(-)
Signature · 1 line
2.45.1
author maintainer
#1 lore raw

RFC 1/12 drm/xe: Removed unused xe_ggtt_printk

Apparently this was only useful when enabling ggtt support for the very first time and never used again.
It is also not useful now that we have the ggtt_dump available through debugfs.

---
 drivers/gpu/drm/xe/xe_ggtt.c | 20 --------------------
 drivers/gpu/drm/xe/xe_ggtt.h |  1 -
 2 files changed, 21 deletions(-)
drivers/gpu/drm/xe/xe_ggtt.c +0 -20
index 883cfc7f98a8..e68e74fc44c0 100644
@@ -309,26 +309,6 @@ static void xe_ggtt_invalidate(struct xe_ggtt *ggtt)
 	ggtt_invalidate_gt_tlb(ggtt->tile->media_gt);
 }
 
-void xe_ggtt_printk(struct xe_ggtt *ggtt, const char *prefix)
-{
-	u16 pat_index = tile_to_xe(ggtt->tile)->pat.idx[XE_CACHE_WB];
-	u64 addr, scratch_pte;
-
-	scratch_pte = ggtt->pt_ops->pte_encode_bo(ggtt->scratch, 0, pat_index);
-
-	printk("%sGlobal GTT:", prefix);
-	for (addr = 0; addr < ggtt->size; addr += XE_PAGE_SIZE) {
-		unsigned int i = addr / XE_PAGE_SIZE;
-
-		xe_tile_assert(ggtt->tile, addr <= U32_MAX);
-		if (ggtt->gsm[i] == scratch_pte)
-			continue;
-
-		printk("%s    ggtt[0x%08x] = 0x%016llx",
-		       prefix, (u32)addr, ggtt->gsm[i]);
-	}
-}
-
 static void xe_ggtt_dump_node(struct xe_ggtt *ggtt,
 			      const struct drm_mm_node *node, const char *description)
 {
drivers/gpu/drm/xe/xe_ggtt.h +0 -1
index 6a96fd54bf60..2546bab97507 100644
@@ -12,7 +12,6 @@ struct drm_printer;
 
 int xe_ggtt_init_early(struct xe_ggtt *ggtt);
 int xe_ggtt_init(struct xe_ggtt *ggtt);
-void xe_ggtt_printk(struct xe_ggtt *ggtt, const char *prefix);
 
 int xe_ggtt_balloon(struct xe_ggtt *ggtt, u64 start, u64 size, struct drm_mm_node *node);
 void xe_ggtt_deballoon(struct xe_ggtt *ggtt, struct drm_mm_node *node);
Signature · 1 line
2.45.1
author maintainer
#2 lore raw

RFC 2/12 drm/xe: Introduce GGTT documentation

In reply to Rodrigo Vivi

Document xe_ggtt and ensure it is part of the built kernel docs.

v2: - Accepted all Michal's suggestions
- Rebased on top of new set_pte per platform/wa function pointer

---
 Documentation/gpu/xe/xe_mm.rst     |  15 ++++
 drivers/gpu/drm/xe/xe_ggtt.c       | 136 +++++++++++++++++++++++------
 drivers/gpu/drm/xe/xe_ggtt_types.h |  32 +++++--
 3 files changed, 148 insertions(+), 35 deletions(-)
Documentation/gpu/xe/xe_mm.rst +15 -0
index 6c8fd8b4a466..95864a4502dd 100644
@@ -7,6 +7,21 @@ Memory Management
 .. kernel-doc:: drivers/gpu/drm/xe/xe_bo_doc.h
    :doc: Buffer Objects (BO)
 
+GGTT
+====
+
+.. kernel-doc:: drivers/gpu/drm/xe/xe_ggtt.c
+   :doc: Global Graphics Translation Table (GGTT)
+
+GGTT Internal API
+-----------------
+
+.. kernel-doc:: drivers/gpu/drm/xe/xe_ggtt_types.h
+   :internal:
+
+.. kernel-doc:: drivers/gpu/drm/xe/xe_ggtt.c
+   :internal:
+
 Pagetable building
 ==================
 
drivers/gpu/drm/xe/xe_ggtt.c +108 -28

208 lines not on this page · raw message

drivers/gpu/drm/xe/xe_ggtt_types.h +25 -7
index 2245d88d8f39..4e2114201b35 100644
@@ -13,30 +13,48 @@
 struct xe_bo;
 struct xe_gt;
 
+/**
+ * struct xe_ggtt - Main GGTT struct
+ * In general, each tile can contains its own GGTT instance.
+ */
 struct xe_ggtt {
+	/** @tile: Back pointer to tile where this GGTT belongs */
 	struct xe_tile *tile;
-
+	/** @size: Total size of this GGTT */
 	u64 size;
 
 #define XE_GGTT_FLAGS_64K BIT(0)
+	/**
+	 * @flags: Flags for this GGTT
+	 * Acceptable flags:
+	 * - %XE_GGTT_FLAGS_64K - if PTE size is 64K. Otherwise, regular is 4K.
+	 */
 	unsigned int flags;
-
+	/** @scratch: Internal object allocation used as a scratch page */
 	struct xe_bo *scratch;
-
+	/** @lock: Mutex lock to protect GGTT data */
 	struct mutex lock;
-
+	/**
+	 *  @gsm: The iomem pointer to the actual location of the translation
+	 * table located in the GSM for easy PTE manipulation
+	 */
 	u64 __iomem *gsm;
-
+	/** @pt_ops: Page Table operations per platform */
 	const struct xe_ggtt_pt_ops *pt_ops;
-
+	/** @mm: The memory manager used to manage individual GGTT allocations */
 	struct drm_mm mm;
-
 	/** @access_count: counts GGTT writes */
 	unsigned int access_count;
 };
 
+/**
+ * struct xe_ggtt_pt_ops - GGTT Page table operations
+ * Which can vary from platform to platform.
+ */
 struct xe_ggtt_pt_ops {
+	/** @pte_encode_bo: Encode PTE address for a given BO */
 	u64 (*pte_encode_bo)(struct xe_bo *bo, u64 bo_offset, u16 pat_index);
+	/** @ggtt_set_pte: Directly write into GGTT's PTE */
 	void (*ggtt_set_pte)(struct xe_ggtt *ggtt, u64 addr, u64 pte);
 };
 
Signature · 1 line
2.45.1
author maintainer
#3 lore raw

RFC 3/12 drm/xe: Remove unnecessary drm_mm.h includes

In reply to Rodrigo Vivi

These includes are no longer necessary, and where appropriate replace by the linux/types.h one.

---
 drivers/gpu/drm/xe/xe_migrate.h        | 2 +-
 drivers/gpu/drm/xe/xe_res_cursor.h     | 1 -
 drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c | 1 -
 3 files changed, 1 insertion(+), 3 deletions(-)
drivers/gpu/drm/xe/xe_migrate.h +1 -1
index 951f19318ea4..438d8f2890be 100644
@@ -6,7 +6,7 @@
 #ifndef _XE_MIGRATE_
 #define _XE_MIGRATE_
 
-#include <drm/drm_mm.h>
+#include <linux/types.h>
 
 struct dma_fence;
 struct iosys_map;
drivers/gpu/drm/xe/xe_res_cursor.h +0 -1
index 655af89b31a9..dca374b6521c 100644
@@ -26,7 +26,6 @@
 
 #include <linux/scatterlist.h>
 
-#include <drm/drm_mm.h>
 #include <drm/ttm/ttm_placement.h>
 #include <drm/ttm/ttm_range_manager.h>
 #include <drm/ttm/ttm_resource.h>
drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c +0 -1
index f46fd2df84de..f7113cf6109d 100644
@@ -5,7 +5,6 @@
  */
 
 #include <drm/drm_managed.h>
-#include <drm/drm_mm.h>
 
 #include <drm/ttm/ttm_device.h>
 #include <drm/ttm/ttm_placement.h>
Signature · 1 line
2.45.1
author maintainer
#4 lore raw

RFC 4/12 drm/{i915, xe}: Avoid direct inspection of dpt_vma from outside dpt

In reply to Rodrigo Vivi

DPT code is so dependent on i915 vma implementation and it is not ported yet to Xe.

This patch limits inspection to DPT's VMA struct to intel_dpt component only, so the Xe GGTT code can evolve.

Cc Matthew Brost <[email protected]>
Cc Maarten Lankhorst <[email protected]>
Cc Juha-Pekka Heikkila <[email protected]>
---
 drivers/gpu/drm/i915/display/intel_dpt.c           | 4 ++++
 drivers/gpu/drm/i915/display/intel_dpt.h           | 1 +
 drivers/gpu/drm/i915/display/skl_universal_plane.c | 3 ++-
 drivers/gpu/drm/xe/display/xe_fb_pin.c             | 9 +++++++--
 4 files changed, 14 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/display/intel_dpt.c +4 -0
index 73a1918e2537..3a6d99044828 100644
@@ -317,3 +317,7 @@ void intel_dpt_destroy(struct i915_address_space *vm)
 	i915_vm_put(&dpt->vm);
 }
 
+u64 intel_dpt_offset(struct i915_vma *dpt_vma)
+{
+	return dpt_vma->node.start;
+}
drivers/gpu/drm/i915/display/intel_dpt.h +1 -0
index ff18a525bfbe..7336e905142d 100644
@@ -20,5 +20,6 @@ void intel_dpt_suspend(struct drm_i915_private *i915);
 void intel_dpt_resume(struct drm_i915_private *i915);
 struct i915_address_space *
 intel_dpt_create(struct intel_framebuffer *fb);
+u64 intel_dpt_offset(struct i915_vma *dpt_vma);
 
 #endif /* __INTEL_DPT_H__ */
drivers/gpu/drm/i915/display/skl_universal_plane.c +2 -1
index ba5a628b4757..1cf1d5c8b9dc 100644
@@ -14,6 +14,7 @@
 #include "intel_de.h"
 #include "intel_display_irq.h"
 #include "intel_display_types.h"
+#include "intel_dpt.h"
 #include "intel_fb.h"
 #include "intel_fbc.h"
 #include "intel_frontbuffer.h"
@@ -1162,7 +1163,7 @@ static u32 skl_surf_address(const struct intel_plane_state *plane_state,
 		 * within the DPT is always 0.
 		 */
 		drm_WARN_ON(&i915->drm, plane_state->dpt_vma &&
-			    plane_state->dpt_vma->node.start);
+			    intel_dpt_offset(plane_state->dpt_vma));
 		drm_WARN_ON(&i915->drm, offset & 0x1fffff);
 		return offset >> 9;
 	} else {
drivers/gpu/drm/xe/display/xe_fb_pin.c +7 -2
index 423f367c7065..77dd1a96c4de 100644
@@ -374,8 +374,8 @@ void intel_plane_unpin_fb(struct intel_plane_state *old_plane_state)
 }
 
 /*
- * For Xe introduce dummy intel_dpt_create which just return NULL and
- * intel_dpt_destroy which does nothing.
+ * For Xe introduce dummy intel_dpt_create which just return NULL,
+ * intel_dpt_destroy which does nothing, and fake intel_dpt_ofsset returning 0;
  */
 struct i915_address_space *intel_dpt_create(struct intel_framebuffer *fb)
 {
@@ -386,3 +386,8 @@ void intel_dpt_destroy(struct i915_address_space *vm)
 {
 	return;
 }
+
+u64 intel_dpt_offset(struct i915_vma *dpt_vma)
+{
+	return 0;
+}
Signature · 1 line
2.45.1
author maintainer
#5 lore raw

RFC 5/12 drm/xe: Encapsulate drm_mm_node inside xe_ggtt_node

In reply to Rodrigo Vivi

The xe_ggtt component uses drm_mm to manage the GGTT.
The drm_mm_node is just a node inside drm_mm, but in Xe we use that only in the GGTT context. So, this patch encapsulates the drm_mm_node into a xe_ggtt's new struct.

This is the first step towards limiting all the drm_mm access through xe_ggtt. The ultimate goal is to have a better control of the node insertion and removal, so the removal can be delagated to a delayed workqueue.

---
 .../gpu/drm/xe/compat-i915-headers/i915_vma.h |  7 +-
 drivers/gpu/drm/xe/display/xe_fb_pin.c        | 10 +--
 drivers/gpu/drm/xe/xe_bo.c                    |  2 +-
 drivers/gpu/drm/xe/xe_bo.h                    |  6 +-
 drivers/gpu/drm/xe/xe_bo_types.h              |  5 +-
 drivers/gpu/drm/xe/xe_device_types.h          |  2 +-
 drivers/gpu/drm/xe/xe_ggtt.c                  | 72 +++++++++----------
 drivers/gpu/drm/xe/xe_ggtt.h                  | 12 ++--
 drivers/gpu/drm/xe/xe_ggtt_types.h            |  8 +++
 drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c    | 39 +++++-----
 .../gpu/drm/xe/xe_gt_sriov_pf_config_types.h  |  4 +-
 11 files changed, 90 insertions(+), 77 deletions(-)
drivers/gpu/drm/xe/compat-i915-headers/i915_vma.h +4 -3
index a20d2638ea7a..97193e660f6c 100644
@@ -7,7 +7,8 @@
 #define I915_VMA_H
 
 #include <uapi/drm/i915_drm.h>
-#include <drm/drm_mm.h>
+
+#include <xe_ggtt_types.h>
 
 /* We don't want these from i915_drm.h in case of Xe */
 #undef I915_TILING_X
@@ -19,7 +20,7 @@ struct xe_bo;
 
 struct i915_vma {
 	struct xe_bo *bo, *dpt;
-	struct drm_mm_node node;
+	struct xe_ggtt_node node;
 };
 
 #define i915_ggtt_clear_scanout(bo) do { } while (0)
@@ -28,7 +29,7 @@ struct i915_vma {
 
 static inline u32 i915_ggtt_offset(const struct i915_vma *vma)
 {
-	return vma->node.start;
+	return vma->node.base.start;
 }
 
 #endif
drivers/gpu/drm/xe/display/xe_fb_pin.c +5 -5
index 77dd1a96c4de..1c46aa16357c 100644
@@ -203,7 +203,7 @@ static int __xe_pin_fb_vma_ggtt(const struct intel_framebuffer *fb,
 	if (xe_bo_is_vram(bo) && ggtt->flags & XE_GGTT_FLAGS_64K)
 		align = max_t(u32, align, SZ_64K);
 
-	if (bo->ggtt_node.size && view->type == I915_GTT_VIEW_NORMAL) {
+	if (bo->ggtt_node.base.size && view->type == I915_GTT_VIEW_NORMAL) {
 		vma->node = bo->ggtt_node;
 	} else if (view->type == I915_GTT_VIEW_NORMAL) {
 		u32 x, size = bo->ttm.base.size;
@@ -217,7 +217,7 @@ static int __xe_pin_fb_vma_ggtt(const struct intel_framebuffer *fb,
 			u64 pte = ggtt->pt_ops->pte_encode_bo(bo, x,
 							      xe->pat.idx[XE_CACHE_NONE]);
 
-			ggtt->pt_ops->ggtt_set_pte(ggtt, vma->node.start + x, pte);
+			ggtt->pt_ops->ggtt_set_pte(ggtt, vma->node.base.start + x, pte);
 		}
 	} else {
 		u32 i, ggtt_ofs;
@@ -231,7 +231,7 @@ static int __xe_pin_fb_vma_ggtt(const struct intel_framebuffer *fb,
 		if (ret)
 			goto out_unlock;
 
-		ggtt_ofs = vma->node.start;
+		ggtt_ofs = vma->node.base.start;
 
 		for (i = 0; i < ARRAY_SIZE(rot_info->plane); i++)
 			write_ggtt_rotated(bo, ggtt, &ggtt_ofs,
@@ -322,8 +322,8 @@ static void __xe_unpin_fb_vma(struct i915_vma *vma)
 
 	if (vma->dpt)
 		xe_bo_unpin_map_no_vm(vma->dpt);
-	else if (!drm_mm_node_allocated(&vma->bo->ggtt_node) ||
-		 vma->bo->ggtt_node.start != vma->node.start)
+	else if (!drm_mm_node_allocated(&vma->bo->ggtt_node.base) ||
+		 vma->bo->ggtt_node.base.start != vma->node.base.start)
 		xe_ggtt_remove_node(ggtt, &vma->node, false);
 
 	ttm_bo_reserve(&vma->bo->ttm, false, false, NULL);
drivers/gpu/drm/xe/xe_bo.c +1 -1
index 65c696966e96..88da797dd16e 100644
@@ -1081,7 +1081,7 @@ static void xe_ttm_bo_destroy(struct ttm_buffer_object *ttm_bo)
 
 	xe_assert(xe, list_empty(&ttm_bo->base.gpuva.list));
 
-	if (bo->ggtt_node.size)
+	if (bo->ggtt_node.base.size)
 		xe_ggtt_remove_bo(bo->tile->mem.ggtt, bo);
 
 #ifdef CONFIG_PROC_FS
drivers/gpu/drm/xe/xe_bo.h +3 -3
index 6de894c728f5..7c95133cc32b 100644
@@ -194,9 +194,9 @@ xe_bo_main_addr(struct xe_bo *bo, size_t page_size)
 static inline u32
 xe_bo_ggtt_addr(struct xe_bo *bo)
 {
-	XE_WARN_ON(bo->ggtt_node.size > bo->size);
-	XE_WARN_ON(bo->ggtt_node.start + bo->ggtt_node.size > (1ull << 32));
-	return bo->ggtt_node.start;
+	XE_WARN_ON(bo->ggtt_node.base.size > bo->size);
+	XE_WARN_ON(bo->ggtt_node.base.start + bo->ggtt_node.base.size > (1ull << 32));
+	return bo->ggtt_node.base.start;
 }
 
 int xe_bo_vmap(struct xe_bo *bo);
drivers/gpu/drm/xe/xe_bo_types.h +3 -2
index 86422e113d39..9bbc66af3ef3 100644
@@ -8,12 +8,13 @@
 
 #include <linux/iosys-map.h>
 
-#include <drm/drm_mm.h>
 #include <drm/ttm/ttm_bo.h>
 #include <drm/ttm/ttm_device.h>
 #include <drm/ttm/ttm_execbuf_util.h>
 #include <drm/ttm/ttm_placement.h>
 
+#include <xe_ggtt_types.h>
+
 struct xe_device;
 struct xe_vm;
 
@@ -39,7 +40,7 @@ struct xe_bo {
 	/** @placement: current placement for this BO */
 	struct ttm_placement placement;
 	/** @ggtt_node: GGTT node if this BO is mapped in the GGTT */
-	struct drm_mm_node ggtt_node;
+	struct xe_ggtt_node ggtt_node;
 	/** @vmap: iosys map of this buffer */
 	struct iosys_map vmap;
 	/** @ttm_kmap: TTM bo kmap object for internal use only. Keep off. */
drivers/gpu/drm/xe/xe_device_types.h +1 -1
index c37be471d11c..63e39e83344a 100644
@@ -199,7 +199,7 @@ struct xe_tile {
 			struct xe_memirq memirq;
 
 			/** @sriov.vf.ggtt_balloon: GGTT regions excluded from use. */
-			struct drm_mm_node ggtt_balloon[2];
+			struct xe_ggtt_node ggtt_balloon[2];
 		} vf;
 	} sriov;
 
drivers/gpu/drm/xe/xe_ggtt.c +36 -36

192 lines not on this page · raw message

drivers/gpu/drm/xe/xe_ggtt.h +6 -6
index 2546bab97507..30a521f7b075 100644
@@ -13,15 +13,15 @@ struct drm_printer;
 int xe_ggtt_init_early(struct xe_ggtt *ggtt);
 int xe_ggtt_init(struct xe_ggtt *ggtt);
 
-int xe_ggtt_balloon(struct xe_ggtt *ggtt, u64 start, u64 size, struct drm_mm_node *node);
-void xe_ggtt_deballoon(struct xe_ggtt *ggtt, struct drm_mm_node *node);
+int xe_ggtt_balloon(struct xe_ggtt *ggtt, u64 start, u64 size, struct xe_ggtt_node *node);
+void xe_ggtt_deballoon(struct xe_ggtt *ggtt, struct xe_ggtt_node *node);
 
-int xe_ggtt_insert_special_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
+int xe_ggtt_insert_special_node(struct xe_ggtt *ggtt, struct xe_ggtt_node *node,
 				u32 size, u32 align);
 int xe_ggtt_insert_special_node_locked(struct xe_ggtt *ggtt,
-				       struct drm_mm_node *node,
+				       struct xe_ggtt_node *node,
 				       u32 size, u32 align, u32 mm_flags);
-void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct drm_mm_node *node,
+void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct xe_ggtt_node *node,
 			 bool invalidate);
 void xe_ggtt_map_bo(struct xe_ggtt *ggtt, struct xe_bo *bo);
 int xe_ggtt_insert_bo(struct xe_ggtt *ggtt, struct xe_bo *bo);
@@ -32,7 +32,7 @@ void xe_ggtt_remove_bo(struct xe_ggtt *ggtt, struct xe_bo *bo);
 int xe_ggtt_dump(struct xe_ggtt *ggtt, struct drm_printer *p);
 
 #ifdef CONFIG_PCI_IOV
-void xe_ggtt_assign(struct xe_ggtt *ggtt, const struct drm_mm_node *node, u16 vfid);
+void xe_ggtt_assign(struct xe_ggtt *ggtt, const struct xe_ggtt_node *node, u16 vfid);
 #endif
 
 #endif
drivers/gpu/drm/xe/xe_ggtt_types.h +8 -0
index 4e2114201b35..f3292e6c3873 100644
@@ -47,6 +47,14 @@ struct xe_ggtt {
 	unsigned int access_count;
 };
 
+/**
+ * struct xe_ggtt_node - A node in GGTT
+ */
+struct xe_ggtt_node {
+	/** @base: A drm_mm_node */
+	struct drm_mm_node base;
+};
+
 /**
  * struct xe_ggtt_pt_ops - GGTT Page table operations
  * Which can vary from platform to platform.
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c +21 -18
index 694671497f6e..dcae08e046fc 100644
@@ -6,6 +6,9 @@
 #include <linux/string_choices.h>
 #include <linux/wordpart.h>
 
+/* FIXME: remove this after encapsulating all drm_mm_node access into xe_ggtt */
+#include <drm/drm_mm.h>
+
 #include "abi/guc_actions_sriov_abi.h"
 #include "abi/guc_klvs_abi.h"
 
@@ -232,14 +235,14 @@ static u32 encode_config_ggtt(u32 *cfg, const struct xe_gt_sriov_config *config)
 {
 	u32 n = 0;
 
-	if (drm_mm_node_allocated(&config->ggtt_region)) {
+	if (drm_mm_node_allocated(&config->ggtt_region.base)) {
 		cfg[n++] = PREP_GUC_KLV_TAG(VF_CFG_GGTT_START);
-		cfg[n++] = lower_32_bits(config->ggtt_region.start);
-		cfg[n++] = upper_32_bits(config->ggtt_region.start);
+		cfg[n++] = lower_32_bits(config->ggtt_region.base.start);
+		cfg[n++] = upper_32_bits(config->ggtt_region.base.start);
 
 		cfg[n++] = PREP_GUC_KLV_TAG(VF_CFG_GGTT_SIZE);
-		cfg[n++] = lower_32_bits(config->ggtt_region.size);
-		cfg[n++] = upper_32_bits(config->ggtt_region.size);
+		cfg[n++] = lower_32_bits(config->ggtt_region.base.size);
+		cfg[n++] = upper_32_bits(config->ggtt_region.base.size);
 	}
 
 	return n;
@@ -369,11 +372,11 @@ static int pf_distribute_config_ggtt(struct xe_tile *tile, unsigned int vfid, u6
 	return err ?: err2;
 }
 
-static void pf_release_ggtt(struct xe_tile *tile, struct drm_mm_node *node)
+static void pf_release_ggtt(struct xe_tile *tile, struct xe_ggtt_node *node)
 {
 	struct xe_ggtt *ggtt = tile->mem.ggtt;
 
-	if (drm_mm_node_allocated(node)) {
+	if (drm_mm_node_allocated(&node->base)) {
 		/*
 		 * explicit GGTT PTE assignment to the PF using xe_ggtt_assign()
 		 * is redundant, as PTE will be implicitly re-assigned to PF by
@@ -391,7 +394,7 @@ static void pf_release_vf_config_ggtt(struct xe_gt *gt, struct xe_gt_sriov_confi
 static int pf_provision_vf_ggtt(struct xe_gt *gt, unsigned int vfid, u64 size)
 {
 	struct xe_gt_sriov_config *config = pf_pick_vf_config(gt, vfid);
-	struct drm_mm_node *node = &config->ggtt_region;
+	struct xe_ggtt_node *node = &config->ggtt_region;
 	struct xe_tile *tile = gt_to_tile(gt);
 	struct xe_ggtt *ggtt = tile->mem.ggtt;
 	u64 alignment = pf_get_ggtt_alignment(gt);
@@ -403,14 +406,14 @@ static int pf_provision_vf_ggtt(struct xe_gt *gt, unsigned int vfid, u64 size)
 
 	size = round_up(size, alignment);
 
-	if (drm_mm_node_allocated(node)) {
+	if (drm_mm_node_allocated(&node->base)) {
 		err = pf_distribute_config_ggtt(tile, vfid, 0, 0);
 		if (unlikely(err))
 			return err;
 
 		pf_release_ggtt(tile, node);
 	}
-	xe_gt_assert(gt, !drm_mm_node_allocated(node));
+	xe_gt_assert(gt, !drm_mm_node_allocated(&node->base));
 
 	if (!size)
 		return 0;
@@ -421,9 +424,9 @@ static int pf_provision_vf_ggtt(struct xe_gt *gt, unsigned int vfid, u64 size)
 
 	xe_ggtt_assign(ggtt, node, vfid);
 	xe_gt_sriov_dbg_verbose(gt, "VF%u assigned GGTT %llx-%llx\n",
-				vfid, node->start, node->start + node->size - 1);
+				vfid, node->base.start, node->base.start + node->base.size - 1);
 
-	err = pf_distribute_config_ggtt(gt->tile, vfid, node->start, node->size);
+	err = pf_distribute_config_ggtt(gt->tile, vfid, node->base.start, node->base.size);
 	if (unlikely(err))
 		return err;
 
@@ -433,10 +436,10 @@ static int pf_provision_vf_ggtt(struct xe_gt *gt, unsigned int vfid, u64 size)
 static u64 pf_get_vf_config_ggtt(struct xe_gt *gt, unsigned int vfid)
 {
 	struct xe_gt_sriov_config *config = pf_pick_vf_config(gt, vfid);
-	struct drm_mm_node *node = &config->ggtt_region;
+	struct xe_ggtt_node *node = &config->ggtt_region;
 
 	xe_gt_assert(gt, !xe_gt_is_media_type(gt));
-	return drm_mm_node_allocated(node) ? node->size : 0;
+	return drm_mm_node_allocated(&node->base) ? node->base.size : 0;
 }
 
 /**
@@ -1940,13 +1943,13 @@ int xe_gt_sriov_pf_config_print_ggtt(struct xe_gt *gt, struct drm_printer *p)
 
 	for (n = 1; n <= total_vfs; n++) {
 		config = &gt->sriov.pf.vfs[n].config;
-		if (!drm_mm_node_allocated(&config->ggtt_region))
+		if (!drm_mm_node_allocated(&config->ggtt_region.base))
 			continue;
 
-		string_get_size(config->ggtt_region.size, 1, STRING_UNITS_2, buf, sizeof(buf));
+		string_get_size(config->ggtt_region.base.size, 1, STRING_UNITS_2, buf, sizeof(buf));
 		drm_printf(p, "VF%u:\t%#0llx-%#llx\t(%s)\n",
-			   n, config->ggtt_region.start,
-			   config->ggtt_region.start + config->ggtt_region.size - 1, buf);
+			   n, config->ggtt_region.base.start,
+			   config->ggtt_region.base.start + config->ggtt_region.base.size - 1, buf);
 	}
 
 	return 0;
drivers/gpu/drm/xe/xe_gt_sriov_pf_config_types.h +2 -2
index 7bc66656fcc7..6d0d9299bafa 100644
@@ -6,7 +6,7 @@
 #ifndef _XE_GT_SRIOV_PF_CONFIG_TYPES_H_
 #define _XE_GT_SRIOV_PF_CONFIG_TYPES_H_
 
-#include <drm/drm_mm.h>
+#include <xe_ggtt_types.h>
 
 #include "xe_guc_klv_thresholds_set_types.h"
 
@@ -19,7 +19,7 @@ struct xe_bo;
  */
 struct xe_gt_sriov_config {
 	/** @ggtt_region: GGTT region assigned to the VF. */
-	struct drm_mm_node ggtt_region;
+	struct xe_ggtt_node ggtt_region;
 	/** @lmem_obj: LMEM allocation for use by the VF. */
 	struct xe_bo *lmem_obj;
 	/** @num_ctxs: number of GuC contexts IDs.  */
Signature · 1 line
2.45.1
author maintainer
#6 lore raw

RFC 6/12 drm/xe: Rename xe_ggtt_node related functions

In reply to Rodrigo Vivi

Bring some consistency and prepare for more xe_ggtt_node related functions to be introduced.

---
 drivers/gpu/drm/xe/display/xe_fb_pin.c     |  8 +-
 drivers/gpu/drm/xe/xe_ggtt.c               | 86 +++++++++++-----------
 drivers/gpu/drm/xe/xe_ggtt.h               | 12 +--
 drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c |  4 +-
 4 files changed, 54 insertions(+), 56 deletions(-)
drivers/gpu/drm/xe/display/xe_fb_pin.c +3 -5
index 1c46aa16357c..0ae1a635e30d 100644
@@ -208,8 +208,7 @@ static int __xe_pin_fb_vma_ggtt(const struct intel_framebuffer *fb,
 	} else if (view->type == I915_GTT_VIEW_NORMAL) {
 		u32 x, size = bo->ttm.base.size;
 
-		ret = xe_ggtt_insert_special_node_locked(ggtt, &vma->node, size,
-							 align, 0);
+		ret = xe_ggtt_node_insert_locked(ggtt, &vma->node, size, align, 0);
 		if (ret)
 			goto out_unlock;
 
@@ -226,8 +225,7 @@ static int __xe_pin_fb_vma_ggtt(const struct intel_framebuffer *fb,
 		/* display seems to use tiles instead of bytes here, so convert it back.. */
 		u32 size = intel_rotation_info_size(rot_info) * XE_PAGE_SIZE;
 
-		ret = xe_ggtt_insert_special_node_locked(ggtt, &vma->node, size,
-							 align, 0);
+		ret = xe_ggtt_node_insert_locked(ggtt, &vma->node, size, align, 0);
 		if (ret)
 			goto out_unlock;
 
@@ -324,7 +322,7 @@ static void __xe_unpin_fb_vma(struct i915_vma *vma)
 		xe_bo_unpin_map_no_vm(vma->dpt);
 	else if (!drm_mm_node_allocated(&vma->bo->ggtt_node.base) ||
 		 vma->bo->ggtt_node.base.start != vma->node.base.start)
-		xe_ggtt_remove_node(ggtt, &vma->node, false);
+		xe_ggtt_node_remove(ggtt, &vma->node, false);
 
 	ttm_bo_reserve(&vma->bo->ttm, false, false, NULL);
 	ttm_bo_unpin(&vma->bo->ttm);
drivers/gpu/drm/xe/xe_ggtt.c +43 -43

131 lines not on this page · raw message

drivers/gpu/drm/xe/xe_ggtt.h +6 -6
index 30a521f7b075..5147930357de 100644
@@ -16,12 +16,12 @@ int xe_ggtt_init(struct xe_ggtt *ggtt);
 int xe_ggtt_balloon(struct xe_ggtt *ggtt, u64 start, u64 size, struct xe_ggtt_node *node);
 void xe_ggtt_deballoon(struct xe_ggtt *ggtt, struct xe_ggtt_node *node);
 
-int xe_ggtt_insert_special_node(struct xe_ggtt *ggtt, struct xe_ggtt_node *node,
-				u32 size, u32 align);
-int xe_ggtt_insert_special_node_locked(struct xe_ggtt *ggtt,
-				       struct xe_ggtt_node *node,
-				       u32 size, u32 align, u32 mm_flags);
-void xe_ggtt_remove_node(struct xe_ggtt *ggtt, struct xe_ggtt_node *node,
+int xe_ggtt_node_insert(struct xe_ggtt *ggtt, struct xe_ggtt_node *node,
+			u32 size, u32 align);
+int xe_ggtt_node_insert_locked(struct xe_ggtt *ggtt,
+			       struct xe_ggtt_node *node,
+			       u32 size, u32 align, u32 mm_flags);
+void xe_ggtt_node_remove(struct xe_ggtt *ggtt, struct xe_ggtt_node *node,
 			 bool invalidate);
 void xe_ggtt_map_bo(struct xe_ggtt *ggtt, struct xe_bo *bo);
 int xe_ggtt_insert_bo(struct xe_ggtt *ggtt, struct xe_bo *bo);
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c +2 -2
index dcae08e046fc..5e20b0114c66 100644
@@ -382,7 +382,7 @@ static void pf_release_ggtt(struct xe_tile *tile, struct xe_ggtt_node *node)
 		 * is redundant, as PTE will be implicitly re-assigned to PF by
 		 * the xe_ggtt_clear() called by below xe_ggtt_remove_node().
 		 */
-		xe_ggtt_remove_node(ggtt, node, false);
+		xe_ggtt_node_remove(ggtt, node, false);
 	}
 }
 
@@ -418,7 +418,7 @@ static int pf_provision_vf_ggtt(struct xe_gt *gt, unsigned int vfid, u64 size)
 	if (!size)
 		return 0;
 
-	err = xe_ggtt_insert_special_node(ggtt, node, size, alignment);
+	err = xe_ggtt_node_insert(ggtt, node, size, alignment);
 	if (unlikely(err))
 		return err;
 
Signature · 1 line
2.45.1
author maintainer
#7 lore raw

RFC 7/12 drm/xe: Limit drm_mm_node_allocated access to xe_ggtt_node

In reply to Rodrigo Vivi

Continue with the encapsulation of drm_mm_node inside xe_ggtt.

Cc Michal Wajdeczko <[email protected]>
---
 drivers/gpu/drm/xe/display/xe_fb_pin.c     |  2 +-
 drivers/gpu/drm/xe/xe_ggtt.c               | 11 +++++++++++
 drivers/gpu/drm/xe/xe_ggtt.h               |  1 +
 drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c | 12 ++++++------
 4 files changed, 19 insertions(+), 7 deletions(-)
drivers/gpu/drm/xe/display/xe_fb_pin.c +1 -1
index 0ae1a635e30d..b1532fcfdfb6 100644
@@ -320,7 +320,7 @@ static void __xe_unpin_fb_vma(struct i915_vma *vma)
 
 	if (vma->dpt)
 		xe_bo_unpin_map_no_vm(vma->dpt);
-	else if (!drm_mm_node_allocated(&vma->bo->ggtt_node.base) ||
+	else if (!xe_ggtt_node_allocated(&vma->bo->ggtt_node) ||
 		 vma->bo->ggtt_node.base.start != vma->node.base.start)
 		xe_ggtt_node_remove(ggtt, &vma->node, false);
 
drivers/gpu/drm/xe/xe_ggtt.c +11 -0
index 0c350f367427..1c823919dabc 100644
@@ -472,6 +472,17 @@ void xe_ggtt_node_remove(struct xe_ggtt *ggtt, struct xe_ggtt_node *node,
 	drm_dev_exit(idx);
 }
 
+/**
+ * xe_ggtt_node_allocated - Check if node is allocated
+ * @node: the &xe_ggtt_node to be inspected
+ *
+ * Return: True if allocated, False otherwise.
+ */
+bool xe_ggtt_node_allocated(const struct xe_ggtt_node *node)
+{
+	return drm_mm_node_allocated(&node->base);
+}
+
 /**
  * xe_ggtt_map_bo - Map the BO into GGTT
  * @ggtt: the &xe_ggtt where node will be mapped
drivers/gpu/drm/xe/xe_ggtt.h +1 -0
index 5147930357de..f816b3c0732b 100644
@@ -23,6 +23,7 @@ int xe_ggtt_node_insert_locked(struct xe_ggtt *ggtt,
 			       u32 size, u32 align, u32 mm_flags);
 void xe_ggtt_node_remove(struct xe_ggtt *ggtt, struct xe_ggtt_node *node,
 			 bool invalidate);
+bool xe_ggtt_node_allocated(const struct xe_ggtt_node *node);
 void xe_ggtt_map_bo(struct xe_ggtt *ggtt, struct xe_bo *bo);
 int xe_ggtt_insert_bo(struct xe_ggtt *ggtt, struct xe_bo *bo);
 int xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c +6 -6
index 5e20b0114c66..1b334fa01b07 100644
@@ -235,7 +235,7 @@ static u32 encode_config_ggtt(u32 *cfg, const struct xe_gt_sriov_config *config)
 {
 	u32 n = 0;
 
-	if (drm_mm_node_allocated(&config->ggtt_region.base)) {
+	if (xe_ggtt_node_allocated(&config->ggtt_region)) {
 		cfg[n++] = PREP_GUC_KLV_TAG(VF_CFG_GGTT_START);
 		cfg[n++] = lower_32_bits(config->ggtt_region.base.start);
 		cfg[n++] = upper_32_bits(config->ggtt_region.base.start);
@@ -376,7 +376,7 @@ static void pf_release_ggtt(struct xe_tile *tile, struct xe_ggtt_node *node)
 {
 	struct xe_ggtt *ggtt = tile->mem.ggtt;
 
-	if (drm_mm_node_allocated(&node->base)) {
+	if (xe_ggtt_node_allocated(node)) {
 		/*
 		 * explicit GGTT PTE assignment to the PF using xe_ggtt_assign()
 		 * is redundant, as PTE will be implicitly re-assigned to PF by
@@ -406,14 +406,14 @@ static int pf_provision_vf_ggtt(struct xe_gt *gt, unsigned int vfid, u64 size)
 
 	size = round_up(size, alignment);
 
-	if (drm_mm_node_allocated(&node->base)) {
+	if (xe_ggtt_node_allocated(node)) {
 		err = pf_distribute_config_ggtt(tile, vfid, 0, 0);
 		if (unlikely(err))
 			return err;
 
 		pf_release_ggtt(tile, node);
 	}
-	xe_gt_assert(gt, !drm_mm_node_allocated(&node->base));
+	xe_gt_assert(gt, !xe_ggtt_node_allocated(node));
 
 	if (!size)
 		return 0;
@@ -439,7 +439,7 @@ static u64 pf_get_vf_config_ggtt(struct xe_gt *gt, unsigned int vfid)
 	struct xe_ggtt_node *node = &config->ggtt_region;
 
 	xe_gt_assert(gt, !xe_gt_is_media_type(gt));
-	return drm_mm_node_allocated(&node->base) ? node->base.size : 0;
+	return xe_ggtt_node_allocated(node) ? node->base.size : 0;
 }
 
 /**
@@ -1943,7 +1943,7 @@ int xe_gt_sriov_pf_config_print_ggtt(struct xe_gt *gt, struct drm_printer *p)
 
 	for (n = 1; n <= total_vfs; n++) {
 		config = &gt->sriov.pf.vfs[n].config;
-		if (!drm_mm_node_allocated(&config->ggtt_region.base))
+		if (!xe_ggtt_node_allocated(&config->ggtt_region))
 			continue;
 
 		string_get_size(config->ggtt_region.base.size, 1, STRING_UNITS_2, buf, sizeof(buf));
Signature · 1 line
2.45.1
author maintainer
#8 lore raw

RFC 8/12 drm/xe: Introduce xe_ggtt_largest_hole

In reply to Rodrigo Vivi

Introduce a new xe_ggtt_largest_hole helper that attends the SRIOV demand and continue with the goal of limiting drm_mm access to xe_ggtt.

Cc Michal Wajdeczko <[email protected]>
---
 drivers/gpu/drm/xe/xe_ggtt.c               | 35 ++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_ggtt.h               |  1 +
 drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c | 23 ++------------
 3 files changed, 38 insertions(+), 21 deletions(-)
drivers/gpu/drm/xe/xe_ggtt.c +35 -0
index 1c823919dabc..5b9f72bff7a1 100644
@@ -579,6 +579,41 @@ void xe_ggtt_remove_bo(struct xe_ggtt *ggtt, struct xe_bo *bo)
 			    bo->flags & XE_BO_FLAG_GGTT_INVALIDATE);
 }
 
+/**
+ * xe_ggtt_largest_hole - Largest GGTT hole
+ * @ggtt: the &xe_ggtt that will be inspected
+ * @alignment: mininum alignment
+ * @spare: If not NULL: in: desired memory size to be spared / out: Adjusted possible spare
+ *
+ * Return: size of the largest continuous GGTT region
+ */
+u64 xe_ggtt_largest_hole(struct xe_ggtt *ggtt, u64 alignment, u64 *spare)
+{
+	const struct drm_mm *mm = &ggtt->mm;
+	const struct drm_mm_node *entry;
+	u64 hole_min_start = xe_wopcm_size(tile_to_xe(ggtt->tile));
+	u64 hole_start, hole_end, hole_size;
+	u64 max_hole = 0;
+
+	mutex_lock(&ggtt->lock);
+
+	drm_mm_for_each_hole(entry, mm, hole_start, hole_end) {
+		hole_start = max(hole_start, hole_min_start);
+		hole_start = ALIGN(hole_start, alignment);
+		hole_end = ALIGN_DOWN(hole_end, alignment);
+		if (hole_start >= hole_end)
+			continue;
+		hole_size = hole_end - hole_start;
+		if (spare)
+			*spare -= min3(*spare, hole_size, max_hole);
+		max_hole = max(max_hole, hole_size);
+	}
+
+	mutex_unlock(&ggtt->lock);
+
+	return max_hole;
+}
+
 #ifdef CONFIG_PCI_IOV
 static u64 xe_encode_vfid_pte(u16 vfid)
 {
drivers/gpu/drm/xe/xe_ggtt.h +1 -0
index f816b3c0732b..31060fe7644b 100644
@@ -29,6 +29,7 @@ int xe_ggtt_insert_bo(struct xe_ggtt *ggtt, struct xe_bo *bo);
 int xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo,
 			 u64 start, u64 end);
 void xe_ggtt_remove_bo(struct xe_ggtt *ggtt, struct xe_bo *bo);
+u64 xe_ggtt_largest_hole(struct xe_ggtt *ggtt, u64 alignment, u64 *spare);
 
 int xe_ggtt_dump(struct xe_ggtt *ggtt, struct drm_printer *p);
 
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c +2 -21
index 1b334fa01b07..05cc3e12a75e 100644
@@ -590,30 +590,11 @@ int xe_gt_sriov_pf_config_bulk_set_ggtt(struct xe_gt *gt, unsigned int vfid,
 static u64 pf_get_max_ggtt(struct xe_gt *gt)
 {
 	struct xe_ggtt *ggtt = gt_to_tile(gt)->mem.ggtt;
-	const struct drm_mm *mm = &ggtt->mm;
-	const struct drm_mm_node *entry;
 	u64 alignment = pf_get_ggtt_alignment(gt);
 	u64 spare = pf_get_spare_ggtt(gt);
-	u64 hole_min_start = xe_wopcm_size(gt_to_xe(gt));
-	u64 hole_start, hole_end, hole_size;
-	u64 max_hole = 0;
-
-	mutex_lock(&ggtt->lock);
-
-	drm_mm_for_each_hole(entry, mm, hole_start, hole_end) {
-		hole_start = max(hole_start, hole_min_start);
-		hole_start = ALIGN(hole_start, alignment);
-		hole_end = ALIGN_DOWN(hole_end, alignment);
-		if (hole_start >= hole_end)
-			continue;
-		hole_size = hole_end - hole_start;
-		xe_gt_sriov_dbg_verbose(gt, "HOLE start %llx size %lluK\n",
-					hole_start, hole_size / SZ_1K);
-		spare -= min3(spare, hole_size, max_hole);
-		max_hole = max(max_hole, hole_size);
-	}
+	u64 max_hole;
 
-	mutex_unlock(&ggtt->lock);
+	max_hole = xe_ggtt_largest_hole(ggtt, alignment, &spare);
 
 	xe_gt_sriov_dbg_verbose(gt, "HOLE max %lluK reserved %lluK\n",
 				max_hole / SZ_1K, spare / SZ_1K);
Signature · 1 line
2.45.1
author maintainer
#9 lore raw

RFC 9/12 drm/xe: Introduce xe_ggtt_print_holes

In reply to Rodrigo Vivi

Introduce a new xe_ggtt_print_holes helper that attends the SRIOV demand and finishes the goal of limiting drm_mm access to xe_ggtt.

Cc Michal Wajdeczko <[email protected]>
---
 drivers/gpu/drm/xe/xe_ggtt.c               | 40 ++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_ggtt.h               |  1 +
 drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c | 25 +-------------
 3 files changed, 42 insertions(+), 24 deletions(-)
drivers/gpu/drm/xe/xe_ggtt.c +40 -0
index 5b9f72bff7a1..490d7a4a5324 100644
@@ -677,3 +677,43 @@ int xe_ggtt_dump(struct xe_ggtt *ggtt, struct drm_printer *p)
 	mutex_unlock(&ggtt->lock);
 	return err;
 }
+
+/**
+ * xe_ggtt_print_holes - Print holes
+ * @ggtt: the &xe_ggtt to be inspected
+ * @alignment: min alignment
+ * @p: the &drm_printer
+ *
+ * Print GGTT ranges that are available and return total size available.
+ *
+ * Return: Total available size.
+ */
+u64 xe_ggtt_print_holes(struct xe_ggtt *ggtt, u64 alignment, struct drm_printer *p)
+{
+	const struct drm_mm *mm = &ggtt->mm;
+	const struct drm_mm_node *entry;
+	u64 hole_min_start = xe_wopcm_size(tile_to_xe(ggtt->tile));
+	u64 hole_start, hole_end, hole_size;
+	u64 total;
+	char buf[10];
+
+	mutex_lock(&ggtt->lock);
+
+	drm_mm_for_each_hole(entry, mm, hole_start, hole_end) {
+		hole_start = max(hole_start, hole_min_start);
+		hole_start = ALIGN(hole_start, alignment);
+		hole_end = ALIGN_DOWN(hole_end, alignment);
+		if (hole_start >= hole_end)
+			continue;
+		hole_size = hole_end - hole_start;
+		total += hole_size;
+
+		string_get_size(hole_size, 1, STRING_UNITS_2, buf, sizeof(buf));
+		drm_printf(p, "range:\t%#llx-%#llx\t(%s)\n",
+			   hole_start, hole_end - 1, buf);
+	}
+
+	mutex_unlock(&ggtt->lock);
+
+	return total;
+}
drivers/gpu/drm/xe/xe_ggtt.h +1 -0
index 31060fe7644b..67ae5f1602a3 100644
@@ -32,6 +32,7 @@ void xe_ggtt_remove_bo(struct xe_ggtt *ggtt, struct xe_bo *bo);
 u64 xe_ggtt_largest_hole(struct xe_ggtt *ggtt, u64 alignment, u64 *spare);
 
 int xe_ggtt_dump(struct xe_ggtt *ggtt, struct drm_printer *p);
+u64 xe_ggtt_print_holes(struct xe_ggtt *ggtt, u64 alignment, struct drm_printer *p);
 
 #ifdef CONFIG_PCI_IOV
 void xe_ggtt_assign(struct xe_ggtt *ggtt, const struct xe_ggtt_node *node, u16 vfid);
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c +1 -24
index 05cc3e12a75e..6e235f305831 100644
@@ -6,9 +6,6 @@
 #include <linux/string_choices.h>
 #include <linux/wordpart.h>
 
-/* FIXME: remove this after encapsulating all drm_mm_node access into xe_ggtt */
-#include <drm/drm_mm.h>
-
 #include "abi/guc_actions_sriov_abi.h"
 #include "abi/guc_klvs_abi.h"
 
@@ -2018,11 +2015,7 @@ int xe_gt_sriov_pf_config_print_dbs(struct xe_gt *gt, struct drm_printer *p)
 int xe_gt_sriov_pf_config_print_available_ggtt(struct xe_gt *gt, struct drm_printer *p)
 {
 	struct xe_ggtt *ggtt = gt_to_tile(gt)->mem.ggtt;
-	const struct drm_mm *mm = &ggtt->mm;
-	const struct drm_mm_node *entry;
 	u64 alignment = pf_get_ggtt_alignment(gt);
-	u64 hole_min_start = xe_wopcm_size(gt_to_xe(gt));
-	u64 hole_start, hole_end, hole_size;
 	u64 spare, avail, total = 0;
 	char buf[10];
 
@@ -2031,24 +2024,8 @@ int xe_gt_sriov_pf_config_print_available_ggtt(struct xe_gt *gt, struct drm_prin
 	mutex_lock(xe_gt_sriov_pf_master_mutex(gt));
 
 	spare = pf_get_spare_ggtt(gt);
+	total = xe_ggtt_print_holes(ggtt, alignment, p);
 
-	mutex_lock(&ggtt->lock);
-
-	drm_mm_for_each_hole(entry, mm, hole_start, hole_end) {
-		hole_start = max(hole_start, hole_min_start);
-		hole_start = ALIGN(hole_start, alignment);
-		hole_end = ALIGN_DOWN(hole_end, alignment);
-		if (hole_start >= hole_end)
-			continue;
-		hole_size = hole_end - hole_start;
-		total += hole_size;
-
-		string_get_size(hole_size, 1, STRING_UNITS_2, buf, sizeof(buf));
-		drm_printf(p, "range:\t%#llx-%#llx\t(%s)\n",
-			   hole_start, hole_end - 1, buf);
-	}
-
-	mutex_unlock(&ggtt->lock);
 	mutex_unlock(xe_gt_sriov_pf_master_mutex(gt));
 
 	string_get_size(total, 1, STRING_UNITS_2, buf, sizeof(buf));
Signature · 1 line
2.45.1
author maintainer
#10 lore raw

RFC 10/12 drm/xe: Rename xe_ggtt balloon functions to make the node clear

In reply to Rodrigo Vivi

These operations are related to node. Convert them to the new appropriate name space xe_ggtt_node.

Cc Michal Wajdeczko <[email protected]>
---
 drivers/gpu/drm/xe/xe_ggtt.c        | 12 ++++++------
 drivers/gpu/drm/xe/xe_ggtt.h        |  4 ++--
 drivers/gpu/drm/xe/xe_gt_sriov_vf.c | 10 +++++-----
 3 files changed, 13 insertions(+), 13 deletions(-)
drivers/gpu/drm/xe/xe_ggtt.c +6 -6
index 490d7a4a5324..a4202bcc4ccb 100644
@@ -342,17 +342,17 @@ static void xe_ggtt_dump_node(struct xe_ggtt *ggtt,
 }
 
 /**
- * xe_ggtt_balloon - prevent allocation of specified GGTT addresses
+ * xe_ggtt_node_balloon - prevent allocation of specified GGTT addresses
  * @ggtt: the &xe_ggtt where we want to make reservation
  * @start: the starting GGTT address of the reserved region
  * @end: then end GGTT address of the reserved region
  * @node: the &xe_ggtt_node to hold reserved GGTT node
  *
- * Use xe_ggtt_deballoon() to release a reserved GGTT node.
+ * Use xe_ggtt_node_deballoon() to release a reserved GGTT node.
  *
  * Return: 0 on success or a negative error code on failure.
  */
-int xe_ggtt_balloon(struct xe_ggtt *ggtt, u64 start, u64 end, struct xe_ggtt_node *node)
+int xe_ggtt_node_balloon(struct xe_ggtt *ggtt, u64 start, u64 end, struct xe_ggtt_node *node)
 {
 	int err;
 
@@ -379,13 +379,13 @@ int xe_ggtt_balloon(struct xe_ggtt *ggtt, u64 start, u64 end, struct xe_ggtt_nod
 }
 
 /**
- * xe_ggtt_deballoon - release a reserved GGTT region
+ * xe_ggtt_node_deballoon - release a reserved GGTT region
  * @ggtt: the &xe_ggtt where reserved node belongs
  * @node: the &xe_ggtt_node with reserved GGTT region
  *
- * See xe_ggtt_balloon() for details.
+ * See xe_ggtt_node_balloon() for details.
  */
-void xe_ggtt_deballoon(struct xe_ggtt *ggtt, struct xe_ggtt_node *node)
+void xe_ggtt_node_deballoon(struct xe_ggtt *ggtt, struct xe_ggtt_node *node)
 {
 	if (!drm_mm_node_allocated(&node->base))
 		return;
drivers/gpu/drm/xe/xe_ggtt.h +2 -2
index 67ae5f1602a3..e68cede2e6b5 100644
@@ -13,8 +13,8 @@ struct drm_printer;
 int xe_ggtt_init_early(struct xe_ggtt *ggtt);
 int xe_ggtt_init(struct xe_ggtt *ggtt);
 
-int xe_ggtt_balloon(struct xe_ggtt *ggtt, u64 start, u64 size, struct xe_ggtt_node *node);
-void xe_ggtt_deballoon(struct xe_ggtt *ggtt, struct xe_ggtt_node *node);
+int xe_ggtt_node_balloon(struct xe_ggtt *ggtt, u64 start, u64 size, struct xe_ggtt_node *node);
+void xe_ggtt_node_deballoon(struct xe_ggtt *ggtt, struct xe_ggtt_node *node);
 
 int xe_ggtt_node_insert(struct xe_ggtt *ggtt, struct xe_ggtt_node *node,
 			u32 size, u32 align);
drivers/gpu/drm/xe/xe_gt_sriov_vf.c +5 -5
index 41e46a00c01e..a478e6e1b20e 100644
@@ -528,7 +528,7 @@ static int vf_balloon_ggtt(struct xe_gt *gt)
 	start = xe_wopcm_size(xe);
 	end = config->ggtt_base;
 	if (end != start) {
-		err = xe_ggtt_balloon(ggtt, start, end, &tile->sriov.vf.ggtt_balloon[0]);
+		err = xe_ggtt_node_balloon(ggtt, start, end, &tile->sriov.vf.ggtt_balloon[0]);
 		if (err)
 			goto failed;
 	}
@@ -536,7 +536,7 @@ static int vf_balloon_ggtt(struct xe_gt *gt)
 	start = config->ggtt_base + config->ggtt_size;
 	end = GUC_GGTT_TOP;
 	if (end != start) {
-		err = xe_ggtt_balloon(ggtt, start, end, &tile->sriov.vf.ggtt_balloon[1]);
+		err = xe_ggtt_node_balloon(ggtt, start, end, &tile->sriov.vf.ggtt_balloon[1]);
 		if (err)
 			goto deballoon;
 	}
@@ -544,7 +544,7 @@ static int vf_balloon_ggtt(struct xe_gt *gt)
 	return 0;
 
 deballoon:
-	xe_ggtt_deballoon(ggtt, &tile->sriov.vf.ggtt_balloon[0]);
+	xe_ggtt_node_deballoon(ggtt, &tile->sriov.vf.ggtt_balloon[0]);
 failed:
 	return err;
 }
@@ -555,8 +555,8 @@ static void deballoon_ggtt(struct drm_device *drm, void *arg)
 	struct xe_ggtt *ggtt = tile->mem.ggtt;
 
 	xe_tile_assert(tile, IS_SRIOV_VF(tile_to_xe(tile)));
-	xe_ggtt_deballoon(ggtt, &tile->sriov.vf.ggtt_balloon[1]);
-	xe_ggtt_deballoon(ggtt, &tile->sriov.vf.ggtt_balloon[0]);
+	xe_ggtt_node_deballoon(ggtt, &tile->sriov.vf.ggtt_balloon[1]);
+	xe_ggtt_node_deballoon(ggtt, &tile->sriov.vf.ggtt_balloon[0]);
 }
 
 /**
Signature · 1 line
2.45.1
author maintainer
#11 lore raw

RFC 11/12 drm/xe: Make xe_ggtt_node struct independent

In reply to Rodrigo Vivi

In some rare cases, the drm_mm node cannot be removed synchronously due to runtime PM conditions. In this situation, the node removal will be delegated to a workqueue that will be able to wake up the device before removing the node.

However, in this situation, the lifetime of the xe_ggtt_node cannot be restricted to the lifetime of the parent object. So, this patch introduces the infrastructure so the xe_ggtt_node struct can be allocated in advance and freed when needed.

By having the ggtt backpointer, it also ensure that the init function is always called before any attempt to insert or reserve the node in the GGTT.

Cc Matthew Auld <[email protected]>
Cc Michal Wajdeczko <[email protected]>
Cc Matthew Brost <[email protected]>
---
 .../gpu/drm/xe/compat-i915-headers/i915_vma.h |   4 +-
 drivers/gpu/drm/xe/display/xe_fb_pin.c        |  24 ++--
 drivers/gpu/drm/xe/xe_bo.c                    |   2 +-
 drivers/gpu/drm/xe/xe_bo.h                    |   9 +-
 drivers/gpu/drm/xe/xe_bo_types.h              |   2 +-
 drivers/gpu/drm/xe/xe_device_types.h          |   2 +-
 drivers/gpu/drm/xe/xe_ggtt.c                  | 103 ++++++++++++++++--
 drivers/gpu/drm/xe/xe_ggtt.h                  |   2 +
 drivers/gpu/drm/xe/xe_ggtt_types.h            |   8 +-
 drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c    |  34 +++---
 .../gpu/drm/xe/xe_gt_sriov_pf_config_types.h  |   2 +-
 drivers/gpu/drm/xe/xe_gt_sriov_vf.c           |  26 ++++-
 12 files changed, 169 insertions(+), 49 deletions(-)
drivers/gpu/drm/xe/compat-i915-headers/i915_vma.h +2 -2
index 97193e660f6c..ac860414b91f 100644
@@ -20,7 +20,7 @@ struct xe_bo;
 
 struct i915_vma {
 	struct xe_bo *bo, *dpt;
-	struct xe_ggtt_node node;
+	struct xe_ggtt_node *node;
 };
 
 #define i915_ggtt_clear_scanout(bo) do { } while (0)
@@ -29,7 +29,7 @@ struct i915_vma {
 
 static inline u32 i915_ggtt_offset(const struct i915_vma *vma)
 {
-	return vma->node.base.start;
+	return vma->node->base.start;
 }
 
 #endif
drivers/gpu/drm/xe/display/xe_fb_pin.c +14 -10
index b1532fcfdfb6..7a2d7066e82d 100644
@@ -203,20 +203,22 @@ static int __xe_pin_fb_vma_ggtt(const struct intel_framebuffer *fb,
 	if (xe_bo_is_vram(bo) && ggtt->flags & XE_GGTT_FLAGS_64K)
 		align = max_t(u32, align, SZ_64K);
 
-	if (bo->ggtt_node.base.size && view->type == I915_GTT_VIEW_NORMAL) {
+	if (bo->ggtt_node && view->type == I915_GTT_VIEW_NORMAL) {
 		vma->node = bo->ggtt_node;
 	} else if (view->type == I915_GTT_VIEW_NORMAL) {
 		u32 x, size = bo->ttm.base.size;
 
-		ret = xe_ggtt_node_insert_locked(ggtt, &vma->node, size, align, 0);
-		if (ret)
+		ret = xe_ggtt_node_insert_locked(ggtt, vma->node, size, align, 0);
+		if (ret) {
+			xe_ggtt_node_force_fini(vma->node);
 			goto out_unlock;
+		}
 
 		for (x = 0; x < size; x += XE_PAGE_SIZE) {
 			u64 pte = ggtt->pt_ops->pte_encode_bo(bo, x,
 							      xe->pat.idx[XE_CACHE_NONE]);
 
-			ggtt->pt_ops->ggtt_set_pte(ggtt, vma->node.base.start + x, pte);
+			ggtt->pt_ops->ggtt_set_pte(ggtt, vma->node->base.start + x, pte);
 		}
 	} else {
 		u32 i, ggtt_ofs;
@@ -225,11 +227,13 @@ static int __xe_pin_fb_vma_ggtt(const struct intel_framebuffer *fb,
 		/* display seems to use tiles instead of bytes here, so convert it back.. */
 		u32 size = intel_rotation_info_size(rot_info) * XE_PAGE_SIZE;
 
-		ret = xe_ggtt_node_insert_locked(ggtt, &vma->node, size, align, 0);
-		if (ret)
+		ret = xe_ggtt_node_insert_locked(ggtt, vma->node, size, align, 0);
+		if (ret) {
+			xe_ggtt_node_force_fini(vma->node);
 			goto out_unlock;
+		}
 
-		ggtt_ofs = vma->node.base.start;
+		ggtt_ofs = vma->node->base.start;
 
 		for (i = 0; i < ARRAY_SIZE(rot_info->plane); i++)
 			write_ggtt_rotated(bo, ggtt, &ggtt_ofs,
@@ -320,9 +324,9 @@ static void __xe_unpin_fb_vma(struct i915_vma *vma)
 
 	if (vma->dpt)
 		xe_bo_unpin_map_no_vm(vma->dpt);
-	else if (!xe_ggtt_node_allocated(&vma->bo->ggtt_node) ||
-		 vma->bo->ggtt_node.base.start != vma->node.base.start)
-		xe_ggtt_node_remove(ggtt, &vma->node, false);
+	else if (!xe_ggtt_node_allocated(vma->bo->ggtt_node) ||
+		 vma->bo->ggtt_node->base.start != vma->node->base.start)
+		xe_ggtt_node_remove(ggtt, vma->node, false);
 
 	ttm_bo_reserve(&vma->bo->ttm, false, false, NULL);
 	ttm_bo_unpin(&vma->bo->ttm);
drivers/gpu/drm/xe/xe_bo.c +1 -1
index 88da797dd16e..ece0640bc431 100644
@@ -1081,7 +1081,7 @@ static void xe_ttm_bo_destroy(struct ttm_buffer_object *ttm_bo)
 
 	xe_assert(xe, list_empty(&ttm_bo->base.gpuva.list));
 
-	if (bo->ggtt_node.base.size)
+	if (bo->ggtt_node)
 		xe_ggtt_remove_bo(bo->tile->mem.ggtt, bo);
 
 #ifdef CONFIG_PROC_FS
drivers/gpu/drm/xe/xe_bo.h +6 -3
index 7c95133cc32b..c8a90e5bbd6b 100644
@@ -194,9 +194,12 @@ xe_bo_main_addr(struct xe_bo *bo, size_t page_size)
 static inline u32
 xe_bo_ggtt_addr(struct xe_bo *bo)
 {
-	XE_WARN_ON(bo->ggtt_node.base.size > bo->size);
-	XE_WARN_ON(bo->ggtt_node.base.start + bo->ggtt_node.base.size > (1ull << 32));
-	return bo->ggtt_node.base.start;
+	if (XE_WARN_ON(!bo->ggtt_node))
+		return -ENOENT;
+
+	XE_WARN_ON(bo->ggtt_node->base.size > bo->size);
+	XE_WARN_ON(bo->ggtt_node->base.start + bo->ggtt_node->base.size > (1ull << 32));
+	return bo->ggtt_node->base.start;
 }
 
 int xe_bo_vmap(struct xe_bo *bo);
drivers/gpu/drm/xe/xe_bo_types.h +1 -1
index 9bbc66af3ef3..d983f04501af 100644
@@ -40,7 +40,7 @@ struct xe_bo {
 	/** @placement: current placement for this BO */
 	struct ttm_placement placement;
 	/** @ggtt_node: GGTT node if this BO is mapped in the GGTT */
-	struct xe_ggtt_node ggtt_node;
+	struct xe_ggtt_node *ggtt_node;
 	/** @vmap: iosys map of this buffer */
 	struct iosys_map vmap;
 	/** @ttm_kmap: TTM bo kmap object for internal use only. Keep off. */
drivers/gpu/drm/xe/xe_device_types.h +1 -1
index 63e39e83344a..2e2c29eb7b9a 100644
@@ -199,7 +199,7 @@ struct xe_tile {
 			struct xe_memirq memirq;
 
 			/** @sriov.vf.ggtt_balloon: GGTT regions excluded from use. */
-			struct xe_ggtt_node ggtt_balloon[2];
+			struct xe_ggtt_node *ggtt_balloon[2];
 		} vf;
 	} sriov;
 
drivers/gpu/drm/xe/xe_ggtt.c +92 -11

223 lines not on this page · raw message

drivers/gpu/drm/xe/xe_ggtt.h +2 -0
index e68cede2e6b5..9ca0a3da8903 100644
@@ -13,6 +13,8 @@ struct drm_printer;
 int xe_ggtt_init_early(struct xe_ggtt *ggtt);
 int xe_ggtt_init(struct xe_ggtt *ggtt);
 
+struct xe_ggtt_node *xe_ggtt_node_init(struct xe_ggtt *ggtt);
+void xe_ggtt_node_force_fini(struct xe_ggtt_node *node);
 int xe_ggtt_node_balloon(struct xe_ggtt *ggtt, u64 start, u64 size, struct xe_ggtt_node *node);
 void xe_ggtt_node_deballoon(struct xe_ggtt *ggtt, struct xe_ggtt_node *node);
 
drivers/gpu/drm/xe/xe_ggtt_types.h +7 -1
index f3292e6c3873..60cbce3170d1 100644
@@ -48,9 +48,15 @@ struct xe_ggtt {
 };
 
 /**
- * struct xe_ggtt_node - A node in GGTT
+ * struct xe_ggtt_node - A node in GGTT.
+ *
+ * This struct needs to be initialized (only-once) with xe_ggtt_node_init() before any node
+ * insertion, reservation, or 'ballooning'.
+ * It will, then, be finalized by either xe_ggtt_node_remove() or xe_ggtt_node_deballoon().
  */
 struct xe_ggtt_node {
+	/** @ggtt: Back pointer to xe_ggtt where this region will be inserted at */
+	struct xe_ggtt *ggtt;
 	/** @base: A drm_mm_node */
 	struct drm_mm_node base;
 };
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c +21 -13
index 6e235f305831..f4ddd17fc96c 100644
@@ -232,14 +232,14 @@ static u32 encode_config_ggtt(u32 *cfg, const struct xe_gt_sriov_config *config)
 {
 	u32 n = 0;
 
-	if (xe_ggtt_node_allocated(&config->ggtt_region)) {
+	if (xe_ggtt_node_allocated(config->ggtt_region)) {
 		cfg[n++] = PREP_GUC_KLV_TAG(VF_CFG_GGTT_START);
-		cfg[n++] = lower_32_bits(config->ggtt_region.base.start);
-		cfg[n++] = upper_32_bits(config->ggtt_region.base.start);
+		cfg[n++] = lower_32_bits(config->ggtt_region->base.start);
+		cfg[n++] = upper_32_bits(config->ggtt_region->base.start);
 
 		cfg[n++] = PREP_GUC_KLV_TAG(VF_CFG_GGTT_SIZE);
-		cfg[n++] = lower_32_bits(config->ggtt_region.base.size);
-		cfg[n++] = upper_32_bits(config->ggtt_region.base.size);
+		cfg[n++] = lower_32_bits(config->ggtt_region->base.size);
+		cfg[n++] = upper_32_bits(config->ggtt_region->base.size);
 	}
 
 	return n;
@@ -385,13 +385,13 @@ static void pf_release_ggtt(struct xe_tile *tile, struct xe_ggtt_node *node)
 
 static void pf_release_vf_config_ggtt(struct xe_gt *gt, struct xe_gt_sriov_config *config)
 {
-	pf_release_ggtt(gt_to_tile(gt), &config->ggtt_region);
+	pf_release_ggtt(gt_to_tile(gt), config->ggtt_region);
 }
 
 static int pf_provision_vf_ggtt(struct xe_gt *gt, unsigned int vfid, u64 size)
 {
 	struct xe_gt_sriov_config *config = pf_pick_vf_config(gt, vfid);
-	struct xe_ggtt_node *node = &config->ggtt_region;
+	struct xe_ggtt_node *node = config->ggtt_region;
 	struct xe_tile *tile = gt_to_tile(gt);
 	struct xe_ggtt *ggtt = tile->mem.ggtt;
 	u64 alignment = pf_get_ggtt_alignment(gt);
@@ -415,9 +415,15 @@ static int pf_provision_vf_ggtt(struct xe_gt *gt, unsigned int vfid, u64 size)
 	if (!size)
 		return 0;
 
+	node = xe_ggtt_node_init(ggtt);
+	if (IS_ERR(node))
+		return PTR_ERR(node);
+
 	err = xe_ggtt_node_insert(ggtt, node, size, alignment);
-	if (unlikely(err))
+	if (unlikely(err)) {
+		xe_ggtt_node_force_fini(node);
 		return err;
+	}
 
 	xe_ggtt_assign(ggtt, node, vfid);
 	xe_gt_sriov_dbg_verbose(gt, "VF%u assigned GGTT %llx-%llx\n",
@@ -433,7 +439,7 @@ static int pf_provision_vf_ggtt(struct xe_gt *gt, unsigned int vfid, u64 size)
 static u64 pf_get_vf_config_ggtt(struct xe_gt *gt, unsigned int vfid)
 {
 	struct xe_gt_sriov_config *config = pf_pick_vf_config(gt, vfid);
-	struct xe_ggtt_node *node = &config->ggtt_region;
+	struct xe_ggtt_node *node = config->ggtt_region;
 
 	xe_gt_assert(gt, !xe_gt_is_media_type(gt));
 	return xe_ggtt_node_allocated(node) ? node->base.size : 0;
@@ -1921,13 +1927,15 @@ int xe_gt_sriov_pf_config_print_ggtt(struct xe_gt *gt, struct drm_printer *p)
 
 	for (n = 1; n <= total_vfs; n++) {
 		config = &gt->sriov.pf.vfs[n].config;
-		if (!xe_ggtt_node_allocated(&config->ggtt_region))
+		if (!xe_ggtt_node_allocated(config->ggtt_region))
 			continue;
 
-		string_get_size(config->ggtt_region.base.size, 1, STRING_UNITS_2, buf, sizeof(buf));
+		string_get_size(config->ggtt_region->base.size, 1, STRING_UNITS_2,
+				buf, sizeof(buf));
 		drm_printf(p, "VF%u:\t%#0llx-%#llx\t(%s)\n",
-			   n, config->ggtt_region.base.start,
-			   config->ggtt_region.base.start + config->ggtt_region.base.size - 1, buf);
+			   n, config->ggtt_region->base.start,
+			   config->ggtt_region->base.start + config->ggtt_region->base.size - 1,
+			   buf);
 	}
 
 	return 0;
drivers/gpu/drm/xe/xe_gt_sriov_pf_config_types.h +1 -1
index 6d0d9299bafa..44dc0a6e90d1 100644
@@ -19,7 +19,7 @@ struct xe_bo;
  */
 struct xe_gt_sriov_config {
 	/** @ggtt_region: GGTT region assigned to the VF. */
-	struct xe_ggtt_node ggtt_region;
+	struct xe_ggtt_node *ggtt_region;
 	/** @lmem_obj: LMEM allocation for use by the VF. */
 	struct xe_bo *lmem_obj;
 	/** @num_ctxs: number of GuC contexts IDs.  */
drivers/gpu/drm/xe/xe_gt_sriov_vf.c +21 -5
index a478e6e1b20e..5c540e20c785 100644
@@ -495,6 +495,22 @@ u64 xe_gt_sriov_vf_lmem(struct xe_gt *gt)
 	return gt->sriov.vf.self_config.lmem_size;
 }
 
+static int vf_balloon_ggtt_node(struct xe_ggtt *ggtt, struct xe_ggtt_node *node,
+				u64 start, u64 end)
+{
+	int err;
+
+	node = xe_ggtt_node_init(ggtt);
+	if (IS_ERR(node))
+		return PTR_ERR(node);
+
+	err = xe_ggtt_node_balloon(ggtt, start, end, node);
+	if (err)
+		xe_ggtt_node_force_fini(node);
+
+	return err;
+}
+
 static int vf_balloon_ggtt(struct xe_gt *gt)
 {
 	struct xe_gt_sriov_vf_selfconfig *config = &gt->sriov.vf.self_config;
@@ -528,7 +544,7 @@ static int vf_balloon_ggtt(struct xe_gt *gt)
 	start = xe_wopcm_size(xe);
 	end = config->ggtt_base;
 	if (end != start) {
-		err = xe_ggtt_node_balloon(ggtt, start, end, &tile->sriov.vf.ggtt_balloon[0]);
+		err = vf_balloon_ggtt_node(ggtt, tile->sriov.vf.ggtt_balloon[0], start, end);
 		if (err)
 			goto failed;
 	}
@@ -536,7 +552,7 @@ static int vf_balloon_ggtt(struct xe_gt *gt)
 	start = config->ggtt_base + config->ggtt_size;
 	end = GUC_GGTT_TOP;
 	if (end != start) {
-		err = xe_ggtt_node_balloon(ggtt, start, end, &tile->sriov.vf.ggtt_balloon[1]);
+		err = vf_balloon_ggtt_node(ggtt, tile->sriov.vf.ggtt_balloon[1], start, end);
 		if (err)
 			goto deballoon;
 	}
@@ -544,7 +560,7 @@ static int vf_balloon_ggtt(struct xe_gt *gt)
 	return 0;
 
 deballoon:
-	xe_ggtt_node_deballoon(ggtt, &tile->sriov.vf.ggtt_balloon[0]);
+	xe_ggtt_node_deballoon(ggtt, tile->sriov.vf.ggtt_balloon[0]);
 failed:
 	return err;
 }
@@ -555,8 +571,8 @@ static void deballoon_ggtt(struct drm_device *drm, void *arg)
 	struct xe_ggtt *ggtt = tile->mem.ggtt;
 
 	xe_tile_assert(tile, IS_SRIOV_VF(tile_to_xe(tile)));
-	xe_ggtt_node_deballoon(ggtt, &tile->sriov.vf.ggtt_balloon[1]);
-	xe_ggtt_node_deballoon(ggtt, &tile->sriov.vf.ggtt_balloon[0]);
+	xe_ggtt_node_deballoon(ggtt, tile->sriov.vf.ggtt_balloon[1]);
+	xe_ggtt_node_deballoon(ggtt, tile->sriov.vf.ggtt_balloon[0]);
 }
 
 /**
Signature · 1 line
2.45.1
author maintainer
#12 lore raw

RFC 12/12 drm/xe: Fix missing runtime outer protection for ggtt_remove_node

In reply to Rodrigo Vivi

Defer the ggtt node removal to a thread if runtime_pm is not active.

The ggtt node removal can be called from multiple places, including places where we cannot protect with outer callers and places we are within other locks. So, try to grab the runtime reference if the device is already active, otherwise defer the removal to a separate thread from where we are sure we can wake the device up.

v2: - use xe wq instead of system wq (Matt and CI)
- Avoid GFP_KERNEL to be future proof since this removal can be called from outside our drivers and we don't want to block if atomic is needed. (Brost)
v3: amend forgot chunk declaring xe_device.
v4: Use a xe_ggtt_region to encapsulate the node and remova info,
wihtout the need for any memory allocation at runtime.
v5: Actually fill the delayed_removal.invalidate (Brost)
v6: - Ensure that ggtt_region is not freed before work finishes (Auld)
- Own wq to ensures that the queued works are flushed before ggtt_fini (Brost)
v7: also free ggtt_region on early !bound return (Auld)
v8: Address the null deref (CI)
v9: Based on the new xe_ggtt_node for the proper care of the lifetime
of the object.

Cc Matthew Auld <[email protected]>
Cc Paulo Zanoni <[email protected]>
Cc Francois Dugast <[email protected]>
Cc Thomas Hellström <[email protected]>
Cc Matthew Brost <[email protected]>
---
 drivers/gpu/drm/xe/xe_ggtt.c       | 106 ++++++++++++++++++-----------
 drivers/gpu/drm/xe/xe_ggtt_types.h |  12 ++++
 2 files changed, 78 insertions(+), 40 deletions(-)
drivers/gpu/drm/xe/xe_ggtt.c +66 -40
index 2355fcd16349..0605c5829a2d 100644
@@ -158,6 +158,7 @@ static void ggtt_fini_early(struct drm_device *drm, void *arg)
 {
 	struct xe_ggtt *ggtt = arg;
 
+	destroy_workqueue(ggtt->wq);
 	mutex_destroy(&ggtt->lock);
 	drm_mm_takedown(&ggtt->mm);
 }
@@ -237,6 +238,8 @@ int xe_ggtt_init_early(struct xe_ggtt *ggtt)
 	else
 		ggtt->pt_ops = &xelp_pt_ops;
 
+	ggtt->wq = alloc_workqueue("xe-ggtt-wq", 0, 0);
+
 	drm_mm_init(&ggtt->mm, xe_wopcm_size(xe),
 		    ggtt->size - xe_wopcm_size(xe));
 	mutex_init(&ggtt->lock);
@@ -271,6 +274,67 @@ static void xe_ggtt_initial_clear(struct xe_ggtt *ggtt)
 	mutex_unlock(&ggtt->lock);
 }
 
+static void ggtt_node_remove(struct xe_ggtt *ggtt, struct xe_ggtt_node *node,
+			     bool invalidate)
+{
+	struct xe_device *xe = tile_to_xe(ggtt->tile);
+	bool bound;
+	int idx;
+
+	if (!node || !node->ggtt)
+		return;
+
+	bound = drm_dev_enter(&xe->drm, &idx);
+
+	mutex_lock(&ggtt->lock);
+	if (bound)
+		xe_ggtt_clear(ggtt, node->base.start, node->base.size);
+	drm_mm_remove_node(&node->base);
+	node->base.size = 0;
+	mutex_unlock(&ggtt->lock);
+
+	if (!bound)
+		goto free_node;
+
+	if (invalidate)
+		xe_ggtt_invalidate(ggtt);
+
+	drm_dev_exit(idx);
+
+free_node:
+	kfree(node);
+}
+
+static void ggtt_node_remove_work_func(struct work_struct *work)
+{
+	struct xe_ggtt_node *node = container_of(work, typeof(*node),
+						 delayed_removal.work);
+	struct xe_device *xe = tile_to_xe(node->ggtt->tile);
+
+	xe_pm_runtime_get(xe);
+	ggtt_node_remove(node->ggtt, node, node->delayed_removal.invalidate);
+	xe_pm_runtime_put(xe);
+}
+
+/**
+ * xe_ggtt_node_remove - Remove a &xe_ggtt_node from the GGTT
+ * @ggtt: the &xe_ggtt where node will be removed
+ * @node: the &xe_ggtt_node to be removed
+ * @invalidate: if node needs invalidation upon removal
+ */
+void xe_ggtt_node_remove(struct xe_ggtt *ggtt, struct xe_ggtt_node *node,
+			 bool invalidate)
+{
+	struct xe_device *xe = tile_to_xe(ggtt->tile);
+
+	if (xe_pm_runtime_get_if_active(xe)) {
+		ggtt_node_remove(ggtt, node, invalidate);
+		xe_pm_runtime_put(xe);
+	} else {
+		queue_work(ggtt->wq, &node->delayed_removal.work);
+	}
+}
+
 /**
  * xe_ggtt_init - Regular non-early GGTT initialization
  * @ggtt: the &xe_ggtt to be initialized
@@ -477,7 +541,9 @@ struct xe_ggtt_node *xe_ggtt_node_init(struct xe_ggtt *ggtt)
 	if (!node)
 		return ERR_PTR(-ENOMEM);
 
+	INIT_WORK(&node->delayed_removal.work, ggtt_node_remove_work_func);
 	node->ggtt = ggtt;
+
 	return node;
 }
 
@@ -494,46 +560,6 @@ void xe_ggtt_node_force_fini(struct xe_ggtt_node *node)
 	kfree(node);
 }
 
-/**
- * xe_ggtt_node_remove - Remove a &xe_ggtt_node from the GGTT
- * @ggtt: the &xe_ggtt where node will be removed
- * @node: the &xe_ggtt_node to be removed
- * @invalidate: if node needs invalidation upon removal
- */
-void xe_ggtt_node_remove(struct xe_ggtt *ggtt, struct xe_ggtt_node *node,
-			 bool invalidate)
-{
-	struct xe_device *xe = tile_to_xe(ggtt->tile);
-	bool bound;
-	int idx;
-
-	if (!node || !node->ggtt)
-		return;
-
-	bound = drm_dev_enter(&xe->drm, &idx);
-	if (bound)
-		xe_pm_runtime_get_noresume(xe);
-
-	mutex_lock(&ggtt->lock);
-	if (bound)
-		xe_ggtt_clear(ggtt, node->base.start, node->base.size);
-	drm_mm_remove_node(&node->base);
-	node->base.size = 0;
-	mutex_unlock(&ggtt->lock);
-
-	if (!bound)
-		goto free_node;
-
-	if (invalidate)
-		xe_ggtt_invalidate(ggtt);
-
-	xe_pm_runtime_put(xe);
-	drm_dev_exit(idx);
-
-free_node:
-	kfree(node);
-}
-
 /**
  * xe_ggtt_node_allocated - Check if node is allocated in GGTT
  * @node: the &xe_ggtt_node to be inspected
drivers/gpu/drm/xe/xe_ggtt_types.h +12 -0
index 60cbce3170d1..5ea12ea30a4d 100644
@@ -45,6 +45,8 @@ struct xe_ggtt {
 	struct drm_mm mm;
 	/** @access_count: counts GGTT writes */
 	unsigned int access_count;
+	/** @wq: Dedicated unordered work queue to process node removals */
+	struct workqueue_struct *wq;
 };
 
 /**
@@ -59,6 +61,16 @@ struct xe_ggtt_node {
 	struct xe_ggtt *ggtt;
 	/** @base: A drm_mm_node */
 	struct drm_mm_node base;
+	/**
+	 * @delayed_removal: Information for removal through work thread when
+	 * device runtime_pm is suspended
+	 */
+	struct {
+		/** @delayed_removal.work: The work struct for the delayed removal */
+		struct work_struct work;
+		/** @delayed_removal.invalidate: If it needs invalidation upon removal */
+		bool invalidate;
+	} delayed_removal;
 };
 
 /**
Signature · 1 line
2.45.1
#13 lore raw

✓ CI.Patch_applied: success for xe_ggtt node refactor for safer node removal

In reply to Rodrigo Vivi
== Series Details ==

== Series Details ==

Series: xe_ggtt node refactor for safer node removal
URL : https://patchwork.freedesktop.org/series/135537/
State : success

== Summary ==

=== Applying kernel patches on branch 'drm-tip' with base: ===
Base commit: 886eeb6d89b5 drm-tip: 2024y-06m-28d-10h-30m-43s UTC integration manifest === git am output follows ===
Applying: drm/xe: Removed unused xe_ggtt_printk
Applying: drm/xe: Introduce GGTT documentation
Applying: drm/xe: Remove unnecessary drm_mm.h includes
Applying: drm/{i915, xe}: Avoid direct inspection of dpt_vma from outside dpt
Applying: drm/xe: Encapsulate drm_mm_node inside xe_ggtt_node
Applying: drm/xe: Rename xe_ggtt_node related functions
Applying: drm/xe: Limit drm_mm_node_allocated access to xe_ggtt_node
Applying: drm/xe: Introduce xe_ggtt_largest_hole
Applying: drm/xe: Introduce xe_ggtt_print_holes
Applying: drm/xe: Rename xe_ggtt balloon functions to make the node clear
Applying: drm/xe: Make xe_ggtt_node struct independent
Applying: drm/xe: Fix missing runtime outer protection for ggtt_remove_node

#14 lore raw

✓ CI.checkpatch: success for xe_ggtt node refactor for safer node removal

In reply to Rodrigo Vivi
== Series Details ==

== Series Details ==

Series: xe_ggtt node refactor for safer node removal
URL : https://patchwork.freedesktop.org/series/135537/
State : success

== 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 51ce9f6cd981d42d7467409d7dbc559a450abc1e
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit b600c8cea68c1db3d7d773b77545d4db1e36ed02

Author: Rodrigo Vivi <[email protected]>
Date:   Fri Jun 28 15:27:53 2024 -0400

drm/xe: Fix missing runtime outer protection for ggtt_remove_node

Defer the ggtt node removal to a thread if runtime_pm is not active.

The ggtt node removal can be called from multiple places, including places where we cannot protect with outer callers and places we are within other locks. So, try to grab the runtime reference if the device is already active, otherwise defer the removal to a separate thread from where we are sure we can wake the device up.

v2: - use xe wq instead of system wq (Matt and CI)
- Avoid GFP_KERNEL to be future proof since this removal can be called from outside our drivers and we don't want to block if atomic is needed. (Brost)
v3: amend forgot chunk declaring xe_device.
v4: Use a xe_ggtt_region to encapsulate the node and remova info,
wihtout the need for any memory allocation at runtime.
v5: Actually fill the delayed_removal.invalidate (Brost)
v6: - Ensure that ggtt_region is not freed before work finishes (Auld)
- Own wq to ensures that the queued works are flushed before ggtt_fini (Brost)
v7: also free ggtt_region on early !bound return (Auld)
v8: Address the null deref (CI)
v9: Based on the new xe_ggtt_node for the proper care of the lifetime
of the object.

Cc Matthew Auld <[email protected]>
Cc Paulo Zanoni <[email protected]>
Cc Francois Dugast <[email protected]>
Cc Thomas Hellström <[email protected]>
Cc Matthew Brost <[email protected]>

+ /mt/dim checkpatch 886eeb6d89b58f914ee5045fcac54b59a73d8299 drm-intel 4fa364434f8f drm/xe: Removed unused xe_ggtt_printk
41de0af5bd68 drm/xe: Introduce GGTT documentation
fd9a8bb2d952 drm/xe: Remove unnecessary drm_mm.h includes d98117841740 drm/{i915, xe}: Avoid direct inspection of dpt_vma from outside dpt d1a54c68ba11 drm/xe: Encapsulate drm_mm_node inside xe_ggtt_node b564b2ec03ff drm/xe: Rename xe_ggtt_node related functions 468ca3f4f7f9 drm/xe: Limit drm_mm_node_allocated access to xe_ggtt_node 51a89f9af4ce drm/xe: Introduce xe_ggtt_largest_hole
1afde8f803b8 drm/xe: Introduce xe_ggtt_print_holes
68da23a58576 drm/xe: Rename xe_ggtt balloon functions to make the node clear dfa0f45ef106 drm/xe: Make xe_ggtt_node struct independent b600c8cea68c drm/xe: Fix missing runtime outer protection for ggtt_remove_node

#15 lore raw

✓ CI.KUnit: success for xe_ggtt node refactor for safer node removal

In reply to Rodrigo Vivi
== Series Details ==

== Series Details ==

Series: xe_ggtt node refactor for safer node removal
URL : https://patchwork.freedesktop.org/series/135537/
State : success

== Summary ==

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

$ make ARCH=um O=.kunit olddefconfig
[04:39:48] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make ARCH=um O=.kunit --jobs=48
../lib/iomap.c:156:5: warning: no previous prototype for ‘ioread64_lo_hi’ [-Wmissing-prototypes]
  156 | u64 ioread64_lo_hi(const void __iomem *addr)
      |     ^~~~~~~~~~~~~~
../lib/iomap.c:163:5: warning: no previous prototype for ‘ioread64_hi_lo’ [-Wmissing-prototypes]
  163 | u64 ioread64_hi_lo(const void __iomem *addr)
      |     ^~~~~~~~~~~~~~
../lib/iomap.c:170:5: warning: no previous prototype for ‘ioread64be_lo_hi’ [-Wmissing-prototypes]
  170 | u64 ioread64be_lo_hi(const void __iomem *addr)
      |     ^~~~~~~~~~~~~~~~
../lib/iomap.c:178:5: warning: no previous prototype for ‘ioread64be_hi_lo’ [-Wmissing-prototypes]
  178 | u64 ioread64be_hi_lo(const void __iomem *addr)
      |     ^~~~~~~~~~~~~~~~
../lib/iomap.c:264:6: warning: no previous prototype for ‘iowrite64_lo_hi’ [-Wmissing-prototypes]
  264 | void iowrite64_lo_hi(u64 val, void __iomem *addr)
      |      ^~~~~~~~~~~~~~~
../lib/iomap.c:272:6: warning: no previous prototype for ‘iowrite64_hi_lo’ [-Wmissing-prototypes]
  272 | void iowrite64_hi_lo(u64 val, void __iomem *addr)
      |      ^~~~~~~~~~~~~~~
../lib/iomap.c:280:6: warning: no previous prototype for ‘iowrite64be_lo_hi’ [-Wmissing-prototypes]
  280 | void iowrite64be_lo_hi(u64 val, void __iomem *addr)
      |      ^~~~~~~~~~~~~~~~~
../lib/iomap.c:288:6: warning: no previous prototype for ‘iowrite64be_hi_lo’ [-Wmissing-prototypes]
  288 | void iowrite64be_hi_lo(u64 val, void __iomem *addr)
      |      ^~~~~~~~~~~~~~~~~

[04:40:14] Starting KUnit Kernel (1/1)...
[04:40:14] ============================================================ Running tests with:

$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[04:40:14] =================== guc_dbm (7 subtests) ===================
[04:40:14] [PASSED] test_empty
[04:40:14] [PASSED] test_default
[04:40:14] ======================== test_size  ========================
[04:40:14] [PASSED] 4
[04:40:14] [PASSED] 8
[04:40:14] [PASSED] 32
[04:40:14] [PASSED] 256
[04:40:14] ==================== [PASSED] test_size ====================
[04:40:14] ======================= test_reuse  ========================
[04:40:14] [PASSED] 4
[04:40:14] [PASSED] 8
[04:40:14] [PASSED] 32
[04:40:14] [PASSED] 256
[04:40:14] =================== [PASSED] test_reuse ====================
[04:40:14] =================== test_range_overlap  ====================
[04:40:14] [PASSED] 4
[04:40:14] [PASSED] 8
[04:40:14] [PASSED] 32
[04:40:14] [PASSED] 256
[04:40:14] =============== [PASSED] test_range_overlap ================
[04:40:14] =================== test_range_compact  ====================
[04:40:14] [PASSED] 4
[04:40:14] [PASSED] 8
[04:40:14] [PASSED] 32
[04:40:14] [PASSED] 256
[04:40:14] =============== [PASSED] test_range_compact ================
[04:40:14] ==================== test_range_spare  =====================
[04:40:14] [PASSED] 4
[04:40:14] [PASSED] 8
[04:40:14] [PASSED] 32
[04:40:14] [PASSED] 256
[04:40:14] ================ [PASSED] test_range_spare =================
[04:40:14] ===================== [PASSED] guc_dbm =====================
[04:40:14] =================== guc_idm (6 subtests) ===================
[04:40:14] [PASSED] bad_init
[04:40:14] [PASSED] no_init
[04:40:14] [PASSED] init_fini
[04:40:14] [PASSED] check_used
[04:40:14] [PASSED] check_quota
[04:40:14] [PASSED] check_all
[04:40:14] ===================== [PASSED] guc_idm =====================
[04:40:14] ================== no_relay (3 subtests) ===================
[04:40:14] [PASSED] xe_drops_guc2pf_if_not_ready
[04:40:14] [PASSED] xe_drops_guc2vf_if_not_ready
[04:40:14] [PASSED] xe_rejects_send_if_not_ready
[04:40:14] ==================== [PASSED] no_relay =====================
[04:40:14] ================== pf_relay (14 subtests) ==================
[04:40:14] [PASSED] pf_rejects_guc2pf_too_short
[04:40:14] [PASSED] pf_rejects_guc2pf_too_long
[04:40:14] [PASSED] pf_rejects_guc2pf_no_payload
[04:40:14] [PASSED] pf_fails_no_payload
[04:40:14] [PASSED] pf_fails_bad_origin
[04:40:14] [PASSED] pf_fails_bad_type
[04:40:14] [PASSED] pf_txn_reports_error
[04:40:14] [PASSED] pf_txn_sends_pf2guc
[04:40:14] [PASSED] pf_sends_pf2guc
[04:40:14] [SKIPPED] pf_loopback_nop
[04:40:14] [SKIPPED] pf_loopback_echo
[04:40:14] [SKIPPED] pf_loopback_fail
[04:40:14] [SKIPPED] pf_loopback_busy
[04:40:14] [SKIPPED] pf_loopback_retry
[04:40:14] ==================== [PASSED] pf_relay =====================
[04:40:14] ================== vf_relay (3 subtests) ===================
[04:40:14] [PASSED] vf_rejects_guc2vf_too_short
[04:40:14] [PASSED] vf_rejects_guc2vf_too_long
[04:40:14] [PASSED] vf_rejects_guc2vf_no_payload
[04:40:14] ==================== [PASSED] vf_relay =====================
[04:40:14] ================= pf_service (11 subtests) =================
[04:40:14] [PASSED] pf_negotiate_any
[04:40:14] [PASSED] pf_negotiate_base_match
[04:40:14] [PASSED] pf_negotiate_base_newer
[04:40:14] [PASSED] pf_negotiate_base_next
[04:40:14] [SKIPPED] pf_negotiate_base_older
[04:40:14] [PASSED] pf_negotiate_base_prev
[04:40:14] [PASSED] pf_negotiate_latest_match
[04:40:14] [PASSED] pf_negotiate_latest_newer
[04:40:14] [PASSED] pf_negotiate_latest_next
[04:40:14] [SKIPPED] pf_negotiate_latest_older
[04:40:14] [SKIPPED] pf_negotiate_latest_prev
[04:40:14] =================== [PASSED] pf_service ====================
[04:40:14] ===================== lmtt (1 subtest) =====================
[04:40:14] ======================== test_ops  =========================
[04:40:14] [PASSED] 2-level
[04:40:14] [PASSED] multi-level
[04:40:14] ==================== [PASSED] test_ops =====================
[04:40:14] ====================== [PASSED] lmtt =======================
[04:40:14] ==================== xe_bo (2 subtests) ====================
[04:40:14] [SKIPPED] xe_ccs_migrate_kunit
[04:40:14] [SKIPPED] xe_bo_evict_kunit
[04:40:14] ===================== [SKIPPED] xe_bo ======================
[04:40:14] ================== xe_dma_buf (1 subtest) ==================
[04:40:14] [SKIPPED] xe_dma_buf_kunit
[04:40:14] =================== [SKIPPED] xe_dma_buf ===================
[04:40:14] ================== xe_migrate (1 subtest) ==================
[04:40:14] [SKIPPED] xe_migrate_sanity_kunit
[04:40:14] =================== [SKIPPED] xe_migrate ===================
[04:40:14] =================== xe_mocs (2 subtests) ===================
[04:40:14] [SKIPPED] xe_live_mocs_kernel_kunit
[04:40:14] [SKIPPED] xe_live_mocs_reset_kunit
[04:40:14] ==================== [SKIPPED] xe_mocs =====================
[04:40:14] ==================== args (11 subtests) ====================
[04:40:14] [PASSED] count_args_test
[04:40:14] [PASSED] call_args_example
[04:40:14] [PASSED] call_args_test
[04:40:14] [PASSED] drop_first_arg_example
[04:40:14] [PASSED] drop_first_arg_test
[04:40:14] [PASSED] first_arg_example
[04:40:14] [PASSED] first_arg_test
[04:40:14] [PASSED] last_arg_example
[04:40:14] [PASSED] last_arg_test
[04:40:14] [PASSED] pick_arg_example
[04:40:14] [PASSED] sep_comma_example
[04:40:14] ====================== [PASSED] args =======================
[04:40:14] =================== xe_pci (2 subtests) ====================
[04:40:14] [PASSED] xe_gmdid_graphics_ip
[04:40:14] [PASSED] xe_gmdid_media_ip
[04:40:14] ===================== [PASSED] xe_pci ======================
[04:40:14] ==================== xe_rtp (1 subtest) ====================
[04:40:14] ================== xe_rtp_process_tests  ===================
[04:40:14] [PASSED] coalesce-same-reg
[04:40:14] [PASSED] no-match-no-add
[04:40:14] [PASSED] match-or
[04:40:14] [PASSED] match-or-xfail
[04:40:14] [PASSED] no-match-no-add-multiple-rules
[04:40:14] [PASSED] two-regs-two-entries
[04:40:14] [PASSED] clr-one-set-other
[04:40:14] [PASSED] set-field
[04:40:14] [PASSED] conflict-duplicate
[04:40:14] [PASSED] conflict-not-disjoint
[04:40:14] [PASSED] conflict-reg-type
stty: 'standard input': Inappropriate ioctl for device
[04:40:14] ============== [PASSED] xe_rtp_process_tests ===============
[04:40:14] ===================== [PASSED] xe_rtp ======================
[04:40:14] ==================== xe_wa (1 subtest) =====================
[04:40:14] ======================== xe_wa_gt  =========================
[04:40:14] [PASSED] TIGERLAKE (B0)
[04:40:14] [PASSED] DG1 (A0)
[04:40:14] [PASSED] DG1 (B0)
[04:40:14] [PASSED] ALDERLAKE_S (A0)
[04:40:14] [PASSED] ALDERLAKE_S (B0)
[04:40:14] [PASSED] ALDERLAKE_S (C0)
[04:40:14] [PASSED] ALDERLAKE_S (D0)
[04:40:14] [PASSED] ALDERLAKE_P (A0)
[04:40:14] [PASSED] ALDERLAKE_P (B0)
[04:40:14] [PASSED] ALDERLAKE_P (C0)
[04:40:14] [PASSED] ALDERLAKE_S_RPLS (D0)
[04:40:14] [PASSED] ALDERLAKE_P_RPLU (E0)
[04:40:14] [PASSED] DG2_G10 (C0)
[04:40:14] [PASSED] DG2_G11 (B1)
[04:40:14] [PASSED] DG2_G12 (A1)
[04:40:14] [PASSED] METEORLAKE (g:A0, m:A0)
[04:40:14] [PASSED] METEORLAKE (g:A0, m:A0)
[04:40:14] [PASSED] METEORLAKE (g:A0, m:A0)
[04:40:14] [PASSED] LUNARLAKE (g:A0, m:A0)
[04:40:14] [PASSED] LUNARLAKE (g:B0, m:A0)
[04:40:14] ==================== [PASSED] xe_wa_gt =====================
[04:40:14] ====================== [PASSED] xe_wa ======================
[04:40:14] ============================================================
[04:40:14] Testing complete. Ran 111 tests: passed: 97, skipped: 14
[04:40:14] Elapsed time: 30.226s total, 4.231s configuring, 25.723s building, 0.228s running

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

$ make ARCH=um O=.kunit olddefconfig
[04:40:16] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make ARCH=um O=.kunit --jobs=48
../lib/iomap.c:156:5: warning: no previous prototype for ‘ioread64_lo_hi’ [-Wmissing-prototypes]
  156 | u64 ioread64_lo_hi(const void __iomem *addr)
      |     ^~~~~~~~~~~~~~
../lib/iomap.c:163:5: warning: no previous prototype for ‘ioread64_hi_lo’ [-Wmissing-prototypes]
  163 | u64 ioread64_hi_lo(const void __iomem *addr)
      |     ^~~~~~~~~~~~~~
../lib/iomap.c:170:5: warning: no previous prototype for ‘ioread64be_lo_hi’ [-Wmissing-prototypes]
  170 | u64 ioread64be_lo_hi(const void __iomem *addr)
      |     ^~~~~~~~~~~~~~~~
../lib/iomap.c:178:5: warning: no previous prototype for ‘ioread64be_hi_lo’ [-Wmissing-prototypes]
  178 | u64 ioread64be_hi_lo(const void __iomem *addr)
      |     ^~~~~~~~~~~~~~~~
../lib/iomap.c:264:6: warning: no previous prototype for ‘iowrite64_lo_hi’ [-Wmissing-prototypes]
  264 | void iowrite64_lo_hi(u64 val, void __iomem *addr)
      |      ^~~~~~~~~~~~~~~
../lib/iomap.c:272:6: warning: no previous prototype for ‘iowrite64_hi_lo’ [-Wmissing-prototypes]
  272 | void iowrite64_hi_lo(u64 val, void __iomem *addr)
      |      ^~~~~~~~~~~~~~~
../lib/iomap.c:280:6: warning: no previous prototype for ‘iowrite64be_lo_hi’ [-Wmissing-prototypes]
  280 | void iowrite64be_lo_hi(u64 val, void __iomem *addr)
      |      ^~~~~~~~~~~~~~~~~
../lib/iomap.c:288:6: warning: no previous prototype for ‘iowrite64be_hi_lo’ [-Wmissing-prototypes]
  288 | void iowrite64be_hi_lo(u64 val, void __iomem *addr)
      |      ^~~~~~~~~~~~~~~~~

[04:40:38] Starting KUnit Kernel (1/1)...
[04:40:38] ============================================================ Running tests with:

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

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

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

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

#16 lore raw

✓ CI.Patch_applied: success for xe_ggtt node refactor for safer node removal (rev2)

In reply to Rodrigo Vivi
== Series Details ==

== Series Details ==

Series: xe_ggtt node refactor for safer node removal (rev2)
URL : https://patchwork.freedesktop.org/series/135537/
State : success

== Summary ==

=== Applying kernel patches on branch 'drm-tip' with base: ===
Base commit: 886eeb6d89b5 drm-tip: 2024y-06m-28d-10h-30m-43s UTC integration manifest === git am output follows ===
Applying: drm/xe: Removed unused xe_ggtt_printk
Applying: drm/xe: Introduce GGTT documentation
Applying: drm/xe: Remove unnecessary drm_mm.h includes
Applying: drm/{i915, xe}: Avoid direct inspection of dpt_vma from outside dpt
Applying: drm/xe: Encapsulate drm_mm_node inside xe_ggtt_node
Applying: drm/xe: Rename xe_ggtt_node related functions
Applying: drm/xe: Limit drm_mm_node_allocated access to xe_ggtt_node
Applying: drm/xe: Introduce xe_ggtt_largest_hole
Applying: drm/xe: Introduce xe_ggtt_print_holes
Applying: drm/xe: Rename xe_ggtt balloon functions to make the node clear
Applying: drm/xe: Make xe_ggtt_node struct independent
Applying: drm/xe: Fix missing runtime outer protection for ggtt_remove_node

#17 lore raw

✓ CI.checkpatch: success for xe_ggtt node refactor for safer node removal (rev2)

In reply to Rodrigo Vivi
== Series Details ==

== Series Details ==

Series: xe_ggtt node refactor for safer node removal (rev2)
URL : https://patchwork.freedesktop.org/series/135537/
State : success

== 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 51ce9f6cd981d42d7467409d7dbc559a450abc1e
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 089033f763a3d171d5bad749d8f51b15daa20ac2

Author: Rodrigo Vivi <[email protected]>
Date:   Fri Jun 28 15:27:53 2024 -0400

drm/xe: Fix missing runtime outer protection for ggtt_remove_node

Defer the ggtt node removal to a thread if runtime_pm is not active.

The ggtt node removal can be called from multiple places, including places where we cannot protect with outer callers and places we are within other locks. So, try to grab the runtime reference if the device is already active, otherwise defer the removal to a separate thread from where we are sure we can wake the device up.

v2: - use xe wq instead of system wq (Matt and CI)
- Avoid GFP_KERNEL to be future proof since this removal can be called from outside our drivers and we don't want to block if atomic is needed. (Brost)
v3: amend forgot chunk declaring xe_device.
v4: Use a xe_ggtt_region to encapsulate the node and remova info,
wihtout the need for any memory allocation at runtime.
v5: Actually fill the delayed_removal.invalidate (Brost)
v6: - Ensure that ggtt_region is not freed before work finishes (Auld)
- Own wq to ensures that the queued works are flushed before ggtt_fini (Brost)
v7: also free ggtt_region on early !bound return (Auld)
v8: Address the null deref (CI)
v9: Based on the new xe_ggtt_node for the proper care of the lifetime
of the object.

Cc Matthew Auld <[email protected]>
Cc Paulo Zanoni <[email protected]>
Cc Francois Dugast <[email protected]>
Cc Thomas Hellström <[email protected]>
Cc Matthew Brost <[email protected]>

+ /mt/dim checkpatch 886eeb6d89b58f914ee5045fcac54b59a73d8299 drm-intel ff2374a8ce5c drm/xe: Removed unused xe_ggtt_printk
1190bbf94d61 drm/xe: Introduce GGTT documentation
7cff75d63fad drm/xe: Remove unnecessary drm_mm.h includes a76482300ca5 drm/{i915, xe}: Avoid direct inspection of dpt_vma from outside dpt 18e57b53508d drm/xe: Encapsulate drm_mm_node inside xe_ggtt_node b91912bc289c drm/xe: Rename xe_ggtt_node related functions edab69ef9b21 drm/xe: Limit drm_mm_node_allocated access to xe_ggtt_node c55b24bf525f drm/xe: Introduce xe_ggtt_largest_hole
719884426317 drm/xe: Introduce xe_ggtt_print_holes
ab67ed6ef94a drm/xe: Rename xe_ggtt balloon functions to make the node clear 241213d6ae60 drm/xe: Make xe_ggtt_node struct independent 089033f763a3 drm/xe: Fix missing runtime outer protection for ggtt_remove_node

#18 lore raw

✓ CI.KUnit: success for xe_ggtt node refactor for safer node removal (rev2)

In reply to Rodrigo Vivi
== Series Details ==

== Series Details ==

Series: xe_ggtt node refactor for safer node removal (rev2)
URL : https://patchwork.freedesktop.org/series/135537/
State : success

== Summary ==

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

$ make ARCH=um O=.kunit olddefconfig
[04:51:33] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make ARCH=um O=.kunit --jobs=48
../lib/iomap.c:156:5: warning: no previous prototype for ‘ioread64_lo_hi’ [-Wmissing-prototypes]
  156 | u64 ioread64_lo_hi(const void __iomem *addr)
      |     ^~~~~~~~~~~~~~
../lib/iomap.c:163:5: warning: no previous prototype for ‘ioread64_hi_lo’ [-Wmissing-prototypes]
  163 | u64 ioread64_hi_lo(const void __iomem *addr)
      |     ^~~~~~~~~~~~~~
../lib/iomap.c:170:5: warning: no previous prototype for ‘ioread64be_lo_hi’ [-Wmissing-prototypes]
  170 | u64 ioread64be_lo_hi(const void __iomem *addr)
      |     ^~~~~~~~~~~~~~~~
../lib/iomap.c:178:5: warning: no previous prototype for ‘ioread64be_hi_lo’ [-Wmissing-prototypes]
  178 | u64 ioread64be_hi_lo(const void __iomem *addr)
      |     ^~~~~~~~~~~~~~~~
../lib/iomap.c:264:6: warning: no previous prototype for ‘iowrite64_lo_hi’ [-Wmissing-prototypes]
  264 | void iowrite64_lo_hi(u64 val, void __iomem *addr)
      |      ^~~~~~~~~~~~~~~
../lib/iomap.c:272:6: warning: no previous prototype for ‘iowrite64_hi_lo’ [-Wmissing-prototypes]
  272 | void iowrite64_hi_lo(u64 val, void __iomem *addr)
      |      ^~~~~~~~~~~~~~~
../lib/iomap.c:280:6: warning: no previous prototype for ‘iowrite64be_lo_hi’ [-Wmissing-prototypes]
  280 | void iowrite64be_lo_hi(u64 val, void __iomem *addr)
      |      ^~~~~~~~~~~~~~~~~
../lib/iomap.c:288:6: warning: no previous prototype for ‘iowrite64be_hi_lo’ [-Wmissing-prototypes]
  288 | void iowrite64be_hi_lo(u64 val, void __iomem *addr)
      |      ^~~~~~~~~~~~~~~~~

[04:51:58] Starting KUnit Kernel (1/1)...
[04:51:58] ============================================================ Running tests with:

$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[04:51:58] =================== guc_dbm (7 subtests) ===================
[04:51:58] [PASSED] test_empty
[04:51:58] [PASSED] test_default
[04:51:58] ======================== test_size  ========================
[04:51:58] [PASSED] 4
[04:51:58] [PASSED] 8
[04:51:58] [PASSED] 32
[04:51:58] [PASSED] 256
[04:51:58] ==================== [PASSED] test_size ====================
[04:51:58] ======================= test_reuse  ========================
[04:51:58] [PASSED] 4
[04:51:58] [PASSED] 8
[04:51:58] [PASSED] 32
[04:51:58] [PASSED] 256
[04:51:58] =================== [PASSED] test_reuse ====================
[04:51:58] =================== test_range_overlap  ====================
[04:51:58] [PASSED] 4
[04:51:58] [PASSED] 8
[04:51:58] [PASSED] 32
[04:51:58] [PASSED] 256
[04:51:58] =============== [PASSED] test_range_overlap ================
[04:51:58] =================== test_range_compact  ====================
[04:51:58] [PASSED] 4
[04:51:58] [PASSED] 8
[04:51:58] [PASSED] 32
[04:51:58] [PASSED] 256
[04:51:58] =============== [PASSED] test_range_compact ================
[04:51:58] ==================== test_range_spare  =====================
[04:51:58] [PASSED] 4
[04:51:58] [PASSED] 8
[04:51:58] [PASSED] 32
[04:51:58] [PASSED] 256
[04:51:58] ================ [PASSED] test_range_spare =================
[04:51:58] ===================== [PASSED] guc_dbm =====================
[04:51:58] =================== guc_idm (6 subtests) ===================
[04:51:58] [PASSED] bad_init
[04:51:58] [PASSED] no_init
[04:51:58] [PASSED] init_fini
[04:51:58] [PASSED] check_used
[04:51:58] [PASSED] check_quota
[04:51:58] [PASSED] check_all
[04:51:58] ===================== [PASSED] guc_idm =====================
[04:51:58] ================== no_relay (3 subtests) ===================
[04:51:58] [PASSED] xe_drops_guc2pf_if_not_ready
[04:51:58] [PASSED] xe_drops_guc2vf_if_not_ready
[04:51:58] [PASSED] xe_rejects_send_if_not_ready
[04:51:58] ==================== [PASSED] no_relay =====================
[04:51:58] ================== pf_relay (14 subtests) ==================
[04:51:58] [PASSED] pf_rejects_guc2pf_too_short
[04:51:58] [PASSED] pf_rejects_guc2pf_too_long
[04:51:58] [PASSED] pf_rejects_guc2pf_no_payload
[04:51:58] [PASSED] pf_fails_no_payload
[04:51:58] [PASSED] pf_fails_bad_origin
[04:51:58] [PASSED] pf_fails_bad_type
[04:51:58] [PASSED] pf_txn_reports_error
[04:51:58] [PASSED] pf_txn_sends_pf2guc
[04:51:58] [PASSED] pf_sends_pf2guc
[04:51:58] [SKIPPED] pf_loopback_nop
[04:51:58] [SKIPPED] pf_loopback_echo
[04:51:58] [SKIPPED] pf_loopback_fail
[04:51:58] [SKIPPED] pf_loopback_busy
[04:51:58] [SKIPPED] pf_loopback_retry
[04:51:58] ==================== [PASSED] pf_relay =====================
[04:51:58] ================== vf_relay (3 subtests) ===================
[04:51:58] [PASSED] vf_rejects_guc2vf_too_short
[04:51:58] [PASSED] vf_rejects_guc2vf_too_long
[04:51:58] [PASSED] vf_rejects_guc2vf_no_payload
[04:51:58] ==================== [PASSED] vf_relay =====================
[04:51:58] ================= pf_service (11 subtests) =================
[04:51:58] [PASSED] pf_negotiate_any
[04:51:58] [PASSED] pf_negotiate_base_match
[04:51:58] [PASSED] pf_negotiate_base_newer
[04:51:58] [PASSED] pf_negotiate_base_next
[04:51:58] [SKIPPED] pf_negotiate_base_older
[04:51:58] [PASSED] pf_negotiate_base_prev
[04:51:58] [PASSED] pf_negotiate_latest_match
[04:51:58] [PASSED] pf_negotiate_latest_newer
[04:51:58] [PASSED] pf_negotiate_latest_next
[04:51:58] [SKIPPED] pf_negotiate_latest_older
[04:51:58] [SKIPPED] pf_negotiate_latest_prev
[04:51:58] =================== [PASSED] pf_service ====================
[04:51:58] ===================== lmtt (1 subtest) =====================
[04:51:58] ======================== test_ops  =========================
[04:51:58] [PASSED] 2-level
[04:51:58] [PASSED] multi-level
[04:51:58] ==================== [PASSED] test_ops =====================
[04:51:58] ====================== [PASSED] lmtt =======================
[04:51:58] ==================== xe_bo (2 subtests) ====================
[04:51:58] [SKIPPED] xe_ccs_migrate_kunit
[04:51:58] [SKIPPED] xe_bo_evict_kunit
[04:51:58] ===================== [SKIPPED] xe_bo ======================
[04:51:58] ================== xe_dma_buf (1 subtest) ==================
[04:51:58] [SKIPPED] xe_dma_buf_kunit
[04:51:58] =================== [SKIPPED] xe_dma_buf ===================
[04:51:58] ================== xe_migrate (1 subtest) ==================
[04:51:58] [SKIPPED] xe_migrate_sanity_kunit
[04:51:58] =================== [SKIPPED] xe_migrate ===================
[04:51:58] =================== xe_mocs (2 subtests) ===================
[04:51:58] [SKIPPED] xe_live_mocs_kernel_kunit
[04:51:58] [SKIPPED] xe_live_mocs_reset_kunit
[04:51:58] ==================== [SKIPPED] xe_mocs =====================
[04:51:58] ==================== args (11 subtests) ====================
[04:51:58] [PASSED] count_args_test
[04:51:58] [PASSED] call_args_example
[04:51:58] [PASSED] call_args_test
[04:51:58] [PASSED] drop_first_arg_example
[04:51:58] [PASSED] drop_first_arg_test
[04:51:58] [PASSED] first_arg_example
[04:51:58] [PASSED] first_arg_test
[04:51:58] [PASSED] last_arg_example
[04:51:58] [PASSED] last_arg_test
[04:51:58] [PASSED] pick_arg_example
[04:51:58] [PASSED] sep_comma_example
[04:51:58] ====================== [PASSED] args =======================
[04:51:58] =================== xe_pci (2 subtests) ====================
[04:51:58] [PASSED] xe_gmdid_graphics_ip
[04:51:58] [PASSED] xe_gmdid_media_ip
[04:51:58] ===================== [PASSED] xe_pci ======================
[04:51:58] ==================== xe_rtp (1 subtest) ====================
[04:51:58] ================== xe_rtp_process_tests  ===================
[04:51:58] [PASSED] coalesce-same-reg
[04:51:58] [PASSED] no-match-no-add
[04:51:58] [PASSED] match-or
[04:51:58] [PASSED] match-or-xfail
[04:51:58] [PASSED] no-match-no-add-multiple-rules
[04:51:58] [PASSED] two-regs-two-entries
[04:51:58] [PASSED] clr-one-set-other
[04:51:58] [PASSED] set-field
[04:51:58] [PASSED] conflict-duplicate
[04:51:58] [PASSED] conflict-not-disjoint
[04:51:58] [PASSED] conflict-reg-type
stty: 'standard input': Inappropriate ioctl for device
[04:51:58] ============== [PASSED] xe_rtp_process_tests ===============
[04:51:58] ===================== [PASSED] xe_rtp ======================
[04:51:58] ==================== xe_wa (1 subtest) =====================
[04:51:58] ======================== xe_wa_gt  =========================
[04:51:58] [PASSED] TIGERLAKE (B0)
[04:51:58] [PASSED] DG1 (A0)
[04:51:58] [PASSED] DG1 (B0)
[04:51:58] [PASSED] ALDERLAKE_S (A0)
[04:51:58] [PASSED] ALDERLAKE_S (B0)
[04:51:58] [PASSED] ALDERLAKE_S (C0)
[04:51:58] [PASSED] ALDERLAKE_S (D0)
[04:51:58] [PASSED] ALDERLAKE_P (A0)
[04:51:58] [PASSED] ALDERLAKE_P (B0)
[04:51:58] [PASSED] ALDERLAKE_P (C0)
[04:51:58] [PASSED] ALDERLAKE_S_RPLS (D0)
[04:51:58] [PASSED] ALDERLAKE_P_RPLU (E0)
[04:51:58] [PASSED] DG2_G10 (C0)
[04:51:58] [PASSED] DG2_G11 (B1)
[04:51:58] [PASSED] DG2_G12 (A1)
[04:51:58] [PASSED] METEORLAKE (g:A0, m:A0)
[04:51:58] [PASSED] METEORLAKE (g:A0, m:A0)
[04:51:58] [PASSED] METEORLAKE (g:A0, m:A0)
[04:51:58] [PASSED] LUNARLAKE (g:A0, m:A0)
[04:51:58] [PASSED] LUNARLAKE (g:B0, m:A0)
[04:51:58] ==================== [PASSED] xe_wa_gt =====================
[04:51:58] ====================== [PASSED] xe_wa ======================
[04:51:58] ============================================================
[04:51:58] Testing complete. Ran 111 tests: passed: 97, skipped: 14
[04:51:58] Elapsed time: 29.761s total, 4.263s configuring, 25.222s building, 0.231s running

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

$ make ARCH=um O=.kunit olddefconfig
[04:52:00] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make ARCH=um O=.kunit --jobs=48
../lib/iomap.c:156:5: warning: no previous prototype for ‘ioread64_lo_hi’ [-Wmissing-prototypes]
  156 | u64 ioread64_lo_hi(const void __iomem *addr)
      |     ^~~~~~~~~~~~~~
../lib/iomap.c:163:5: warning: no previous prototype for ‘ioread64_hi_lo’ [-Wmissing-prototypes]
  163 | u64 ioread64_hi_lo(const void __iomem *addr)
      |     ^~~~~~~~~~~~~~
../lib/iomap.c:170:5: warning: no previous prototype for ‘ioread64be_lo_hi’ [-Wmissing-prototypes]
  170 | u64 ioread64be_lo_hi(const void __iomem *addr)
      |     ^~~~~~~~~~~~~~~~
../lib/iomap.c:178:5: warning: no previous prototype for ‘ioread64be_hi_lo’ [-Wmissing-prototypes]
  178 | u64 ioread64be_hi_lo(const void __iomem *addr)
      |     ^~~~~~~~~~~~~~~~
../lib/iomap.c:264:6: warning: no previous prototype for ‘iowrite64_lo_hi’ [-Wmissing-prototypes]
  264 | void iowrite64_lo_hi(u64 val, void __iomem *addr)
      |      ^~~~~~~~~~~~~~~
../lib/iomap.c:272:6: warning: no previous prototype for ‘iowrite64_hi_lo’ [-Wmissing-prototypes]
  272 | void iowrite64_hi_lo(u64 val, void __iomem *addr)
      |      ^~~~~~~~~~~~~~~
../lib/iomap.c:280:6: warning: no previous prototype for ‘iowrite64be_lo_hi’ [-Wmissing-prototypes]
  280 | void iowrite64be_lo_hi(u64 val, void __iomem *addr)
      |      ^~~~~~~~~~~~~~~~~
../lib/iomap.c:288:6: warning: no previous prototype for ‘iowrite64be_hi_lo’ [-Wmissing-prototypes]
  288 | void iowrite64be_hi_lo(u64 val, void __iomem *addr)
      |      ^~~~~~~~~~~~~~~~~

[04:52:22] Starting KUnit Kernel (1/1)...
[04:52:22] ============================================================ Running tests with:

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

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

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

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

#19 lore raw

✓ CI.Patch_applied: success for xe_ggtt node refactor for safer node removal (rev2)

In reply to Rodrigo Vivi
== Series Details ==

== Series Details ==

Series: xe_ggtt node refactor for safer node removal (rev2)
URL : https://patchwork.freedesktop.org/series/135537/
State : success

== Summary ==

=== Applying kernel patches on branch 'drm-tip' with base: ===
Base commit: 886eeb6d89b5 drm-tip: 2024y-06m-28d-10h-30m-43s UTC integration manifest === git am output follows ===
Applying: drm/xe: Removed unused xe_ggtt_printk
Applying: drm/xe: Introduce GGTT documentation
Applying: drm/xe: Remove unnecessary drm_mm.h includes
Applying: drm/{i915, xe}: Avoid direct inspection of dpt_vma from outside dpt
Applying: drm/xe: Encapsulate drm_mm_node inside xe_ggtt_node
Applying: drm/xe: Rename xe_ggtt_node related functions
Applying: drm/xe: Limit drm_mm_node_allocated access to xe_ggtt_node
Applying: drm/xe: Introduce xe_ggtt_largest_hole
Applying: drm/xe: Introduce xe_ggtt_print_holes
Applying: drm/xe: Rename xe_ggtt balloon functions to make the node clear
Applying: drm/xe: Make xe_ggtt_node struct independent
Applying: drm/xe: Fix missing runtime outer protection for ggtt_remove_node

#20 lore raw

✓ CI.checkpatch: success for xe_ggtt node refactor for safer node removal (rev2)

In reply to Rodrigo Vivi
== Series Details ==

== Series Details ==

Series: xe_ggtt node refactor for safer node removal (rev2)
URL : https://patchwork.freedesktop.org/series/135537/
State : success

== 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 51ce9f6cd981d42d7467409d7dbc559a450abc1e
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 62587740bfe9f5aeea806bf12e262fce2e2f3e91

Author: Rodrigo Vivi <[email protected]>
Date:   Fri Jun 28 15:27:53 2024 -0400

drm/xe: Fix missing runtime outer protection for ggtt_remove_node

Defer the ggtt node removal to a thread if runtime_pm is not active.

The ggtt node removal can be called from multiple places, including places where we cannot protect with outer callers and places we are within other locks. So, try to grab the runtime reference if the device is already active, otherwise defer the removal to a separate thread from where we are sure we can wake the device up.

v2: - use xe wq instead of system wq (Matt and CI)
- Avoid GFP_KERNEL to be future proof since this removal can be called from outside our drivers and we don't want to block if atomic is needed. (Brost)
v3: amend forgot chunk declaring xe_device.
v4: Use a xe_ggtt_region to encapsulate the node and remova info,
wihtout the need for any memory allocation at runtime.
v5: Actually fill the delayed_removal.invalidate (Brost)
v6: - Ensure that ggtt_region is not freed before work finishes (Auld)
- Own wq to ensures that the queued works are flushed before ggtt_fini (Brost)
v7: also free ggtt_region on early !bound return (Auld)
v8: Address the null deref (CI)
v9: Based on the new xe_ggtt_node for the proper care of the lifetime
of the object.

Cc Matthew Auld <[email protected]>
Cc Paulo Zanoni <[email protected]>
Cc Francois Dugast <[email protected]>
Cc Thomas Hellström <[email protected]>
Cc Matthew Brost <[email protected]>

+ /mt/dim checkpatch 886eeb6d89b58f914ee5045fcac54b59a73d8299 drm-intel 355529490c65 drm/xe: Removed unused xe_ggtt_printk
6614d5cb0cf1 drm/xe: Introduce GGTT documentation
9cc3969c0060 drm/xe: Remove unnecessary drm_mm.h includes 37034bc46f31 drm/{i915, xe}: Avoid direct inspection of dpt_vma from outside dpt ebfb04ab3923 drm/xe: Encapsulate drm_mm_node inside xe_ggtt_node 555fbd719724 drm/xe: Rename xe_ggtt_node related functions 647d904a64d1 drm/xe: Limit drm_mm_node_allocated access to xe_ggtt_node 4b074ca8a873 drm/xe: Introduce xe_ggtt_largest_hole
6997d60389a2 drm/xe: Introduce xe_ggtt_print_holes
2eff525734e5 drm/xe: Rename xe_ggtt balloon functions to make the node clear 19d4f49a86c3 drm/xe: Make xe_ggtt_node struct independent 62587740bfe9 drm/xe: Fix missing runtime outer protection for ggtt_remove_node

#21 lore raw

✓ CI.KUnit: success for xe_ggtt node refactor for safer node removal (rev2)

In reply to Rodrigo Vivi
== Series Details ==

== Series Details ==

Series: xe_ggtt node refactor for safer node removal (rev2)
URL : https://patchwork.freedesktop.org/series/135537/
State : success

== Summary ==

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

$ make ARCH=um O=.kunit olddefconfig
[12:01:38] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make ARCH=um O=.kunit --jobs=48
../lib/iomap.c:156:5: warning: no previous prototype for ‘ioread64_lo_hi’ [-Wmissing-prototypes]
  156 | u64 ioread64_lo_hi(const void __iomem *addr)
      |     ^~~~~~~~~~~~~~
../lib/iomap.c:163:5: warning: no previous prototype for ‘ioread64_hi_lo’ [-Wmissing-prototypes]
  163 | u64 ioread64_hi_lo(const void __iomem *addr)
      |     ^~~~~~~~~~~~~~
../lib/iomap.c:170:5: warning: no previous prototype for ‘ioread64be_lo_hi’ [-Wmissing-prototypes]
  170 | u64 ioread64be_lo_hi(const void __iomem *addr)
      |     ^~~~~~~~~~~~~~~~
../lib/iomap.c:178:5: warning: no previous prototype for ‘ioread64be_hi_lo’ [-Wmissing-prototypes]
  178 | u64 ioread64be_hi_lo(const void __iomem *addr)
      |     ^~~~~~~~~~~~~~~~
../lib/iomap.c:264:6: warning: no previous prototype for ‘iowrite64_lo_hi’ [-Wmissing-prototypes]
  264 | void iowrite64_lo_hi(u64 val, void __iomem *addr)
      |      ^~~~~~~~~~~~~~~
../lib/iomap.c:272:6: warning: no previous prototype for ‘iowrite64_hi_lo’ [-Wmissing-prototypes]
  272 | void iowrite64_hi_lo(u64 val, void __iomem *addr)
      |      ^~~~~~~~~~~~~~~
../lib/iomap.c:280:6: warning: no previous prototype for ‘iowrite64be_lo_hi’ [-Wmissing-prototypes]
  280 | void iowrite64be_lo_hi(u64 val, void __iomem *addr)
      |      ^~~~~~~~~~~~~~~~~
../lib/iomap.c:288:6: warning: no previous prototype for ‘iowrite64be_hi_lo’ [-Wmissing-prototypes]
  288 | void iowrite64be_hi_lo(u64 val, void __iomem *addr)
      |      ^~~~~~~~~~~~~~~~~

[12:02:03] Starting KUnit Kernel (1/1)...
[12:02:03] ============================================================ Running tests with:

$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[12:02:03] =================== guc_dbm (7 subtests) ===================
[12:02:03] [PASSED] test_empty
[12:02:03] [PASSED] test_default
[12:02:03] ======================== test_size  ========================
[12:02:03] [PASSED] 4
[12:02:03] [PASSED] 8
[12:02:03] [PASSED] 32
[12:02:03] [PASSED] 256
[12:02:03] ==================== [PASSED] test_size ====================
[12:02:03] ======================= test_reuse  ========================
[12:02:03] [PASSED] 4
[12:02:03] [PASSED] 8
[12:02:03] [PASSED] 32
[12:02:03] [PASSED] 256
[12:02:03] =================== [PASSED] test_reuse ====================
[12:02:03] =================== test_range_overlap  ====================
[12:02:03] [PASSED] 4
[12:02:03] [PASSED] 8
[12:02:03] [PASSED] 32
[12:02:03] [PASSED] 256
[12:02:03] =============== [PASSED] test_range_overlap ================
[12:02:03] =================== test_range_compact  ====================
[12:02:03] [PASSED] 4
[12:02:03] [PASSED] 8
[12:02:03] [PASSED] 32
[12:02:04] [PASSED] 256
[12:02:04] =============== [PASSED] test_range_compact ================
[12:02:04] ==================== test_range_spare  =====================
[12:02:04] [PASSED] 4
[12:02:04] [PASSED] 8
[12:02:04] [PASSED] 32
[12:02:04] [PASSED] 256
[12:02:04] ================ [PASSED] test_range_spare =================
[12:02:04] ===================== [PASSED] guc_dbm =====================
[12:02:04] =================== guc_idm (6 subtests) ===================
[12:02:04] [PASSED] bad_init
[12:02:04] [PASSED] no_init
[12:02:04] [PASSED] init_fini
[12:02:04] [PASSED] check_used
[12:02:04] [PASSED] check_quota
[12:02:04] [PASSED] check_all
[12:02:04] ===================== [PASSED] guc_idm =====================
[12:02:04] ================== no_relay (3 subtests) ===================
[12:02:04] [PASSED] xe_drops_guc2pf_if_not_ready
[12:02:04] [PASSED] xe_drops_guc2vf_if_not_ready
[12:02:04] [PASSED] xe_rejects_send_if_not_ready
[12:02:04] ==================== [PASSED] no_relay =====================
[12:02:04] ================== pf_relay (14 subtests) ==================
[12:02:04] [PASSED] pf_rejects_guc2pf_too_short
[12:02:04] [PASSED] pf_rejects_guc2pf_too_long
[12:02:04] [PASSED] pf_rejects_guc2pf_no_payload
[12:02:04] [PASSED] pf_fails_no_payload
[12:02:04] [PASSED] pf_fails_bad_origin
[12:02:04] [PASSED] pf_fails_bad_type
[12:02:04] [PASSED] pf_txn_reports_error
[12:02:04] [PASSED] pf_txn_sends_pf2guc
[12:02:04] [PASSED] pf_sends_pf2guc
[12:02:04] [SKIPPED] pf_loopback_nop
[12:02:04] [SKIPPED] pf_loopback_echo
[12:02:04] [SKIPPED] pf_loopback_fail
[12:02:04] [SKIPPED] pf_loopback_busy
[12:02:04] [SKIPPED] pf_loopback_retry
[12:02:04] ==================== [PASSED] pf_relay =====================
[12:02:04] ================== vf_relay (3 subtests) ===================
[12:02:04] [PASSED] vf_rejects_guc2vf_too_short
[12:02:04] [PASSED] vf_rejects_guc2vf_too_long
[12:02:04] [PASSED] vf_rejects_guc2vf_no_payload
[12:02:04] ==================== [PASSED] vf_relay =====================
[12:02:04] ================= pf_service (11 subtests) =================
[12:02:04] [PASSED] pf_negotiate_any
[12:02:04] [PASSED] pf_negotiate_base_match
[12:02:04] [PASSED] pf_negotiate_base_newer
[12:02:04] [PASSED] pf_negotiate_base_next
[12:02:04] [SKIPPED] pf_negotiate_base_older
[12:02:04] [PASSED] pf_negotiate_base_prev
[12:02:04] [PASSED] pf_negotiate_latest_match
[12:02:04] [PASSED] pf_negotiate_latest_newer
[12:02:04] [PASSED] pf_negotiate_latest_next
[12:02:04] [SKIPPED] pf_negotiate_latest_older
[12:02:04] [SKIPPED] pf_negotiate_latest_prev
[12:02:04] =================== [PASSED] pf_service ====================
[12:02:04] ===================== lmtt (1 subtest) =====================
[12:02:04] ======================== test_ops  =========================
[12:02:04] [PASSED] 2-level
[12:02:04] [PASSED] multi-level
[12:02:04] ==================== [PASSED] test_ops =====================
[12:02:04] ====================== [PASSED] lmtt =======================
[12:02:04] ==================== xe_bo (2 subtests) ====================
[12:02:04] [SKIPPED] xe_ccs_migrate_kunit
[12:02:04] [SKIPPED] xe_bo_evict_kunit
[12:02:04] ===================== [SKIPPED] xe_bo ======================
[12:02:04] ================== xe_dma_buf (1 subtest) ==================
[12:02:04] [SKIPPED] xe_dma_buf_kunit
[12:02:04] =================== [SKIPPED] xe_dma_buf ===================
[12:02:04] ================== xe_migrate (1 subtest) ==================
[12:02:04] [SKIPPED] xe_migrate_sanity_kunit
[12:02:04] =================== [SKIPPED] xe_migrate ===================
[12:02:04] =================== xe_mocs (2 subtests) ===================
[12:02:04] [SKIPPED] xe_live_mocs_kernel_kunit
[12:02:04] [SKIPPED] xe_live_mocs_reset_kunit
[12:02:04] ==================== [SKIPPED] xe_mocs =====================
[12:02:04] ==================== args (11 subtests) ====================
[12:02:04] [PASSED] count_args_test
[12:02:04] [PASSED] call_args_example
[12:02:04] [PASSED] call_args_test
[12:02:04] [PASSED] drop_first_arg_example
[12:02:04] [PASSED] drop_first_arg_test
[12:02:04] [PASSED] first_arg_example
[12:02:04] [PASSED] first_arg_test
[12:02:04] [PASSED] last_arg_example
[12:02:04] [PASSED] last_arg_test
[12:02:04] [PASSED] pick_arg_example
[12:02:04] [PASSED] sep_comma_example
[12:02:04] ====================== [PASSED] args =======================
[12:02:04] =================== xe_pci (2 subtests) ====================
[12:02:04] [PASSED] xe_gmdid_graphics_ip
[12:02:04] [PASSED] xe_gmdid_media_ip
[12:02:04] ===================== [PASSED] xe_pci ======================
[12:02:04] ==================== xe_rtp (1 subtest) ====================
[12:02:04] ================== xe_rtp_process_tests  ===================
[12:02:04] [PASSED] coalesce-same-reg
[12:02:04] [PASSED] no-match-no-add
[12:02:04] [PASSED] match-or
[12:02:04] [PASSED] match-or-xfail
[12:02:04] [PASSED] no-match-no-add-multiple-rules
[12:02:04] [PASSED] two-regs-two-entries
[12:02:04] [PASSED] clr-one-set-other
[12:02:04] [PASSED] set-field
[12:02:04] [PASSED] conflict-duplicate
[12:02:04] [PASSED] conflict-not-disjoint
[12:02:04] [PASSED] conflict-reg-type
stty: 'standard input': Inappropriate ioctl for device
[12:02:04] ============== [PASSED] xe_rtp_process_tests ===============
[12:02:04] ===================== [PASSED] xe_rtp ======================
[12:02:04] ==================== xe_wa (1 subtest) =====================
[12:02:04] ======================== xe_wa_gt  =========================
[12:02:04] [PASSED] TIGERLAKE (B0)
[12:02:04] [PASSED] DG1 (A0)
[12:02:04] [PASSED] DG1 (B0)
[12:02:04] [PASSED] ALDERLAKE_S (A0)
[12:02:04] [PASSED] ALDERLAKE_S (B0)
[12:02:04] [PASSED] ALDERLAKE_S (C0)
[12:02:04] [PASSED] ALDERLAKE_S (D0)
[12:02:04] [PASSED] ALDERLAKE_P (A0)
[12:02:04] [PASSED] ALDERLAKE_P (B0)
[12:02:04] [PASSED] ALDERLAKE_P (C0)
[12:02:04] [PASSED] ALDERLAKE_S_RPLS (D0)
[12:02:04] [PASSED] ALDERLAKE_P_RPLU (E0)
[12:02:04] [PASSED] DG2_G10 (C0)
[12:02:04] [PASSED] DG2_G11 (B1)
[12:02:04] [PASSED] DG2_G12 (A1)
[12:02:04] [PASSED] METEORLAKE (g:A0, m:A0)
[12:02:04] [PASSED] METEORLAKE (g:A0, m:A0)
[12:02:04] [PASSED] METEORLAKE (g:A0, m:A0)
[12:02:04] [PASSED] LUNARLAKE (g:A0, m:A0)
[12:02:04] [PASSED] LUNARLAKE (g:B0, m:A0)
[12:02:04] ==================== [PASSED] xe_wa_gt =====================
[12:02:04] ====================== [PASSED] xe_wa ======================
[12:02:04] ============================================================
[12:02:04] Testing complete. Ran 111 tests: passed: 97, skipped: 14
[12:02:04] Elapsed time: 30.173s total, 4.250s configuring, 25.702s building, 0.195s running

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

$ make ARCH=um O=.kunit olddefconfig
[12:02:05] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make ARCH=um O=.kunit --jobs=48
../lib/iomap.c:156:5: warning: no previous prototype for ‘ioread64_lo_hi’ [-Wmissing-prototypes]
  156 | u64 ioread64_lo_hi(const void __iomem *addr)
      |     ^~~~~~~~~~~~~~
../lib/iomap.c:163:5: warning: no previous prototype for ‘ioread64_hi_lo’ [-Wmissing-prototypes]
  163 | u64 ioread64_hi_lo(const void __iomem *addr)
      |     ^~~~~~~~~~~~~~
../lib/iomap.c:170:5: warning: no previous prototype for ‘ioread64be_lo_hi’ [-Wmissing-prototypes]
  170 | u64 ioread64be_lo_hi(const void __iomem *addr)
      |     ^~~~~~~~~~~~~~~~
../lib/iomap.c:178:5: warning: no previous prototype for ‘ioread64be_hi_lo’ [-Wmissing-prototypes]
  178 | u64 ioread64be_hi_lo(const void __iomem *addr)
      |     ^~~~~~~~~~~~~~~~
../lib/iomap.c:264:6: warning: no previous prototype for ‘iowrite64_lo_hi’ [-Wmissing-prototypes]
  264 | void iowrite64_lo_hi(u64 val, void __iomem *addr)
      |      ^~~~~~~~~~~~~~~
../lib/iomap.c:272:6: warning: no previous prototype for ‘iowrite64_hi_lo’ [-Wmissing-prototypes]
  272 | void iowrite64_hi_lo(u64 val, void __iomem *addr)
      |      ^~~~~~~~~~~~~~~
../lib/iomap.c:280:6: warning: no previous prototype for ‘iowrite64be_lo_hi’ [-Wmissing-prototypes]
  280 | void iowrite64be_lo_hi(u64 val, void __iomem *addr)
      |      ^~~~~~~~~~~~~~~~~
../lib/iomap.c:288:6: warning: no previous prototype for ‘iowrite64be_hi_lo’ [-Wmissing-prototypes]
  288 | void iowrite64be_hi_lo(u64 val, void __iomem *addr)
      |      ^~~~~~~~~~~~~~~~~

[12:02:27] Starting KUnit Kernel (1/1)...
[12:02:27] ============================================================ Running tests with:

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

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

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

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

#22 lore raw

✗ CI.Build: failure for xe_ggtt node refactor for safer node removal (rev2)

In reply to Rodrigo Vivi
== Series Details ==

== Series Details ==

Series: xe_ggtt node refactor for safer node removal (rev2)
URL : https://patchwork.freedesktop.org/series/135537/
State : failure

== Summary ==

CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml2_translation_helper.o

  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml2_dc_resource_mgmt.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml2_mall_phantom.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml_display_rq_dlg_calc.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_top/dml_top.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_top/dml_top_mcache.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_top/dml2_top_optimization.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/inc/dml2_debug.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_core/dml2_core_factory.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_core/dml2_core_shared.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_dpmm/dml2_dpmm_dcn4.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_dpmm/dml2_dpmm_factory.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_mcg/dml2_mcg_dcn4.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_mcg/dml2_mcg_factory.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn3.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn4.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_factory.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn4_fams2.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_standalone_libraries/lib_float_math.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/dml21_translation_helper.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/dml21_wrapper.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/dml21_utils.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dce120/dce120_timing_generator.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_compressor.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_timing_generator.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_compressor.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_opp_regamma_v.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_opp_csc_v.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_timing_generator_v.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_mem_input_v.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_opp_v.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_transform_v.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dce80/dce80_timing_generator.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_timing_generator.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_hw_sequencer.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/hdcp/hdcp_msg.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/spl/dc_spl.o
  LD [M]  drivers/gpu/drm/nouveau/nouveau.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/spl/dc_spl_scl_filters.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/spl/dc_spl_isharp_filters.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_stat.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_hw_sequencer.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_sink.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_surface.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_debug.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_stream.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_enc_cfg.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_exports.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_state.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_vm_helper.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dc_helper.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dmub_srv.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dc_edid_parser.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/dc_spl_translate.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/modules/freesync/freesync.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/modules/color/color_gamma.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/modules/color/color_table.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/modules/info_packet/info_packet.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_srv.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_srv_stat.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_reg.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn20.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn21.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn30.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn301.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn302.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn303.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn31.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn314.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn315.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn316.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn32.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn35.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn351.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn401.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/modules/hdcp/hdcp_ddc.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/modules/hdcp/hdcp_log.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/modules/hdcp/hdcp_psp.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/modules/hdcp/hdcp.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/modules/hdcp/hdcp1_execution.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/modules/hdcp/hdcp1_transition.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/modules/hdcp/hdcp2_execution.o
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/modules/hdcp/hdcp2_transition.o
  LD [M]  drivers/gpu/drm/amd/amdgpu/amdgpu.o

make[5]: *** [../scripts/Makefile.build:485: drivers/gpu/drm] Error 2 make[4]: *** [../scripts/Makefile.build:485: drivers/gpu] Error 2 make[3]: *** [../scripts/Makefile.build:485: drivers] Error 2 make[2]: *** [/kernel/Makefile:1934: .] Error 2
make[1]: Leaving directory '/kernel/build64-default' make[1]: *** [/kernel/Makefile:240: __sub-make] Error 2
make: *** [Makefile:240: __sub-make] Error 2
+ cleanup
++ stat -c %u:%g /kernel
+ chown -R 1003:1003 /kernel