Skip to contentSkip to conversation

drm/xe/guc: Add support for NPK as a GuC log target

PATCH In review Stuart Summers 4 participants 13 messages Feb 26 – Apr 6

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/xe/guc: Add support for NPK as a GuC log target

From: John Harrison <[email protected]>

GuC provides the ability to gather logs through a hardware interface called NPK. For certain debugging scenarios this can be advantageous over getting logs from memory (or in addition to).

Add a hook for this alternate debugging mode via a configfs. This translates into a parameter passed to GuC during load time.

v2: Convert to configfs from modparam (Matt)

---
 drivers/gpu/drm/xe/xe_configfs.c | 60 ++++++++++++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_configfs.h |  5 +++
 drivers/gpu/drm/xe/xe_defaults.h |  1 +
 drivers/gpu/drm/xe/xe_guc.c      |  7 +++-
 4 files changed, 72 insertions(+), 1 deletion(-)
drivers/gpu/drm/xe/xe_configfs.c +60 -0
index 078dee985d24..e0c21328af75 100644
@@ -83,6 +83,16 @@
  *
  * This attribute can only be set before binding to the device.
  *
+ * GuC log target:
+ * -------------
+ *
+ * Set the destination for the GuC log. 0 - memory only (default),
+ * 1 - NPK only, 2 - memory + NPK.
+ *
+ * 	# echo 2 > /sys/kernel/config/xe/0000:03:00.0/guc_log_target
+ *
+ * This attribute can only be set before binding to the device.
+ *
  * Allowed GT types:
  * -----------------
  *
@@ -256,6 +266,7 @@ struct xe_config_group_device {
 	struct config_group sriov;
 
 	struct xe_config_device {
+		u8 guc_log_target;
 		u64 gt_types_allowed;
 		u64 engines_allowed;
 		struct wa_bb ctx_restore_post_bb[XE_ENGINE_CLASS_MAX];
@@ -277,6 +288,7 @@ struct xe_config_group_device {
 };
 
 static const struct xe_config_device device_defaults = {
+	.guc_log_target = XE_DEFAULT_GUC_LOG_TARGET,
 	.gt_types_allowed = U64_MAX,
 	.engines_allowed = U64_MAX,
 	.survivability_mode = false,
@@ -357,6 +369,37 @@ static bool is_bound(struct xe_config_group_device *dev)
 	return ret;
 }
 
+static ssize_t guc_log_target_show(struct config_item *item, char *page)
+{
+	struct xe_config_device *dev = to_xe_config_device(item);
+
+	return sprintf(page, "%d\n", dev->guc_log_target);
+}
+
+static ssize_t guc_log_target_store(struct config_item *item, const char *page, size_t len)
+{
+	struct xe_config_group_device *dev = to_xe_config_group_device(item);
+	u8 guc_log_target;
+	int ret;
+
+	ret = kstrtou8(page, 0, &guc_log_target);
+	if (ret)
+		return ret;
+
+#define GUC_LOG_TARGET_MAX	2
+	if (guc_log_target > GUC_LOG_TARGET_MAX)
+		return -EINVAL;
+#undef GUC_LOG_TARGET_MAX
+
+	guard(mutex)(&dev->lock);
+	if (is_bound(dev))
+		return -EBUSY;
+
+	dev->config.guc_log_target = guc_log_target;
+
+	return len;
+}
+
 static ssize_t survivability_mode_show(struct config_item *item, char *page)
 {
 	struct xe_config_device *dev = to_xe_config_device(item);
@@ -814,6 +857,7 @@ CONFIGFS_ATTR(, ctx_restore_mid_bb);
 CONFIGFS_ATTR(, ctx_restore_post_bb);
 CONFIGFS_ATTR(, enable_psmi);
 CONFIGFS_ATTR(, engines_allowed);
+CONFIGFS_ATTR(, guc_log_target);
 CONFIGFS_ATTR(, gt_types_allowed);
 CONFIGFS_ATTR(, survivability_mode);
 
@@ -822,6 +866,7 @@ static struct configfs_attribute *xe_config_device_attrs[] = {
 	&attr_ctx_restore_post_bb,
 	&attr_enable_psmi,
 	&attr_engines_allowed,
+	&attr_guc_log_target,
 	&attr_gt_types_allowed,
 	&attr_survivability_mode,
 	NULL,
@@ -1094,6 +1139,7 @@ static void dump_custom_dev_config(struct pci_dev *pdev,
 				 dev->config.attr_); \
 	} while (0)
 
+	PRI_CUSTOM_ATTR("%d", guc_log_target);
 	PRI_CUSTOM_ATTR("%llx", gt_types_allowed);
 	PRI_CUSTOM_ATTR("%llx", engines_allowed);
 	PRI_CUSTOM_ATTR("%d", enable_psmi);
@@ -1146,6 +1192,20 @@ bool xe_configfs_get_survivability_mode(struct pci_dev *pdev)
 	return mode;
 }
 
+u8 xe_configfs_get_guc_log_target(struct pci_dev *pdev)
+{
+	struct xe_config_group_device *dev = find_xe_config_group_device(pdev);
+	u8 target;
+
+	if (!dev)
+		return device_defaults.guc_log_target;
+
+	target = dev->config.guc_log_target;
+	config_group_put(&dev->group);
+
+	return target;
+}
+
 static u64 get_gt_types_allowed(struct pci_dev *pdev)
 {
 	struct xe_config_group_device *dev = find_xe_config_group_device(pdev);
drivers/gpu/drm/xe/xe_configfs.h +5 -0
index 07d62bf0c152..fb5cb7c57e75 100644
@@ -19,6 +19,7 @@ int xe_configfs_init(void);
 void xe_configfs_exit(void);
 void xe_configfs_check_device(struct pci_dev *pdev);
 bool xe_configfs_get_survivability_mode(struct pci_dev *pdev);
+u8 xe_configfs_get_guc_log_target(struct pci_dev *pdev);
 bool xe_configfs_primary_gt_allowed(struct pci_dev *pdev);
 bool xe_configfs_media_gt_allowed(struct pci_dev *pdev);
 u64 xe_configfs_get_engines_allowed(struct pci_dev *pdev);
@@ -38,6 +39,10 @@ static inline int xe_configfs_init(void) { return 0; }
 static inline void xe_configfs_exit(void) { }
 static inline void xe_configfs_check_device(struct pci_dev *pdev) { }
 static inline bool xe_configfs_get_survivability_mode(struct pci_dev *pdev) { return false; }
+static inline u8 xe_configfs_get_guc_log_target(struct pci_dev *pdev)
+{
+	return XE_DEFAULT_GUC_LOG_TARGET;
+}
 static inline bool xe_configfs_primary_gt_allowed(struct pci_dev *pdev) { return true; }
 static inline bool xe_configfs_media_gt_allowed(struct pci_dev *pdev) { return true; }
 static inline u64 xe_configfs_get_engines_allowed(struct pci_dev *pdev) { return U64_MAX; }
drivers/gpu/drm/xe/xe_defaults.h +1 -0
index c8ae1d5f3d60..fbe670668a04 100644
@@ -12,6 +12,7 @@
 #else
 #define XE_DEFAULT_GUC_LOG_LEVEL		1
 #endif
+#define XE_DEFAULT_GUC_LOG_TARGET		0
 
 #define XE_DEFAULT_PROBE_DISPLAY		IS_ENABLED(CONFIG_DRM_XE_DISPLAY)
 #define XE_DEFAULT_VRAM_BAR_SIZE		0
drivers/gpu/drm/xe/xe_guc.c +6 -1
index 54d2fc780127..d98d5d051f1b 100644
@@ -73,13 +73,18 @@ static u32 guc_bo_ggtt_addr(struct xe_guc *guc,
 
 static u32 guc_ctl_debug_flags(struct xe_guc *guc)
 {
+	struct pci_dev *pdev = to_pci_dev(guc_to_xe(guc)->drm.dev);
 	u32 level = xe_guc_log_get_level(&guc->log);
 	u32 flags = 0;
 
 	if (!GUC_LOG_LEVEL_IS_VERBOSE(level))
 		flags |= GUC_LOG_DISABLED;
 	else
-		flags |= FIELD_PREP(GUC_LOG_VERBOSITY, GUC_LOG_LEVEL_TO_VERBOSITY(level));
+		flags |= FIELD_PREP(GUC_LOG_VERBOSITY,
+				    GUC_LOG_LEVEL_TO_VERBOSITY(level));
+
+	flags |= FIELD_PREP(GUC_LOG_DESTINATION,
+			    xe_configfs_get_guc_log_target(pdev));
 
 	return flags;
 }
Signature · 1 line
2.34.1
#1 lore raw

✗ CI.checkpatch: warning for drm/xe/guc: Add support for NPK as a GuC log target (rev2)

== Series Details ==

== Series Details ==

Series: drm/xe/guc: Add support for NPK as a GuC log target (rev2)
URL : https://patchwork.freedesktop.org/series/162087/
State : warning

== Summary ==

+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master 1f57ba1afceae32108bd24770069f764d940a0e4
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 621d535ee07ff49f574f1198b93e5b136ff78f63

Author: John Harrison <[email protected]>
Date:   Thu Feb 26 23:26:48 2026 +0000

drm/xe/guc: Add support for NPK as a GuC log target

GuC provides the ability to gather logs through a hardware interface called NPK. For certain debugging scenarios this can be advantageous over getting logs from memory (or in addition to).

Add a hook for this alternate debugging mode via a configfs. This translates into a parameter passed to GuC during load time.

v2: Convert to configfs from modparam (Matt)

+ /mt/dim checkpatch 1abdcb654ffbb08bbc96a9806fee60ef65fdad77 drm-intel 621d535ee07f drm/xe/guc: Add support for NPK as a GuC log target -:32: WARNING:SPACE_BEFORE_TAB: please, no space before tabs #32: FILE: drivers/gpu/drm/xe/xe_configfs.c:92:
+ * ^I# echo 2 > /sys/kernel/config/xe/0000:03:00.0/guc_log_target$

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

#2 lore raw

✓ CI.KUnit: success for drm/xe/guc: Add support for NPK as a GuC log target (rev2)

In reply to Stuart Summers
== Series Details ==

== Series Details ==

Series: drm/xe/guc: Add support for NPK as a GuC log target (rev2)
URL : https://patchwork.freedesktop.org/series/162087/
State : success

== Summary ==

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

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

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

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

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

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

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

#3 lore raw

✓ Xe.CI.BAT: success for drm/xe/guc: Add support for NPK as a GuC log target (rev2)

In reply to Stuart Summers
== Series Details ==

== Series Details ==

Series: drm/xe/guc: Add support for NPK as a GuC log target (rev2)
URL : https://patchwork.freedesktop.org/series/162087/
State : success

== Summary ==

CI Bug Log - changes from xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed_BAT -> xe-pw-162087v2_BAT
====================================================

Summary
-------

**SUCCESS**

No regressions found.

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

Additional (1): bat-atsm-2
Missing (1): bat-bmg-3

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

Here are the changes found in xe-pw-162087v2_BAT that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@fbdev@write:
- bat-atsm-2: NOTRUN -> [SKIP][1] ([Intel XE#2134]) +4 other tests skip
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/bat-atsm-2/igt@[email protected]

* igt@kms_addfb_basic@addfb25-yf-tiled-legacy:
- bat-atsm-2: NOTRUN -> [SKIP][2] ([i915#6077]) +30 other tests skip
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/bat-atsm-2/igt@[email protected]

* igt@kms_cursor_legacy@basic-flip-after-cursor-legacy:
- bat-atsm-2: NOTRUN -> [SKIP][3] ([Intel XE#1024] / [Intel XE#782] / [Intel XE#947]) +5 other tests skip
[3]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/bat-atsm-2/igt@[email protected]

* igt@kms_dsc@dsc-basic:
- bat-atsm-2: NOTRUN -> [SKIP][4] ([Intel XE#1024] / [Intel XE#784] / [Intel XE#947])
[4]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/bat-atsm-2/igt@[email protected]

* igt@kms_frontbuffer_tracking@basic:
- bat-atsm-2: NOTRUN -> [SKIP][5] ([Intel XE#1024] / [Intel XE#783] / [Intel XE#947])
[5]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/bat-atsm-2/igt@[email protected]

* igt@kms_hdmi_inject@inject-audio:
- bat-atsm-2: NOTRUN -> [SKIP][6] ([Intel XE#540]) +3 other tests skip
[6]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/bat-atsm-2/igt@[email protected]

* igt@kms_pipe_crc_basic@nonblocking-crc:
- bat-atsm-2: NOTRUN -> [SKIP][7] ([Intel XE#829] / [i915#1836]) +6 other tests skip
[7]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/bat-atsm-2/igt@[email protected]

* igt@kms_prop_blob@basic:
- bat-atsm-2: NOTRUN -> [SKIP][8] ([Intel XE#780])
[8]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/bat-atsm-2/igt@[email protected]

* igt@kms_psr@psr-primary-page-flip:
- bat-atsm-2: NOTRUN -> [SKIP][9] ([Intel XE#1024] / [Intel XE#947]) +6 other tests skip
[9]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/bat-atsm-2/igt@[email protected]

* igt@xe_exec_fault_mode@twice-userptr-prefetch:
- bat-atsm-2: NOTRUN -> [SKIP][10] ([Intel XE#288]) +32 other tests skip
[10]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/bat-atsm-2/igt@[email protected]

* igt@xe_huc_copy@huc_copy:
- bat-atsm-2: NOTRUN -> [SKIP][11] ([Intel XE#255])
[11]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/bat-atsm-2/igt@xe_huc_copy@huc_copy.html

* igt@xe_live_ktest@xe_bo@xe_ccs_migrate_kunit:
- bat-bmg-2: NOTRUN -> [SKIP][12] ([Intel XE#2229])
[12]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/bat-bmg-2/igt@xe_live_ktest@xe_bo@xe_ccs_migrate_kunit.html

* igt@xe_live_ktest@xe_migrate@xe_validate_ccs_kunit:
- bat-atsm-2: NOTRUN -> [SKIP][13] ([Intel XE#2229])
[13]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/bat-atsm-2/igt@xe_live_ktest@xe_migrate@xe_validate_ccs_kunit.html

* igt@xe_pat@pat-index-xe2:
- bat-atsm-2: NOTRUN -> [SKIP][14] ([Intel XE#977])
[14]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/bat-atsm-2/igt@[email protected]

* igt@xe_pat@pat-index-xehpc:
- bat-atsm-2: NOTRUN -> [SKIP][15] ([Intel XE#2838] / [Intel XE#979])
[15]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/bat-atsm-2/igt@[email protected]

* igt@xe_pat@pat-index-xelpg:
- bat-atsm-2: NOTRUN -> [SKIP][16] ([Intel XE#979])
[16]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/bat-atsm-2/igt@[email protected]

#### Possible fixes ####

* igt@core_hotunplug@unbind-rebind:
- bat-bmg-2: [ABORT][17] ([Intel XE#7249]) -> [PASS][18]
[17]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/bat-bmg-2/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/bat-bmg-2/igt@[email protected]

[Intel XE#1024]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1024
[Intel XE#2134]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2134
[Intel XE#2229]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2229
[Intel XE#255]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/255
[Intel XE#2838]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2838
[Intel XE#288]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/288
[Intel XE#540]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/540
[Intel XE#7249]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7249
[Intel XE#780]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/780
[Intel XE#782]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/782
[Intel XE#783]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/783
[Intel XE#784]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/784
[Intel XE#829]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/829
[Intel XE#947]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/947
[Intel XE#977]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/977
[Intel XE#979]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/979
[i915#1836]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/1836
[i915#6077]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6077

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

* Linux: xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed -> xe-pw-162087v2

IGT_8774: 8892452285d691f612ecb3b2a6fefc50983af15f @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed: e42f7566b0d3eba44a6aeeae2c810025c66c44ed
xe-pw-162087v2: 162087v2

== Logs ==

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

#4 lore raw

✗ Xe.CI.FULL: failure for drm/xe/guc: Add support for NPK as a GuC log target (rev2)

In reply to Stuart Summers
== Series Details ==

== Series Details ==

Series: drm/xe/guc: Add support for NPK as a GuC log target (rev2)
URL : https://patchwork.freedesktop.org/series/162087/
State : failure

== Summary ==

CI Bug Log - changes from xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed_FULL -> xe-pw-162087v2_FULL
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with xe-pw-162087v2_FULL absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes
introduced in xe-pw-162087v2_FULL, please notify your bug team ([email protected]) to allow them to document this new failure mode, which will reduce false positives in CI.

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

No changes in participating hosts

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

Here are the unknown changes that may have been introduced in xe-pw-162087v2_FULL:

### IGT changes ###

#### Possible regressions ####

* igt@xe_evict@evict-beng-small-multi-vm-cm:
- shard-bmg: [PASS][1] -> [ABORT][2]
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-bmg-3/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-2/igt@[email protected]

* igt@xe_exec_system_allocator@many-stride-mmap-nomemset:
- shard-bmg: [PASS][3] -> [TIMEOUT][4]
[3]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-bmg-3/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-2/igt@[email protected]

#### Warnings ####

* igt@kms_cursor_legacy@flip-vs-cursor-atomic:
- shard-bmg: [SKIP][5] ([Intel XE#6703]) -> [FAIL][6]
[5]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-bmg-2/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-6/igt@[email protected]

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

Here are the changes found in xe-pw-162087v2_FULL that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@kms_ccs@random-ccs-data-4-tiled-lnl-ccs@pipe-c-dp-1:
- shard-bmg: NOTRUN -> [SKIP][7] ([Intel XE#2652]) +7 other tests skip
[7]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-5/igt@kms_ccs@[email protected]

* igt@kms_chamelium_hpd@hdmi-hpd-after-suspend:
- shard-bmg: NOTRUN -> [SKIP][8] ([Intel XE#2252])
[8]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-4/igt@[email protected]

* igt@kms_content_protection@lic-type-0-hdcp14@pipe-a-dp-1:
- shard-bmg: NOTRUN -> [FAIL][9] ([Intel XE#3304])
[9]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-5/igt@kms_content_protection@[email protected]

* igt@kms_content_protection@srm@pipe-a-dp-2:
- shard-bmg: NOTRUN -> [FAIL][10] ([Intel XE#1178] / [Intel XE#3304])
[10]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-1/igt@kms_content_protection@[email protected]

* igt@kms_flip@flip-vs-expired-vblank-interruptible@b-edp1:
- shard-lnl: [PASS][11] -> [FAIL][12] ([Intel XE#301]) +2 other tests fail
[11]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-lnl-1/igt@kms_flip@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-lnl-6/igt@kms_flip@[email protected]

* igt@kms_flip@flip-vs-expired-vblank@c-edp1:
- shard-lnl: [PASS][13] -> [FAIL][14] ([Intel XE#301] / [Intel XE#3149]) +1 other test fail
[13]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-lnl-8/igt@kms_flip@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-lnl-5/igt@kms_flip@[email protected]

* igt@kms_frontbuffer_tracking@drrs-1p-primscrn-pri-indfb-draw-render:
- shard-bmg: NOTRUN -> [SKIP][15] ([Intel XE#2311])
[15]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-5/igt@kms_frontbuffer_tracking@drrs-1p-primscrn-pri-indfb-draw-render.html

* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-pri-indfb-draw-mmap-wc:
- shard-bmg: NOTRUN -> [SKIP][16] ([Intel XE#4141])
[16]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-4/igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-pri-indfb-draw-mmap-wc.html

* igt@kms_frontbuffer_tracking@psr-1p-primscrn-cur-indfb-draw-render:
- shard-bmg: NOTRUN -> [SKIP][17] ([Intel XE#2313]) +2 other tests skip
[17]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-4/igt@kms_frontbuffer_tracking@psr-1p-primscrn-cur-indfb-draw-render.html

* igt@kms_plane@pixel-format-4-tiled-mtl-rc-ccs-cc-modifier:
- shard-bmg: NOTRUN -> [SKIP][18] ([Intel XE#7283])
[18]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-4/igt@[email protected]

* igt@kms_plane_multiple@2x-tiling-y:
- shard-bmg: NOTRUN -> [SKIP][19] ([Intel XE#5021])
[19]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-4/igt@[email protected]

* igt@kms_psr@fbc-psr-primary-render:
- shard-bmg: NOTRUN -> [SKIP][20] ([Intel XE#2234] / [Intel XE#2850])
[20]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-5/igt@[email protected]

* igt@kms_setmode@basic:
- shard-bmg: [PASS][21] -> [FAIL][22] ([Intel XE#6361]) +3 other tests fail
[21]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-bmg-6/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-4/igt@[email protected]

* igt@kms_vrr@flip-suspend:
- shard-bmg: NOTRUN -> [SKIP][23] ([Intel XE#1499])
[23]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-5/igt@[email protected]

* igt@xe_exec_multi_queue@many-execs-preempt-mode-fault-userptr:
- shard-bmg: NOTRUN -> [SKIP][24] ([Intel XE#6874]) +2 other tests skip
[24]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-5/igt@[email protected]

* igt@xe_exec_system_allocator@pat-index-madvise-pat-idx-uc-multi-vma:
- shard-lnl: [PASS][25] -> [FAIL][26] ([Intel XE#5625])
[25]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-lnl-4/igt@xe_exec_system_allocator@pat-index-madvise-pat-idx-uc-multi-vma.html
[26]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-lnl-7/igt@xe_exec_system_allocator@pat-index-madvise-pat-idx-uc-multi-vma.html

* igt@xe_oa@oa-tlb-invalidate:
- shard-bmg: NOTRUN -> [SKIP][27] ([Intel XE#2248] / [Intel XE#7325])
[27]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-4/igt@[email protected]

* igt@xe_query@multigpu-query-oa-units:
- shard-bmg: NOTRUN -> [SKIP][28] ([Intel XE#944])
[28]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-4/igt@[email protected]

* igt@xe_sriov_auto_provisioning@selfconfig-reprovision-increase-numvfs:
- shard-bmg: [PASS][29] -> [FAIL][30] ([Intel XE#5937]) +1 other test fail
[29]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-bmg-9/igt@xe_sriov_auto_provisioning@selfconfig-reprovision-increase-numvfs.html
[30]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-3/igt@xe_sriov_auto_provisioning@selfconfig-reprovision-increase-numvfs.html

#### Possible fixes ####

* igt@kms_atomic_transition@modeset-transition:
- shard-bmg: [FAIL][31] -> [PASS][32] +2 other tests pass
[31]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-bmg-2/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-6/igt@[email protected]

* igt@kms_fbcon_fbt@psr-suspend:
- shard-lnl: [FAIL][33] -> [PASS][34]
[33]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-lnl-2/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-lnl-3/igt@[email protected]

* igt@kms_pm_dc@deep-pkgc:
- shard-lnl: [FAIL][35] ([Intel XE#2029] / [Intel XE#7314]) -> [PASS][36]
[35]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-lnl-1/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-lnl-3/igt@[email protected]

* igt@kms_pm_rpm@i2c:
- shard-bmg: [SKIP][37] ([Intel XE#6693]) -> [PASS][38]
[37]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-bmg-2/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-6/igt@[email protected]

* igt@xe_exec_system_allocator@many-malloc-race-nomemset:
- shard-bmg: [DMESG-FAIL][39] ([Intel XE#5213] / [Intel XE#5545] / [Intel XE#6652]) -> [PASS][40]
[39]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-bmg-2/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-6/igt@[email protected]

* igt@xe_exec_system_allocator@threads-many-execqueues-malloc-race-nomemset:
- shard-bmg: [SKIP][41] ([Intel XE#6703]) -> [PASS][42] +125 other tests pass
[41]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-bmg-2/igt@xe_exec_system_allocator@threads-many-execqueues-malloc-race-nomemset.html
[42]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-6/igt@xe_exec_system_allocator@threads-many-execqueues-malloc-race-nomemset.html

* igt@xe_module_load@load:
- shard-lnl: ([PASS][43], [PASS][44], [PASS][45], [PASS][46], [PASS][47], [PASS][48], [PASS][49], [PASS][50], [PASS][51], [PASS][52], [PASS][53], [PASS][54], [PASS][55], [PASS][56], [SKIP][57], [PASS][58], [PASS][59], [PASS][60], [PASS][61], [PASS][62], [PASS][63], [PASS][64], [PASS][65], [PASS][66], [PASS][67], [PASS][68]) ([Intel XE#378]) -> ([PASS][69], [PASS][70], [PASS][71], [PASS][72], [PASS][73], [PASS][74], [PASS][75], [PASS][76], [PASS][77], [PASS][78], [PASS][79], [PASS][80], [PASS][81], [PASS][82], [PASS][83], [PASS][84], [PASS][85], [PASS][86], [PASS][87], [PASS][88], [PASS][89], [PASS][90], [PASS][91], [PASS][92])
[43]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-lnl-5/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-lnl-8/igt@[email protected]
[45]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-lnl-5/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-lnl-3/igt@[email protected]
[47]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-lnl-6/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-lnl-1/igt@[email protected]
[49]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-lnl-7/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-lnl-8/igt@[email protected]
[51]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-lnl-8/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-lnl-8/igt@[email protected]
[53]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-lnl-1/igt@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-lnl-2/igt@[email protected]
[55]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-lnl-6/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-lnl-3/igt@[email protected]
[57]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-lnl-1/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-lnl-7/igt@[email protected]
[59]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-lnl-7/igt@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-lnl-1/igt@[email protected]
[61]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-lnl-1/igt@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-lnl-3/igt@[email protected]
[63]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-lnl-2/igt@[email protected]
[64]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-lnl-4/igt@[email protected]
[65]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-lnl-2/igt@[email protected]
[66]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-lnl-5/igt@[email protected]
[67]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-lnl-2/igt@[email protected]
[68]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-lnl-5/igt@[email protected]
[69]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-lnl-7/igt@[email protected]
[70]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-lnl-7/igt@[email protected]
[71]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-lnl-7/igt@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-lnl-6/igt@[email protected]
[73]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-lnl-6/igt@[email protected]
[74]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-lnl-5/igt@[email protected]
[75]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-lnl-5/igt@[email protected]
[76]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-lnl-4/igt@[email protected]
[77]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-lnl-4/igt@[email protected]
[78]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-lnl-5/igt@[email protected]
[79]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-lnl-4/igt@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-lnl-3/igt@[email protected]
[81]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-lnl-3/igt@[email protected]
[82]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-lnl-3/igt@[email protected]
[83]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-lnl-8/igt@[email protected]
[84]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-lnl-8/igt@[email protected]
[85]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-lnl-8/igt@[email protected]
[86]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-lnl-2/igt@[email protected]
[87]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-lnl-2/igt@[email protected]
[88]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-lnl-2/igt@[email protected]
[89]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-lnl-2/igt@[email protected]
[90]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-lnl-1/igt@[email protected]
[91]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-lnl-1/igt@[email protected]
[92]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-lnl-1/igt@[email protected]

* igt@xe_pm_residency@aspm_link_residency:
- shard-bmg: [SKIP][93] ([Intel XE#7258]) -> [PASS][94]
[93]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-bmg-5/igt@xe_pm_residency@aspm_link_residency.html
[94]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-2/igt@xe_pm_residency@aspm_link_residency.html

#### Warnings ####

* igt@kms_big_fb@yf-tiled-32bpp-rotate-0:
- shard-bmg: [SKIP][95] ([Intel XE#6703]) -> [SKIP][96] ([Intel XE#1124]) +1 other test skip
[95]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-bmg-2/igt@[email protected]
[96]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-6/igt@[email protected]

* igt@kms_bw@linear-tiling-2-displays-2560x1440p:
- shard-bmg: [SKIP][97] ([Intel XE#6703]) -> [SKIP][98] ([Intel XE#367])
[97]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-bmg-2/igt@[email protected]
[98]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-6/igt@[email protected]

* igt@kms_ccs@crc-sprite-planes-basic-4-tiled-mtl-mc-ccs:
- shard-bmg: [SKIP][99] ([Intel XE#6703]) -> [SKIP][100] ([Intel XE#2887]) +2 other tests skip
[99]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-bmg-2/igt@[email protected]
[100]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-6/igt@[email protected]

* igt@kms_chamelium_color@ctm-green-to-red:
- shard-bmg: [SKIP][101] ([Intel XE#6703]) -> [SKIP][102] ([Intel XE#2325])
[101]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-bmg-2/igt@[email protected]
[102]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-6/igt@[email protected]

* igt@kms_chamelium_hpd@hdmi-hpd-with-enabled-mode:
- shard-bmg: [SKIP][103] ([Intel XE#6703]) -> [SKIP][104] ([Intel XE#2252]) +1 other test skip
[103]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-bmg-2/igt@[email protected]
[104]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-6/igt@[email protected]

* igt@kms_content_protection@lic-type-1:
- shard-bmg: [SKIP][105] ([Intel XE#6703]) -> [SKIP][106] ([Intel XE#2341])
[105]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-bmg-2/igt@[email protected]
[106]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-6/igt@[email protected]

* igt@kms_dirtyfb@drrs-dirtyfb-ioctl:
- shard-bmg: [SKIP][107] ([Intel XE#6703]) -> [SKIP][108] ([Intel XE#1508])
[107]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-bmg-2/igt@[email protected]
[108]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-6/igt@[email protected]

* igt@kms_fbc_dirty_rect@fbc-dirty-rectangle-out-visible-area:
- shard-bmg: [SKIP][109] ([Intel XE#6703]) -> [SKIP][110] ([Intel XE#4422])
[109]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-bmg-2/igt@[email protected]
[110]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-6/igt@[email protected]

* igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-16bpp-yftile-upscaling:
- shard-bmg: [SKIP][111] ([Intel XE#6703]) -> [SKIP][112] ([Intel XE#7178])
[111]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-bmg-2/igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-16bpp-yftile-upscaling.html
[112]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-6/igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-16bpp-yftile-upscaling.html

* igt@kms_frontbuffer_tracking@drrs-rgb565-draw-mmap-wc:
- shard-bmg: [SKIP][113] ([Intel XE#6703]) -> [SKIP][114] ([Intel XE#2311]) +4 other tests skip
[113]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-bmg-2/igt@[email protected]
[114]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-6/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbc-argb161616f-draw-render:
- shard-bmg: [SKIP][115] ([Intel XE#6703]) -> [SKIP][116] ([Intel XE#7061])
[115]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-bmg-2/igt@[email protected]
[116]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-6/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbc-rgb565-draw-blt:
- shard-bmg: [SKIP][117] ([Intel XE#6703]) -> [SKIP][118] ([Intel XE#4141]) +3 other tests skip
[117]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-bmg-2/igt@[email protected]
[118]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-6/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbcpsr-rgb565-draw-blt:
- shard-bmg: [SKIP][119] ([Intel XE#6703]) -> [SKIP][120] ([Intel XE#2313]) +6 other tests skip
[119]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-bmg-2/igt@[email protected]
[120]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-6/igt@[email protected]

* igt@kms_plane@pixel-format-4-tiled-dg2-mc-ccs-modifier:
- shard-bmg: [SKIP][121] ([Intel XE#6703]) -> [SKIP][122] ([Intel XE#7283]) +1 other test skip
[121]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-bmg-2/igt@[email protected]
[122]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-6/igt@[email protected]

* igt@kms_psr2_sf@fbc-psr2-primary-plane-update-sf-dmg-area:
- shard-bmg: [SKIP][123] ([Intel XE#6703]) -> [SKIP][124] ([Intel XE#1489]) +1 other test skip
[123]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-bmg-2/igt@[email protected]
[124]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-6/igt@[email protected]

* igt@kms_psr@psr2-suspend:
- shard-bmg: [SKIP][125] ([Intel XE#6703]) -> [SKIP][126] ([Intel XE#2234] / [Intel XE#2850]) +1 other test skip
[125]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-bmg-2/igt@[email protected]
[126]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-6/igt@[email protected]

* igt@kms_tiled_display@basic-test-pattern:
- shard-bmg: [FAIL][127] ([Intel XE#1729]) -> [SKIP][128] ([Intel XE#2426])
[127]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-bmg-4/igt@[email protected]
[128]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-8/igt@[email protected]

* igt@xe_eudebug@discovery-empty:
- shard-bmg: [SKIP][129] ([Intel XE#6703]) -> [SKIP][130] ([Intel XE#4837])
[129]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-bmg-2/igt@[email protected]
[130]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-6/igt@[email protected]

* igt@xe_eudebug_online@pagefault-write-stress:
- shard-bmg: [SKIP][131] ([Intel XE#6703]) -> [SKIP][132] ([Intel XE#6665] / [Intel XE#6681])
[131]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-bmg-2/igt@[email protected]
[132]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-6/igt@[email protected]

* igt@xe_exec_fault_mode@once-multi-queue-rebind-imm:
- shard-bmg: [SKIP][133] ([Intel XE#6703]) -> [SKIP][134] ([Intel XE#7136]) +2 other tests skip
[133]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-bmg-2/igt@[email protected]
[134]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-6/igt@[email protected]

* igt@xe_exec_multi_queue@few-execs-preempt-mode-fault-dyn-priority:
- shard-bmg: [SKIP][135] ([Intel XE#6703]) -> [SKIP][136] ([Intel XE#6874]) +5 other tests skip
[135]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-bmg-2/igt@xe_exec_multi_queue@few-execs-preempt-mode-fault-dyn-priority.html
[136]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-6/igt@xe_exec_multi_queue@few-execs-preempt-mode-fault-dyn-priority.html

* igt@xe_exec_threads@threads-multi-queue-cm-shared-vm-userptr-invalidate:
- shard-bmg: [SKIP][137] ([Intel XE#6703]) -> [SKIP][138] ([Intel XE#7138]) +1 other test skip
[137]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-bmg-2/igt@xe_exec_threads@threads-multi-queue-cm-shared-vm-userptr-invalidate.html
[138]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-6/igt@xe_exec_threads@threads-multi-queue-cm-shared-vm-userptr-invalidate.html

* igt@xe_pm@d3cold-basic-exec:
- shard-bmg: [SKIP][139] ([Intel XE#6703]) -> [SKIP][140] ([Intel XE#2284])
[139]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-bmg-2/igt@[email protected]
[140]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-6/igt@[email protected]

* igt@xe_query@multigpu-query-pxp-status:
- shard-bmg: [SKIP][141] ([Intel XE#6703]) -> [SKIP][142] ([Intel XE#944])
[141]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed/shard-bmg-2/igt@[email protected]
[142]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162087v2/shard-bmg-6/igt@[email protected]

[Intel XE#1124]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1124
[Intel XE#1178]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1178
[Intel XE#1489]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1489
[Intel XE#1499]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1499
[Intel XE#1508]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1508
[Intel XE#1729]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1729
[Intel XE#2029]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2029
[Intel XE#2234]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2234
[Intel XE#2248]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2248
[Intel XE#2252]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2252
[Intel XE#2284]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2284
[Intel XE#2311]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2311
[Intel XE#2313]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2313
[Intel XE#2325]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2325
[Intel XE#2341]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2341
[Intel XE#2426]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2426
[Intel XE#2652]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2652
[Intel XE#2850]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2850
[Intel XE#2887]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2887
[Intel XE#301]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/301
[Intel XE#3149]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3149
[Intel XE#3304]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3304
[Intel XE#367]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/367
[Intel XE#378]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/378
[Intel XE#4141]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4141
[Intel XE#4422]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4422
[Intel XE#4837]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4837
[Intel XE#5021]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5021
[Intel XE#5213]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5213
[Intel XE#5545]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5545
[Intel XE#5625]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5625
[Intel XE#5937]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5937
[Intel XE#6361]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6361
[Intel XE#6652]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6652
[Intel XE#6665]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6665
[Intel XE#6681]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6681
[Intel XE#6693]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6693
[Intel XE#6703]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6703
[Intel XE#6874]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6874
[Intel XE#7061]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7061
[Intel XE#7136]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7136
[Intel XE#7138]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7138
[Intel XE#7178]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7178
[Intel XE#7258]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7258
[Intel XE#7283]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7283
[Intel XE#7314]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7314
[Intel XE#7325]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7325
[Intel XE#944]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/944

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

* Linux: xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed -> xe-pw-162087v2

IGT_8774: 8892452285d691f612ecb3b2a6fefc50983af15f @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
xe-4627-e42f7566b0d3eba44a6aeeae2c810025c66c44ed: e42f7566b0d3eba44a6aeeae2c810025c66c44ed
xe-pw-162087v2: 162087v2

== Logs ==

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

#5 lore raw
In reply to Stuart Summers

Quick ping here and also CC Daniele in case you have any feedback.

It would be great to get this merged so we aren't carrying this patch separately for debug purposes.

Thanks,
Stuart

Quoted 226 lines · Stuart Summers

From: John Harrison <[email protected]>

GuC provides the ability to gather logs through a hardware interface called NPK. For certain debugging scenarios this can be advantageous over getting logs from memory (or in addition to).

Add a hook for this alternate debugging mode via a configfs. This translates into a parameter passed to GuC during load time.

v2: Convert to configfs from modparam (Matt)

---
 drivers/gpu/drm/xe/xe_configfs.c | 60
++++++++++++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_configfs.h |  5 +++
 drivers/gpu/drm/xe/xe_defaults.h |  1 +
 drivers/gpu/drm/xe/xe_guc.c      |  7 +++-

 4 files changed, 72 insertions(+), 1 deletion(-)
drivers/gpu/drm/xe/xe_configfs.c +10 -0
index 078dee985d24..e0c21328af75 100644
@@ -83,6 +83,16 @@
   *
   * This attribute can only be set before binding to the device.
   *
+ * GuC log target:
+ * -------------
+ *
+ * Set the destination for the GuC log. 0 - memory only (default),
+ * 1 - NPK only, 2 - memory + NPK.
+ *
+ *     # echo 2 > /sys/kernel/config/xe/0000:03:00.0/guc_log_target
+ *
+ * This attribute can only be set before binding to the device.
+ *
   * Allowed GT types:
   * -----------------
   *
@@ -256,6 +266,7 @@ struct xe_config_group_device {
         struct config_group sriov;


        struct xe_config_device {
+               u8 guc_log_target;
                u64 gt_types_allowed;
                u64 engines_allowed;
                struct wa_bb
ctx_restore_post_bb[XE_ENGINE_CLASS_MAX];

drivers/gpu/drm/xe/xe_configfs.c +0 -0
@@ -277,6 +288,7 @@ struct xe_config_group_device {
  };


 static const struct xe_config_device device_defaults = { +       .guc_log_target = XE_DEFAULT_GUC_LOG_TARGET, .gt_types_allowed = U64_MAX, .engines_allowed = U64_MAX, .survivability_mode = false,

drivers/gpu/drm/xe/xe_configfs.c +0 -0
@@ -357,6 +369,37 @@ static bool is_bound(struct
 xe_config_group_device *dev)
         return ret;
  }


+static ssize_t guc_log_target_show(struct config_item *item, char *page)

drivers/gpu/drm/xe/xe_configfs.c +7 -0
+{
+       struct xe_config_device *dev = to_xe_config_device(item);
+
+       return sprintf(page, "%d\n", dev->guc_log_target);
+}
+
+static ssize_t guc_log_target_store(struct config_item *item, const

char *page, size_t len)
+{
+       struct xe_config_group_device *dev =
to_xe_config_group_device(item);
+       u8 guc_log_target;
+       int ret;

drivers/gpu/drm/xe/xe_configfs.c +19 -0
+
+       ret = kstrtou8(page, 0, &guc_log_target);
+       if (ret)
+               return ret;
+
+#define GUC_LOG_TARGET_MAX     2
+       if (guc_log_target > GUC_LOG_TARGET_MAX)
+               return -EINVAL;
+#undef GUC_LOG_TARGET_MAX
+
+       guard(mutex)(&dev->lock);
+       if (is_bound(dev))
+               return -EBUSY;
+
+       dev->config.guc_log_target = guc_log_target;
+
+       return len;
+}
+

 static ssize_t survivability_mode_show(struct config_item *item, char *page)
 {
        struct xe_config_device *dev = to_xe_config_device(item);

drivers/gpu/drm/xe/xe_configfs.c +1 -0
@@ -814,6 +857,7 @@ CONFIGFS_ATTR(, ctx_restore_mid_bb);
  CONFIGFS_ATTR(, ctx_restore_post_bb);
  CONFIGFS_ATTR(, enable_psmi);
  CONFIGFS_ATTR(, engines_allowed);
+CONFIGFS_ATTR(, guc_log_target);
  CONFIGFS_ATTR(, gt_types_allowed);
  CONFIGFS_ATTR(, survivability_mode);

drivers/gpu/drm/xe/xe_configfs.c +1 -0
@@ -822,6 +866,7 @@ static struct configfs_attribute
 *xe_config_device_attrs[] = {
         &attr_ctx_restore_post_bb,
         &attr_enable_psmi,
         &attr_engines_allowed,
+       &attr_guc_log_target,
         &attr_gt_types_allowed,
         &attr_survivability_mode,

        NULL,

drivers/gpu/drm/xe/xe_configfs.c +0 -0
@@ -1094,6 +1139,7 @@ static void dump_custom_dev_config(struct
 pci_dev *pdev,
                                  dev->config.attr_); \
         } while (0)


+       PRI_CUSTOM_ATTR("%d", guc_log_target); PRI_CUSTOM_ATTR("%llx", gt_types_allowed); PRI_CUSTOM_ATTR("%llx", engines_allowed); PRI_CUSTOM_ATTR("%d", enable_psmi);

drivers/gpu/drm/xe/xe_configfs.c +0 -0
@@ -1146,6 +1192,20 @@ bool xe_configfs_get_survivability_mode(struct
 pci_dev *pdev)
         return mode;
  }

drivers/gpu/drm/xe/xe_configfs.c +3 -0
+u8 xe_configfs_get_guc_log_target(struct pci_dev *pdev)
+{
+       struct xe_config_group_device *dev =

find_xe_config_group_device(pdev);
+       u8 target;

drivers/gpu/drm/xe/xe_configfs.c +10 -0
+
+       if (!dev)
+               return device_defaults.guc_log_target;
+
+       target = dev->config.guc_log_target;
+       config_group_put(&dev->group);
+
+       return target;
+}
+

 static u64 get_gt_types_allowed(struct pci_dev *pdev) {
        struct xe_config_group_device *dev = find_xe_config_group_device(pdev);

drivers/gpu/drm/xe/xe_configfs.h +1 -0
index 07d62bf0c152..fb5cb7c57e75 100644
@@ -19,6 +19,7 @@ int xe_configfs_init(void);
  void xe_configfs_exit(void);
  void xe_configfs_check_device(struct pci_dev *pdev);
  bool xe_configfs_get_survivability_mode(struct pci_dev *pdev);
+u8 xe_configfs_get_guc_log_target(struct pci_dev *pdev);
  bool xe_configfs_primary_gt_allowed(struct pci_dev *pdev);
  bool xe_configfs_media_gt_allowed(struct pci_dev *pdev);
  u64 xe_configfs_get_engines_allowed(struct pci_dev *pdev);
@@ -38,6 +39,10 @@ static inline int xe_configfs_init(void) { return
 0; }
  static inline void xe_configfs_exit(void) { }
  static inline void xe_configfs_check_device(struct pci_dev *pdev) {
 }

 static inline bool xe_configfs_get_survivability_mode(struct pci_dev *pdev) { return false; }
+static inline u8 xe_configfs_get_guc_log_target(struct pci_dev *pdev)

drivers/gpu/drm/xe/xe_configfs.h +3 -0
+{
+       return XE_DEFAULT_GUC_LOG_TARGET;
+}

 static inline bool xe_configfs_primary_gt_allowed(struct pci_dev *pdev) { return true; }
 static inline bool xe_configfs_media_gt_allowed(struct pci_dev *pdev) { return true; }
 static inline u64 xe_configfs_get_engines_allowed(struct pci_dev *pdev) { return U64_MAX; }

drivers/gpu/drm/xe/xe_defaults.h +1 -0
index c8ae1d5f3d60..fbe670668a04 100644
@@ -12,6 +12,7 @@
  #else
  #define XE_DEFAULT_GUC_LOG_LEVEL               1
  #endif
+#define XE_DEFAULT_GUC_LOG_TARGET              0


 #define
XE_DEFAULT_PROBE_DISPLAY               IS_ENABLED(CONFIG_DRM_XE_DISPL AY)
 #define XE_DEFAULT_VRAM_BAR_SIZE               0

drivers/gpu/drm/xe/xe_guc.c +0 -0
index 54d2fc780127..d98d5d051f1b 100644
@@ -73,13 +73,18 @@ static u32 guc_bo_ggtt_addr(struct xe_guc *guc,


 static u32 guc_ctl_debug_flags(struct xe_guc *guc)
 {
+       struct pci_dev *pdev = to_pci_dev(guc_to_xe(guc)->drm.dev); u32 level = xe_guc_log_get_level(&guc->log);
        u32 flags = 0;

        if (!GUC_LOG_LEVEL_IS_VERBOSE(level))
                flags |= GUC_LOG_DISABLED;
        else
-               flags |= FIELD_PREP(GUC_LOG_VERBOSITY, GUC_LOG_LEVEL_TO_VERBOSITY(level));
+               flags |= FIELD_PREP(GUC_LOG_VERBOSITY,
+
GUC_LOG_LEVEL_TO_VERBOSITY(level));
+
+       flags |= FIELD_PREP(GUC_LOG_DESTINATION,
+                           xe_configfs_get_guc_log_target(pdev));
        return flags;
 }

#6 lore raw
Quoted 4 lines · Stuart

Quick ping here and also CC Daniele in case you have any feedback.

It would be great to get this merged so we aren't carrying this patch separately for debug purposes.

Another ping.. We are actively using this for debug and I'd really like to get this merged.

Also adding Fei in case you have any feedback here.

Thanks,
Stuart

Quoted 241 lines

Thanks,
Stuart

Quoted 235 lines · Stuart Summers

From: John Harrison <[email protected]>

GuC provides the ability to gather logs through a hardware interface
called NPK. For certain debugging scenarios this can be advantageous
over getting logs from memory (or in addition to).

Add a hook for this alternate debugging mode via a configfs. This translates into a parameter passed to GuC during load time.

v2: Convert to configfs from modparam (Matt)

---
 drivers/gpu/drm/xe/xe_configfs.c | 60
++++++++++++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_configfs.h |  5 +++
 drivers/gpu/drm/xe/xe_defaults.h |  1 +
 drivers/gpu/drm/xe/xe_guc.c      |  7 +++-

 4 files changed, 72 insertions(+), 1 deletion(-)
drivers/gpu/drm/xe/xe_configfs.c +7 -0
index 078dee985d24..e0c21328af75 100644
@@ -83,6 +83,16 @@
   *
   * This attribute can only be set before binding to the device.
   *
+ * GuC log target:
+ * -------------
+ *
+ * Set the destination for the GuC log. 0 - memory only (default),
+ * 1 - NPK only, 2 - memory + NPK.
+ *
+ *     # echo 2 >

/sys/kernel/config/xe/0000:03:00.0/guc_log_target
+ *
+ * This attribute can only be set before binding to the device.
+ *
  * Allowed GT types:
  * -----------------
  *

drivers/gpu/drm/xe/xe_configfs.c +0 -0
@@ -256,6 +266,7 @@ struct xe_config_group_device {
         struct config_group sriov;


        struct xe_config_device {
+               u8 guc_log_target;
                u64 gt_types_allowed;
                u64 engines_allowed;
                struct wa_bb
ctx_restore_post_bb[XE_ENGINE_CLASS_MAX];

drivers/gpu/drm/xe/xe_configfs.c +0 -0
@@ -277,6 +288,7 @@ struct xe_config_group_device {
  };


 static const struct xe_config_device device_defaults = { +       .guc_log_target = XE_DEFAULT_GUC_LOG_TARGET, .gt_types_allowed = U64_MAX, .engines_allowed = U64_MAX, .survivability_mode = false,

drivers/gpu/drm/xe/xe_configfs.c +0 -0
@@ -357,6 +369,37 @@ static bool is_bound(struct
 xe_config_group_device *dev)
         return ret;
  }


+static ssize_t guc_log_target_show(struct config_item *item, char *page)

drivers/gpu/drm/xe/xe_configfs.c +7 -0
+{
+       struct xe_config_device *dev = to_xe_config_device(item);
+
+       return sprintf(page, "%d\n", dev->guc_log_target);
+}
+
+static ssize_t guc_log_target_store(struct config_item *item,

const
char *page, size_t len)
+{
+       struct xe_config_group_device *dev =
to_xe_config_group_device(item);
+       u8 guc_log_target;
+       int ret;

drivers/gpu/drm/xe/xe_configfs.c +19 -0
+
+       ret = kstrtou8(page, 0, &guc_log_target);
+       if (ret)
+               return ret;
+
+#define GUC_LOG_TARGET_MAX     2
+       if (guc_log_target > GUC_LOG_TARGET_MAX)
+               return -EINVAL;
+#undef GUC_LOG_TARGET_MAX
+
+       guard(mutex)(&dev->lock);
+       if (is_bound(dev))
+               return -EBUSY;
+
+       dev->config.guc_log_target = guc_log_target;
+
+       return len;
+}
+

 static ssize_t survivability_mode_show(struct config_item *item, char *page)
 {
        struct xe_config_device *dev = to_xe_config_device(item);

drivers/gpu/drm/xe/xe_configfs.c +1 -0
@@ -814,6 +857,7 @@ CONFIGFS_ATTR(, ctx_restore_mid_bb);
  CONFIGFS_ATTR(, ctx_restore_post_bb);
  CONFIGFS_ATTR(, enable_psmi);
  CONFIGFS_ATTR(, engines_allowed);
+CONFIGFS_ATTR(, guc_log_target);
  CONFIGFS_ATTR(, gt_types_allowed);
  CONFIGFS_ATTR(, survivability_mode);

drivers/gpu/drm/xe/xe_configfs.c +1 -0
@@ -822,6 +866,7 @@ static struct configfs_attribute
 *xe_config_device_attrs[] = {
         &attr_ctx_restore_post_bb,
         &attr_enable_psmi,
         &attr_engines_allowed,
+       &attr_guc_log_target,
         &attr_gt_types_allowed,
         &attr_survivability_mode,

        NULL,

drivers/gpu/drm/xe/xe_configfs.c +0 -0
@@ -1094,6 +1139,7 @@ static void dump_custom_dev_config(struct
 pci_dev *pdev,
                                  dev->config.attr_); \
         } while (0)


+       PRI_CUSTOM_ATTR("%d", guc_log_target); PRI_CUSTOM_ATTR("%llx", gt_types_allowed); PRI_CUSTOM_ATTR("%llx", engines_allowed); PRI_CUSTOM_ATTR("%d", enable_psmi);

drivers/gpu/drm/xe/xe_configfs.c +0 -0
@@ -1146,6 +1192,20 @@ bool

xe_configfs_get_survivability_mode(struct
pci_dev *pdev)
        return mode;
 }

drivers/gpu/drm/xe/xe_configfs.c +3 -0
+u8 xe_configfs_get_guc_log_target(struct pci_dev *pdev)
+{
+       struct xe_config_group_device *dev =

find_xe_config_group_device(pdev);
+       u8 target;

drivers/gpu/drm/xe/xe_configfs.c +10 -0
+
+       if (!dev)
+               return device_defaults.guc_log_target;
+
+       target = dev->config.guc_log_target;
+       config_group_put(&dev->group);
+
+       return target;
+}
+

 static u64 get_gt_types_allowed(struct pci_dev *pdev) {
        struct xe_config_group_device *dev = find_xe_config_group_device(pdev);

drivers/gpu/drm/xe/xe_configfs.h +1 -0
index 07d62bf0c152..fb5cb7c57e75 100644
@@ -19,6 +19,7 @@ int xe_configfs_init(void);
  void xe_configfs_exit(void);
  void xe_configfs_check_device(struct pci_dev *pdev);
  bool xe_configfs_get_survivability_mode(struct pci_dev *pdev);
+u8 xe_configfs_get_guc_log_target(struct pci_dev *pdev);
  bool xe_configfs_primary_gt_allowed(struct pci_dev *pdev);
  bool xe_configfs_media_gt_allowed(struct pci_dev *pdev);
  u64 xe_configfs_get_engines_allowed(struct pci_dev *pdev);
@@ -38,6 +39,10 @@ static inline int xe_configfs_init(void) {

return
0; }
 static inline void xe_configfs_exit(void) { }
 static inline void xe_configfs_check_device(struct pci_dev *pdev) {
}
 static inline bool xe_configfs_get_survivability_mode(struct pci_dev
*pdev) { return false; }
+static inline u8 xe_configfs_get_guc_log_target(struct pci_dev *pdev)

drivers/gpu/drm/xe/xe_configfs.h +3 -0
+{
+       return XE_DEFAULT_GUC_LOG_TARGET;
+}

 static inline bool xe_configfs_primary_gt_allowed(struct pci_dev *pdev) { return true; }
 static inline bool xe_configfs_media_gt_allowed(struct pci_dev *pdev) { return true; }
 static inline u64 xe_configfs_get_engines_allowed(struct pci_dev *pdev) { return U64_MAX; }

drivers/gpu/drm/xe/xe_defaults.h +1 -0
index c8ae1d5f3d60..fbe670668a04 100644
@@ -12,6 +12,7 @@
  #else
  #define XE_DEFAULT_GUC_LOG_LEVEL               1
  #endif
+#define XE_DEFAULT_GUC_LOG_TARGET              0


 #define
XE_DEFAULT_PROBE_DISPLAY               IS_ENABLED(CONFIG_DRM_XE_DIS PL
AY)
 #define XE_DEFAULT_VRAM_BAR_SIZE               0

drivers/gpu/drm/xe/xe_guc.c +0 -0
index 54d2fc780127..d98d5d051f1b 100644
@@ -73,13 +73,18 @@ static u32 guc_bo_ggtt_addr(struct xe_guc *guc,


 static u32 guc_ctl_debug_flags(struct xe_guc *guc)
 {
+       struct pci_dev *pdev = to_pci_dev(guc_to_xe(guc)->drm.dev); u32 level = xe_guc_log_get_level(&guc->log);
        u32 flags = 0;

        if (!GUC_LOG_LEVEL_IS_VERBOSE(level))
                flags |= GUC_LOG_DISABLED;
        else
-               flags |= FIELD_PREP(GUC_LOG_VERBOSITY, GUC_LOG_LEVEL_TO_VERBOSITY(level));
+               flags |= FIELD_PREP(GUC_LOG_VERBOSITY,
+
GUC_LOG_LEVEL_TO_VERBOSITY(level));
+
+       flags |= FIELD_PREP(GUC_LOG_DESTINATION,
+                           xe_configfs_get_guc_log_target(pdev));
        return flags;
 }

#7 lore raw
In reply to Stuart Summers
Quoted 69 lines · Stuart Summers

From: John Harrison <[email protected]>

GuC provides the ability to gather logs through a hardware interface called NPK. For certain debugging scenarios this can be advantageous over getting logs from memory (or in addition to).

Add a hook for this alternate debugging mode via a configfs. This translates into a parameter passed to GuC during load time.

v2: Convert to configfs from modparam (Matt)

---
  drivers/gpu/drm/xe/xe_configfs.c | 60 ++++++++++++++++++++++++++++++++
  drivers/gpu/drm/xe/xe_configfs.h |  5 +++
  drivers/gpu/drm/xe/xe_defaults.h |  1 +
  drivers/gpu/drm/xe/xe_guc.c      |  7 +++-
  4 files changed, 72 insertions(+), 1 deletion(-)
drivers/gpu/drm/xe/xe_configfs.c +20 -0
index 078dee985d24..e0c21328af75 100644
@@ -83,6 +83,16 @@
   *
   * This attribute can only be set before binding to the device.
   *
+ * GuC log target:
+ * -------------
+ *
+ * Set the destination for the GuC log. 0 - memory only (default),
+ * 1 - NPK only, 2 - memory + NPK.
+ *
+ * 	# echo 2 > /sys/kernel/config/xe/0000:03:00.0/guc_log_target
+ *
+ * This attribute can only be set before binding to the device.
+ *
   * Allowed GT types:
   * -----------------
   *
@@ -256,6 +266,7 @@ struct xe_config_group_device {
  	struct config_group sriov;
 
  	struct xe_config_device {
+		u8 guc_log_target;
  		u64 gt_types_allowed;
  		u64 engines_allowed;
  		struct wa_bb ctx_restore_post_bb[XE_ENGINE_CLASS_MAX];
@@ -277,6 +288,7 @@ struct xe_config_group_device {
  };
 
  static const struct xe_config_device device_defaults = {
+	.guc_log_target = XE_DEFAULT_GUC_LOG_TARGET,
  	.gt_types_allowed = U64_MAX,
  	.engines_allowed = U64_MAX,
  	.survivability_mode = false,
@@ -357,6 +369,37 @@ static bool is_bound(struct xe_config_group_device *dev)
  	return ret;
  }
 
+static ssize_t guc_log_target_show(struct config_item *item, char *page)
+{
+	struct xe_config_device *dev = to_xe_config_device(item);
+
+	return sprintf(page, "%d\n", dev->guc_log_target);
+}
+
+static ssize_t guc_log_target_store(struct config_item *item, const char *page, size_t len)

drivers/gpu/drm/xe/xe_configfs.c static bool is_bound(struct xe_config_group_device *dev) · line 389

Quoted 10 lines
drivers/gpu/drm/xe/xe_configfs.c +10 -0
+{
+	struct xe_config_group_device *dev = to_xe_config_group_device(item);
+	u8 guc_log_target;
+	int ret;
+
+	ret = kstrtou8(page, 0, &guc_log_target);
+	if (ret)
+		return ret;
+
+#define GUC_LOG_TARGET_MAX	2

IMO better to define this with XE_DEFAULT_GUC_LOG_TARGET. Maybe also add a comment to explain that the modes are set directly by the user and therefore we don't need individual defines.

Quoted 17 lines
drivers/gpu/drm/xe/xe_configfs.c +13 -0
+	if (guc_log_target > GUC_LOG_TARGET_MAX)
+		return -EINVAL;
+#undef GUC_LOG_TARGET_MAX
+
+	guard(mutex)(&dev->lock);
+	if (is_bound(dev))
+		return -EBUSY;
+
+	dev->config.guc_log_target = guc_log_target;
+
+	return len;
+}
+
  static ssize_t survivability_mode_show(struct config_item *item, char *page)
  {
  	struct xe_config_device *dev = to_xe_config_device(item);

drivers/gpu/drm/xe/xe_configfs.c CONFIGFS_ATTR(, ctx_restore_mid_bb); · line 860

Quoted 4 lines
drivers/gpu/drm/xe/xe_configfs.c +1 -0
@@ -814,6 +857,7 @@ CONFIGFS_ATTR(, ctx_restore_mid_bb);
  CONFIGFS_ATTR(, ctx_restore_post_bb);
  CONFIGFS_ATTR(, enable_psmi);
  CONFIGFS_ATTR(, engines_allowed);
+CONFIGFS_ATTR(, guc_log_target);

This should go after gt_types if we want to keep the alphabetical order.

drivers/gpu/drm/xe/xe_configfs.c static struct configfs_attribute *xe_config_device_attrs[] = { · line 869

Quoted 8 lines
drivers/gpu/drm/xe/xe_configfs.c +1 -0
  CONFIGFS_ATTR(, gt_types_allowed);
  CONFIGFS_ATTR(, survivability_mode);
 
@@ -822,6 +866,7 @@ static struct configfs_attribute *xe_config_device_attrs[] = {
  	&attr_ctx_restore_post_bb,
  	&attr_enable_psmi,
  	&attr_engines_allowed,
+	&attr_guc_log_target,

here as well

Quoted 12 lines
drivers/gpu/drm/xe/xe_configfs.c +1 -0
  	&attr_gt_types_allowed,
  	&attr_survivability_mode,
  	NULL,
@@ -1094,6 +1139,7 @@ static void dump_custom_dev_config(struct pci_dev *pdev,
  				 dev->config.attr_); \
  	} while (0)
 
+	PRI_CUSTOM_ATTR("%d", guc_log_target);
  	PRI_CUSTOM_ATTR("%llx", gt_types_allowed);
  	PRI_CUSTOM_ATTR("%llx", engines_allowed);
  	PRI_CUSTOM_ATTR("%d", enable_psmi);

drivers/gpu/drm/xe/xe_configfs.c bool xe_configfs_get_survivability_mode(struct pci_dev *pdev) · line 1195

Quoted 4 lines
drivers/gpu/drm/xe/xe_configfs.c +1 -0
@@ -1146,6 +1192,20 @@ bool xe_configfs_get_survivability_mode(struct pci_dev *pdev)
  	return mode;
  }
 
+u8 xe_configfs_get_guc_log_target(struct pci_dev *pdev)

This function needs documentation

Quoted 62 lines
drivers/gpu/drm/xe/xe_configfs.c +13 -0
+{
+	struct xe_config_group_device *dev = find_xe_config_group_device(pdev);
+	u8 target;
+
+	if (!dev)
+		return device_defaults.guc_log_target;
+
+	target = dev->config.guc_log_target;
+	config_group_put(&dev->group);
+
+	return target;
+}
+
  static u64 get_gt_types_allowed(struct pci_dev *pdev)
  {
  	struct xe_config_group_device *dev = find_xe_config_group_device(pdev);
drivers/gpu/drm/xe/xe_configfs.h +5 -0
index 07d62bf0c152..fb5cb7c57e75 100644
@@ -19,6 +19,7 @@ int xe_configfs_init(void);
  void xe_configfs_exit(void);
  void xe_configfs_check_device(struct pci_dev *pdev);
  bool xe_configfs_get_survivability_mode(struct pci_dev *pdev);
+u8 xe_configfs_get_guc_log_target(struct pci_dev *pdev);
  bool xe_configfs_primary_gt_allowed(struct pci_dev *pdev);
  bool xe_configfs_media_gt_allowed(struct pci_dev *pdev);
  u64 xe_configfs_get_engines_allowed(struct pci_dev *pdev);
@@ -38,6 +39,10 @@ static inline int xe_configfs_init(void) { return 0; }
  static inline void xe_configfs_exit(void) { }
  static inline void xe_configfs_check_device(struct pci_dev *pdev) { }
  static inline bool xe_configfs_get_survivability_mode(struct pci_dev *pdev) { return false; }
+static inline u8 xe_configfs_get_guc_log_target(struct pci_dev *pdev)
+{
+	return XE_DEFAULT_GUC_LOG_TARGET;
+}
  static inline bool xe_configfs_primary_gt_allowed(struct pci_dev *pdev) { return true; }
  static inline bool xe_configfs_media_gt_allowed(struct pci_dev *pdev) { return true; }
  static inline u64 xe_configfs_get_engines_allowed(struct pci_dev *pdev) { return U64_MAX; }
drivers/gpu/drm/xe/xe_defaults.h +1 -0
index c8ae1d5f3d60..fbe670668a04 100644
@@ -12,6 +12,7 @@
  #else
  #define XE_DEFAULT_GUC_LOG_LEVEL		1
  #endif
+#define XE_DEFAULT_GUC_LOG_TARGET		0
 
  #define XE_DEFAULT_PROBE_DISPLAY		IS_ENABLED(CONFIG_DRM_XE_DISPLAY)
  #define XE_DEFAULT_VRAM_BAR_SIZE		0
drivers/gpu/drm/xe/xe_guc.c +1 -0
index 54d2fc780127..d98d5d051f1b 100644
@@ -73,13 +73,18 @@ static u32 guc_bo_ggtt_addr(struct xe_guc *guc,
 
  static u32 guc_ctl_debug_flags(struct xe_guc *guc)
  {
+	struct pci_dev *pdev = to_pci_dev(guc_to_xe(guc)->drm.dev);
  	u32 level = xe_guc_log_get_level(&guc->log);
  	u32 flags = 0;

drivers/gpu/drm/xe/xe_guc.c static u32 guc_bo_ggtt_addr(struct xe_guc *guc, · line 87

Quoted 10 lines
drivers/gpu/drm/xe/xe_guc.c +5 -1
 
  	if (!GUC_LOG_LEVEL_IS_VERBOSE(level))
  		flags |= GUC_LOG_DISABLED;
  	else
-		flags |= FIELD_PREP(GUC_LOG_VERBOSITY, GUC_LOG_LEVEL_TO_VERBOSITY(level));
+		flags |= FIELD_PREP(GUC_LOG_VERBOSITY,
+				    GUC_LOG_LEVEL_TO_VERBOSITY(level));
+
+	flags |= FIELD_PREP(GUC_LOG_DESTINATION,
+			    xe_configfs_get_guc_log_target(pdev));

nit: Should this be part of the else case above? the specs don't say that it is an error to set this with the logs disabled but it does seem weird to do so. not a blocker, so I'm ok it you want to keep it here.

Daniele

Quoted 3 lines
drivers/gpu/drm/xe/xe_guc.c +0 -0
  	return flags;
  }
Acked-by on v1 1/1
#11 lore raw
In reply to Stuart Summers
Quoted 6 lines · Stuart Summers

From: John Harrison <[email protected]>

GuC provides the ability to gather logs through a hardware interface called NPK. For certain debugging scenarios this can be advantageous over getting logs from memory (or in addition to).

Quoted 7 lines

Add a hook for this alternate debugging mode via a configfs. This translates into a parameter passed to GuC during load time.

v2: Convert to configfs from modparam (Matt)

Some nits below.
The code itself looks good to me. But I don't have NPK environment to verify it.

Quoted 13 lines
---
 drivers/gpu/drm/xe/xe_configfs.c | 60
++++++++++++++++++++++++++++++++  drivers/gpu/drm/xe/xe_configfs.h
|  5 +++  drivers/gpu/drm/xe/xe_defaults.h |  1 +
 drivers/gpu/drm/xe/xe_guc.c      |  7 +++-
 4 files changed, 72 insertions(+), 1 deletion(-)
drivers/gpu/drm/xe/xe_configfs.c +0 -0
index 078dee985d24..e0c21328af75 100644

drivers/gpu/drm/xe/xe_configfs.c line 87

Quoted 5 lines
drivers/gpu/drm/xe/xe_configfs.c +2 -0
@@ -83,6 +83,16 @@
  *
  * This attribute can only be set before binding to the device.
  *
+ * GuC log target:
+ * -------------

Nit: The underline must be at least as long as the header. So there should be 15 dashes (2 missed).

drivers/gpu/drm/xe/xe_configfs.c line 90

Quoted 3 lines
drivers/gpu/drm/xe/xe_configfs.c +3 -0
+ *
+ * Set the destination for the GuC log. 0 - memory only (default),
+ * 1 - NPK only, 2 - memory + NPK.

Nit: This line should end with "::" to introduce the code example. We could add " Example to enable it:: " as other cases.

drivers/gpu/drm/xe/xe_configfs.c line 92

Quoted 2 lines
drivers/gpu/drm/xe/xe_configfs.c +2 -0
+ *
+ * 	# echo 2 > /sys/kernel/config/xe/0000:03:00.0/guc_log_target

Nit: There is space + tab between "* #", and that space should be removed.

Shuicheng

Quoted 170 lines
drivers/gpu/drm/xe/xe_configfs.c +35 -0
+ *
+ * This attribute can only be set before binding to the device.
+ *
  * Allowed GT types:
  * -----------------
  *
@@ -256,6 +266,7 @@ struct xe_config_group_device {
 	struct config_group sriov;
 
 	struct xe_config_device {
+		u8 guc_log_target;
 		u64 gt_types_allowed;
 		u64 engines_allowed;
 		struct wa_bb ctx_restore_post_bb[XE_ENGINE_CLASS_MAX];
@@ -277,6 +288,7 @@ struct xe_config_group_device {  };
 
 static const struct xe_config_device device_defaults = {
+	.guc_log_target = XE_DEFAULT_GUC_LOG_TARGET,
 	.gt_types_allowed = U64_MAX,
 	.engines_allowed = U64_MAX,
 	.survivability_mode = false,
@@ -357,6 +369,37 @@ static bool is_bound(struct xe_config_group_device
 *dev)
 	return ret;
 }
 
+static ssize_t guc_log_target_show(struct config_item *item, char
+*page) {
+	struct xe_config_device *dev = to_xe_config_device(item);
+
+	return sprintf(page, "%d\n", dev->guc_log_target); }
+
+static ssize_t guc_log_target_store(struct config_item *item, const
+char *page, size_t len) {
+	struct xe_config_group_device *dev =
 to_xe_config_group_device(item);
+	u8 guc_log_target;
+	int ret;
+
+	ret = kstrtou8(page, 0, &guc_log_target);
+	if (ret)
+		return ret;
+
+#define GUC_LOG_TARGET_MAX	2
+	if (guc_log_target > GUC_LOG_TARGET_MAX)
+		return -EINVAL;
+#undef GUC_LOG_TARGET_MAX
+
+	guard(mutex)(&dev->lock);
+	if (is_bound(dev))
+		return -EBUSY;
+
+	dev->config.guc_log_target = guc_log_target;
+
+	return len;
+}
+
 static ssize_t survivability_mode_show(struct config_item *item, char *page)

{
struct xe_config_device *dev = to_xe_config_device(item); @@ -814,6
+857,7 @@ CONFIGFS_ATTR(, ctx_restore_mid_bb); CONFIGFS_ATTR(, ctx_restore_post_bb); CONFIGFS_ATTR(, enable_psmi); CONFIGFS_ATTR(, engines_allowed);

drivers/gpu/drm/xe/xe_configfs.c +2 -0
+CONFIGFS_ATTR(, guc_log_target);
 CONFIGFS_ATTR(, gt_types_allowed);
 CONFIGFS_ATTR(, survivability_mode);
@@ -822,6 +866,7 @@ static struct configfs_attribute
 *xe_config_device_attrs[] = {
 	&attr_ctx_restore_post_bb,
 	&attr_enable_psmi,
 	&attr_engines_allowed,
+	&attr_guc_log_target,
 	&attr_gt_types_allowed,
 	&attr_survivability_mode,
drivers/gpu/drm/xe/xe_configfs.c +1 -0
 	NULL,
@@ -1094,6 +1139,7 @@ static void dump_custom_dev_config(struct
 pci_dev *pdev,
 				 dev->config.attr_); \
 	} while (0)
 
+	PRI_CUSTOM_ATTR("%d", guc_log_target);
 	PRI_CUSTOM_ATTR("%llx", gt_types_allowed);
 	PRI_CUSTOM_ATTR("%llx", engines_allowed);
drivers/gpu/drm/xe/xe_configfs.c +13 -0
 	PRI_CUSTOM_ATTR("%d", enable_psmi);
@@ -1146,6 +1192,20 @@ bool xe_configfs_get_survivability_mode(struct
 pci_dev *pdev)
 	return mode;
 }
 
+u8 xe_configfs_get_guc_log_target(struct pci_dev *pdev) {
+	struct xe_config_group_device *dev =
 find_xe_config_group_device(pdev);
+	u8 target;
+
+	if (!dev)
+		return device_defaults.guc_log_target;
+
+	target = dev->config.guc_log_target;
+	config_group_put(&dev->group);
+
+	return target;
+}
+
 static u64 get_gt_types_allowed(struct pci_dev *pdev)  {
 	struct xe_config_group_device *dev =

find_xe_config_group_device(pdev);

drivers/gpu/drm/xe/xe_configfs.h +0 -0
index 07d62bf0c152..fb5cb7c57e75 100644
@@ -19,6 +19,7 @@ int xe_configfs_init(void);  void xe_configfs_exit(void);

void xe_configfs_check_device(struct pci_dev *pdev); bool xe_configfs_get_survivability_mode(struct pci_dev *pdev);
+u8 xe_configfs_get_guc_log_target(struct pci_dev *pdev);
bool xe_configfs_primary_gt_allowed(struct pci_dev *pdev); bool
xe_configfs_media_gt_allowed(struct pci_dev *pdev);
u64 xe_configfs_get_engines_allowed(struct pci_dev *pdev); @@ -38,6
+39,10 @@ static inline int xe_configfs_init(void) { return 0; } static inline void xe_configfs_exit(void) { } static inline void xe_configfs_check_device(struct pci_dev *pdev) { } static inline bool xe_configfs_get_survivability_mode(struct pci_dev *pdev) { return false; }

drivers/gpu/drm/xe/xe_configfs.h +3 -0
+static inline u8 xe_configfs_get_guc_log_target(struct pci_dev *pdev) {
+	return XE_DEFAULT_GUC_LOG_TARGET;
+}
 static inline bool xe_configfs_primary_gt_allowed(struct pci_dev *pdev)

{ return true; } static inline bool xe_configfs_media_gt_allowed(struct pci_dev *pdev) { return true; } static inline u64 xe_configfs_get_engines_allowed(struct pci_dev *pdev) { return U64_MAX; }

drivers/gpu/drm/xe/xe_defaults.h +1 -0
index c8ae1d5f3d60..fbe670668a04 100644
@@ -12,6 +12,7 @@
 #else
 #define XE_DEFAULT_GUC_LOG_LEVEL		1
 #endif
+#define XE_DEFAULT_GUC_LOG_TARGET		0
 
 #define XE_DEFAULT_PROBE_DISPLAY
 	IS_ENABLED(CONFIG_DRM_XE_DISPLAY)

#define XE_DEFAULT_VRAM_BAR_SIZE 0

drivers/gpu/drm/xe/xe_guc.c index renamed from drivers/gpu/drm/xe/xe_guc.c +0 -0

54d2fc780127..d98d5d051f1b 100644

drivers/gpu/drm/xe/xe_guc.c +6 -2
@@ -73,13 +73,18 @@ static u32 guc_bo_ggtt_addr(struct xe_guc *guc,
 
 static u32 guc_ctl_debug_flags(struct xe_guc *guc)  {
+	struct pci_dev *pdev = to_pci_dev(guc_to_xe(guc)->drm.dev);
 	u32 level = xe_guc_log_get_level(&guc->log);
 	u32 flags = 0;
 
 	if (!GUC_LOG_LEVEL_IS_VERBOSE(level))
 		flags |= GUC_LOG_DISABLED;
 	else
-		flags |= FIELD_PREP(GUC_LOG_VERBOSITY,
 GUC_LOG_LEVEL_TO_VERBOSITY(level));
+		flags |= FIELD_PREP(GUC_LOG_VERBOSITY,
+				    GUC_LOG_LEVEL_TO_VERBOSITY(level));
+
+	flags |= FIELD_PREP(GUC_LOG_DESTINATION,
+			    xe_configfs_get_guc_log_target(pdev));
 
 	return flags;
 }
--

2.34.1

#8 lore raw
In reply to Daniele Ceraolo Spurio
Quoted 89 lines · Daniele Ceraolo Spurio
Quoted 86 lines · Stuart Summers

From: John Harrison <[email protected]>

GuC provides the ability to gather logs through a hardware interface
called NPK. For certain debugging scenarios this can be advantageous
over getting logs from memory (or in addition to).

Add a hook for this alternate debugging mode via a configfs. This translates into a parameter passed to GuC during load time.

v2: Convert to configfs from modparam (Matt)

---
  drivers/gpu/drm/xe/xe_configfs.c | 60
++++++++++++++++++++++++++++++++
  drivers/gpu/drm/xe/xe_configfs.h |  5 +++
  drivers/gpu/drm/xe/xe_defaults.h |  1 +
  drivers/gpu/drm/xe/xe_guc.c      |  7 +++-

  4 files changed, 72 insertions(+), 1 deletion(-)
drivers/gpu/drm/xe/xe_configfs.c +7 -0
index 078dee985d24..e0c21328af75 100644
@@ -83,6 +83,16 @@
    *
    * This attribute can only be set before binding to the device.
    *
+ * GuC log target:
+ * -------------
+ *
+ * Set the destination for the GuC log. 0 - memory only (default),
+ * 1 - NPK only, 2 - memory + NPK.
+ *
+ *     # echo 2 >

/sys/kernel/config/xe/0000:03:00.0/guc_log_target
+ *
+ * This attribute can only be set before binding to the device.
+ *
   * Allowed GT types:
   * -----------------
   *

drivers/gpu/drm/xe/xe_configfs.c +0 -0
@@ -256,6 +266,7 @@ struct xe_config_group_device {
         struct config_group sriov;


        struct xe_config_device {
+               u8 guc_log_target;
                u64 gt_types_allowed;
                u64 engines_allowed;
                struct wa_bb
ctx_restore_post_bb[XE_ENGINE_CLASS_MAX];

drivers/gpu/drm/xe/xe_configfs.c +0 -0
@@ -277,6 +288,7 @@ struct xe_config_group_device {
   };


  static const struct xe_config_device device_defaults = { +       .guc_log_target = XE_DEFAULT_GUC_LOG_TARGET, .gt_types_allowed = U64_MAX, .engines_allowed = U64_MAX, .survivability_mode = false,

drivers/gpu/drm/xe/xe_configfs.c +0 -0
@@ -357,6 +369,37 @@ static bool is_bound(struct
 xe_config_group_device *dev)
         return ret;
   }


+static ssize_t guc_log_target_show(struct config_item *item, char *page)

drivers/gpu/drm/xe/xe_configfs.c +7 -0
+{
+       struct xe_config_device *dev = to_xe_config_device(item);
+
+       return sprintf(page, "%d\n", dev->guc_log_target);
+}
+
+static ssize_t guc_log_target_store(struct config_item *item,

const char *page, size_t len)
+{
+       struct xe_config_group_device *dev =
to_xe_config_group_device(item);
+       u8 guc_log_target;
+       int ret;
+
+       ret = kstrtou8(page, 0, &guc_log_target);
+       if (ret)

Quoted 8 lines

drivers/gpu/drm/xe/xe_configfs.c

Quoted 3 lines

+               return ret;

drivers/gpu/drm/xe/xe_configfs.c +2 -0
+
+#define GUC_LOG_TARGET_MAX     2

IMO better to define this with XE_DEFAULT_GUC_LOG_TARGET. Maybe also add
a comment to explain that the modes are set directly by the user and therefore we don't need individual defines.

Hm.. it feels weird to add the max define in the defaults header which is one reason I kept that here. I could put both of them in xe_configfs.h or xe_guc_log_types.h?

Comment you suggested makes sense. I'll add that in the next rev.

Quoted 18 lines
Quoted 18 lines

+       if (guc_log_target > GUC_LOG_TARGET_MAX)
+               return -EINVAL;

drivers/gpu/drm/xe/xe_configfs.c +11 -0
+#undef GUC_LOG_TARGET_MAX
+
+       guard(mutex)(&dev->lock);
+       if (is_bound(dev))
+               return -EBUSY;
+
+       dev->config.guc_log_target = guc_log_target;
+
+       return len;
+}
+

  static ssize_t survivability_mode_show(struct config_item *item, char *page)
  {
        struct xe_config_device *dev = to_xe_config_device(item);

Quoted 8 lines

drivers/gpu/drm/xe/xe_configfs.c CONFIGFS_ATTR(, ctx_restore_mid_bb); · line 860

Quoted 5 lines
drivers/gpu/drm/xe/xe_configfs.c +1 -0
@@ -814,6 +857,7 @@ CONFIGFS_ATTR(, ctx_restore_mid_bb);
   CONFIGFS_ATTR(, ctx_restore_post_bb);
   CONFIGFS_ATTR(, enable_psmi);
   CONFIGFS_ATTR(, engines_allowed);
+CONFIGFS_ATTR(, guc_log_target);

This should go after gt_types if we want to keep the alphabetical order.

Makes sense.

Quoted 25 lines

drivers/gpu/drm/xe/xe_configfs.c static struct configfs_attribute · line 870

Quoted 10 lines
drivers/gpu/drm/xe/xe_configfs.c +0 -0
   CONFIGFS_ATTR(, gt_types_allowed);
   CONFIGFS_ATTR(, survivability_mode);

drivers/gpu/drm/xe/xe_configfs.c +1 -0
@@ -822,6 +866,7 @@ static struct configfs_attribute
 *xe_config_device_attrs[] = {
         &attr_ctx_restore_post_bb,
         &attr_enable_psmi,
         &attr_engines_allowed,
+       &attr_guc_log_target,

here as well

Quoted 12 lines
drivers/gpu/drm/xe/xe_configfs.c +0 -0
         &attr_gt_types_allowed,
         &attr_survivability_mode,

        NULL,

drivers/gpu/drm/xe/xe_configfs.c +0 -0
@@ -1094,6 +1139,7 @@ static void dump_custom_dev_config(struct
 pci_dev *pdev,
                                  dev->config.attr_); \
         } while (0)


+       PRI_CUSTOM_ATTR("%d", guc_log_target); PRI_CUSTOM_ATTR("%llx", gt_types_allowed); PRI_CUSTOM_ATTR("%llx", engines_allowed); PRI_CUSTOM_ATTR("%d", enable_psmi);

Quoted 8 lines
Quoted 6 lines
drivers/gpu/drm/xe/xe_configfs.c +0 -0
@@ -1146,6 +1192,20 @@ bool
 xe_configfs_get_survivability_mode(struct pci_dev *pdev)
         return mode;
   }


+u8 xe_configfs_get_guc_log_target(struct pci_dev *pdev)

This function needs documentation

Ok.

Quoted 86 lines
Quoted 86 lines

+{
+       struct xe_config_group_device *dev =
find_xe_config_group_device(pdev);
+       u8 target;

drivers/gpu/drm/xe/xe_configfs.c +10 -0
+
+       if (!dev)
+               return device_defaults.guc_log_target;
+
+       target = dev->config.guc_log_target;
+       config_group_put(&dev->group);
+
+       return target;
+}
+

  static u64 get_gt_types_allowed(struct pci_dev *pdev) {
        struct xe_config_group_device *dev = find_xe_config_group_device(pdev);

drivers/gpu/drm/xe/xe_configfs.h +1 -0
index 07d62bf0c152..fb5cb7c57e75 100644
@@ -19,6 +19,7 @@ int xe_configfs_init(void);
   void xe_configfs_exit(void);
   void xe_configfs_check_device(struct pci_dev *pdev);
   bool xe_configfs_get_survivability_mode(struct pci_dev *pdev);
+u8 xe_configfs_get_guc_log_target(struct pci_dev *pdev);
   bool xe_configfs_primary_gt_allowed(struct pci_dev *pdev);
   bool xe_configfs_media_gt_allowed(struct pci_dev *pdev);
   u64 xe_configfs_get_engines_allowed(struct pci_dev *pdev);
@@ -38,6 +39,10 @@ static inline int xe_configfs_init(void) {
 return 0; }
   static inline void xe_configfs_exit(void) { }
   static inline void xe_configfs_check_device(struct pci_dev *pdev)
 { }

  static inline bool xe_configfs_get_survivability_mode(struct pci_dev *pdev) { return false; }
+static inline u8 xe_configfs_get_guc_log_target(struct pci_dev *pdev)

drivers/gpu/drm/xe/xe_configfs.h +3 -0
+{
+       return XE_DEFAULT_GUC_LOG_TARGET;
+}

  static inline bool xe_configfs_primary_gt_allowed(struct pci_dev *pdev) { return true; }
  static inline bool xe_configfs_media_gt_allowed(struct pci_dev *pdev) { return true; }
  static inline u64 xe_configfs_get_engines_allowed(struct pci_dev *pdev) { return U64_MAX; }

drivers/gpu/drm/xe/xe_defaults.h +1 -0
index c8ae1d5f3d60..fbe670668a04 100644
@@ -12,6 +12,7 @@
   #else
   #define XE_DEFAULT_GUC_LOG_LEVEL              1
   #endif
+#define XE_DEFAULT_GUC_LOG_TARGET              0


  #define
XE_DEFAULT_PROBE_DISPLAY              IS_ENABLED(CONFIG_DRM_XE_DISP LAY)
  #define XE_DEFAULT_VRAM_BAR_SIZE              0

drivers/gpu/drm/xe/xe_guc.c +0 -0
index 54d2fc780127..d98d5d051f1b 100644
@@ -73,13 +73,18 @@ static u32 guc_bo_ggtt_addr(struct xe_guc *guc,


  static u32 guc_ctl_debug_flags(struct xe_guc *guc)
  {
+       struct pci_dev *pdev = to_pci_dev(guc_to_xe(guc)->drm.dev); u32 level = xe_guc_log_get_level(&guc->log);
        u32 flags = 0;

        if (!GUC_LOG_LEVEL_IS_VERBOSE(level))
                flags |= GUC_LOG_DISABLED;
        else
-               flags |= FIELD_PREP(GUC_LOG_VERBOSITY, GUC_LOG_LEVEL_TO_VERBOSITY(level));
+               flags |= FIELD_PREP(GUC_LOG_VERBOSITY,
+
GUC_LOG_LEVEL_TO_VERBOSITY(level));

Quoted 8 lines
Quoted 3 lines

+
+       flags |= FIELD_PREP(GUC_LOG_DESTINATION,
+                           xe_configfs_get_guc_log_target(pdev));

nit: Should this be part of the else case above? the specs don't say that it is an error to set this with the logs disabled but it does seem
weird to do so. not a blocker, so I'm ok it you want to keep it here.

Yeah makes sense to me and I agree with your reasoning. I'll make the change and repost.

Thanks!
Stuart

Quoted 7 lines

Daniele

Quoted 3 lines


        return flags;
  }

#12 lore raw
In reply to Lin, Shuicheng
Quoted 15 lines · Shuicheng
Quoted 14 lines · Stuart Summers

From: John Harrison <[email protected]>

GuC provides the ability to gather logs through a hardware interface called
NPK. For certain debugging scenarios this can be advantageous over getting
logs from memory (or in addition to).

Add a hook for this alternate debugging mode via a configfs. This translates
into a parameter passed to GuC during load time.

v2: Convert to configfs from modparam (Matt)

Quoted 7 lines
Quoted 2 lines

Some nits below.
The code itself looks good to me. But I don't have NPK environment to verify it.

Thanks Shuicheng! I'll make your suggested changes in the next rev.

-Stuart

Quoted 228 lines
Quoted 14 lines

---
 drivers/gpu/drm/xe/xe_configfs.c | 60 ++++++++++++++++++++++++++++++++  drivers/gpu/drm/xe/xe_configfs.h

Quoted 1 line

 5 +++  drivers/gpu/drm/xe/xe_defaults.h |  1 +

 drivers/gpu/drm/xe/xe_guc.c      |  7 +++-

 4 files changed, 72 insertions(+), 1 deletion(-)
drivers/gpu/drm/xe/xe_configfs.c +0 -0
index 078dee985d24..e0c21328af75 100644

drivers/gpu/drm/xe/xe_configfs.c line 87

Quoted 5 lines
drivers/gpu/drm/xe/xe_configfs.c +2 -0
@@ -83,6 +83,16 @@
   *
   * This attribute can only be set before binding to the device.
   *
+ * GuC log target:
+ * -------------

Nit: The underline must be at least as long as the header. So there should be 15 dashes (2 missed).

drivers/gpu/drm/xe/xe_configfs.c line 90

Quoted 3 lines
drivers/gpu/drm/xe/xe_configfs.c +3 -0
+ *
+ * Set the destination for the GuC log. 0 - memory only (default),
+ * 1 - NPK only, 2 - memory + NPK.

Nit: This line should end with "::" to introduce the code example. We could add " Example to enable it:: " as other cases.

Quoted 3 lines
drivers/gpu/drm/xe/xe_configfs.c +2 -0
+ *
+ *     # echo 2 >

/sys/kernel/config/xe/0000:03:00.0/guc_log_target

Nit: There is space + tab between "*    #", and that space should be removed.

Shuicheng

Quoted 188 lines

+ *
+ * This attribute can only be set before binding to the device.
+ *
  * Allowed GT types:
  * -----------------
  *

drivers/gpu/drm/xe/xe_configfs.c +1 -0
@@ -256,6 +266,7 @@ struct xe_config_group_device {
         struct config_group sriov;
 
         struct xe_config_device {
+               u8 guc_log_target;
                 u64 gt_types_allowed;
                 u64 engines_allowed;

                struct wa_bb
ctx_restore_post_bb[XE_ENGINE_CLASS_MAX];

drivers/gpu/drm/xe/xe_configfs.c +1 -0
@@ -277,6 +288,7 @@ struct xe_config_group_device {  };
 
  static const struct xe_config_device device_defaults = {
+       .guc_log_target = XE_DEFAULT_GUC_LOG_TARGET,
         .gt_types_allowed = U64_MAX,
         .engines_allowed = U64_MAX,
         .survivability_mode = false,
@@ -357,6 +369,37 @@ static bool is_bound(struct

xe_config_group_device
*dev)
        return ret;
 }

drivers/gpu/drm/xe/xe_configfs.c +7 -0
+static ssize_t guc_log_target_show(struct config_item *item, char
+*page) {
+       struct xe_config_device *dev = to_xe_config_device(item);
+
+       return sprintf(page, "%d\n", dev->guc_log_target); }
+
+static ssize_t guc_log_target_store(struct config_item *item,

const
+char *page, size_t len) {
+       struct xe_config_group_device *dev =
to_xe_config_group_device(item);
+       u8 guc_log_target;
+       int ret;

drivers/gpu/drm/xe/xe_configfs.c +19 -0
+
+       ret = kstrtou8(page, 0, &guc_log_target);
+       if (ret)
+               return ret;
+
+#define GUC_LOG_TARGET_MAX     2
+       if (guc_log_target > GUC_LOG_TARGET_MAX)
+               return -EINVAL;
+#undef GUC_LOG_TARGET_MAX
+
+       guard(mutex)(&dev->lock);
+       if (is_bound(dev))
+               return -EBUSY;
+
+       dev->config.guc_log_target = guc_log_target;
+
+       return len;
+}
+

 static ssize_t survivability_mode_show(struct config_item *item, char *page)
{
        struct xe_config_device *dev = to_xe_config_device(item); @@ -814,6
+857,7 @@ CONFIGFS_ATTR(, ctx_restore_mid_bb);  CONFIGFS_ATTR(, ctx_restore_post_bb);  CONFIGFS_ATTR(, enable_psmi); CONFIGFS_ATTR(,
engines_allowed);
+CONFIGFS_ATTR(, guc_log_target);
 CONFIGFS_ATTR(, gt_types_allowed);
 CONFIGFS_ATTR(, survivability_mode);

drivers/gpu/drm/xe/xe_configfs.c +1 -0
@@ -822,6 +866,7 @@ static struct configfs_attribute
 *xe_config_device_attrs[] = {
         &attr_ctx_restore_post_bb,
         &attr_enable_psmi,
         &attr_engines_allowed,
+       &attr_guc_log_target,
         &attr_gt_types_allowed,
         &attr_survivability_mode,

        NULL,

drivers/gpu/drm/xe/xe_configfs.c +1 -0
@@ -1094,6 +1139,7 @@ static void dump_custom_dev_config(struct
 pci_dev *pdev,
                                  dev->config.attr_); \
         } while (0)
 
+       PRI_CUSTOM_ATTR("%d", guc_log_target);
         PRI_CUSTOM_ATTR("%llx", gt_types_allowed);
         PRI_CUSTOM_ATTR("%llx", engines_allowed);

        PRI_CUSTOM_ATTR("%d", enable_psmi);

drivers/gpu/drm/xe/xe_configfs.c +0 -0
@@ -1146,6 +1192,20 @@ bool

xe_configfs_get_survivability_mode(struct
pci_dev *pdev)
        return mode;
 }

+u8 xe_configfs_get_guc_log_target(struct pci_dev *pdev) { +       struct xe_config_group_device *dev = find_xe_config_group_device(pdev);
+       u8 target;

drivers/gpu/drm/xe/xe_configfs.c +10 -0
+
+       if (!dev)
+               return device_defaults.guc_log_target;
+
+       target = dev->config.guc_log_target;
+       config_group_put(&dev->group);
+
+       return target;
+}
+

 static u64 get_gt_types_allowed(struct pci_dev *pdev)  { struct xe_config_group_device *dev = find_xe_config_group_device(pdev);

drivers/gpu/drm/xe/xe_configfs.h +0 -0
index 07d62bf0c152..fb5cb7c57e75 100644
@@ -19,6 +19,7 @@ int xe_configfs_init(void);  void
 xe_configfs_exit(void);

void xe_configfs_check_device(struct pci_dev *pdev);  bool xe_configfs_get_survivability_mode(struct pci_dev *pdev); +u8 xe_configfs_get_guc_log_target(struct pci_dev *pdev); bool xe_configfs_primary_gt_allowed(struct pci_dev *pdev);  bool xe_configfs_media_gt_allowed(struct pci_dev *pdev);
 u64 xe_configfs_get_engines_allowed(struct pci_dev *pdev); @@ - 38,6
+39,10 @@ static inline int xe_configfs_init(void) { return 0; } static inline void
xe_configfs_exit(void) { }  static inline void xe_configfs_check_device(struct
pci_dev *pdev) { }  static inline bool xe_configfs_get_survivability_mode(struct
pci_dev *pdev) { return false; }
+static inline u8 xe_configfs_get_guc_log_target(struct pci_dev *pdev) {
+       return XE_DEFAULT_GUC_LOG_TARGET;
+}
 static inline bool xe_configfs_primary_gt_allowed(struct pci_dev *pdev)
{ return true; }  static inline bool xe_configfs_media_gt_allowed(struct pci_dev
*pdev) { return true; }  static inline u64 xe_configfs_get_engines_allowed(struct pci_dev *pdev) { return U64_MAX; }

drivers/gpu/drm/xe/xe_defaults.h +1 -0
index c8ae1d5f3d60..fbe670668a04 100644
@@ -12,6 +12,7 @@
  #else
  #define XE_DEFAULT_GUC_LOG_LEVEL               1
  #endif
+#define XE_DEFAULT_GUC_LOG_TARGET              0
 
  #define XE_DEFAULT_PROBE_DISPLAY
         IS_ENABLED(CONFIG_DRM_XE_DISPLAY)

 #define XE_DEFAULT_VRAM_BAR_SIZE               0

(quoted diff) +0 -0

b/drivers/gpu/drm/xe/xe_guc.c index
54d2fc780127..d98d5d051f1b 100644

drivers/gpu/drm/xe/xe_guc.c +1 -0
@@ -73,13 +73,18 @@ static u32 guc_bo_ggtt_addr(struct xe_guc *guc,
 
  static u32 guc_ctl_debug_flags(struct xe_guc *guc)  {
+       struct pci_dev *pdev = to_pci_dev(guc_to_xe(guc)->drm.dev);
         u32 level = xe_guc_log_get_level(&guc->log);
         u32 flags = 0;
 
         if (!GUC_LOG_LEVEL_IS_VERBOSE(level))
                 flags |= GUC_LOG_DISABLED;

        else
-               flags |= FIELD_PREP(GUC_LOG_VERBOSITY, GUC_LOG_LEVEL_TO_VERBOSITY(level));
+               flags |= FIELD_PREP(GUC_LOG_VERBOSITY, +
GUC_LOG_LEVEL_TO_VERBOSITY(level));
+
+       flags |= FIELD_PREP(GUC_LOG_DESTINATION,
+                           xe_configfs_get_guc_log_target(pdev));

        return flags;
 }
--
2.34.1

#9 lore raw
In reply to Summers, Stuart
Quoted 96 lines · Stuart
Quoted 87 lines · Daniele Ceraolo Spurio
Quoted 85 lines · Stuart Summers

From: John Harrison <[email protected]>

GuC provides the ability to gather logs through a hardware interface
called NPK. For certain debugging scenarios this can be advantageous
over getting logs from memory (or in addition to).

Add a hook for this alternate debugging mode via a configfs. This translates into a parameter passed to GuC during load time.

v2: Convert to configfs from modparam (Matt)

---
   drivers/gpu/drm/xe/xe_configfs.c | 60
++++++++++++++++++++++++++++++++
   drivers/gpu/drm/xe/xe_configfs.h |  5 +++
   drivers/gpu/drm/xe/xe_defaults.h |  1 +
   drivers/gpu/drm/xe/xe_guc.c      |  7 +++-
   4 files changed, 72 insertions(+), 1 deletion(-)
drivers/gpu/drm/xe/xe_configfs.c +7 -0
index 078dee985d24..e0c21328af75 100644
@@ -83,6 +83,16 @@
    *
    * This attribute can only be set before binding to the device.
    *
+ * GuC log target:
+ * -------------
+ *
+ * Set the destination for the GuC log. 0 - memory only (default),
+ * 1 - NPK only, 2 - memory + NPK.
+ *
+ *     # echo 2 >

/sys/kernel/config/xe/0000:03:00.0/guc_log_target
+ *
+ * This attribute can only be set before binding to the device.
+ *
   * Allowed GT types:
   * -----------------
   *

drivers/gpu/drm/xe/xe_configfs.c +1 -0
@@ -256,6 +266,7 @@ struct xe_config_group_device {
         struct config_group sriov;
 
         struct xe_config_device {
+               u8 guc_log_target;
                 u64 gt_types_allowed;
                 u64 engines_allowed;
                 struct wa_bb

ctx_restore_post_bb[XE_ENGINE_CLASS_MAX];

drivers/gpu/drm/xe/xe_configfs.c +11 -0
@@ -277,6 +288,7 @@ struct xe_config_group_device {
   };
 
   static const struct xe_config_device device_defaults = {
+       .guc_log_target = XE_DEFAULT_GUC_LOG_TARGET,
         .gt_types_allowed = U64_MAX,
         .engines_allowed = U64_MAX,
         .survivability_mode = false,
@@ -357,6 +369,37 @@ static bool is_bound(struct
 xe_config_group_device *dev)
         return ret;
   }
 
+static ssize_t guc_log_target_show(struct config_item *item, char
 *page)
+{
+       struct xe_config_device *dev = to_xe_config_device(item);
+
+       return sprintf(page, "%d\n", dev->guc_log_target);
+}
+
+static ssize_t guc_log_target_store(struct config_item *item,
 const char *page, size_t len)
+{
+       struct xe_config_group_device *dev =

to_xe_config_group_device(item);
+       u8 guc_log_target;
+       int ret;
+
+       ret = kstrtou8(page, 0, &guc_log_target);

Quoted 8 lines

drivers/gpu/drm/xe/xe_configfs.c

Quoted 4 lines

+       if (ret)
+               return ret;

drivers/gpu/drm/xe/xe_configfs.c +2 -0
+
+#define GUC_LOG_TARGET_MAX     2

IMO better to define this with XE_DEFAULT_GUC_LOG_TARGET. Maybe also add
a comment to explain that the modes are set directly by the user and therefore we don't need individual defines.

Quoted 3 lines

Hm.. it feels weird to add the max define in the defaults header which is one reason I kept that here. I could put both of them in xe_configfs.h or xe_guc_log_types.h?

Not sure why but I thought XE_DEFAULT_GUC_LOG_TARGET was in one of the GuC ABI files. We usually try to keep all the defines related to the GuC interface in one of the abi files (in this case it would be abi/guc_log_abi.h). Might be worth defining all 3 modes in that file and having something like:

in guc_log_abi.h:

enum guc_log_target {
    GUC_LOG_TARGET_MEM = 0,
    GUC_LOG_TARGET_NPK,
    GUC_LOG_TARGET_MEM_AND_NPK,
}

in the configfs files:

#define XE_DEFAULT_GUC_LOG_TARGET    GUC_LOG_TARGET_MEM #define GUC_LOG_TARGET_MAX    GUC_LOG_TARGET_MEM_AND_NPK

Although this might be overkill, so I won't block the current approach.

Daniele

Quoted 164 lines

Comment you suggested makes sense. I'll add that in the next rev.

Quoted 16 lines
Quoted 16 lines

+       if (guc_log_target > GUC_LOG_TARGET_MAX)
+               return -EINVAL;

drivers/gpu/drm/xe/xe_configfs.c +11 -0
+#undef GUC_LOG_TARGET_MAX
+
+       guard(mutex)(&dev->lock);
+       if (is_bound(dev))
+               return -EBUSY;
+
+       dev->config.guc_log_target = guc_log_target;
+
+       return len;
+}
+
   static ssize_t survivability_mode_show(struct config_item *item,

char *page)
  {

Quoted 8 lines

drivers/gpu/drm/xe/xe_configfs.c CONFIGFS_ATTR(, ctx_restore_mid_bb); · line 860

Quoted 6 lines

        struct xe_config_device *dev = to_xe_config_device(item);

drivers/gpu/drm/xe/xe_configfs.c +1 -0
@@ -814,6 +857,7 @@ CONFIGFS_ATTR(, ctx_restore_mid_bb);
   CONFIGFS_ATTR(, ctx_restore_post_bb);
   CONFIGFS_ATTR(, enable_psmi);
   CONFIGFS_ATTR(, engines_allowed);
+CONFIGFS_ATTR(, guc_log_target);

This should go after gt_types if we want to keep the alphabetical order.

Makes sense.

Quoted 28 lines

drivers/gpu/drm/xe/xe_configfs.c static struct configfs_attribute · line 870

Quoted 9 lines
drivers/gpu/drm/xe/xe_configfs.c +1 -0
   CONFIGFS_ATTR(, gt_types_allowed);
   CONFIGFS_ATTR(, survivability_mode);
 
@@ -822,6 +866,7 @@ static struct configfs_attribute
 *xe_config_device_attrs[] = {
         &attr_ctx_restore_post_bb,
         &attr_enable_psmi,
         &attr_engines_allowed,
+       &attr_guc_log_target,

here as well

Quoted 17 lines
drivers/gpu/drm/xe/xe_configfs.c +0 -0
         &attr_gt_types_allowed,
         &attr_survivability_mode,

        NULL,

drivers/gpu/drm/xe/xe_configfs.c +1 -0
@@ -1094,6 +1139,7 @@ static void dump_custom_dev_config(struct
 pci_dev *pdev,
                                  dev->config.attr_); \
         } while (0)
 
+       PRI_CUSTOM_ATTR("%d", guc_log_target);
         PRI_CUSTOM_ATTR("%llx", gt_types_allowed);
         PRI_CUSTOM_ATTR("%llx", engines_allowed);

        PRI_CUSTOM_ATTR("%d", enable_psmi);

drivers/gpu/drm/xe/xe_configfs.c +0 -0
@@ -1146,6 +1192,20 @@ bool
 xe_configfs_get_survivability_mode(struct pci_dev *pdev)
         return mode;
   }
 
Quoted 2 lines

drivers/gpu/drm/xe/xe_configfs.c bool xe_configfs_get_survivability_mode(struct pci_dev *pdev) · line 1195

Quoted 1 line
drivers/gpu/drm/xe/xe_configfs.c +1 -0
+u8 xe_configfs_get_guc_log_target(struct pci_dev *pdev)

This function needs documentation

Ok.

Quoted 77 lines
Quoted 77 lines
drivers/gpu/drm/xe/xe_configfs.c +13 -0
+{
+       struct xe_config_group_device *dev =
 find_xe_config_group_device(pdev);
+       u8 target;
+
+       if (!dev)
+               return device_defaults.guc_log_target;
+
+       target = dev->config.guc_log_target;
+       config_group_put(&dev->group);
+
+       return target;
+}
+
   static u64 get_gt_types_allowed(struct pci_dev *pdev)

  {
        struct xe_config_group_device *dev =
find_xe_config_group_device(pdev);

drivers/gpu/drm/xe/xe_configfs.h +2 -0
index 07d62bf0c152..fb5cb7c57e75 100644
@@ -19,6 +19,7 @@ int xe_configfs_init(void);
   void xe_configfs_exit(void);
   void xe_configfs_check_device(struct pci_dev *pdev);
   bool xe_configfs_get_survivability_mode(struct pci_dev *pdev);
+u8 xe_configfs_get_guc_log_target(struct pci_dev *pdev);
   bool xe_configfs_primary_gt_allowed(struct pci_dev *pdev);
   bool xe_configfs_media_gt_allowed(struct pci_dev *pdev);
   u64 xe_configfs_get_engines_allowed(struct pci_dev *pdev);
@@ -38,6 +39,10 @@ static inline int xe_configfs_init(void) {
 return 0; }
   static inline void xe_configfs_exit(void) { }
   static inline void xe_configfs_check_device(struct pci_dev *pdev)
 { }
   static inline bool xe_configfs_get_survivability_mode(struct
 pci_dev *pdev) { return false; }
+static inline u8 xe_configfs_get_guc_log_target(struct pci_dev

*pdev)

drivers/gpu/drm/xe/xe_configfs.h +3 -0
+{
+       return XE_DEFAULT_GUC_LOG_TARGET;
+}
   static inline bool xe_configfs_primary_gt_allowed(struct pci_dev

*pdev) { return true; }
  static inline bool xe_configfs_media_gt_allowed(struct pci_dev
*pdev) { return true; }
  static inline u64 xe_configfs_get_engines_allowed(struct pci_dev
*pdev) { return U64_MAX; }

drivers/gpu/drm/xe/xe_defaults.h +1 -0
index c8ae1d5f3d60..fbe670668a04 100644
@@ -12,6 +12,7 @@
   #else
   #define XE_DEFAULT_GUC_LOG_LEVEL              1
   #endif
+#define XE_DEFAULT_GUC_LOG_TARGET              0
 
   #define

XE_DEFAULT_PROBE_DISPLAY              IS_ENABLED(CONFIG_DRM_XE_DISP LAY)
  #define XE_DEFAULT_VRAM_BAR_SIZE              0

drivers/gpu/drm/xe/xe_guc.c +1 -0
index 54d2fc780127..d98d5d051f1b 100644
@@ -73,13 +73,18 @@ static u32 guc_bo_ggtt_addr(struct xe_guc *guc,
 
   static u32 guc_ctl_debug_flags(struct xe_guc *guc)
   {
+       struct pci_dev *pdev = to_pci_dev(guc_to_xe(guc)->drm.dev);
         u32 level = xe_guc_log_get_level(&guc->log);
         u32 flags = 0;
 
Quoted 15 lines

drivers/gpu/drm/xe/xe_guc.c static u32 guc_bo_ggtt_addr(struct xe_guc *guc, · line 87

Quoted 11 lines
drivers/gpu/drm/xe/xe_guc.c +5 -1
         if (!GUC_LOG_LEVEL_IS_VERBOSE(level))
                 flags |= GUC_LOG_DISABLED;
         else
-               flags |= FIELD_PREP(GUC_LOG_VERBOSITY,
 GUC_LOG_LEVEL_TO_VERBOSITY(level));
+               flags |= FIELD_PREP(GUC_LOG_VERBOSITY,
+
 GUC_LOG_LEVEL_TO_VERBOSITY(level));
+
+       flags |= FIELD_PREP(GUC_LOG_DESTINATION,
+                           xe_configfs_get_guc_log_target(pdev));

nit: Should this be part of the else case above? the specs don't say that it is an error to set this with the logs disabled but it does seem
weird to do so. not a blocker, so I'm ok it you want to keep it here.

Yeah makes sense to me and I agree with your reasoning. I'll make the change and repost.

Thanks!
Stuart

Quoted 5 lines

Daniele

Quoted 3 lines
drivers/gpu/drm/xe/xe_guc.c +0 -0
         return flags;

  }

#10 lore raw
Quoted 129 lines · Daniele Ceraolo Spurio
Quoted 104 lines · Stuart
Quoted 95 lines · Daniele Ceraolo Spurio
Quoted 93 lines · Stuart Summers

From: John Harrison <[email protected]>

GuC provides the ability to gather logs through a hardware interface
called NPK. For certain debugging scenarios this can be advantageous
over getting logs from memory (or in addition to).

Add a hook for this alternate debugging mode via a configfs. This
translates into a parameter passed to GuC during load time.

v2: Convert to configfs from modparam (Matt)

---
   drivers/gpu/drm/xe/xe_configfs.c | 60
++++++++++++++++++++++++++++++++
   drivers/gpu/drm/xe/xe_configfs.h |  5 +++
   drivers/gpu/drm/xe/xe_defaults.h |  1 +
   drivers/gpu/drm/xe/xe_guc.c      |  7 +++-

   4 files changed, 72 insertions(+), 1 deletion(-)
drivers/gpu/drm/xe/xe_configfs.c +0 -0
index 078dee985d24..e0c21328af75 100644
@@ -83,6 +83,16 @@
     *
     * This attribute can only be set before binding to the

device.
    *
+ * GuC log target:
+ * -------------
+ *
+ * Set the destination for the GuC log. 0 - memory only (default),
+ * 1 - NPK only, 2 - memory + NPK.
+ *
+ *     # echo 2 > /sys/kernel/config/xe/0000:03:00.0/guc_log_target
+ *
+ * This attribute can only be set before binding to the device.
+ *
    * Allowed GT types:
    * -----------------
    *

drivers/gpu/drm/xe/xe_configfs.c +0 -0
@@ -256,6 +266,7 @@ struct xe_config_group_device {
          struct config_group sriov;


         struct xe_config_device {
+               u8 guc_log_target;
                 u64 gt_types_allowed;
                 u64 engines_allowed;
                 struct wa_bb
ctx_restore_post_bb[XE_ENGINE_CLASS_MAX];

drivers/gpu/drm/xe/xe_configfs.c +0 -0
@@ -277,6 +288,7 @@ struct xe_config_group_device {
    };


   static const struct xe_config_device device_defaults = { +       .guc_log_target = XE_DEFAULT_GUC_LOG_TARGET, .gt_types_allowed = U64_MAX, .engines_allowed = U64_MAX, .survivability_mode = false,

drivers/gpu/drm/xe/xe_configfs.c +0 -0
@@ -357,6 +369,37 @@ static bool is_bound(struct
 xe_config_group_device *dev)
          return ret;
    }


+static ssize_t guc_log_target_show(struct config_item *item, char
*page)
+{
+       struct xe_config_device *dev = to_xe_config_device(item);

drivers/gpu/drm/xe/xe_configfs.c +5 -0
+
+       return sprintf(page, "%d\n", dev->guc_log_target);
+}
+
+static ssize_t guc_log_target_store(struct config_item *item,

const char *page, size_t len)
+{
+       struct xe_config_group_device *dev =
to_xe_config_group_device(item);
+       u8 guc_log_target;
+       int ret;
+
+       ret = kstrtou8(page, 0, &guc_log_target);
+       if (ret)
+               return ret;

Quoted 8 lines

drivers/gpu/drm/xe/xe_configfs.c

Quoted 2 lines
drivers/gpu/drm/xe/xe_configfs.c +2 -0
+
+#define GUC_LOG_TARGET_MAX     2

IMO better to define this with XE_DEFAULT_GUC_LOG_TARGET. Maybe also
add
a comment to explain that the modes are set directly by the user and
therefore we don't need individual defines.

Quoted 4 lines

Hm.. it feels weird to add the max define in the defaults header which
is one reason I kept that here. I could put both of them in xe_configfs.h or xe_guc_log_types.h?

Not sure why but I thought XE_DEFAULT_GUC_LOG_TARGET was in one of the
GuC ABI files. We usually try to keep all the defines related to the GuC
interface in one of the abi files (in this case it would be abi/guc_log_abi.h). Might be worth defining all 3 modes in that file and
having something like:

in guc_log_abi.h:

enum guc_log_target {
     GUC_LOG_TARGET_MEM = 0,
     GUC_LOG_TARGET_NPK,
     GUC_LOG_TARGET_MEM_AND_NPK,
}

Quoted 7 lines

in the configfs files:

#define XE_DEFAULT_GUC_LOG_TARGET    GUC_LOG_TARGET_MEM #define GUC_LOG_TARGET_MAX    GUC_LOG_TARGET_MEM_AND_NPK

Although this might be overkill, so I won't block the current approach.

No not overkill and a little more self documenting than what I have. Sure let me make the change and repost..

Thanks,
Stuart

Quoted 183 lines

Daniele

Quoted 179 lines

Comment you suggested makes sense. I'll add that in the next rev.

Quoted 18 lines
Quoted 18 lines

+       if (guc_log_target > GUC_LOG_TARGET_MAX)
+               return -EINVAL;

drivers/gpu/drm/xe/xe_configfs.c +11 -0
+#undef GUC_LOG_TARGET_MAX
+
+       guard(mutex)(&dev->lock);
+       if (is_bound(dev))
+               return -EBUSY;
+
+       dev->config.guc_log_target = guc_log_target;
+
+       return len;
+}
+

   static ssize_t survivability_mode_show(struct config_item *item,
char *page)
   {
         struct xe_config_device *dev =

Quoted 8 lines

drivers/gpu/drm/xe/xe_configfs.c CONFIGFS_ATTR(, ctx_restore_mid_bb); · line 860

Quoted 6 lines

to_xe_config_device(item);

drivers/gpu/drm/xe/xe_configfs.c +1 -0
@@ -814,6 +857,7 @@ CONFIGFS_ATTR(, ctx_restore_mid_bb);
    CONFIGFS_ATTR(, ctx_restore_post_bb);
    CONFIGFS_ATTR(, enable_psmi);
    CONFIGFS_ATTR(, engines_allowed);
+CONFIGFS_ATTR(, guc_log_target);

This should go after gt_types if we want to keep the alphabetical order.

Makes sense.

Quoted 22 lines

drivers/gpu/drm/xe/xe_configfs.c static struct configfs_attribute · line 870

Quoted 9 lines
drivers/gpu/drm/xe/xe_configfs.c +0 -0
    CONFIGFS_ATTR(, gt_types_allowed);
    CONFIGFS_ATTR(, survivability_mode);

drivers/gpu/drm/xe/xe_configfs.c +1 -0
@@ -822,6 +866,7 @@ static struct configfs_attribute
 *xe_config_device_attrs[] = {
          &attr_ctx_restore_post_bb,
          &attr_enable_psmi,
          &attr_engines_allowed,
+       &attr_guc_log_target,

here as well

Quoted 11 lines
drivers/gpu/drm/xe/xe_configfs.c +0 -0
          &attr_gt_types_allowed,
          &attr_survivability_mode,

         NULL,

drivers/gpu/drm/xe/xe_configfs.c +0 -0
@@ -1094,6 +1139,7 @@ static void dump_custom_dev_config(struct
 pci_dev *pdev,
                                   dev->config.attr_); \
          } while (0)


+       PRI_CUSTOM_ATTR("%d", guc_log_target); PRI_CUSTOM_ATTR("%llx", gt_types_allowed); PRI_CUSTOM_ATTR("%llx", engines_allowed);

Quoted 8 lines
Quoted 7 lines

         PRI_CUSTOM_ATTR("%d", enable_psmi);

drivers/gpu/drm/xe/xe_configfs.c +0 -0
@@ -1146,6 +1192,20 @@ bool
 xe_configfs_get_survivability_mode(struct pci_dev *pdev)
          return mode;
    }


+u8 xe_configfs_get_guc_log_target(struct pci_dev *pdev)

This function needs documentation

Ok.

Quoted 96 lines
Quoted 96 lines

+{
+       struct xe_config_group_device *dev =
find_xe_config_group_device(pdev);
+       u8 target;

drivers/gpu/drm/xe/xe_configfs.c +10 -0
+
+       if (!dev)
+               return device_defaults.guc_log_target;
+
+       target = dev->config.guc_log_target;
+       config_group_put(&dev->group);
+
+       return target;
+}
+

   static u64 get_gt_types_allowed(struct pci_dev *pdev) {
         struct xe_config_group_device *dev = find_xe_config_group_device(pdev);

drivers/gpu/drm/xe/xe_configfs.h +0 -0
index 07d62bf0c152..fb5cb7c57e75 100644
@@ -19,6 +19,7 @@ int xe_configfs_init(void);
    void xe_configfs_exit(void);
    void xe_configfs_check_device(struct pci_dev *pdev);

   bool xe_configfs_get_survivability_mode(struct pci_dev *pdev);
+u8 xe_configfs_get_guc_log_target(struct pci_dev *pdev); bool xe_configfs_primary_gt_allowed(struct pci_dev *pdev); bool xe_configfs_media_gt_allowed(struct pci_dev *pdev); u64 xe_configfs_get_engines_allowed(struct pci_dev *pdev);

drivers/gpu/drm/xe/xe_configfs.h +0 -0
@@ -38,6 +39,10 @@ static inline int xe_configfs_init(void) {
 return 0; }
    static inline void xe_configfs_exit(void) { }

   static inline void xe_configfs_check_device(struct pci_dev *pdev)
{ }
   static inline bool xe_configfs_get_survivability_mode(struct pci_dev *pdev) { return false; }
+static inline u8 xe_configfs_get_guc_log_target(struct pci_dev *pdev)

drivers/gpu/drm/xe/xe_configfs.h +3 -0
+{
+       return XE_DEFAULT_GUC_LOG_TARGET;
+}

   static inline bool xe_configfs_primary_gt_allowed(struct pci_dev
*pdev) { return true; }
   static inline bool xe_configfs_media_gt_allowed(struct pci_dev
*pdev) { return true; }
   static inline u64 xe_configfs_get_engines_allowed(struct pci_dev
*pdev) { return U64_MAX; }

drivers/gpu/drm/xe/xe_defaults.h +1 -0
index c8ae1d5f3d60..fbe670668a04 100644
@@ -12,6 +12,7 @@
    #else
    #define XE_DEFAULT_GUC_LOG_LEVEL              1
    #endif
+#define XE_DEFAULT_GUC_LOG_TARGET              0


   #define
XE_DEFAULT_PROBE_DISPLAY              IS_ENABLED(CONFIG_DRM_XE_ DISP
LAY)
   #define XE_DEFAULT_VRAM_BAR_SIZE              0

drivers/gpu/drm/xe/xe_guc.c +0 -0
index 54d2fc780127..d98d5d051f1b 100644
@@ -73,13 +73,18 @@ static u32 guc_bo_ggtt_addr(struct xe_guc
 *guc,


   static u32 guc_ctl_debug_flags(struct xe_guc *guc) {
+       struct pci_dev *pdev = to_pci_dev(guc_to_xe(guc)-

Quoted 1 line

drm.dev);

         u32 level = xe_guc_log_get_level(&guc->log); u32 flags = 0;

         if (!GUC_LOG_LEVEL_IS_VERBOSE(level)) flags |= GUC_LOG_DISABLED; else
-               flags |= FIELD_PREP(GUC_LOG_VERBOSITY, GUC_LOG_LEVEL_TO_VERBOSITY(level));
+               flags |= FIELD_PREP(GUC_LOG_VERBOSITY, +
GUC_LOG_LEVEL_TO_VERBOSITY(level));
+
+       flags |= FIELD_PREP(GUC_LOG_DESTINATION, +

Quoted 8 lines
Quoted 1 line

xe_configfs_get_guc_log_target(pdev));

nit: Should this be part of the else case above? the specs don't say
that it is an error to set this with the logs disabled but it does
seem
weird to do so. not a blocker, so I'm ok it you want to keep it here.

Yeah makes sense to me and I agree with your reasoning. I'll make the
change and repost.

Thanks!
Stuart

Quoted 5 lines

Daniele

Quoted 3 lines


         return flags;
   }