Skip to contentSkip to conversation

tests/amdgpu: Add SLTH validation tests for trap handling and trap return.

PATCH Superseded Jesse Zhang 3 participants 9 messages Nov 16 – Nov 17 Arm/Amlogic Meson SoC support

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/6 tests/amdgpu: Add SLTH validation tests for trap handling and trap return.

From: Srinivasan Shanmugam <[email protected]>

SLTH allows a shader to trigger a trap, execute a trap handler, return from the trap, and continue shader execution.

This patch adds validation tests to verify that each step of this flow works correctly.

slth-gfx-kq-vgpr-proof

Runs a graphics workload using a kernel queue. The shader triggers an SLTH trap.
The trap handler changes a VGPR value from 0 to 42. After returning from the trap, the shader stores the VGPR value to memory.
The test verifies that the final value is 42. This confirms that the trap handler executed and that the updated VGPR value remained visible after trap return.

slth-gfx-umq-vgpr-proof

Runs the same VGPR proof test using a graphics user queue.
The shader triggers a trap and the trap handler updates a VGPR value.
After trap return, the shader stores the value to memory.
The test verifies that the final value is 42. This confirms correct SLTH behaviour through the UMQ execution path.

slth-comp-kq-vgpr-proof

Runs the VGPR proof test on a compute kernel queue. The shader triggers a trap and the trap handler updates a VGPR value.
The shader then resumes execution and stores the value to memory.
The test verifies that the stored value is 42. This confirms successful trap entry, trap handler execution and trap return for compute workloads.

slth-comp-kq-returnproof

Runs a compute workload that initializes a register to 1 and then triggers a trap.
After returning from the trap, the next instruction changes the register value to 2.
The shader stores the final value to memory. The test verifies that the stored value is 2. This confirms that execution resumed at the instruction immediately following s_trap after s_rfe_b64.

Together, these tests verify trap entry, trap handler execution, trap return, VGPR state preservation across trap return, and correct resumption of shader execution.

Cc Vitaly Prosyak <[email protected]>
Cc Felix Kuehling <[email protected]>
Cc Lancelot Six <[email protected]>
Cc James Zhu <[email protected]>
Cc Lijo Lazar <[email protected]>
Cc Samuel Pitoiset <[email protected]>
Cc Natalie Vock <[email protected]>
Cc Timur Kristóf <[email protected]>
Cc Christian König <[email protected]>
Cc Alex Deucher <[email protected]>
Cc Pierre-Eric Pelloux-Prayer <[email protected]>
---
 include/drm-uapi/amdgpu_drm.h         |   18 +-
 lib/amdgpu/shaders/amd_shader_store.h |  190 +++
 tests/amdgpu/amd_basic.c              | 1860 +++++++++++++++++++++++--
 3 files changed, 1928 insertions(+), 140 deletions(-)
include/drm-uapi/amdgpu_drm.h +16 -2
index 29009f6aa..832903e2e 100644
@@ -603,10 +603,24 @@ struct drm_amdgpu_userq_wait {
 #define AMDGPU_VM_OP_RESERVE_VMID	1
 #define AMDGPU_VM_OP_UNRESERVE_VMID	2
 
+#define AMDGPU_VM_OP_SET_L2_TRAP     3
+#define AMDGPU_VM_OP_CLEAR_L2_TRAP   4
+
 struct drm_amdgpu_vm_in {
 	/** AMDGPU_VM_OP_* */
-	__u32	op;
-	__u32	flags;
+	__u32 op;
+	__u32 flags;
+
+	union {
+		struct {
+			__u64 tba_va;
+			__u64 tma_va;
+			__u32 tba_sz;
+			__u32 tma_sz;
+		} l2trap;
+
+		__u64 reserved[4];
+	};
 };
 
 struct drm_amdgpu_vm_out {
lib/amdgpu/shaders/amd_shader_store.h +190 -0

194 lines not on this page · raw message

tests/amdgpu/amd_basic.c +1722 -138

1,903 lines not on this page · raw message

Signature · 1 line
2.50.1
#1 lore raw

PATCH 2/6 include/drm-uapi/amdgpu: add the CWSR save area to the compute MQD

Sync amdgpu_drm.h with the kernel CWSR/SLTH series ("drm/amdgpu: Add CWSR userspace interfaces"): the compute user queue MQD gets ctx_save_area_va and ctx_save_area_size, and AMDGPU_INFO_CWSR returns the save area size userspace needs to allocate.

---
 include/drm-uapi/amdgpu_drm.h | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
include/drm-uapi/amdgpu_drm.h +27 -0
index 832903e2e..5327a6451 100644
@@ -470,6 +470,17 @@ struct drm_amdgpu_userq_mqd_compute_gfx11 {
 	 * to get the size.
 	 */
 	__u64   eop_va;
+	/**
+	 * @ctx_save_area_va: Virtual address of the GPU memory for save/restore buffer.
+	 * This must be from a separate GPU object, and use AMDGPU_INFO IOCTL
+	 * to get the size. This includes control stack, wave context and debugger memory.
+	 */
+	__u64 ctx_save_area_va;
+	/**
+	 * @ctx_save_area_size: Total size (in bytes) allocated for save/restore buffer.
+	 * Use AMDGPU_INFO IOCTL to get the size.
+	 */
+	__u32 ctx_save_area_size;
 };
 
 /* userq signal/wait ioctl */
@@ -1303,6 +1314,8 @@ struct drm_amdgpu_cs_chunk_cp_gfx_shadow {
 #define AMDGPU_INFO_GPUVM_FAULT			0x23
 /* query FW object size and alignment */
 #define AMDGPU_INFO_UQ_FW_AREAS			0x24
+/* query CWSR size and alignment */
+#define AMDGPU_INFO_CWSR			0x25
 
 #define AMDGPU_INFO_MMR_SE_INDEX_SHIFT	0
 #define AMDGPU_INFO_MMR_SE_INDEX_MASK	0xff
@@ -1682,6 +1695,20 @@ struct drm_amdgpu_info_uq_metadata {
 	};
 };
 
+/**
+ * struct drm_amdgpu_info_cwsr - cwsr information
+ *
+ * Gives cwsr related size details. User needs to allocate buffer based on this.
+ */
+struct drm_amdgpu_info_cwsr {
+	/* Control stack size */
+	__u32 ctl_stack_size;
+	/* Debug memory area size */
+	__u32 dbg_mem_size;
+	/* Minimum save area size required */
+	__u32 min_save_area_size;
+};
+
 /*
  * Supported GPU families
  */
Signature · 1 line
2.50.1
#2 lore raw

PATCH 3/6 lib/amdgpu: give compute user queues a CWSR save area

In reply to Jesse Zhang

With CWSR enabled the kernel requires a context save area for every compute user queue, at least AMDGPU_INFO_CWSR min_save_area_size bytes, and rejects the queue without one.

Query the size, allocate and map the save area and pass it in the compute MQD, and free it when the queue is destroyed. Kernels without the query take no save area, so keep the MQD fields zero there. Also zero-initialize the compute MQD, which now has more than one field.

---
 lib/amdgpu/amd_ip_blocks.c | 35 ++++++++++++++++++++++++++++++++++-
 lib/amdgpu/amd_ip_blocks.h |  2 ++
 2 files changed, 36 insertions(+), 1 deletion(-)
lib/amdgpu/amd_ip_blocks.c +34 -1
index 9bed04f12..8cf913ac6 100644
@@ -936,6 +936,13 @@ user_queue_destroy(amdgpu_device_handle device_handle, struct amdgpu_ring_contex
 					    ctxt->timeline_syncobj_handle, ++ctxt->point,
 					    0, 0);
 
+		if (ctxt->cwsr_size)
+			amdgpu_bo_unmap_and_free_uq(device_handle, ctxt->cwsr.handle,
+						    ctxt->cwsr.va_handle,
+						    ctxt->cwsr.mc_addr, ctxt->cwsr_size,
+						    ctxt->timeline_syncobj_handle, ++ctxt->point,
+						    0, 0);
+
 		r = amdgpu_timeline_syncobj_wait(device_handle, ctxt->timeline_syncobj_handle,
 						 ctxt->point);
 		igt_assert_eq(r, 0);
@@ -986,7 +993,8 @@ user_queue_create(amdgpu_device_handle device_handle, struct amdgpu_ring_context
 	uint64_t gtt_flags = 0, queue_flags = 0;
 	struct drm_amdgpu_userq_mqd_gfx11 gfx_mqd;
 	struct drm_amdgpu_userq_mqd_sdma_gfx11 sdma_mqd;
-	struct drm_amdgpu_userq_mqd_compute_gfx11 compute_mqd;
+	struct drm_amdgpu_userq_mqd_compute_gfx11 compute_mqd = {0};
+	struct drm_amdgpu_info_cwsr cwsr_info = {0};
 	void *mqd;
 
 	if (type > AMD_IP_DMA) {
@@ -1099,6 +1107,31 @@ user_queue_create(amdgpu_device_handle device_handle, struct amdgpu_ring_context
 					       ctxt->timeline_syncobj_handle, ++ctxt->point);
 		igt_assert_eq(r, 0);
 		compute_mqd.eop_va = ctxt->eop.mc_addr;
+
+		/*
+		 * With CWSR enabled the kernel requires a save area of at least
+		 * min_save_area_size. Older kernels don't know the query and
+		 * don't take a save area.
+		 */
+		ctxt->cwsr_size = 0;
+		if (!amdgpu_query_info(device_handle, AMDGPU_INFO_CWSR,
+				       sizeof(cwsr_info), &cwsr_info) &&
+		    cwsr_info.min_save_area_size) {
+			ctxt->cwsr_size = ALIGN(cwsr_info.min_save_area_size, PAGE_SIZE);
+			r = amdgpu_bo_alloc_and_map_uq(device_handle, ctxt->cwsr_size,
+						       PAGE_SIZE,
+						       AMDGPU_GEM_DOMAIN_GTT,
+						       gtt_flags,
+						       AMDGPU_VM_MTYPE_UC,
+						       &ctxt->cwsr.handle, NULL,
+						       &ctxt->cwsr.mc_addr,
+						       &ctxt->cwsr.va_handle,
+						       ctxt->timeline_syncobj_handle,
+						       ++ctxt->point);
+			igt_assert_eq(r, 0);
+			compute_mqd.ctx_save_area_va = ctxt->cwsr.mc_addr;
+			compute_mqd.ctx_save_area_size = ctxt->cwsr_size;
+		}
 		mqd = &compute_mqd;
 		break;
 
lib/amdgpu/amd_ip_blocks.h +2 -0
index fc123fe1a..24b0f5549 100644
@@ -344,6 +344,8 @@ struct amdgpu_ring_context {
 	struct  amdgpu_userq_bo wptr;
 	struct  amdgpu_userq_bo csa;
 	struct  amdgpu_userq_bo eop;
+	struct  amdgpu_userq_bo cwsr;	/* compute CWSR save area, if needed */
+	uint32_t cwsr_size;
 
 	uint32_t *queue_cpu;
 	volatile uint64_t *wptr_cpu;
Signature · 1 line
2.50.1
#3 lore raw

PATCH 4/6 tests/amdgpu: share the SLTH user queue test between GFX and compute

In reply to Jesse Zhang

slth_gfx_umq_vgpr_proof_test() can only run the VGPR proof shader on a GFX user queue. Move the body into slth_umq_run(), which takes the IP type and the shader and returns the stored value, so the other SLTH checks can run on GFX and compute user queues without copying it.

On compute queues program the dispatch like the compute KQ tests do:
gfx_program_compute() starts with CONTEXT_CONTROL, which is a GFX only packet. Drop the PM4 and pointer dumps while at it.

No functional change for slth-gfx-umq-vgpr-proof.

---
 tests/amdgpu/amd_basic.c | 350 ++++++++++++---------------------------
 1 file changed, 104 insertions(+), 246 deletions(-)
tests/amdgpu/amd_basic.c +104 -246
index 2fdef83fd..2037c71ad 100644
@@ -1357,293 +1357,151 @@ static void slth_gfx_kq_vgpr_proof_test(amdgpu_device_handle device,
 	igt_info("SLTH GFX KQ VGPR PROOF COMPLETE\n");
 }
 
-static void slth_gfx_umq_vgpr_proof_test(amdgpu_device_handle device,
-					 int fd)
+/*
+ * Run a SLTH shader on a GFX or compute user queue and return the dword it
+ * stores. The second-level trap handler is set per GPUVM, so user queues get
+ * it like kernel queues do. The shader stores to the address in s[0:1].
+ */
+static uint32_t
+slth_umq_run(amdgpu_device_handle device, int fd, unsigned int ip_type,
+	     void (*prepare_shader)(amdgpu_device_handle device,
+				    uint8_t *isa_bin, size_t *isa_sz))
 {
-	const struct amdgpu_ip_block_version *gfx_ip =
-		get_ip_block(device, AMD_IP_GFX);
-
+	const struct amdgpu_ip_block_version *ip = get_ip_block(device, ip_type);
 	struct amdgpu_ring_context *ring_context;
-
-	amdgpu_bo_handle bo = NULL;
-	amdgpu_va_handle va = 0;
-
-	void *cpu = NULL;
-	uint32_t *ptr_pm4 = NULL;
-	volatile uint32_t *ptr_output = NULL;
-
-	uint64_t mc = 0;
-	uint64_t shader_mc_addr;
-	uint64_t output_mc_addr;
-
 	struct amdgpu_cmd_base *base_cmd;
-
+	struct slth_bufs bufs;
+	amdgpu_bo_handle bo;
+	amdgpu_va_handle va;
+	volatile uint32_t *ptr_output;
+	uint64_t mc, shader_mc_addr, output_mc_addr;
 	uint8_t isa_bin[8192];
 	size_t isa_sz = 0;
+	uint32_t value;
+	void *cpu;
+	int r, i;
 
-	const uint32_t *shader;
-	uint32_t size_bytes;
-
-	struct slth_bufs bufs;
-
-	int r;
+	igt_assert(ip_type == AMD_IP_GFX || ip_type == AMD_IP_COMPUTE);
+	igt_assert(ip && ip->funcs);
 
 	memset(&bufs, 0, sizeof(bufs));
-
-	igt_assert(gfx_ip);
-	igt_assert(gfx_ip->funcs);
-
-	igt_info("SLTH GFX UMQ VGPR PROOF\n");
-
 	slth_alloc_buffers(device, &bufs);
+	slth_prepare_tba_with_handler(device, &bufs, TrapHandlerIsaProof);
 
-	igt_info("TBA=0x%016llx\n",
-		 (unsigned long long)bufs.tba_mc_addr);
-
-	igt_info("TMA=0x%016llx\n",
-		 (unsigned long long)bufs.tma_mc_addr);
-
-	slth_prepare_tba_with_handler(device,
-				      &bufs,
-			TrapHandlerIsaProof);
-
-	igt_info("TrapHandlerIsaProof loaded into TBA\n");
-
-	r = vm_set_l2_trap(fd,
-			   bufs.tba_mc_addr,
-			bufs.tma_mc_addr);
-
+	r = vm_set_l2_trap(fd, bufs.tba_mc_addr, bufs.tma_mc_addr);
 	igt_info("SET_L2_TRAP ret=%d\n", r);
-
 	igt_assert_eq(r, 0);
 
-	slth_prepare_vgpr_proof_shader(device,
-				       isa_bin,
-			&isa_sz);
-
-	shader = (const uint32_t *)isa_bin;
-	size_bytes = (uint32_t)isa_sz;
-
-	igt_assert(shader);
-	igt_assert(size_bytes > 0);
-
-	igt_info("SlthVgprProofIsa size=%u\n",
-		 size_bytes);
-
-	igt_info("shader=%p size=%u\n",
-		 shader,
-			size_bytes);
+	prepare_shader(device, isa_bin, &isa_sz);
+	igt_assert(isa_sz > 0 && isa_sz <= 4096);
 
 	ring_context = calloc(1, sizeof(*ring_context));
 	igt_assert(ring_context);
 
-	gfx_ip->funcs->userq_create(device,
-			ring_context,
-			gfx_ip->type);
-
-	igt_info("UMQ queue created\n");
+	ip->funcs->userq_create(device, ring_context, ip->type);
+	igt_info("%s UMQ %u created\n", ip_type == AMD_IP_GFX ? "GFX" : "compute",
+		 ring_context->queue_id);
 
-	igt_info("timeline=%u point=%llu\n",
-		 ring_context->timeline_syncobj_handle,
-			(unsigned long long)ring_context->point);
-
-	base_cmd = get_cmd_base();
-	igt_assert(base_cmd);
-
-	r = amdgpu_bo_alloc_and_map_sync(
-			device,
-			65536,
-			4096,
-			AMDGPU_GEM_DOMAIN_GTT,
-			AMDGPU_GEM_CREATE_CPU_GTT_USWC,
-			AMDGPU_VM_MTYPE_UC,
-			&bo,
-			&cpu,
-			&mc,
-			&va,
-			ring_context->timeline_syncobj_handle,
-			++ring_context->point,
-			true);
+	/* IB at 0x0, shader at 0x1000, output at 0x2000 */
+	r = amdgpu_bo_alloc_and_map_sync(device, 65536, 4096,
+					 AMDGPU_GEM_DOMAIN_GTT,
+					 AMDGPU_GEM_CREATE_CPU_GTT_USWC,
+					 AMDGPU_VM_MTYPE_UC,
+					 &bo, &cpu, &mc, &va,
+					 ring_context->timeline_syncobj_handle,
+					 ++ring_context->point, true);
 	igt_assert_eq(r, 0);
 
-	r = amdgpu_timeline_syncobj_wait(
-			device,
-			ring_context->timeline_syncobj_handle,
-			ring_context->point);
+	r = amdgpu_timeline_syncobj_wait(device,
+					 ring_context->timeline_syncobj_handle,
+					 ring_context->point);
 	igt_assert_eq(r, 0);
 
 	memset(cpu, 0, 65536);
-
-	ptr_pm4 = (uint32_t *)cpu;
-
-	memcpy((uint8_t *)cpu + 0x1000,
-	       shader,
-			size_bytes);
-
-	ptr_output =
-		(volatile uint32_t *)((uint8_t *)cpu + 0x2000);
-
-	memset((void *)ptr_output, 0, 4096);
-
+	memcpy((uint8_t *)cpu + 0x1000, isa_bin, isa_sz);
+	ptr_output = (volatile uint32_t *)((uint8_t *)cpu + 0x2000);
 	shader_mc_addr = mc + 0x1000;
 	output_mc_addr = mc + 0x2000;
 
-	igt_info("shader_mc_addr = 0x%016llx\n",
-		 (unsigned long long)shader_mc_addr);
-
-	igt_info("output_mc_addr = 0x%016llx\n",
-		 (unsigned long long)output_mc_addr);
-
-	base_cmd->attach_buf(base_cmd,
-			ptr_pm4,
-			4096);
-
-	gfx_ip->funcs->gfx_program_compute(
-			gfx_ip->funcs,
-			base_cmd,
-			shader_mc_addr,
-			output_mc_addr,
-			0x002c0040,
-			0x00000010,
-			1,
-			1,
-			1);
-
-	igt_info("PM4 dwords after gfx_program_compute = %u\n",
-		 base_cmd->cdw);
-
-	gfx_ip->funcs->gfx_dispatch_direct(
-			gfx_ip->funcs,
-			base_cmd,
-			1,
-			1,
-			1,
-			0);
-
-	base_cmd->emit_aligned(base_cmd,
-			7,
-			GFX_COMPUTE_NOP);
-
-	igt_info("PM4 dwords after dispatch = %u\n",
-		 base_cmd->cdw);
-
-	ring_context->pm4_dw = base_cmd->cdw;
-
-	igt_info("UMQ pm4_dw=%u\n",
-		 ring_context->pm4_dw);
-
-	igt_info("IB gpu addr=0x%016llx\n",
-		 (unsigned long long)mc);
-
-	igt_info("Submitting REAL UMQ dispatch\n");
-
-	igt_info("=== PM4 DUMP BEGIN ===\n");
+	base_cmd = get_cmd_base();
+	igt_assert(base_cmd);
+	base_cmd->attach_buf(base_cmd, cpu, 4096);
 
-	for (int i = 0; i < base_cmd->cdw; i++) {
-		igt_info("PM4[%02d] = 0x%08x\n",
-			 i,
-				ptr_pm4[i]);
+	if (ip_type == AMD_IP_GFX) {
+		ip->funcs->gfx_program_compute(ip->funcs, base_cmd,
+					       shader_mc_addr, output_mc_addr,
+					       0x002c0040, 0x00000010, 1, 1, 1);
+		ip->funcs->gfx_dispatch_direct(ip->funcs, base_cmd, 1, 1, 1, 0);
+	} else {
+		/*
+		 * gfx_program_compute() starts with CONTEXT_CONTROL, a GFX only
+		 * packet, so program the dispatch like the compute KQ tests.
+		 */
+		amdgpu_dispatch_init(AMDGPU_HW_IP_COMPUTE, base_cmd, ip->major);
+		amdgpu_dispatch_write_cumask(base_cmd, ip->major);
+		amdgpu_dispatch_write2hw(base_cmd, shader_mc_addr, ip->major, 0);
+
+		/* COMPUTE_USER_DATA_0..3: s[0:1] = s[2:3] = output address */
+		base_cmd->emit(base_cmd, PACKET3_COMPUTE(PKT3_SET_SH_REG, 4));
+		base_cmd->emit(base_cmd, 0x240);
+		base_cmd->emit(base_cmd, lower_32_bits(output_mc_addr));
+		base_cmd->emit(base_cmd, upper_32_bits(output_mc_addr));
+		base_cmd->emit(base_cmd, lower_32_bits(output_mc_addr));
+		base_cmd->emit(base_cmd, upper_32_bits(output_mc_addr));
+
+		/* COMPUTE_RESOURCE_LIMITS */
+		base_cmd->emit(base_cmd, PACKET3_COMPUTE(PKT3_SET_SH_REG, 1));
+		base_cmd->emit(base_cmd, 0x215);
+		base_cmd->emit(base_cmd, 0);
+
+		base_cmd->emit(base_cmd, PACKET3_COMPUTE(PACKET3_DISPATCH_DIRECT, 3));
+		base_cmd->emit(base_cmd, 1);
+		base_cmd->emit(base_cmd, 1);
+		base_cmd->emit(base_cmd, 1);
+		base_cmd->emit(base_cmd, 1);
 	}
+	base_cmd->emit_aligned(base_cmd, 7, GFX_COMPUTE_NOP);
+	ring_context->pm4_dw = base_cmd->cdw;
 
-	igt_info("=== PM4 DUMP END ===\n");
-
-	igt_info("before submit point=%llu\n",
-		 (unsigned long long)ring_context->point);
-
-	igt_info("pre-submit wptr=%llu rptr=%llu\n",
-		 (unsigned long long)*ring_context->wptr_cpu,
-			(unsigned long long)*ring_context->rptr_cpu);
-
-	igt_info("IB first 16 DWs:\n");
-
-	for (int i = 0; i < 16 && i < ring_context->pm4_dw; i++)
-		igt_info("IB[%d]=0x%08x\n", i, ptr_pm4[i]);
-
-	gfx_ip->funcs->userq_submit(device,
-			ring_context,
-			gfx_ip->type,
-			mc);
-
-	igt_info("Returned from userq_submit()\n");
-
-	igt_info("post-submit wptr=%llu rptr=%llu\n",
-		 (unsigned long long)*ring_context->wptr_cpu,
-			(unsigned long long)*ring_context->rptr_cpu);
-
-	usleep(100000);
-
-	igt_info("100ms later wptr=%llu rptr=%llu\n",
-		 (unsigned long long)*ring_context->wptr_cpu,
-			(unsigned long long)*ring_context->rptr_cpu);
-
-	igt_info("after submit point=%llu\n",
-		 (unsigned long long)ring_context->point);
-
-	igt_info("timeline=%u point=%llu\n",
-		 ring_context->timeline_syncobj_handle,
-			(unsigned long long)ring_context->point);
-
-	r = amdgpu_timeline_syncobj_wait(
-			device,
-			ring_context->timeline_syncobj_handle,
-			ring_context->point);
-
-	igt_info("timeline wait ret=%d\n", r);
-
-	igt_info("pm4_dw=%u\n",
-		 ring_context->pm4_dw);
+	ip->funcs->userq_submit(device, ring_context, ip->type, mc);
 
-	for (int i = 0; i < 1000; i++) {
-		if (ptr_output[0])
-			break;
+	r = amdgpu_timeline_syncobj_wait(device,
+					 ring_context->timeline_syncobj_handle,
+					 ring_context->point);
+	igt_assert_eq(r, 0);
 
+	for (i = 0; i < 1000 && !ptr_output[0]; i++)
 		usleep(1000);
-	}
-
-	igt_info("final output=0x%x\n",
-		 ptr_output[0]);
-
-	igt_info("Post-dispatch output dump\n");
-
-	for (int i = 0; i < 16; i++) {
-		igt_info("OUT[%d] = 0x%08x\n",
-			 i,
-				ptr_output[i]);
-	}
-
-	igt_info("output_value=%u (0x%x)\n",
-		 ptr_output[0],
-			ptr_output[0]);
-
-	igt_info("VGPR proof output=%u\n",
-		 ptr_output[0]);
-
-	igt_assert_eq(ptr_output[0], 42);
-
-	igt_info("SLTH GFX UMQ VGPR PROOF COMPLETE\n");
-
-	amdgpu_bo_unmap_and_free(bo,
-				 va,
-			mc,
-			65536);
+	value = ptr_output[0];
+	igt_info("output_value=%u (0x%x)\n", value, value);
 
+	amdgpu_bo_unmap_and_free(bo, va, mc, 65536);
 	free_cmd_base(base_cmd);
-
-	gfx_ip->funcs->userq_destroy(device,
-			ring_context,
-			gfx_ip->type);
+	ip->funcs->userq_destroy(device, ring_context, ip->type);
+	free(ring_context);
 
 	r = vm_clear_l2_trap(fd);
-
 	igt_info("CLEAR_L2_TRAP ret=%d\n", r);
-
 	igt_assert_eq(r, 0);
-
 	slth_free_buffers(&bufs);
 
-	free(ring_context);
+	return value;
+}
 
-	igt_info("UMQ queue destroyed\n");
+static void slth_gfx_umq_vgpr_proof_test(amdgpu_device_handle device,
+					 int fd)
+{
+	uint32_t value;
+
+	igt_info("SLTH GFX UMQ VGPR PROOF\n");
+
+	value = slth_umq_run(device, fd, AMD_IP_GFX,
+			     slth_prepare_vgpr_proof_shader);
+
+	/* The trap handler sets v2 to 42 before the shader stores it. */
+	igt_assert_eq(value, 42);
+
+	igt_info("SLTH GFX UMQ VGPR PROOF COMPLETE\n");
 }
 
 static void
Signature · 1 line
2.50.1
#4 lore raw

PATCH 5/6 tests/amdgpu: add SLTH tests on compute user queues

In reply to Jesse Zhang

The SLTH tests run the VGPR proof on GFX kernel and user queues and on compute kernel queues, and the return proof only on compute kernel queues. The handler is set per GPUVM, but user queues get the trap setup from the MQD while kernel queues get it from the per-VMID registers, so the compute user queue path needs its own coverage.

Add slth-comp-umq-vgpr-proof and slth-comp-umq-returnproof, and slth-gfx-umq-returnproof for the missing GFX user queue return proof. They are skipped without user queue support for the IP.

---
 tests/amdgpu/amd_basic.c | 54 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)
tests/amdgpu/amd_basic.c +54 -0
index 2037c71ad..364ba774b 100644
@@ -2276,6 +2276,42 @@ slth_comp_kq_returnproof_test(amdgpu_device_handle device,
 	igt_info("COMP KQ RETURNPROOF COMPLETE\n");
 }
 
+static void
+slth_gfx_umq_returnproof_test(amdgpu_device_handle device, int fd)
+{
+	uint32_t value;
+
+	value = slth_umq_run(device, fd, AMD_IP_GFX,
+			     slth_prepare_returnproof_shader);
+
+	/* The instruction after s_trap sets v2 to 2 after the trap returns. */
+	igt_assert_eq(value, 2);
+}
+
+static void
+slth_comp_umq_vgpr_proof_test(amdgpu_device_handle device, int fd)
+{
+	uint32_t value;
+
+	value = slth_umq_run(device, fd, AMD_IP_COMPUTE,
+			     slth_prepare_vgpr_proof_shader);
+
+	/* The trap handler sets v2 to 42 before the shader stores it. */
+	igt_assert_eq(value, 42);
+}
+
+static void
+slth_comp_umq_returnproof_test(amdgpu_device_handle device, int fd)
+{
+	uint32_t value;
+
+	value = slth_umq_run(device, fd, AMD_IP_COMPUTE,
+			     slth_prepare_returnproof_shader);
+
+	/* The instruction after s_trap sets v2 to 2 after the trap returns. */
+	igt_assert_eq(value, 2);
+}
+
 int igt_main()
 {
 	amdgpu_device_handle device;
@@ -2454,6 +2490,24 @@ int igt_main()
 	igt_subtest("slth-comp-kq-returnproof")
 		slth_comp_kq_returnproof_test(device, fd);
 
+	igt_describe("Check-SLTH-trap-return-resumes-after-s_trap-on-GFX-user-queue");
+	igt_subtest("slth-gfx-umq-returnproof") {
+		igt_require(enable_test && userq_arr_cap[AMD_IP_GFX]);
+		slth_gfx_umq_returnproof_test(device, fd);
+	}
+
+	igt_describe("Check-SLTH-trap-handler-updates-VGPR-on-compute-user-queue");
+	igt_subtest("slth-comp-umq-vgpr-proof") {
+		igt_require(enable_test && userq_arr_cap[AMD_IP_COMPUTE]);
+		slth_comp_umq_vgpr_proof_test(device, fd);
+	}
+
+	igt_describe("Check-SLTH-trap-return-resumes-after-s_trap-on-compute-user-queue");
+	igt_subtest("slth-comp-umq-returnproof") {
+		igt_require(enable_test && userq_arr_cap[AMD_IP_COMPUTE]);
+		slth_comp_umq_returnproof_test(device, fd);
+	}
+
 	igt_fixture() {
 		amdgpu_device_deinitialize(device);
 		drm_close_driver(fd);
Signature · 1 line
2.50.1
#5 lore raw

PATCH 6/6 tests/amdgpu: move the SLTH tests to amd_slth

In reply to Jesse Zhang

The second-level trap handler tests have grown to seven subtests and about 1500 lines of their own helpers, shaders setup and dispatch code, none of which is shared with the other amd_basic tests.

Move them to their own amd_slth test. Skip them when the LLVM assembler is not available, like amd_mem does, instead of failing on the stub. amd_basic is back to what it was before the SLTH tests were added.

---
 tests/amdgpu/amd_basic.c | 1498 +-----------------------------------
 tests/amdgpu/amd_slth.c  | 1564 ++++++++++++++++++++++++++++++++++++++
 tests/amdgpu/meson.build |    1 +
 3 files changed, 1566 insertions(+), 1497 deletions(-)
 create mode 100644 tests/amdgpu/amd_slth.c
tests/amdgpu/amd_basic.c +1 -1497
index 364ba774b..590163b7b 100644
@@ -20,28 +20,9 @@
 #include "lib/amdgpu/amdgpu_asic_addr.h"
 #include "lib/amdgpu/amd_utils.h"
 #include "lib/amdgpu/amd_platform.h"
-#include "lib/amdgpu/shaders/amd_llvm_asm.h"
-#include "lib/amdgpu/shaders/amd_shader_store.h"
 
 #define BUFFER_SIZE (8 * 1024)
 
-#define TBA_SIZE (2 * 4096)
-#define TMA_SIZE (4096)
-
-struct slth_bufs {
-	amdgpu_bo_handle tba_bo;
-	amdgpu_bo_handle tma_bo;
-
-	amdgpu_va_handle tba_va_handle;
-	amdgpu_va_handle tma_va_handle;
-
-	uint64_t tba_mc_addr;
-	uint64_t tma_mc_addr;
-
-	void *tba_cpu;
-	void *tma_cpu;
-};
-
 /**
  * MEM ALLOC TEST
  * @param device
@@ -865,1453 +846,6 @@ static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
 	free(ring_context);
 }
 
-static void slth_alloc_buffers(amdgpu_device_handle device,
-			       struct slth_bufs *bufs)
-{
-	int r;
-
-	memset(bufs, 0, sizeof(*bufs));
-
-	r = amdgpu_bo_alloc_and_map(
-			device,
-			TBA_SIZE,
-			4096,
-			AMDGPU_GEM_DOMAIN_GTT,
-			AMDGPU_GEM_CREATE_VM_ALWAYS_VALID,
-			&bufs->tba_bo,
-			&bufs->tba_cpu,
-			&bufs->tba_mc_addr,
-			&bufs->tba_va_handle);
-	igt_assert_eq(r, 0);
-
-	r = amdgpu_bo_alloc_and_map(
-			device,
-			TMA_SIZE,
-			4096,
-			AMDGPU_GEM_DOMAIN_GTT,
-			AMDGPU_GEM_CREATE_VM_ALWAYS_VALID,
-			&bufs->tma_bo,
-			&bufs->tma_cpu,
-			&bufs->tma_mc_addr,
-			&bufs->tma_va_handle);
-	igt_assert_eq(r, 0);
-}
-
-static void slth_free_buffers(struct slth_bufs *bufs)
-{
-	if (bufs->tba_bo)
-		amdgpu_bo_unmap_and_free(bufs->tba_bo,
-					 bufs->tba_va_handle,
-				bufs->tba_mc_addr,
-				TBA_SIZE);
-
-	if (bufs->tma_bo)
-		amdgpu_bo_unmap_and_free(bufs->tma_bo,
-					 bufs->tma_va_handle,
-				bufs->tma_mc_addr,
-				TMA_SIZE);
-}
-
-static int vm_set_l2_trap(int fd,
-			  uint64_t tba_va,
-		uint64_t tma_va)
-{
-	union drm_amdgpu_vm args = {0};
-
-	args.in.op = AMDGPU_VM_OP_SET_L2_TRAP;
-
-	args.in.l2trap.tba_va = tba_va;
-	args.in.l2trap.tba_sz = TBA_SIZE;
-
-	args.in.l2trap.tma_va = tma_va;
-	args.in.l2trap.tma_sz = TMA_SIZE;
-
-	return drmIoctl(fd, DRM_IOCTL_AMDGPU_VM, &args);
-}
-
-static int vm_clear_l2_trap(int fd)
-{
-	union drm_amdgpu_vm args = {0};
-
-	args.in.op = AMDGPU_VM_OP_CLEAR_L2_TRAP;
-
-	return drmIoctl(fd, DRM_IOCTL_AMDGPU_VM, &args);
-}
-
-static void slth_prepare_tba_with_handler(
-		amdgpu_device_handle device,
-		struct slth_bufs *bufs,
-		const char *handler)
-{
-	struct amdgpu_gpu_info info = {0};
-	char mcpu[32] = {};
-	uint8_t isa_bin[8192];
-	size_t isa_sz = 0;
-	int r;
-
-	r = amdgpu_query_gpu_info(device, &info);
-	igt_assert_eq(r, 0);
-
-	r = amdgpu_family_id_to_mcpu(info.family_id,
-				     mcpu,
-			sizeof(mcpu));
-	igt_assert_eq(r, 0);
-
-	igt_info("family_id=%u mcpu=%s\n",
-		 info.family_id,
-			mcpu);
-
-	r = amdgpu_llvm_assemble(mcpu,
-				 handler,
-			isa_bin,
-			sizeof(isa_bin),
-			&isa_sz);
-
-	if (r)
-		igt_info("amdgpu_llvm_assemble failed r=%d\n", r);
-
-	igt_assert_eq(r, 0);
-	igt_assert(isa_sz > 0);
-
-	memset(bufs->tba_cpu, 0, TBA_SIZE);
-	memcpy(bufs->tba_cpu,
-	       isa_bin,
-			isa_sz);
-
-	memset(bufs->tma_cpu, 0, TMA_SIZE);
-
-	igt_info("Trap handler size=%zu\n", isa_sz);
-}
-
-static void slth_prepare_vgpr_proof_shader(amdgpu_device_handle device,
-					   uint8_t *isa_bin,
-		size_t *isa_sz)
-{
-	struct amdgpu_gpu_info info = {0};
-	char mcpu[32] = {};
-	int r;
-
-	r = amdgpu_query_gpu_info(device, &info);
-	igt_assert_eq(r, 0);
-
-	r = amdgpu_family_id_to_mcpu(info.family_id,
-				     mcpu,
-			sizeof(mcpu));
-	igt_assert_eq(r, 0);
-
-	igt_info("===== SLTH VGPR PROOF SHADER BEGIN =====\n");
-	igt_info("%s\n", SlthVgprProofIsa);
-	igt_info("SLTH VGPR PROOF ISA DUMP\n");
-
-	r = amdgpu_llvm_assemble(mcpu,
-				 SlthVgprProofIsa,
-			isa_bin,
-			8192,
-			isa_sz);
-
-	igt_info("amdgpu_llvm_assemble returned %d\n", r);
-
-	if (r) {
-		igt_info("===== SHADER SOURCE BEGIN =====\n");
-		igt_info("%s\n", SlthVgprProofIsa);
-		igt_info("===== SHADER SOURCE END =====\n");
-	}
-
-	igt_assert_eq(r, 0);
-	igt_assert(*isa_sz > 0);
-
-	igt_info("SlthVgprProofIsa size=%zu\n", *isa_sz);
-
-	igt_info("SLTH VGPR PROOF ISA DUMP\n");
-
-	for (unsigned int i = 0; i < (*isa_sz / sizeof(uint32_t)); i++) {
-		igt_info("ISA[%u] = 0x%08x\n",
-			 i,
-				((uint32_t *)isa_bin)[i]);
-	}
-}
-
-static uint32_t execute_slth_dispatch(
-		amdgpu_device_handle device,
-		uint32_t ip_type,
-		uint32_t version,
-		const uint32_t *shader,
-		uint32_t shader_size)
-{
-	const struct amdgpu_ip_block_version *gfx_ip =
-		get_ip_block(device, AMD_IP_GFX);
-
-	amdgpu_context_handle context_handle;
-
-	amdgpu_bo_handle bo = NULL;
-	amdgpu_va_handle va = 0;
-
-	void *cpu = NULL;
-	uint32_t *ptr_pm4 = NULL;
-	volatile uint32_t *ptr_output = NULL;
-
-	uint64_t mc = 0;
-	uint64_t shader_mc_addr;
-	uint64_t output_mc_addr;
-
-	struct amdgpu_cmd_base *base_cmd;
-	struct amdgpu_cs_request ib_req = {0};
-	struct amdgpu_cs_ib_info ib_info = {0};
-	struct amdgpu_cs_fence fence = {0};
-
-	amdgpu_bo_list_handle bo_list = NULL;
-
-	amdgpu_bo_handle bos[1];
-
-	uint32_t expired = 0;
-	uint32_t output_value;
-	int r;
-
-	base_cmd = get_cmd_base();
-	igt_assert(base_cmd);
-
-	r = amdgpu_cs_ctx_create(device, &context_handle);
-	igt_assert_eq(r, 0);
-
-	r = amdgpu_bo_alloc_and_map(device,
-				    65536,
-			4096,
-			AMDGPU_GEM_DOMAIN_GTT,
-			0,
-			&bo,
-			&cpu,
-			&mc,
-			&va);
-	igt_assert_eq(r, 0);
-
-	memset(cpu, 0, 65536);
-
-	ptr_pm4 = (uint32_t *)cpu;
-
-	memcpy((uint8_t *)cpu + 0x1000,
-	       shader,
-			shader_size);
-
-	ptr_output =
-		(volatile uint32_t *)((uint8_t *)cpu + 0x2000);
-
-	memset((void *)ptr_output, 0, 4096);
-
-	shader_mc_addr = mc + 0x1000;
-	output_mc_addr = mc + 0x2000;
-
-	igt_info("s0 expected address low  = 0x%08x\n",
-		 lower_32_bits(output_mc_addr));
-
-	igt_info("s1 expected address high = 0x%08x\n",
-		 upper_32_bits(output_mc_addr));
-
-	igt_info("========================================\n");
-	igt_info("SLTH DISPATCH START\n");
-	igt_info("========================================\n");
-
-	igt_info("ip_type        = %u\n", ip_type);
-	igt_info("version        = %u\n", version);
-
-	igt_info("base_mc_addr   = 0x%016llx\n",
-		 (unsigned long long)mc);
-
-	igt_info("shader_mc_addr = 0x%016llx\n",
-		 (unsigned long long)shader_mc_addr);
-
-	igt_info("output_mc_addr = 0x%016llx\n",
-		 (unsigned long long)output_mc_addr);
-
-	igt_info("shader_end     = 0x%016llx\n",
-		 (unsigned long long)
-			(shader_mc_addr + shader_size));
-
-	igt_info("output_end     = 0x%016llx\n",
-		 (unsigned long long)
-			(output_mc_addr + 16384));
-
-	base_cmd->attach_buf(base_cmd,
-			ptr_pm4,
-			4096);
-
-	igt_assert(gfx_ip);
-	igt_assert(gfx_ip->funcs);
-	igt_assert(gfx_ip->funcs->gfx_program_compute);
-	igt_assert(gfx_ip->funcs->gfx_dispatch_direct);
-
-	igt_info("========================================\n");
-	igt_info("NATIVE GFX PROGRAMMING\n");
-	igt_info("========================================\n");
-
-	igt_info("user_data[0] = 0x%08x\n",
-		 lower_32_bits(output_mc_addr));
-
-	igt_info("user_data[1] = 0x%08x\n",
-		 upper_32_bits(output_mc_addr));
-
-	gfx_ip->funcs->gfx_program_compute(
-			gfx_ip->funcs,
-			base_cmd,
-			shader_mc_addr,
-			output_mc_addr,
-			0x002c0040,
-			0x00000010,
-			1,
-			1,
-			1);
-
-	igt_info("PM4 dwords after gfx_program_compute = %u\n",
-		 base_cmd->cdw);
-
-	gfx_ip->funcs->gfx_dispatch_direct(
-			gfx_ip->funcs,
-			base_cmd,
-			1,
-			1,
-			1,
-			0);
-
-	base_cmd->emit_aligned(base_cmd,
-			7,
-			GFX_COMPUTE_NOP);
-
-	igt_info("PM4 dwords after dispatch = %u\n",
-		 base_cmd->cdw);
-
-	bos[0] = bo;
-
-	r = amdgpu_bo_list_create(device,
-				  1,
-			bos,
-			NULL,
-			&bo_list);
-	igt_assert_eq(r, 0);
-
-	ib_info.ib_mc_address = mc;
-	ib_info.size = base_cmd->cdw;
-
-	ib_req.ip_type = ip_type;
-	ib_req.ring = 0;
-	ib_req.resources = bo_list;
-	ib_req.number_of_ibs = 1;
-	ib_req.ibs = &ib_info;
-
-	igt_info("========================================\n");
-	igt_info("PRE-DISPATCH OUTPUT BUFFER\n");
-	igt_info("========================================\n");
-
-	for (int i = 0; i < 16; i++) {
-		igt_info("PRE[%d] = 0x%08x\n",
-			 i,
-				ptr_output[i]);
-	}
-
-	igt_info("========================================\n");
-	igt_info("IB SUBMIT\n");
-	igt_info("========================================\n");
-
-	igt_info("ib_mc_address = 0x%016llx\n",
-		 (unsigned long long)ib_info.ib_mc_address);
-
-	igt_info("ib_size_dw    = %u\n",
-		 ib_info.size);
-
-	r = amdgpu_cs_submit(context_handle,
-			     0,
-			&ib_req,
-			1);
-
-	igt_info("cs_submit ret = %d\n", r);
-
-	igt_assert_eq(r, 0);
-
-	fence.context = context_handle;
-	fence.ip_type = ip_type;
-	fence.ip_instance = 0;
-	fence.ring = 0;
-	fence.fence = ib_req.seq_no;
-
-	r = amdgpu_cs_query_fence_status(&fence,
-					 5000000000ULL,
-			0,
-			&expired);
-
-	igt_info("========================================\n");
-	igt_info("FENCE STATUS\n");
-	igt_info("========================================\n");
-
-	igt_info("query ret = %d\n", r);
-	igt_info("expired   = %u\n", expired);
-
-	igt_assert_eq(r, 0);
-	igt_assert_eq(expired, 1);
-
-	output_value = ptr_output[0];
-
-	igt_info("========================================\n");
-	igt_info("OUTPUT BUFFER DUMP\n");
-	igt_info("========================================\n");
-
-	for (int i = 0; i < 16; i++) {
-		igt_info("OUT[%d] = 0x%08x\n",
-			 i,
-				ptr_output[i]);
-	}
-
-	igt_info("========================================\n");
-	igt_info("RESULT\n");
-	igt_info("========================================\n");
-
-	igt_info("output value = 0x%x (%u)\n",
-		 output_value,
-			output_value);
-
-	if (bo_list)
-		amdgpu_bo_list_destroy(bo_list);
-
-	amdgpu_bo_unmap_and_free(bo,
-				 va,
-			mc,
-			65536);
-
-	amdgpu_cs_ctx_free(context_handle);
-
-	free_cmd_base(base_cmd);
-
-	igt_info("SLTH DISPATCH END\n");
-
-	return output_value;
-}
-
-static void slth_gfx_kq_vgpr_proof_test(amdgpu_device_handle device,
-					int fd)
-{
-	struct slth_bufs bufs;
-	uint8_t isa_bin[8192];
-	size_t isa_sz = 0;
-
-	struct amdgpu_gpu_info info = {0};
-	uint32_t version = 12;
-	uint32_t value;
-
-	int ret;
-	int r;
-
-	memset(&bufs, 0, sizeof(bufs));
-
-	igt_info("SLTH GFX KQ VGPR PROOF\n");
-
-	slth_alloc_buffers(device, &bufs);
-
-	slth_prepare_tba_with_handler(device,
-				      &bufs,
-			TrapHandlerIsaProof);
-
-	ret = vm_set_l2_trap(fd,
-			     bufs.tba_mc_addr,
-			bufs.tma_mc_addr);
-	igt_assert_eq(ret, 0);
-
-	slth_prepare_vgpr_proof_shader(device,
-				       isa_bin,
-			&isa_sz);
-
-	r = amdgpu_query_gpu_info(device, &info);
-	igt_assert_eq(r, 0);
-
-	if (FAMILY_IS_GFX1200(info.family_id))
-		version = 12;
-	else if (FAMILY_IS_GFX1150(info.family_id) ||
-		 FAMILY_IS_GFX1100(info.family_id) ||
-			FAMILY_IS_GFX1036(info.family_id) ||
-			FAMILY_IS_GFX1037(info.family_id) ||
-			FAMILY_IS_YC(info.family_id) ||
-			info.family_id == FAMILY_GFX1103)
-		version = 11;
-	else
-		version = 10;
-
-	igt_info("Running SLTH VGPR proof shader\n");
-
-	value = execute_slth_dispatch(device,
-				      AMDGPU_HW_IP_GFX,
-			version,
-			(const uint32_t *)isa_bin,
-			(uint32_t)isa_sz);
-
-	igt_info("VGPR proof output value=%u\n", value);
-
-	if (value == 42)
-		igt_info("SLTH trap handler updated VGPR state, shader resumed successfully\n");
-	else
-		igt_info("SLTH GFX KQ VGPR proof failed: expected=42 actual=%u\n",
-			 value);
-
-	igt_assert_eq(value, 42);
-
-	ret = vm_clear_l2_trap(fd);
-	igt_assert_eq(ret, 0);
-
-	slth_free_buffers(&bufs);
-
-	igt_info("SLTH GFX KQ VGPR PROOF COMPLETE\n");
-}
-
-/*
- * Run a SLTH shader on a GFX or compute user queue and return the dword it
- * stores. The second-level trap handler is set per GPUVM, so user queues get
- * it like kernel queues do. The shader stores to the address in s[0:1].
- */
-static uint32_t
-slth_umq_run(amdgpu_device_handle device, int fd, unsigned int ip_type,
-	     void (*prepare_shader)(amdgpu_device_handle device,
-				    uint8_t *isa_bin, size_t *isa_sz))
-{
-	const struct amdgpu_ip_block_version *ip = get_ip_block(device, ip_type);
-	struct amdgpu_ring_context *ring_context;
-	struct amdgpu_cmd_base *base_cmd;
-	struct slth_bufs bufs;
-	amdgpu_bo_handle bo;
-	amdgpu_va_handle va;
-	volatile uint32_t *ptr_output;
-	uint64_t mc, shader_mc_addr, output_mc_addr;
-	uint8_t isa_bin[8192];
-	size_t isa_sz = 0;
-	uint32_t value;
-	void *cpu;
-	int r, i;
-
-	igt_assert(ip_type == AMD_IP_GFX || ip_type == AMD_IP_COMPUTE);
-	igt_assert(ip && ip->funcs);
-
-	memset(&bufs, 0, sizeof(bufs));
-	slth_alloc_buffers(device, &bufs);
-	slth_prepare_tba_with_handler(device, &bufs, TrapHandlerIsaProof);
-
-	r = vm_set_l2_trap(fd, bufs.tba_mc_addr, bufs.tma_mc_addr);
-	igt_info("SET_L2_TRAP ret=%d\n", r);
-	igt_assert_eq(r, 0);
-
-	prepare_shader(device, isa_bin, &isa_sz);
-	igt_assert(isa_sz > 0 && isa_sz <= 4096);
-
-	ring_context = calloc(1, sizeof(*ring_context));
-	igt_assert(ring_context);
-
-	ip->funcs->userq_create(device, ring_context, ip->type);
-	igt_info("%s UMQ %u created\n", ip_type == AMD_IP_GFX ? "GFX" : "compute",
-		 ring_context->queue_id);
-
-	/* IB at 0x0, shader at 0x1000, output at 0x2000 */
-	r = amdgpu_bo_alloc_and_map_sync(device, 65536, 4096,
-					 AMDGPU_GEM_DOMAIN_GTT,
-					 AMDGPU_GEM_CREATE_CPU_GTT_USWC,
-					 AMDGPU_VM_MTYPE_UC,
-					 &bo, &cpu, &mc, &va,
-					 ring_context->timeline_syncobj_handle,
-					 ++ring_context->point, true);
-	igt_assert_eq(r, 0);
-
-	r = amdgpu_timeline_syncobj_wait(device,
-					 ring_context->timeline_syncobj_handle,
-					 ring_context->point);
-	igt_assert_eq(r, 0);
-
-	memset(cpu, 0, 65536);
-	memcpy((uint8_t *)cpu + 0x1000, isa_bin, isa_sz);
-	ptr_output = (volatile uint32_t *)((uint8_t *)cpu + 0x2000);
-	shader_mc_addr = mc + 0x1000;
-	output_mc_addr = mc + 0x2000;
-
-	base_cmd = get_cmd_base();
-	igt_assert(base_cmd);
-	base_cmd->attach_buf(base_cmd, cpu, 4096);
-
-	if (ip_type == AMD_IP_GFX) {
-		ip->funcs->gfx_program_compute(ip->funcs, base_cmd,
-					       shader_mc_addr, output_mc_addr,
-					       0x002c0040, 0x00000010, 1, 1, 1);
-		ip->funcs->gfx_dispatch_direct(ip->funcs, base_cmd, 1, 1, 1, 0);
-	} else {
-		/*
-		 * gfx_program_compute() starts with CONTEXT_CONTROL, a GFX only
-		 * packet, so program the dispatch like the compute KQ tests.
-		 */
-		amdgpu_dispatch_init(AMDGPU_HW_IP_COMPUTE, base_cmd, ip->major);
-		amdgpu_dispatch_write_cumask(base_cmd, ip->major);
-		amdgpu_dispatch_write2hw(base_cmd, shader_mc_addr, ip->major, 0);
-
-		/* COMPUTE_USER_DATA_0..3: s[0:1] = s[2:3] = output address */
-		base_cmd->emit(base_cmd, PACKET3_COMPUTE(PKT3_SET_SH_REG, 4));
-		base_cmd->emit(base_cmd, 0x240);
-		base_cmd->emit(base_cmd, lower_32_bits(output_mc_addr));
-		base_cmd->emit(base_cmd, upper_32_bits(output_mc_addr));
-		base_cmd->emit(base_cmd, lower_32_bits(output_mc_addr));
-		base_cmd->emit(base_cmd, upper_32_bits(output_mc_addr));
-
-		/* COMPUTE_RESOURCE_LIMITS */
-		base_cmd->emit(base_cmd, PACKET3_COMPUTE(PKT3_SET_SH_REG, 1));
-		base_cmd->emit(base_cmd, 0x215);
-		base_cmd->emit(base_cmd, 0);
-
-		base_cmd->emit(base_cmd, PACKET3_COMPUTE(PACKET3_DISPATCH_DIRECT, 3));
-		base_cmd->emit(base_cmd, 1);
-		base_cmd->emit(base_cmd, 1);
-		base_cmd->emit(base_cmd, 1);
-		base_cmd->emit(base_cmd, 1);
-	}
-	base_cmd->emit_aligned(base_cmd, 7, GFX_COMPUTE_NOP);
-	ring_context->pm4_dw = base_cmd->cdw;
-
-	ip->funcs->userq_submit(device, ring_context, ip->type, mc);
-
-	r = amdgpu_timeline_syncobj_wait(device,
-					 ring_context->timeline_syncobj_handle,
-					 ring_context->point);
-	igt_assert_eq(r, 0);
-
-	for (i = 0; i < 1000 && !ptr_output[0]; i++)
-		usleep(1000);
-	value = ptr_output[0];
-	igt_info("output_value=%u (0x%x)\n", value, value);
-
-	amdgpu_bo_unmap_and_free(bo, va, mc, 65536);
-	free_cmd_base(base_cmd);
-	ip->funcs->userq_destroy(device, ring_context, ip->type);
-	free(ring_context);
-
-	r = vm_clear_l2_trap(fd);
-	igt_info("CLEAR_L2_TRAP ret=%d\n", r);
-	igt_assert_eq(r, 0);
-	slth_free_buffers(&bufs);
-
-	return value;
-}
-
-static void slth_gfx_umq_vgpr_proof_test(amdgpu_device_handle device,
-					 int fd)
-{
-	uint32_t value;
-
-	igt_info("SLTH GFX UMQ VGPR PROOF\n");
-
-	value = slth_umq_run(device, fd, AMD_IP_GFX,
-			     slth_prepare_vgpr_proof_shader);
-
-	/* The trap handler sets v2 to 42 before the shader stores it. */
-	igt_assert_eq(value, 42);
-
-	igt_info("SLTH GFX UMQ VGPR PROOF COMPLETE\n");
-}
-
-static void
-slth_comp_kq_vgpr_proof_test(amdgpu_device_handle device,
-			     int fd)
-{
-	struct slth_bufs bufs;
-
-	amdgpu_context_handle context_handle;
-
-	amdgpu_bo_handle bo_dst;
-	amdgpu_bo_handle bo_shader;
-	amdgpu_bo_handle bo_cmd;
-
-	amdgpu_bo_handle resources[3];
-
-	volatile uint32_t *ptr_dst;
-
-	void *ptr_shader;
-	uint32_t *ptr_cmd;
-
-	uint64_t mc_address_dst;
-	uint64_t mc_address_shader;
-	uint64_t mc_address_cmd;
-
-	amdgpu_va_handle va_dst;
-	amdgpu_va_handle va_shader;
-	amdgpu_va_handle va_cmd;
-
-	amdgpu_bo_list_handle bo_list;
-
-	struct amdgpu_cs_request ibs_request = {0};
-	struct amdgpu_cs_ib_info ib_info = {0};
-	struct amdgpu_cs_fence fence_status = {0};
-
-	struct amdgpu_cmd_base *base_cmd =
-		get_cmd_base();
-
-	uint32_t expired = 0;
-	uint32_t version = 12;
-
-	uint8_t isa_bin[8192];
-	size_t isa_sz = 0;
-
-	int bo_dst_size = 16384;
-	int bo_shader_size = 4096;
-	int bo_cmd_size = 4096;
-
-	int i;
-	int r;
-	int ret;
-
-	igt_assert(base_cmd);
-
-	memset(&bufs, 0, sizeof(bufs));
-
-	igt_info("========================================\n");
-	igt_info("COMP KQ VGPR PROOF\n");
-	igt_info("SLTH VGPR PROOF\n");
-	igt_info("========================================\n");
-
-	slth_alloc_buffers(device, &bufs);
-
-	slth_prepare_tba_with_handler(device,
-				      &bufs,
-			TrapHandlerIsaProof);
-
-	ret = vm_set_l2_trap(fd,
-			     bufs.tba_mc_addr,
-			bufs.tma_mc_addr);
-
-	igt_info("SET_L2_TRAP ret=%d\n", ret);
-	igt_assert_eq(ret, 0);
-
-	slth_prepare_vgpr_proof_shader(device,
-				       isa_bin,
-			&isa_sz);
-
-	igt_assert(isa_sz > 0);
-
-	igt_info("SlthVgprProofIsa size=%zu\n",
-		 isa_sz);
-
-	igt_info("===== SLTH VGPR PROOF ISA BEGIN =====\n");
-
-	for (i = 0; i < isa_sz / 4; i++) {
-		igt_info("ISA[%02d] = 0x%08x\n",
-			 i,
-				((uint32_t *)isa_bin)[i]);
-	}
-
-	igt_info("===== SLTH VGPR PROOF ISA END =====\n");
-
-	r = amdgpu_cs_ctx_create(device,
-				 &context_handle);
-	igt_assert_eq(r, 0);
-
-	r = amdgpu_bo_alloc_and_map(device,
-				    bo_cmd_size,
-			4096,
-			AMDGPU_GEM_DOMAIN_GTT,
-			0,
-			&bo_cmd,
-			(void **)&ptr_cmd,
-			&mc_address_cmd,
-			&va_cmd);
-	igt_assert_eq(r, 0);
-
-	memset(ptr_cmd, 0, bo_cmd_size);
-
-	base_cmd->attach_buf(base_cmd,
-			ptr_cmd,
-			bo_cmd_size);
-
-	r = amdgpu_bo_alloc_and_map(device,
-				    bo_shader_size,
-			4096,
-			AMDGPU_GEM_DOMAIN_VRAM,
-			0,
-			&bo_shader,
-			&ptr_shader,
-			&mc_address_shader,
-			&va_shader);
-	igt_assert_eq(r, 0);
-
-	memset(ptr_shader, 0, bo_shader_size);
-
-	memcpy(ptr_shader,
-	       isa_bin,
-			isa_sz);
-
-	igt_info("shader_mc_addr=0x%016llx\n",
-		 (unsigned long long)mc_address_shader);
-
-	r = amdgpu_bo_alloc_and_map(device,
-				    bo_dst_size,
-			4096,
-			AMDGPU_GEM_DOMAIN_VRAM,
-			0,
-			&bo_dst,
-			(void **)&ptr_dst,
-			&mc_address_dst,
-			&va_dst);
-	igt_assert_eq(r, 0);
-
-	memset((void *)ptr_dst,
-	       0,
-			bo_dst_size);
-
-	igt_info("output_mc_addr=0x%016llx\n",
-		 (unsigned long long)mc_address_dst);
-
-	igt_info("output_lo=0x%08x\n",
-		 lower_32_bits(mc_address_dst));
-
-	igt_info("output_hi=0x%08x\n",
-		 upper_32_bits(mc_address_dst));
-
-	amdgpu_dispatch_init(
-			AMDGPU_HW_IP_COMPUTE,
-			base_cmd,
-			version);
-
-	amdgpu_dispatch_write_cumask(
-			base_cmd,
-			version);
-
-	igt_info("shader_mc_addr=0x%016llx\n",
-		 (unsigned long long)mc_address_shader);
-
-	igt_info("output_mc_addr=0x%016llx\n",
-		 (unsigned long long)mc_address_dst);
-
-	amdgpu_dispatch_write2hw(
-			base_cmd,
-			mc_address_shader,
-			version,
-			0);
-
-	igt_info("cdw after write2hw = %u\n",
-		 base_cmd->cdw);
-
-	for (uint32_t j = 0; j < base_cmd->cdw; j++)
-		igt_info("PRE_USERDATA_PM4[%02u] = 0x%08x\n",
-			 j,
-				ptr_cmd[j]);
-
-	igt_info("========================================\n");
-	igt_info("COMPUTE USER DATA PROGRAMMING\n");
-	igt_info("========================================\n");
-
-	igt_info("mc_address_dst      = 0x%016llx\n",
-		 (unsigned long long)mc_address_dst);
-
-	igt_info("dst low dword       = 0x%08x\n",
-		 (uint32_t)mc_address_dst);
-
-	igt_info("dst high dword      = 0x%08x\n",
-		 (uint32_t)(mc_address_dst >> 32));
-
-	igt_info("SET_SH_REG base     = 0x240\n");
-
-	base_cmd->emit(base_cmd,
-			PACKET3_COMPUTE(PKT3_SET_SH_REG, 4));
-
-	base_cmd->emit(base_cmd, 0x240);
-
-	/*
-	 * s0:s1 = source address
-	 */
-	base_cmd->emit(base_cmd,
-			(uint32_t)mc_address_dst);
-
-	base_cmd->emit(base_cmd,
-			(uint32_t)(mc_address_dst >> 32));
-
-	/*
-	 * s2:s3 = destination address
-	 */
-	base_cmd->emit(base_cmd,
-			(uint32_t)mc_address_dst);
-
-	base_cmd->emit(base_cmd,
-			(uint32_t)(mc_address_dst >> 32));
-	igt_info("USER_DATA[0] (s0 low)  = 0x%08x\n",
-		 (uint32_t)mc_address_dst);
-
-	igt_info("USER_DATA[1] (s1 high) = 0x%08x\n",
-		 (uint32_t)(mc_address_dst >> 32));
-
-	igt_info("USER_DATA[2] (s2 low)  = 0x%08x\n",
-		 (uint32_t)mc_address_dst);
-
-	igt_info("USER_DATA[3] (s3 high) = 0x%08x\n",
-		 (uint32_t)(mc_address_dst >> 32));
-
-	base_cmd->emit(base_cmd,
-			PACKET3_COMPUTE(PKT3_SET_SH_REG, 1));
-
-	base_cmd->emit(base_cmd, 0x215);
-	base_cmd->emit(base_cmd, 0);
-
-	base_cmd->emit(base_cmd,
-			PACKET3_COMPUTE(PACKET3_DISPATCH_DIRECT,
-					3));
-
-	base_cmd->emit(base_cmd, 1);
-	base_cmd->emit(base_cmd, 1);
-	base_cmd->emit(base_cmd, 1);
-	base_cmd->emit(base_cmd, 1);
-
-	base_cmd->emit_aligned(base_cmd,
-			7,
-			GFX_COMPUTE_NOP);
-
-	igt_info("Dispatch PM4 DW=%u\n",
-		 base_cmd->cdw);
-
-	igt_info("========================================\n");
-	igt_info("FINAL PM4 DUMP\n");
-	igt_info("========================================\n");
-
-	for (uint32_t j = 0; j < base_cmd->cdw; j++)
-		igt_info("PM4[%02u] = 0x%08x\n",
-			 j,
-				ptr_cmd[j]);
-
-	resources[0] = bo_dst;
-	resources[1] = bo_shader;
-	resources[2] = bo_cmd;
-
-	r = amdgpu_bo_list_create(device,
-				  3,
-			resources,
-			NULL,
-			&bo_list);
-
-	igt_assert_eq(r, 0);
-
-	ib_info.ib_mc_address = mc_address_cmd;
-	ib_info.size = base_cmd->cdw;
-
-	ibs_request.ip_type = AMDGPU_HW_IP_COMPUTE;
-	ibs_request.ring = 0;
-	ibs_request.resources = bo_list;
-	ibs_request.number_of_ibs = 1;
-	ibs_request.ibs = &ib_info;
-
-	r = amdgpu_cs_submit(context_handle,
-			     0,
-			&ibs_request,
-			1);
-
-	igt_info("cs_submit ret=%d\n", r);
-	igt_assert_eq(r, 0);
-
-	fence_status.ip_type = AMDGPU_HW_IP_COMPUTE;
-	fence_status.ip_instance = 0;
-	fence_status.ring = 0;
-	fence_status.context = context_handle;
-	fence_status.fence = ibs_request.seq_no;
-
-	r = amdgpu_cs_query_fence_status(
-			&fence_status,
-			AMDGPU_TIMEOUT_INFINITE,
-			0,
-			&expired);
-
-	igt_info("fence ret=%d expired=%u\n",
-		 r,
-			expired);
-
-	igt_assert_eq(r, 0);
-	igt_assert_eq(expired, 1);
-
-	igt_info("===== OUTPUT DUMP =====\n");
-
-	for (i = 0; i < 32; i++) {
-		igt_info("OUT[%02d]=0x%08x\n",
-			 i,
-				ptr_dst[i]);
-	}
-
-	igt_info("output[0]=0x%x (%u)\n",
-		 ptr_dst[0],
-			ptr_dst[0]);
-
-	igt_assert_eq(ptr_dst[0], 42);
-
-	ret = vm_clear_l2_trap(fd);
-
-	igt_info("CLEAR_L2_TRAP ret=%d\n", ret);
-	igt_assert_eq(ret, 0);
-
-	slth_free_buffers(&bufs);
-
-	amdgpu_bo_list_destroy(bo_list);
-
-	amdgpu_bo_unmap_and_free(
-			bo_dst,
-			va_dst,
-			mc_address_dst,
-			bo_dst_size);
-
-	amdgpu_bo_unmap_and_free(
-			bo_shader,
-			va_shader,
-			mc_address_shader,
-			bo_shader_size);
-
-	amdgpu_bo_unmap_and_free(
-			bo_cmd,
-			va_cmd,
-			mc_address_cmd,
-			bo_cmd_size);
-
-	amdgpu_cs_ctx_free(context_handle);
-
-	free_cmd_base(base_cmd);
-
-	igt_info("COMP KQ VGPR PROOF COMPLETE\n");
-}
-
-static void
-slth_prepare_returnproof_shader(amdgpu_device_handle device,
-				uint8_t *isa_bin,
-		size_t *isa_sz)
-{
-	struct amdgpu_gpu_info info = {0};
-	char mcpu[32] = {};
-	int r;
-
-	r = amdgpu_query_gpu_info(device, &info);
-	igt_assert_eq(r, 0);
-
-	r = amdgpu_family_id_to_mcpu(info.family_id,
-				     mcpu,
-			sizeof(mcpu));
-	igt_assert_eq(r, 0);
-
-	igt_info("===== RETURNPROOF SHADER SOURCE BEGIN =====\n");
-	igt_info("%s\n", SlthReturnProofIsa);
-	igt_info("===== RETURNPROOF SHADER SOURCE END =====\n");
-
-	r = amdgpu_llvm_assemble(mcpu,
-				 SlthReturnProofIsa,
-			isa_bin,
-			8192,
-			isa_sz);
-
-	igt_info("amdgpu_llvm_assemble returned %d\n", r);
-
-	if (r) {
-		igt_info("===== SHADER SOURCE BEGIN =====\n");
-		igt_info("%s\n", SlthReturnProofIsa);
-		igt_info("===== SHADER SOURCE END =====\n");
-	}
-
-	igt_assert_eq(r, 0);
-	igt_assert(*isa_sz > 0);
-
-	igt_info("SlthReturnProofIsa size=%zu\n",
-		 *isa_sz);
-
-	igt_info("RETURNPROOF SHADER ISA DUMP\n");
-
-	for (unsigned int i = 0;
-			i < (*isa_sz / sizeof(uint32_t));
-			i++) {
-		igt_info("ISA[%u] = 0x%08x\n",
-			 i,
-				((uint32_t *)isa_bin)[i]);
-	}
-}
-
-static void
-slth_comp_kq_returnproof_test(amdgpu_device_handle device,
-			      int fd)
-{
-	struct slth_bufs bufs;
-
-	amdgpu_context_handle context_handle;
-
-	amdgpu_bo_handle bo_dst;
-	amdgpu_bo_handle bo_shader;
-	amdgpu_bo_handle bo_cmd;
-
-	amdgpu_bo_handle resources[3];
-
-	volatile uint32_t *ptr_dst;
-
-	void *ptr_shader;
-	uint32_t *ptr_cmd;
-
-	uint64_t mc_address_dst;
-	uint64_t mc_address_shader;
-	uint64_t mc_address_cmd;
-
-	amdgpu_va_handle va_dst;
-	amdgpu_va_handle va_shader;
-	amdgpu_va_handle va_cmd;
-
-	amdgpu_bo_list_handle bo_list;
-
-	struct amdgpu_cs_request ibs_request = {0};
-	struct amdgpu_cs_ib_info ib_info = {0};
-	struct amdgpu_cs_fence fence_status = {0};
-
-	struct amdgpu_cmd_base *base_cmd =
-		get_cmd_base();
-
-	uint32_t expired = 0;
-	uint32_t version = 12;
-
-	uint8_t isa_bin[8192];
-	size_t isa_sz = 0;
-
-	int bo_dst_size = 16384;
-	int bo_shader_size = 4096;
-	int bo_cmd_size = 4096;
-
-	int i;
-	int r;
-	int ret;
-
-	igt_assert(base_cmd);
-
-	memset(&bufs, 0, sizeof(bufs));
-
-	igt_info("========================================\n");
-	igt_info("COMP KQ RETURNPROOF\n");
-	igt_info("SLTH RETURNPROOF\n");
-	igt_info("========================================\n");
-
-	slth_alloc_buffers(device, &bufs);
-
-	slth_prepare_tba_with_handler(device,
-				      &bufs,
-			TrapHandlerIsaProof);
-
-	ret = vm_set_l2_trap(fd,
-			     bufs.tba_mc_addr,
-			bufs.tma_mc_addr);
-
-	igt_info("SET_L2_TRAP ret=%d\n", ret);
-	igt_assert_eq(ret, 0);
-
-	slth_prepare_returnproof_shader(device,
-					isa_bin,
-			&isa_sz);
-	igt_assert(isa_sz > 0);
-
-	igt_info("SlthReturnProofIsa size=%zu\n", isa_sz);
-
-	igt_info("===== RETURNPROOF ISA BEGIN =====\n");
-
-	for (i = 0; i < isa_sz / 4; i++) {
-		igt_info("ISA[%02d] = 0x%08x\n",
-			 i,
-				((uint32_t *)isa_bin)[i]);
-	}
-
-	igt_info("===== RETURNPROOF ISA END =====\n");
-
-	r = amdgpu_cs_ctx_create(device,
-				 &context_handle);
-	igt_assert_eq(r, 0);
-
-	r = amdgpu_bo_alloc_and_map(device,
-				    bo_cmd_size,
-			4096,
-			AMDGPU_GEM_DOMAIN_GTT,
-			0,
-			&bo_cmd,
-			(void **)&ptr_cmd,
-			&mc_address_cmd,
-			&va_cmd);
-	igt_assert_eq(r, 0);
-
-	memset(ptr_cmd, 0, bo_cmd_size);
-
-	base_cmd->attach_buf(base_cmd,
-			ptr_cmd,
-			bo_cmd_size);
-
-	r = amdgpu_bo_alloc_and_map(device,
-				    bo_shader_size,
-			4096,
-			AMDGPU_GEM_DOMAIN_VRAM,
-			0,
-			&bo_shader,
-			&ptr_shader,
-			&mc_address_shader,
-			&va_shader);
-	igt_assert_eq(r, 0);
-
-	memset(ptr_shader, 0, bo_shader_size);
-
-	memcpy(ptr_shader,
-	       isa_bin,
-			isa_sz);
-
-	igt_info("shader_mc_addr=0x%016llx\n",
-		 (unsigned long long)mc_address_shader);
-
-	r = amdgpu_bo_alloc_and_map(device,
-				    bo_dst_size,
-			4096,
-			AMDGPU_GEM_DOMAIN_VRAM,
-			0,
-			&bo_dst,
-			(void **)&ptr_dst,
-			&mc_address_dst,
-			&va_dst);
-	igt_assert_eq(r, 0);
-
-	memset((void *)ptr_dst,
-	       0,
-			bo_dst_size);
-
-	igt_info("output_mc_addr=0x%016llx\n",
-		 (unsigned long long)mc_address_dst);
-
-	igt_info("output_lo=0x%08x\n",
-		 lower_32_bits(mc_address_dst));
-
-	igt_info("output_hi=0x%08x\n",
-		 upper_32_bits(mc_address_dst));
-
-	amdgpu_dispatch_init(
-			AMDGPU_HW_IP_COMPUTE,
-			base_cmd,
-			version);
-
-	amdgpu_dispatch_write_cumask(
-			base_cmd,
-			version);
-
-	igt_info("shader_mc_addr=0x%016llx\n",
-		 (unsigned long long)mc_address_shader);
-
-	igt_info("output_mc_addr=0x%016llx\n",
-		 (unsigned long long)mc_address_dst);
-
-	amdgpu_dispatch_write2hw(
-			base_cmd,
-			mc_address_shader,
-			version,
-			0);
-
-	igt_info("cdw after write2hw = %u\n",
-		 base_cmd->cdw);
-
-	for (uint32_t j = 0; j < base_cmd->cdw; j++)
-		igt_info("PRE_USERDATA_PM4[%02u] = 0x%08x\n",
-			 j,
-				ptr_cmd[j]);
-
-	igt_info("========================================\n");
-	igt_info("COMPUTE USER DATA PROGRAMMING\n");
-	igt_info("========================================\n");
-
-	igt_info("mc_address_dst      = 0x%016llx\n",
-		 (unsigned long long)mc_address_dst);
-
-	igt_info("dst low dword       = 0x%08x\n",
-		 (uint32_t)mc_address_dst);
-
-	igt_info("dst high dword      = 0x%08x\n",
-		 (uint32_t)(mc_address_dst >> 32));
-
-	igt_info("SET_SH_REG base     = 0x240\n");
-
-	base_cmd->emit(base_cmd,
-			PACKET3_COMPUTE(PKT3_SET_SH_REG, 4));
-
-	base_cmd->emit(base_cmd, 0x240);
-
-	/*
-	 * s0:s1 = source address
-	 */
-	base_cmd->emit(base_cmd,
-			(uint32_t)mc_address_dst);
-
-	base_cmd->emit(base_cmd,
-			(uint32_t)(mc_address_dst >> 32));
-
-	/*
-	 * s2:s3 = destination address
-	 */
-	base_cmd->emit(base_cmd,
-			(uint32_t)mc_address_dst);
-
-	base_cmd->emit(base_cmd,
-			(uint32_t)(mc_address_dst >> 32));
-	igt_info("USER_DATA[0] (s0 low)  = 0x%08x\n",
-		 (uint32_t)mc_address_dst);
-
-	igt_info("USER_DATA[1] (s1 high) = 0x%08x\n",
-		 (uint32_t)(mc_address_dst >> 32));
-
-	igt_info("USER_DATA[2] (s2 low)  = 0x%08x\n",
-		 (uint32_t)mc_address_dst);
-
-	igt_info("USER_DATA[3] (s3 high) = 0x%08x\n",
-		 (uint32_t)(mc_address_dst >> 32));
-
-	base_cmd->emit(base_cmd,
-			PACKET3_COMPUTE(PKT3_SET_SH_REG, 1));
-
-	base_cmd->emit(base_cmd, 0x215);
-	base_cmd->emit(base_cmd, 0);
-
-	base_cmd->emit(base_cmd,
-			PACKET3_COMPUTE(PACKET3_DISPATCH_DIRECT,
-					3));
-
-	base_cmd->emit(base_cmd, 1);
-	base_cmd->emit(base_cmd, 1);
-	base_cmd->emit(base_cmd, 1);
-	base_cmd->emit(base_cmd, 1);
-
-	base_cmd->emit_aligned(base_cmd,
-			7,
-			GFX_COMPUTE_NOP);
-
-	igt_info("Dispatch PM4 DW=%u\n",
-		 base_cmd->cdw);
-
-	igt_info("========================================\n");
-	igt_info("FINAL PM4 DUMP\n");
-	igt_info("========================================\n");
-
-	for (uint32_t j = 0; j < base_cmd->cdw; j++)
-		igt_info("PM4[%02u] = 0x%08x\n",
-			 j,
-				ptr_cmd[j]);
-
-	resources[0] = bo_dst;
-	resources[1] = bo_shader;
-	resources[2] = bo_cmd;
-
-	r = amdgpu_bo_list_create(device,
-				  3,
-			resources,
-			NULL,
-			&bo_list);
-
-	igt_assert_eq(r, 0);
-
-	ib_info.ib_mc_address = mc_address_cmd;
-	ib_info.size = base_cmd->cdw;
-
-	ibs_request.ip_type = AMDGPU_HW_IP_COMPUTE;
-	ibs_request.ring = 0;
-	ibs_request.resources = bo_list;
-	ibs_request.number_of_ibs = 1;
-	ibs_request.ibs = &ib_info;
-
-	r = amdgpu_cs_submit(context_handle,
-			     0,
-			&ibs_request,
-			1);
-
-	igt_info("cs_submit ret=%d\n", r);
-	igt_assert_eq(r, 0);
-
-	fence_status.ip_type = AMDGPU_HW_IP_COMPUTE;
-	fence_status.ip_instance = 0;
-	fence_status.ring = 0;
-	fence_status.context = context_handle;
-	fence_status.fence = ibs_request.seq_no;
-
-	r = amdgpu_cs_query_fence_status(
-			&fence_status,
-			AMDGPU_TIMEOUT_INFINITE,
-			0,
-			&expired);
-
-	igt_info("fence ret=%d expired=%u\n",
-		 r,
-			expired);
-
-	igt_assert_eq(r, 0);
-	igt_assert_eq(expired, 1);
-
-	igt_info("===== OUTPUT DUMP =====\n");
-
-	for (i = 0; i < 32; i++) {
-		igt_info("OUT[%02d]=0x%08x\n",
-			 i,
-				ptr_dst[i]);
-	}
-
-	igt_info("output[0]=0x%x (%u)\n",
-		 ptr_dst[0],
-			ptr_dst[0]);
-
-	igt_assert_eq(ptr_dst[0], 2);
-
-	ret = vm_clear_l2_trap(fd);
-
-	igt_info("CLEAR_L2_TRAP ret=%d\n", ret);
-	igt_assert_eq(ret, 0);
-
-	slth_free_buffers(&bufs);
-
-	amdgpu_bo_list_destroy(bo_list);
-
-	amdgpu_bo_unmap_and_free(
-			bo_dst,
-			va_dst,
-			mc_address_dst,
-			bo_dst_size);
-
-	amdgpu_bo_unmap_and_free(
-			bo_shader,
-			va_shader,
-			mc_address_shader,
-			bo_shader_size);
-
-	amdgpu_bo_unmap_and_free(
-			bo_cmd,
-			va_cmd,
-			mc_address_cmd,
-			bo_cmd_size);
-
-	amdgpu_cs_ctx_free(context_handle);
-
-	free_cmd_base(base_cmd);
-
-	igt_info("COMP KQ RETURNPROOF COMPLETE\n");
-}
-
-static void
-slth_gfx_umq_returnproof_test(amdgpu_device_handle device, int fd)
-{
-	uint32_t value;
-
-	value = slth_umq_run(device, fd, AMD_IP_GFX,
-			     slth_prepare_returnproof_shader);
-
-	/* The instruction after s_trap sets v2 to 2 after the trap returns. */
-	igt_assert_eq(value, 2);
-}
-
-static void
-slth_comp_umq_vgpr_proof_test(amdgpu_device_handle device, int fd)
-{
-	uint32_t value;
-
-	value = slth_umq_run(device, fd, AMD_IP_COMPUTE,
-			     slth_prepare_vgpr_proof_shader);
-
-	/* The trap handler sets v2 to 42 before the shader stores it. */
-	igt_assert_eq(value, 42);
-}
-
-static void
-slth_comp_umq_returnproof_test(amdgpu_device_handle device, int fd)
-{
-	uint32_t value;
-
-	value = slth_umq_run(device, fd, AMD_IP_COMPUTE,
-			     slth_prepare_returnproof_shader);
-
-	/* The instruction after s_trap sets v2 to 2 after the trap returns. */
-	igt_assert_eq(value, 2);
-}
-
 int igt_main()
 {
 	amdgpu_device_handle device;
@@ -2455,7 +989,7 @@ int igt_main()
 	igt_describe("Check-all-user-queues-for-write-operation");
 	igt_subtest_with_dynamic("all-queues-test-with-UMQ") {
 		if (enable_test && userq_arr_cap[AMD_IP_GFX] &&
-		    userq_arr_cap[AMD_IP_COMPUTE] &&
+				userq_arr_cap[AMD_IP_COMPUTE] &&
 				userq_arr_cap[AMD_IP_DMA]) {
 			igt_dynamic_f("all-queues-with-umq")
 			amdgpu_test_all_queues(device, true);
@@ -2478,36 +1012,6 @@ int igt_main()
 		}
 	}
 
-	igt_subtest("slth-gfx-kq-vgpr-proof")
-		slth_gfx_kq_vgpr_proof_test(device, fd);
-
-	igt_subtest("slth-gfx-umq-vgpr-proof")
-		slth_gfx_umq_vgpr_proof_test(device, fd);
-
-	igt_subtest("slth-comp-kq-vgpr-proof")
-		slth_comp_kq_vgpr_proof_test(device, fd);
-
-	igt_subtest("slth-comp-kq-returnproof")
-		slth_comp_kq_returnproof_test(device, fd);
-
-	igt_describe("Check-SLTH-trap-return-resumes-after-s_trap-on-GFX-user-queue");
-	igt_subtest("slth-gfx-umq-returnproof") {
-		igt_require(enable_test && userq_arr_cap[AMD_IP_GFX]);
-		slth_gfx_umq_returnproof_test(device, fd);
-	}
-
-	igt_describe("Check-SLTH-trap-handler-updates-VGPR-on-compute-user-queue");
-	igt_subtest("slth-comp-umq-vgpr-proof") {
-		igt_require(enable_test && userq_arr_cap[AMD_IP_COMPUTE]);
-		slth_comp_umq_vgpr_proof_test(device, fd);
-	}
-
-	igt_describe("Check-SLTH-trap-return-resumes-after-s_trap-on-compute-user-queue");
-	igt_subtest("slth-comp-umq-returnproof") {
-		igt_require(enable_test && userq_arr_cap[AMD_IP_COMPUTE]);
-		slth_comp_umq_returnproof_test(device, fd);
-	}
-
 	igt_fixture() {
 		amdgpu_device_deinitialize(device);
 		drm_close_driver(fd);
tests/amdgpu/amd_slth.c new file +1564 -0

1,475 lines not on this page · raw message

tests/amdgpu/meson.build +1 -0
index 11e5c00da..784879d14 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.50.1

Part of the diff is not shown here. View the raw message.

Reviewed-by on v1 6/6
#6 lore raw

Re: [PATCH i-g-t 6/6] tests/amdgpu: move the SLTH tests to amd_slth

Quoted 9 lines · Jesse Zhang

The second-level trap handler tests have grown to seven subtests and about 1500 lines of their own helpers, shaders setup and dispatch code, none of which is shared with the other amd_basic tests.

Move them to their own amd_slth test. Skip them when the LLVM assembler is not available, like amd_mem does, instead of failing on the stub. amd_basic is back to what it was before the SLTH tests were added.

SLTH test split-out, UMQ coverage additions, and CWSR save-area support changes. The updates look good to me.

Series is:

Quoted 3,122 lines
---
  tests/amdgpu/amd_basic.c | 1498 +-----------------------------------
  tests/amdgpu/amd_slth.c  | 1564 ++++++++++++++++++++++++++++++++++++++
  tests/amdgpu/meson.build |    1 +
  3 files changed, 1566 insertions(+), 1497 deletions(-)

create mode 100644 tests/amdgpu/amd_slth.c

tests/amdgpu/amd_basic.c +1 -1497
index 364ba774b..590163b7b 100644
@@ -20,28 +20,9 @@
  #include "lib/amdgpu/amdgpu_asic_addr.h"
  #include "lib/amdgpu/amd_utils.h"
  #include "lib/amdgpu/amd_platform.h"
-#include "lib/amdgpu/shaders/amd_llvm_asm.h"
-#include "lib/amdgpu/shaders/amd_shader_store.h"
 
  #define BUFFER_SIZE (8 * 1024)
 
-#define TBA_SIZE (2 * 4096)
-#define TMA_SIZE (4096)
-
-struct slth_bufs {
-	amdgpu_bo_handle tba_bo;
-	amdgpu_bo_handle tma_bo;
-
-	amdgpu_va_handle tba_va_handle;
-	amdgpu_va_handle tma_va_handle;
-
-	uint64_t tba_mc_addr;
-	uint64_t tma_mc_addr;
-
-	void *tba_cpu;
-	void *tma_cpu;
-};
-
  /**
   * MEM ALLOC TEST
   * @param device
@@ -865,1453 +846,6 @@ static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
  	free(ring_context);
  }
 
-static void slth_alloc_buffers(amdgpu_device_handle device,
-			       struct slth_bufs *bufs)
-{
-	int r;
-
-	memset(bufs, 0, sizeof(*bufs));
-
-	r = amdgpu_bo_alloc_and_map(
-			device,
-			TBA_SIZE,
-			4096,
-			AMDGPU_GEM_DOMAIN_GTT,
-			AMDGPU_GEM_CREATE_VM_ALWAYS_VALID,
-			&bufs->tba_bo,
-			&bufs->tba_cpu,
-			&bufs->tba_mc_addr,
-			&bufs->tba_va_handle);
-	igt_assert_eq(r, 0);
-
-	r = amdgpu_bo_alloc_and_map(
-			device,
-			TMA_SIZE,
-			4096,
-			AMDGPU_GEM_DOMAIN_GTT,
-			AMDGPU_GEM_CREATE_VM_ALWAYS_VALID,
-			&bufs->tma_bo,
-			&bufs->tma_cpu,
-			&bufs->tma_mc_addr,
-			&bufs->tma_va_handle);
-	igt_assert_eq(r, 0);
-}
-
-static void slth_free_buffers(struct slth_bufs *bufs)
-{
-	if (bufs->tba_bo)
-		amdgpu_bo_unmap_and_free(bufs->tba_bo,
-					 bufs->tba_va_handle,
-				bufs->tba_mc_addr,
-				TBA_SIZE);
-
-	if (bufs->tma_bo)
-		amdgpu_bo_unmap_and_free(bufs->tma_bo,
-					 bufs->tma_va_handle,
-				bufs->tma_mc_addr,
-				TMA_SIZE);
-}
-
-static int vm_set_l2_trap(int fd,
-			  uint64_t tba_va,
-		uint64_t tma_va)
-{
-	union drm_amdgpu_vm args = {0};
-
-	args.in.op = AMDGPU_VM_OP_SET_L2_TRAP;
-
-	args.in.l2trap.tba_va = tba_va;
-	args.in.l2trap.tba_sz = TBA_SIZE;
-
-	args.in.l2trap.tma_va = tma_va;
-	args.in.l2trap.tma_sz = TMA_SIZE;
-
-	return drmIoctl(fd, DRM_IOCTL_AMDGPU_VM, &args);
-}
-
-static int vm_clear_l2_trap(int fd)
-{
-	union drm_amdgpu_vm args = {0};
-
-	args.in.op = AMDGPU_VM_OP_CLEAR_L2_TRAP;
-
-	return drmIoctl(fd, DRM_IOCTL_AMDGPU_VM, &args);
-}
-
-static void slth_prepare_tba_with_handler(
-		amdgpu_device_handle device,
-		struct slth_bufs *bufs,
-		const char *handler)
-{
-	struct amdgpu_gpu_info info = {0};
-	char mcpu[32] = {};
-	uint8_t isa_bin[8192];
-	size_t isa_sz = 0;
-	int r;
-
-	r = amdgpu_query_gpu_info(device, &info);
-	igt_assert_eq(r, 0);
-
-	r = amdgpu_family_id_to_mcpu(info.family_id,
-				     mcpu,
-			sizeof(mcpu));
-	igt_assert_eq(r, 0);
-
-	igt_info("family_id=%u mcpu=%s\n",
-		 info.family_id,
-			mcpu);
-
-	r = amdgpu_llvm_assemble(mcpu,
-				 handler,
-			isa_bin,
-			sizeof(isa_bin),
-			&isa_sz);
-
-	if (r)
-		igt_info("amdgpu_llvm_assemble failed r=%d\n", r);
-
-	igt_assert_eq(r, 0);
-	igt_assert(isa_sz > 0);
-
-	memset(bufs->tba_cpu, 0, TBA_SIZE);
-	memcpy(bufs->tba_cpu,
-	       isa_bin,
-			isa_sz);
-
-	memset(bufs->tma_cpu, 0, TMA_SIZE);
-
-	igt_info("Trap handler size=%zu\n", isa_sz);
-}
-
-static void slth_prepare_vgpr_proof_shader(amdgpu_device_handle device,
-					   uint8_t *isa_bin,
-		size_t *isa_sz)
-{
-	struct amdgpu_gpu_info info = {0};
-	char mcpu[32] = {};
-	int r;
-
-	r = amdgpu_query_gpu_info(device, &info);
-	igt_assert_eq(r, 0);
-
-	r = amdgpu_family_id_to_mcpu(info.family_id,
-				     mcpu,
-			sizeof(mcpu));
-	igt_assert_eq(r, 0);
-
-	igt_info("===== SLTH VGPR PROOF SHADER BEGIN =====\n");
-	igt_info("%s\n", SlthVgprProofIsa);
-	igt_info("SLTH VGPR PROOF ISA DUMP\n");
-
-	r = amdgpu_llvm_assemble(mcpu,
-				 SlthVgprProofIsa,
-			isa_bin,
-			8192,
-			isa_sz);
-
-	igt_info("amdgpu_llvm_assemble returned %d\n", r);
-
-	if (r) {
-		igt_info("===== SHADER SOURCE BEGIN =====\n");
-		igt_info("%s\n", SlthVgprProofIsa);
-		igt_info("===== SHADER SOURCE END =====\n");
-	}
-
-	igt_assert_eq(r, 0);
-	igt_assert(*isa_sz > 0);
-
-	igt_info("SlthVgprProofIsa size=%zu\n", *isa_sz);
-
-	igt_info("SLTH VGPR PROOF ISA DUMP\n");
-
-	for (unsigned int i = 0; i < (*isa_sz / sizeof(uint32_t)); i++) {
-		igt_info("ISA[%u] = 0x%08x\n",
-			 i,
-				((uint32_t *)isa_bin)[i]);
-	}
-}
-
-static uint32_t execute_slth_dispatch(
-		amdgpu_device_handle device,
-		uint32_t ip_type,
-		uint32_t version,
-		const uint32_t *shader,
-		uint32_t shader_size)
-{
-	const struct amdgpu_ip_block_version *gfx_ip =
-		get_ip_block(device, AMD_IP_GFX);
-
-	amdgpu_context_handle context_handle;
-
-	amdgpu_bo_handle bo = NULL;
-	amdgpu_va_handle va = 0;
-
-	void *cpu = NULL;
-	uint32_t *ptr_pm4 = NULL;
-	volatile uint32_t *ptr_output = NULL;
-
-	uint64_t mc = 0;
-	uint64_t shader_mc_addr;
-	uint64_t output_mc_addr;
-
-	struct amdgpu_cmd_base *base_cmd;
-	struct amdgpu_cs_request ib_req = {0};
-	struct amdgpu_cs_ib_info ib_info = {0};
-	struct amdgpu_cs_fence fence = {0};
-
-	amdgpu_bo_list_handle bo_list = NULL;
-
-	amdgpu_bo_handle bos[1];
-
-	uint32_t expired = 0;
-	uint32_t output_value;
-	int r;
-
-	base_cmd = get_cmd_base();
-	igt_assert(base_cmd);
-
-	r = amdgpu_cs_ctx_create(device, &context_handle);
-	igt_assert_eq(r, 0);
-
-	r = amdgpu_bo_alloc_and_map(device,
-				    65536,
-			4096,
-			AMDGPU_GEM_DOMAIN_GTT,
-			0,
-			&bo,
-			&cpu,
-			&mc,
-			&va);
-	igt_assert_eq(r, 0);
-
-	memset(cpu, 0, 65536);
-
-	ptr_pm4 = (uint32_t *)cpu;
-
-	memcpy((uint8_t *)cpu + 0x1000,
-	       shader,
-			shader_size);
-
-	ptr_output =
-		(volatile uint32_t *)((uint8_t *)cpu + 0x2000);
-
-	memset((void *)ptr_output, 0, 4096);
-
-	shader_mc_addr = mc + 0x1000;
-	output_mc_addr = mc + 0x2000;
-
-	igt_info("s0 expected address low  = 0x%08x\n",
-		 lower_32_bits(output_mc_addr));
-
-	igt_info("s1 expected address high = 0x%08x\n",
-		 upper_32_bits(output_mc_addr));
-
-	igt_info("========================================\n");
-	igt_info("SLTH DISPATCH START\n");
-	igt_info("========================================\n");
-
-	igt_info("ip_type        = %u\n", ip_type);
-	igt_info("version        = %u\n", version);
-
-	igt_info("base_mc_addr   = 0x%016llx\n",
-		 (unsigned long long)mc);
-
-	igt_info("shader_mc_addr = 0x%016llx\n",
-		 (unsigned long long)shader_mc_addr);
-
-	igt_info("output_mc_addr = 0x%016llx\n",
-		 (unsigned long long)output_mc_addr);
-
-	igt_info("shader_end     = 0x%016llx\n",
-		 (unsigned long long)
-			(shader_mc_addr + shader_size));
-
-	igt_info("output_end     = 0x%016llx\n",
-		 (unsigned long long)
-			(output_mc_addr + 16384));
-
-	base_cmd->attach_buf(base_cmd,
-			ptr_pm4,
-			4096);
-
-	igt_assert(gfx_ip);
-	igt_assert(gfx_ip->funcs);
-	igt_assert(gfx_ip->funcs->gfx_program_compute);
-	igt_assert(gfx_ip->funcs->gfx_dispatch_direct);
-
-	igt_info("========================================\n");
-	igt_info("NATIVE GFX PROGRAMMING\n");
-	igt_info("========================================\n");
-
-	igt_info("user_data[0] = 0x%08x\n",
-		 lower_32_bits(output_mc_addr));
-
-	igt_info("user_data[1] = 0x%08x\n",
-		 upper_32_bits(output_mc_addr));
-
-	gfx_ip->funcs->gfx_program_compute(
-			gfx_ip->funcs,
-			base_cmd,
-			shader_mc_addr,
-			output_mc_addr,
-			0x002c0040,
-			0x00000010,
-			1,
-			1,
-			1);
-
-	igt_info("PM4 dwords after gfx_program_compute = %u\n",
-		 base_cmd->cdw);
-
-	gfx_ip->funcs->gfx_dispatch_direct(
-			gfx_ip->funcs,
-			base_cmd,
-			1,
-			1,
-			1,
-			0);
-
-	base_cmd->emit_aligned(base_cmd,
-			7,
-			GFX_COMPUTE_NOP);
-
-	igt_info("PM4 dwords after dispatch = %u\n",
-		 base_cmd->cdw);
-
-	bos[0] = bo;
-
-	r = amdgpu_bo_list_create(device,
-				  1,
-			bos,
-			NULL,
-			&bo_list);
-	igt_assert_eq(r, 0);
-
-	ib_info.ib_mc_address = mc;
-	ib_info.size = base_cmd->cdw;
-
-	ib_req.ip_type = ip_type;
-	ib_req.ring = 0;
-	ib_req.resources = bo_list;
-	ib_req.number_of_ibs = 1;
-	ib_req.ibs = &ib_info;
-
-	igt_info("========================================\n");
-	igt_info("PRE-DISPATCH OUTPUT BUFFER\n");
-	igt_info("========================================\n");
-
-	for (int i = 0; i < 16; i++) {
-		igt_info("PRE[%d] = 0x%08x\n",
-			 i,
-				ptr_output[i]);
-	}
-
-	igt_info("========================================\n");
-	igt_info("IB SUBMIT\n");
-	igt_info("========================================\n");
-
-	igt_info("ib_mc_address = 0x%016llx\n",
-		 (unsigned long long)ib_info.ib_mc_address);
-
-	igt_info("ib_size_dw    = %u\n",
-		 ib_info.size);
-
-	r = amdgpu_cs_submit(context_handle,
-			     0,
-			&ib_req,
-			1);
-
-	igt_info("cs_submit ret = %d\n", r);
-
-	igt_assert_eq(r, 0);
-
-	fence.context = context_handle;
-	fence.ip_type = ip_type;
-	fence.ip_instance = 0;
-	fence.ring = 0;
-	fence.fence = ib_req.seq_no;
-
-	r = amdgpu_cs_query_fence_status(&fence,
-					 5000000000ULL,
-			0,
-			&expired);
-
-	igt_info("========================================\n");
-	igt_info("FENCE STATUS\n");
-	igt_info("========================================\n");
-
-	igt_info("query ret = %d\n", r);
-	igt_info("expired   = %u\n", expired);
-
-	igt_assert_eq(r, 0);
-	igt_assert_eq(expired, 1);
-
-	output_value = ptr_output[0];
-
-	igt_info("========================================\n");
-	igt_info("OUTPUT BUFFER DUMP\n");
-	igt_info("========================================\n");
-
-	for (int i = 0; i < 16; i++) {
-		igt_info("OUT[%d] = 0x%08x\n",
-			 i,
-				ptr_output[i]);
-	}
-
-	igt_info("========================================\n");
-	igt_info("RESULT\n");
-	igt_info("========================================\n");
-
-	igt_info("output value = 0x%x (%u)\n",
-		 output_value,
-			output_value);
-
-	if (bo_list)
-		amdgpu_bo_list_destroy(bo_list);
-
-	amdgpu_bo_unmap_and_free(bo,
-				 va,
-			mc,
-			65536);
-
-	amdgpu_cs_ctx_free(context_handle);
-
-	free_cmd_base(base_cmd);
-
-	igt_info("SLTH DISPATCH END\n");
-
-	return output_value;
-}
-
-static void slth_gfx_kq_vgpr_proof_test(amdgpu_device_handle device,
-					int fd)
-{
-	struct slth_bufs bufs;
-	uint8_t isa_bin[8192];
-	size_t isa_sz = 0;
-
-	struct amdgpu_gpu_info info = {0};
-	uint32_t version = 12;
-	uint32_t value;
-
-	int ret;
-	int r;
-
-	memset(&bufs, 0, sizeof(bufs));
-
-	igt_info("SLTH GFX KQ VGPR PROOF\n");
-
-	slth_alloc_buffers(device, &bufs);
-
-	slth_prepare_tba_with_handler(device,
-				      &bufs,
-			TrapHandlerIsaProof);
-
-	ret = vm_set_l2_trap(fd,
-			     bufs.tba_mc_addr,
-			bufs.tma_mc_addr);
-	igt_assert_eq(ret, 0);
-
-	slth_prepare_vgpr_proof_shader(device,
-				       isa_bin,
-			&isa_sz);
-
-	r = amdgpu_query_gpu_info(device, &info);
-	igt_assert_eq(r, 0);
-
-	if (FAMILY_IS_GFX1200(info.family_id))
-		version = 12;
-	else if (FAMILY_IS_GFX1150(info.family_id) ||
-		 FAMILY_IS_GFX1100(info.family_id) ||
-			FAMILY_IS_GFX1036(info.family_id) ||
-			FAMILY_IS_GFX1037(info.family_id) ||
-			FAMILY_IS_YC(info.family_id) ||
-			info.family_id == FAMILY_GFX1103)
-		version = 11;
-	else
-		version = 10;
-
-	igt_info("Running SLTH VGPR proof shader\n");
-
-	value = execute_slth_dispatch(device,
-				      AMDGPU_HW_IP_GFX,
-			version,
-			(const uint32_t *)isa_bin,
-			(uint32_t)isa_sz);
-
-	igt_info("VGPR proof output value=%u\n", value);
-
-	if (value == 42)
-		igt_info("SLTH trap handler updated VGPR state, shader resumed successfully\n");
-	else
-		igt_info("SLTH GFX KQ VGPR proof failed: expected=42 actual=%u\n",
-			 value);
-
-	igt_assert_eq(value, 42);
-
-	ret = vm_clear_l2_trap(fd);
-	igt_assert_eq(ret, 0);
-
-	slth_free_buffers(&bufs);
-
-	igt_info("SLTH GFX KQ VGPR PROOF COMPLETE\n");
-}
-
-/*
- * Run a SLTH shader on a GFX or compute user queue and return the dword it
- * stores. The second-level trap handler is set per GPUVM, so user queues get
- * it like kernel queues do. The shader stores to the address in s[0:1].
- */
-static uint32_t
-slth_umq_run(amdgpu_device_handle device, int fd, unsigned int ip_type,
-	     void (*prepare_shader)(amdgpu_device_handle device,
-				    uint8_t *isa_bin, size_t *isa_sz))
-{
-	const struct amdgpu_ip_block_version *ip = get_ip_block(device, ip_type);
-	struct amdgpu_ring_context *ring_context;
-	struct amdgpu_cmd_base *base_cmd;
-	struct slth_bufs bufs;
-	amdgpu_bo_handle bo;
-	amdgpu_va_handle va;
-	volatile uint32_t *ptr_output;
-	uint64_t mc, shader_mc_addr, output_mc_addr;
-	uint8_t isa_bin[8192];
-	size_t isa_sz = 0;
-	uint32_t value;
-	void *cpu;
-	int r, i;
-
-	igt_assert(ip_type == AMD_IP_GFX || ip_type == AMD_IP_COMPUTE);
-	igt_assert(ip && ip->funcs);
-
-	memset(&bufs, 0, sizeof(bufs));
-	slth_alloc_buffers(device, &bufs);
-	slth_prepare_tba_with_handler(device, &bufs, TrapHandlerIsaProof);
-
-	r = vm_set_l2_trap(fd, bufs.tba_mc_addr, bufs.tma_mc_addr);
-	igt_info("SET_L2_TRAP ret=%d\n", r);
-	igt_assert_eq(r, 0);
-
-	prepare_shader(device, isa_bin, &isa_sz);
-	igt_assert(isa_sz > 0 && isa_sz <= 4096);
-
-	ring_context = calloc(1, sizeof(*ring_context));
-	igt_assert(ring_context);
-
-	ip->funcs->userq_create(device, ring_context, ip->type);
-	igt_info("%s UMQ %u created\n", ip_type == AMD_IP_GFX ? "GFX" : "compute",
-		 ring_context->queue_id);
-
-	/* IB at 0x0, shader at 0x1000, output at 0x2000 */
-	r = amdgpu_bo_alloc_and_map_sync(device, 65536, 4096,
-					 AMDGPU_GEM_DOMAIN_GTT,
-					 AMDGPU_GEM_CREATE_CPU_GTT_USWC,
-					 AMDGPU_VM_MTYPE_UC,
-					 &bo, &cpu, &mc, &va,
-					 ring_context->timeline_syncobj_handle,
-					 ++ring_context->point, true);
-	igt_assert_eq(r, 0);
-
-	r = amdgpu_timeline_syncobj_wait(device,
-					 ring_context->timeline_syncobj_handle,
-					 ring_context->point);
-	igt_assert_eq(r, 0);
-
-	memset(cpu, 0, 65536);
-	memcpy((uint8_t *)cpu + 0x1000, isa_bin, isa_sz);
-	ptr_output = (volatile uint32_t *)((uint8_t *)cpu + 0x2000);
-	shader_mc_addr = mc + 0x1000;
-	output_mc_addr = mc + 0x2000;
-
-	base_cmd = get_cmd_base();
-	igt_assert(base_cmd);
-	base_cmd->attach_buf(base_cmd, cpu, 4096);
-
-	if (ip_type == AMD_IP_GFX) {
-		ip->funcs->gfx_program_compute(ip->funcs, base_cmd,
-					       shader_mc_addr, output_mc_addr,
-					       0x002c0040, 0x00000010, 1, 1, 1);
-		ip->funcs->gfx_dispatch_direct(ip->funcs, base_cmd, 1, 1, 1, 0);
-	} else {
-		/*
-		 * gfx_program_compute() starts with CONTEXT_CONTROL, a GFX only
-		 * packet, so program the dispatch like the compute KQ tests.
-		 */
-		amdgpu_dispatch_init(AMDGPU_HW_IP_COMPUTE, base_cmd, ip->major);
-		amdgpu_dispatch_write_cumask(base_cmd, ip->major);
-		amdgpu_dispatch_write2hw(base_cmd, shader_mc_addr, ip->major, 0);
-
-		/* COMPUTE_USER_DATA_0..3: s[0:1] = s[2:3] = output address */
-		base_cmd->emit(base_cmd, PACKET3_COMPUTE(PKT3_SET_SH_REG, 4));
-		base_cmd->emit(base_cmd, 0x240);
-		base_cmd->emit(base_cmd, lower_32_bits(output_mc_addr));
-		base_cmd->emit(base_cmd, upper_32_bits(output_mc_addr));
-		base_cmd->emit(base_cmd, lower_32_bits(output_mc_addr));
-		base_cmd->emit(base_cmd, upper_32_bits(output_mc_addr));
-
-		/* COMPUTE_RESOURCE_LIMITS */
-		base_cmd->emit(base_cmd, PACKET3_COMPUTE(PKT3_SET_SH_REG, 1));
-		base_cmd->emit(base_cmd, 0x215);
-		base_cmd->emit(base_cmd, 0);
-
-		base_cmd->emit(base_cmd, PACKET3_COMPUTE(PACKET3_DISPATCH_DIRECT, 3));
-		base_cmd->emit(base_cmd, 1);
-		base_cmd->emit(base_cmd, 1);
-		base_cmd->emit(base_cmd, 1);
-		base_cmd->emit(base_cmd, 1);
-	}
-	base_cmd->emit_aligned(base_cmd, 7, GFX_COMPUTE_NOP);
-	ring_context->pm4_dw = base_cmd->cdw;
-
-	ip->funcs->userq_submit(device, ring_context, ip->type, mc);
-
-	r = amdgpu_timeline_syncobj_wait(device,
-					 ring_context->timeline_syncobj_handle,
-					 ring_context->point);
-	igt_assert_eq(r, 0);
-
-	for (i = 0; i < 1000 && !ptr_output[0]; i++)
-		usleep(1000);
-	value = ptr_output[0];
-	igt_info("output_value=%u (0x%x)\n", value, value);
-
-	amdgpu_bo_unmap_and_free(bo, va, mc, 65536);
-	free_cmd_base(base_cmd);
-	ip->funcs->userq_destroy(device, ring_context, ip->type);
-	free(ring_context);
-
-	r = vm_clear_l2_trap(fd);
-	igt_info("CLEAR_L2_TRAP ret=%d\n", r);
-	igt_assert_eq(r, 0);
-	slth_free_buffers(&bufs);
-
-	return value;
-}
-
-static void slth_gfx_umq_vgpr_proof_test(amdgpu_device_handle device,
-					 int fd)
-{
-	uint32_t value;
-
-	igt_info("SLTH GFX UMQ VGPR PROOF\n");
-
-	value = slth_umq_run(device, fd, AMD_IP_GFX,
-			     slth_prepare_vgpr_proof_shader);
-
-	/* The trap handler sets v2 to 42 before the shader stores it. */
-	igt_assert_eq(value, 42);
-
-	igt_info("SLTH GFX UMQ VGPR PROOF COMPLETE\n");
-}
-
-static void
-slth_comp_kq_vgpr_proof_test(amdgpu_device_handle device,
-			     int fd)
-{
-	struct slth_bufs bufs;
-
-	amdgpu_context_handle context_handle;
-
-	amdgpu_bo_handle bo_dst;
-	amdgpu_bo_handle bo_shader;
-	amdgpu_bo_handle bo_cmd;
-
-	amdgpu_bo_handle resources[3];
-
-	volatile uint32_t *ptr_dst;
-
-	void *ptr_shader;
-	uint32_t *ptr_cmd;
-
-	uint64_t mc_address_dst;
-	uint64_t mc_address_shader;
-	uint64_t mc_address_cmd;
-
-	amdgpu_va_handle va_dst;
-	amdgpu_va_handle va_shader;
-	amdgpu_va_handle va_cmd;
-
-	amdgpu_bo_list_handle bo_list;
-
-	struct amdgpu_cs_request ibs_request = {0};
-	struct amdgpu_cs_ib_info ib_info = {0};
-	struct amdgpu_cs_fence fence_status = {0};
-
-	struct amdgpu_cmd_base *base_cmd =
-		get_cmd_base();
-
-	uint32_t expired = 0;
-	uint32_t version = 12;
-
-	uint8_t isa_bin[8192];
-	size_t isa_sz = 0;
-
-	int bo_dst_size = 16384;
-	int bo_shader_size = 4096;
-	int bo_cmd_size = 4096;
-
-	int i;
-	int r;
-	int ret;
-
-	igt_assert(base_cmd);
-
-	memset(&bufs, 0, sizeof(bufs));
-
-	igt_info("========================================\n");
-	igt_info("COMP KQ VGPR PROOF\n");
-	igt_info("SLTH VGPR PROOF\n");
-	igt_info("========================================\n");
-
-	slth_alloc_buffers(device, &bufs);
-
-	slth_prepare_tba_with_handler(device,
-				      &bufs,
-			TrapHandlerIsaProof);
-
-	ret = vm_set_l2_trap(fd,
-			     bufs.tba_mc_addr,
-			bufs.tma_mc_addr);
-
-	igt_info("SET_L2_TRAP ret=%d\n", ret);
-	igt_assert_eq(ret, 0);
-
-	slth_prepare_vgpr_proof_shader(device,
-				       isa_bin,
-			&isa_sz);
-
-	igt_assert(isa_sz > 0);
-
-	igt_info("SlthVgprProofIsa size=%zu\n",
-		 isa_sz);
-
-	igt_info("===== SLTH VGPR PROOF ISA BEGIN =====\n");
-
-	for (i = 0; i < isa_sz / 4; i++) {
-		igt_info("ISA[%02d] = 0x%08x\n",
-			 i,
-				((uint32_t *)isa_bin)[i]);
-	}
-
-	igt_info("===== SLTH VGPR PROOF ISA END =====\n");
-
-	r = amdgpu_cs_ctx_create(device,
-				 &context_handle);
-	igt_assert_eq(r, 0);
-
-	r = amdgpu_bo_alloc_and_map(device,
-				    bo_cmd_size,
-			4096,
-			AMDGPU_GEM_DOMAIN_GTT,
-			0,
-			&bo_cmd,
-			(void **)&ptr_cmd,
-			&mc_address_cmd,
-			&va_cmd);
-	igt_assert_eq(r, 0);
-
-	memset(ptr_cmd, 0, bo_cmd_size);
-
-	base_cmd->attach_buf(base_cmd,
-			ptr_cmd,
-			bo_cmd_size);
-
-	r = amdgpu_bo_alloc_and_map(device,
-				    bo_shader_size,
-			4096,
-			AMDGPU_GEM_DOMAIN_VRAM,
-			0,
-			&bo_shader,
-			&ptr_shader,
-			&mc_address_shader,
-			&va_shader);
-	igt_assert_eq(r, 0);
-
-	memset(ptr_shader, 0, bo_shader_size);
-
-	memcpy(ptr_shader,
-	       isa_bin,
-			isa_sz);
-
-	igt_info("shader_mc_addr=0x%016llx\n",
-		 (unsigned long long)mc_address_shader);
-
-	r = amdgpu_bo_alloc_and_map(device,
-				    bo_dst_size,
-			4096,
-			AMDGPU_GEM_DOMAIN_VRAM,
-			0,
-			&bo_dst,
-			(void **)&ptr_dst,
-			&mc_address_dst,
-			&va_dst);
-	igt_assert_eq(r, 0);
-
-	memset((void *)ptr_dst,
-	       0,
-			bo_dst_size);
-
-	igt_info("output_mc_addr=0x%016llx\n",
-		 (unsigned long long)mc_address_dst);
-
-	igt_info("output_lo=0x%08x\n",
-		 lower_32_bits(mc_address_dst));
-
-	igt_info("output_hi=0x%08x\n",
-		 upper_32_bits(mc_address_dst));
-
-	amdgpu_dispatch_init(
-			AMDGPU_HW_IP_COMPUTE,
-			base_cmd,
-			version);
-
-	amdgpu_dispatch_write_cumask(
-			base_cmd,
-			version);
-
-	igt_info("shader_mc_addr=0x%016llx\n",
-		 (unsigned long long)mc_address_shader);
-
-	igt_info("output_mc_addr=0x%016llx\n",
-		 (unsigned long long)mc_address_dst);
-
-	amdgpu_dispatch_write2hw(
-			base_cmd,
-			mc_address_shader,
-			version,
-			0);
-
-	igt_info("cdw after write2hw = %u\n",
-		 base_cmd->cdw);
-
-	for (uint32_t j = 0; j < base_cmd->cdw; j++)
-		igt_info("PRE_USERDATA_PM4[%02u] = 0x%08x\n",
-			 j,
-				ptr_cmd[j]);
-
-	igt_info("========================================\n");
-	igt_info("COMPUTE USER DATA PROGRAMMING\n");
-	igt_info("========================================\n");
-
-	igt_info("mc_address_dst      = 0x%016llx\n",
-		 (unsigned long long)mc_address_dst);
-
-	igt_info("dst low dword       = 0x%08x\n",
-		 (uint32_t)mc_address_dst);
-
-	igt_info("dst high dword      = 0x%08x\n",
-		 (uint32_t)(mc_address_dst >> 32));
-
-	igt_info("SET_SH_REG base     = 0x240\n");
-
-	base_cmd->emit(base_cmd,
-			PACKET3_COMPUTE(PKT3_SET_SH_REG, 4));
-
-	base_cmd->emit(base_cmd, 0x240);
-
-	/*
-	 * s0:s1 = source address
-	 */
-	base_cmd->emit(base_cmd,
-			(uint32_t)mc_address_dst);
-
-	base_cmd->emit(base_cmd,
-			(uint32_t)(mc_address_dst >> 32));
-
-	/*
-	 * s2:s3 = destination address
-	 */
-	base_cmd->emit(base_cmd,
-			(uint32_t)mc_address_dst);
-
-	base_cmd->emit(base_cmd,
-			(uint32_t)(mc_address_dst >> 32));
-	igt_info("USER_DATA[0] (s0 low)  = 0x%08x\n",
-		 (uint32_t)mc_address_dst);
-
-	igt_info("USER_DATA[1] (s1 high) = 0x%08x\n",
-		 (uint32_t)(mc_address_dst >> 32));
-
-	igt_info("USER_DATA[2] (s2 low)  = 0x%08x\n",
-		 (uint32_t)mc_address_dst);
-
-	igt_info("USER_DATA[3] (s3 high) = 0x%08x\n",
-		 (uint32_t)(mc_address_dst >> 32));
-
-	base_cmd->emit(base_cmd,
-			PACKET3_COMPUTE(PKT3_SET_SH_REG, 1));
-
-	base_cmd->emit(base_cmd, 0x215);
-	base_cmd->emit(base_cmd, 0);
-
-	base_cmd->emit(base_cmd,
-			PACKET3_COMPUTE(PACKET3_DISPATCH_DIRECT,
-					3));
-
-	base_cmd->emit(base_cmd, 1);
-	base_cmd->emit(base_cmd, 1);
-	base_cmd->emit(base_cmd, 1);
-	base_cmd->emit(base_cmd, 1);
-
-	base_cmd->emit_aligned(base_cmd,
-			7,
-			GFX_COMPUTE_NOP);
-
-	igt_info("Dispatch PM4 DW=%u\n",
-		 base_cmd->cdw);
-
-	igt_info("========================================\n");
-	igt_info("FINAL PM4 DUMP\n");
-	igt_info("========================================\n");
-
-	for (uint32_t j = 0; j < base_cmd->cdw; j++)
-		igt_info("PM4[%02u] = 0x%08x\n",
-			 j,
-				ptr_cmd[j]);
-
-	resources[0] = bo_dst;
-	resources[1] = bo_shader;
-	resources[2] = bo_cmd;
-
-	r = amdgpu_bo_list_create(device,
-				  3,
-			resources,
-			NULL,
-			&bo_list);
-
-	igt_assert_eq(r, 0);
-
-	ib_info.ib_mc_address = mc_address_cmd;
-	ib_info.size = base_cmd->cdw;
-
-	ibs_request.ip_type = AMDGPU_HW_IP_COMPUTE;
-	ibs_request.ring = 0;
-	ibs_request.resources = bo_list;
-	ibs_request.number_of_ibs = 1;
-	ibs_request.ibs = &ib_info;
-
-	r = amdgpu_cs_submit(context_handle,
-			     0,
-			&ibs_request,
-			1);
-
-	igt_info("cs_submit ret=%d\n", r);
-	igt_assert_eq(r, 0);
-
-	fence_status.ip_type = AMDGPU_HW_IP_COMPUTE;
-	fence_status.ip_instance = 0;
-	fence_status.ring = 0;
-	fence_status.context = context_handle;
-	fence_status.fence = ibs_request.seq_no;
-
-	r = amdgpu_cs_query_fence_status(
-			&fence_status,
-			AMDGPU_TIMEOUT_INFINITE,
-			0,
-			&expired);
-
-	igt_info("fence ret=%d expired=%u\n",
-		 r,
-			expired);
-
-	igt_assert_eq(r, 0);
-	igt_assert_eq(expired, 1);
-
-	igt_info("===== OUTPUT DUMP =====\n");
-
-	for (i = 0; i < 32; i++) {
-		igt_info("OUT[%02d]=0x%08x\n",
-			 i,
-				ptr_dst[i]);
-	}
-
-	igt_info("output[0]=0x%x (%u)\n",
-		 ptr_dst[0],
-			ptr_dst[0]);
-
-	igt_assert_eq(ptr_dst[0], 42);
-
-	ret = vm_clear_l2_trap(fd);
-
-	igt_info("CLEAR_L2_TRAP ret=%d\n", ret);
-	igt_assert_eq(ret, 0);
-
-	slth_free_buffers(&bufs);
-
-	amdgpu_bo_list_destroy(bo_list);
-
-	amdgpu_bo_unmap_and_free(
-			bo_dst,
-			va_dst,
-			mc_address_dst,
-			bo_dst_size);
-
-	amdgpu_bo_unmap_and_free(
-			bo_shader,
-			va_shader,
-			mc_address_shader,
-			bo_shader_size);
-
-	amdgpu_bo_unmap_and_free(
-			bo_cmd,
-			va_cmd,
-			mc_address_cmd,
-			bo_cmd_size);
-
-	amdgpu_cs_ctx_free(context_handle);
-
-	free_cmd_base(base_cmd);
-
-	igt_info("COMP KQ VGPR PROOF COMPLETE\n");
-}
-
-static void
-slth_prepare_returnproof_shader(amdgpu_device_handle device,
-				uint8_t *isa_bin,
-		size_t *isa_sz)
-{
-	struct amdgpu_gpu_info info = {0};
-	char mcpu[32] = {};
-	int r;
-
-	r = amdgpu_query_gpu_info(device, &info);
-	igt_assert_eq(r, 0);
-
-	r = amdgpu_family_id_to_mcpu(info.family_id,
-				     mcpu,
-			sizeof(mcpu));
-	igt_assert_eq(r, 0);
-
-	igt_info("===== RETURNPROOF SHADER SOURCE BEGIN =====\n");
-	igt_info("%s\n", SlthReturnProofIsa);
-	igt_info("===== RETURNPROOF SHADER SOURCE END =====\n");
-
-	r = amdgpu_llvm_assemble(mcpu,
-				 SlthReturnProofIsa,
-			isa_bin,
-			8192,
-			isa_sz);
-
-	igt_info("amdgpu_llvm_assemble returned %d\n", r);
-
-	if (r) {
-		igt_info("===== SHADER SOURCE BEGIN =====\n");
-		igt_info("%s\n", SlthReturnProofIsa);
-		igt_info("===== SHADER SOURCE END =====\n");
-	}
-
-	igt_assert_eq(r, 0);
-	igt_assert(*isa_sz > 0);
-
-	igt_info("SlthReturnProofIsa size=%zu\n",
-		 *isa_sz);
-
-	igt_info("RETURNPROOF SHADER ISA DUMP\n");
-
-	for (unsigned int i = 0;
-			i < (*isa_sz / sizeof(uint32_t));
-			i++) {
-		igt_info("ISA[%u] = 0x%08x\n",
-			 i,
-				((uint32_t *)isa_bin)[i]);
-	}
-}
-
-static void
-slth_comp_kq_returnproof_test(amdgpu_device_handle device,
-			      int fd)
-{
-	struct slth_bufs bufs;
-
-	amdgpu_context_handle context_handle;
-
-	amdgpu_bo_handle bo_dst;
-	amdgpu_bo_handle bo_shader;
-	amdgpu_bo_handle bo_cmd;
-
-	amdgpu_bo_handle resources[3];
-
-	volatile uint32_t *ptr_dst;
-
-	void *ptr_shader;
-	uint32_t *ptr_cmd;
-
-	uint64_t mc_address_dst;
-	uint64_t mc_address_shader;
-	uint64_t mc_address_cmd;
-
-	amdgpu_va_handle va_dst;
-	amdgpu_va_handle va_shader;
-	amdgpu_va_handle va_cmd;
-
-	amdgpu_bo_list_handle bo_list;
-
-	struct amdgpu_cs_request ibs_request = {0};
-	struct amdgpu_cs_ib_info ib_info = {0};
-	struct amdgpu_cs_fence fence_status = {0};
-
-	struct amdgpu_cmd_base *base_cmd =
-		get_cmd_base();
-
-	uint32_t expired = 0;
-	uint32_t version = 12;
-
-	uint8_t isa_bin[8192];
-	size_t isa_sz = 0;
-
-	int bo_dst_size = 16384;
-	int bo_shader_size = 4096;
-	int bo_cmd_size = 4096;
-
-	int i;
-	int r;
-	int ret;
-
-	igt_assert(base_cmd);
-
-	memset(&bufs, 0, sizeof(bufs));
-
-	igt_info("========================================\n");
-	igt_info("COMP KQ RETURNPROOF\n");
-	igt_info("SLTH RETURNPROOF\n");
-	igt_info("========================================\n");
-
-	slth_alloc_buffers(device, &bufs);
-
-	slth_prepare_tba_with_handler(device,
-				      &bufs,
-			TrapHandlerIsaProof);
-
-	ret = vm_set_l2_trap(fd,
-			     bufs.tba_mc_addr,
-			bufs.tma_mc_addr);
-
-	igt_info("SET_L2_TRAP ret=%d\n", ret);
-	igt_assert_eq(ret, 0);
-
-	slth_prepare_returnproof_shader(device,
-					isa_bin,
-			&isa_sz);
-	igt_assert(isa_sz > 0);
-
-	igt_info("SlthReturnProofIsa size=%zu\n", isa_sz);
-
-	igt_info("===== RETURNPROOF ISA BEGIN =====\n");
-
-	for (i = 0; i < isa_sz / 4; i++) {
-		igt_info("ISA[%02d] = 0x%08x\n",
-			 i,
-				((uint32_t *)isa_bin)[i]);
-	}
-
-	igt_info("===== RETURNPROOF ISA END =====\n");
-
-	r = amdgpu_cs_ctx_create(device,
-				 &context_handle);
-	igt_assert_eq(r, 0);
-
-	r = amdgpu_bo_alloc_and_map(device,
-				    bo_cmd_size,
-			4096,
-			AMDGPU_GEM_DOMAIN_GTT,
-			0,
-			&bo_cmd,
-			(void **)&ptr_cmd,
-			&mc_address_cmd,
-			&va_cmd);
-	igt_assert_eq(r, 0);
-
-	memset(ptr_cmd, 0, bo_cmd_size);
-
-	base_cmd->attach_buf(base_cmd,
-			ptr_cmd,
-			bo_cmd_size);
-
-	r = amdgpu_bo_alloc_and_map(device,
-				    bo_shader_size,
-			4096,
-			AMDGPU_GEM_DOMAIN_VRAM,
-			0,
-			&bo_shader,
-			&ptr_shader,
-			&mc_address_shader,
-			&va_shader);
-	igt_assert_eq(r, 0);
-
-	memset(ptr_shader, 0, bo_shader_size);
-
-	memcpy(ptr_shader,
-	       isa_bin,
-			isa_sz);
-
-	igt_info("shader_mc_addr=0x%016llx\n",
-		 (unsigned long long)mc_address_shader);
-
-	r = amdgpu_bo_alloc_and_map(device,
-				    bo_dst_size,
-			4096,
-			AMDGPU_GEM_DOMAIN_VRAM,
-			0,
-			&bo_dst,
-			(void **)&ptr_dst,
-			&mc_address_dst,
-			&va_dst);
-	igt_assert_eq(r, 0);
-
-	memset((void *)ptr_dst,
-	       0,
-			bo_dst_size);
-
-	igt_info("output_mc_addr=0x%016llx\n",
-		 (unsigned long long)mc_address_dst);
-
-	igt_info("output_lo=0x%08x\n",
-		 lower_32_bits(mc_address_dst));
-
-	igt_info("output_hi=0x%08x\n",
-		 upper_32_bits(mc_address_dst));
-
-	amdgpu_dispatch_init(
-			AMDGPU_HW_IP_COMPUTE,
-			base_cmd,
-			version);
-
-	amdgpu_dispatch_write_cumask(
-			base_cmd,
-			version);
-
-	igt_info("shader_mc_addr=0x%016llx\n",
-		 (unsigned long long)mc_address_shader);
-
-	igt_info("output_mc_addr=0x%016llx\n",
-		 (unsigned long long)mc_address_dst);
-
-	amdgpu_dispatch_write2hw(
-			base_cmd,
-			mc_address_shader,
-			version,
-			0);
-
-	igt_info("cdw after write2hw = %u\n",
-		 base_cmd->cdw);
-
-	for (uint32_t j = 0; j < base_cmd->cdw; j++)
-		igt_info("PRE_USERDATA_PM4[%02u] = 0x%08x\n",
-			 j,
-				ptr_cmd[j]);
-
-	igt_info("========================================\n");
-	igt_info("COMPUTE USER DATA PROGRAMMING\n");
-	igt_info("========================================\n");
-
-	igt_info("mc_address_dst      = 0x%016llx\n",
-		 (unsigned long long)mc_address_dst);
-
-	igt_info("dst low dword       = 0x%08x\n",
-		 (uint32_t)mc_address_dst);
-
-	igt_info("dst high dword      = 0x%08x\n",
-		 (uint32_t)(mc_address_dst >> 32));
-
-	igt_info("SET_SH_REG base     = 0x240\n");
-
-	base_cmd->emit(base_cmd,
-			PACKET3_COMPUTE(PKT3_SET_SH_REG, 4));
-
-	base_cmd->emit(base_cmd, 0x240);
-
-	/*
-	 * s0:s1 = source address
-	 */
-	base_cmd->emit(base_cmd,
-			(uint32_t)mc_address_dst);
-
-	base_cmd->emit(base_cmd,
-			(uint32_t)(mc_address_dst >> 32));
-
-	/*
-	 * s2:s3 = destination address
-	 */
-	base_cmd->emit(base_cmd,
-			(uint32_t)mc_address_dst);
-
-	base_cmd->emit(base_cmd,
-			(uint32_t)(mc_address_dst >> 32));
-	igt_info("USER_DATA[0] (s0 low)  = 0x%08x\n",
-		 (uint32_t)mc_address_dst);
-
-	igt_info("USER_DATA[1] (s1 high) = 0x%08x\n",
-		 (uint32_t)(mc_address_dst >> 32));
-
-	igt_info("USER_DATA[2] (s2 low)  = 0x%08x\n",
-		 (uint32_t)mc_address_dst);
-
-	igt_info("USER_DATA[3] (s3 high) = 0x%08x\n",
-		 (uint32_t)(mc_address_dst >> 32));
-
-	base_cmd->emit(base_cmd,
-			PACKET3_COMPUTE(PKT3_SET_SH_REG, 1));
-
-	base_cmd->emit(base_cmd, 0x215);
-	base_cmd->emit(base_cmd, 0);
-
-	base_cmd->emit(base_cmd,
-			PACKET3_COMPUTE(PACKET3_DISPATCH_DIRECT,
-					3));
-
-	base_cmd->emit(base_cmd, 1);
-	base_cmd->emit(base_cmd, 1);
-	base_cmd->emit(base_cmd, 1);
-	base_cmd->emit(base_cmd, 1);
-
-	base_cmd->emit_aligned(base_cmd,
-			7,
-			GFX_COMPUTE_NOP);
-
-	igt_info("Dispatch PM4 DW=%u\n",
-		 base_cmd->cdw);
-
-	igt_info("========================================\n");
-	igt_info("FINAL PM4 DUMP\n");
-	igt_info("========================================\n");
-
-	for (uint32_t j = 0; j < base_cmd->cdw; j++)
-		igt_info("PM4[%02u] = 0x%08x\n",
-			 j,
-				ptr_cmd[j]);
-
-	resources[0] = bo_dst;
-	resources[1] = bo_shader;
-	resources[2] = bo_cmd;
-
-	r = amdgpu_bo_list_create(device,
-				  3,
-			resources,
-			NULL,
-			&bo_list);
-
-	igt_assert_eq(r, 0);
-
-	ib_info.ib_mc_address = mc_address_cmd;
-	ib_info.size = base_cmd->cdw;
-
-	ibs_request.ip_type = AMDGPU_HW_IP_COMPUTE;
-	ibs_request.ring = 0;
-	ibs_request.resources = bo_list;
-	ibs_request.number_of_ibs = 1;
-	ibs_request.ibs = &ib_info;
-
-	r = amdgpu_cs_submit(context_handle,
-			     0,
-			&ibs_request,
-			1);
-
-	igt_info("cs_submit ret=%d\n", r);
-	igt_assert_eq(r, 0);
-
-	fence_status.ip_type = AMDGPU_HW_IP_COMPUTE;
-	fence_status.ip_instance = 0;
-	fence_status.ring = 0;
-	fence_status.context = context_handle;
-	fence_status.fence = ibs_request.seq_no;
-
-	r = amdgpu_cs_query_fence_status(
-			&fence_status,
-			AMDGPU_TIMEOUT_INFINITE,
-			0,
-			&expired);
-
-	igt_info("fence ret=%d expired=%u\n",
-		 r,
-			expired);
-
-	igt_assert_eq(r, 0);
-	igt_assert_eq(expired, 1);
-
-	igt_info("===== OUTPUT DUMP =====\n");
-
-	for (i = 0; i < 32; i++) {
-		igt_info("OUT[%02d]=0x%08x\n",
-			 i,
-				ptr_dst[i]);
-	}
-
-	igt_info("output[0]=0x%x (%u)\n",
-		 ptr_dst[0],
-			ptr_dst[0]);
-
-	igt_assert_eq(ptr_dst[0], 2);
-
-	ret = vm_clear_l2_trap(fd);
-
-	igt_info("CLEAR_L2_TRAP ret=%d\n", ret);
-	igt_assert_eq(ret, 0);
-
-	slth_free_buffers(&bufs);
-
-	amdgpu_bo_list_destroy(bo_list);
-
-	amdgpu_bo_unmap_and_free(
-			bo_dst,
-			va_dst,
-			mc_address_dst,
-			bo_dst_size);
-
-	amdgpu_bo_unmap_and_free(
-			bo_shader,
-			va_shader,
-			mc_address_shader,
-			bo_shader_size);
-
-	amdgpu_bo_unmap_and_free(
-			bo_cmd,
-			va_cmd,
-			mc_address_cmd,
-			bo_cmd_size);
-
-	amdgpu_cs_ctx_free(context_handle);
-
-	free_cmd_base(base_cmd);
-
-	igt_info("COMP KQ RETURNPROOF COMPLETE\n");
-}
-
-static void
-slth_gfx_umq_returnproof_test(amdgpu_device_handle device, int fd)
-{
-	uint32_t value;
-
-	value = slth_umq_run(device, fd, AMD_IP_GFX,
-			     slth_prepare_returnproof_shader);
-
-	/* The instruction after s_trap sets v2 to 2 after the trap returns. */
-	igt_assert_eq(value, 2);
-}
-
-static void
-slth_comp_umq_vgpr_proof_test(amdgpu_device_handle device, int fd)
-{
-	uint32_t value;
-
-	value = slth_umq_run(device, fd, AMD_IP_COMPUTE,
-			     slth_prepare_vgpr_proof_shader);
-
-	/* The trap handler sets v2 to 42 before the shader stores it. */
-	igt_assert_eq(value, 42);
-}
-
-static void
-slth_comp_umq_returnproof_test(amdgpu_device_handle device, int fd)
-{
-	uint32_t value;
-
-	value = slth_umq_run(device, fd, AMD_IP_COMPUTE,
-			     slth_prepare_returnproof_shader);
-
-	/* The instruction after s_trap sets v2 to 2 after the trap returns. */
-	igt_assert_eq(value, 2);
-}
-
  int igt_main()
  {
  	amdgpu_device_handle device;
@@ -2455,7 +989,7 @@ int igt_main()
  	igt_describe("Check-all-user-queues-for-write-operation");
  	igt_subtest_with_dynamic("all-queues-test-with-UMQ") {
  		if (enable_test && userq_arr_cap[AMD_IP_GFX] &&
-		    userq_arr_cap[AMD_IP_COMPUTE] &&
+				userq_arr_cap[AMD_IP_COMPUTE] &&
  				userq_arr_cap[AMD_IP_DMA]) {
  			igt_dynamic_f("all-queues-with-umq")
  			amdgpu_test_all_queues(device, true);
@@ -2478,36 +1012,6 @@ int igt_main()
  		}
  	}
 
-	igt_subtest("slth-gfx-kq-vgpr-proof")
-		slth_gfx_kq_vgpr_proof_test(device, fd);
-
-	igt_subtest("slth-gfx-umq-vgpr-proof")
-		slth_gfx_umq_vgpr_proof_test(device, fd);
-
-	igt_subtest("slth-comp-kq-vgpr-proof")
-		slth_comp_kq_vgpr_proof_test(device, fd);
-
-	igt_subtest("slth-comp-kq-returnproof")
-		slth_comp_kq_returnproof_test(device, fd);
-
-	igt_describe("Check-SLTH-trap-return-resumes-after-s_trap-on-GFX-user-queue");
-	igt_subtest("slth-gfx-umq-returnproof") {
-		igt_require(enable_test && userq_arr_cap[AMD_IP_GFX]);
-		slth_gfx_umq_returnproof_test(device, fd);
-	}
-
-	igt_describe("Check-SLTH-trap-handler-updates-VGPR-on-compute-user-queue");
-	igt_subtest("slth-comp-umq-vgpr-proof") {
-		igt_require(enable_test && userq_arr_cap[AMD_IP_COMPUTE]);
-		slth_comp_umq_vgpr_proof_test(device, fd);
-	}
-
-	igt_describe("Check-SLTH-trap-return-resumes-after-s_trap-on-compute-user-queue");
-	igt_subtest("slth-comp-umq-returnproof") {
-		igt_require(enable_test && userq_arr_cap[AMD_IP_COMPUTE]);
-		slth_comp_umq_returnproof_test(device, fd);
-	}
-
  	igt_fixture() {
  		amdgpu_device_deinitialize(device);
  		drm_close_driver(fd);
tests/amdgpu/amd_slth.c new file +1564 -0
new file mode 100644
index 000000000..69b6c0633
@@ -0,0 +1,1564 @@
+// SPDX-License-Identifier: MIT
+/*
+ * Copyright 2026 Advanced Micro Devices, Inc.
+ */
+
+/*
+ * Second-level trap handler (SLTH) tests.
+ *
+ * Install a second-level trap handler for the GPUVM, run a shader which
+ * executes s_trap on GFX and compute kernel and user queues, and check that
+ * the handler ran and that the shader resumed after the trap.
+ */
+
+#include "ioctl_wrappers.h"
+#include "lib/amdgpu/amd_memory.h"
+#include "lib/amdgpu/amd_PM4.h"
+#include "lib/amdgpu/compute_utils/amd_dispatch.h"
+#include "lib/amdgpu/amdgpu_asic_addr.h"
+#include "lib/amdgpu/amd_utils.h"
+#include "lib/amdgpu/amd_platform.h"
+#include "lib/amdgpu/shaders/amd_shader_store.h"
+#ifdef AMDGPU_LLVM_ENABLED
+#include "lib/amdgpu/shaders/amd_llvm_asm.h"
+#else
+#include "lib/amdgpu/shaders/amd_llvm_asm_stub.h"
+#endif
+
+#define TBA_SIZE (2 * 4096)
+#define TMA_SIZE (4096)
+
+struct slth_bufs {
+	amdgpu_bo_handle tba_bo;
+	amdgpu_bo_handle tma_bo;
+
+	amdgpu_va_handle tba_va_handle;
+	amdgpu_va_handle tma_va_handle;
+
+	uint64_t tba_mc_addr;
+	uint64_t tma_mc_addr;
+
+	void *tba_cpu;
+	void *tma_cpu;
+};
+
+static void slth_alloc_buffers(amdgpu_device_handle device,
+			       struct slth_bufs *bufs)
+{
+	int r;
+
+	memset(bufs, 0, sizeof(*bufs));
+
+	r = amdgpu_bo_alloc_and_map(
+			device,
+			TBA_SIZE,
+			4096,
+			AMDGPU_GEM_DOMAIN_GTT,
+			AMDGPU_GEM_CREATE_VM_ALWAYS_VALID,
+			&bufs->tba_bo,
+			&bufs->tba_cpu,
+			&bufs->tba_mc_addr,
+			&bufs->tba_va_handle);
+	igt_assert_eq(r, 0);
+
+	r = amdgpu_bo_alloc_and_map(
+			device,
+			TMA_SIZE,
+			4096,
+			AMDGPU_GEM_DOMAIN_GTT,
+			AMDGPU_GEM_CREATE_VM_ALWAYS_VALID,
+			&bufs->tma_bo,
+			&bufs->tma_cpu,
+			&bufs->tma_mc_addr,
+			&bufs->tma_va_handle);
+	igt_assert_eq(r, 0);
+}
+
+static void slth_free_buffers(struct slth_bufs *bufs)
+{
+	if (bufs->tba_bo)
+		amdgpu_bo_unmap_and_free(bufs->tba_bo,
+					 bufs->tba_va_handle,
+				bufs->tba_mc_addr,
+				TBA_SIZE);
+
+	if (bufs->tma_bo)
+		amdgpu_bo_unmap_and_free(bufs->tma_bo,
+					 bufs->tma_va_handle,
+				bufs->tma_mc_addr,
+				TMA_SIZE);
+}
+
+static int vm_set_l2_trap(int fd,
+			  uint64_t tba_va,
+		uint64_t tma_va)
+{
+	union drm_amdgpu_vm args = {0};
+
+	args.in.op = AMDGPU_VM_OP_SET_L2_TRAP;
+
+	args.in.l2trap.tba_va = tba_va;
+	args.in.l2trap.tba_sz = TBA_SIZE;
+
+	args.in.l2trap.tma_va = tma_va;
+	args.in.l2trap.tma_sz = TMA_SIZE;
+
+	return drmIoctl(fd, DRM_IOCTL_AMDGPU_VM, &args);
+}
+
+static int vm_clear_l2_trap(int fd)
+{
+	union drm_amdgpu_vm args = {0};
+
+	args.in.op = AMDGPU_VM_OP_CLEAR_L2_TRAP;
+
+	return drmIoctl(fd, DRM_IOCTL_AMDGPU_VM, &args);
+}
+
+static void slth_prepare_tba_with_handler(
+		amdgpu_device_handle device,
+		struct slth_bufs *bufs,
+		const char *handler)
+{
+	struct amdgpu_gpu_info info = {0};
+	char mcpu[32] = {};
+	uint8_t isa_bin[8192];
+	size_t isa_sz = 0;
+	int r;
+
+	r = amdgpu_query_gpu_info(device, &info);
+	igt_assert_eq(r, 0);
+
+	r = amdgpu_family_id_to_mcpu(info.family_id,
+				     mcpu,
+			sizeof(mcpu));
+	igt_assert_eq(r, 0);
+
+	igt_info("family_id=%u mcpu=%s\n",
+		 info.family_id,
+			mcpu);
+
+	r = amdgpu_llvm_assemble(mcpu,
+				 handler,
+			isa_bin,
+			sizeof(isa_bin),
+			&isa_sz);
+
+	if (r)
+		igt_info("amdgpu_llvm_assemble failed r=%d\n", r);
+
+	igt_assert_eq(r, 0);
+	igt_assert(isa_sz > 0);
+
+	memset(bufs->tba_cpu, 0, TBA_SIZE);
+	memcpy(bufs->tba_cpu,
+	       isa_bin,
+			isa_sz);
+
+	memset(bufs->tma_cpu, 0, TMA_SIZE);
+
+	igt_info("Trap handler size=%zu\n", isa_sz);
+}
+
+static void slth_prepare_vgpr_proof_shader(amdgpu_device_handle device,
+					   uint8_t *isa_bin,
+		size_t *isa_sz)
+{
+	struct amdgpu_gpu_info info = {0};
+	char mcpu[32] = {};
+	int r;
+
+	r = amdgpu_query_gpu_info(device, &info);
+	igt_assert_eq(r, 0);
+
+	r = amdgpu_family_id_to_mcpu(info.family_id,
+				     mcpu,
+			sizeof(mcpu));
+	igt_assert_eq(r, 0);
+
+	igt_info("===== SLTH VGPR PROOF SHADER BEGIN =====\n");
+	igt_info("%s\n", SlthVgprProofIsa);
+	igt_info("SLTH VGPR PROOF ISA DUMP\n");
+
+	r = amdgpu_llvm_assemble(mcpu,
+				 SlthVgprProofIsa,
+			isa_bin,
+			8192,
+			isa_sz);
+
+	igt_info("amdgpu_llvm_assemble returned %d\n", r);
+
+	if (r) {
+		igt_info("===== SHADER SOURCE BEGIN =====\n");
+		igt_info("%s\n", SlthVgprProofIsa);
+		igt_info("===== SHADER SOURCE END =====\n");
+	}
+
+	igt_assert_eq(r, 0);
+	igt_assert(*isa_sz > 0);
+
+	igt_info("SlthVgprProofIsa size=%zu\n", *isa_sz);
+
+	igt_info("SLTH VGPR PROOF ISA DUMP\n");
+
+	for (unsigned int i = 0; i < (*isa_sz / sizeof(uint32_t)); i++) {
+		igt_info("ISA[%u] = 0x%08x\n",
+			 i,
+				((uint32_t *)isa_bin)[i]);
+	}
+}
+
+static uint32_t execute_slth_dispatch(
+		amdgpu_device_handle device,
+		uint32_t ip_type,
+		uint32_t version,
+		const uint32_t *shader,
+		uint32_t shader_size)
+{
+	const struct amdgpu_ip_block_version *gfx_ip =
+		get_ip_block(device, AMD_IP_GFX);
+
+	amdgpu_context_handle context_handle;
+
+	amdgpu_bo_handle bo = NULL;
+	amdgpu_va_handle va = 0;
+
+	void *cpu = NULL;
+	uint32_t *ptr_pm4 = NULL;
+	volatile uint32_t *ptr_output = NULL;
+
+	uint64_t mc = 0;
+	uint64_t shader_mc_addr;
+	uint64_t output_mc_addr;
+
+	struct amdgpu_cmd_base *base_cmd;
+	struct amdgpu_cs_request ib_req = {0};
+	struct amdgpu_cs_ib_info ib_info = {0};
+	struct amdgpu_cs_fence fence = {0};
+
+	amdgpu_bo_list_handle bo_list = NULL;
+
+	amdgpu_bo_handle bos[1];
+
+	uint32_t expired = 0;
+	uint32_t output_value;
+	int r;
+
+	base_cmd = get_cmd_base();
+	igt_assert(base_cmd);
+
+	r = amdgpu_cs_ctx_create(device, &context_handle);
+	igt_assert_eq(r, 0);
+
+	r = amdgpu_bo_alloc_and_map(device,
+				    65536,
+			4096,
+			AMDGPU_GEM_DOMAIN_GTT,
+			0,
+			&bo,
+			&cpu,
+			&mc,
+			&va);
+	igt_assert_eq(r, 0);
+
+	memset(cpu, 0, 65536);
+
+	ptr_pm4 = (uint32_t *)cpu;
+
+	memcpy((uint8_t *)cpu + 0x1000,
+	       shader,
+			shader_size);
+
+	ptr_output =
+		(volatile uint32_t *)((uint8_t *)cpu + 0x2000);
+
+	memset((void *)ptr_output, 0, 4096);
+
+	shader_mc_addr = mc + 0x1000;
+	output_mc_addr = mc + 0x2000;
+
+	igt_info("s0 expected address low  = 0x%08x\n",
+		 lower_32_bits(output_mc_addr));
+
+	igt_info("s1 expected address high = 0x%08x\n",
+		 upper_32_bits(output_mc_addr));
+
+	igt_info("========================================\n");
+	igt_info("SLTH DISPATCH START\n");
+	igt_info("========================================\n");
+
+	igt_info("ip_type        = %u\n", ip_type);
+	igt_info("version        = %u\n", version);
+
+	igt_info("base_mc_addr   = 0x%016llx\n",
+		 (unsigned long long)mc);
+
+	igt_info("shader_mc_addr = 0x%016llx\n",
+		 (unsigned long long)shader_mc_addr);
+
+	igt_info("output_mc_addr = 0x%016llx\n",
+		 (unsigned long long)output_mc_addr);
+
+	igt_info("shader_end     = 0x%016llx\n",
+		 (unsigned long long)
+			(shader_mc_addr + shader_size));
+
+	igt_info("output_end     = 0x%016llx\n",
+		 (unsigned long long)
+			(output_mc_addr + 16384));
+
+	base_cmd->attach_buf(base_cmd,
+			ptr_pm4,
+			4096);
+
+	igt_assert(gfx_ip);
+	igt_assert(gfx_ip->funcs);
+	igt_assert(gfx_ip->funcs->gfx_program_compute);
+	igt_assert(gfx_ip->funcs->gfx_dispatch_direct);
+
+	igt_info("========================================\n");
+	igt_info("NATIVE GFX PROGRAMMING\n");
+	igt_info("========================================\n");
+
+	igt_info("user_data[0] = 0x%08x\n",
+		 lower_32_bits(output_mc_addr));
+
+	igt_info("user_data[1] = 0x%08x\n",
+		 upper_32_bits(output_mc_addr));
+
+	gfx_ip->funcs->gfx_program_compute(
+			gfx_ip->funcs,
+			base_cmd,
+			shader_mc_addr,
+			output_mc_addr,
+			0x002c0040,
+			0x00000010,
+			1,
+			1,
+			1);
+
+	igt_info("PM4 dwords after gfx_program_compute = %u\n",
+		 base_cmd->cdw);
+
+	gfx_ip->funcs->gfx_dispatch_direct(
+			gfx_ip->funcs,
+			base_cmd,
+			1,
+			1,
+			1,
+			0);
+
+	base_cmd->emit_aligned(base_cmd,
+			7,
+			GFX_COMPUTE_NOP);
+
+	igt_info("PM4 dwords after dispatch = %u\n",
+		 base_cmd->cdw);
+
+	bos[0] = bo;
+
+	r = amdgpu_bo_list_create(device,
+				  1,
+			bos,
+			NULL,
+			&bo_list);
+	igt_assert_eq(r, 0);
+
+	ib_info.ib_mc_address = mc;
+	ib_info.size = base_cmd->cdw;
+
+	ib_req.ip_type = ip_type;
+	ib_req.ring = 0;
+	ib_req.resources = bo_list;
+	ib_req.number_of_ibs = 1;
+	ib_req.ibs = &ib_info;
+
+	igt_info("========================================\n");
+	igt_info("PRE-DISPATCH OUTPUT BUFFER\n");
+	igt_info("========================================\n");
+
+	for (int i = 0; i < 16; i++) {
+		igt_info("PRE[%d] = 0x%08x\n",
+			 i,
+				ptr_output[i]);
+	}
+
+	igt_info("========================================\n");
+	igt_info("IB SUBMIT\n");
+	igt_info("========================================\n");
+
+	igt_info("ib_mc_address = 0x%016llx\n",
+		 (unsigned long long)ib_info.ib_mc_address);
+
+	igt_info("ib_size_dw    = %u\n",
+		 ib_info.size);
+
+	r = amdgpu_cs_submit(context_handle,
+			     0,
+			&ib_req,
+			1);
+
+	igt_info("cs_submit ret = %d\n", r);
+
+	igt_assert_eq(r, 0);
+
+	fence.context = context_handle;
+	fence.ip_type = ip_type;
+	fence.ip_instance = 0;
+	fence.ring = 0;
+	fence.fence = ib_req.seq_no;
+
+	r = amdgpu_cs_query_fence_status(&fence,
+					 5000000000ULL,
+			0,
+			&expired);
+
+	igt_info("========================================\n");
+	igt_info("FENCE STATUS\n");
+	igt_info("========================================\n");
+
+	igt_info("query ret = %d\n", r);
+	igt_info("expired   = %u\n", expired);
+
+	igt_assert_eq(r, 0);
+	igt_assert_eq(expired, 1);
+
+	output_value = ptr_output[0];
+
+	igt_info("========================================\n");
+	igt_info("OUTPUT BUFFER DUMP\n");
+	igt_info("========================================\n");
+
+	for (int i = 0; i < 16; i++) {
+		igt_info("OUT[%d] = 0x%08x\n",
+			 i,
+				ptr_output[i]);
+	}
+
+	igt_info("========================================\n");
+	igt_info("RESULT\n");
+	igt_info("========================================\n");
+
+	igt_info("output value = 0x%x (%u)\n",
+		 output_value,
+			output_value);
+
+	if (bo_list)
+		amdgpu_bo_list_destroy(bo_list);
+
+	amdgpu_bo_unmap_and_free(bo,
+				 va,
+			mc,
+			65536);
+
+	amdgpu_cs_ctx_free(context_handle);
+
+	free_cmd_base(base_cmd);
+
+	igt_info("SLTH DISPATCH END\n");
+
+	return output_value;
+}
+
+static void slth_gfx_kq_vgpr_proof_test(amdgpu_device_handle device,
+					int fd)
+{
+	struct slth_bufs bufs;
+	uint8_t isa_bin[8192];
+	size_t isa_sz = 0;
+
+	struct amdgpu_gpu_info info = {0};
+	uint32_t version = 12;
+	uint32_t value;
+
+	int ret;
+	int r;
+
+	memset(&bufs, 0, sizeof(bufs));
+
+	igt_info("SLTH GFX KQ VGPR PROOF\n");
+
+	slth_alloc_buffers(device, &bufs);
+
+	slth_prepare_tba_with_handler(device,
+				      &bufs,
+			TrapHandlerIsaProof);
+
+	ret = vm_set_l2_trap(fd,
+			     bufs.tba_mc_addr,
+			bufs.tma_mc_addr);
+	igt_assert_eq(ret, 0);
+
+	slth_prepare_vgpr_proof_shader(device,
+				       isa_bin,
+			&isa_sz);
+
+	r = amdgpu_query_gpu_info(device, &info);
+	igt_assert_eq(r, 0);
+
+	if (FAMILY_IS_GFX1200(info.family_id))
+		version = 12;
+	else if (FAMILY_IS_GFX1150(info.family_id) ||
+		 FAMILY_IS_GFX1100(info.family_id) ||
+			FAMILY_IS_GFX1036(info.family_id) ||
+			FAMILY_IS_GFX1037(info.family_id) ||
+			FAMILY_IS_YC(info.family_id) ||
+			info.family_id == FAMILY_GFX1103)
+		version = 11;
+	else
+		version = 10;
+
+	igt_info("Running SLTH VGPR proof shader\n");
+
+	value = execute_slth_dispatch(device,
+				      AMDGPU_HW_IP_GFX,
+			version,
+			(const uint32_t *)isa_bin,
+			(uint32_t)isa_sz);
+
+	igt_info("VGPR proof output value=%u\n", value);
+
+	if (value == 42)
+		igt_info("SLTH trap handler updated VGPR state, shader resumed successfully\n");
+	else
+		igt_info("SLTH GFX KQ VGPR proof failed: expected=42 actual=%u\n",
+			 value);
+
+	igt_assert_eq(value, 42);
+
+	ret = vm_clear_l2_trap(fd);
+	igt_assert_eq(ret, 0);
+
+	slth_free_buffers(&bufs);
+
+	igt_info("SLTH GFX KQ VGPR PROOF COMPLETE\n");
+}
+
+/*
+ * Run a SLTH shader on a GFX or compute user queue and return the dword it
+ * stores. The second-level trap handler is set per GPUVM, so user queues get
+ * it like kernel queues do. The shader stores to the address in s[0:1].
+ */
+static uint32_t
+slth_umq_run(amdgpu_device_handle device, int fd, unsigned int ip_type,
+	     void (*prepare_shader)(amdgpu_device_handle device,
+				    uint8_t *isa_bin, size_t *isa_sz))
+{
+	const struct amdgpu_ip_block_version *ip = get_ip_block(device, ip_type);
+	struct amdgpu_ring_context *ring_context;
+	struct amdgpu_cmd_base *base_cmd;
+	struct slth_bufs bufs;
+	amdgpu_bo_handle bo;
+	amdgpu_va_handle va;
+	volatile uint32_t *ptr_output;
+	uint64_t mc, shader_mc_addr, output_mc_addr;
+	uint8_t isa_bin[8192];
+	size_t isa_sz = 0;
+	uint32_t value;
+	void *cpu;
+	int r, i;
+
+	igt_assert(ip_type == AMD_IP_GFX || ip_type == AMD_IP_COMPUTE);
+	igt_assert(ip && ip->funcs);
+
+	memset(&bufs, 0, sizeof(bufs));
+	slth_alloc_buffers(device, &bufs);
+	slth_prepare_tba_with_handler(device, &bufs, TrapHandlerIsaProof);
+
+	r = vm_set_l2_trap(fd, bufs.tba_mc_addr, bufs.tma_mc_addr);
+	igt_info("SET_L2_TRAP ret=%d\n", r);
+	igt_assert_eq(r, 0);
+
+	prepare_shader(device, isa_bin, &isa_sz);
+	igt_assert(isa_sz > 0 && isa_sz <= 4096);
+
+	ring_context = calloc(1, sizeof(*ring_context));
+	igt_assert(ring_context);
+
+	ip->funcs->userq_create(device, ring_context, ip->type);
+	igt_info("%s UMQ %u created\n", ip_type == AMD_IP_GFX ? "GFX" : "compute",
+		 ring_context->queue_id);
+
+	/* IB at 0x0, shader at 0x1000, output at 0x2000 */
+	r = amdgpu_bo_alloc_and_map_sync(device, 65536, 4096,
+					 AMDGPU_GEM_DOMAIN_GTT,
+					 AMDGPU_GEM_CREATE_CPU_GTT_USWC,
+					 AMDGPU_VM_MTYPE_UC,
+					 &bo, &cpu, &mc, &va,
+					 ring_context->timeline_syncobj_handle,
+					 ++ring_context->point, true);
+	igt_assert_eq(r, 0);
+
+	r = amdgpu_timeline_syncobj_wait(device,
+					 ring_context->timeline_syncobj_handle,
+					 ring_context->point);
+	igt_assert_eq(r, 0);
+
+	memset(cpu, 0, 65536);
+	memcpy((uint8_t *)cpu + 0x1000, isa_bin, isa_sz);
+	ptr_output = (volatile uint32_t *)((uint8_t *)cpu + 0x2000);
+	shader_mc_addr = mc + 0x1000;
+	output_mc_addr = mc + 0x2000;
+
+	base_cmd = get_cmd_base();
+	igt_assert(base_cmd);
+	base_cmd->attach_buf(base_cmd, cpu, 4096);
+
+	if (ip_type == AMD_IP_GFX) {
+		ip->funcs->gfx_program_compute(ip->funcs, base_cmd,
+					       shader_mc_addr, output_mc_addr,
+					       0x002c0040, 0x00000010, 1, 1, 1);
+		ip->funcs->gfx_dispatch_direct(ip->funcs, base_cmd, 1, 1, 1, 0);
+	} else {
+		/*
+		 * gfx_program_compute() starts with CONTEXT_CONTROL, a GFX only
+		 * packet, so program the dispatch like the compute KQ tests.
+		 */
+		amdgpu_dispatch_init(AMDGPU_HW_IP_COMPUTE, base_cmd, ip->major);
+		amdgpu_dispatch_write_cumask(base_cmd, ip->major);
+		amdgpu_dispatch_write2hw(base_cmd, shader_mc_addr, ip->major, 0);
+
+		/* COMPUTE_USER_DATA_0..3: s[0:1] = s[2:3] = output address */
+		base_cmd->emit(base_cmd, PACKET3_COMPUTE(PKT3_SET_SH_REG, 4));
+		base_cmd->emit(base_cmd, 0x240);
+		base_cmd->emit(base_cmd, lower_32_bits(output_mc_addr));
+		base_cmd->emit(base_cmd, upper_32_bits(output_mc_addr));
+		base_cmd->emit(base_cmd, lower_32_bits(output_mc_addr));
+		base_cmd->emit(base_cmd, upper_32_bits(output_mc_addr));
+
+		/* COMPUTE_RESOURCE_LIMITS */
+		base_cmd->emit(base_cmd, PACKET3_COMPUTE(PKT3_SET_SH_REG, 1));
+		base_cmd->emit(base_cmd, 0x215);
+		base_cmd->emit(base_cmd, 0);
+
+		base_cmd->emit(base_cmd, PACKET3_COMPUTE(PACKET3_DISPATCH_DIRECT, 3));
+		base_cmd->emit(base_cmd, 1);
+		base_cmd->emit(base_cmd, 1);
+		base_cmd->emit(base_cmd, 1);
+		base_cmd->emit(base_cmd, 1);
+	}
+	base_cmd->emit_aligned(base_cmd, 7, GFX_COMPUTE_NOP);
+	ring_context->pm4_dw = base_cmd->cdw;
+
+	ip->funcs->userq_submit(device, ring_context, ip->type, mc);
+
+	r = amdgpu_timeline_syncobj_wait(device,
+					 ring_context->timeline_syncobj_handle,
+					 ring_context->point);
+	igt_assert_eq(r, 0);
+
+	for (i = 0; i < 1000 && !ptr_output[0]; i++)
+		usleep(1000);
+	value = ptr_output[0];
+	igt_info("output_value=%u (0x%x)\n", value, value);
+
+	amdgpu_bo_unmap_and_free(bo, va, mc, 65536);
+	free_cmd_base(base_cmd);
+	ip->funcs->userq_destroy(device, ring_context, ip->type);
+	free(ring_context);
+
+	r = vm_clear_l2_trap(fd);
+	igt_info("CLEAR_L2_TRAP ret=%d\n", r);
+	igt_assert_eq(r, 0);
+	slth_free_buffers(&bufs);
+
+	return value;
+}
+
+static void slth_gfx_umq_vgpr_proof_test(amdgpu_device_handle device,
+					 int fd)
+{
+	uint32_t value;
+
+	igt_info("SLTH GFX UMQ VGPR PROOF\n");
+
+	value = slth_umq_run(device, fd, AMD_IP_GFX,
+			     slth_prepare_vgpr_proof_shader);
+
+	/* The trap handler sets v2 to 42 before the shader stores it. */
+	igt_assert_eq(value, 42);
+
+	igt_info("SLTH GFX UMQ VGPR PROOF COMPLETE\n");
+}
+
+static void
+slth_comp_kq_vgpr_proof_test(amdgpu_device_handle device,
+			     int fd)
+{
+	struct slth_bufs bufs;
+
+	amdgpu_context_handle context_handle;
+
+	amdgpu_bo_handle bo_dst;
+	amdgpu_bo_handle bo_shader;
+	amdgpu_bo_handle bo_cmd;
+
+	amdgpu_bo_handle resources[3];
+
+	volatile uint32_t *ptr_dst;
+
+	void *ptr_shader;
+	uint32_t *ptr_cmd;
+
+	uint64_t mc_address_dst;
+	uint64_t mc_address_shader;
+	uint64_t mc_address_cmd;
+
+	amdgpu_va_handle va_dst;
+	amdgpu_va_handle va_shader;
+	amdgpu_va_handle va_cmd;
+
+	amdgpu_bo_list_handle bo_list;
+
+	struct amdgpu_cs_request ibs_request = {0};
+	struct amdgpu_cs_ib_info ib_info = {0};
+	struct amdgpu_cs_fence fence_status = {0};
+
+	struct amdgpu_cmd_base *base_cmd =
+		get_cmd_base();
+
+	uint32_t expired = 0;
+	uint32_t version = 12;
+
+	uint8_t isa_bin[8192];
+	size_t isa_sz = 0;
+
+	int bo_dst_size = 16384;
+	int bo_shader_size = 4096;
+	int bo_cmd_size = 4096;
+
+	int i;
+	int r;
+	int ret;
+
+	igt_assert(base_cmd);
+
+	memset(&bufs, 0, sizeof(bufs));
+
+	igt_info("========================================\n");
+	igt_info("COMP KQ VGPR PROOF\n");
+	igt_info("SLTH VGPR PROOF\n");
+	igt_info("========================================\n");
+
+	slth_alloc_buffers(device, &bufs);
+
+	slth_prepare_tba_with_handler(device,
+				      &bufs,
+			TrapHandlerIsaProof);
+
+	ret = vm_set_l2_trap(fd,
+			     bufs.tba_mc_addr,
+			bufs.tma_mc_addr);
+
+	igt_info("SET_L2_TRAP ret=%d\n", ret);
+	igt_assert_eq(ret, 0);
+
+	slth_prepare_vgpr_proof_shader(device,
+				       isa_bin,
+			&isa_sz);
+
+	igt_assert(isa_sz > 0);
+
+	igt_info("SlthVgprProofIsa size=%zu\n",
+		 isa_sz);
+
+	igt_info("===== SLTH VGPR PROOF ISA BEGIN =====\n");
+
+	for (i = 0; i < isa_sz / 4; i++) {
+		igt_info("ISA[%02d] = 0x%08x\n",
+			 i,
+				((uint32_t *)isa_bin)[i]);
+	}
+
+	igt_info("===== SLTH VGPR PROOF ISA END =====\n");
+
+	r = amdgpu_cs_ctx_create(device,
+				 &context_handle);
+	igt_assert_eq(r, 0);
+
+	r = amdgpu_bo_alloc_and_map(device,
+				    bo_cmd_size,
+			4096,
+			AMDGPU_GEM_DOMAIN_GTT,
+			0,
+			&bo_cmd,
+			(void **)&ptr_cmd,
+			&mc_address_cmd,
+			&va_cmd);
+	igt_assert_eq(r, 0);
+
+	memset(ptr_cmd, 0, bo_cmd_size);
+
+	base_cmd->attach_buf(base_cmd,
+			ptr_cmd,
+			bo_cmd_size);
+
+	r = amdgpu_bo_alloc_and_map(device,
+				    bo_shader_size,
+			4096,
+			AMDGPU_GEM_DOMAIN_VRAM,
+			0,
+			&bo_shader,
+			&ptr_shader,
+			&mc_address_shader,
+			&va_shader);
+	igt_assert_eq(r, 0);
+
+	memset(ptr_shader, 0, bo_shader_size);
+
+	memcpy(ptr_shader,
+	       isa_bin,
+			isa_sz);
+
+	igt_info("shader_mc_addr=0x%016llx\n",
+		 (unsigned long long)mc_address_shader);
+
+	r = amdgpu_bo_alloc_and_map(device,
+				    bo_dst_size,
+			4096,
+			AMDGPU_GEM_DOMAIN_VRAM,
+			0,
+			&bo_dst,
+			(void **)&ptr_dst,
+			&mc_address_dst,
+			&va_dst);
+	igt_assert_eq(r, 0);
+
+	memset((void *)ptr_dst,
+	       0,
+			bo_dst_size);
+
+	igt_info("output_mc_addr=0x%016llx\n",
+		 (unsigned long long)mc_address_dst);
+
+	igt_info("output_lo=0x%08x\n",
+		 lower_32_bits(mc_address_dst));
+
+	igt_info("output_hi=0x%08x\n",
+		 upper_32_bits(mc_address_dst));
+
+	amdgpu_dispatch_init(
+			AMDGPU_HW_IP_COMPUTE,
+			base_cmd,
+			version);
+
+	amdgpu_dispatch_write_cumask(
+			base_cmd,
+			version);
+
+	igt_info("shader_mc_addr=0x%016llx\n",
+		 (unsigned long long)mc_address_shader);
+
+	igt_info("output_mc_addr=0x%016llx\n",
+		 (unsigned long long)mc_address_dst);
+
+	amdgpu_dispatch_write2hw(
+			base_cmd,
+			mc_address_shader,
+			version,
+			0);
+
+	igt_info("cdw after write2hw = %u\n",
+		 base_cmd->cdw);
+
+	for (uint32_t j = 0; j < base_cmd->cdw; j++)
+		igt_info("PRE_USERDATA_PM4[%02u] = 0x%08x\n",
+			 j,
+				ptr_cmd[j]);
+
+	igt_info("========================================\n");
+	igt_info("COMPUTE USER DATA PROGRAMMING\n");
+	igt_info("========================================\n");
+
+	igt_info("mc_address_dst      = 0x%016llx\n",
+		 (unsigned long long)mc_address_dst);
+
+	igt_info("dst low dword       = 0x%08x\n",
+		 (uint32_t)mc_address_dst);
+
+	igt_info("dst high dword      = 0x%08x\n",
+		 (uint32_t)(mc_address_dst >> 32));
+
+	igt_info("SET_SH_REG base     = 0x240\n");
+
+	base_cmd->emit(base_cmd,
+			PACKET3_COMPUTE(PKT3_SET_SH_REG, 4));
+
+	base_cmd->emit(base_cmd, 0x240);
+
+	/*
+	 * s0:s1 = source address
+	 */
+	base_cmd->emit(base_cmd,
+			(uint32_t)mc_address_dst);
+
+	base_cmd->emit(base_cmd,
+			(uint32_t)(mc_address_dst >> 32));
+
+	/*
+	 * s2:s3 = destination address
+	 */
+	base_cmd->emit(base_cmd,
+			(uint32_t)mc_address_dst);
+
+	base_cmd->emit(base_cmd,
+			(uint32_t)(mc_address_dst >> 32));
+	igt_info("USER_DATA[0] (s0 low)  = 0x%08x\n",
+		 (uint32_t)mc_address_dst);
+
+	igt_info("USER_DATA[1] (s1 high) = 0x%08x\n",
+		 (uint32_t)(mc_address_dst >> 32));
+
+	igt_info("USER_DATA[2] (s2 low)  = 0x%08x\n",
+		 (uint32_t)mc_address_dst);
+
+	igt_info("USER_DATA[3] (s3 high) = 0x%08x\n",
+		 (uint32_t)(mc_address_dst >> 32));
+
+	base_cmd->emit(base_cmd,
+			PACKET3_COMPUTE(PKT3_SET_SH_REG, 1));
+
+	base_cmd->emit(base_cmd, 0x215);
+	base_cmd->emit(base_cmd, 0);
+
+	base_cmd->emit(base_cmd,
+			PACKET3_COMPUTE(PACKET3_DISPATCH_DIRECT,
+					3));
+
+	base_cmd->emit(base_cmd, 1);
+	base_cmd->emit(base_cmd, 1);
+	base_cmd->emit(base_cmd, 1);
+	base_cmd->emit(base_cmd, 1);
+
+	base_cmd->emit_aligned(base_cmd,
+			7,
+			GFX_COMPUTE_NOP);
+
+	igt_info("Dispatch PM4 DW=%u\n",
+		 base_cmd->cdw);
+
+	igt_info("========================================\n");
+	igt_info("FINAL PM4 DUMP\n");
+	igt_info("========================================\n");
+
+	for (uint32_t j = 0; j < base_cmd->cdw; j++)
+		igt_info("PM4[%02u] = 0x%08x\n",
+			 j,
+				ptr_cmd[j]);
+
+	resources[0] = bo_dst;
+	resources[1] = bo_shader;
+	resources[2] = bo_cmd;
+
+	r = amdgpu_bo_list_create(device,
+				  3,
+			resources,
+			NULL,
+			&bo_list);
+
+	igt_assert_eq(r, 0);
+
+	ib_info.ib_mc_address = mc_address_cmd;
+	ib_info.size = base_cmd->cdw;
+
+	ibs_request.ip_type = AMDGPU_HW_IP_COMPUTE;
+	ibs_request.ring = 0;
+	ibs_request.resources = bo_list;
+	ibs_request.number_of_ibs = 1;
+	ibs_request.ibs = &ib_info;
+
+	r = amdgpu_cs_submit(context_handle,
+			     0,
+			&ibs_request,
+			1);
+
+	igt_info("cs_submit ret=%d\n", r);
+	igt_assert_eq(r, 0);
+
+	fence_status.ip_type = AMDGPU_HW_IP_COMPUTE;
+	fence_status.ip_instance = 0;
+	fence_status.ring = 0;
+	fence_status.context = context_handle;
+	fence_status.fence = ibs_request.seq_no;
+
+	r = amdgpu_cs_query_fence_status(
+			&fence_status,
+			AMDGPU_TIMEOUT_INFINITE,
+			0,
+			&expired);
+
+	igt_info("fence ret=%d expired=%u\n",
+		 r,
+			expired);
+
+	igt_assert_eq(r, 0);
+	igt_assert_eq(expired, 1);
+
+	igt_info("===== OUTPUT DUMP =====\n");
+
+	for (i = 0; i < 32; i++) {
+		igt_info("OUT[%02d]=0x%08x\n",
+			 i,
+				ptr_dst[i]);
+	}
+
+	igt_info("output[0]=0x%x (%u)\n",
+		 ptr_dst[0],
+			ptr_dst[0]);
+
+	igt_assert_eq(ptr_dst[0], 42);
+
+	ret = vm_clear_l2_trap(fd);
+
+	igt_info("CLEAR_L2_TRAP ret=%d\n", ret);
+	igt_assert_eq(ret, 0);
+
+	slth_free_buffers(&bufs);
+
+	amdgpu_bo_list_destroy(bo_list);
+
+	amdgpu_bo_unmap_and_free(
+			bo_dst,
+			va_dst,
+			mc_address_dst,
+			bo_dst_size);
+
+	amdgpu_bo_unmap_and_free(
+			bo_shader,
+			va_shader,
+			mc_address_shader,
+			bo_shader_size);
+
+	amdgpu_bo_unmap_and_free(
+			bo_cmd,
+			va_cmd,
+			mc_address_cmd,
+			bo_cmd_size);
+
+	amdgpu_cs_ctx_free(context_handle);
+
+	free_cmd_base(base_cmd);
+
+	igt_info("COMP KQ VGPR PROOF COMPLETE\n");
+}
+
+static void
+slth_prepare_returnproof_shader(amdgpu_device_handle device,
+				uint8_t *isa_bin,
+		size_t *isa_sz)
+{
+	struct amdgpu_gpu_info info = {0};
+	char mcpu[32] = {};
+	int r;
+
+	r = amdgpu_query_gpu_info(device, &info);
+	igt_assert_eq(r, 0);
+
+	r = amdgpu_family_id_to_mcpu(info.family_id,
+				     mcpu,
+			sizeof(mcpu));
+	igt_assert_eq(r, 0);
+
+	igt_info("===== RETURNPROOF SHADER SOURCE BEGIN =====\n");
+	igt_info("%s\n", SlthReturnProofIsa);
+	igt_info("===== RETURNPROOF SHADER SOURCE END =====\n");
+
+	r = amdgpu_llvm_assemble(mcpu,
+				 SlthReturnProofIsa,
+			isa_bin,
+			8192,
+			isa_sz);
+
+	igt_info("amdgpu_llvm_assemble returned %d\n", r);
+
+	if (r) {
+		igt_info("===== SHADER SOURCE BEGIN =====\n");
+		igt_info("%s\n", SlthReturnProofIsa);
+		igt_info("===== SHADER SOURCE END =====\n");
+	}
+
+	igt_assert_eq(r, 0);
+	igt_assert(*isa_sz > 0);
+
+	igt_info("SlthReturnProofIsa size=%zu\n",
+		 *isa_sz);
+
+	igt_info("RETURNPROOF SHADER ISA DUMP\n");
+
+	for (unsigned int i = 0;
+			i < (*isa_sz / sizeof(uint32_t));
+			i++) {
+		igt_info("ISA[%u] = 0x%08x\n",
+			 i,
+				((uint32_t *)isa_bin)[i]);
+	}
+}
+
+static void
+slth_comp_kq_returnproof_test(amdgpu_device_handle device,
+			      int fd)
+{
+	struct slth_bufs bufs;
+
+	amdgpu_context_handle context_handle;
+
+	amdgpu_bo_handle bo_dst;
+	amdgpu_bo_handle bo_shader;
+	amdgpu_bo_handle bo_cmd;
+
+	amdgpu_bo_handle resources[3];
+
+	volatile uint32_t *ptr_dst;
+
+	void *ptr_shader;
+	uint32_t *ptr_cmd;
+
+	uint64_t mc_address_dst;
+	uint64_t mc_address_shader;
+	uint64_t mc_address_cmd;
+
+	amdgpu_va_handle va_dst;
+	amdgpu_va_handle va_shader;
+	amdgpu_va_handle va_cmd;
+
+	amdgpu_bo_list_handle bo_list;
+
+	struct amdgpu_cs_request ibs_request = {0};
+	struct amdgpu_cs_ib_info ib_info = {0};
+	struct amdgpu_cs_fence fence_status = {0};
+
+	struct amdgpu_cmd_base *base_cmd =
+		get_cmd_base();
+
+	uint32_t expired = 0;
+	uint32_t version = 12;
+
+	uint8_t isa_bin[8192];
+	size_t isa_sz = 0;
+
+	int bo_dst_size = 16384;
+	int bo_shader_size = 4096;
+	int bo_cmd_size = 4096;
+
+	int i;
+	int r;
+	int ret;
+
+	igt_assert(base_cmd);
+
+	memset(&bufs, 0, sizeof(bufs));
+
+	igt_info("========================================\n");
+	igt_info("COMP KQ RETURNPROOF\n");
+	igt_info("SLTH RETURNPROOF\n");
+	igt_info("========================================\n");
+
+	slth_alloc_buffers(device, &bufs);
+
+	slth_prepare_tba_with_handler(device,
+				      &bufs,
+			TrapHandlerIsaProof);
+
+	ret = vm_set_l2_trap(fd,
+			     bufs.tba_mc_addr,
+			bufs.tma_mc_addr);
+
+	igt_info("SET_L2_TRAP ret=%d\n", ret);
+	igt_assert_eq(ret, 0);
+
+	slth_prepare_returnproof_shader(device,
+					isa_bin,
+			&isa_sz);
+	igt_assert(isa_sz > 0);
+
+	igt_info("SlthReturnProofIsa size=%zu\n", isa_sz);
+
+	igt_info("===== RETURNPROOF ISA BEGIN =====\n");
+
+	for (i = 0; i < isa_sz / 4; i++) {
+		igt_info("ISA[%02d] = 0x%08x\n",
+			 i,
+				((uint32_t *)isa_bin)[i]);
+	}
+
+	igt_info("===== RETURNPROOF ISA END =====\n");
+
+	r = amdgpu_cs_ctx_create(device,
+				 &context_handle);
+	igt_assert_eq(r, 0);
+
+	r = amdgpu_bo_alloc_and_map(device,
+				    bo_cmd_size,
+			4096,
+			AMDGPU_GEM_DOMAIN_GTT,
+			0,
+			&bo_cmd,
+			(void **)&ptr_cmd,
+			&mc_address_cmd,
+			&va_cmd);
+	igt_assert_eq(r, 0);
+
+	memset(ptr_cmd, 0, bo_cmd_size);
+
+	base_cmd->attach_buf(base_cmd,
+			ptr_cmd,
+			bo_cmd_size);
+
+	r = amdgpu_bo_alloc_and_map(device,
+				    bo_shader_size,
+			4096,
+			AMDGPU_GEM_DOMAIN_VRAM,
+			0,
+			&bo_shader,
+			&ptr_shader,
+			&mc_address_shader,
+			&va_shader);
+	igt_assert_eq(r, 0);
+
+	memset(ptr_shader, 0, bo_shader_size);
+
+	memcpy(ptr_shader,
+	       isa_bin,
+			isa_sz);
+
+	igt_info("shader_mc_addr=0x%016llx\n",
+		 (unsigned long long)mc_address_shader);
+
+	r = amdgpu_bo_alloc_and_map(device,
+				    bo_dst_size,
+			4096,
+			AMDGPU_GEM_DOMAIN_VRAM,
+			0,
+			&bo_dst,
+			(void **)&ptr_dst,
+			&mc_address_dst,
+			&va_dst);
+	igt_assert_eq(r, 0);
+
+	memset((void *)ptr_dst,
+	       0,
+			bo_dst_size);
+
+	igt_info("output_mc_addr=0x%016llx\n",
+		 (unsigned long long)mc_address_dst);
+
+	igt_info("output_lo=0x%08x\n",
+		 lower_32_bits(mc_address_dst));
+
+	igt_info("output_hi=0x%08x\n",
+		 upper_32_bits(mc_address_dst));
+
+	amdgpu_dispatch_init(
+			AMDGPU_HW_IP_COMPUTE,
+			base_cmd,
+			version);
+
+	amdgpu_dispatch_write_cumask(
+			base_cmd,
+			version);
+
+	igt_info("shader_mc_addr=0x%016llx\n",
+		 (unsigned long long)mc_address_shader);
+
+	igt_info("output_mc_addr=0x%016llx\n",
+		 (unsigned long long)mc_address_dst);
+
+	amdgpu_dispatch_write2hw(
+			base_cmd,
+			mc_address_shader,
+			version,
+			0);
+
+	igt_info("cdw after write2hw = %u\n",
+		 base_cmd->cdw);
+
+	for (uint32_t j = 0; j < base_cmd->cdw; j++)
+		igt_info("PRE_USERDATA_PM4[%02u] = 0x%08x\n",
+			 j,
+				ptr_cmd[j]);
+
+	igt_info("========================================\n");
+	igt_info("COMPUTE USER DATA PROGRAMMING\n");
+	igt_info("========================================\n");
+
+	igt_info("mc_address_dst      = 0x%016llx\n",
+		 (unsigned long long)mc_address_dst);
+
+	igt_info("dst low dword       = 0x%08x\n",
+		 (uint32_t)mc_address_dst);
+
+	igt_info("dst high dword      = 0x%08x\n",
+		 (uint32_t)(mc_address_dst >> 32));
+
+	igt_info("SET_SH_REG base     = 0x240\n");
+
+	base_cmd->emit(base_cmd,
+			PACKET3_COMPUTE(PKT3_SET_SH_REG, 4));
+
+	base_cmd->emit(base_cmd, 0x240);
+
+	/*
+	 * s0:s1 = source address
+	 */
+	base_cmd->emit(base_cmd,
+			(uint32_t)mc_address_dst);
+
+	base_cmd->emit(base_cmd,
+			(uint32_t)(mc_address_dst >> 32));
+
+	/*
+	 * s2:s3 = destination address
+	 */
+	base_cmd->emit(base_cmd,
+			(uint32_t)mc_address_dst);
+
+	base_cmd->emit(base_cmd,
+			(uint32_t)(mc_address_dst >> 32));
+	igt_info("USER_DATA[0] (s0 low)  = 0x%08x\n",
+		 (uint32_t)mc_address_dst);
+
+	igt_info("USER_DATA[1] (s1 high) = 0x%08x\n",
+		 (uint32_t)(mc_address_dst >> 32));
+
+	igt_info("USER_DATA[2] (s2 low)  = 0x%08x\n",
+		 (uint32_t)mc_address_dst);
+
+	igt_info("USER_DATA[3] (s3 high) = 0x%08x\n",
+		 (uint32_t)(mc_address_dst >> 32));
+
+	base_cmd->emit(base_cmd,
+			PACKET3_COMPUTE(PKT3_SET_SH_REG, 1));
+
+	base_cmd->emit(base_cmd, 0x215);
+	base_cmd->emit(base_cmd, 0);
+
+	base_cmd->emit(base_cmd,
+			PACKET3_COMPUTE(PACKET3_DISPATCH_DIRECT,
+					3));
+
+	base_cmd->emit(base_cmd, 1);
+	base_cmd->emit(base_cmd, 1);
+	base_cmd->emit(base_cmd, 1);
+	base_cmd->emit(base_cmd, 1);
+
+	base_cmd->emit_aligned(base_cmd,
+			7,
+			GFX_COMPUTE_NOP);
+
+	igt_info("Dispatch PM4 DW=%u\n",
+		 base_cmd->cdw);
+
+	igt_info("========================================\n");
+	igt_info("FINAL PM4 DUMP\n");
+	igt_info("========================================\n");
+
+	for (uint32_t j = 0; j < base_cmd->cdw; j++)
+		igt_info("PM4[%02u] = 0x%08x\n",
+			 j,
+				ptr_cmd[j]);
+
+	resources[0] = bo_dst;
+	resources[1] = bo_shader;
+	resources[2] = bo_cmd;
+
+	r = amdgpu_bo_list_create(device,
+				  3,
+			resources,
+			NULL,
+			&bo_list);
+
+	igt_assert_eq(r, 0);
+
+	ib_info.ib_mc_address = mc_address_cmd;
+	ib_info.size = base_cmd->cdw;
+
+	ibs_request.ip_type = AMDGPU_HW_IP_COMPUTE;
+	ibs_request.ring = 0;
+	ibs_request.resources = bo_list;
+	ibs_request.number_of_ibs = 1;
+	ibs_request.ibs = &ib_info;
+
+	r = amdgpu_cs_submit(context_handle,
+			     0,
+			&ibs_request,
+			1);
+
+	igt_info("cs_submit ret=%d\n", r);
+	igt_assert_eq(r, 0);
+
+	fence_status.ip_type = AMDGPU_HW_IP_COMPUTE;
+	fence_status.ip_instance = 0;
+	fence_status.ring = 0;
+	fence_status.context = context_handle;
+	fence_status.fence = ibs_request.seq_no;
+
+	r = amdgpu_cs_query_fence_status(
+			&fence_status,
+			AMDGPU_TIMEOUT_INFINITE,
+			0,
+			&expired);
+
+	igt_info("fence ret=%d expired=%u\n",
+		 r,
+			expired);
+
+	igt_assert_eq(r, 0);
+	igt_assert_eq(expired, 1);
+
+	igt_info("===== OUTPUT DUMP =====\n");
+
+	for (i = 0; i < 32; i++) {
+		igt_info("OUT[%02d]=0x%08x\n",
+			 i,
+				ptr_dst[i]);
+	}
+
+	igt_info("output[0]=0x%x (%u)\n",
+		 ptr_dst[0],
+			ptr_dst[0]);
+
+	igt_assert_eq(ptr_dst[0], 2);
+
+	ret = vm_clear_l2_trap(fd);
+
+	igt_info("CLEAR_L2_TRAP ret=%d\n", ret);
+	igt_assert_eq(ret, 0);
+
+	slth_free_buffers(&bufs);
+
+	amdgpu_bo_list_destroy(bo_list);
+
+	amdgpu_bo_unmap_and_free(
+			bo_dst,
+			va_dst,
+			mc_address_dst,
+			bo_dst_size);
+
+	amdgpu_bo_unmap_and_free(
+			bo_shader,
+			va_shader,
+			mc_address_shader,
+			bo_shader_size);
+
+	amdgpu_bo_unmap_and_free(
+			bo_cmd,
+			va_cmd,
+			mc_address_cmd,
+			bo_cmd_size);
+
+	amdgpu_cs_ctx_free(context_handle);
+
+	free_cmd_base(base_cmd);
+
+	igt_info("COMP KQ RETURNPROOF COMPLETE\n");
+}
+
+static void
+slth_gfx_umq_returnproof_test(amdgpu_device_handle device, int fd)
+{
+	uint32_t value;
+
+	value = slth_umq_run(device, fd, AMD_IP_GFX,
+			     slth_prepare_returnproof_shader);
+
+	/* The instruction after s_trap sets v2 to 2 after the trap returns. */
+	igt_assert_eq(value, 2);
+}
+
+static void
+slth_comp_umq_vgpr_proof_test(amdgpu_device_handle device, int fd)
+{
+	uint32_t value;
+
+	value = slth_umq_run(device, fd, AMD_IP_COMPUTE,
+			     slth_prepare_vgpr_proof_shader);
+
[… more lines in the raw message]

Lines of this file are not shown. View the raw message.

tests/amdgpu/meson.build +1 -0
index 11e5c00da..784879d14 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.

#7 lore raw

✓ Xe.CI.BAT: success for series starting with [i-g-t,1/6] tests/amdgpu: Add SLTH validation tests for trap handling and trap return.

In reply to Jesse Zhang
== Series Details ==

== Series Details ==

Series: series starting with [i-g-t,1/6] tests/amdgpu: Add SLTH validation tests for trap handling and trap return.
URL : https://patchwork.freedesktop.org/series/178640/
State : success

== Summary ==

CI Bug Log - changes from XEIGT_9195_BAT -> XEIGTPW_16156_BAT
====================================================

Summary
-------

**SUCCESS**

No regressions found.

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

Missing (2): bat-bmg-vm bat-ptl-vm

Changes
-------

No changes found

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

* IGT: IGT_9195 -> IGTPW_16156
* Linux: xe-6153-d5a6e2921e68b0cc42812376ca6c8095b6c941a2 -> xe-6155-ccb10a534282f16c6d068bc06e5c722680045dda

IGTPW_16156: 16156
IGT_9195: 9195
xe-6153-d5a6e2921e68b0cc42812376ca6c8095b6c941a2: d5a6e2921e68b0cc42812376ca6c8095b6c941a2 xe-6155-ccb10a534282f16c6d068bc06e5c722680045dda: ccb10a534282f16c6d068bc06e5c722680045dda

== Logs ==

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

#8 lore raw

✗ Xe.CI.FULL: failure for series starting with [i-g-t,1/6] tests/amdgpu: Add SLTH validation tests for trap handling and trap return.

In reply to Jesse Zhang
== Series Details ==

== Series Details ==

Series: series starting with [i-g-t,1/6] tests/amdgpu: Add SLTH validation tests for trap handling and trap return.
URL : https://patchwork.freedesktop.org/series/178640/
State : failure

== Summary ==

CI Bug Log - changes from XEIGT_9195_FULL -> XEIGTPW_16156_FULL
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with XEIGTPW_16156_FULL absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes
introduced in XEIGTPW_16156_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 (3 -> 3)
------------------------------

No changes in participating hosts

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

Here are the unknown changes that may have been introduced in XEIGTPW_16156_FULL:

### IGT changes ###

#### Possible regressions ####

* igt@xe_configfs@engines-allowed-invalid:
- shard-bmg: [PASS][1] -> [ABORT][2]
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9195/shard-bmg-7/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-9/igt@[email protected]

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

Here are the changes found in XEIGTPW_16156_FULL that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@core_hotunplug@hotunplug-rescan:
- shard-bmg: [PASS][3] -> [ABORT][4] ([Intel XE#9463])
[3]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9195/shard-bmg-2/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-8/igt@[email protected]

* igt@kms_atomic_transition@plane-all-modeset-transition:
- shard-ptl: NOTRUN -> [SKIP][5] ([Intel XE#5947])
[5]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-8/igt@[email protected]

* igt@kms_big_fb@linear-16bpp-rotate-270:
- shard-ptl: NOTRUN -> [SKIP][6] ([Intel XE#5901]) +2 other tests skip
[6]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-2/igt@[email protected]

* igt@kms_big_fb@x-tiled-16bpp-rotate-270:
- shard-lnl: NOTRUN -> [SKIP][7] ([Intel XE#1407]) +1 other test skip
[7]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-lnl-3/igt@[email protected]

* igt@kms_big_fb@x-tiled-64bpp-rotate-270:
- shard-bmg: NOTRUN -> [SKIP][8] ([Intel XE#2327]) +1 other test skip
[8]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-5/igt@[email protected]

* igt@kms_big_fb@x-tiled-addfb:
- shard-ptl: NOTRUN -> [SKIP][9] ([Intel XE#5850])
[9]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-6/igt@[email protected]

* igt@kms_big_fb@y-tiled-addfb-size-offset-overflow:
- shard-bmg: NOTRUN -> [SKIP][10] ([Intel XE#607] / [Intel XE#7361])
[10]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-8/igt@[email protected]
- shard-ptl: NOTRUN -> [SKIP][11] ([Intel XE#5851])
[11]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-2/igt@[email protected]

* igt@kms_big_fb@yf-tiled-32bpp-rotate-0:
- shard-bmg: NOTRUN -> [SKIP][12] ([Intel XE#1124]) +4 other tests skip
[12]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-2/igt@[email protected]
- shard-ptl: NOTRUN -> [SKIP][13] ([Intel XE#5808]) +5 other tests skip
[13]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-7/igt@[email protected]

* igt@kms_big_fb@yf-tiled-addfb:
- shard-bmg: NOTRUN -> [SKIP][14] ([Intel XE#2328] / [Intel XE#7367])
[14]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-2/igt@[email protected]

* igt@kms_bw@connected-linear-tiling-4-displays-target-1920x1080p:
- shard-bmg: NOTRUN -> [SKIP][15] ([Intel XE#7679])
[15]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-1/igt@[email protected]
- shard-ptl: NOTRUN -> [SKIP][16] ([Intel XE#7679])
[16]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-3/igt@[email protected]

* igt@kms_bw@linear-tiling-1-displays-target-1920x1080p:
- shard-bmg: NOTRUN -> [SKIP][17] ([Intel XE#367]) +2 other tests skip
[17]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-6/igt@[email protected]

* igt@kms_bw@linear-tiling-1-displays-target-3840x2160p:
- shard-bmg: [PASS][18] -> [SKIP][19] ([Intel XE#367]) +1 other test skip
[18]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9195/shard-bmg-7/igt@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-9/igt@[email protected]

* igt@kms_bw@linear-tiling-4-displays-target-2160x1440p:
- shard-ptl: NOTRUN -> [SKIP][20] ([Intel XE#367]) +1 other test skip
[20]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-8/igt@[email protected]

* igt@kms_ccs@bad-rotation-90-4-tiled-mtl-rc-ccs-cc:
- shard-ptl: NOTRUN -> [SKIP][21] ([Intel XE#5822]) +6 other tests skip
[21]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-4/igt@[email protected]

* igt@kms_ccs@bad-rotation-90-y-tiled-gen12-rc-ccs-cc:
- shard-lnl: NOTRUN -> [SKIP][22] ([Intel XE#2887])
[22]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-lnl-3/igt@[email protected]

* igt@kms_ccs@crc-primary-suspend-4-tiled-dg2-mc-ccs:
- shard-bmg: NOTRUN -> [SKIP][23] ([Intel XE#3432]) +1 other test skip
[23]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-2/igt@[email protected]

* igt@kms_ccs@crc-sprite-planes-basic-4-tiled-dg2-rc-ccs-cc:
- shard-bmg: NOTRUN -> [SKIP][24] ([Intel XE#2887]) +7 other tests skip
[24]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-6/igt@[email protected]

* igt@kms_chamelium_color@ctm-0-50:
- shard-bmg: NOTRUN -> [SKIP][25] ([Intel XE#2325] / [Intel XE#7358])
[25]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-5/igt@[email protected]
- shard-ptl: NOTRUN -> [SKIP][26] ([Intel XE#5824])
[26]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-3/igt@[email protected]

* igt@kms_chamelium_color_pipeline@plane-fixed-matrix-yuv-rgb-bt2020:
- shard-ptl: NOTRUN -> [SKIP][27] ([Intel XE#8391]) +1 other test skip
[27]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-1/igt@kms_chamelium_color_pipeline@plane-fixed-matrix-yuv-rgb-bt2020.html

* igt@kms_chamelium_color_pipeline@plane-lut1d-ctm3x4-lut1d:
- shard-bmg: NOTRUN -> [SKIP][28] ([Intel XE#7358])
[28]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-5/igt@[email protected]

* igt@kms_chamelium_edid@hdmi-edid-change-during-hibernate:
- shard-bmg: NOTRUN -> [SKIP][29] ([Intel XE#2252]) +3 other tests skip
[29]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-5/igt@[email protected]

* igt@kms_chamelium_hpd@common-hpd-after-suspend:
- shard-lnl: NOTRUN -> [SKIP][30] ([Intel XE#373])
[30]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-lnl-4/igt@[email protected]

* igt@kms_chamelium_hpd@hdmi-hpd-enable-disable-mode:
- shard-ptl: NOTRUN -> [SKIP][31] ([Intel XE#2252])
[31]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-3/igt@[email protected]

* igt@kms_color_pipeline@plane-lut1d-pre-ctm3x4@pipe-d-plane-4:
- shard-bmg: NOTRUN -> [SKIP][32] ([Intel XE#6969]) +7 other tests skip
[32]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-9/igt@kms_color_pipeline@[email protected]
- shard-ptl: NOTRUN -> [SKIP][33] ([Intel XE#6969]) +7 other tests skip
[33]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-8/igt@kms_color_pipeline@[email protected]

* igt@kms_content_protection@atomic-dpms-hdcp14:
- shard-ptl: NOTRUN -> [SKIP][34] ([Intel XE#7642])
[34]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-4/igt@[email protected]

* igt@kms_content_protection@dp-mst-type-0-suspend-resume:
- shard-ptl: NOTRUN -> [SKIP][35] ([Intel XE#6974])
[35]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-7/igt@[email protected]
- shard-bmg: NOTRUN -> [SKIP][36] ([Intel XE#6974])
[36]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-6/igt@[email protected]

* igt@kms_content_protection@legacy@pipe-a-dp-1:
- shard-bmg: NOTRUN -> [FAIL][37] ([Intel XE#3304])
[37]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-7/igt@kms_content_protection@[email protected]

* igt@kms_content_protection@suspend-resume:
- shard-bmg: NOTRUN -> [FAIL][38] ([Intel XE#1178] / [Intel XE#3304] / [Intel XE#7374]) +3 other tests fail
[38]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-2/igt@[email protected]

* igt@kms_content_protection@uevent-hdcp14@pipe-a-dp-1:
- shard-bmg: NOTRUN -> [FAIL][39] ([Intel XE#6707] / [Intel XE#7439])
[39]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-7/igt@kms_content_protection@[email protected]

* igt@kms_cursor_crc@cursor-offscreen-32x32:
- shard-lnl: NOTRUN -> [SKIP][40] ([Intel XE#1424])
[40]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-lnl-6/igt@[email protected]

* igt@kms_cursor_crc@cursor-onscreen-128x42:
- shard-ptl: NOTRUN -> [SKIP][41] ([Intel XE#5900])
[41]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-8/igt@[email protected]

* igt@kms_cursor_crc@cursor-random-512x170:
- shard-bmg: NOTRUN -> [SKIP][42] ([Intel XE#2321] / [Intel XE#7355]) +1 other test skip
[42]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-5/igt@[email protected]

* igt@kms_cursor_crc@cursor-sliding-256x85:
- shard-bmg: NOTRUN -> [SKIP][43] ([Intel XE#2320])
[43]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-6/igt@[email protected]

* igt@kms_cursor_legacy@cursorb-vs-flipb-atomic-transitions-varying-size:
- shard-lnl: NOTRUN -> [SKIP][44] ([Intel XE#309] / [Intel XE#7343])
[44]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-lnl-7/igt@kms_cursor_legacy@cursorb-vs-flipb-atomic-transitions-varying-size.html

* igt@kms_dp_link_training@non-uhbr-sst-direct-train:
- shard-ptl: NOTRUN -> [SKIP][45] ([Intel XE#9534])
[45]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-4/igt@[email protected]

* igt@kms_dp_link_training@non-uhbr-sst-tbtalt-train:
- shard-ptl: NOTRUN -> [SKIP][46] ([Intel XE#9539])
[46]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-5/igt@[email protected]
- shard-bmg: NOTRUN -> [SKIP][47] ([Intel XE#9539])
[47]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-7/igt@[email protected]

* igt@kms_dp_link_training@uhbr-mst-tbtalt-train:
- shard-bmg: NOTRUN -> [SKIP][48] ([Intel XE#9531])
[48]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-8/igt@[email protected]

* igt@kms_dsc@dsc-basic-ultrajoiner:
- shard-lnl: NOTRUN -> [SKIP][49] ([Intel XE#8265])
[49]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-lnl-1/igt@[email protected]

* igt@kms_dsc@dsc-with-bpc-ultrajoiner:
- shard-ptl: NOTRUN -> [SKIP][50] ([Intel XE#5907])
[50]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-6/igt@[email protected]

* igt@kms_fbc_dirty_rect@fbc-dirty-rectangle-dirtyfb-tests:
- shard-bmg: NOTRUN -> [SKIP][51] ([Intel XE#4422] / [Intel XE#7442])
[51]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-6/igt@[email protected]

* igt@kms_flip@2x-flip-vs-absolute-wf_vblank:
- shard-ptl: NOTRUN -> [SKIP][52] ([Intel XE#2316]) +4 other tests skip
[52]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-3/igt@kms_flip@2x-flip-vs-absolute-wf_vblank.html

* igt@kms_flip@flip-vs-expired-vblank@a-edp1:
- shard-lnl: [PASS][53] -> [FAIL][54] ([Intel XE#301]) +1 other test fail
[53]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9195/shard-lnl-3/igt@kms_flip@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-lnl-4/igt@kms_flip@[email protected]

* igt@kms_flip_scaled_crc@flip-32bpp-yftileccs-to-64bpp-yftile-downscaling:
- shard-bmg: NOTRUN -> [SKIP][55] ([Intel XE#7178] / [Intel XE#7351])
[55]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-8/igt@kms_flip_scaled_crc@flip-32bpp-yftileccs-to-64bpp-yftile-downscaling.html

* igt@kms_flip_scaled_crc@flip-32bpp-yuv-linear-to-32bpp-yuv-linear-reflect-x:
- shard-bmg: NOTRUN -> [SKIP][56] ([Intel XE#7179]) +1 other test skip
[56]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-3/igt@kms_flip_scaled_crc@flip-32bpp-yuv-linear-to-32bpp-yuv-linear-reflect-x.html
- shard-ptl: NOTRUN -> [SKIP][57] ([Intel XE#7179]) +1 other test skip
[57]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-1/igt@kms_flip_scaled_crc@flip-32bpp-yuv-linear-to-32bpp-yuv-linear-reflect-x.html

* igt@kms_flip_scaled_crc@flip-64bpp-xtile-to-16bpp-xtile-upscaling:
- shard-ptl: NOTRUN -> [SKIP][58] ([Intel XE#7178])
[58]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-2/igt@kms_flip_scaled_crc@flip-64bpp-xtile-to-16bpp-xtile-upscaling.html

* igt@kms_frontbuffer_tracking@drrs-1p-primscrn-shrfb-msflip-blt:
- shard-ptl: NOTRUN -> [SKIP][59] ([Intel XE#5800] / [Intel XE#6312]) +7 other tests skip
[59]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-6/igt@[email protected]

* igt@kms_frontbuffer_tracking@drrs-2p-scndscrn-pri-shrfb-draw-render:
- shard-ptl: NOTRUN -> [SKIP][60] ([Intel XE#5812]) +39 other tests skip
[60]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-4/igt@kms_frontbuffer_tracking@drrs-2p-scndscrn-pri-shrfb-draw-render.html

* igt@kms_frontbuffer_tracking@drrs-argb161616f-draw-blt:
- shard-bmg: NOTRUN -> [SKIP][61] ([Intel XE#7061] / [Intel XE#7356]) +2 other tests skip
[61]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-7/igt@[email protected]

* igt@kms_frontbuffer_tracking@drrshdr-1p-offscreen-pri-shrfb-draw-blt:
- shard-ptl: NOTRUN -> [SKIP][62] ([Intel XE#6312]) +4 other tests skip
[62]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-6/igt@kms_frontbuffer_tracking@drrshdr-1p-offscreen-pri-shrfb-draw-blt.html

* igt@kms_frontbuffer_tracking@drrshdr-slowdraw:
- shard-lnl: NOTRUN -> [SKIP][63] ([Intel XE#6312])
[63]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-lnl-7/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbc-shrfb-scaledprimary:
- shard-bmg: NOTRUN -> [SKIP][64] ([Intel XE#4141]) +8 other tests skip
[64]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-7/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbcdrrs-abgr161616f-draw-blt:
- shard-ptl: NOTRUN -> [SKIP][65] ([Intel XE#7061] / [Intel XE#7356]) +1 other test skip
[65]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-8/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbcdrrs-rgb101010-draw-mmap-wc:
- shard-lnl: NOTRUN -> [SKIP][66] ([Intel XE#6312] / [Intel XE#651])
[66]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-lnl-7/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbcdrrshdr-2p-primscrn-pri-shrfb-draw-mmap-wc:
- shard-bmg: NOTRUN -> [SKIP][67] ([Intel XE#2311]) +42 other tests skip
[67]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-10/igt@kms_frontbuffer_tracking@fbcdrrshdr-2p-primscrn-pri-shrfb-draw-mmap-wc.html

* igt@kms_frontbuffer_tracking@fbcdrrshdr-2p-primscrn-shrfb-pgflip-blt:
- shard-lnl: NOTRUN -> [SKIP][68] ([Intel XE#7905]) +7 other tests skip
[68]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-lnl-1/igt@kms_frontbuffer_tracking@fbcdrrshdr-2p-primscrn-shrfb-pgflip-blt.html

* igt@kms_frontbuffer_tracking@fbchdr-argb161616f-draw-blt:
- shard-bmg: NOTRUN -> [SKIP][69] ([Intel XE#7061]) +2 other tests skip
[69]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-6/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbchdr-tiling-y:
- shard-bmg: NOTRUN -> [SKIP][70] ([Intel XE#7399])
[70]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-5/igt@[email protected]
- shard-ptl: NOTRUN -> [SKIP][71] ([Intel XE#7399])
[71]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-6/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-spr-indfb-draw-mmap-wc:
- shard-lnl: NOTRUN -> [SKIP][72] ([Intel XE#656] / [Intel XE#7905]) +2 other tests skip
[72]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-lnl-7/igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-spr-indfb-draw-mmap-wc.html

* igt@kms_frontbuffer_tracking@fbcpsrhdr-1p-primscrn-pri-indfb-draw-blt:
- shard-ptl: NOTRUN -> [SKIP][73] ([Intel XE#7865]) +11 other tests skip
[73]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-4/igt@kms_frontbuffer_tracking@fbcpsrhdr-1p-primscrn-pri-indfb-draw-blt.html

* igt@kms_frontbuffer_tracking@hdr-shrfb-scaledprimary:
- shard-lnl: NOTRUN -> [SKIP][74] ([Intel XE#7865])
[74]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-lnl-8/igt@[email protected]

* igt@kms_frontbuffer_tracking@psrhdr-1p-primscrn-pri-shrfb-draw-render:
- shard-bmg: NOTRUN -> [SKIP][75] ([Intel XE#2313]) +39 other tests skip
[75]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-9/igt@kms_frontbuffer_tracking@psrhdr-1p-primscrn-pri-shrfb-draw-render.html

* igt@kms_frontbuffer_tracking@psrhdr-argb161616f-draw-blt:
- shard-ptl: NOTRUN -> [SKIP][76] ([Intel XE#7061]) +3 other tests skip
[76]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-2/igt@[email protected]

* igt@kms_hdmi_audio_bw@suspend-disk-audio-recovery:
- shard-bmg: NOTRUN -> [FAIL][77] ([Intel XE#9346])
[77]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-3/igt@[email protected]

* igt@kms_hdr@brightness-with-hdr:
- shard-ptl: NOTRUN -> [SKIP][78] ([Intel XE#5917] / [Intel XE#6174])
[78]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-6/igt@[email protected]
- shard-bmg: NOTRUN -> [SKIP][79] ([Intel XE#3374] / [Intel XE#3544])
[79]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-3/igt@[email protected]

* igt@kms_hdr@static-swap:
- shard-lnl: NOTRUN -> [SKIP][80] ([Intel XE#1503])
[80]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-lnl-5/igt@[email protected]

* igt@kms_joiner@invalid-modeset-big-joiner:
- shard-bmg: NOTRUN -> [SKIP][81] ([Intel XE#6901])
[81]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-10/igt@[email protected]

* igt@kms_joiner@switch-modeset-ultra-joiner-big-joiner:
- shard-bmg: NOTRUN -> [SKIP][82] ([Intel XE#4090] / [Intel XE#7443])
[82]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-9/igt@[email protected]
- shard-ptl: NOTRUN -> [SKIP][83] ([Intel XE#7173])
[83]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-2/igt@[email protected]

* igt@kms_pipe_stress@stress-xrgb8888-yftiled:
- shard-bmg: NOTRUN -> [SKIP][84] ([Intel XE#6912] / [Intel XE#7375])
[84]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-4/igt@[email protected]

* igt@kms_pipe_stress@stress-xrgb8888-ytiled:
- shard-bmg: NOTRUN -> [SKIP][85] ([Intel XE#4329] / [Intel XE#6912] / [Intel XE#7375])
[85]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-4/igt@[email protected]
- shard-ptl: NOTRUN -> [SKIP][86] ([Intel XE#6912])
[86]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-1/igt@[email protected]

* igt@kms_plane@pixel-format-4-tiled-modifier@pipe-a-plane-5:
- shard-bmg: NOTRUN -> [SKIP][87] ([Intel XE#8303]) +1 other test skip
[87]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-2/igt@kms_plane@[email protected]
- shard-ptl: NOTRUN -> [SKIP][88] ([Intel XE#8303]) +1 other test skip
[88]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-1/igt@kms_plane@[email protected]

* igt@kms_plane@pixel-format-x-tiled-modifier:
- shard-ptl: NOTRUN -> [SKIP][89] ([Intel XE#7283]) +2 other tests skip
[89]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-4/igt@[email protected]

* igt@kms_plane@pixel-format-y-tiled-ccs-modifier-source-clamping:
- shard-bmg: NOTRUN -> [SKIP][90] ([Intel XE#7283]) +1 other test skip
[90]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-10/igt@[email protected]

* igt@kms_plane_multiple@2x-tiling-none:
- shard-ptl: NOTRUN -> [SKIP][91] ([Intel XE#4596] / [Intel XE#5854])
[91]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-8/igt@[email protected]

* igt@kms_plane_multiple@2x-tiling-yf:
- shard-bmg: NOTRUN -> [SKIP][92] ([Intel XE#5021] / [Intel XE#7377])
[92]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-7/igt@[email protected]

* igt@kms_plane_multiple@tiling-x:
- shard-ptl: NOTRUN -> [SKIP][93] ([Intel XE#5020])
[93]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-4/igt@[email protected]

* igt@kms_plane_scaling@plane-downscale-max-crc-4-tiled@pipe-c-dp-2-p010:
- shard-bmg: NOTRUN -> [FAIL][94] ([Intel XE#9780]) +4 other tests fail
[94]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-5/igt@kms_plane_scaling@[email protected]

* igt@kms_plane_scaling@plane-upscale-max-crc-4-tiled:
- shard-bmg: [PASS][95] -> [FAIL][96] ([Intel XE#9780]) +5 other tests fail
[95]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9195/shard-bmg-9/igt@[email protected]
[96]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-7/igt@[email protected]

* igt@kms_plane_scaling@plane-upscale-max-crc-rotation-180-x-tiled:
- shard-ptl: NOTRUN -> [SKIP][97] ([Intel XE#9779]) +1 other test skip
[97]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-7/igt@kms_plane_scaling@plane-upscale-max-crc-rotation-180-x-tiled.html

* igt@kms_pm_dc@dc3co-vpb-framegap:
- shard-bmg: NOTRUN -> [SKIP][98] ([Intel XE#8395] / [Intel XE#8396]) +1 other test skip
[98]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-6/igt@[email protected]

* igt@kms_pm_dc@dc3co-vpb-framegap@pr-xrgb8888:
- shard-ptl: NOTRUN -> [SKIP][99] ([Intel XE#8395] / [Intel XE#8396]) +1 other test skip
[99]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-4/igt@kms_pm_dc@[email protected]

* igt@kms_pm_dc@dc3co-vpb-framegap@psr2-xrgb8888:
- shard-ptl: NOTRUN -> [SKIP][100] ([Intel XE#8396]) +1 other test skip
[100]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-4/igt@kms_pm_dc@[email protected]
- shard-bmg: NOTRUN -> [SKIP][101] ([Intel XE#8396]) +1 other test skip
[101]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-6/igt@kms_pm_dc@[email protected]

* igt@kms_pm_dc@dc6-dpms:
- shard-lnl: [PASS][102] -> [FAIL][103] ([Intel XE#8399])
[102]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9195/shard-lnl-5/igt@[email protected]
[103]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-lnl-4/igt@[email protected]

* igt@kms_pm_dc@dc6-psr:
- shard-bmg: NOTRUN -> [SKIP][104] ([Intel XE#7794])
[104]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-7/igt@[email protected]

* igt@kms_pm_rpm@i2c:
- shard-bmg: [PASS][105] -> [FAIL][106] ([Intel XE#9472])
[105]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9195/shard-bmg-3/igt@[email protected]
[106]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-1/igt@[email protected]

* igt@kms_pm_rpm@package-g7:
- shard-ptl: NOTRUN -> [SKIP][107] ([Intel XE#6813])
[107]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-8/igt@[email protected]
- shard-bmg: NOTRUN -> [SKIP][108] ([Intel XE#6814] / [Intel XE#7428])
[108]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-9/igt@[email protected]

* igt@kms_psr2_sf@psr2-overlay-plane-move-continuous-exceed-fully-sf:
- shard-bmg: NOTRUN -> [SKIP][109] ([Intel XE#1489]) +1 other test skip
[109]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-10/igt@kms_psr2_sf@psr2-overlay-plane-move-continuous-exceed-fully-sf.html

* igt@kms_psr2_su@page_flip-nv12:
- shard-ptl: NOTRUN -> [SKIP][110] ([Intel XE#7413])
[110]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-4/igt@kms_psr2_su@page_flip-nv12.html
- shard-bmg: NOTRUN -> [SKIP][111] ([Intel XE#2387] / [Intel XE#7429])
[111]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-10/igt@kms_psr2_su@page_flip-nv12.html

* igt@kms_psr@fbc-pr-sprite-plane-onoff:
- shard-ptl: NOTRUN -> [SKIP][112] ([Intel XE#1406]) +2 other tests skip
[112]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-3/igt@[email protected]

* igt@kms_psr@fbc-psr2-primary-page-flip:
- shard-lnl: NOTRUN -> [SKIP][113] ([Intel XE#1406] / [Intel XE#7345])
[113]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-lnl-1/igt@[email protected]

* igt@kms_psr@fbc-psr2-primary-page-flip@edp-1:
- shard-lnl: NOTRUN -> [SKIP][114] ([Intel XE#1406] / [Intel XE#4609] / [Intel XE#7345])
[114]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-lnl-1/igt@kms_psr@[email protected]

* igt@kms_psr@fbc-psr2-primary-render@edp-1:
- shard-ptl: NOTRUN -> [SKIP][115] ([Intel XE#1406] / [Intel XE#5835]) +1 other test skip
[115]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-4/igt@kms_psr@[email protected]

* igt@kms_psr@pr-suspend:
- shard-bmg: NOTRUN -> [SKIP][116] ([Intel XE#2234] / [Intel XE#2850]) +7 other tests skip
[116]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-8/igt@[email protected]

* igt@kms_rotation_crc@primary-yf-tiled-reflect-x-0:
- shard-bmg: NOTRUN -> [SKIP][117] ([Intel XE#2330] / [Intel XE#5813])
[117]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-6/igt@[email protected]

* igt@kms_rotation_crc@sprite-rotation-90-pos-100-0:
- shard-bmg: NOTRUN -> [SKIP][118] ([Intel XE#3904] / [Intel XE#7342]) +1 other test skip
[118]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-8/igt@[email protected]
- shard-ptl: NOTRUN -> [SKIP][119] ([Intel XE#5821]) +1 other test skip
[119]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-2/igt@[email protected]

* igt@kms_setmode@basic-clone-single-crtc:
- shard-lnl: NOTRUN -> [SKIP][120] ([Intel XE#1435] / [Intel XE#9142])
[120]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-lnl-1/igt@[email protected]

* igt@kms_sharpness_filter@filter-suspend:
- shard-bmg: NOTRUN -> [SKIP][121] ([Intel XE#6503])
[121]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-9/igt@[email protected]

* igt@kms_vrr@negative-basic:
- shard-ptl: NOTRUN -> [SKIP][122] ([Intel XE#5949] / [Intel XE#9277])
[122]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-8/igt@[email protected]

* igt@xe_compute_preempt@compute-preempt-many@engine-drm_xe_engine_class_compute:
- shard-ptl: NOTRUN -> [ABORT][123] ([Intel XE#9481]) +1 other test abort
[123]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-3/igt@xe_compute_preempt@compute-preempt-many@engine-drm_xe_engine_class_compute.html

* igt@xe_cw_post_sync@walker-post-sync:
- shard-bmg: NOTRUN -> [SKIP][124] ([Intel XE#8608])
[124]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-7/igt@[email protected]

* igt@xe_err_injection@inject_core_compute_uncorr_error:
- shard-ptl: NOTRUN -> [SKIP][125] ([Intel XE#9769])
[125]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-2/igt@xe_err_injection@inject_core_compute_uncorr_error.html
- shard-bmg: NOTRUN -> [SKIP][126] ([Intel XE#9769])
[126]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-8/igt@xe_err_injection@inject_core_compute_uncorr_error.html

* igt@xe_evict@evict-beng-threads-small:
- shard-ptl: NOTRUN -> [SKIP][127] ([Intel XE#5764]) +6 other tests skip
[127]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-1/igt@[email protected]

* igt@xe_evict@evict-threads-small-multi-queue:
- shard-bmg: NOTRUN -> [SKIP][128] ([Intel XE#8370]) +1 other test skip
[128]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-6/igt@[email protected]

* igt@xe_evict_ccs@evict-overcommit-standalone-instantfree-reopen:
- shard-ptl: NOTRUN -> [SKIP][129] ([Intel XE#6144])
[129]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-7/igt@[email protected]

* igt@xe_exec_balancer@once-cm-parallel-rebind:
- shard-ptl: NOTRUN -> [SKIP][130] ([Intel XE#7482]) +8 other tests skip
[130]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-8/igt@[email protected]

* igt@xe_exec_basic@multigpu-no-exec-basic-defer-mmap:
- shard-lnl: NOTRUN -> [SKIP][131] ([Intel XE#1392])
[131]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-lnl-2/igt@[email protected]

* igt@xe_exec_basic@multigpu-once-bindexecqueue-userptr-invalidate-race:
- shard-ptl: NOTRUN -> [SKIP][132] ([Intel XE#5575] / [Intel XE#7484]) +4 other tests skip
[132]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-1/igt@xe_exec_basic@multigpu-once-bindexecqueue-userptr-invalidate-race.html

* igt@xe_exec_basic@multigpu-once-null-rebind:
- shard-bmg: NOTRUN -> [SKIP][133] ([Intel XE#2322] / [Intel XE#7372]) +3 other tests skip
[133]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-10/igt@[email protected]

* igt@xe_exec_fault_mode@atomic-many:
- shard-bmg: [PASS][134] -> [FAIL][135] ([Intel XE#8578])
[134]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9195/shard-bmg-4/igt@[email protected]
[135]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-6/igt@[email protected]

* igt@xe_exec_fault_mode@many-execqueues-multi-queue-rebind-imm:
- shard-ptl: NOTRUN -> [SKIP][136] ([Intel XE#8374]) +3 other tests skip
[136]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-8/igt@[email protected]

* igt@xe_exec_fault_mode@once-multi-queue-rebind-prefetch:
- shard-lnl: NOTRUN -> [SKIP][137] ([Intel XE#8374]) +1 other test skip
[137]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-lnl-5/igt@[email protected]

* igt@xe_exec_fault_mode@twice-multi-queue-imm:
- shard-bmg: NOTRUN -> [SKIP][138] ([Intel XE#8374]) +5 other tests skip
[138]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-5/igt@[email protected]

* igt@xe_exec_multi_queue@max-queues-preempt-mode-fault-userptr-invalidate:
- shard-lnl: NOTRUN -> [SKIP][139] ([Intel XE#8364]) +3 other tests skip
[139]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-lnl-8/igt@xe_exec_multi_queue@max-queues-preempt-mode-fault-userptr-invalidate.html

* igt@xe_exec_multi_queue@one-queue-basic:
- shard-ptl: NOTRUN -> [SKIP][140] ([Intel XE#8364]) +10 other tests skip
[140]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-7/igt@[email protected]

* igt@xe_exec_multi_queue@one-queue-preempt-mode-close-fd-smem:
- shard-bmg: NOTRUN -> [SKIP][141] ([Intel XE#8364]) +17 other tests skip
[141]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-7/igt@[email protected]

* igt@xe_exec_reset@multi-queue-long-spin-many-queue-switch:
- shard-ptl: NOTRUN -> [SKIP][142] ([Intel XE#8369])
[142]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-2/igt@[email protected]
- shard-bmg: NOTRUN -> [SKIP][143] ([Intel XE#8369])
[143]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-8/igt@[email protected]

* igt@xe_exec_threads@threads-multi-queue-cm-fd-userptr-invalidate-race:
- shard-ptl: NOTRUN -> [SKIP][144] ([Intel XE#8378]) +4 other tests skip
[144]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-3/igt@xe_exec_threads@threads-multi-queue-cm-fd-userptr-invalidate-race.html

* igt@xe_exec_threads@threads-multi-queue-fd-userptr-invalidate:
- shard-lnl: NOTRUN -> [SKIP][145] ([Intel XE#8378])
[145]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-lnl-2/igt@[email protected]

* igt@xe_exec_threads@threads-multi-queue-mixed-userptr-invalidate-race:
- shard-bmg: NOTRUN -> [SKIP][146] ([Intel XE#8378]) +6 other tests skip
[146]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-6/igt@xe_exec_threads@threads-multi-queue-mixed-userptr-invalidate-race.html

* igt@xe_exec_threads@threads-wq-stress-rebind-bindexecqueue:
- shard-lnl: [PASS][147] -> [INCOMPLETE][148] ([Intel XE#8479])
[147]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9195/shard-lnl-5/igt@[email protected]
[148]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-lnl-4/igt@[email protected]

* igt@xe_gt_freq@freq_suspend:
- shard-ptl: NOTRUN -> [SKIP][149] ([Intel XE#7070])
[149]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-6/igt@xe_gt_freq@freq_suspend.html

* igt@xe_live_ktest@xe_bo@xe_ccs_migrate_kunit:
- shard-bmg: NOTRUN -> [SKIP][150] ([Intel XE#2229])
[150]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-6/igt@xe_live_ktest@xe_bo@xe_ccs_migrate_kunit.html

* igt@xe_madvise@atomic-device:
- shard-ptl: NOTRUN -> [SKIP][151] ([Intel XE#7980])
[151]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-7/igt@[email protected]

* igt@xe_mempage_offline@inject-duplicate-page:
- shard-ptl: NOTRUN -> [SKIP][152] ([Intel XE#9203])
[152]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-7/igt@[email protected]

* igt@xe_multigpu_svm@mgpu-concurrent-access-basic:
- shard-bmg: NOTRUN -> [SKIP][153] ([Intel XE#6964]) +2 other tests skip
[153]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-2/igt@[email protected]

* igt@xe_multigpu_svm@mgpu-xgpu-access-prefetch:
- shard-ptl: NOTRUN -> [SKIP][154] ([Intel XE#6964]) +1 other test skip
[154]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-1/igt@[email protected]

* igt@xe_page_reclaim@invalid-1g:
- shard-bmg: NOTRUN -> [SKIP][155] ([Intel XE#7793])
[155]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-9/igt@[email protected]

* igt@xe_page_reclaim@prl-max-entries:
- shard-ptl: NOTRUN -> [SKIP][156] ([Intel XE#7793])
[156]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-3/igt@[email protected]

* igt@xe_pm@d3cold-mmap-vram:
- shard-ptl: NOTRUN -> [SKIP][157] ([Intel XE#5741]) +3 other tests skip
[157]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-7/igt@[email protected]

* igt@xe_pm@s2idle-d3cold-basic-exec:
- shard-bmg: NOTRUN -> [SKIP][158] ([Intel XE#2284] / [Intel XE#7370]) +3 other tests skip
[158]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-10/igt@[email protected]

* igt@xe_pm_residency@gt-c6-freeze@gt0:
- shard-bmg: [PASS][159] -> [FAIL][160] ([Intel XE#9254]) +1 other test fail
[159]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9195/shard-bmg-6/igt@xe_pm_residency@[email protected]
[160]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-9/igt@xe_pm_residency@[email protected]

* igt@xe_prefetch_fault@l2-prefetch-fault:
- shard-ptl: NOTRUN -> [SKIP][161] ([Intel XE#8815])
[161]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-3/igt@[email protected]

* igt@xe_pxp@pxp-stale-bo-bind-post-termination-irq:
- shard-bmg: NOTRUN -> [SKIP][162] ([Intel XE#4733] / [Intel XE#7417]) +2 other tests skip
[162]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-1/igt@[email protected]

* igt@xe_query@multigpu-query-invalid-cs-cycles:
- shard-bmg: NOTRUN -> [SKIP][163] ([Intel XE#944])
[163]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-7/igt@[email protected]

* igt@xe_query@multigpu-query-invalid-uc-fw-version-mbz:
- shard-ptl: NOTRUN -> [SKIP][164] ([Intel XE#6019]) +1 other test skip
[164]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-5/igt@[email protected]

#### Possible fixes ####

* igt@kms_async_flips@alternate-sync-async-flip:
- shard-bmg: [FAIL][165] ([Intel XE#3718] / [Intel XE#6078]) -> [PASS][166]
[165]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9195/shard-bmg-8/igt@[email protected]
[166]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-2/igt@[email protected]

* igt@kms_async_flips@alternate-sync-async-flip@pipe-b-dp-2:
- shard-bmg: [FAIL][167] ([Intel XE#6078]) -> [PASS][168]
[167]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9195/shard-bmg-8/igt@kms_async_flips@[email protected]
[168]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-2/igt@kms_async_flips@[email protected]

* igt@kms_flip@plain-flip-fb-recreate-interruptible@d-dp2:
- shard-bmg: [FAIL][169] ([Intel XE#3098]) -> [PASS][170] +1 other test pass
[169]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9195/shard-bmg-5/igt@kms_flip@[email protected]
[170]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-6/igt@kms_flip@[email protected]

* igt@kms_frontbuffer_tracking@pipe-fbc-rte@pipe-b-edp-1:
- shard-ptl: [INCOMPLETE][171] -> [PASS][172] +1 other test pass
[171]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9195/shard-ptl-8/igt@kms_frontbuffer_tracking@[email protected]
[172]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-6/igt@kms_frontbuffer_tracking@[email protected]

* igt@kms_plane_scaling@plane-downscale-max-crc-rotation-180-linear:
- shard-bmg: [FAIL][173] ([Intel XE#9780]) -> [PASS][174] +4 other tests pass
[173]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9195/shard-bmg-4/igt@kms_plane_scaling@plane-downscale-max-crc-rotation-180-linear.html
[174]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-2/igt@kms_plane_scaling@plane-downscale-max-crc-rotation-180-linear.html

* igt@kms_vrr@flip-suspend@pipe-a-edp-1:
- shard-ptl: [FAIL][175] ([Intel XE#4227] / [Intel XE#7397]) -> [PASS][176] +1 other test pass
[175]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9195/shard-ptl-3/igt@kms_vrr@[email protected]
[176]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-ptl-3/igt@kms_vrr@[email protected]

* igt@xe_pm@s4-mocs:
- shard-lnl: [ABORT][177] ([Intel XE#9362]) -> [PASS][178]
[177]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9195/shard-lnl-2/igt@[email protected]
[178]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-lnl-1/igt@[email protected]

* igt@xe_sriov_flr@flr-twice:
- shard-bmg: [FAIL][179] ([Intel XE#6569]) -> [PASS][180] +1 other test pass
[179]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9195/shard-bmg-8/igt@[email protected]
[180]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-5/igt@[email protected]

#### Warnings ####

* igt@kms_tiled_display@basic-test-pattern-with-chamelium:
- shard-bmg: [SKIP][181] ([Intel XE#2426] / [Intel XE#5848]) -> [SKIP][182] ([Intel XE#2509] / [Intel XE#7437])
[181]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9195/shard-bmg-8/igt@[email protected]
[182]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16156/shard-bmg-1/igt@[email protected]

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[Intel XE#1124]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1124
[Intel XE#1178]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1178
[Intel XE#1392]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1392
[Intel XE#1406]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1406
[Intel XE#1407]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1407
[Intel XE#1424]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1424
[Intel XE#1435]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1435
[Intel XE#1489]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1489
[Intel XE#1503]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1503
[Intel XE#2229]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2229
[Intel XE#2234]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2234
[Intel XE#2252]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2252
[Intel XE#2284]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2284
[Intel XE#2311]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2311
[Intel XE#2313]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2313
[Intel XE#2316]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2316
[Intel XE#2320]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2320
[Intel XE#2321]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2321
[Intel XE#2322]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2322
[Intel XE#2325]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2325
[Intel XE#2327]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2327
[Intel XE#2328]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2328
[Intel XE#2330]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2330
[Intel XE#2387]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2387
[Intel XE#2426]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2426
[Intel XE#2509]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2509
[Intel XE#2850]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2850
[Intel XE#2887]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2887
[Intel XE#301]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/301
[Intel XE#309]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/309
[Intel XE#3098]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3098
[Intel XE#3304]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3304
[Intel XE#3374]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3374
[Intel XE#3432]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3432
[Intel XE#3544]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3544
[Intel XE#367]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/367
[Intel XE#3718]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3718
[Intel XE#373]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/373
[Intel XE#3904]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3904
[Intel XE#4090]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4090
[Intel XE#4141]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4141
[Intel XE#4227]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4227
[Intel XE#4329]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4329
[Intel XE#4422]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4422
[Intel XE#4596]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4596
[Intel XE#4609]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4609
[Intel XE#4733]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4733
[Intel XE#5020]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5020
[Intel XE#5021]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5021
[Intel XE#5575]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5575
[Intel XE#5741]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5741
[Intel XE#5764]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5764
[Intel XE#5800]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5800
[Intel XE#5808]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5808
[Intel XE#5812]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5812
[Intel XE#5813]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5813
[Intel XE#5821]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5821
[Intel XE#5822]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5822
[Intel XE#5824]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5824
[Intel XE#5835]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5835
[Intel XE#5848]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5848
[Intel XE#5850]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5850
[Intel XE#5851]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5851
[Intel XE#5854]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5854
[Intel XE#5900]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5900
[Intel XE#5901]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5901
[Intel XE#5907]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5907
[Intel XE#5917]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5917
[Intel XE#5947]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5947
[Intel XE#5949]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5949
[Intel XE#6019]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6019
[Intel XE#607]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/607
[Intel XE#6078]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6078
[Intel XE#6144]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6144
[Intel XE#6174]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6174
[Intel XE#6312]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6312
[Intel XE#6503]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6503
[Intel XE#651]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/651
[Intel XE#656]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/656
[Intel XE#6569]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6569
[Intel XE#6707]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6707
[Intel XE#6813]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6813
[Intel XE#6814]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6814
[Intel XE#6901]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6901
[Intel XE#6912]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6912
[Intel XE#6964]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6964
[Intel XE#6969]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6969
[Intel XE#6974]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6974
[Intel XE#7061]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7061
[Intel XE#7070]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7070
[Intel XE#7173]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7173
[Intel XE#7178]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7178
[Intel XE#7179]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7179
[Intel XE#7283]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7283
[Intel XE#7342]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7342
[Intel XE#7343]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7343
[Intel XE#7345]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7345
[Intel XE#7351]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7351
[Intel XE#7355]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7355
[Intel XE#7356]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7356
[Intel XE#7358]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7358
[Intel XE#7361]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7361
[Intel XE#7367]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7367
[Intel XE#7370]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7370
[Intel XE#7372]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7372
[Intel XE#7374]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7374
[Intel XE#7375]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7375
[Intel XE#7377]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7377
[Intel XE#7397]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7397
[Intel XE#7399]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7399
[Intel XE#7413]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7413
[Intel XE#7417]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7417
[Intel XE#7428]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7428
[Intel XE#7429]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7429
[Intel XE#7437]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7437
[Intel XE#7439]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7439
[Intel XE#7442]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7442
[Intel XE#7443]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7443
[Intel XE#7482]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7482
[Intel XE#7484]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7484
[Intel XE#7642]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7642
[Intel XE#7679]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7679
[Intel XE#7793]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7793
[Intel XE#7794]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7794
[Intel XE#7865]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7865
[Intel XE#7905]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7905
[Intel XE#7980]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7980
[Intel XE#8265]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8265
[Intel XE#8303]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8303
[Intel XE#8364]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8364
[Intel XE#8369]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8369
[Intel XE#8370]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8370
[Intel XE#8374]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8374
[Intel XE#8378]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8378
[Intel XE#8391]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8391
[Intel XE#8395]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8395
[Intel XE#8396]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8396
[Intel XE#8399]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8399
[Intel XE#8479]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8479
[Intel XE#8578]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8578
[Intel XE#8608]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8608
[Intel XE#8815]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8815
[Intel XE#9142]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9142
[Intel XE#9203]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9203
[Intel XE#9254]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9254
[Intel XE#9277]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9277
[Intel XE#9346]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9346
[Intel XE#9362]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9362
[Intel XE#944]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/944
[Intel XE#9463]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9463
[Intel XE#9472]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9472
[Intel XE#9481]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9481
[Intel XE#9531]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9531
[Intel XE#9534]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9534
[Intel XE#9539]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9539
[Intel XE#9769]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9769
[Intel XE#9779]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9779
[Intel XE#9780]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9780

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

* IGT: IGT_9195 -> IGTPW_16156
* Linux: xe-6153-d5a6e2921e68b0cc42812376ca6c8095b6c941a2 -> xe-6155-ccb10a534282f16c6d068bc06e5c722680045dda

IGTPW_16156: 16156
IGT_9195: 9195
xe-6153-d5a6e2921e68b0cc42812376ca6c8095b6c941a2: d5a6e2921e68b0cc42812376ca6c8095b6c941a2 xe-6155-ccb10a534282f16c6d068bc06e5c722680045dda: ccb10a534282f16c6d068bc06e5c722680045dda

== Logs ==

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