Skip to contentSkip to conversation

drm/xe/uapi: Add DRM_XE_QUERY_CONFIG_FLAG_HAS_DISABLE_NULL_QUERY

PATCH In review Nitin Gote 4 participants 8 messages Jul 10, 2025 – Jul 11, 2025

Subsystems (3)
lore
Share & tools
lore

Nitin Gote

author
#0 lore raw

PATCH 1/1 drm/xe/uapi: Add DRM_XE_QUERY_CONFIG_FLAG_HAS_DISABLE_NULL_QUERY

Add the DRM_XE_QUERY_CONFIG_FLAG_HAS_DISABLE_NULL_QUERY device query flag which indicates whether a device supports DIS_NULL_QUERY (Disable null anyhit shader query mechanism). The intent is for UMDs
to use this query and opt-in DRM_XE_EXEC_QUEUE_DISABLE_NULL_QUERY flag to disable null query mechanism for anyhit shader by setting DIS_NULL_QUERY bit of RT_CTRL register for Xe2.

v2:
- Use xe_rtp_match_first_render_or_compute() api to check render_or_compute. (Tejas)
- Validate args->flags (Tejas/Matthew)
- Add proper kernel-doc for both DRM_XE_EXEC_QUEUE_DIS_NULL_QUERY and DRM_XE_EXEC_QUEUE_LOW_LATENCY_HINT. (Matthew)

v3:
- Rename DRM_XE_EXEC_QUEUE_DIS_NULL_QUERY to DRM_XE_EXEC_QUEUE_DISABLE_NULL_QUERY. (Matthew)
- Move implementaion from exec queue creation time to WA BB program. (Matthew)

---
Hi,

Please note the review comments from previous rev2, addressed in this patch.
https://patchwork.freedesktop.org/patch/660580/?series=150601&rev=2

 .../gpu/drm/xe/instructions/xe_mi_commands.h  |  4 ++
 drivers/gpu/drm/xe/regs/xe_gt_regs.h          |  2 +
 drivers/gpu/drm/xe/xe_exec_queue.c            |  9 ++-
 drivers/gpu/drm/xe/xe_exec_queue_types.h      |  2 +
 drivers/gpu/drm/xe/xe_gt_mcr.c                |  1 -
 drivers/gpu/drm/xe/xe_lrc.c                   | 65 +++++++++++++++++++
 drivers/gpu/drm/xe/xe_query.c                 |  3 +-
 include/uapi/drm/xe_drm.h                     | 12 ++++
 8 files changed, 95 insertions(+), 3 deletions(-)
drivers/gpu/drm/xe/instructions/xe_mi_commands.h +4 -0
index e3f5e8bb3ebc..84e889528464 100644
@@ -80,4 +80,8 @@
 #define MI_SET_APPID_SESSION_ID_MASK	REG_GENMASK(6, 0)
 #define MI_SET_APPID_SESSION_ID(x)	REG_FIELD_PREP(MI_SET_APPID_SESSION_ID_MASK, x)
 
+#define MI_SEMAPHORE_WAIT		__MI_INSTR(0x1c)
+#define  MI_SEMAPHORE_POLL		(1 << 15)
+#define  MI_SEMAPHORE_SAD_EQ_SDD	(4 << 12)
+#define  MI_SEMAPHORE_REGISTER_POLL	(1 << 16)
 #endif
drivers/gpu/drm/xe/regs/xe_gt_regs.h +2 -0
index 5cd5ab8529c5..8234789f05b7 100644
@@ -55,6 +55,8 @@
 #define   MTL_MCR_GROUPID			REG_GENMASK(11, 8)
 #define   MTL_MCR_INSTANCEID			REG_GENMASK(3, 0)
 
+#define STEER_SEMAPHORE				XE_REG(0xFD0)
+
 #define PS_INVOCATION_COUNT			XE_REG(0x2348)
 
 #define XELP_GLOBAL_MOCS(i)			XE_REG(0x4000 + (i) * 4)
drivers/gpu/drm/xe/xe_exec_queue.c +8 -1
index 8991b4aed440..18a0bee38eed 100644
@@ -131,6 +131,9 @@ static int __xe_exec_queue_init(struct xe_exec_queue *q)
 			flags |= XE_LRC_CREATE_RUNALONE;
 	}
 
+	if (q->flags & EXEC_QUEUE_DISABLE_NULL_QUERY)
+		flags |= EXEC_QUEUE_DISABLE_NULL_QUERY;
+
 	for (i = 0; i < q->width; ++i) {
 		q->lrc[i] = xe_lrc_create(q->hwe, q->vm, SZ_16K, q->msix_vec, flags);
 		if (IS_ERR(q->lrc[i])) {
@@ -597,7 +600,8 @@ int xe_exec_queue_create_ioctl(struct drm_device *dev, void *data,
 	u32 len;
 	int err;
 
-	if (XE_IOCTL_DBG(xe, args->flags & ~DRM_XE_EXEC_QUEUE_LOW_LATENCY_HINT) ||
+	if (XE_IOCTL_DBG(xe, args->flags &
+	    ~(DRM_XE_EXEC_QUEUE_LOW_LATENCY_HINT | DRM_XE_EXEC_QUEUE_DISABLE_NULL_QUERY)) ||
 	    XE_IOCTL_DBG(xe, args->reserved[0] || args->reserved[1]))
 		return -EINVAL;
 
@@ -616,6 +620,9 @@ int xe_exec_queue_create_ioctl(struct drm_device *dev, void *data,
 	if (args->flags & DRM_XE_EXEC_QUEUE_LOW_LATENCY_HINT)
 		flags |= EXEC_QUEUE_FLAG_LOW_LATENCY;
 
+	if (args->flags & DRM_XE_EXEC_QUEUE_DISABLE_NULL_QUERY)
+		flags |= EXEC_QUEUE_DISABLE_NULL_QUERY;
+
 	if (eci[0].engine_class == DRM_XE_ENGINE_CLASS_VM_BIND) {
 		if (XE_IOCTL_DBG(xe, args->width != 1) ||
 		    XE_IOCTL_DBG(xe, args->num_placements != 1) ||
drivers/gpu/drm/xe/xe_exec_queue_types.h +2 -0
index cc1cffb5c87f..b62502a18c1b 100644
@@ -87,6 +87,8 @@ struct xe_exec_queue {
 #define EXEC_QUEUE_FLAG_HIGH_PRIORITY		BIT(4)
 /* flag to indicate low latency hint to guc */
 #define EXEC_QUEUE_FLAG_LOW_LATENCY		BIT(5)
+/* flag to indicate disable null query hint */
+#define EXEC_QUEUE_DISABLE_NULL_QUERY		BIT(6)
 
 	/**
 	 * @flags: flags for this exec queue, should statically setup aside from ban
drivers/gpu/drm/xe/xe_gt_mcr.c +0 -1
index 64a2f0d6aaf9..a7624b30d0c9 100644
@@ -46,7 +46,6 @@
  * MCR registers are not available on Virtual Function (VF).
  */
 
-#define STEER_SEMAPHORE		XE_REG(0xFD0)
 
 static inline struct xe_reg to_xe_reg(struct xe_reg_mcr reg_mcr)
 {
drivers/gpu/drm/xe/xe_lrc.c +65 -0

104 lines not on this page · raw message

drivers/gpu/drm/xe/xe_query.c +2 -1
index d517ec9ddcbf..5b48befd32cd 100644
@@ -344,7 +344,8 @@ static int query_config(struct xe_device *xe, struct drm_xe_device_query *query)
 		config->info[DRM_XE_QUERY_CONFIG_FLAGS] |=
 			DRM_XE_QUERY_CONFIG_FLAG_HAS_CPU_ADDR_MIRROR;
 	config->info[DRM_XE_QUERY_CONFIG_FLAGS] |=
-			DRM_XE_QUERY_CONFIG_FLAG_HAS_LOW_LATENCY;
+			(DRM_XE_QUERY_CONFIG_FLAG_HAS_LOW_LATENCY |
+			DRM_XE_QUERY_CONFIG_FLAG_HAS_DISABLE_NULL_QUERY);
 	config->info[DRM_XE_QUERY_CONFIG_MIN_ALIGNMENT] =
 		xe->info.vram_flags & XE_VRAM_FLAGS_NEED64K ? SZ_64K : SZ_4K;
 	config->info[DRM_XE_QUERY_CONFIG_VA_BITS] = xe->info.va_bits;
include/uapi/drm/xe_drm.h +12 -0
index e2426413488f..adab49e63757 100644
@@ -397,6 +397,8 @@ struct drm_xe_query_mem_regions {
  *      has low latency hint support
  *    - %DRM_XE_QUERY_CONFIG_FLAG_HAS_CPU_ADDR_MIRROR - Flag is set if the
  *      device has CPU address mirroring support
+ *    - %DRM_XE_QUERY_CONFIG_FLAG_HAS_DISABLE_NULL_QUERY - Flag is set if the
+ *      device has null query support for anyhit shader.
  *  - %DRM_XE_QUERY_CONFIG_MIN_ALIGNMENT - Minimal memory alignment
  *    required by this device, typically SZ_4K or SZ_64K
  *  - %DRM_XE_QUERY_CONFIG_VA_BITS - Maximum bits of a virtual address
@@ -415,6 +417,7 @@ struct drm_xe_query_config {
 	#define DRM_XE_QUERY_CONFIG_FLAG_HAS_VRAM	(1 << 0)
 	#define DRM_XE_QUERY_CONFIG_FLAG_HAS_LOW_LATENCY	(1 << 1)
 	#define DRM_XE_QUERY_CONFIG_FLAG_HAS_CPU_ADDR_MIRROR	(1 << 2)
+	#define DRM_XE_QUERY_CONFIG_FLAG_HAS_DISABLE_NULL_QUERY	(1 << 3)
 #define DRM_XE_QUERY_CONFIG_MIN_ALIGNMENT		2
 #define DRM_XE_QUERY_CONFIG_VA_BITS			3
 #define DRM_XE_QUERY_CONFIG_MAX_EXEC_QUEUE_PRIORITY	4
@@ -1270,7 +1273,16 @@ struct drm_xe_exec_queue_create {
 	/** @vm_id: VM to use for this exec queue */
 	__u32 vm_id;
 
+	/** DRM_XE_QUERY_CONFIG_FLAG_HAS_LOW_LATENCY - \
+	 *	Flag is set if the device has low latency hint support
+	 */
 #define DRM_XE_EXEC_QUEUE_LOW_LATENCY_HINT	(1 << 0)
+
+	/** DRM_XE_EXEC_QUEUE_DISABLE_NULL_QUERY - \
+	 *	flag is use to disable null query check for Anyhit shader
+	 */
+#define DRM_XE_EXEC_QUEUE_DISABLE_NULL_QUERY	(1 << 1)
+
 	/** @flags: flags to use for this exec queue */
 	__u32 flags;
 
Signature · 1 line
2.25.1
maintainer
#1 lore raw
Quoted 14 lines · Nitin Gote

Add the DRM_XE_QUERY_CONFIG_FLAG_HAS_DISABLE_NULL_QUERY device query flag which indicates whether a device supports DIS_NULL_QUERY (Disable null anyhit shader query mechanism). The intent is for UMDs
to use this query and opt-in DRM_XE_EXEC_QUEUE_DISABLE_NULL_QUERY flag to disable null query mechanism for anyhit shader by setting DIS_NULL_QUERY bit of RT_CTRL register for Xe2.

v2:
- Use xe_rtp_match_first_render_or_compute() api to check render_or_compute. (Tejas)
- Validate args->flags (Tejas/Matthew)
- Add proper kernel-doc for both DRM_XE_EXEC_QUEUE_DIS_NULL_QUERY and DRM_XE_EXEC_QUEUE_LOW_LATENCY_HINT. (Matthew)

Quoted 7 lines

v3:
- Rename DRM_XE_EXEC_QUEUE_DIS_NULL_QUERY to DRM_XE_EXEC_QUEUE_DISABLE_NULL_QUERY. (Matthew)
- Move implementaion from exec queue creation time to WA BB program. (Matthew)

We will need a PR from Mesa for the new uAPI.

Quoted 141 lines

---
Hi,

Please note the review comments from previous rev2, addressed in this patch.
https://patchwork.freedesktop.org/patch/660580/?series=150601&rev=2

 .../gpu/drm/xe/instructions/xe_mi_commands.h  |  4 ++
 drivers/gpu/drm/xe/regs/xe_gt_regs.h          |  2 +
 drivers/gpu/drm/xe/xe_exec_queue.c            |  9 ++-
 drivers/gpu/drm/xe/xe_exec_queue_types.h      |  2 +
 drivers/gpu/drm/xe/xe_gt_mcr.c                |  1 -
 drivers/gpu/drm/xe/xe_lrc.c                   | 65 +++++++++++++++++++
 drivers/gpu/drm/xe/xe_query.c                 |  3 +-
 include/uapi/drm/xe_drm.h                     | 12 ++++
 8 files changed, 95 insertions(+), 3 deletions(-)
drivers/gpu/drm/xe/instructions/xe_mi_commands.h +4 -0
index e3f5e8bb3ebc..84e889528464 100644
@@ -80,4 +80,8 @@
 #define MI_SET_APPID_SESSION_ID_MASK	REG_GENMASK(6, 0)
 #define MI_SET_APPID_SESSION_ID(x)	REG_FIELD_PREP(MI_SET_APPID_SESSION_ID_MASK, x)
 
+#define MI_SEMAPHORE_WAIT		__MI_INSTR(0x1c)
+#define  MI_SEMAPHORE_POLL		(1 << 15)
+#define  MI_SEMAPHORE_SAD_EQ_SDD	(4 << 12)
+#define  MI_SEMAPHORE_REGISTER_POLL	(1 << 16)
 #endif
drivers/gpu/drm/xe/regs/xe_gt_regs.h +2 -0
index 5cd5ab8529c5..8234789f05b7 100644
@@ -55,6 +55,8 @@
 #define   MTL_MCR_GROUPID			REG_GENMASK(11, 8)
 #define   MTL_MCR_INSTANCEID			REG_GENMASK(3, 0)
 
+#define STEER_SEMAPHORE				XE_REG(0xFD0)
+
 #define PS_INVOCATION_COUNT			XE_REG(0x2348)
 
 #define XELP_GLOBAL_MOCS(i)			XE_REG(0x4000 + (i) * 4)
drivers/gpu/drm/xe/xe_exec_queue.c +8 -1
index 8991b4aed440..18a0bee38eed 100644
@@ -131,6 +131,9 @@ static int __xe_exec_queue_init(struct xe_exec_queue *q)
 			flags |= XE_LRC_CREATE_RUNALONE;
 	}
 
+	if (q->flags & EXEC_QUEUE_DISABLE_NULL_QUERY)
+		flags |= EXEC_QUEUE_DISABLE_NULL_QUERY;
+
 	for (i = 0; i < q->width; ++i) {
 		q->lrc[i] = xe_lrc_create(q->hwe, q->vm, SZ_16K, q->msix_vec, flags);
 		if (IS_ERR(q->lrc[i])) {
@@ -597,7 +600,8 @@ int xe_exec_queue_create_ioctl(struct drm_device *dev, void *data,
 	u32 len;
 	int err;
 
-	if (XE_IOCTL_DBG(xe, args->flags & ~DRM_XE_EXEC_QUEUE_LOW_LATENCY_HINT) ||
+	if (XE_IOCTL_DBG(xe, args->flags &
+	    ~(DRM_XE_EXEC_QUEUE_LOW_LATENCY_HINT | DRM_XE_EXEC_QUEUE_DISABLE_NULL_QUERY)) ||
 	    XE_IOCTL_DBG(xe, args->reserved[0] || args->reserved[1]))
 		return -EINVAL;
 
@@ -616,6 +620,9 @@ int xe_exec_queue_create_ioctl(struct drm_device *dev, void *data,
 	if (args->flags & DRM_XE_EXEC_QUEUE_LOW_LATENCY_HINT)
 		flags |= EXEC_QUEUE_FLAG_LOW_LATENCY;
 
+	if (args->flags & DRM_XE_EXEC_QUEUE_DISABLE_NULL_QUERY)
+		flags |= EXEC_QUEUE_DISABLE_NULL_QUERY;
+
 	if (eci[0].engine_class == DRM_XE_ENGINE_CLASS_VM_BIND) {
 		if (XE_IOCTL_DBG(xe, args->width != 1) ||
 		    XE_IOCTL_DBG(xe, args->num_placements != 1) ||
drivers/gpu/drm/xe/xe_exec_queue_types.h +2 -0
index cc1cffb5c87f..b62502a18c1b 100644
@@ -87,6 +87,8 @@ struct xe_exec_queue {
 #define EXEC_QUEUE_FLAG_HIGH_PRIORITY		BIT(4)
 /* flag to indicate low latency hint to guc */
 #define EXEC_QUEUE_FLAG_LOW_LATENCY		BIT(5)
+/* flag to indicate disable null query hint */
+#define EXEC_QUEUE_DISABLE_NULL_QUERY		BIT(6)
 
 	/**
 	 * @flags: flags for this exec queue, should statically setup aside from ban
drivers/gpu/drm/xe/xe_gt_mcr.c +0 -1
index 64a2f0d6aaf9..a7624b30d0c9 100644
@@ -46,7 +46,6 @@
  * MCR registers are not available on Virtual Function (VF).
  */
 
-#define STEER_SEMAPHORE		XE_REG(0xFD0)
 
 static inline struct xe_reg to_xe_reg(struct xe_reg_mcr reg_mcr)
 {
drivers/gpu/drm/xe/xe_lrc.c +17 -0
index d2ad8fe737eb..6fc09df67442 100644
@@ -13,6 +13,7 @@
 #include "instructions/xe_gfxpipe_commands.h"
 #include "instructions/xe_gfx_state_commands.h"
 #include "regs/xe_engine_regs.h"
+#include "regs/xe_gt_regs.h"
 #include "regs/xe_lrc_layout.h"
 #include "xe_bb.h"
 #include "xe_bo.h"
@@ -25,6 +26,7 @@
 #include "xe_map.h"
 #include "xe_memirq.h"
 #include "xe_mmio.h"
+#include "xe_rtp.h"
 #include "xe_sriov.h"
 #include "xe_trace_lrc.h"
 #include "xe_vm.h"
@@ -972,9 +974,56 @@ static ssize_t wa_bb_setup_utilization(struct xe_lrc *lrc, struct xe_hw_engine *
 	return cmd - batch;
 }
 
+/*
+ * wa_bb_disable_null_query() - Emit commands in the WA BB
+ * to disable or enable NULL Anyhit Shader Query Mechanism.
+ *
+ * Some platforms require a workaround to disable (or enable) the
+ * Anyhit Shader NULL QUERY for specific engines (typically the
+ * first render or compute engine). This function emits a sequence
+ * of MI commands into the workaround batch buffer (WA BB) to perform
+ * a multicast write to the RT_CTRL register, setting or clearing the
+ * DIS_NULL_QUERY bit.
+ *
+ * The sequence includes a semaphore wait to ensure proper ordering,
+ * followed by MI_LOAD_REGISTER_IMM commands to write the desired value
+ * to the RT_CTRL register, and finally restores the semaphore state.
+ *

drivers/gpu/drm/xe/xe_lrc.c static ssize_t wa_bb_setup_utilization(struct xe_lrc *lrc, struct xe_hw_engine * · line 1001

Quoted 10 lines
drivers/gpu/drm/xe/xe_lrc.c +10 -0
+ */
+static ssize_t wa_bb_disable_null_query(struct xe_gt *gt, struct xe_hw_engine *hwe,
+					u32 *batch, size_t max_size, u32 value)
+{
+	u32 *cmd = batch;
+	struct xe_reg_mcr reg_mcr = RT_CTRL;
+	struct xe_reg reg = reg_mcr.__reg;
+	struct xe_reg reg_sema = STEER_SEMAPHORE;
+
+	/* Add WARN_ON check for minimum required space (10 DWORDs) */

#define EXPECTED_WA_SIZE 10

drivers/gpu/drm/xe/xe_lrc.c static ssize_t wa_bb_setup_utilization(struct xe_lrc *lrc, struct xe_hw_engine * · line 1002

Quoted 1 line
drivers/gpu/drm/xe/xe_lrc.c +1 -0
+	if (xe_gt_WARN_ON(gt, max_size < 10))

s/10/EXPECTED_WA_SIZE

Quoted 6 lines
drivers/gpu/drm/xe/xe_lrc.c +6 -0
+		return -ENOSPC;
+
+	if (xe_rtp_match_first_render_or_compute(gt, hwe)) {
+		*cmd++ = (MI_SEMAPHORE_WAIT | MI_SEMAPHORE_POLL |
+			  MI_SEMAPHORE_SAD_EQ_SDD | MI_SEMAPHORE_REGISTER_POLL);
+		*cmd++ = 1;

drivers/gpu/drm/xe/xe_lrc.c static ssize_t wa_bb_setup_utilization(struct xe_lrc *lrc, struct xe_hw_engine * · line 1018

Quoted 10 lines
drivers/gpu/drm/xe/xe_lrc.c +10 -0
+		*cmd++ = reg_sema.addr;
+		*cmd++ = 0;
+		*cmd++ = MI_LOAD_REGISTER_IMM | MI_LRI_NUM_REGS(1) | MI_LRI_MMIO_REMAP_EN;
+		*cmd++ = reg.addr;
+		*cmd++ = value;
+		*cmd++ = MI_LOAD_REGISTER_IMM | MI_LRI_NUM_REGS(1) | MI_LRI_MMIO_REMAP_EN;
+		*cmd++ = reg_sema.addr;
+		*cmd++ = 1;
+	}
+

xe_gt_assert(gt, (cmd - batch) <= EXPECTED_WA_SIZE));

#undef EXPECTED_WA_SIZE

Quoted 20 lines
drivers/gpu/drm/xe/xe_lrc.c +6 -0
+	return cmd - batch;
+}
+
 struct wa_bb_setup {
 	ssize_t (*setup)(struct xe_lrc *lrc, struct xe_hw_engine *hwe,
 			 u32 *batch, size_t max_size);
+	ssize_t (*disable_null_query)(struct xe_gt *gt, struct xe_hw_engine *hwe,
+				      u32 *batch, size_t max_size, u32 value);
 };
 
 static int setup_wa_bb(struct xe_lrc *lrc, struct xe_hw_engine *hwe)
@@ -982,6 +1031,7 @@ static int setup_wa_bb(struct xe_lrc *lrc, struct xe_hw_engine *hwe)
 	const size_t max_size = LRC_WA_BB_SIZE;
 	static const struct wa_bb_setup funcs[] = {
 		{ .setup = wa_bb_setup_utilization },
+		{ .disable_null_query = wa_bb_disable_null_query },
 	};
 	ssize_t remain;
 	u32 *cmd, *buf = NULL;

drivers/gpu/drm/xe/xe_lrc.c static int setup_wa_bb(struct xe_lrc *lrc, struct xe_hw_engine *hwe) · line 1054

Quoted 5 lines
drivers/gpu/drm/xe/xe_lrc.c +2 -0
@@ -1000,6 +1050,18 @@ static int setup_wa_bb(struct xe_lrc *lrc, struct xe_hw_engine *hwe)
 	for (size_t i = 0; i < ARRAY_SIZE(funcs); i++) {
 		ssize_t len = funcs[i].setup(lrc, hwe, cmd, remain);
 
+		if (((GRAPHICS_VER(gt_to_xe(lrc->gt)) >= 20) &&
+		     (GRAPHICS_VER(gt_to_xe(lrc->gt)) < 30))) {

I'd write this like;

u32 value = lrc->flags & EXEC_QUEUE_DISABLE_NULL_QUERY ? DIS_NULL_QUERY :

	~DIS_NULL_QUERY;

funcs[i].disable_null_query(...);

Nits aside, looks functionally correct. I think we need another reviewer (Lucas) for RTP / WA part, but LGTM.

Matt

Quoted 78 lines
drivers/gpu/drm/xe/xe_lrc.c +13 -0
+			if (lrc->flags & EXEC_QUEUE_DISABLE_NULL_QUERY)
+				len += funcs[i].disable_null_query(lrc->gt, hwe,
+								   cmd, remain,
+								   DIS_NULL_QUERY);
+			else
+				len += funcs[i].disable_null_query(lrc->gt, hwe,
+								   cmd, remain,
+								   ~DIS_NULL_QUERY);
+		}
+
 		remain -= len;
 
 		/*
@@ -1175,6 +1237,9 @@ static int xe_lrc_init(struct xe_lrc *lrc, struct xe_hw_engine *hwe,
 	map = __xe_lrc_start_seqno_map(lrc);
 	xe_map_write32(lrc_to_xe(lrc), &map, lrc->fence_ctx.next_seqno - 1);
 
+	if (init_flags & EXEC_QUEUE_DISABLE_NULL_QUERY)
+		lrc->flags |= EXEC_QUEUE_DISABLE_NULL_QUERY;
+
 	err = setup_wa_bb(lrc, hwe);
 	if (err)
 		goto err_lrc_finish;
drivers/gpu/drm/xe/xe_query.c +2 -1
index d517ec9ddcbf..5b48befd32cd 100644
@@ -344,7 +344,8 @@ static int query_config(struct xe_device *xe, struct drm_xe_device_query *query)
 		config->info[DRM_XE_QUERY_CONFIG_FLAGS] |=
 			DRM_XE_QUERY_CONFIG_FLAG_HAS_CPU_ADDR_MIRROR;
 	config->info[DRM_XE_QUERY_CONFIG_FLAGS] |=
-			DRM_XE_QUERY_CONFIG_FLAG_HAS_LOW_LATENCY;
+			(DRM_XE_QUERY_CONFIG_FLAG_HAS_LOW_LATENCY |
+			DRM_XE_QUERY_CONFIG_FLAG_HAS_DISABLE_NULL_QUERY);
 	config->info[DRM_XE_QUERY_CONFIG_MIN_ALIGNMENT] =
 		xe->info.vram_flags & XE_VRAM_FLAGS_NEED64K ? SZ_64K : SZ_4K;
 	config->info[DRM_XE_QUERY_CONFIG_VA_BITS] = xe->info.va_bits;
include/uapi/drm/xe_drm.h +12 -0
index e2426413488f..adab49e63757 100644
@@ -397,6 +397,8 @@ struct drm_xe_query_mem_regions {
  *      has low latency hint support
  *    - %DRM_XE_QUERY_CONFIG_FLAG_HAS_CPU_ADDR_MIRROR - Flag is set if the
  *      device has CPU address mirroring support
+ *    - %DRM_XE_QUERY_CONFIG_FLAG_HAS_DISABLE_NULL_QUERY - Flag is set if the
+ *      device has null query support for anyhit shader.
  *  - %DRM_XE_QUERY_CONFIG_MIN_ALIGNMENT - Minimal memory alignment
  *    required by this device, typically SZ_4K or SZ_64K
  *  - %DRM_XE_QUERY_CONFIG_VA_BITS - Maximum bits of a virtual address
@@ -415,6 +417,7 @@ struct drm_xe_query_config {
 	#define DRM_XE_QUERY_CONFIG_FLAG_HAS_VRAM	(1 << 0)
 	#define DRM_XE_QUERY_CONFIG_FLAG_HAS_LOW_LATENCY	(1 << 1)
 	#define DRM_XE_QUERY_CONFIG_FLAG_HAS_CPU_ADDR_MIRROR	(1 << 2)
+	#define DRM_XE_QUERY_CONFIG_FLAG_HAS_DISABLE_NULL_QUERY	(1 << 3)
 #define DRM_XE_QUERY_CONFIG_MIN_ALIGNMENT		2
 #define DRM_XE_QUERY_CONFIG_VA_BITS			3
 #define DRM_XE_QUERY_CONFIG_MAX_EXEC_QUEUE_PRIORITY	4
@@ -1270,7 +1273,16 @@ struct drm_xe_exec_queue_create {
 	/** @vm_id: VM to use for this exec queue */
 	__u32 vm_id;
 
+	/** DRM_XE_QUERY_CONFIG_FLAG_HAS_LOW_LATENCY - \
+	 *	Flag is set if the device has low latency hint support
+	 */
 #define DRM_XE_EXEC_QUEUE_LOW_LATENCY_HINT	(1 << 0)
+
+	/** DRM_XE_EXEC_QUEUE_DISABLE_NULL_QUERY - \
+	 *	flag is use to disable null query check for Anyhit shader
+	 */
+#define DRM_XE_EXEC_QUEUE_DISABLE_NULL_QUERY	(1 << 1)
+
 	/** @flags: flags to use for this exec queue */
 	__u32 flags;
 
Signature · 1 line
2.25.1
#2 lore raw

✓ CI.KUnit: success for drm/xe/uapi: Add DRM_XE_QUERY_CONFIG_FLAG_HAS_DISABLE_NULL_QUERY

In reply to Nitin Gote
== Series Details ==

== Series Details ==

Series: drm/xe/uapi: Add DRM_XE_QUERY_CONFIG_FLAG_HAS_DISABLE_NULL_QUERY
URL : https://patchwork.freedesktop.org/series/151431/
State : success

== Summary ==

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

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

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

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

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

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

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

#3 lore raw

✗ Xe.CI.BAT: failure for drm/xe/uapi: Add DRM_XE_QUERY_CONFIG_FLAG_HAS_DISABLE_NULL_QUERY

In reply to Nitin Gote
== Series Details ==

== Series Details ==

Series: drm/xe/uapi: Add DRM_XE_QUERY_CONFIG_FLAG_HAS_DISABLE_NULL_QUERY
URL : https://patchwork.freedesktop.org/series/151431/
State : failure

== Summary ==

CI Bug Log - changes from xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0_BAT -> xe-pw-151431v1_BAT
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with xe-pw-151431v1_BAT absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes
introduced in xe-pw-151431v1_BAT, 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 (9 -> 8)
------------------------------

Missing (1): bat-adlp-vm

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

Here are the unknown changes that may have been introduced in xe-pw-151431v1_BAT:

### IGT changes ###

#### Possible regressions ####

* igt@xe_module_load@load:
- bat-dg2-oem2: [PASS][1] -> [ABORT][2]
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/bat-dg2-oem2/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/bat-dg2-oem2/igt@[email protected]
- bat-atsm-2: [PASS][3] -> [ABORT][4]
[3]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/bat-atsm-2/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/bat-atsm-2/igt@[email protected]
- bat-lnl-1: [PASS][5] -> [ABORT][6]
[5]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/bat-lnl-1/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/bat-lnl-1/igt@[email protected]
- bat-pvc-2: [PASS][7] -> [ABORT][8]
[7]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/bat-pvc-2/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/bat-pvc-2/igt@[email protected]
- bat-bmg-2: [PASS][9] -> [ABORT][10]
[9]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/bat-bmg-2/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/bat-bmg-2/igt@[email protected]
- bat-bmg-1: [PASS][11] -> [ABORT][12]
[11]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/bat-bmg-1/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/bat-bmg-1/igt@[email protected]
- bat-adlp-7: [PASS][13] -> [ABORT][14]
[13]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/bat-adlp-7/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/bat-adlp-7/igt@[email protected]
- bat-lnl-2: [PASS][15] -> [ABORT][16]
[15]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/bat-lnl-2/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/bat-lnl-2/igt@[email protected]

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

* IGT: IGT_8447 -> IGT_8449
* Linux: xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0 -> xe-pw-151431v1

IGT_8447: 8447
IGT_8449: bfa2e7bb44a2e0fe43d2ae474db0dff766080b24 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0: 7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0
xe-pw-151431v1: 151431v1

== Logs ==

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

#4 lore raw

✗ Xe.CI.Full: failure for drm/xe/uapi: Add DRM_XE_QUERY_CONFIG_FLAG_HAS_DISABLE_NULL_QUERY

In reply to Nitin Gote
== Series Details ==

== Series Details ==

Series: drm/xe/uapi: Add DRM_XE_QUERY_CONFIG_FLAG_HAS_DISABLE_NULL_QUERY
URL : https://patchwork.freedesktop.org/series/151431/
State : failure

== Summary ==

CI Bug Log - changes from xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0_FULL -> xe-pw-151431v1_FULL
====================================================

Summary
-------

**WARNING**

Minor unknown changes coming with xe-pw-151431v1_FULL need to be verified manually.

If you think the reported changes have nothing to do with the changes
introduced in xe-pw-151431v1_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 (4 -> 4)
------------------------------

No changes in participating hosts

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

Here are the unknown changes that may have been introduced in xe-pw-151431v1_FULL:

### IGT changes ###

#### Warnings ####

* igt@xe_module_load@load:
- shard-lnl: ([PASS][1], [PASS][2], [PASS][3], [PASS][4], [PASS][5], [PASS][6], [PASS][7], [PASS][8], [PASS][9], [PASS][10], [PASS][11], [PASS][12], [PASS][13], [PASS][14], [PASS][15], [PASS][16], [PASS][17], [PASS][18], [PASS][19], [PASS][20], [SKIP][21], [PASS][22], [PASS][23], [PASS][24], [PASS][25], [PASS][26]) ([Intel XE#378]) -> ([ABORT][27], [ABORT][28], [ABORT][29], [ABORT][30], [ABORT][31], [ABORT][32], [ABORT][33], [ABORT][34], [ABORT][35], [ABORT][36], [ABORT][37], [ABORT][38], [ABORT][39], [ABORT][40], [ABORT][41], [ABORT][42], [ABORT][43], [ABORT][44], [ABORT][45], [ABORT][46], [ABORT][47], [ABORT][48], [ABORT][49], [ABORT][50])
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-lnl-6/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-lnl-6/igt@[email protected]
[3]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-lnl-2/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-lnl-3/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-lnl-3/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-lnl-2/igt@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-lnl-2/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-lnl-1/igt@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-lnl-7/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-lnl-1/igt@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-lnl-4/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-lnl-4/igt@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-lnl-3/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-lnl-6/igt@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-lnl-1/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-lnl-7/igt@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-lnl-5/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-lnl-2/igt@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-lnl-5/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-lnl-5/igt@[email protected]
[21]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-lnl-5/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-lnl-7/igt@[email protected]
[23]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-lnl-7/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-lnl-1/igt@[email protected]
[25]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-lnl-4/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-lnl-4/igt@[email protected]
[27]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-lnl-1/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-lnl-1/igt@[email protected]
[29]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-lnl-1/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-lnl-8/igt@[email protected]
[31]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-lnl-8/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-lnl-8/igt@[email protected]
[33]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-lnl-4/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-lnl-4/igt@[email protected]
[35]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-lnl-4/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-lnl-4/igt@[email protected]
[37]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-lnl-6/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-lnl-6/igt@[email protected]
[39]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-lnl-6/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-lnl-3/igt@[email protected]
[41]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-lnl-3/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-lnl-3/igt@[email protected]
[43]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-lnl-2/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-lnl-2/igt@[email protected]
[45]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-lnl-2/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-lnl-7/igt@[email protected]
[47]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-lnl-7/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-lnl-7/igt@[email protected]
[49]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-lnl-5/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-lnl-5/igt@[email protected]
- shard-bmg: ([SKIP][51], [PASS][52], [PASS][53], [PASS][54], [PASS][55], [PASS][56], [PASS][57], [PASS][58], [PASS][59], [PASS][60], [PASS][61], [PASS][62], [PASS][63], [PASS][64], [PASS][65], [PASS][66], [PASS][67], [PASS][68], [PASS][69], [PASS][70], [PASS][71], [PASS][72], [PASS][73], [PASS][74], [PASS][75], [PASS][76]) ([Intel XE#2457]) -> ([ABORT][77], [ABORT][78], [ABORT][79], [ABORT][80], [ABORT][81], [ABORT][82], [ABORT][83], [ABORT][84], [ABORT][85], [ABORT][86], [ABORT][87], [ABORT][88], [ABORT][89], [ABORT][90], [ABORT][91], [ABORT][92])
[51]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-bmg-4/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-bmg-3/igt@[email protected]
[53]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-bmg-3/igt@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-bmg-5/igt@[email protected]
[55]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-bmg-6/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-bmg-6/igt@[email protected]
[57]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-bmg-7/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-bmg-8/igt@[email protected]
[59]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-bmg-1/igt@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-bmg-2/igt@[email protected]
[61]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-bmg-2/igt@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-bmg-4/igt@[email protected]
[63]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-bmg-7/igt@[email protected]
[64]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-bmg-5/igt@[email protected]
[65]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-bmg-2/igt@[email protected]
[66]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-bmg-7/igt@[email protected]
[67]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-bmg-8/igt@[email protected]
[68]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-bmg-4/igt@[email protected]
[69]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-bmg-8/igt@[email protected]
[70]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-bmg-1/igt@[email protected]
[71]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-bmg-1/igt@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-bmg-3/igt@[email protected]
[73]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-bmg-6/igt@[email protected]
[74]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-bmg-6/igt@[email protected]
[75]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-bmg-5/igt@[email protected]
[76]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-bmg-4/igt@[email protected]
[77]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-bmg-4/igt@[email protected]
[78]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-bmg-4/igt@[email protected]
[79]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-bmg-4/igt@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-bmg-8/igt@[email protected]
[81]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-bmg-1/igt@[email protected]
[82]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-bmg-1/igt@[email protected]
[83]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-bmg-7/igt@[email protected]
[84]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-bmg-7/igt@[email protected]
[85]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-bmg-2/igt@[email protected]
[86]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-bmg-2/igt@[email protected]
[87]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-bmg-6/igt@[email protected]
[88]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-bmg-6/igt@[email protected]
[89]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-bmg-3/igt@[email protected]
[90]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-bmg-3/igt@[email protected]
[91]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-bmg-5/igt@[email protected]
[92]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-bmg-5/igt@[email protected]
- shard-adlp: ([PASS][93], [SKIP][94], [PASS][95], [PASS][96], [PASS][97], [PASS][98], [PASS][99], [PASS][100], [PASS][101], [PASS][102], [PASS][103], [PASS][104], [PASS][105], [PASS][106], [PASS][107], [PASS][108], [PASS][109], [PASS][110], [PASS][111], [PASS][112], [PASS][113], [PASS][114], [PASS][115], [PASS][116], [PASS][117], [PASS][118]) ([Intel XE#378]) -> ([ABORT][119], [ABORT][120], [ABORT][121], [ABORT][122], [ABORT][123], [ABORT][124], [ABORT][125], [ABORT][126], [ABORT][127], [ABORT][128], [ABORT][129], [ABORT][130], [ABORT][131], [ABORT][132], [ABORT][133], [ABORT][134], [ABORT][135], [ABORT][136], [ABORT][137], [ABORT][138], [ABORT][139], [ABORT][140])
[93]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-adlp-8/igt@[email protected]
[94]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-adlp-1/igt@[email protected]
[95]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-adlp-1/igt@[email protected]
[96]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-adlp-1/igt@[email protected]
[97]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-adlp-3/igt@[email protected]
[98]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-adlp-4/igt@[email protected]
[99]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-adlp-4/igt@[email protected]
[100]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-adlp-4/igt@[email protected]
[101]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-adlp-8/igt@[email protected]
[102]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-adlp-3/igt@[email protected]
[103]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-adlp-3/igt@[email protected]
[104]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-adlp-6/igt@[email protected]
[105]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-adlp-2/igt@[email protected]
[106]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-adlp-6/igt@[email protected]
[107]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-adlp-1/igt@[email protected]
[108]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-adlp-1/igt@[email protected]
[109]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-adlp-9/igt@[email protected]
[110]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-adlp-9/igt@[email protected]
[111]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-adlp-3/igt@[email protected]
[112]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-adlp-6/igt@[email protected]
[113]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-adlp-2/igt@[email protected]
[114]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-adlp-2/igt@[email protected]
[115]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-adlp-8/igt@[email protected]
[116]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-adlp-8/igt@[email protected]
[117]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-adlp-9/igt@[email protected]
[118]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-adlp-4/igt@[email protected]
[119]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-adlp-6/igt@[email protected]
[120]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-adlp-6/igt@[email protected]
[121]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-adlp-6/igt@[email protected]
[122]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-adlp-9/igt@[email protected]
[123]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-adlp-9/igt@[email protected]
[124]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-adlp-9/igt@[email protected]
[125]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-adlp-8/igt@[email protected]
[126]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-adlp-8/igt@[email protected]
[127]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-adlp-8/igt@[email protected]
[128]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-adlp-2/igt@[email protected]
[129]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-adlp-2/igt@[email protected]
[130]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-adlp-2/igt@[email protected]
[131]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-adlp-3/igt@[email protected]
[132]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-adlp-3/igt@[email protected]
[133]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-adlp-3/igt@[email protected]
[134]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-adlp-3/igt@[email protected]
[135]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-adlp-4/igt@[email protected]
[136]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-adlp-4/igt@[email protected]
[137]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-adlp-4/igt@[email protected]
[138]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-adlp-1/igt@[email protected]
[139]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-adlp-1/igt@[email protected]
[140]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-adlp-1/igt@[email protected]
- shard-dg2-set2: ([PASS][141], [PASS][142], [PASS][143], [PASS][144], [PASS][145], [PASS][146], [PASS][147], [PASS][148], [PASS][149], [PASS][150], [PASS][151], [PASS][152], [PASS][153], [PASS][154], [PASS][155], [PASS][156], [PASS][157], [PASS][158], [PASS][159], [PASS][160], [PASS][161], [SKIP][162], [PASS][163], [PASS][164], [PASS][165], [PASS][166]) ([Intel XE#378]) -> ([ABORT][167], [ABORT][168], [ABORT][169], [ABORT][170], [ABORT][171], [ABORT][172], [ABORT][173], [ABORT][174], [ABORT][175], [ABORT][176], [ABORT][177], [ABORT][178], [ABORT][179], [ABORT][180], [ABORT][181], [ABORT][182], [ABORT][183], [ABORT][184], [ABORT][185], [ABORT][186], [ABORT][187], [ABORT][188], [ABORT][189])
[141]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-dg2-466/igt@[email protected]
[142]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-dg2-433/igt@[email protected]
[143]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-dg2-464/igt@[email protected]
[144]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-dg2-464/igt@[email protected]
[145]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-dg2-432/igt@[email protected]
[146]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-dg2-463/igt@[email protected]
[147]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-dg2-435/igt@[email protected]
[148]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-dg2-463/igt@[email protected]
[149]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-dg2-435/igt@[email protected]
[150]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-dg2-464/igt@[email protected]
[151]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-dg2-464/igt@[email protected]
[152]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-dg2-463/igt@[email protected]
[153]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-dg2-464/igt@[email protected]
[154]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-dg2-436/igt@[email protected]
[155]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-dg2-436/igt@[email protected]
[156]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-dg2-464/igt@[email protected]
[157]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-dg2-435/igt@[email protected]
[158]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-dg2-433/igt@[email protected]
[159]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-dg2-434/igt@[email protected]
[160]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-dg2-466/igt@[email protected]
[161]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-dg2-466/igt@[email protected]
[162]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-dg2-432/igt@[email protected]
[163]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-dg2-432/igt@[email protected]
[164]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-dg2-432/igt@[email protected]
[165]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-dg2-434/igt@[email protected]
[166]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0/shard-dg2-464/igt@[email protected]
[167]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-dg2-434/igt@[email protected]
[168]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-dg2-434/igt@[email protected]
[169]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-dg2-434/igt@[email protected]
[170]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-dg2-434/igt@[email protected]
[171]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-dg2-433/igt@[email protected]
[172]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-dg2-433/igt@[email protected]
[173]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-dg2-433/igt@[email protected]
[174]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-dg2-436/igt@[email protected]
[175]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-dg2-436/igt@[email protected]
[176]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-dg2-436/igt@[email protected]
[177]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-dg2-463/igt@[email protected]
[178]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-dg2-463/igt@[email protected]
[179]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-dg2-463/igt@[email protected]
[180]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-dg2-466/igt@[email protected]
[181]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-dg2-466/igt@[email protected]
[182]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-dg2-466/igt@[email protected]
[183]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-dg2-435/igt@[email protected]
[184]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-dg2-435/igt@[email protected]
[185]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-dg2-435/igt@[email protected]
[186]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-dg2-435/igt@[email protected]
[187]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-dg2-432/igt@[email protected]
[188]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-dg2-432/igt@[email protected]
[189]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-151431v1/shard-dg2-432/igt@[email protected]

[Intel XE#2457]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2457
[Intel XE#378]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/378

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

* IGT: IGT_8447 -> IGT_8449
* Linux: xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0 -> xe-pw-151431v1

IGT_8447: 8447
IGT_8449: bfa2e7bb44a2e0fe43d2ae474db0dff766080b24 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
xe-3385-7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0: 7c6cc6e59baa15cc1b10fe5bba36219ae6d227b0
xe-pw-151431v1: 151431v1

== Logs ==

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

#5 lore raw
In reply to Nitin Gote
Quoted 6 lines · Nitin Gote

Add the DRM_XE_QUERY_CONFIG_FLAG_HAS_DISABLE_NULL_QUERY device query flag which indicates whether a device supports DIS_NULL_QUERY (Disable null anyhit shader query mechanism). The intent is for UMDs
to use this query and opt-in DRM_XE_EXEC_QUEUE_DISABLE_NULL_QUERY flag to disable null query mechanism for anyhit shader by setting DIS_NULL_QUERY bit of RT_CTRL register for Xe2.

it seems like this commit has been over squashed and this commit message doesn't really match what it's doing. This isn't just adding a DRM_XE_QUERY_* (what the title implies), it's actually implementing the DRM_XE_EXEC_QUEUE_*

Quoted 37 lines

v2:
- Use xe_rtp_match_first_render_or_compute() api to check render_or_compute. (Tejas)
- Validate args->flags (Tejas/Matthew)
- Add proper kernel-doc for both DRM_XE_EXEC_QUEUE_DIS_NULL_QUERY and DRM_XE_EXEC_QUEUE_LOW_LATENCY_HINT. (Matthew)

v3:
- Rename DRM_XE_EXEC_QUEUE_DIS_NULL_QUERY to DRM_XE_EXEC_QUEUE_DISABLE_NULL_QUERY. (Matthew)
- Move implementaion from exec queue creation time to WA BB program. (Matthew)

---
Hi,

Please note the review comments from previous rev2, addressed in this patch.
https://patchwork.freedesktop.org/patch/660580/?series=150601&rev=2

.../gpu/drm/xe/instructions/xe_mi_commands.h  |  4 ++
drivers/gpu/drm/xe/regs/xe_gt_regs.h          |  2 +
drivers/gpu/drm/xe/xe_exec_queue.c            |  9 ++-
drivers/gpu/drm/xe/xe_exec_queue_types.h      |  2 +
drivers/gpu/drm/xe/xe_gt_mcr.c                |  1 -
drivers/gpu/drm/xe/xe_lrc.c                   | 65 +++++++++++++++++++
drivers/gpu/drm/xe/xe_query.c                 |  3 +-
include/uapi/drm/xe_drm.h                     | 12 ++++
8 files changed, 95 insertions(+), 3 deletions(-)
drivers/gpu/drm/xe/instructions/xe_mi_commands.h +0 -0
index e3f5e8bb3ebc..84e889528464 100644

drivers/gpu/drm/xe/instructions/xe_mi_commands.h line 86

Quoted 7 lines
drivers/gpu/drm/xe/instructions/xe_mi_commands.h +4 -0
@@ -80,4 +80,8 @@
 #define MI_SET_APPID_SESSION_ID_MASK	REG_GENMASK(6, 0)
 #define MI_SET_APPID_SESSION_ID(x)	REG_FIELD_PREP(MI_SET_APPID_SESSION_ID_MASK, x)
 
+#define MI_SEMAPHORE_WAIT		__MI_INSTR(0x1c)
+#define  MI_SEMAPHORE_POLL		(1 << 15)
+#define  MI_SEMAPHORE_SAD_EQ_SDD	(4 << 12)
+#define  MI_SEMAPHORE_REGISTER_POLL	(1 << 16)

look at the defines above and implement it according to them. There are multiple things wrong wrt coding style here:

1) the MI definition is sorted by its number. 0x1c shouldn't be the last in the file
2) bits definition should be sorted, highest number first, to follow the bspec and be easy to compare
3) don't use shifts, use REG_BIT()
4) there's a missing space in the bits definitions

drivers/gpu/drm/xe/regs/xe_gt_regs.h line 58

Quoted 10 lines
drivers/gpu/drm/xe/instructions/xe_mi_commands.h +0 -0
 #endif
drivers/gpu/drm/xe/regs/xe_gt_regs.h +1 -0
index 5cd5ab8529c5..8234789f05b7 100644
@@ -55,6 +55,8 @@
 #define   MTL_MCR_GROUPID			REG_GENMASK(11, 8)
 #define   MTL_MCR_INSTANCEID			REG_GENMASK(3, 0)
 
+#define STEER_SEMAPHORE				XE_REG(0xFD0)

ditto, should be sorted too, but it also clashes with MCFG_MCR_SELECTOR. I'm actually not sure why we are using MCFG_MCR_SELECTOR name... probably a copy & paste from i915. That register is indeed called STEER_SEMAPHORE in bspec.

Quoted 43 lines
drivers/gpu/drm/xe/regs/xe_gt_regs.h +1 -0
+
 #define PS_INVOCATION_COUNT			XE_REG(0x2348)
 
 #define XELP_GLOBAL_MOCS(i)			XE_REG(0x4000 + (i) * 4)
drivers/gpu/drm/xe/xe_exec_queue.c +8 -1
index 8991b4aed440..18a0bee38eed 100644
@@ -131,6 +131,9 @@ static int __xe_exec_queue_init(struct xe_exec_queue *q)
 			flags |= XE_LRC_CREATE_RUNALONE;
 	}
 
+	if (q->flags & EXEC_QUEUE_DISABLE_NULL_QUERY)
+		flags |= EXEC_QUEUE_DISABLE_NULL_QUERY;
+
 	for (i = 0; i < q->width; ++i) {
 		q->lrc[i] = xe_lrc_create(q->hwe, q->vm, SZ_16K, q->msix_vec, flags);
 		if (IS_ERR(q->lrc[i])) {
@@ -597,7 +600,8 @@ int xe_exec_queue_create_ioctl(struct drm_device *dev, void *data,
 	u32 len;
 	int err;
 
-	if (XE_IOCTL_DBG(xe, args->flags & ~DRM_XE_EXEC_QUEUE_LOW_LATENCY_HINT) ||
+	if (XE_IOCTL_DBG(xe, args->flags &
+	    ~(DRM_XE_EXEC_QUEUE_LOW_LATENCY_HINT | DRM_XE_EXEC_QUEUE_DISABLE_NULL_QUERY)) ||
 	    XE_IOCTL_DBG(xe, args->reserved[0] || args->reserved[1]))
 		return -EINVAL;
 
@@ -616,6 +620,9 @@ int xe_exec_queue_create_ioctl(struct drm_device *dev, void *data,
 	if (args->flags & DRM_XE_EXEC_QUEUE_LOW_LATENCY_HINT)
 		flags |= EXEC_QUEUE_FLAG_LOW_LATENCY;
 
+	if (args->flags & DRM_XE_EXEC_QUEUE_DISABLE_NULL_QUERY)
+		flags |= EXEC_QUEUE_DISABLE_NULL_QUERY;
+
 	if (eci[0].engine_class == DRM_XE_ENGINE_CLASS_VM_BIND) {
 		if (XE_IOCTL_DBG(xe, args->width != 1) ||
 		    XE_IOCTL_DBG(xe, args->num_placements != 1) ||
drivers/gpu/drm/xe/xe_exec_queue_types.h +0 -0
index cc1cffb5c87f..b62502a18c1b 100644

drivers/gpu/drm/xe/xe_exec_queue_types.h struct xe_exec_queue { · line 91

Quoted 5 lines
drivers/gpu/drm/xe/xe_exec_queue_types.h +2 -0
@@ -87,6 +87,8 @@ struct xe_exec_queue {
 #define EXEC_QUEUE_FLAG_HIGH_PRIORITY		BIT(4)
 /* flag to indicate low latency hint to guc */
 #define EXEC_QUEUE_FLAG_LOW_LATENCY		BIT(5)
+/* flag to indicate disable null query hint */
+#define EXEC_QUEUE_DISABLE_NULL_QUERY		BIT(6)

^ missing FLAG here to follow the other defines

Quoted 54 lines
drivers/gpu/drm/xe/xe_exec_queue_types.h +0 -0
 	/**
 	 * @flags: flags for this exec queue, should statically setup aside from ban
drivers/gpu/drm/xe/xe_gt_mcr.c +0 -1
index 64a2f0d6aaf9..a7624b30d0c9 100644
@@ -46,7 +46,6 @@
 * MCR registers are not available on Virtual Function (VF).
 */
 
-#define STEER_SEMAPHORE		XE_REG(0xFD0)
 
 static inline struct xe_reg to_xe_reg(struct xe_reg_mcr reg_mcr)
 {
drivers/gpu/drm/xe/xe_lrc.c +17 -0
index d2ad8fe737eb..6fc09df67442 100644
@@ -13,6 +13,7 @@
 #include "instructions/xe_gfxpipe_commands.h"
 #include "instructions/xe_gfx_state_commands.h"
 #include "regs/xe_engine_regs.h"
+#include "regs/xe_gt_regs.h"
 #include "regs/xe_lrc_layout.h"
 #include "xe_bb.h"
 #include "xe_bo.h"
@@ -25,6 +26,7 @@
 #include "xe_map.h"
 #include "xe_memirq.h"
 #include "xe_mmio.h"
+#include "xe_rtp.h"
 #include "xe_sriov.h"
 #include "xe_trace_lrc.h"
 #include "xe_vm.h"
@@ -972,9 +974,56 @@ static ssize_t wa_bb_setup_utilization(struct xe_lrc *lrc, struct xe_hw_engine *
 	return cmd - batch;
 }
 
+/*
+ * wa_bb_disable_null_query() - Emit commands in the WA BB
+ * to disable or enable NULL Anyhit Shader Query Mechanism.
+ *
+ * Some platforms require a workaround to disable (or enable) the
+ * Anyhit Shader NULL QUERY for specific engines (typically the
+ * first render or compute engine). This function emits a sequence
+ * of MI commands into the workaround batch buffer (WA BB) to perform
+ * a multicast write to the RT_CTRL register, setting or clearing the
+ * DIS_NULL_QUERY bit.
+ *
+ * The sequence includes a semaphore wait to ensure proper ordering,
+ * followed by MI_LOAD_REGISTER_IMM commands to write the desired value
+ * to the RT_CTRL register, and finally restores the semaphore state.
+ *

drivers/gpu/drm/xe/xe_lrc.c static ssize_t wa_bb_setup_utilization(struct xe_lrc *lrc, struct xe_hw_engine * · line 1001

Quoted 10 lines
drivers/gpu/drm/xe/xe_lrc.c +10 -0
+ */
+static ssize_t wa_bb_disable_null_query(struct xe_gt *gt, struct xe_hw_engine *hwe,
+					u32 *batch, size_t max_size, u32 value)
+{
+	u32 *cmd = batch;
+	struct xe_reg_mcr reg_mcr = RT_CTRL;
+	struct xe_reg reg = reg_mcr.__reg;
+	struct xe_reg reg_sema = STEER_SEMAPHORE;
+
+	/* Add WARN_ON check for minimum required space (10 DWORDs) */

no need for this comment

drivers/gpu/drm/xe/xe_lrc.c static ssize_t wa_bb_setup_utilization(struct xe_lrc *lrc, struct xe_hw_engine * · line 1009

Quoted 8 lines
drivers/gpu/drm/xe/xe_lrc.c +8 -0
+	if (xe_gt_WARN_ON(gt, max_size < 10))
+		return -ENOSPC;
+
+	if (xe_rtp_match_first_render_or_compute(gt, hwe)) {
+		*cmd++ = (MI_SEMAPHORE_WAIT | MI_SEMAPHORE_POLL |
+			  MI_SEMAPHORE_SAD_EQ_SDD | MI_SEMAPHORE_REGISTER_POLL);
+		*cmd++ = 1;
+		*cmd++ = reg_sema.addr;

I think we can simply use

*cmd++ = STEER_SEMAPHORE.addr

and similarly in other places here and let go the local vars above.

Quoted 7 lines
drivers/gpu/drm/xe/xe_lrc.c +7 -0
+		*cmd++ = 0;
+		*cmd++ = MI_LOAD_REGISTER_IMM | MI_LRI_NUM_REGS(1) | MI_LRI_MMIO_REMAP_EN;
+		*cmd++ = reg.addr;
+		*cmd++ = value;
+		*cmd++ = MI_LOAD_REGISTER_IMM | MI_LRI_NUM_REGS(1) | MI_LRI_MMIO_REMAP_EN;
+		*cmd++ = reg_sema.addr;
+		*cmd++ = 1;

drivers/gpu/drm/xe/xe_lrc.c static ssize_t wa_bb_setup_utilization(struct xe_lrc *lrc, struct xe_hw_engine * · line 1026

Quoted 10 lines
drivers/gpu/drm/xe/xe_lrc.c +7 -0
+	}
+
+	return cmd - batch;
+}
+
 struct wa_bb_setup {
 	ssize_t (*setup)(struct xe_lrc *lrc, struct xe_hw_engine *hwe,
 			 u32 *batch, size_t max_size);
+	ssize_t (*disable_null_query)(struct xe_gt *gt, struct xe_hw_engine *hwe,
+				      u32 *batch, size_t max_size, u32 value);

this is not how this works... you should define just your function, and add it to the array below as a "setup function".

drivers/gpu/drm/xe/xe_lrc.c static int setup_wa_bb(struct xe_lrc *lrc, struct xe_hw_engine *hwe) · line 1034

Quoted 8 lines
drivers/gpu/drm/xe/xe_lrc.c +1 -0
 };
 
 static int setup_wa_bb(struct xe_lrc *lrc, struct xe_hw_engine *hwe)
@@ -982,6 +1031,7 @@ static int setup_wa_bb(struct xe_lrc *lrc, struct xe_hw_engine *hwe)
 	const size_t max_size = LRC_WA_BB_SIZE;
 	static const struct wa_bb_setup funcs[] = {
 		{ .setup = wa_bb_setup_utilization },
+		{ .disable_null_query = wa_bb_disable_null_query },

should have been:

{ .setup = wa_bb_disable_null_query },

But also beware we are refactoring this a little bit, so on next rev you will hit some conflicts. See

drm/xe: LRC refactors @ https://patchwork.freedesktop.org/series/151152/
More missing XeLP workarounds @ https://patchwork.freedesktop.org/series/149097/

drivers/gpu/drm/xe/xe_lrc.c static int setup_wa_bb(struct xe_lrc *lrc, struct xe_hw_engine *hwe) · line 1053

Quoted 8 lines
drivers/gpu/drm/xe/xe_lrc.c +1 -0
 	};
 	ssize_t remain;
 	u32 *cmd, *buf = NULL;
@@ -1000,6 +1050,18 @@ static int setup_wa_bb(struct xe_lrc *lrc, struct xe_hw_engine *hwe)
 	for (size_t i = 0; i < ARRAY_SIZE(funcs); i++) {
 		ssize_t len = funcs[i].setup(lrc, hwe, cmd, remain);
 
+		if (((GRAPHICS_VER(gt_to_xe(lrc->gt)) >= 20) &&

this check should be inside the setup function, not here.

Also, is this a WA? It's looking like it, which means you need a WA number, add it to drivers/gpu/drm/xe/xe_wa_oob.rules with the graphics range where it applies and then in wa_bb_disable_null_query() you use:

	if (!XE_WA(gt, ...))
		return 0;
Quoted 15 lines
drivers/gpu/drm/xe/xe_lrc.c +11 -0
+		     (GRAPHICS_VER(gt_to_xe(lrc->gt)) < 30))) {
+			if (lrc->flags & EXEC_QUEUE_DISABLE_NULL_QUERY)
+				len += funcs[i].disable_null_query(lrc->gt, hwe,
+								   cmd, remain,
+								   DIS_NULL_QUERY);
+			else
+				len += funcs[i].disable_null_query(lrc->gt, hwe,
+								   cmd, remain,
+								   ~DIS_NULL_QUERY);
+		}
+
 		remain -= len;
 
 		/*

drivers/gpu/drm/xe/xe_lrc.c static int xe_lrc_init(struct xe_lrc *lrc, struct xe_hw_engine *hwe, · line 1240

Quoted 4 lines
drivers/gpu/drm/xe/xe_lrc.c +1 -0
@@ -1175,6 +1237,9 @@ static int xe_lrc_init(struct xe_lrc *lrc, struct xe_hw_engine *hwe,
 	map = __xe_lrc_start_seqno_map(lrc);
 	xe_map_write32(lrc_to_xe(lrc), &map, lrc->fence_ctx.next_seqno - 1);
 
+	if (init_flags & EXEC_QUEUE_DISABLE_NULL_QUERY)

ahn? Please don't mix LRC_*_FLAGS and EXEC_QUEUE_*_FLAGS. This is a recipe for disaster. I don't see why you'd need to set any flag in lrc.

Lucas De Marchi

Quoted 60 lines
drivers/gpu/drm/xe/xe_lrc.c +2 -0
+		lrc->flags |= EXEC_QUEUE_DISABLE_NULL_QUERY;
+
 	err = setup_wa_bb(lrc, hwe);
 	if (err)
 		goto err_lrc_finish;
drivers/gpu/drm/xe/xe_query.c +2 -1
index d517ec9ddcbf..5b48befd32cd 100644
@@ -344,7 +344,8 @@ static int query_config(struct xe_device *xe, struct drm_xe_device_query *query)
 		config->info[DRM_XE_QUERY_CONFIG_FLAGS] |=
 			DRM_XE_QUERY_CONFIG_FLAG_HAS_CPU_ADDR_MIRROR;
 	config->info[DRM_XE_QUERY_CONFIG_FLAGS] |=
-			DRM_XE_QUERY_CONFIG_FLAG_HAS_LOW_LATENCY;
+			(DRM_XE_QUERY_CONFIG_FLAG_HAS_LOW_LATENCY |
+			DRM_XE_QUERY_CONFIG_FLAG_HAS_DISABLE_NULL_QUERY);
 	config->info[DRM_XE_QUERY_CONFIG_MIN_ALIGNMENT] =
 		xe->info.vram_flags & XE_VRAM_FLAGS_NEED64K ? SZ_64K : SZ_4K;
 	config->info[DRM_XE_QUERY_CONFIG_VA_BITS] = xe->info.va_bits;
include/uapi/drm/xe_drm.h +12 -0
index e2426413488f..adab49e63757 100644
@@ -397,6 +397,8 @@ struct drm_xe_query_mem_regions {
 *      has low latency hint support
 *    - %DRM_XE_QUERY_CONFIG_FLAG_HAS_CPU_ADDR_MIRROR - Flag is set if the
 *      device has CPU address mirroring support
+ *    - %DRM_XE_QUERY_CONFIG_FLAG_HAS_DISABLE_NULL_QUERY - Flag is set if the
+ *      device has null query support for anyhit shader.
 *  - %DRM_XE_QUERY_CONFIG_MIN_ALIGNMENT - Minimal memory alignment
 *    required by this device, typically SZ_4K or SZ_64K
 *  - %DRM_XE_QUERY_CONFIG_VA_BITS - Maximum bits of a virtual address
@@ -415,6 +417,7 @@ struct drm_xe_query_config {
 	#define DRM_XE_QUERY_CONFIG_FLAG_HAS_VRAM	(1 << 0)
 	#define DRM_XE_QUERY_CONFIG_FLAG_HAS_LOW_LATENCY	(1 << 1)
 	#define DRM_XE_QUERY_CONFIG_FLAG_HAS_CPU_ADDR_MIRROR	(1 << 2)
+	#define DRM_XE_QUERY_CONFIG_FLAG_HAS_DISABLE_NULL_QUERY	(1 << 3)
 #define DRM_XE_QUERY_CONFIG_MIN_ALIGNMENT		2
 #define DRM_XE_QUERY_CONFIG_VA_BITS			3
 #define DRM_XE_QUERY_CONFIG_MAX_EXEC_QUEUE_PRIORITY	4
@@ -1270,7 +1273,16 @@ struct drm_xe_exec_queue_create {
 	/** @vm_id: VM to use for this exec queue */
 	__u32 vm_id;
 
+	/** DRM_XE_QUERY_CONFIG_FLAG_HAS_LOW_LATENCY - \
+	 *	Flag is set if the device has low latency hint support
+	 */
 #define DRM_XE_EXEC_QUEUE_LOW_LATENCY_HINT	(1 << 0)
+
+	/** DRM_XE_EXEC_QUEUE_DISABLE_NULL_QUERY - \
+	 *	flag is use to disable null query check for Anyhit shader
+	 */
+#define DRM_XE_EXEC_QUEUE_DISABLE_NULL_QUERY	(1 << 1)
+
 	/** @flags: flags to use for this exec queue */
 	__u32 flags;
 
Signature · 1 line
2.25.1
maintainer
#6 lore raw
Quoted 61 lines · Lucas De Marchi
Quoted 6 lines · Nitin Gote

Add the DRM_XE_QUERY_CONFIG_FLAG_HAS_DISABLE_NULL_QUERY device query flag which indicates whether a device supports DIS_NULL_QUERY (Disable null anyhit shader query mechanism). The intent is for UMDs
to use this query and opt-in DRM_XE_EXEC_QUEUE_DISABLE_NULL_QUERY flag to disable null query mechanism for anyhit shader by setting DIS_NULL_QUERY bit of RT_CTRL register for Xe2.

it seems like this commit has been over squashed and this commit message doesn't really match what it's doing. This isn't just adding a DRM_XE_QUERY_* (what the title implies), it's actually implementing the DRM_XE_EXEC_QUEUE_*

Quoted 37 lines

v2:
- Use xe_rtp_match_first_render_or_compute() api to check render_or_compute. (Tejas)
- Validate args->flags (Tejas/Matthew)
- Add proper kernel-doc for both DRM_XE_EXEC_QUEUE_DIS_NULL_QUERY and DRM_XE_EXEC_QUEUE_LOW_LATENCY_HINT. (Matthew)

v3:
- Rename DRM_XE_EXEC_QUEUE_DIS_NULL_QUERY to DRM_XE_EXEC_QUEUE_DISABLE_NULL_QUERY. (Matthew)
- Move implementaion from exec queue creation time to WA BB program. (Matthew)

---
Hi,

Please note the review comments from previous rev2, addressed in this patch.
https://patchwork.freedesktop.org/patch/660580/?series=150601&rev=2

.../gpu/drm/xe/instructions/xe_mi_commands.h  |  4 ++
drivers/gpu/drm/xe/regs/xe_gt_regs.h          |  2 +
drivers/gpu/drm/xe/xe_exec_queue.c            |  9 ++-
drivers/gpu/drm/xe/xe_exec_queue_types.h      |  2 +
drivers/gpu/drm/xe/xe_gt_mcr.c                |  1 -
drivers/gpu/drm/xe/xe_lrc.c                   | 65 +++++++++++++++++++
drivers/gpu/drm/xe/xe_query.c                 |  3 +-
include/uapi/drm/xe_drm.h                     | 12 ++++
8 files changed, 95 insertions(+), 3 deletions(-)
drivers/gpu/drm/xe/instructions/xe_mi_commands.h +0 -0
index e3f5e8bb3ebc..84e889528464 100644

drivers/gpu/drm/xe/instructions/xe_mi_commands.h line 86

Quoted 7 lines
drivers/gpu/drm/xe/instructions/xe_mi_commands.h +4 -0
@@ -80,4 +80,8 @@
 #define MI_SET_APPID_SESSION_ID_MASK	REG_GENMASK(6, 0)
 #define MI_SET_APPID_SESSION_ID(x)	REG_FIELD_PREP(MI_SET_APPID_SESSION_ID_MASK, x)
 
+#define MI_SEMAPHORE_WAIT		__MI_INSTR(0x1c)
+#define  MI_SEMAPHORE_POLL		(1 << 15)
+#define  MI_SEMAPHORE_SAD_EQ_SDD	(4 << 12)
+#define  MI_SEMAPHORE_REGISTER_POLL	(1 << 16)

look at the defines above and implement it according to them. There are multiple things wrong wrt coding style here:

Quoted 7 lines

1) the MI definition is sorted by its number. 0x1c shouldn't be the last in the file
2) bits definition should be sorted, highest number first, to follow the bspec and be easy to compare
3) don't use shifts, use REG_BIT()
4) there's a missing space in the bits definitions

Thanks Lucas - it was late when I was reviewing this and apparently missed a ton things.

Agree with everything Lucas says here.

One follow up below.

Quoted 228 lines

drivers/gpu/drm/xe/regs/xe_gt_regs.h line 58

Quoted 11 lines
drivers/gpu/drm/xe/instructions/xe_mi_commands.h +0 -0
 #endif
drivers/gpu/drm/xe/regs/xe_gt_regs.h +1 -0
index 5cd5ab8529c5..8234789f05b7 100644
@@ -55,6 +55,8 @@
 #define   MTL_MCR_GROUPID			REG_GENMASK(11, 8)
 #define   MTL_MCR_INSTANCEID			REG_GENMASK(3, 0)
 
+#define STEER_SEMAPHORE				XE_REG(0xFD0)

ditto, should be sorted too, but it also clashes with MCFG_MCR_SELECTOR. I'm actually not sure why we are using MCFG_MCR_SELECTOR name... probably a copy & paste from i915. That register is indeed called STEER_SEMAPHORE in bspec.

Quoted 43 lines
drivers/gpu/drm/xe/regs/xe_gt_regs.h +1 -0
+
 #define PS_INVOCATION_COUNT			XE_REG(0x2348)
 
 #define XELP_GLOBAL_MOCS(i)			XE_REG(0x4000 + (i) * 4)
drivers/gpu/drm/xe/xe_exec_queue.c +8 -1
index 8991b4aed440..18a0bee38eed 100644
@@ -131,6 +131,9 @@ static int __xe_exec_queue_init(struct xe_exec_queue *q)
 			flags |= XE_LRC_CREATE_RUNALONE;
 	}
 
+	if (q->flags & EXEC_QUEUE_DISABLE_NULL_QUERY)
+		flags |= EXEC_QUEUE_DISABLE_NULL_QUERY;
+
 	for (i = 0; i < q->width; ++i) {
 		q->lrc[i] = xe_lrc_create(q->hwe, q->vm, SZ_16K, q->msix_vec, flags);
 		if (IS_ERR(q->lrc[i])) {
@@ -597,7 +600,8 @@ int xe_exec_queue_create_ioctl(struct drm_device *dev, void *data,
 	u32 len;
 	int err;
 
-	if (XE_IOCTL_DBG(xe, args->flags & ~DRM_XE_EXEC_QUEUE_LOW_LATENCY_HINT) ||
+	if (XE_IOCTL_DBG(xe, args->flags &
+	    ~(DRM_XE_EXEC_QUEUE_LOW_LATENCY_HINT | DRM_XE_EXEC_QUEUE_DISABLE_NULL_QUERY)) ||
 	    XE_IOCTL_DBG(xe, args->reserved[0] || args->reserved[1]))
 		return -EINVAL;
 
@@ -616,6 +620,9 @@ int xe_exec_queue_create_ioctl(struct drm_device *dev, void *data,
 	if (args->flags & DRM_XE_EXEC_QUEUE_LOW_LATENCY_HINT)
 		flags |= EXEC_QUEUE_FLAG_LOW_LATENCY;
 
+	if (args->flags & DRM_XE_EXEC_QUEUE_DISABLE_NULL_QUERY)
+		flags |= EXEC_QUEUE_DISABLE_NULL_QUERY;
+
 	if (eci[0].engine_class == DRM_XE_ENGINE_CLASS_VM_BIND) {
 		if (XE_IOCTL_DBG(xe, args->width != 1) ||
 		    XE_IOCTL_DBG(xe, args->num_placements != 1) ||
drivers/gpu/drm/xe/xe_exec_queue_types.h +0 -0
index cc1cffb5c87f..b62502a18c1b 100644

drivers/gpu/drm/xe/xe_exec_queue_types.h struct xe_exec_queue { · line 91

Quoted 5 lines
drivers/gpu/drm/xe/xe_exec_queue_types.h +2 -0
@@ -87,6 +87,8 @@ struct xe_exec_queue {
 #define EXEC_QUEUE_FLAG_HIGH_PRIORITY		BIT(4)
 /* flag to indicate low latency hint to guc */
 #define EXEC_QUEUE_FLAG_LOW_LATENCY		BIT(5)
+/* flag to indicate disable null query hint */
+#define EXEC_QUEUE_DISABLE_NULL_QUERY		BIT(6)

^ missing FLAG here to follow the other defines

Quoted 54 lines
drivers/gpu/drm/xe/xe_exec_queue_types.h +0 -0
 	/**
 	 * @flags: flags for this exec queue, should statically setup aside from ban
drivers/gpu/drm/xe/xe_gt_mcr.c +0 -1
index 64a2f0d6aaf9..a7624b30d0c9 100644
@@ -46,7 +46,6 @@
 * MCR registers are not available on Virtual Function (VF).
 */
 
-#define STEER_SEMAPHORE		XE_REG(0xFD0)
 
 static inline struct xe_reg to_xe_reg(struct xe_reg_mcr reg_mcr)
 {
drivers/gpu/drm/xe/xe_lrc.c +17 -0
index d2ad8fe737eb..6fc09df67442 100644
@@ -13,6 +13,7 @@
 #include "instructions/xe_gfxpipe_commands.h"
 #include "instructions/xe_gfx_state_commands.h"
 #include "regs/xe_engine_regs.h"
+#include "regs/xe_gt_regs.h"
 #include "regs/xe_lrc_layout.h"
 #include "xe_bb.h"
 #include "xe_bo.h"
@@ -25,6 +26,7 @@
 #include "xe_map.h"
 #include "xe_memirq.h"
 #include "xe_mmio.h"
+#include "xe_rtp.h"
 #include "xe_sriov.h"
 #include "xe_trace_lrc.h"
 #include "xe_vm.h"
@@ -972,9 +974,56 @@ static ssize_t wa_bb_setup_utilization(struct xe_lrc *lrc, struct xe_hw_engine *
 	return cmd - batch;
 }
 
+/*
+ * wa_bb_disable_null_query() - Emit commands in the WA BB
+ * to disable or enable NULL Anyhit Shader Query Mechanism.
+ *
+ * Some platforms require a workaround to disable (or enable) the
+ * Anyhit Shader NULL QUERY for specific engines (typically the
+ * first render or compute engine). This function emits a sequence
+ * of MI commands into the workaround batch buffer (WA BB) to perform
+ * a multicast write to the RT_CTRL register, setting or clearing the
+ * DIS_NULL_QUERY bit.
+ *
+ * The sequence includes a semaphore wait to ensure proper ordering,
+ * followed by MI_LOAD_REGISTER_IMM commands to write the desired value
+ * to the RT_CTRL register, and finally restores the semaphore state.
+ *

drivers/gpu/drm/xe/xe_lrc.c static ssize_t wa_bb_setup_utilization(struct xe_lrc *lrc, struct xe_hw_engine * · line 1001

Quoted 10 lines
drivers/gpu/drm/xe/xe_lrc.c +10 -0
+ */
+static ssize_t wa_bb_disable_null_query(struct xe_gt *gt, struct xe_hw_engine *hwe,
+					u32 *batch, size_t max_size, u32 value)
+{
+	u32 *cmd = batch;
+	struct xe_reg_mcr reg_mcr = RT_CTRL;
+	struct xe_reg reg = reg_mcr.__reg;
+	struct xe_reg reg_sema = STEER_SEMAPHORE;
+
+	/* Add WARN_ON check for minimum required space (10 DWORDs) */

no need for this comment

drivers/gpu/drm/xe/xe_lrc.c static ssize_t wa_bb_setup_utilization(struct xe_lrc *lrc, struct xe_hw_engine * · line 1009

Quoted 8 lines
drivers/gpu/drm/xe/xe_lrc.c +8 -0
+	if (xe_gt_WARN_ON(gt, max_size < 10))
+		return -ENOSPC;
+
+	if (xe_rtp_match_first_render_or_compute(gt, hwe)) {
+		*cmd++ = (MI_SEMAPHORE_WAIT | MI_SEMAPHORE_POLL |
+			  MI_SEMAPHORE_SAD_EQ_SDD | MI_SEMAPHORE_REGISTER_POLL);
+		*cmd++ = 1;
+		*cmd++ = reg_sema.addr;

I think we can simply use

*cmd++ = STEER_SEMAPHORE.addr

and similarly in other places here and let go the local vars above.

Quoted 7 lines
drivers/gpu/drm/xe/xe_lrc.c +7 -0
+		*cmd++ = 0;
+		*cmd++ = MI_LOAD_REGISTER_IMM | MI_LRI_NUM_REGS(1) | MI_LRI_MMIO_REMAP_EN;
+		*cmd++ = reg.addr;
+		*cmd++ = value;
+		*cmd++ = MI_LOAD_REGISTER_IMM | MI_LRI_NUM_REGS(1) | MI_LRI_MMIO_REMAP_EN;
+		*cmd++ = reg_sema.addr;
+		*cmd++ = 1;

drivers/gpu/drm/xe/xe_lrc.c static ssize_t wa_bb_setup_utilization(struct xe_lrc *lrc, struct xe_hw_engine * · line 1026

Quoted 10 lines
drivers/gpu/drm/xe/xe_lrc.c +7 -0
+	}
+
+	return cmd - batch;
+}
+
 struct wa_bb_setup {
 	ssize_t (*setup)(struct xe_lrc *lrc, struct xe_hw_engine *hwe,
 			 u32 *batch, size_t max_size);
+	ssize_t (*disable_null_query)(struct xe_gt *gt, struct xe_hw_engine *hwe,
+				      u32 *batch, size_t max_size, u32 value);

this is not how this works... you should define just your function, and add it to the array below as a "setup function".

drivers/gpu/drm/xe/xe_lrc.c static int setup_wa_bb(struct xe_lrc *lrc, struct xe_hw_engine *hwe) · line 1034

Quoted 8 lines
drivers/gpu/drm/xe/xe_lrc.c +1 -0
 };
 
 static int setup_wa_bb(struct xe_lrc *lrc, struct xe_hw_engine *hwe)
@@ -982,6 +1031,7 @@ static int setup_wa_bb(struct xe_lrc *lrc, struct xe_hw_engine *hwe)
 	const size_t max_size = LRC_WA_BB_SIZE;
 	static const struct wa_bb_setup funcs[] = {
 		{ .setup = wa_bb_setup_utilization },
+		{ .disable_null_query = wa_bb_disable_null_query },

should have been:

{ .setup = wa_bb_disable_null_query },

But also beware we are refactoring this a little bit, so on next rev you will hit some conflicts. See

drm/xe: LRC refactors @ https://patchwork.freedesktop.org/series/151152/
More missing XeLP workarounds @ https://patchwork.freedesktop.org/series/149097/

drivers/gpu/drm/xe/xe_lrc.c static int setup_wa_bb(struct xe_lrc *lrc, struct xe_hw_engine *hwe) · line 1053

Quoted 8 lines
drivers/gpu/drm/xe/xe_lrc.c +1 -0
 	};
 	ssize_t remain;
 	u32 *cmd, *buf = NULL;
@@ -1000,6 +1050,18 @@ static int setup_wa_bb(struct xe_lrc *lrc, struct xe_hw_engine *hwe)
 	for (size_t i = 0; i < ARRAY_SIZE(funcs); i++) {
 		ssize_t len = funcs[i].setup(lrc, hwe, cmd, remain);
 
+		if (((GRAPHICS_VER(gt_to_xe(lrc->gt)) >= 20) &&

this check should be inside the setup function, not here.

Also, is this a WA? It's looking like it, which means you need a WA number, add it to drivers/gpu/drm/xe/xe_wa_oob.rules with the graphics range where it applies and then in wa_bb_disable_null_query() you use:

	if (!XE_WA(gt, ...))
		return 0;
Quoted 18 lines
drivers/gpu/drm/xe/xe_lrc.c +11 -0
+		     (GRAPHICS_VER(gt_to_xe(lrc->gt)) < 30))) {
+			if (lrc->flags & EXEC_QUEUE_DISABLE_NULL_QUERY)
+				len += funcs[i].disable_null_query(lrc->gt, hwe,
+								   cmd, remain,
+								   DIS_NULL_QUERY);
+			else
+				len += funcs[i].disable_null_query(lrc->gt, hwe,
+								   cmd, remain,
+								   ~DIS_NULL_QUERY);
+		}
+
 		remain -= len;
 
 		/*
@@ -1175,6 +1237,9 @@ static int xe_lrc_init(struct xe_lrc *lrc, struct xe_hw_engine *hwe,
 	map = __xe_lrc_start_seqno_map(lrc);
 	xe_map_write32(lrc_to_xe(lrc), &map, lrc->fence_ctx.next_seqno - 1);
 
Quoted 6 lines

drivers/gpu/drm/xe/xe_lrc.c static int xe_lrc_init(struct xe_lrc *lrc, struct xe_hw_engine *hwe, · line 1240

Quoted 1 line
drivers/gpu/drm/xe/xe_lrc.c +1 -0
+	if (init_flags & EXEC_QUEUE_DISABLE_NULL_QUERY)

ahn? Please don't mix LRC_*_FLAGS and EXEC_QUEUE_*_FLAGS. This is a recipe for disaster. I don't see why you'd need to set any flag in lrc.

I think the caller (__xe_exec_queue_init) needs to go from EXEC_QUEUE_DISABLE_NULL_QUERY -> to an LRC specific flag and pass it via init_flags.

Matt

Quoted 62 lines

Lucas De Marchi

Quoted 60 lines
drivers/gpu/drm/xe/xe_lrc.c +2 -0
+		lrc->flags |= EXEC_QUEUE_DISABLE_NULL_QUERY;
+
 	err = setup_wa_bb(lrc, hwe);
 	if (err)
 		goto err_lrc_finish;
drivers/gpu/drm/xe/xe_query.c +2 -1
index d517ec9ddcbf..5b48befd32cd 100644
@@ -344,7 +344,8 @@ static int query_config(struct xe_device *xe, struct drm_xe_device_query *query)
 		config->info[DRM_XE_QUERY_CONFIG_FLAGS] |=
 			DRM_XE_QUERY_CONFIG_FLAG_HAS_CPU_ADDR_MIRROR;
 	config->info[DRM_XE_QUERY_CONFIG_FLAGS] |=
-			DRM_XE_QUERY_CONFIG_FLAG_HAS_LOW_LATENCY;
+			(DRM_XE_QUERY_CONFIG_FLAG_HAS_LOW_LATENCY |
+			DRM_XE_QUERY_CONFIG_FLAG_HAS_DISABLE_NULL_QUERY);
 	config->info[DRM_XE_QUERY_CONFIG_MIN_ALIGNMENT] =
 		xe->info.vram_flags & XE_VRAM_FLAGS_NEED64K ? SZ_64K : SZ_4K;
 	config->info[DRM_XE_QUERY_CONFIG_VA_BITS] = xe->info.va_bits;
include/uapi/drm/xe_drm.h +12 -0
index e2426413488f..adab49e63757 100644
@@ -397,6 +397,8 @@ struct drm_xe_query_mem_regions {
 *      has low latency hint support
 *    - %DRM_XE_QUERY_CONFIG_FLAG_HAS_CPU_ADDR_MIRROR - Flag is set if the
 *      device has CPU address mirroring support
+ *    - %DRM_XE_QUERY_CONFIG_FLAG_HAS_DISABLE_NULL_QUERY - Flag is set if the
+ *      device has null query support for anyhit shader.
 *  - %DRM_XE_QUERY_CONFIG_MIN_ALIGNMENT - Minimal memory alignment
 *    required by this device, typically SZ_4K or SZ_64K
 *  - %DRM_XE_QUERY_CONFIG_VA_BITS - Maximum bits of a virtual address
@@ -415,6 +417,7 @@ struct drm_xe_query_config {
 	#define DRM_XE_QUERY_CONFIG_FLAG_HAS_VRAM	(1 << 0)
 	#define DRM_XE_QUERY_CONFIG_FLAG_HAS_LOW_LATENCY	(1 << 1)
 	#define DRM_XE_QUERY_CONFIG_FLAG_HAS_CPU_ADDR_MIRROR	(1 << 2)
+	#define DRM_XE_QUERY_CONFIG_FLAG_HAS_DISABLE_NULL_QUERY	(1 << 3)
 #define DRM_XE_QUERY_CONFIG_MIN_ALIGNMENT		2
 #define DRM_XE_QUERY_CONFIG_VA_BITS			3
 #define DRM_XE_QUERY_CONFIG_MAX_EXEC_QUEUE_PRIORITY	4
@@ -1270,7 +1273,16 @@ struct drm_xe_exec_queue_create {
 	/** @vm_id: VM to use for this exec queue */
 	__u32 vm_id;
 
+	/** DRM_XE_QUERY_CONFIG_FLAG_HAS_LOW_LATENCY - \
+	 *	Flag is set if the device has low latency hint support
+	 */
 #define DRM_XE_EXEC_QUEUE_LOW_LATENCY_HINT	(1 << 0)
+
+	/** DRM_XE_EXEC_QUEUE_DISABLE_NULL_QUERY - \
+	 *	flag is use to disable null query check for Anyhit shader
+	 */
+#define DRM_XE_EXEC_QUEUE_DISABLE_NULL_QUERY	(1 << 1)
+
 	/** @flags: flags to use for this exec queue */
 	__u32 flags;
 
Signature · 1 line
2.25.1
#7 lore raw

Hi,

Quoted 75 lines · Lucas De Marchi
Quoted 2 lines · Nitin Gote
Quoted 1 line

Add the DRM_XE_QUERY_CONFIG_FLAG_HAS_DISABLE_NULL_QUERY

device query

Quoted 44 lines
Quoted 5 lines

flag which indicates whether a device supports DIS_NULL_QUERY (Disable null anyhit shader query mechanism). The intent is for UMDs to use this query and opt-in DRM_XE_EXEC_QUEUE_DISABLE_NULL_QUERY flag to disable null query mechanism for anyhit shader by setting DIS_NULL_QUERY bit of RT_CTRL register for Xe2.

it seems like this commit has been over squashed and this commit message doesn't really match what it's doing. This isn't just adding a DRM_XE_QUERY_* (what the title implies), it's actually implementing the
DRM_XE_EXEC_QUEUE_*

Quoted 32 lines

v2:
- Use xe_rtp_match_first_render_or_compute() api to check render_or_compute. (Tejas)
- Validate args->flags (Tejas/Matthew)
- Add proper kernel-doc for both DRM_XE_EXEC_QUEUE_DIS_NULL_QUERY and DRM_XE_EXEC_QUEUE_LOW_LATENCY_HINT. (Matthew)

v3:
- Rename DRM_XE_EXEC_QUEUE_DIS_NULL_QUERY to DRM_XE_EXEC_QUEUE_DISABLE_NULL_QUERY. (Matthew)
- Move implementaion from exec queue creation time to WA BB program. (Matthew)

---
Hi,

Please note the review comments from previous rev2, addressed in this patch.
https://patchwork.freedesktop.org/patch/660580/?series=150601&rev=2

.../gpu/drm/xe/instructions/xe_mi_commands.h  |  4 ++
drivers/gpu/drm/xe/regs/xe_gt_regs.h          |  2 +
drivers/gpu/drm/xe/xe_exec_queue.c            |  9 ++-
drivers/gpu/drm/xe/xe_exec_queue_types.h      |  2 +
drivers/gpu/drm/xe/xe_gt_mcr.c                |  1 -
drivers/gpu/drm/xe/xe_lrc.c                   | 65 +++++++++++++++++++
drivers/gpu/drm/xe/xe_query.c                 |  3 +-
include/uapi/drm/xe_drm.h                     | 12 ++++
8 files changed, 95 insertions(+), 3 deletions(-)
Quoted 8 lines

drivers/gpu/drm/xe/instructions/xe_mi_commands.h line 81

Quoted 8 lines
drivers/gpu/drm/xe/instructions/xe_mi_commands.h +0 -0
index e3f5e8bb3ebc..84e889528464 100644
@@ -80,4 +80,8 @@
 #define MI_SET_APPID_SESSION_ID_MASK	REG_GENMASK(6, 0)
 #define MI_SET_APPID_SESSION_ID(x)

REG_FIELD_PREP(MI_SET_APPID_SESSION_ID_MASK, x)

Quoted 9 lines

drivers/gpu/drm/xe/instructions/xe_mi_commands.h line 86

Quoted 5 lines
drivers/gpu/drm/xe/instructions/xe_mi_commands.h +4 -0
+#define MI_SEMAPHORE_WAIT		__MI_INSTR(0x1c)
+#define  MI_SEMAPHORE_POLL		(1 << 15)
+#define  MI_SEMAPHORE_SAD_EQ_SDD	(4 << 12)
+#define  MI_SEMAPHORE_REGISTER_POLL	(1 << 16)

look at the defines above and implement it according to them. There are multiple things wrong wrt coding style here:

Quoted 7 lines

1) the MI definition is sorted by its number. 0x1c shouldn't be the last in the file
2) bits definition should be sorted, highest number first, to follow the bspec and be easy to compare
3) don't use shifts, use REG_BIT()
4) there's a missing space in the bits definitions

Quoted 4 lines

Thanks Lucas - it was late when I was reviewing this and apparently missed a ton things.

Agree with everything Lucas says here.

Thanks Lucas - I will update it.

Quoted 219 lines

One follow up below.

Quoted 11 lines
Quoted 11 lines
drivers/gpu/drm/xe/instructions/xe_mi_commands.h +0 -0
 #endif
drivers/gpu/drm/xe/regs/xe_gt_regs.h +0 -0
index 5cd5ab8529c5..8234789f05b7 100644
@@ -55,6 +55,8 @@
 #define   MTL_MCR_GROUPID			REG_GENMASK(11, 8)
 #define   MTL_MCR_INSTANCEID			REG_GENMASK(3, 0)
 
Quoted 1 line

drivers/gpu/drm/xe/regs/xe_gt_regs.h line 58

Quoted 1 line
drivers/gpu/drm/xe/regs/xe_gt_regs.h +1 -0
+#define STEER_SEMAPHORE
	XE_REG(0xFD0)
Quoted 10 lines

ditto, should be sorted too, but it also clashes with MCFG_MCR_SELECTOR. I'm actually not sure why we are using MCFG_MCR_SELECTOR name... probably a copy & paste from i915. That register is indeed called STEER_SEMAPHORE in bspec.

Quoted 4 lines
drivers/gpu/drm/xe/regs/xe_gt_regs.h +1 -0
+
 #define PS_INVOCATION_COUNT			XE_REG(0x2348)
 
 #define XELP_GLOBAL_MOCS(i)			XE_REG(0x4000 + (i) *

4)

Quoted 6 lines

drivers/gpu/drm/xe/xe_exec_queue.c static int __xe_exec_queue_init(struct

Quoted 6 lines
drivers/gpu/drm/xe/xe_exec_queue.c +0 -0
index 8991b4aed440..18a0bee38eed 100644
@@ -131,6 +131,9 @@ static int __xe_exec_queue_init(struct

xe_exec_queue *q)

Quoted 8 lines

drivers/gpu/drm/xe/xe_exec_queue.c static int __xe_exec_queue_init(struct xe_exec_queue *q)

Quoted 8 lines
drivers/gpu/drm/xe/xe_exec_queue.c +3 -0
 			flags |= XE_LRC_CREATE_RUNALONE;
 	}
 
+	if (q->flags & EXEC_QUEUE_DISABLE_NULL_QUERY)
+		flags |= EXEC_QUEUE_DISABLE_NULL_QUERY;
+
 	for (i = 0; i < q->width; ++i) {
 		q->lrc[i] = xe_lrc_create(q->hwe, q->vm, SZ_16K, q->msix_vec,

flags);

Quoted 2 lines

drivers/gpu/drm/xe/xe_exec_queue.c int xe_exec_queue_create_ioctl(struct drm_device

Quoted 2 lines
drivers/gpu/drm/xe/xe_exec_queue.c +0 -0
 		if (IS_ERR(q->lrc[i])) {
@@ -597,7 +600,8 @@ int xe_exec_queue_create_ioctl(struct drm_device

*dev, void *data,

Quoted 4 lines

drivers/gpu/drm/xe/xe_exec_queue.c int xe_exec_queue_create_ioctl(struct drm_device *dev, void *data,

Quoted 4 lines
drivers/gpu/drm/xe/xe_exec_queue.c +0 -1
 	u32 len;
 	int err;
 
-	if (XE_IOCTL_DBG(xe, args->flags &

~DRM_XE_EXEC_QUEUE_LOW_LATENCY_HINT) ||

Quoted 7 lines

drivers/gpu/drm/xe/xe_exec_queue.c int xe_exec_queue_create_ioctl(struct drm_device

Quoted 7 lines
drivers/gpu/drm/xe/xe_exec_queue.c +3 -0
+	if (XE_IOCTL_DBG(xe, args->flags &
+	    ~(DRM_XE_EXEC_QUEUE_LOW_LATENCY_HINT |
+DRM_XE_EXEC_QUEUE_DISABLE_NULL_QUERY)) ||
 	    XE_IOCTL_DBG(xe, args->reserved[0] || args->reserved[1]))
 		return -EINVAL;
@@ -616,6 +620,9 @@ int xe_exec_queue_create_ioctl(struct drm_device

*dev, void *data,

Quoted 51 lines
Quoted 15 lines
drivers/gpu/drm/xe/xe_exec_queue.c +3 -0
 	if (args->flags & DRM_XE_EXEC_QUEUE_LOW_LATENCY_HINT)
 		flags |= EXEC_QUEUE_FLAG_LOW_LATENCY;
 
+	if (args->flags & DRM_XE_EXEC_QUEUE_DISABLE_NULL_QUERY)
+		flags |= EXEC_QUEUE_DISABLE_NULL_QUERY;
+
 	if (eci[0].engine_class == DRM_XE_ENGINE_CLASS_VM_BIND) {
 		if (XE_IOCTL_DBG(xe, args->width != 1) ||
 		    XE_IOCTL_DBG(xe, args->num_placements != 1) || diff --git

a/drivers/gpu/drm/xe/xe_exec_queue_types.h
b/drivers/gpu/drm/xe/xe_exec_queue_types.h
index cc1cffb5c87f..b62502a18c1b 100644

drivers/gpu/drm/xe/xe_exec_queue_types.h struct xe_exec_queue { · line 91

Quoted 5 lines
drivers/gpu/drm/xe/xe_exec_queue_types.h +2 -0
@@ -87,6 +87,8 @@ struct xe_exec_queue {
 #define EXEC_QUEUE_FLAG_HIGH_PRIORITY		BIT(4)
 /* flag to indicate low latency hint to guc */
 #define EXEC_QUEUE_FLAG_LOW_LATENCY		BIT(5)
+/* flag to indicate disable null query hint */
+#define EXEC_QUEUE_DISABLE_NULL_QUERY		BIT(6)

^ missing FLAG here to follow the other defines

Quoted 29 lines
drivers/gpu/drm/xe/xe_exec_queue_types.h +0 -0
 	/**
 	 * @flags: flags for this exec queue, should statically setup aside

from ban diff --git a/drivers/gpu/drm/xe/xe_gt_mcr.c b/drivers/gpu/drm/xe/xe_gt_mcr.c index 64a2f0d6aaf9..a7624b30d0c9 100644

drivers/gpu/drm/xe/xe_gt_mcr.c +0 -1
@@ -46,7 +46,6 @@
 * MCR registers are not available on Virtual Function (VF).
 */
 
-#define STEER_SEMAPHORE		XE_REG(0xFD0)
 
 static inline struct xe_reg to_xe_reg(struct xe_reg_mcr reg_mcr) {
(quoted diff) +0 -0

b/drivers/gpu/drm/xe/xe_lrc.c index d2ad8fe737eb..6fc09df67442 100644

drivers/gpu/drm/xe/xe_lrc.c +1 -0
@@ -13,6 +13,7 @@
 #include "instructions/xe_gfxpipe_commands.h"
 #include "instructions/xe_gfx_state_commands.h"
 #include "regs/xe_engine_regs.h"
+#include "regs/xe_gt_regs.h"
 #include "regs/xe_lrc_layout.h"
 #include "xe_bb.h"
 #include "xe_bo.h"
@@ -25,6 +26,7 @@
Quoted 8 lines

drivers/gpu/drm/xe/xe_lrc.c static ssize_t wa_bb_setup_utilization(struct xe_lrc

Quoted 8 lines
drivers/gpu/drm/xe/xe_lrc.c +1 -0
 #include "xe_map.h"
 #include "xe_memirq.h"
 #include "xe_mmio.h"
+#include "xe_rtp.h"
 #include "xe_sriov.h"
 #include "xe_trace_lrc.h"
 #include "xe_vm.h"
@@ -972,9 +974,56 @@ static ssize_t wa_bb_setup_utilization(struct xe_lrc

*lrc, struct xe_hw_engine *

Quoted 16 lines
Quoted 16 lines
drivers/gpu/drm/xe/xe_lrc.c +13 -0
 	return cmd - batch;
 }
 
+/*
+ * wa_bb_disable_null_query() - Emit commands in the WA BB
+ * to disable or enable NULL Anyhit Shader Query Mechanism.
+ *
+ * Some platforms require a workaround to disable (or enable) the
+ * Anyhit Shader NULL QUERY for specific engines (typically the
+ * first render or compute engine). This function emits a sequence
+ * of MI commands into the workaround batch buffer (WA BB) to
+perform
+ * a multicast write to the RT_CTRL register, setting or clearing
+the
+ * DIS_NULL_QUERY bit.
+ *
Quoted 8 lines

drivers/gpu/drm/xe/xe_lrc.c static ssize_t wa_bb_setup_utilization(struct xe_lrc · line 997

Quoted 8 lines
drivers/gpu/drm/xe/xe_lrc.c +8 -0
+ * The sequence includes a semaphore wait to ensure proper
+ordering,
+ * followed by MI_LOAD_REGISTER_IMM commands to write the desired
+value
+ * to the RT_CTRL register, and finally restores the semaphore state.
+ *
+ */
+static ssize_t wa_bb_disable_null_query(struct xe_gt *gt, struct

xe_hw_engine *hwe,

Quoted 1 line

drivers/gpu/drm/xe/xe_lrc.c static ssize_t wa_bb_setup_utilization(struct xe_lrc *lrc, struct xe_hw_engine * · line 994

Quoted 1 line
drivers/gpu/drm/xe/xe_lrc.c +1 -0
+					u32 *batch, size_t max_size, u32 value)

{

Quoted 9 lines

drivers/gpu/drm/xe/xe_lrc.c static ssize_t wa_bb_setup_utilization(struct xe_lrc *lrc, struct xe_hw_engine * · line 1001

Quoted 6 lines
drivers/gpu/drm/xe/xe_lrc.c +6 -0
+	u32 *cmd = batch;
+	struct xe_reg_mcr reg_mcr = RT_CTRL;
+	struct xe_reg reg = reg_mcr.__reg;
+	struct xe_reg reg_sema = STEER_SEMAPHORE;
+
+	/* Add WARN_ON check for minimum required space (10 DWORDs) */

no need for this comment

Quoted 6 lines

drivers/gpu/drm/xe/xe_lrc.c static ssize_t wa_bb_setup_utilization(struct xe_lrc *lrc, struct xe_hw_engine *

Quoted 6 lines
drivers/gpu/drm/xe/xe_lrc.c +6 -0
+	if (xe_gt_WARN_ON(gt, max_size < 10))
+		return -ENOSPC;
+
+	if (xe_rtp_match_first_render_or_compute(gt, hwe)) {
+		*cmd++ = (MI_SEMAPHORE_WAIT | MI_SEMAPHORE_POLL |
+			  MI_SEMAPHORE_SAD_EQ_SDD |

MI_SEMAPHORE_REGISTER_POLL);

Quoted 11 lines

drivers/gpu/drm/xe/xe_lrc.c static ssize_t wa_bb_setup_utilization(struct xe_lrc · line 1012

Quoted 2 lines
drivers/gpu/drm/xe/xe_lrc.c +2 -0
+		*cmd++ = 1;
+		*cmd++ = reg_sema.addr;

I think we can simply use

*cmd++ = STEER_SEMAPHORE.addr

and similarly in other places here and let go the local vars above.

drivers/gpu/drm/xe/xe_lrc.c static ssize_t wa_bb_setup_utilization(struct xe_lrc · line 1014

Quoted 2 lines
drivers/gpu/drm/xe/xe_lrc.c +2 -0
+		*cmd++ = 0;
+		*cmd++ = MI_LOAD_REGISTER_IMM | MI_LRI_NUM_REGS(1) |

MI_LRI_MMIO_REMAP_EN;

Quoted 3 lines

drivers/gpu/drm/xe/xe_lrc.c static ssize_t wa_bb_setup_utilization(struct xe_lrc *lrc, struct xe_hw_engine *

Quoted 3 lines
drivers/gpu/drm/xe/xe_lrc.c +3 -0
+		*cmd++ = reg.addr;
+		*cmd++ = value;
+		*cmd++ = MI_LOAD_REGISTER_IMM | MI_LRI_NUM_REGS(1) |

MI_LRI_MMIO_REMAP_EN;

Quoted 11 lines

drivers/gpu/drm/xe/xe_lrc.c static ssize_t wa_bb_setup_utilization(struct xe_lrc *lrc, struct xe_hw_engine *

Quoted 11 lines
drivers/gpu/drm/xe/xe_lrc.c +8 -0
+		*cmd++ = reg_sema.addr;
+		*cmd++ = 1;
+	}
+
+	return cmd - batch;
+}
+
 struct wa_bb_setup {
 	ssize_t (*setup)(struct xe_lrc *lrc, struct xe_hw_engine *hwe,
 			 u32 *batch, size_t max_size);
+	ssize_t (*disable_null_query)(struct xe_gt *gt, struct xe_hw_engine

*hwe,

Quoted 9 lines

drivers/gpu/drm/xe/xe_lrc.c static ssize_t wa_bb_setup_utilization(struct xe_lrc *lrc, struct xe_hw_engine * · line 1026

Quoted 1 line
drivers/gpu/drm/xe/xe_lrc.c +1 -0
+				      u32 *batch, size_t max_size, u32 value);

this is not how this works... you should define just your function, and add it to the array below as a "setup function".

drivers/gpu/drm/xe/xe_lrc.c static int setup_wa_bb(struct xe_lrc *lrc, struct

Quoted 4 lines

};

static int setup_wa_bb(struct xe_lrc *lrc, struct xe_hw_engine *hwe)

drivers/gpu/drm/xe/xe_lrc.c +0 -0
@@ -982,6 +1031,7 @@ static int setup_wa_bb(struct xe_lrc *lrc, struct

xe_hw_engine *hwe)

Quoted 19 lines

drivers/gpu/drm/xe/xe_lrc.c static int setup_wa_bb(struct xe_lrc *lrc, struct xe_hw_engine *hwe) · line 1034

Quoted 4 lines
drivers/gpu/drm/xe/xe_lrc.c +1 -0
 	const size_t max_size = LRC_WA_BB_SIZE;
 	static const struct wa_bb_setup funcs[] = {
 		{ .setup = wa_bb_setup_utilization },
+		{ .disable_null_query = wa_bb_disable_null_query },

should have been:

{ .setup = wa_bb_disable_null_query },

But also beware we are refactoring this a little bit, so on next rev you will hit some conflicts. See

drm/xe: LRC refactors @
https://patchwork.freedesktop.org/series/151152/
More missing XeLP workarounds @
https://patchwork.freedesktop.org/series/149097/

Quoted 11 lines
Quoted 4 lines

drivers/gpu/drm/xe/xe_lrc.c static int setup_wa_bb(struct xe_lrc *lrc, struct

Quoted 4 lines
drivers/gpu/drm/xe/xe_lrc.c +0 -0
 	};
 	ssize_t remain;
 	u32 *cmd, *buf = NULL;
@@ -1000,6 +1050,18 @@ static int setup_wa_bb(struct xe_lrc *lrc, struct

xe_hw_engine *hwe)

Quoted 6 lines

drivers/gpu/drm/xe/xe_lrc.c static int setup_wa_bb(struct xe_lrc *lrc, struct xe_hw_engine *hwe) · line 1053

Quoted 4 lines
drivers/gpu/drm/xe/xe_lrc.c +1 -0
 	for (size_t i = 0; i < ARRAY_SIZE(funcs); i++) {
 		ssize_t len = funcs[i].setup(lrc, hwe, cmd, remain);
 
+		if (((GRAPHICS_VER(gt_to_xe(lrc->gt)) >= 20) &&

this check should be inside the setup function, not here.

I will update it.

Quoted 8 lines
Quoted 8 lines

Also, is this a WA? It's looking like it, which means you need a WA number, add it to drivers/gpu/drm/xe/xe_wa_oob.rules with the graphics range where it applies and then in wa_bb_disable_null_query() you use:

	if (!XE_WA(gt, ...))
		return 0;

We do not have a WA number; it seems to be tuning.

Quoted 29 lines
Quoted 5 lines

drivers/gpu/drm/xe/xe_lrc.c static int setup_wa_bb(struct xe_lrc *lrc, struct xe_hw_engine *hwe) · line 1064

Quoted 5 lines
drivers/gpu/drm/xe/xe_lrc.c +5 -0
+		     (GRAPHICS_VER(gt_to_xe(lrc->gt)) < 30))) {
+			if (lrc->flags & EXEC_QUEUE_DISABLE_NULL_QUERY)
+				len += funcs[i].disable_null_query(lrc->gt, hwe,
+								   cmd, remain,
+

DIS_NULL_QUERY);

Quoted 4 lines

drivers/gpu/drm/xe/xe_lrc.c static int setup_wa_bb(struct xe_lrc *lrc, struct xe_hw_engine *hwe) · line 1064

Quoted 4 lines
drivers/gpu/drm/xe/xe_lrc.c +4 -0
+			else
+				len += funcs[i].disable_null_query(lrc->gt, hwe,
+								   cmd, remain,
+

~DIS_NULL_QUERY);

Quoted 6 lines

drivers/gpu/drm/xe/xe_lrc.c static int xe_lrc_init(struct xe_lrc *lrc, struct

Quoted 6 lines
drivers/gpu/drm/xe/xe_lrc.c +2 -0
+		}
+
 		remain -= len;
 
 		/*
@@ -1175,6 +1237,9 @@ static int xe_lrc_init(struct xe_lrc *lrc, struct

xe_hw_engine *hwe,

Quoted 10 lines

drivers/gpu/drm/xe/xe_lrc.c static int xe_lrc_init(struct xe_lrc *lrc, struct xe_hw_engine *hwe, · line 1240

Quoted 5 lines
drivers/gpu/drm/xe/xe_lrc.c +1 -0
 	map = __xe_lrc_start_seqno_map(lrc);
 	xe_map_write32(lrc_to_xe(lrc), &map, lrc->fence_ctx.next_seqno -
 1);
 
+	if (init_flags & EXEC_QUEUE_DISABLE_NULL_QUERY)

ahn? Please don't mix LRC_*_FLAGS and EXEC_QUEUE_*_FLAGS. This is a recipe for disaster. I don't see why you'd need to set any flag in lrc.

Quoted 4 lines

I think the caller (__xe_exec_queue_init) needs to go from EXEC_QUEUE_DISABLE_NULL_QUERY -> to an LRC specific flag and pass it via init_flags.

Yes. And that's why it's part of init_flags.
Do you foresee any issues here?

- Nitin

Quoted 76 lines

Matt

Quoted 13 lines

Lucas De Marchi

drivers/gpu/drm/xe/xe_query.c static int query_config(struct xe_device *xe, struct

Quoted 11 lines
drivers/gpu/drm/xe/xe_lrc.c +2 -0
+		lrc->flags |= EXEC_QUEUE_DISABLE_NULL_QUERY;
+
 	err = setup_wa_bb(lrc, hwe);
 	if (err)
		goto err_lrc_finish;
(quoted diff) +0 -0

b/drivers/gpu/drm/xe/xe_query.c index d517ec9ddcbf..5b48befd32cd 100644

drivers/gpu/drm/xe/xe_query.c +0 -0
@@ -344,7 +344,8 @@ static int query_config(struct xe_device *xe, struct

drm_xe_device_query *query)

Quoted 2 lines

drivers/gpu/drm/xe/xe_query.c static int query_config(struct xe_device *xe, struct · line 345

Quoted 2 lines
drivers/gpu/drm/xe/xe_query.c +0 -0
 		config->info[DRM_XE_QUERY_CONFIG_FLAGS] |=
 
	DRM_XE_QUERY_CONFIG_FLAG_HAS_CPU_ADDR_MIRROR;
Quoted 3 lines

drivers/gpu/drm/xe/xe_query.c static int query_config(struct xe_device *xe, struct drm_xe_device_query *query)

Quoted 3 lines
drivers/gpu/drm/xe/xe_query.c +1 -1
 	config->info[DRM_XE_QUERY_CONFIG_FLAGS] |=
-			DRM_XE_QUERY_CONFIG_FLAG_HAS_LOW_LATENCY;
+			(DRM_XE_QUERY_CONFIG_FLAG_HAS_LOW_LATENCY

|

Quoted 1 line

drivers/gpu/drm/xe/xe_query.c static int query_config(struct xe_device *xe, struct · line 348

Quoted 1 line
drivers/gpu/drm/xe/xe_query.c +1 -0
+
	DRM_XE_QUERY_CONFIG_FLAG_HAS_DISABLE_NULL_QUERY);
Quoted 2 lines

drivers/gpu/drm/xe/xe_query.c static int query_config(struct xe_device *xe, struct · line 350

Quoted 2 lines
drivers/gpu/drm/xe/xe_query.c +0 -0
 	config->info[DRM_XE_QUERY_CONFIG_MIN_ALIGNMENT] =
 		xe->info.vram_flags & XE_VRAM_FLAGS_NEED64K ? SZ_64K :

SZ_4K;

Quoted 8 lines

include/uapi/drm/xe_drm.h struct drm_xe_query_mem_regions { · line 398

Quoted 8 lines
drivers/gpu/drm/xe/xe_query.c +0 -1
 	config->info[DRM_XE_QUERY_CONFIG_VA_BITS] = xe->info.va_bits; diff
--git a/include/uapi/drm/xe_drm.h b/include/uapi/drm/xe_drm.h index

e2426413488f..adab49e63757 100644

include/uapi/drm/xe_drm.h +0 -0
@@ -397,6 +397,8 @@ struct drm_xe_query_mem_regions {
 *      has low latency hint support
 *    - %DRM_XE_QUERY_CONFIG_FLAG_HAS_CPU_ADDR_MIRROR - Flag is

set if the

Quoted 2 lines

include/uapi/drm/xe_drm.h struct drm_xe_query_mem_regions { · line 400

Quoted 2 lines
include/uapi/drm/xe_drm.h +1 -0
 *      device has CPU address mirroring support
+ *    - %DRM_XE_QUERY_CONFIG_FLAG_HAS_DISABLE_NULL_QUERY - Flag

is set if the

Quoted 2 lines

include/uapi/drm/xe_drm.h struct drm_xe_query_mem_regions { · line 402

Quoted 2 lines
include/uapi/drm/xe_drm.h +1 -0
+ *      device has null query support for anyhit shader.
 *  - %DRM_XE_QUERY_CONFIG_MIN_ALIGNMENT - Minimal memory

alignment

Quoted 5 lines
Quoted 5 lines
include/uapi/drm/xe_drm.h +0 -0
 *    required by this device, typically SZ_4K or SZ_64K
 *  - %DRM_XE_QUERY_CONFIG_VA_BITS - Maximum bits of a virtual
address @@ -415,6 +417,7 @@ struct drm_xe_query_config {
	#define DRM_XE_QUERY_CONFIG_FLAG_HAS_VRAM	(1 << 0)
	#define DRM_XE_QUERY_CONFIG_FLAG_HAS_LOW_LATENCY	(1 <<

1)

Quoted 1 line
Quoted 1 line
	#define DRM_XE_QUERY_CONFIG_FLAG_HAS_CPU_ADDR_MIRROR
	(1 << 2)
Quoted 1 line

include/uapi/drm/xe_drm.h

Quoted 1 line
include/uapi/drm/xe_drm.h +1 -0
+	#define DRM_XE_QUERY_CONFIG_FLAG_HAS_DISABLE_NULL_QUERY
	(1 << 3)
Quoted 23 lines
Quoted 23 lines

#define DRM_XE_QUERY_CONFIG_MIN_ALIGNMENT 2
#define DRM_XE_QUERY_CONFIG_VA_BITS 3
#define DRM_XE_QUERY_CONFIG_MAX_EXEC_QUEUE_PRIORITY 4

include/uapi/drm/xe_drm.h +9 -1
@@ -1270,7 +1273,16 @@ struct drm_xe_exec_queue_create {
 	/** @vm_id: VM to use for this exec queue */
 	__u32 vm_id;
 
+	/** DRM_XE_QUERY_CONFIG_FLAG_HAS_LOW_LATENCY - \
+	 *	Flag is set if the device has low latency hint support
+	 */
 #define DRM_XE_EXEC_QUEUE_LOW_LATENCY_HINT	(1 << 0)
+
+	/** DRM_XE_EXEC_QUEUE_DISABLE_NULL_QUERY - \
+	 *	flag is use to disable null query check for Anyhit shader
+	 */
+#define DRM_XE_EXEC_QUEUE_DISABLE_NULL_QUERY	(1 << 1)
+
 	/** @flags: flags to use for this exec queue */
 	__u32 flags;
 
--

2.25.1