Skip to contentSkip to conversation

GuC paging engine support

PATCH Superseded Matthew Auld 3 participants 17 messages May 26 – May 27

Subsystems (2)

v3 of 7 Superseded Latest is v7 →

lore
Share & tools
lore
#0 lore raw

v3 cover GuC paging engine support

On NVL-S+, the GuC will be moving towards a dedicated GuC engine class for the driver reserved copy engine(s), which we need for USM flows. With this the GuC will now be able to internally differentiate KMD paging operations, like clearing/migrating/binding, from other copy engine submissions.

Note that this is purely a software view within the GuC. There is no new physical engine, or anything like that. With that in mind the design here keeps this contained on the GuC side, with upper layers not needing to know about this distinction.

The final GuC versioning is still being finalised (marked as TODO in the relevant commits) and we are still missing the proper GuC release, so merging is still gated by that, but in the meantime we can get this reviewed in upstream and ready to go. This has already seen some internal smoke testing, both on VF and PF flows with the new GUC_PAGING class.

v2 (Sashiko):
- In VF query patch, we shouldn't call guc_has_paging_engine(), since this is too early in the VF sequence, and GUC_SUBMIT_VER() is still unset.
v3:
- Revamp the paging engine setup in patch 5 (Sashiko)
- Some more improvements from Daniele

Signature · 1 line
2.54.0
#1 lore raw

PATCH v3 1/10 drm/xe/guc: refactor ads to use guc_class

Currently in the lrc init flow on the ads side, we loop through each generic engine class and convert that to the respective guc engine class. However, with some upcoming changes, it will be better to go the opposite way and loop through every guc engine class, and convert that to the generic engine class.

This will be needed in an upcoming patch where we have a new guc engine class that just matches up to the existing blitter/copy class, but needs to be treated as a separate entity from the normal copy lrc, when setting up the ADS.

This also reworks engine_enable_mask to operate on the guc_class, that way we can easily filter out the PAGING vs normal BSC, when applicable.

As a bonus, this also gets rid of two xe_engine_class_to_guc_class() users which will be helpful for the next patch.

No functional changes.

v2 (Daniele):
- Simplify fill_engine_enable_masks() to just loop over all guc classes.

---
 drivers/gpu/drm/xe/xe_guc_ads.c | 69 ++++++++++++++++++++-------------
 1 file changed, 41 insertions(+), 28 deletions(-)
drivers/gpu/drm/xe/xe_guc_ads.c +41 -28
index b9bca6084a4f..b260697dd279 100644
@@ -251,14 +251,35 @@ static size_t calculate_regset_size(struct xe_gt *gt)
 	return count * sizeof(struct guc_mmio_reg);
 }
 
-static u32 engine_enable_mask(struct xe_gt *gt, enum xe_engine_class class)
+static inline enum xe_engine_class guc_class_to_engine_class(u16 guc_class)
+{
+	switch (guc_class) {
+	case GUC_RENDER_CLASS:
+		return XE_ENGINE_CLASS_RENDER;
+	case GUC_VIDEO_CLASS:
+		return XE_ENGINE_CLASS_VIDEO_DECODE;
+	case GUC_VIDEOENHANCE_CLASS:
+		return XE_ENGINE_CLASS_VIDEO_ENHANCE;
+	case GUC_BLITTER_CLASS:
+		return XE_ENGINE_CLASS_COPY;
+	case GUC_COMPUTE_CLASS:
+		return XE_ENGINE_CLASS_COMPUTE;
+	case GUC_GSC_OTHER_CLASS:
+		return XE_ENGINE_CLASS_OTHER;
+	default:
+		XE_WARN_ON(guc_class);
+		return -1;
+	}
+}
+
+static u32 engine_enable_mask(struct xe_gt *gt, u16 guc_class)
 {
 	struct xe_hw_engine *hwe;
 	enum xe_hw_engine_id id;
 	u32 mask = 0;
 
 	for_each_hw_engine(hwe, gt, id)
-		if (hwe->class == class)
+		if (xe_engine_class_to_guc_class(hwe->class) == guc_class)
 			mask |= BIT(hwe->instance);
 
 	return mask;
@@ -268,10 +289,13 @@ static size_t calculate_golden_lrc_size(struct xe_guc_ads *ads)
 {
 	struct xe_gt *gt = ads_to_gt(ads);
 	size_t total_size = 0, alloc_size, real_size;
-	int class;
+	u16 guc_class;
 
-	for (class = 0; class < XE_ENGINE_CLASS_MAX; ++class) {
-		if (!engine_enable_mask(gt, class))
+	for (guc_class = 0; guc_class <= GUC_LAST_ENGINE_CLASS; ++guc_class) {
+		enum xe_engine_class class =
+			guc_class_to_engine_class(guc_class);
+
+		if (!engine_enable_mask(gt, guc_class))
 			continue;
 
 		real_size = xe_gt_lrc_size(gt, class);
@@ -463,20 +487,11 @@ static void fill_engine_enable_masks(struct xe_gt *gt,
 				     struct iosys_map *info_map)
 {
 	struct xe_device *xe = gt_to_xe(gt);
+	u16 guc_class;
 
-	info_map_write(xe, info_map, engine_enabled_masks[GUC_RENDER_CLASS],
-		       engine_enable_mask(gt, XE_ENGINE_CLASS_RENDER));
-	info_map_write(xe, info_map, engine_enabled_masks[GUC_BLITTER_CLASS],
-		       engine_enable_mask(gt, XE_ENGINE_CLASS_COPY));
-	info_map_write(xe, info_map, engine_enabled_masks[GUC_VIDEO_CLASS],
-		       engine_enable_mask(gt, XE_ENGINE_CLASS_VIDEO_DECODE));
-	info_map_write(xe, info_map,
-		       engine_enabled_masks[GUC_VIDEOENHANCE_CLASS],
-		       engine_enable_mask(gt, XE_ENGINE_CLASS_VIDEO_ENHANCE));
-	info_map_write(xe, info_map, engine_enabled_masks[GUC_COMPUTE_CLASS],
-		       engine_enable_mask(gt, XE_ENGINE_CLASS_COMPUTE));
-	info_map_write(xe, info_map, engine_enabled_masks[GUC_GSC_OTHER_CLASS],
-		       engine_enable_mask(gt, XE_ENGINE_CLASS_OTHER));
+	for (guc_class = 0; guc_class <= GUC_LAST_ENGINE_CLASS; ++guc_class)
+		info_map_write(xe, info_map, engine_enabled_masks[guc_class],
+			       engine_enable_mask(gt, guc_class));
 }
 
 /*
@@ -491,15 +506,14 @@ static void guc_golden_lrc_init(struct xe_guc_ads *ads)
 			offsetof(struct __guc_ads_blob, system_info));
 	size_t alloc_size, real_size;
 	u32 addr_ggtt, offset;
-	int class;
+	u16 guc_class;
 
 	offset = guc_ads_golden_lrc_offset(ads);
 	addr_ggtt = xe_bo_ggtt_addr(ads->bo) + offset;
 
-	for (class = 0; class < XE_ENGINE_CLASS_MAX; ++class) {
-		u8 guc_class;
-
-		guc_class = xe_engine_class_to_guc_class(class);
+	for (guc_class = 0; guc_class <= GUC_LAST_ENGINE_CLASS; ++guc_class) {
+		enum xe_engine_class class =
+			guc_class_to_engine_class(guc_class);
 
 		if (!info_map_read(xe, &info_map,
 				   engine_enabled_masks[guc_class]))
@@ -943,14 +957,13 @@ static void guc_golden_lrc_populate(struct xe_guc_ads *ads)
 			offsetof(struct __guc_ads_blob, system_info));
 	size_t total_size = 0, alloc_size, real_size;
 	u32 offset;
-	int class;
+	u16 guc_class;
 
 	offset = guc_ads_golden_lrc_offset(ads);
 
-	for (class = 0; class < XE_ENGINE_CLASS_MAX; ++class) {
-		u8 guc_class;
-
-		guc_class = xe_engine_class_to_guc_class(class);
+	for (guc_class = 0; guc_class <= GUC_LAST_ENGINE_CLASS; ++guc_class) {
+		enum xe_engine_class class =
+			guc_class_to_engine_class(guc_class);
 
 		if (!info_map_read(xe, &info_map,
 				   engine_enabled_masks[guc_class]))
Signature · 1 line
2.54.0
#2 lore raw

PATCH v3 2/10 drm/xe/guc: refactor to_guc_class() to accept hwe

In reply to Matthew Auld

Rather than inferring the GuC engine class from the generic hw engine class, pass in the hwe itself, which gives the complete view, like instance etc. On future GuC versions, there is dedicated PAGING class to identify the KMD reserved BCS engine, so we need more info here in order to return the correct GuC specific engine class.

With this everything should now be using the new hwe based interface. No functional changes.

---
 drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c |  2 +-
 drivers/gpu/drm/xe/xe_gt_sriov_pf_policy.c  |  2 +-
 drivers/gpu/drm/xe/xe_guc.h                 | 21 +---------------
 drivers/gpu/drm/xe/xe_guc_ads.c             | 27 ++++++++++++++++++---
 drivers/gpu/drm/xe/xe_guc_capture.c         | 12 ++++-----
 drivers/gpu/drm/xe/xe_guc_capture.h         |  4 +--
 drivers/gpu/drm/xe/xe_guc_engine_activity.c |  4 +--
 drivers/gpu/drm/xe/xe_guc_submit.c          |  2 +-
 8 files changed, 38 insertions(+), 36 deletions(-)
drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c +1 -1
index ffa27f66bba7..f28c7ae0e8c2 100644
@@ -381,7 +381,7 @@ static ssize_t sched_group_engines_read(struct file *file, char __user *buf,
 
 	if (group < num_groups) {
 		for_each_hw_engine(hwe, gt, id) {
-			u8 guc_class = xe_engine_class_to_guc_class(hwe->class);
+			u8 guc_class = xe_hwe_to_guc_class(hwe);
 			u32 mask = groups[group].engines[guc_class];
 
 			if (mask & BIT(hwe->logical_instance)) {
drivers/gpu/drm/xe/xe_gt_sriov_pf_policy.c +1 -1
index e8458d63742d..cf117bf52d41 100644
@@ -471,7 +471,7 @@ static void pf_sched_group_media_slices(struct xe_gt *gt, struct guc_sched_group
 		return;
 
 	for_each_hw_engine(hwe, gt, id) {
-		u8 guc_class = xe_engine_class_to_guc_class(hwe->class);
+		u8 guc_class = xe_hwe_to_guc_class(hwe);
 
 		switch (hwe->class) {
 		case XE_ENGINE_CLASS_VIDEO_DECODE:
drivers/gpu/drm/xe/xe_guc.h +1 -20
index 02514914f404..12faf0ba7229 100644
@@ -67,26 +67,7 @@ bool xe_guc_using_main_gamctrl_queues(struct xe_guc *guc);
 int xe_guc_g2g_test_notification(struct xe_guc *guc, u32 *payload, u32 len);
 #endif
 
-static inline u16 xe_engine_class_to_guc_class(enum xe_engine_class class)
-{
-	switch (class) {
-	case XE_ENGINE_CLASS_RENDER:
-		return GUC_RENDER_CLASS;
-	case XE_ENGINE_CLASS_VIDEO_DECODE:
-		return GUC_VIDEO_CLASS;
-	case XE_ENGINE_CLASS_VIDEO_ENHANCE:
-		return GUC_VIDEOENHANCE_CLASS;
-	case XE_ENGINE_CLASS_COPY:
-		return GUC_BLITTER_CLASS;
-	case XE_ENGINE_CLASS_COMPUTE:
-		return GUC_COMPUTE_CLASS;
-	case XE_ENGINE_CLASS_OTHER:
-		return GUC_GSC_OTHER_CLASS;
-	default:
-		XE_WARN_ON(class);
-		return -1;
-	}
-}
+u16 xe_hwe_to_guc_class(struct xe_hw_engine *hwe);
 
 static inline struct xe_gt *guc_to_gt(struct xe_guc *guc)
 {
drivers/gpu/drm/xe/xe_guc_ads.c +24 -3
index b260697dd279..c84b98828981 100644
@@ -279,7 +279,7 @@ static u32 engine_enable_mask(struct xe_gt *gt, u16 guc_class)
 	u32 mask = 0;
 
 	for_each_hw_engine(hwe, gt, id)
-		if (xe_engine_class_to_guc_class(hwe->class) == guc_class)
+		if (xe_hwe_to_guc_class(hwe) == guc_class)
 			mask |= BIT(hwe->instance);
 
 	return mask;
@@ -494,6 +494,27 @@ static void fill_engine_enable_masks(struct xe_gt *gt,
 			       engine_enable_mask(gt, guc_class));
 }
 
+u16 xe_hwe_to_guc_class(struct xe_hw_engine *hwe)
+{
+	switch (hwe->class) {
+	case XE_ENGINE_CLASS_RENDER:
+		return GUC_RENDER_CLASS;
+	case XE_ENGINE_CLASS_VIDEO_DECODE:
+		return GUC_VIDEO_CLASS;
+	case XE_ENGINE_CLASS_VIDEO_ENHANCE:
+		return GUC_VIDEOENHANCE_CLASS;
+	case XE_ENGINE_CLASS_COPY:
+		return GUC_BLITTER_CLASS;
+	case XE_ENGINE_CLASS_COMPUTE:
+		return GUC_COMPUTE_CLASS;
+	case XE_ENGINE_CLASS_OTHER:
+		return GUC_GSC_OTHER_CLASS;
+	default:
+		XE_WARN_ON(hwe->class);
+		return -1;
+	}
+}
+
 /*
  * Write the offsets corresponding to the golden LRCs. The actual data is
  * populated later by guc_golden_lrc_populate()
@@ -564,7 +585,7 @@ static void guc_mapping_table_init(struct xe_gt *gt,
 	for_each_hw_engine(hwe, gt, id) {
 		u8 guc_class;
 
-		guc_class = xe_engine_class_to_guc_class(hwe->class);
+		guc_class = xe_hwe_to_guc_class(hwe);
 		info_map_write(xe, info_map,
 			       mapping_table[guc_class][hwe->logical_instance],
 			       hwe->instance);
@@ -814,7 +835,7 @@ static void guc_mmio_reg_state_init(struct xe_guc_ads *ads)
 		 * 2. Record in the header (ads.reg_state_list) the address
 		 * location and number of entries
 		 */
-		gc = xe_engine_class_to_guc_class(hwe->class);
+		gc = xe_hwe_to_guc_class(hwe);
 		ads_blob_write(ads, ads.reg_state_list[gc][hwe->instance].address, addr);
 		ads_blob_write(ads, ads.reg_state_list[gc][hwe->instance].count, count);
 
drivers/gpu/drm/xe/xe_guc_capture.c +6 -6
index 21f7caf9ea08..50c6b9466c14 100644
@@ -440,7 +440,7 @@ static void guc_capture_alloc_steered_lists(struct xe_guc *guc)
 	 * to be extended
 	 */
 	for_each_hw_engine(hwe, gt, id) {
-		if (xe_engine_class_to_guc_capture_class(hwe->class) ==
+		if (xe_hwe_to_guc_capture_class(hwe) ==
 		    GUC_CAPTURE_LIST_CLASS_RENDER_COMPUTE) {
 			has_rcs_ccs = true;
 			break;
@@ -812,7 +812,7 @@ static int guc_capture_output_size_est(struct xe_guc *guc)
 	for_each_hw_engine(hwe, gt, id) {
 		enum guc_capture_list_class_type capture_class;
 
-		capture_class = xe_engine_class_to_guc_capture_class(hwe->class);
+		capture_class = xe_hwe_to_guc_capture_class(hwe);
 		capture_size += sizeof(struct guc_state_capture_group_header_t) +
 					 (3 * sizeof(struct guc_state_capture_header_t));
 
@@ -1620,7 +1620,7 @@ xe_engine_manual_capture(struct xe_hw_engine *hwe, struct xe_hw_engine_snapshot
 	if (!new)
 		return;
 
-	capture_class = xe_engine_class_to_guc_capture_class(hwe->class);
+	capture_class = xe_hwe_to_guc_capture_class(hwe);
 	for (type = GUC_STATE_CAPTURE_TYPE_GLOBAL; type < GUC_STATE_CAPTURE_TYPE_MAX; type++) {
 		struct gcap_reg_list_info *reginfo = &new->reginfo[type];
 		/*
@@ -1662,7 +1662,7 @@ xe_engine_manual_capture(struct xe_hw_engine *hwe, struct xe_hw_engine_snapshot
 		}
 	}
 
-	new->eng_class = xe_engine_class_to_guc_class(hwe->class);
+	new->eng_class = xe_hwe_to_guc_class(hwe);
 	new->eng_inst = hwe->instance;
 	new->guc_id = guc_id;
 	new->lrca = lrca;
@@ -1826,7 +1826,7 @@ void xe_engine_snapshot_print(struct xe_hw_engine_snapshot *snapshot, struct drm
 
 	xe_gt_assert(gt, snapshot->hwe);
 
-	capture_class = xe_engine_class_to_guc_capture_class(snapshot->hwe->class);
+	capture_class = xe_hwe_to_guc_capture_class(snapshot->hwe);
 
 	drm_printf(p, "%s (physical), logical instance=%d\n",
 		   snapshot->name ? snapshot->name : "",
@@ -1898,7 +1898,7 @@ xe_guc_capture_get_matching_and_lock(struct xe_exec_queue *q)
 	for_each_hw_engine(hwe, q->gt, id) {
 		if (hwe != q->hwe)
 			continue;
-		guc_class = xe_engine_class_to_guc_class(hwe->class);
+		guc_class = xe_hwe_to_guc_class(hwe);
 		break;
 	}
 
drivers/gpu/drm/xe/xe_guc_capture.h +2 -2
index dca97d52b192..eb954f4d1ffd 100644
@@ -35,9 +35,9 @@ static inline enum guc_capture_list_class_type xe_guc_class_to_capture_class(u16
 }
 
 static inline enum guc_capture_list_class_type
-xe_engine_class_to_guc_capture_class(enum xe_engine_class class)
+xe_hwe_to_guc_capture_class(struct xe_hw_engine *hwe)
 {
-	return xe_guc_class_to_capture_class(xe_engine_class_to_guc_class(class));
+	return xe_guc_class_to_capture_class(xe_hwe_to_guc_class(hwe));
 }
 
 void xe_guc_capture_process(struct xe_guc *guc);
drivers/gpu/drm/xe/xe_guc_engine_activity.c +2 -2
index 2b99c1ebdd58..150d891d5a09 100644
@@ -27,7 +27,7 @@ static struct iosys_map engine_activity_map(struct xe_guc *guc, struct xe_hw_eng
 {
 	struct xe_guc_engine_activity *engine_activity = &guc->engine_activity;
 	struct engine_activity_buffer *buffer;
-	u16 guc_class = xe_engine_class_to_guc_class(hwe->class);
+	u16 guc_class = xe_hwe_to_guc_class(hwe);
 	size_t offset;
 
 	if (engine_activity->num_functions) {
@@ -150,7 +150,7 @@ static struct engine_activity *hw_engine_to_engine_activity(struct xe_hw_engine
 {
 	struct xe_guc *guc = &hwe->gt->uc.guc;
 	struct engine_activity_group *eag = &guc->engine_activity.eag[index];
-	u16 guc_class = xe_engine_class_to_guc_class(hwe->class);
+	u16 guc_class = xe_hwe_to_guc_class(hwe);
 
 	return &eag->engine[guc_class][hwe->logical_instance];
 }
drivers/gpu/drm/xe/xe_guc_submit.c +1 -1
index afd8cc7bd231..1ee4f2434876 100644
@@ -985,7 +985,7 @@ static void register_exec_queue(struct xe_exec_queue *q, int ctx_type)
 
 	memset(&info, 0, sizeof(info));
 	info.context_idx = q->guc->id;
-	info.engine_class = xe_engine_class_to_guc_class(q->class);
+	info.engine_class = xe_hwe_to_guc_class(q->hwe);
 	info.engine_submit_mask = q->logical_mask;
 	info.hwlrca_lo = lower_32_bits(xe_lrc_descriptor(lrc));
 	info.hwlrca_hi = upper_32_bits(xe_lrc_descriptor(lrc));
Signature · 1 line
2.54.0
#3 lore raw

PATCH v3 3/10 drm/xe/guc: add the plumbing for GUC_PAGING_CLASS

In reply to Matthew Auld

On newer platforms, the GuC has a new engine class which we need to use to refer to the dedicated/reserved KMD BCS engine. With that, add the plumbing in the GuC backend to support GUC_PAGING_CLASS and GUC_CAPTURE_LIST_CLASS_PAGING.

Currently this is still turned off.

Cc Daniele Ceraolo Spurio <[email protected]>
---
 drivers/gpu/drm/xe/abi/guc_capture_abi.h   |  3 ++-
 drivers/gpu/drm/xe/abi/guc_scheduler_abi.h |  3 ++-
 drivers/gpu/drm/xe/xe_guc.c                | 15 +++++++++++++++
 drivers/gpu/drm/xe/xe_guc.h                |  1 +
 drivers/gpu/drm/xe/xe_guc_ads.c            | 19 +++++++++++++++++--
 drivers/gpu/drm/xe/xe_guc_capture.c        |  7 +++++++
 drivers/gpu/drm/xe/xe_guc_capture.h        |  2 ++
 7 files changed, 46 insertions(+), 4 deletions(-)
drivers/gpu/drm/xe/abi/guc_capture_abi.h +2 -1
index dd4117553739..ff9c0ae34a28 100644
@@ -32,9 +32,10 @@ enum guc_capture_list_class_type {
 	GUC_CAPTURE_LIST_CLASS_VIDEOENHANCE = 2,
 	GUC_CAPTURE_LIST_CLASS_BLITTER = 3,
 	GUC_CAPTURE_LIST_CLASS_GSC_OTHER = 4,
+	GUC_CAPTURE_LIST_CLASS_PAGING = 5,
 };
 
-#define GUC_CAPTURE_LIST_CLASS_MAX	(GUC_CAPTURE_LIST_CLASS_GSC_OTHER + 1)
+#define GUC_CAPTURE_LIST_CLASS_MAX	(GUC_CAPTURE_LIST_CLASS_PAGING + 1)
 
 /**
  * struct guc_mmio_reg - GuC MMIO reg state struct
drivers/gpu/drm/xe/abi/guc_scheduler_abi.h +2 -1
index 19ec89bf39c5..85bba34277ed 100644
@@ -21,7 +21,8 @@
 #define GUC_BLITTER_CLASS		3
 #define GUC_COMPUTE_CLASS		4
 #define GUC_GSC_OTHER_CLASS		5
-#define GUC_LAST_ENGINE_CLASS		GUC_GSC_OTHER_CLASS
+#define GUC_PAGING_CLASS		6
+#define GUC_LAST_ENGINE_CLASS		GUC_PAGING_CLASS
 #define GUC_MAX_ENGINE_CLASSES		16
 #define GUC_MAX_INSTANCES_PER_CLASS	32
 
drivers/gpu/drm/xe/xe_guc.c +15 -0
index 4023700ff2a9..2bc9fa5fb393 100644
@@ -1846,6 +1846,21 @@ bool xe_guc_using_main_gamctrl_queues(struct xe_guc *guc)
 	return GT_VER(gt) >= 35;
 }
 
+bool xe_guc_has_paging_engine(struct xe_guc *guc)
+{
+	/*
+	 * On newer platforms the GuC now has a dedicated engine class for the
+	 * special PAGING engine, which is the driver reserved BCS engine used
+	 * for KMD paging/binding operations. GuC requires KMD to refer to this
+	 * using the special PAGING engine class. Note that there is no new hw
+	 * engine here, this is purely a sw view in the GuC itself, which we
+	 * need to respect.
+	 */
+
+	/* TODO: Have some way to query this from the GuC? */
+	return false;
+}
+
 #if IS_ENABLED(CONFIG_DRM_XE_KUNIT_TEST)
 #include "tests/xe_guc_g2g_test.c"
 #endif
drivers/gpu/drm/xe/xe_guc.h +1 -0
index 12faf0ba7229..0934927e8254 100644
@@ -62,6 +62,7 @@ void xe_guc_stop(struct xe_guc *guc);
 int xe_guc_start(struct xe_guc *guc);
 void xe_guc_declare_wedged(struct xe_guc *guc);
 bool xe_guc_using_main_gamctrl_queues(struct xe_guc *guc);
+bool xe_guc_has_paging_engine(struct xe_guc *guc);
 
 #if IS_ENABLED(CONFIG_DRM_XE_KUNIT_TEST)
 int xe_guc_g2g_test_notification(struct xe_guc *guc, u32 *payload, u32 len);
drivers/gpu/drm/xe/xe_guc_ads.c +17 -2
index c84b98828981..cedab0e1f798 100644
@@ -261,6 +261,7 @@ static inline enum xe_engine_class guc_class_to_engine_class(u16 guc_class)
 	case GUC_VIDEOENHANCE_CLASS:
 		return XE_ENGINE_CLASS_VIDEO_ENHANCE;
 	case GUC_BLITTER_CLASS:
+	case GUC_PAGING_CLASS:
 		return XE_ENGINE_CLASS_COPY;
 	case GUC_COMPUTE_CLASS:
 		return XE_ENGINE_CLASS_COMPUTE;
@@ -489,13 +490,24 @@ static void fill_engine_enable_masks(struct xe_gt *gt,
 	struct xe_device *xe = gt_to_xe(gt);
 	u16 guc_class;
 
-	for (guc_class = 0; guc_class <= GUC_LAST_ENGINE_CLASS; ++guc_class)
+	for (guc_class = 0; guc_class <= GUC_LAST_ENGINE_CLASS; ++guc_class) {
+		u32 mask = engine_enable_mask(gt, guc_class);
+
 		info_map_write(xe, info_map, engine_enabled_masks[guc_class],
-			       engine_enable_mask(gt, guc_class));
+			       mask);
+
+		/* We expect at most one paging engine per GuC instance, for now */
+		if (guc_class == GUC_PAGING_CLASS)
+			xe_gt_assert(gt, !mask || is_power_of_2(mask));
+	}
 }
 
 u16 xe_hwe_to_guc_class(struct xe_hw_engine *hwe)
 {
+	if (xe_guc_has_paging_engine(&hwe->gt->uc.guc) &&
+	    xe_gt_is_usm_hwe(hwe->gt, hwe))
+		return GUC_PAGING_CLASS;
+
 	switch (hwe->class) {
 	case XE_ENGINE_CLASS_RENDER:
 		return GUC_RENDER_CLASS;
@@ -615,6 +627,9 @@ static u32 guc_get_capture_engine_mask(struct xe_gt *gt, struct iosys_map *info_
 	case GUC_CAPTURE_LIST_CLASS_GSC_OTHER:
 		mask = info_map_read(xe, info_map, engine_enabled_masks[GUC_GSC_OTHER_CLASS]);
 		break;
+	case GUC_CAPTURE_LIST_CLASS_PAGING:
+		mask = info_map_read(xe, info_map, engine_enabled_masks[GUC_PAGING_CLASS]);
+		break;
 	default:
 		mask = 0;
 	}
drivers/gpu/drm/xe/xe_guc_capture.c +7 -0
index 50c6b9466c14..c13b23c45aac 100644
@@ -265,6 +265,8 @@ static const struct __guc_mmio_reg_descr_group xe3p_lists[] = {
 	MAKE_REGLIST(xe_blt_inst_regs, PF, ENGINE_INSTANCE, GUC_CAPTURE_LIST_CLASS_BLITTER),
 	MAKE_REGLIST(empty_regs_list, PF, ENGINE_CLASS, GUC_CAPTURE_LIST_CLASS_GSC_OTHER),
 	MAKE_REGLIST(xe_lp_gsc_inst_regs, PF, ENGINE_INSTANCE, GUC_CAPTURE_LIST_CLASS_GSC_OTHER),
+	MAKE_REGLIST(empty_regs_list, PF, ENGINE_CLASS, GUC_CAPTURE_LIST_CLASS_PAGING),
+	MAKE_REGLIST(xe_blt_inst_regs, PF, ENGINE_INSTANCE, GUC_CAPTURE_LIST_CLASS_PAGING),
 	{}
 };
 static const char * const capture_list_type_names[] = {
@@ -279,6 +281,7 @@ static const char * const capture_engine_class_names[] = {
 	"VideoEnhance",
 	"Blitter",
 	"GSC-Other",
+	"Paging",
 };
 
 struct __guc_capture_ads_cache {
@@ -766,6 +769,10 @@ size_t xe_guc_capture_ads_input_worst_size(struct xe_guc *guc)
 	total_size = PAGE_SIZE;	/* Pad a page in front for empty lists */
 	for (i = 0; i < GUC_CAPTURE_LIST_INDEX_MAX; i++) {
 		for (j = 0; j < GUC_CAPTURE_LIST_CLASS_MAX; j++) {
+			if (!xe_guc_has_paging_engine(guc) &&
+			    j == GUC_CAPTURE_LIST_CLASS_PAGING)
+				continue;
+
 			if (xe_guc_capture_getlistsize(guc, i,
 						       GUC_STATE_CAPTURE_TYPE_ENGINE_CLASS,
 						       j, &class_size) < 0)
drivers/gpu/drm/xe/xe_guc_capture.h +2 -0
index eb954f4d1ffd..fcd4f1298536 100644
@@ -28,6 +28,8 @@ static inline enum guc_capture_list_class_type xe_guc_class_to_capture_class(u16
 	case GUC_VIDEOENHANCE_CLASS:
 	case GUC_BLITTER_CLASS:
 		return class;
+	case GUC_PAGING_CLASS:
+		return GUC_CAPTURE_LIST_CLASS_PAGING;
 	default:
 		XE_WARN_ON(class);
 		return GUC_CAPTURE_LIST_CLASS_MAX;
Signature · 1 line
2.54.0
#4 lore raw

Re: [PATCH v3 03/10] drm/xe/guc: add the plumbing for GUC_PAGING_CLASS

Quoted 104 lines · Matthew Auld

On newer platforms, the GuC has a new engine class which we need to use to refer to the dedicated/reserved KMD BCS engine. With that, add the plumbing in the GuC backend to support GUC_PAGING_CLASS and GUC_CAPTURE_LIST_CLASS_PAGING.

Currently this is still turned off.

Cc Daniele Ceraolo Spurio <[email protected]>
---
  drivers/gpu/drm/xe/abi/guc_capture_abi.h   |  3 ++-
  drivers/gpu/drm/xe/abi/guc_scheduler_abi.h |  3 ++-
  drivers/gpu/drm/xe/xe_guc.c                | 15 +++++++++++++++
  drivers/gpu/drm/xe/xe_guc.h                |  1 +
  drivers/gpu/drm/xe/xe_guc_ads.c            | 19 +++++++++++++++++--
  drivers/gpu/drm/xe/xe_guc_capture.c        |  7 +++++++
  drivers/gpu/drm/xe/xe_guc_capture.h        |  2 ++
  7 files changed, 46 insertions(+), 4 deletions(-)
drivers/gpu/drm/xe/abi/guc_capture_abi.h +2 -1
index dd4117553739..ff9c0ae34a28 100644
@@ -32,9 +32,10 @@ enum guc_capture_list_class_type {
  	GUC_CAPTURE_LIST_CLASS_VIDEOENHANCE = 2,
  	GUC_CAPTURE_LIST_CLASS_BLITTER = 3,
  	GUC_CAPTURE_LIST_CLASS_GSC_OTHER = 4,
+	GUC_CAPTURE_LIST_CLASS_PAGING = 5,
  };
 
-#define GUC_CAPTURE_LIST_CLASS_MAX	(GUC_CAPTURE_LIST_CLASS_GSC_OTHER + 1)
+#define GUC_CAPTURE_LIST_CLASS_MAX	(GUC_CAPTURE_LIST_CLASS_PAGING + 1)
 
  /**
   * struct guc_mmio_reg - GuC MMIO reg state struct
drivers/gpu/drm/xe/abi/guc_scheduler_abi.h +2 -1
index 19ec89bf39c5..85bba34277ed 100644
@@ -21,7 +21,8 @@
  #define GUC_BLITTER_CLASS		3
  #define GUC_COMPUTE_CLASS		4
  #define GUC_GSC_OTHER_CLASS		5
-#define GUC_LAST_ENGINE_CLASS		GUC_GSC_OTHER_CLASS
+#define GUC_PAGING_CLASS		6
+#define GUC_LAST_ENGINE_CLASS		GUC_PAGING_CLASS
  #define GUC_MAX_ENGINE_CLASSES		16
  #define GUC_MAX_INSTANCES_PER_CLASS	32
 
drivers/gpu/drm/xe/xe_guc.c +15 -0
index 4023700ff2a9..2bc9fa5fb393 100644
@@ -1846,6 +1846,21 @@ bool xe_guc_using_main_gamctrl_queues(struct xe_guc *guc)
  	return GT_VER(gt) >= 35;
  }
 
+bool xe_guc_has_paging_engine(struct xe_guc *guc)
+{
+	/*
+	 * On newer platforms the GuC now has a dedicated engine class for the
+	 * special PAGING engine, which is the driver reserved BCS engine used
+	 * for KMD paging/binding operations. GuC requires KMD to refer to this
+	 * using the special PAGING engine class. Note that there is no new hw
+	 * engine here, this is purely a sw view in the GuC itself, which we
+	 * need to respect.
+	 */
+
+	/* TODO: Have some way to query this from the GuC? */
+	return false;
+}
+
  #if IS_ENABLED(CONFIG_DRM_XE_KUNIT_TEST)
  #include "tests/xe_guc_g2g_test.c"
  #endif
drivers/gpu/drm/xe/xe_guc.h +1 -0
index 12faf0ba7229..0934927e8254 100644
@@ -62,6 +62,7 @@ void xe_guc_stop(struct xe_guc *guc);
  int xe_guc_start(struct xe_guc *guc);
  void xe_guc_declare_wedged(struct xe_guc *guc);
  bool xe_guc_using_main_gamctrl_queues(struct xe_guc *guc);
+bool xe_guc_has_paging_engine(struct xe_guc *guc);
 
  #if IS_ENABLED(CONFIG_DRM_XE_KUNIT_TEST)
  int xe_guc_g2g_test_notification(struct xe_guc *guc, u32 *payload, u32 len);
drivers/gpu/drm/xe/xe_guc_ads.c +1 -1
index c84b98828981..cedab0e1f798 100644
@@ -261,6 +261,7 @@ static inline enum xe_engine_class guc_class_to_engine_class(u16 guc_class)
  	case GUC_VIDEOENHANCE_CLASS:
  		return XE_ENGINE_CLASS_VIDEO_ENHANCE;
  	case GUC_BLITTER_CLASS:
+	case GUC_PAGING_CLASS:
  		return XE_ENGINE_CLASS_COPY;
  	case GUC_COMPUTE_CLASS:
  		return XE_ENGINE_CLASS_COMPUTE;
@@ -489,13 +490,24 @@ static void fill_engine_enable_masks(struct xe_gt *gt,
  	struct xe_device *xe = gt_to_xe(gt);
  	u16 guc_class;
 
-	for (guc_class = 0; guc_class <= GUC_LAST_ENGINE_CLASS; ++guc_class)

drivers/gpu/drm/xe/xe_guc_ads.c static void fill_engine_enable_masks(struct xe_gt *gt, · line 501

Quoted 10 lines
drivers/gpu/drm/xe/xe_guc_ads.c +8 -1
+	for (guc_class = 0; guc_class <= GUC_LAST_ENGINE_CLASS; ++guc_class) {
+		u32 mask = engine_enable_mask(gt, guc_class);
+
  		info_map_write(xe, info_map, engine_enabled_masks[guc_class],
-			       engine_enable_mask(gt, guc_class));
+			       mask);
+
+		/* We expect at most one paging engine per GuC instance, for now */
+		if (guc_class == GUC_PAGING_CLASS)
+			xe_gt_assert(gt, !mask || is_power_of_2(mask));

Maybe worth moving this assert inside engine_enable_mask()? not a blocker

Quoted 27 lines
drivers/gpu/drm/xe/xe_guc_ads.c +8 -0
+	}
  }
 
  u16 xe_hwe_to_guc_class(struct xe_hw_engine *hwe)
  {
+	if (xe_guc_has_paging_engine(&hwe->gt->uc.guc) &&
+	    xe_gt_is_usm_hwe(hwe->gt, hwe))
+		return GUC_PAGING_CLASS;
+
  	switch (hwe->class) {
  	case XE_ENGINE_CLASS_RENDER:
  		return GUC_RENDER_CLASS;
@@ -615,6 +627,9 @@ static u32 guc_get_capture_engine_mask(struct xe_gt *gt, struct iosys_map *info_
  	case GUC_CAPTURE_LIST_CLASS_GSC_OTHER:
  		mask = info_map_read(xe, info_map, engine_enabled_masks[GUC_GSC_OTHER_CLASS]);
  		break;
+	case GUC_CAPTURE_LIST_CLASS_PAGING:
+		mask = info_map_read(xe, info_map, engine_enabled_masks[GUC_PAGING_CLASS]);
+		break;
  	default:
  		mask = 0;
  	}
drivers/gpu/drm/xe/xe_guc_capture.c +0 -0
index 50c6b9466c14..c13b23c45aac 100644

drivers/gpu/drm/xe/xe_guc_capture.c static const struct __guc_mmio_reg_descr_group xe3p_lists[] = { · line 270

Quoted 6 lines
drivers/gpu/drm/xe/xe_guc_capture.c +2 -0
@@ -265,6 +265,8 @@ static const struct __guc_mmio_reg_descr_group xe3p_lists[] = {
  	MAKE_REGLIST(xe_blt_inst_regs, PF, ENGINE_INSTANCE, GUC_CAPTURE_LIST_CLASS_BLITTER),
  	MAKE_REGLIST(empty_regs_list, PF, ENGINE_CLASS, GUC_CAPTURE_LIST_CLASS_GSC_OTHER),
  	MAKE_REGLIST(xe_lp_gsc_inst_regs, PF, ENGINE_INSTANCE, GUC_CAPTURE_LIST_CLASS_GSC_OTHER),
+	MAKE_REGLIST(empty_regs_list, PF, ENGINE_CLASS, GUC_CAPTURE_LIST_CLASS_PAGING),
+	MAKE_REGLIST(xe_blt_inst_regs, PF, ENGINE_INSTANCE, GUC_CAPTURE_LIST_CLASS_PAGING),
  	{}

NVL-S seems to use xe_hpg_lists, so need to modify that array as well.

Daniele

Quoted 34 lines
drivers/gpu/drm/xe/xe_guc_capture.c +5 -0
  };
  static const char * const capture_list_type_names[] = {
@@ -279,6 +281,7 @@ static const char * const capture_engine_class_names[] = {
  	"VideoEnhance",
  	"Blitter",
  	"GSC-Other",
+	"Paging",
  };
 
  struct __guc_capture_ads_cache {
@@ -766,6 +769,10 @@ size_t xe_guc_capture_ads_input_worst_size(struct xe_guc *guc)
  	total_size = PAGE_SIZE;	/* Pad a page in front for empty lists */
  	for (i = 0; i < GUC_CAPTURE_LIST_INDEX_MAX; i++) {
  		for (j = 0; j < GUC_CAPTURE_LIST_CLASS_MAX; j++) {
+			if (!xe_guc_has_paging_engine(guc) &&
+			    j == GUC_CAPTURE_LIST_CLASS_PAGING)
+				continue;
+
  			if (xe_guc_capture_getlistsize(guc, i,
  						       GUC_STATE_CAPTURE_TYPE_ENGINE_CLASS,
  						       j, &class_size) < 0)
drivers/gpu/drm/xe/xe_guc_capture.h +2 -0
index eb954f4d1ffd..fcd4f1298536 100644
@@ -28,6 +28,8 @@ static inline enum guc_capture_list_class_type xe_guc_class_to_capture_class(u16
  	case GUC_VIDEOENHANCE_CLASS:
  	case GUC_BLITTER_CLASS:
  		return class;
+	case GUC_PAGING_CLASS:
+		return GUC_CAPTURE_LIST_CLASS_PAGING;
  	default:
  		XE_WARN_ON(class);
  		return GUC_CAPTURE_LIST_CLASS_MAX;
#5 lore raw

PATCH v3 4/10 drm/xe/hw_engine: don't open code is_usm_hwe()

In reply to Matthew Auld

Prefer is_usm_hwe() here.

---
 drivers/gpu/drm/xe/xe_hw_engine.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/xe/xe_hw_engine.c +1 -2
index 8c66ff6f3d3c..768b0cd4c16a 100644
@@ -1037,8 +1037,7 @@ bool xe_hw_engine_is_reserved(struct xe_hw_engine *hwe)
 	    hwe->logical_instance >= gt->ccs_mode)
 		return true;
 
-	return xe->info.has_usm && hwe->class == XE_ENGINE_CLASS_COPY &&
-		hwe->instance == gt->usm.reserved_bcs_instance;
+	return xe_gt_is_usm_hwe(gt, hwe);
 }
 
 const char *xe_hw_engine_class_to_str(enum xe_engine_class class)
Signature · 1 line
2.54.0
#6 lore raw

PATCH v3 5/10 drm/xe: refactor the paging engine setup

In reply to Matthew Auld

On newer platforms, the paging configuration is now configured by the PF via the ADS object, where VF side should ensure that everything configured as GUC_PAGING_CLASS is correctly mirrored on VF side. For example PF could in theory reserve two BCS instances, and we expect VF to mirror that.

With that move towards having a logical mask of all the paging engines, and also generalise selecting those engines, based on the number of paging engines. Also cache the first designated paging engine, which will makes things a little cleaner here, and in later patches.

No functional changes for existing platforms.

v2 (Sashiko):
- Rework the loop slightly so that we don't needlessly check for the paging engine, before we have correctly set the logical instance.
- Add a proper error return, if we encounter a bogus paging config. Thinking ahead to VF where the config is defined by the PF, we should just gracefully exit the probe sequence.

Cc Daniele Ceraolo Spurio <[email protected]>
Cc Thomas Hellström <[email protected]>
Cc Matthew Brost <[email protected]>
---
 drivers/gpu/drm/xe/xe_exec_queue.c |  5 +--
 drivers/gpu/drm/xe/xe_gt.h         |  6 ++--
 drivers/gpu/drm/xe/xe_gt_types.h   | 12 ++++++--
 drivers/gpu/drm/xe/xe_hw_engine.c  | 49 ++++++++++++++++++++++++------
 drivers/gpu/drm/xe/xe_migrate.c    | 32 +++----------------
 5 files changed, 55 insertions(+), 49 deletions(-)
drivers/gpu/drm/xe/xe_exec_queue.c +1 -4
index 1b5ca3ce578a..cfd2a4e6d4c7 100644
@@ -530,10 +530,7 @@ struct xe_exec_queue *xe_exec_queue_create_bind(struct xe_device *xe,
 
 	migrate_vm = xe_migrate_get_vm(tile->migrate);
 	if (xe->info.has_usm) {
-		struct xe_hw_engine *hwe = xe_gt_hw_engine(gt,
-							   XE_ENGINE_CLASS_COPY,
-							   gt->usm.reserved_bcs_instance,
-							   false);
+		struct xe_hw_engine *hwe = gt->usm.paging_hwe0;
 
 		if (!hwe) {
 			xe_vm_put(migrate_vm);
drivers/gpu/drm/xe/xe_gt.h +2 -4
index 4150aa594f05..a6cfaa1af23f 100644
@@ -137,10 +137,8 @@ static inline bool xe_gt_is_media_type(struct xe_gt *gt)
 
 static inline bool xe_gt_is_usm_hwe(struct xe_gt *gt, struct xe_hw_engine *hwe)
 {
-	struct xe_device *xe = gt_to_xe(gt);
-
-	return xe->info.has_usm && hwe->class == XE_ENGINE_CLASS_COPY &&
-		hwe->instance == gt->usm.reserved_bcs_instance;
+	return hwe->class == XE_ENGINE_CLASS_COPY &&
+	       (gt->usm.paging_logical_mask & BIT(hwe->logical_instance));
 }
 
 /**
drivers/gpu/drm/xe/xe_gt_types.h +9 -3
index e5588c88800a..10c32ea3ccdf 100644
@@ -230,10 +230,16 @@ struct xe_gt {
 		 */
 		struct xe_sa_manager *bb_pool;
 		/**
-		 * @usm.reserved_bcs_instance: reserved BCS instance used for USM
-		 * operations (e.g. migrations, fixing page tables)
+		 * @usm.paging_hwe0: The first designated paging engine.
+		 * This is some reserved BCS instance used for USM operations
+		 * (e.g. migrations, fixing page tables)
 		 */
-		u16 reserved_bcs_instance;
+		struct xe_hw_engine *paging_hwe0;
+		/**
+		 * @usm.paging_logical_mask: logical mask of paging engines.
+		 * Should be densely populated.
+		 */
+		u32 paging_logical_mask;
 	} usm;
 
 	/** @ordered_wq: used to serialize GT resets and TDRs */
drivers/gpu/drm/xe/xe_hw_engine.c +39 -10

76 lines not on this page · raw message

drivers/gpu/drm/xe/xe_migrate.c +4 -28
index 9428dd5e7760..92d5e81ceac2 100644
@@ -383,27 +383,6 @@ static void xe_migrate_suballoc_manager_init(struct xe_migrate *m, u32 map_ofs)
 				  NUM_VMUSA_UNIT_PER_PAGE, 0);
 }
 
-/*
- * Including the reserved copy engine is required to avoid deadlocks due to
- * migrate jobs servicing the faults gets stuck behind the job that faulted.
- */
-static u32 xe_migrate_usm_logical_mask(struct xe_gt *gt)
-{
-	u32 logical_mask = 0;
-	struct xe_hw_engine *hwe;
-	enum xe_hw_engine_id id;
-
-	for_each_hw_engine(hwe, gt, id) {
-		if (hwe->class != XE_ENGINE_CLASS_COPY)
-			continue;
-
-		if (xe_gt_is_usm_hwe(gt, hwe))
-			logical_mask |= BIT(hwe->logical_instance);
-	}
-
-	return logical_mask;
-}
-
 static bool xe_migrate_needs_ccs_emit(struct xe_device *xe)
 {
 	return xe_device_has_flat_ccs(xe) && !(GRAPHICS_VER(xe) >= 20 && IS_DGFX(xe));
@@ -479,13 +458,10 @@ int xe_migrate_init(struct xe_migrate *m)
 		goto err_out;
 
 	if (xe->info.has_usm) {
-		struct xe_hw_engine *hwe = xe_gt_hw_engine(primary_gt,
-							   XE_ENGINE_CLASS_COPY,
-							   primary_gt->usm.reserved_bcs_instance,
-							   false);
-		u32 logical_mask = xe_migrate_usm_logical_mask(primary_gt);
+		struct xe_hw_engine *hwe0 = primary_gt->usm.paging_hwe0;
+		u32 logical_mask = primary_gt->usm.paging_logical_mask;
 
-		if (!hwe || !logical_mask) {
+		if (!hwe0 || !logical_mask) {
 			err = -EINVAL;
 			goto err_out;
 		}
@@ -494,7 +470,7 @@ int xe_migrate_init(struct xe_migrate *m)
 		 * XXX: Currently only reserving 1 (likely slow) BCS instance on
 		 * PVC, may want to revisit if performance is needed.
 		 */
-		m->q = xe_exec_queue_create(xe, vm, logical_mask, 1, hwe,
+		m->q = xe_exec_queue_create(xe, vm, logical_mask, 1, hwe0,
 					    EXEC_QUEUE_FLAG_KERNEL |
 					    EXEC_QUEUE_FLAG_PERMANENT |
 					    EXEC_QUEUE_FLAG_HIGH_PRIORITY |
Signature · 1 line
2.54.0
#7 lore raw

PATCH v3 6/10 drm/xe/guc: handle guc logical instance for paging engine

In reply to Matthew Auld

In the GuC backend, we need a different logical instance when referring to the reserved paging engine. Under the hood, this is still just the same physical BSC engine, however from the GuC POV this is actually re-mapped to a separate GUC_PAGING_CLASS, with the logical index starting from zero.

The idea is to not leak this into the upper layers, since this is GuC version specific, so the changes here are purely on the GuC side.

No functional change.

Cc Daniele Ceraolo Spurio <[email protected]>
---
 drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c |  3 ++-
 drivers/gpu/drm/xe/xe_gt_sriov_pf_policy.c  |  3 ++-
 drivers/gpu/drm/xe/xe_guc.h                 |  1 +
 drivers/gpu/drm/xe/xe_guc_ads.c             | 22 ++++++++++++++++++++-
 drivers/gpu/drm/xe/xe_guc_engine_activity.c |  6 ++++--
 5 files changed, 30 insertions(+), 5 deletions(-)
drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c +2 -1
index f28c7ae0e8c2..0f242db775e1 100644
@@ -382,9 +382,10 @@ static ssize_t sched_group_engines_read(struct file *file, char __user *buf,
 	if (group < num_groups) {
 		for_each_hw_engine(hwe, gt, id) {
 			u8 guc_class = xe_hwe_to_guc_class(hwe);
+			u16 guc_logical_instance = xe_hwe_guc_logical_instance(hwe);
 			u32 mask = groups[group].engines[guc_class];
 
-			if (mask & BIT(hwe->logical_instance)) {
+			if (mask & BIT(guc_logical_instance)) {
 				strlcat(engines, hwe->name, sizeof(engines));
 				strlcat(engines, " ", sizeof(engines));
 			}
drivers/gpu/drm/xe/xe_gt_sriov_pf_policy.c +2 -1
index cf117bf52d41..cdfe194926d3 100644
@@ -472,6 +472,7 @@ static void pf_sched_group_media_slices(struct xe_gt *gt, struct guc_sched_group
 
 	for_each_hw_engine(hwe, gt, id) {
 		u8 guc_class = xe_hwe_to_guc_class(hwe);
+		u16 guc_logical_instance = xe_hwe_guc_logical_instance(hwe);
 
 		switch (hwe->class) {
 		case XE_ENGINE_CLASS_VIDEO_DECODE:
@@ -490,7 +491,7 @@ static void pf_sched_group_media_slices(struct xe_gt *gt, struct guc_sched_group
 			slice = 0;
 		}
 
-		values[slice_to_group[slice]].engines[guc_class] |= BIT(hwe->logical_instance);
+		values[slice_to_group[slice]].engines[guc_class] |= BIT(guc_logical_instance);
 	}
 
 	*groups = values;
drivers/gpu/drm/xe/xe_guc.h +1 -0
index 0934927e8254..61e3ee19a59b 100644
@@ -69,6 +69,7 @@ int xe_guc_g2g_test_notification(struct xe_guc *guc, u32 *payload, u32 len);
 #endif
 
 u16 xe_hwe_to_guc_class(struct xe_hw_engine *hwe);
+u16 xe_hwe_guc_logical_instance(struct xe_hw_engine *hwe);
 
 static inline struct xe_gt *guc_to_gt(struct xe_guc *guc)
 {
drivers/gpu/drm/xe/xe_guc_ads.c +21 -1
index cedab0e1f798..b7d7eb4f3296 100644
@@ -527,6 +527,23 @@ u16 xe_hwe_to_guc_class(struct xe_hw_engine *hwe)
 	}
 }
 
+u16 xe_hwe_guc_logical_instance(struct xe_hw_engine *hwe)
+{
+	struct xe_gt *gt = hwe->gt;
+
+	if (xe_guc_has_paging_engine(&hwe->gt->uc.guc) &&
+	    xe_gt_is_usm_hwe(gt, hwe)) {
+		int shift = gt->usm.paging_hwe0->logical_instance;
+
+		xe_gt_assert(gt, shift <= hwe->logical_instance);
+
+		/* GUC_PAGING_CLASS:guc_logical_instance */
+		return hwe->logical_instance - shift;
+	}
+
+	return hwe->logical_instance;
+}
+
 /*
  * Write the offsets corresponding to the golden LRCs. The actual data is
  * populated later by guc_golden_lrc_populate()
@@ -595,11 +612,14 @@ static void guc_mapping_table_init(struct xe_gt *gt,
 	guc_mapping_table_init_invalid(gt, info_map);
 
 	for_each_hw_engine(hwe, gt, id) {
+		u16 guc_logical_instance;
 		u8 guc_class;
 
 		guc_class = xe_hwe_to_guc_class(hwe);
+		guc_logical_instance = xe_hwe_guc_logical_instance(hwe);
+
 		info_map_write(xe, info_map,
-			       mapping_table[guc_class][hwe->logical_instance],
+			       mapping_table[guc_class][guc_logical_instance],
 			       hwe->instance);
 	}
 }
drivers/gpu/drm/xe/xe_guc_engine_activity.c +4 -2
index 150d891d5a09..2feb87492312 100644
@@ -28,6 +28,7 @@ static struct iosys_map engine_activity_map(struct xe_guc *guc, struct xe_hw_eng
 	struct xe_guc_engine_activity *engine_activity = &guc->engine_activity;
 	struct engine_activity_buffer *buffer;
 	u16 guc_class = xe_hwe_to_guc_class(hwe);
+	u16 guc_logical_instance = xe_hwe_guc_logical_instance(hwe);
 	size_t offset;
 
 	if (engine_activity->num_functions) {
@@ -39,7 +40,7 @@ static struct iosys_map engine_activity_map(struct xe_guc *guc, struct xe_hw_eng
 	}
 
 	offset += offsetof(struct guc_engine_activity_data,
-			  engine_activity[guc_class][hwe->logical_instance]);
+			  engine_activity[guc_class][guc_logical_instance]);
 
 	return IOSYS_MAP_INIT_OFFSET(&buffer->activity_bo->vmap, offset);
 }
@@ -151,8 +152,9 @@ static struct engine_activity *hw_engine_to_engine_activity(struct xe_hw_engine
 	struct xe_guc *guc = &hwe->gt->uc.guc;
 	struct engine_activity_group *eag = &guc->engine_activity.eag[index];
 	u16 guc_class = xe_hwe_to_guc_class(hwe);
+	u16 guc_logical_instance = xe_hwe_guc_logical_instance(hwe);
 
-	return &eag->engine[guc_class][hwe->logical_instance];
+	return &eag->engine[guc_class][guc_logical_instance];
 }
 
 static u64 cpu_ns_to_guc_tsc_tick(ktime_t ns, u32 freq)
Signature · 1 line
2.54.0
Reviewed-by on v3 6/10
#8 lore raw

Re: [PATCH v3 06/10] drm/xe/guc: handle guc logical instance for paging engine

Quoted 10 lines · Matthew Auld

In the GuC backend, we need a different logical instance when referring to the reserved paging engine. Under the hood, this is still just the same physical BSC engine, however from the GuC POV this is actually re-mapped to a separate GUC_PAGING_CLASS, with the logical index starting from zero.

The idea is to not leak this into the upper layers, since this is GuC version specific, so the changes here are purely on the GuC side.

No functional change.

Double-checked all usages of hwe->logical_instance and AFAICS you covered all the GuC related ones in this patch.
We'll have to be careful in future reviews to make sure hwe->logical_instance is not accidentally used directly with the GuC in new code, but I can't think of a good way to make such a mistake easier to avoid.

Daniele

Quoted 136 lines
Cc Daniele Ceraolo Spurio <[email protected]>
---
  drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c |  3 ++-
  drivers/gpu/drm/xe/xe_gt_sriov_pf_policy.c  |  3 ++-
  drivers/gpu/drm/xe/xe_guc.h                 |  1 +
  drivers/gpu/drm/xe/xe_guc_ads.c             | 22 ++++++++++++++++++++-
  drivers/gpu/drm/xe/xe_guc_engine_activity.c |  6 ++++--
  5 files changed, 30 insertions(+), 5 deletions(-)
drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c +2 -1
index f28c7ae0e8c2..0f242db775e1 100644
@@ -382,9 +382,10 @@ static ssize_t sched_group_engines_read(struct file *file, char __user *buf,
  	if (group < num_groups) {
  		for_each_hw_engine(hwe, gt, id) {
  			u8 guc_class = xe_hwe_to_guc_class(hwe);
+			u16 guc_logical_instance = xe_hwe_guc_logical_instance(hwe);
  			u32 mask = groups[group].engines[guc_class];
 
-			if (mask & BIT(hwe->logical_instance)) {
+			if (mask & BIT(guc_logical_instance)) {
  				strlcat(engines, hwe->name, sizeof(engines));
  				strlcat(engines, " ", sizeof(engines));
  			}
drivers/gpu/drm/xe/xe_gt_sriov_pf_policy.c +2 -1
index cf117bf52d41..cdfe194926d3 100644
@@ -472,6 +472,7 @@ static void pf_sched_group_media_slices(struct xe_gt *gt, struct guc_sched_group
 
  	for_each_hw_engine(hwe, gt, id) {
  		u8 guc_class = xe_hwe_to_guc_class(hwe);
+		u16 guc_logical_instance = xe_hwe_guc_logical_instance(hwe);
 
  		switch (hwe->class) {
  		case XE_ENGINE_CLASS_VIDEO_DECODE:
@@ -490,7 +491,7 @@ static void pf_sched_group_media_slices(struct xe_gt *gt, struct guc_sched_group
  			slice = 0;
  		}
 
-		values[slice_to_group[slice]].engines[guc_class] |= BIT(hwe->logical_instance);
+		values[slice_to_group[slice]].engines[guc_class] |= BIT(guc_logical_instance);
  	}
 
  	*groups = values;
drivers/gpu/drm/xe/xe_guc.h +1 -0
index 0934927e8254..61e3ee19a59b 100644
@@ -69,6 +69,7 @@ int xe_guc_g2g_test_notification(struct xe_guc *guc, u32 *payload, u32 len);
  #endif
 
  u16 xe_hwe_to_guc_class(struct xe_hw_engine *hwe);
+u16 xe_hwe_guc_logical_instance(struct xe_hw_engine *hwe);
 
  static inline struct xe_gt *guc_to_gt(struct xe_guc *guc)
  {
drivers/gpu/drm/xe/xe_guc_ads.c +21 -1
index cedab0e1f798..b7d7eb4f3296 100644
@@ -527,6 +527,23 @@ u16 xe_hwe_to_guc_class(struct xe_hw_engine *hwe)
  	}
  }
 
+u16 xe_hwe_guc_logical_instance(struct xe_hw_engine *hwe)
+{
+	struct xe_gt *gt = hwe->gt;
+
+	if (xe_guc_has_paging_engine(&hwe->gt->uc.guc) &&
+	    xe_gt_is_usm_hwe(gt, hwe)) {
+		int shift = gt->usm.paging_hwe0->logical_instance;
+
+		xe_gt_assert(gt, shift <= hwe->logical_instance);
+
+		/* GUC_PAGING_CLASS:guc_logical_instance */
+		return hwe->logical_instance - shift;
+	}
+
+	return hwe->logical_instance;
+}
+
  /*
   * Write the offsets corresponding to the golden LRCs. The actual data is
   * populated later by guc_golden_lrc_populate()
@@ -595,11 +612,14 @@ static void guc_mapping_table_init(struct xe_gt *gt,
  	guc_mapping_table_init_invalid(gt, info_map);
 
  	for_each_hw_engine(hwe, gt, id) {
+		u16 guc_logical_instance;
  		u8 guc_class;
 
  		guc_class = xe_hwe_to_guc_class(hwe);
+		guc_logical_instance = xe_hwe_guc_logical_instance(hwe);
+
  		info_map_write(xe, info_map,
-			       mapping_table[guc_class][hwe->logical_instance],
+			       mapping_table[guc_class][guc_logical_instance],
  			       hwe->instance);
  	}
  }
drivers/gpu/drm/xe/xe_guc_engine_activity.c +4 -2
index 150d891d5a09..2feb87492312 100644
@@ -28,6 +28,7 @@ static struct iosys_map engine_activity_map(struct xe_guc *guc, struct xe_hw_eng
  	struct xe_guc_engine_activity *engine_activity = &guc->engine_activity;
  	struct engine_activity_buffer *buffer;
  	u16 guc_class = xe_hwe_to_guc_class(hwe);
+	u16 guc_logical_instance = xe_hwe_guc_logical_instance(hwe);
  	size_t offset;
 
  	if (engine_activity->num_functions) {
@@ -39,7 +40,7 @@ static struct iosys_map engine_activity_map(struct xe_guc *guc, struct xe_hw_eng
  	}
 
  	offset += offsetof(struct guc_engine_activity_data,
-			  engine_activity[guc_class][hwe->logical_instance]);
+			  engine_activity[guc_class][guc_logical_instance]);
 
  	return IOSYS_MAP_INIT_OFFSET(&buffer->activity_bo->vmap, offset);
  }
@@ -151,8 +152,9 @@ static struct engine_activity *hw_engine_to_engine_activity(struct xe_hw_engine
  	struct xe_guc *guc = &hwe->gt->uc.guc;
  	struct engine_activity_group *eag = &guc->engine_activity.eag[index];
  	u16 guc_class = xe_hwe_to_guc_class(hwe);
+	u16 guc_logical_instance = xe_hwe_guc_logical_instance(hwe);
 
-	return &eag->engine[guc_class][hwe->logical_instance];
+	return &eag->engine[guc_class][guc_logical_instance];
  }
 
  static u64 cpu_ns_to_guc_tsc_tick(ktime_t ns, u32 freq)
#9 lore raw

Re: [PATCH v3 06/10] drm/xe/guc: handle guc logical instance for paging engine

Quoted 12 lines · Daniele Ceraolo Spurio
Quoted 9 lines · Matthew Auld

In the GuC backend, we need a different logical instance when referring to the reserved paging engine. Under the hood, this is still just the same physical BSC engine, however from the GuC POV this is actually re-mapped to a separate GUC_PAGING_CLASS, with the logical index starting from zero.

The idea is to not leak this into the upper layers, since this is GuC version specific, so the changes here are purely on the GuC side.

Quoted 8 lines
Quoted 1 line

No functional change.

Double-checked all usages of hwe->logical_instance and AFAICS you covered all the GuC related ones in this patch. We'll have to be careful in future reviews to make sure hwe-

Quoted 1 line

logical_instance is not accidentally used directly with the GuC in new

code, but I can't think of a good way to make such a mistake easier to avoid.

Thanks. Thinking we could also add a comment under hwe->logical_instance, and link that against some kernel-doc for xe_hwe_guc_logical_instance(). And explain that for GuC side, never use the raw logical_instance, use the helper. That might help a bit, both for human and LLM review side.

Quoted 137 lines

Daniele

Quoted 133 lines
Cc Daniele Ceraolo Spurio <[email protected]>

---
  drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c |  3 ++- drivers/gpu/drm/xe/xe_gt_sriov_pf_policy.c  |  3 ++- drivers/gpu/drm/xe/xe_guc.h                 |  1 + drivers/gpu/drm/xe/xe_guc_ads.c             | 22 ++++++++++++++++++++- drivers/gpu/drm/xe/xe_guc_engine_activity.c |  6 ++++--

  5 files changed, 30 insertions(+), 5 deletions(-)
drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c +2 -1
index f28c7ae0e8c2..0f242db775e1 100644
@@ -382,9 +382,10 @@ static ssize_t sched_group_engines_read(struct 
 file *file, char __user *buf,
       if (group < num_groups) {
           for_each_hw_engine(hwe, gt, id) {
               u8 guc_class = xe_hwe_to_guc_class(hwe);
+            u16 guc_logical_instance = xe_hwe_guc_logical_instance(hwe);
               u32 mask = groups[group].engines[guc_class];
-            if (mask & BIT(hwe->logical_instance)) {
+            if (mask & BIT(guc_logical_instance)) {
                   strlcat(engines, hwe->name, sizeof(engines));
                   strlcat(engines, " ", sizeof(engines));
               }
drivers/gpu/drm/xe/xe_gt_sriov_pf_policy.c +0 -0
index cf117bf52d41..cdfe194926d3 100644
@@ -472,6 +472,7 @@ static void pf_sched_group_media_slices(struct 

xe_gt *gt, struct guc_sched_group
      for_each_hw_engine(hwe, gt, id) {
          u8 guc_class = xe_hwe_to_guc_class(hwe);
+        u16 guc_logical_instance = xe_hwe_guc_logical_instance(hwe); switch (hwe->class) {
          case XE_ENGINE_CLASS_VIDEO_DECODE:

drivers/gpu/drm/xe/xe_gt_sriov_pf_policy.c +0 -0
@@ -490,7 +491,7 @@ static void pf_sched_group_media_slices(struct 

xe_gt *gt, struct guc_sched_group
              slice = 0;
          }
-        values[slice_to_group[slice]].engines[guc_class] |= BIT(hwe-

Quoted 1 line

logical_instance);

+        values[slice_to_group[slice]].engines[guc_class] |= BIT(guc_logical_instance);
      }
      *groups = values;

drivers/gpu/drm/xe/xe_guc.h +1 -0
index 0934927e8254..61e3ee19a59b 100644
@@ -69,6 +69,7 @@ int xe_guc_g2g_test_notification(struct xe_guc *guc, 
 u32 *payload, u32 len);
   #endif
   u16 xe_hwe_to_guc_class(struct xe_hw_engine *hwe);
+u16 xe_hwe_guc_logical_instance(struct xe_hw_engine *hwe);
   static inline struct xe_gt *guc_to_gt(struct xe_guc *guc)
   {
drivers/gpu/drm/xe/xe_guc_ads.c +21 -1
index cedab0e1f798..b7d7eb4f3296 100644
@@ -527,6 +527,23 @@ u16 xe_hwe_to_guc_class(struct xe_hw_engine *hwe)
       }
   }
+u16 xe_hwe_guc_logical_instance(struct xe_hw_engine *hwe)
+{
+    struct xe_gt *gt = hwe->gt;
+
+    if (xe_guc_has_paging_engine(&hwe->gt->uc.guc) &&
+        xe_gt_is_usm_hwe(gt, hwe)) {
+        int shift = gt->usm.paging_hwe0->logical_instance;
+
+        xe_gt_assert(gt, shift <= hwe->logical_instance);
+
+        /* GUC_PAGING_CLASS:guc_logical_instance */
+        return hwe->logical_instance - shift;
+    }
+
+    return hwe->logical_instance;
+}
+
   /*
    * Write the offsets corresponding to the golden LRCs. The actual data is
    * populated later by guc_golden_lrc_populate()
@@ -595,11 +612,14 @@ static void guc_mapping_table_init(struct xe_gt 
 *gt,
       guc_mapping_table_init_invalid(gt, info_map);
       for_each_hw_engine(hwe, gt, id) {
+        u16 guc_logical_instance;
           u8 guc_class;
           guc_class = xe_hwe_to_guc_class(hwe);
+        guc_logical_instance = xe_hwe_guc_logical_instance(hwe);
+
           info_map_write(xe, info_map,
-                   mapping_table[guc_class][hwe->logical_instance],
+                   mapping_table[guc_class][guc_logical_instance],
                      hwe->instance);
       }
   }
drivers/gpu/drm/xe/xe_guc_engine_activity.c +0 -0
index 150d891d5a09..2feb87492312 100644
@@ -28,6 +28,7 @@ static struct iosys_map engine_activity_map(struct 

xe_guc *guc, struct xe_hw_eng
      struct xe_guc_engine_activity *engine_activity = &guc-

Quoted 1 line

engine_activity;

      struct engine_activity_buffer *buffer;
      u16 guc_class = xe_hwe_to_guc_class(hwe);
+    u16 guc_logical_instance = xe_hwe_guc_logical_instance(hwe); size_t offset;
      if (engine_activity->num_functions) {

drivers/gpu/drm/xe/xe_guc_engine_activity.c +0 -0
@@ -39,7 +40,7 @@ static struct iosys_map engine_activity_map(struct 

xe_guc *guc, struct xe_hw_eng
      }
      offset += offsetof(struct guc_engine_activity_data,
-              engine_activity[guc_class][hwe->logical_instance]); +              engine_activity[guc_class][guc_logical_instance]); return IOSYS_MAP_INIT_OFFSET(&buffer->activity_bo->vmap, offset); }

drivers/gpu/drm/xe/xe_guc_engine_activity.c +0 -0
@@ -151,8 +152,9 @@ static struct engine_activity 
 *hw_engine_to_engine_activity(struct xe_hw_engine
       struct xe_guc *guc = &hwe->gt->uc.guc;

      struct engine_activity_group *eag = &guc-

Quoted 1 line

engine_activity.eag[index];

      u16 guc_class = xe_hwe_to_guc_class(hwe);
+    u16 guc_logical_instance = xe_hwe_guc_logical_instance(hwe); -    return &eag->engine[guc_class][hwe->logical_instance]; +    return &eag->engine[guc_class][guc_logical_instance]; }
  static u64 cpu_ns_to_guc_tsc_tick(ktime_t ns, u32 freq)

#10 lore raw

PATCH v3 7/10 drm/xe/guc: handle submit mask with paging engine

In reply to Matthew Auld

We need to re-map the submit mask so that we correctly account for the logical mask of paging engines, if the GUC_PAGING_CLASS is in play. We could also have multiple instances (possible on VF), so we need to handle that also.

Cc Daniele Ceraolo Spurio <[email protected]>
---
 drivers/gpu/drm/xe/xe_guc.h        |  1 +
 drivers/gpu/drm/xe/xe_guc_ads.c    | 21 +++++++++++++++++++++
 drivers/gpu/drm/xe/xe_guc_submit.c |  3 ++-
 3 files changed, 24 insertions(+), 1 deletion(-)
drivers/gpu/drm/xe/xe_guc.h +1 -0
index 61e3ee19a59b..dd98ceb81026 100644
@@ -70,6 +70,7 @@ int xe_guc_g2g_test_notification(struct xe_guc *guc, u32 *payload, u32 len);
 
 u16 xe_hwe_to_guc_class(struct xe_hw_engine *hwe);
 u16 xe_hwe_guc_logical_instance(struct xe_hw_engine *hwe);
+u32 xe_hwe_guc_logical_to_submit_mask(struct xe_hw_engine *hwe, u32 logical_mask);
 
 static inline struct xe_gt *guc_to_gt(struct xe_guc *guc)
 {
drivers/gpu/drm/xe/xe_guc_ads.c +21 -0
index b7d7eb4f3296..10ebcfb11c70 100644
@@ -544,6 +544,27 @@ u16 xe_hwe_guc_logical_instance(struct xe_hw_engine *hwe)
 	return hwe->logical_instance;
 }
 
+u32 xe_hwe_guc_logical_to_submit_mask(struct xe_hw_engine *hwe, u32 logical_mask)
+{
+	struct xe_gt *gt = hwe->gt;
+
+	if (xe_gt_is_usm_hwe(gt, hwe)) {
+		int shift = gt->usm.paging_hwe0->logical_instance;
+		u32 paging_logical_mask = gt->usm.paging_logical_mask;
+
+		xe_gt_assert(gt, (logical_mask & paging_logical_mask) == logical_mask);
+
+		/*
+		 * Remap to GUC_PAGING_CLASS logical instance mask, if
+		 * applicable.
+		 */
+		if (xe_guc_has_paging_engine(&hwe->gt->uc.guc))
+			return logical_mask >> shift;
+	}
+
+	return logical_mask;
+}
+
 /*
  * Write the offsets corresponding to the golden LRCs. The actual data is
  * populated later by guc_golden_lrc_populate()
drivers/gpu/drm/xe/xe_guc_submit.c +2 -1
index 1ee4f2434876..53df499df968 100644
@@ -986,7 +986,8 @@ static void register_exec_queue(struct xe_exec_queue *q, int ctx_type)
 	memset(&info, 0, sizeof(info));
 	info.context_idx = q->guc->id;
 	info.engine_class = xe_hwe_to_guc_class(q->hwe);
-	info.engine_submit_mask = q->logical_mask;
+	info.engine_submit_mask =
+		xe_hwe_guc_logical_to_submit_mask(q->hwe, q->logical_mask);
 	info.hwlrca_lo = lower_32_bits(xe_lrc_descriptor(lrc));
 	info.hwlrca_hi = upper_32_bits(xe_lrc_descriptor(lrc));
 	info.flags = CONTEXT_REGISTRATION_FLAG_KMD |
Signature · 1 line
2.54.0
#11 lore raw

Re: [PATCH v3 07/10] drm/xe/guc: handle submit mask with paging engine

Quoted 18 lines · Matthew Auld

We need to re-map the submit mask so that we correctly account for the logical mask of paging engines, if the GUC_PAGING_CLASS is in play. We could also have multiple instances (possible on VF), so we need to handle that also.

Cc Daniele Ceraolo Spurio <[email protected]>
---
  drivers/gpu/drm/xe/xe_guc.h        |  1 +
  drivers/gpu/drm/xe/xe_guc_ads.c    | 21 +++++++++++++++++++++
  drivers/gpu/drm/xe/xe_guc_submit.c |  3 ++-
  3 files changed, 24 insertions(+), 1 deletion(-)
drivers/gpu/drm/xe/xe_guc.h +0 -0
index 61e3ee19a59b..dd98ceb81026 100644

drivers/gpu/drm/xe/xe_guc.h int xe_guc_g2g_test_notification(struct xe_guc *guc, u32 *payload, u32 len); · line 73

Quoted 4 lines
drivers/gpu/drm/xe/xe_guc.h +1 -0
@@ -70,6 +70,7 @@ int xe_guc_g2g_test_notification(struct xe_guc *guc, u32 *payload, u32 len);
 
  u16 xe_hwe_to_guc_class(struct xe_hw_engine *hwe);
  u16 xe_hwe_guc_logical_instance(struct xe_hw_engine *hwe);
+u32 xe_hwe_guc_logical_to_submit_mask(struct xe_hw_engine *hwe, u32 logical_mask);

This seems to have ended up in the wrong file, because you're declaring this in xe_guc.h, implementing it in xe_guc_ads.c and using it only in xe_guc_submit.c. Given that there is a single user, maybe just have it as a static in xe_guc_submit.c?

Apart from that the change looks ok to me.

Daniele

Quoted 49 lines
drivers/gpu/drm/xe/xe_guc.h +0 -0
  static inline struct xe_gt *guc_to_gt(struct xe_guc *guc)
  {
drivers/gpu/drm/xe/xe_guc_ads.c +21 -0
index b7d7eb4f3296..10ebcfb11c70 100644
@@ -544,6 +544,27 @@ u16 xe_hwe_guc_logical_instance(struct xe_hw_engine *hwe)
  	return hwe->logical_instance;
  }
 
+u32 xe_hwe_guc_logical_to_submit_mask(struct xe_hw_engine *hwe, u32 logical_mask)
+{
+	struct xe_gt *gt = hwe->gt;
+
+	if (xe_gt_is_usm_hwe(gt, hwe)) {
+		int shift = gt->usm.paging_hwe0->logical_instance;
+		u32 paging_logical_mask = gt->usm.paging_logical_mask;
+
+		xe_gt_assert(gt, (logical_mask & paging_logical_mask) == logical_mask);
+
+		/*
+		 * Remap to GUC_PAGING_CLASS logical instance mask, if
+		 * applicable.
+		 */
+		if (xe_guc_has_paging_engine(&hwe->gt->uc.guc))
+			return logical_mask >> shift;
+	}
+
+	return logical_mask;
+}
+
  /*
   * Write the offsets corresponding to the golden LRCs. The actual data is
   * populated later by guc_golden_lrc_populate()
drivers/gpu/drm/xe/xe_guc_submit.c +2 -1
index 1ee4f2434876..53df499df968 100644
@@ -986,7 +986,8 @@ static void register_exec_queue(struct xe_exec_queue *q, int ctx_type)
  	memset(&info, 0, sizeof(info));
  	info.context_idx = q->guc->id;
  	info.engine_class = xe_hwe_to_guc_class(q->hwe);
-	info.engine_submit_mask = q->logical_mask;
+	info.engine_submit_mask =
+		xe_hwe_guc_logical_to_submit_mask(q->hwe, q->logical_mask);
  	info.hwlrca_lo = lower_32_bits(xe_lrc_descriptor(lrc));
  	info.hwlrca_hi = upper_32_bits(xe_lrc_descriptor(lrc));
  	info.flags = CONTEXT_REGISTRATION_FLAG_KMD |
#12 lore raw

PATCH v3 8/10 drm/xe/vf: wire up NUM_PAGING_ENGINE_INSTANCES

In reply to Matthew Auld

When host PF writes the logical configuration for the GUC PAGING engine, the VF is meant to query it, and mirror it. Size of N means we have paging logical index range [0, N-1], with N fewer normal copy engines.

Agreement is that PF will only spawn PAGING engines on NVL-S+, so this should be zero on older platforms, where we should simply fall back to the old behaviour.

TODO: Check the final GuC ABI version before merging

v2 (Sashiko):
- We can't call use the guc_has_paging_engine() this early in the VF code. With that just unconditionally do the query, if the GuC is new enough and take the value as-is. With that drop the -1 special case and just let the upper layers figure out the rest.

Cc Daniele Ceraolo Spurio <[email protected]>
Cc Piotr Piórkowski <[email protected]>
---
 drivers/gpu/drm/xe/abi/guc_klvs_abi.h     |  9 ++++++
 drivers/gpu/drm/xe/xe_gt_sriov_vf.c       | 39 +++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_gt_sriov_vf.h       |  1 +
 drivers/gpu/drm/xe/xe_gt_sriov_vf_types.h |  4 +++
 drivers/gpu/drm/xe/xe_hw_engine.c         | 18 +++++++++++
 5 files changed, 71 insertions(+)
drivers/gpu/drm/xe/abi/guc_klvs_abi.h +9 -0
index 644f5a4226d7..608678f8b18c 100644
@@ -52,6 +52,12 @@
  * _`GUC_KLV_GLOBAL_CFG_GROUP_SCHEDULING_AVAILABLE` : 0x3001
  *      Tells the driver whether scheduler groups are enabled or not.
  *      Requires GuC ABI 1.26+
+ *
+ * _`GUC_KLV_GLOBAL_CFG_NUM_PAGING_ENGINE_INSTANCES` : 0x3003
+ *      Tells the driver the paging engine configuration.
+ *      Paging engine logical instances are guaranteed to be dense starting at
+ *      index 0.
+ *      Requires GuC ABI 1.35.1+
  */
 
 #define GUC_KLV_GLOBAL_CFG_GMD_ID_KEY			0x3000u
@@ -60,6 +66,9 @@
 #define GUC_KLV_GLOBAL_CFG_GROUP_SCHEDULING_AVAILABLE_KEY	0x3001u
 #define GUC_KLV_GLOBAL_CFG_GROUP_SCHEDULING_AVAILABLE_LEN	1u
 
+#define GUC_KLV_GLOBAL_CFG_NUM_PAGING_ENGINE_INSTANCES_KEY	0x3003u
+#define GUC_KLV_GLOBAL_CFG_NUM_PAGING_ENGINE_INSTANCES_LEN	1u
+
 /**
  * DOC: GuC Self Config KLVs
  *
drivers/gpu/drm/xe/xe_gt_sriov_vf.c +39 -0
index 0cd9d77f3351..5c1581c9e432 100644
@@ -658,6 +658,41 @@ static int vf_cache_sched_groups_status(struct xe_gt *gt)
 	return 0;
 }
 
+static int vf_cache_num_paging_engines(struct xe_gt *gt)
+{
+	struct xe_guc *guc = &gt->uc.guc;
+	struct xe_uc_fw_version guc_version;
+	u32 value = 0;
+	int err;
+
+	xe_gt_sriov_vf_guc_versions(gt, NULL, &guc_version);
+
+	if (MAKE_GUC_VER_STRUCT(guc_version) < MAKE_GUC_VER(1, 35, 1))
+		return 0;
+
+	err = guc_action_query_single_klv32(guc, GUC_KLV_GLOBAL_CFG_NUM_PAGING_ENGINE_INSTANCES_KEY,
+					    &value);
+	if (unlikely(err)) {
+		xe_gt_sriov_err(gt,
+				"Failed to obtain the number of paging instances (%pe)\n",
+				ERR_PTR(err));
+		return err;
+	}
+
+	gt->sriov.vf.runtime.num_paging_engine_instances = value;
+
+	xe_gt_sriov_dbg(gt, "num_paging_engines %u\n", value);
+	return err;
+}
+
+u32 xe_gt_sriov_vf_paging_engines(struct xe_gt *gt)
+{
+	xe_gt_assert(gt, IS_SRIOV_VF(gt_to_xe(gt)));
+	xe_gt_assert(gt, gt->sriov.vf.guc_version.major);
+
+	return gt->sriov.vf.runtime.num_paging_engine_instances;
+}
+
 /**
  * xe_gt_sriov_vf_query_config - Query SR-IOV config data over MMIO.
  * @gt: the &xe_gt
@@ -694,6 +729,10 @@ int xe_gt_sriov_vf_query_config(struct xe_gt *gt)
 	if (has_gmdid(xe))
 		vf_cache_gmdid(gt);
 
+	err = vf_cache_num_paging_engines(gt);
+	if (unlikely(err))
+		return err;
+
 	return 0;
 }
 
drivers/gpu/drm/xe/xe_gt_sriov_vf.h +1 -0
index 79878f21b1da..d171a8242a34 100644
@@ -31,6 +31,7 @@ u32 xe_gt_sriov_vf_gmdid(struct xe_gt *gt);
 u16 xe_gt_sriov_vf_guc_ids(struct xe_gt *gt);
 u64 xe_gt_sriov_vf_lmem(struct xe_gt *gt);
 bool xe_gt_sriov_vf_sched_groups_enabled(struct xe_gt *gt);
+u32 xe_gt_sriov_vf_paging_engines(struct xe_gt *gt);
 
 u32 xe_gt_sriov_vf_read32(struct xe_gt *gt, struct xe_reg reg);
 void xe_gt_sriov_vf_write32(struct xe_gt *gt, struct xe_reg reg, u32 val);
drivers/gpu/drm/xe/xe_gt_sriov_vf_types.h +4 -0
index 80562ffadb16..21cb9bc1a341 100644
@@ -40,6 +40,10 @@ struct xe_gt_sriov_vf_runtime {
 		/** @regs.value: register value. */
 		u32 value;
 	} *regs;
+	/**
+	 * @num_paging_engine_instances: number of configured paging engines.
+	 */
+	u32 num_paging_engine_instances;
 };
 
 /**
drivers/gpu/drm/xe/xe_hw_engine.c +18 -0
index 980b87988972..62b966bde34f 100644
@@ -669,6 +669,24 @@ static int hw_engine_setup_logical_and_paging_mapping(struct xe_gt *gt)
 	if (num_copy_engines && xe->info.has_usm)
 		num_paging_engines = 1;
 
+	if (IS_SRIOV_VF(xe)) {
+		u32 vf_num_paging_engines;
+
+		/*
+		 * PF could in theory reserve multiple paging engines, which
+		 * internally the submission/scheduling backend can load balance
+		 * from. Not something we currently expect, but we are at the
+		 * mercy of the PF, so we just need try our best to mirror the
+		 * paging configuration.
+		 */
+		vf_num_paging_engines = xe_gt_sriov_vf_paging_engines(gt);
+		if (xe->info.platform >= XE_NOVALAKE_S)
+			num_paging_engines = vf_num_paging_engines;
+		else
+			/* This should only be non-zero on NVL-S+ */
+			xe_gt_assert(gt, !vf_num_paging_engines);
+	}
+
 	if (XE_WARN_ON(!num_copy_engines && num_paging_engines ||
 		       num_paging_engines > num_copy_engines))
 		return -EINVAL;
Signature · 1 line
2.54.0
#13 lore raw

PATCH v3 9/10 drm/xe/hw_engine: document top-down paging requirement

In reply to Matthew Auld

We were doing this anyway, but going forward for paging engines, agreement is to always reserve BCS instances in top down fashion. This hopefully future proofs things for VFs, where in some low-level places it might only have the physical BCS instance from the hw pov. If we stick to a consistent mapping scheme, it should make it possible to determine if this is a special paging engine, or not.

Cc Daniele Ceraolo Spurio <[email protected]>
Cc Thomas Hellström <[email protected]>
Cc Matthew Brost <[email protected]>
---
 drivers/gpu/drm/xe/xe_hw_engine.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
drivers/gpu/drm/xe/xe_hw_engine.c +10 -1
index 62b966bde34f..1a254e70927f 100644
@@ -665,7 +665,6 @@ static int hw_engine_setup_logical_and_paging_mapping(struct xe_gt *gt)
 		if (hwe->class == XE_ENGINE_CLASS_COPY)
 			num_copy_engines++;
 
-	/* We just reserve the highest BCS instance for USM */
 	if (num_copy_engines && xe->info.has_usm)
 		num_paging_engines = 1;
 
@@ -691,6 +690,16 @@ static int hw_engine_setup_logical_and_paging_mapping(struct xe_gt *gt)
 		       num_paging_engines > num_copy_engines))
 		return -EINVAL;
 
+	/*
+	 * On PF, we just reserve the highest BCS instance for USM.
+	 *
+	 * Note: This is now a requirement going forward. The PF must ALWAYS
+	 * reserve BCS instances in top down order, that way the VF has a chance
+	 * of discovering the physical BCS instance mappings for paging engines,
+	 * in conjunction with vf_num_paging_engines. In some places we might
+	 * only have the physical instance, and from hw pov there is no such
+	 * thing as a paging engine.
+	 */
 	reserved_logical_bcs_start = num_copy_engines - num_paging_engines;
 
 	/* FIXME: Doing a simple logical mapping that works for most hardware */
Signature · 1 line
2.54.0
Reviewed-by on v3 9/10
#14 lore raw

Re: [PATCH v3 09/10] drm/xe/hw_engine: document top-down paging requirement

Quoted 31 lines · Matthew Auld

We were doing this anyway, but going forward for paging engines, agreement is to always reserve BCS instances in top down fashion. This hopefully future proofs things for VFs, where in some low-level places it might only have the physical BCS instance from the hw pov. If we stick to a consistent mapping scheme, it should make it possible to determine if this is a special paging engine, or not.

Cc Daniele Ceraolo Spurio <[email protected]>
Cc Thomas Hellström <[email protected]>
Cc Matthew Brost <[email protected]>
---
  drivers/gpu/drm/xe/xe_hw_engine.c | 11 ++++++++++-
  1 file changed, 10 insertions(+), 1 deletion(-)
drivers/gpu/drm/xe/xe_hw_engine.c +0 -1
index 62b966bde34f..1a254e70927f 100644
@@ -665,7 +665,6 @@ static int hw_engine_setup_logical_and_paging_mapping(struct xe_gt *gt)
  		if (hwe->class == XE_ENGINE_CLASS_COPY)
  			num_copy_engines++;
 
-	/* We just reserve the highest BCS instance for USM */
  	if (num_copy_engines && xe->info.has_usm)
  		num_paging_engines = 1;
 
@@ -691,6 +690,16 @@ static int hw_engine_setup_logical_and_paging_mapping(struct xe_gt *gt)
  		       num_paging_engines > num_copy_engines))
  		return -EINVAL;
 

drivers/gpu/drm/xe/xe_hw_engine.c static int hw_engine_setup_logical_and_paging_mapping(struct xe_gt *gt) · line 702

Quoted 10 lines
drivers/gpu/drm/xe/xe_hw_engine.c +10 -0
+	/*
+	 * On PF, we just reserve the highest BCS instance for USM.
+	 *
+	 * Note: This is now a requirement going forward. The PF must ALWAYS
+	 * reserve BCS instances in top down order, that way the VF has a chance
+	 * of discovering the physical BCS instance mappings for paging engines,
+	 * in conjunction with vf_num_paging_engines. In some places we might
+	 * only have the physical instance, and from hw pov there is no such
+	 * thing as a paging engine.
+	 */

For reference, an example of data that the VF can receive containing the physical class/instance is the page fault descriptor, as that comes straight from the HW.

Daniele

Quoted 3 lines
drivers/gpu/drm/xe/xe_hw_engine.c +0 -0
  	reserved_logical_bcs_start = num_copy_engines - num_paging_engines;
 
  	/* FIXME: Doing a simple logical mapping that works for most hardware */
#15 lore raw

PATCH v3 10/10 drm/xe/guc: toggle paging engine support for NVL-S+

In reply to Matthew Auld

NVL-S with latest GuC should be the first platform combo to support the special GUC_PAGING_CLASS feature.

TODO: Check the final GuC ABI version before merging

Cc Daniele Ceraolo Spurio <[email protected]>
---
 drivers/gpu/drm/xe/xe_guc.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
drivers/gpu/drm/xe/xe_guc.c +5 -3
index 2bc9fa5fb393..57ded0cf60a6 100644
@@ -1848,6 +1848,9 @@ bool xe_guc_using_main_gamctrl_queues(struct xe_guc *guc)
 
 bool xe_guc_has_paging_engine(struct xe_guc *guc)
 {
+	struct xe_gt *gt = guc_to_gt(guc);
+	struct xe_device *xe = gt_to_xe(gt);
+
 	/*
 	 * On newer platforms the GuC now has a dedicated engine class for the
 	 * special PAGING engine, which is the driver reserved BCS engine used
@@ -1856,9 +1859,8 @@ bool xe_guc_has_paging_engine(struct xe_guc *guc)
 	 * engine here, this is purely a sw view in the GuC itself, which we
 	 * need to respect.
 	 */
-
-	/* TODO: Have some way to query this from the GuC? */
-	return false;
+	return GUC_SUBMIT_VER(guc) >= MAKE_GUC_VER(1, 35, 1) &&
+	       xe->info.platform >= XE_NOVALAKE_S;
 }
 
 #if IS_ENABLED(CONFIG_DRM_XE_KUNIT_TEST)
Signature · 1 line
2.54.0
#16 lore raw

✓ CI.KUnit: success for GuC paging engine support (rev3)

In reply to Matthew Auld
== Series Details ==

== Series Details ==

Series: GuC paging engine support (rev3)
URL : https://patchwork.freedesktop.org/series/166960/
State : success

== Summary ==

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

$ make ARCH=um O=.kunit olddefconfig
[17:06:49] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48
In file included from ./arch/um/include/generated/asm/bug.h:1,
                 from ../arch/x86/include/asm/alternative.h:9,
                 from ../arch/x86/um/asm/barrier.h:6,
                 from ../include/linux/list.h:11,
                 from ../include/linux/mutex.h:15,
                 from ../drivers/gpu/drm/xe/xe_force_wake_types.h:9,
                 from ../drivers/gpu/drm/xe/xe_hw_engine_types.h:9,
                 from ../drivers/gpu/drm/xe/xe_hw_engine.h:9,
                 from ../drivers/gpu/drm/xe/xe_hw_engine.c:6:
../drivers/gpu/drm/xe/xe_hw_engine.c: In function ‘hw_engine_setup_logical_and_paging_mapping’:
../drivers/gpu/drm/xe/xe_hw_engine.c:689:42: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
  689 |         if (XE_WARN_ON(!num_copy_engines && num_paging_engines ||
      |                        ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
../include/asm-generic/bug.h:155:32: note: in definition of macro ‘WARN_ON’
  155 |         int __ret_warn_on = !!(condition);                              \
      |                                ^~~~~~~~~
../drivers/gpu/drm/xe/xe_hw_engine.c:689:13: note: in expansion of macro ‘XE_WARN_ON’
  689 |         if (XE_WARN_ON(!num_copy_engines && num_paging_engines ||
      |             ^~~~~~~~~~

[17:07:21] Starting KUnit Kernel (1/1)...
[17:07:21] ============================================================ Running tests with:

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

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

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

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

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

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