tests/amdgpu: Add SLTH validation tests for trap handling and trap return.
PATCH v2 1/8 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.
--- 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
@@ -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
PATCH v2 2/8 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
@@ -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
PATCH v2 3/8 lib/amdgpu: give compute user queues a CWSR save area
In reply to Jesse ZhangWith 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
@@ -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_contextuint64_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
@@ -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
PATCH v2 4/8 tests/amdgpu: share the SLTH user queue test between GFX and compute
In reply to Jesse Zhangslth_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
@@ -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
PATCH v2 5/8 tests/amdgpu: add SLTH tests on compute user queues
In reply to Jesse ZhangThe 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
@@ -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
PATCH v2 6/8 tests/amdgpu: move the SLTH tests to amd_slth
In reply to Jesse ZhangThe 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
@@ -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_typefree (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
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.
PATCH v2 7/8 lib/amdgpu: program the CU mask of every SE in dispatches
In reply to Jesse Zhangamdgpu_dispatch_write_cumask() is meant to enable all CUs for the following dispatch, but it only writes COMPUTE_STATIC_THREAD_MGMT_SE0-SE3:
on GFX12 it skips SE0 and SE1 as well, and it never writes the SE4 and up registers that GFX9, GFX11 and GFX12 have. SE2 and SE3 are also written with index 0 while SE0 and SE1 use index 3 on GFX10 and GFX11.
Write the register of every SE the generation has, with index 3 on GFX10 and newer, and add amdgpu_dispatch_write_cumask_mask() for callers which need another CU mask. amdgpu_dispatch_write_cumask() still enables all CUs.
--- .../compute_utils/amd_dispatch_helpers.c | 111 +++++++++++++++--- .../compute_utils/amd_dispatch_helpers.h | 3 + 2 files changed, 95 insertions(+), 19 deletions(-)
lib/amdgpu/compute_utils/amd_dispatch_helpers.c +92 -19
@@ -71,34 +71,107 @@ amdgpu_dispatch_init(uint32_t ip_type, struct amdgpu_cmd_base *base, uint32_t vereturn base->cdw - i; } +/* +* COMPUTE_STATIC_THREAD_MGMT_SE<n>, one register per SE, as SH register +* offsets: the register dword address minus 0x2c00, the SH register space +* start used by SET_SH_REG. Bits 15:0 (SA0_CU_EN, SH0_CU_EN on GFX9) enable +* the CUs of the first shader array of the SE, bits 31:16 (SA1_CU_EN) those +* of the second one. +*/ +static const uint32_t cumask_se_gfx9[] = { +0x216 ,/* SE0, 0x2e16 */ +0x217 ,/* SE1, 0x2e17 */ +0x219 ,/* SE2, 0x2e19 */ +0x21a ,/* SE3, 0x2e1a */ +0x225 ,/* SE4, 0x2e25 */ +0x226 ,/* SE5, 0x2e26 */ +0x227 ,/* SE6, 0x2e27 */ +0x228 ,/* SE7, 0x2e28 */ +}; + +static const uint32_t cumask_se_gfx10[] = { +0x216 ,/* SE0, 0x2e16 */ +0x217 ,/* SE1, 0x2e17 */ +0x219 ,/* SE2, 0x2e19 */ +0x21a ,/* SE3, 0x2e1a */ +}; + +static const uint32_t cumask_se_gfx11[] = { +0x216 ,/* SE0, 0x2e16 */ +0x217 ,/* SE1, 0x2e17 */ +0x219 ,/* SE2, 0x2e19 */ +0x21a ,/* SE3, 0x2e1a */ +0x22b ,/* SE4, 0x2e2b */ +0x22c ,/* SE5, 0x2e2c */ +0x22d ,/* SE6, 0x2e2d */ +0x22e ,/* SE7, 0x2e2e */ +}; + +static const uint32_t cumask_se_gfx12[] = { +0x216 ,/* SE0, 0x2e16 */ +0x217 ,/* SE1, 0x2e17 */ +0x219 ,/* SE2, 0x2e19 */ +0x21a ,/* SE3, 0x2e1a */ +0x22b ,/* SE4, 0x2e2b */ +0x22c ,/* SE5, 0x2e2c */ +0x22d ,/* SE6, 0x2e2d */ +0x22e ,/* SE7, 0x2e2e */ +0x223 ,/* SE8, 0x2e23 */ +}; + +/* +* Set the CU mask of the following dispatches: write cu_mask to the +* COMPUTE_STATIC_THREAD_MGMT_SE register of every SE the generation has. +*/ int -amdgpu_dispatch_write_cumask (struct amdgpu_cmd_base *base,uint32_t version) +amdgpu_dispatch_write_cumask_mask (struct amdgpu_cmd_base *base,uint32_t version, +uint32_t cu_mask) {int offset_prev = base->cdw; +const uint32_t *se; +unsigned int i, num_se; + +switch (version) { +case 9 : + se = cumask_se_gfx9; + num_se =ARRAY_SIZE (cumask_se_gfx9); +break ; +case 10 : + se = cumask_se_gfx10; + num_se =ARRAY_SIZE (cumask_se_gfx10); +break ; +case 11 : + se = cumask_se_gfx11; + num_se =ARRAY_SIZE (cumask_se_gfx11); +break ; +default : + se = cumask_se_gfx12; + num_se =ARRAY_SIZE (cumask_se_gfx12); +break ; + } -if (version ==9 ) { -/* Issue commands to set cu mask used in current dispatch */ -/* set mmCOMPUTE_STATIC_THREAD_MGMT_SE1 - mmCOMPUTE_STATIC_THREAD_MGMT_SE0 */ - base->emit (base,PACKET3_COMPUTE (PKT3_SET_SH_REG ,2 )); - base->emit (base,0x216 ); - base->emit (base,0xffffffff ); - base->emit (base,0xffffffff ); - }else if ((version ==10 ) || (version ==11 )) { -/* set mmCOMPUTE_STATIC_THREAD_MGMT_SE1 - mmCOMPUTE_STATIC_THREAD_MGMT_SE0 */ - base->emit (base,PACKET3_COMPUTE (PKT3_SET_SH_REG_INDEX ,2 )); - base->emit (base,0x30000216 ); - base->emit (base,0xffffffff ); - base->emit (base,0xffffffff ); +for (i =0 ; i < num_se; i++) { +if (version ==9 ) { + base->emit (base,PACKET3_COMPUTE (PKT3_SET_SH_REG ,1 )); + base->emit (base, se[i]); + }else { +/* index 3: the CP ANDs the mask with the queue CU mask */ + base->emit (base,PACKET3_COMPUTE (PKT3_SET_SH_REG_INDEX ,1 )); + base->emit (base, (3u <<28 ) | se[i]); + } + base->emit (base, cu_mask); } -/* set mmCOMPUTE_STATIC_THREAD_MGMT_SE3 - mmCOMPUTE_STATIC_THREAD_MGMT_SE2 */ - base->emit (base,PACKET3_COMPUTE (PKT3_SET_SH_REG_INDEX ,2 )); - base->emit (base,0x219 ); - base->emit (base,0xffffffff ); - base->emit (base,0xffffffff );return base->cdw - offset_prev; } +/* Enable all CUs for the following dispatches */ +int +amdgpu_dispatch_write_cumask (struct amdgpu_cmd_base *base,uint32_t version) +{ +return amdgpu_dispatch_write_cumask_mask (base, version,0xffffffff ); +} +/* * The fence the kernel emits after a job on a kernel queue waits for the * dispatched waves and writes the caches back. A user queue only signals its
lib/amdgpu/compute_utils/amd_dispatch_helpers.h +3 -0
@@ -33,6 +33,9 @@ int amdgpu_dispatch_init(uint32_t ip_type, struct amdgpu_cmd_base *base_cmd, uinint amdgpu_dispatch_write_cumask (struct amdgpu_cmd_base *base_cmd,uint32_t version); +int amdgpu_dispatch_write_cumask_mask (struct amdgpu_cmd_base *base_cmd,uint32_t version, +uint32_t cu_mask); +int amdgpu_dispatch_write_sync (struct amdgpu_cmd_base *base_cmd,uint32_t version);int amdgpu_dispatch_write2hw (struct amdgpu_cmd_base *base_cmd,uint64_t shader_addr,uint32_t version,enum cmd_error_type err);
Signature · 1 line
2.50.1
PATCH v2 8/8 tests/amdgpu: keep the SLTH dispatches on SA0 on GFX 11.0.x
In reply to Jesse ZhangOn GFX 11.0.0-11.0.3 (Navi31/32/33) a HW bug only lets waves in the first shader array (SA0) of each SE enter the trap handler, see the kernel commit 69a8c3ae2dea ("drm/amdkfd: apply trap workaround for gfx11"). A wave scheduled on SA1 skips the handler, so the VGPR proof can't see the value the handler writes.
Program the CU mask with amdgpu_dispatch_write_cumask_mask() in every SLTH dispatch, on GFX and compute, kernel and user queues: on those GPUs only the SA0 CUs of every SE, detected from the GFX IP discovery version like the kernel does in kfd_dbg_has_cwsr_workaround(), and all CUs everywhere else.
While at it, take the dispatch version of the compute KQ tests from the compute IP block instead of hardcoding GFX12, which programmed the wrong registers on GFX11.
--- tests/amdgpu/amd_slth.c | 56 ++++++++++++++++++++++++++++++++++------- 1 file changed, 47 insertions(+), 9 deletions(-)
tests/amdgpu/amd_slth.c +47 -9
@@ -208,6 +208,41 @@ static void slth_prepare_vgpr_proof_shader(amdgpu_device_handle device, } } +/* Set by igt_main() when the dispatches have to stay on SA0 */ +static bool slth_sa0_wa; + +/* +* On GFX 11.0.0-11.0.3 (Navi31/32/33) a HW bug only lets waves in the first +* shader array (SA0) of each SE enter the trap handler, see the kernel commit +* 69a8c3ae2dea ("drm/amdkfd: apply trap workaround for gfx11") and +* kfd_dbg_has_cwsr_workaround(). +*/ +static bool slth_needs_sa0_wa (amdgpu_device_handle device) +{ +struct drm_amdgpu_info_hw_ip info = {0 }; +uint32_t ver; + +if (amdgpu_query_hw_ip_info (device,AMDGPU_HW_IP_GFX ,0 , &info)) +return false; + +/* bits 23:16 major, 15:8 minor, 7:0 revision */ + ver = info.ip_discovery_version; + +return (ver >>16 ) ==11 && ((ver >>8 ) &0xff ) ==0 && + (ver &0xff ) <=3 ; +} + +/* +* Where the HW bug above applies, enable only the CUs of SA0 of every SE, so +* a wave in SA1 can't skip the trap handler and make the VGPR check +* unreliable. Enable all CUs everywhere else. +*/ +static uint32_t slth_cu_mask (void ) +{ +/* SA0_CU_EN: bits 15:0, SA1_CU_EN: bits 31:16 */ +return slth_sa0_wa ?0x0000ffff :0xffffffff ; +} + static uint32_t execute_slth_dispatch( amdgpu_device_handle device, uint32_t ip_type,
@@ -340,6 +375,8 @@ static uint32_t execute_slth_dispatch(igt_info ("PM4 dwords after gfx_program_compute = %u\n" , base_cmd->cdw); +amdgpu_dispatch_write_cumask_mask (base_cmd, gfx_ip->major,slth_cu_mask ()); + gfx_ip->funcs->gfx_dispatch_direct( gfx_ip->funcs, base_cmd,
@@ -608,6 +645,7 @@ slth_umq_run(amdgpu_device_handle device, int fd, unsigned int ip_type, ip->funcs->gfx_program_compute (ip->funcs, base_cmd, shader_mc_addr, output_mc_addr,0x002c0040 ,0x00000010 ,1 ,1 ,1 ); +amdgpu_dispatch_write_cumask_mask (base_cmd, ip->major,slth_cu_mask ()); ip->funcs->gfx_dispatch_direct (ip->funcs, base_cmd,1 ,1 ,1 ,0 ); }else {/*
@@ -615,7 +653,7 @@ slth_umq_run(amdgpu_device_handle device, int fd, unsigned int ip_type,* 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_write_cumask_mask (base_cmd, ip->major,slth_cu_mask ());amdgpu_dispatch_write2hw (base_cmd, shader_mc_addr, ip->major,0 );/* COMPUTE_USER_DATA_0..3: s[0:1] = s[2:3] = output address */
@@ -718,7 +756,7 @@ slth_comp_kq_vgpr_proof_test(amdgpu_device_handle device,get_cmd_base ();uint32_t expired =0 ; -uint32_t version =12 ; +uint32_t version =get_ip_block (device,AMD_IP_COMPUTE )->major;uint8_t isa_bin[8192 ];size_t isa_sz =0 ;
@@ -842,9 +880,7 @@ slth_comp_kq_vgpr_proof_test(amdgpu_device_handle device, base_cmd, version); -amdgpu_dispatch_write_cumask ( - base_cmd, - version); +amdgpu_dispatch_write_cumask_mask (base_cmd, version,slth_cu_mask ());igt_info ("shader_mc_addr=0x%016llx\n" , (unsigned long long )mc_address_shader);
@@ -1131,7 +1167,7 @@ slth_comp_kq_returnproof_test(amdgpu_device_handle device,get_cmd_base ();uint32_t expired =0 ; -uint32_t version =12 ; +uint32_t version =get_ip_block (device,AMD_IP_COMPUTE )->major;uint8_t isa_bin[8192 ];size_t isa_sz =0 ;
@@ -1253,9 +1289,7 @@ slth_comp_kq_returnproof_test(amdgpu_device_handle device, base_cmd, version); -amdgpu_dispatch_write_cumask ( - base_cmd, - version); +amdgpu_dispatch_write_cumask_mask (base_cmd, version,slth_cu_mask ());igt_info ("shader_mc_addr=0x%016llx\n" , (unsigned long long )mc_address_shader);
@@ -1521,6 +1555,10 @@ int igt_main()asic_userq_readiness (device, userq_arr_cap);amd_platform_filter_init (&gpu_info); + slth_sa0_wa =slth_needs_sa0_wa (device); +igt_info ("SA0 trap workaround: %s\n" , + slth_sa0_wa ?"enabled" :"not needed" ); +/* The shaders are assembled at runtime */ igt_require_f (amdgpu_llvm_asm_init () ==0 ,"LLVM assembler unavailable\n" );
Signature · 1 line
2.50.1
Patchwork
CI✓ Xe.CI.BAT: success for series starting with [i-g-t,V2,1/8] 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,V2,1/8] tests/amdgpu: Add SLTH validation tests for trap handling and trap return.
URL : https://patchwork.freedesktop.org/series/178848/
State : success
== Summary ==
CI Bug Log - changes from XEIGT_9196_BAT -> XEIGTPW_16168_BAT
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Participating hosts (15 -> 15)
------------------------------
No changes in participating hosts
Changes
-------
No changes found
Build changes
-------------
* IGT: IGT_9196 -> IGTPW_16168
* Linux: xe-6155-ccb10a534282f16c6d068bc06e5c722680045dda -> xe-6169-0249d68f50c265a0f17c06fc21906fda945fe2cf
IGTPW_16168: 16168
IGT_9196: 9196
xe-6155-ccb10a534282f16c6d068bc06e5c722680045dda: ccb10a534282f16c6d068bc06e5c722680045dda xe-6169-0249d68f50c265a0f17c06fc21906fda945fe2cf: 0249d68f50c265a0f17c06fc21906fda945fe2cf
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/index.html
Quoted 6 lines · Jesse Zhang
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.
There is no expansion given for SLTH acronym. It may be expanded as second level trap handler somewhere in the commit message/comments.
Does it make sense to expand this test such that second level handler copies a known value from TMA region to vgpr instead of a hardcoded value? This is to check second level TMA accesses from second level handler.
Thanks,
Lijo
Quoted 2,210 lines
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 followings_trapafters_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]>Signed-off-by Srinivasan Shanmugam <[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@@ -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@@ -1327,4 +1327,194 @@ static const char * const amdgpu_test_shaders[] = {NULL }; +/****************************************************************************** +* SLTH Validation Shaders +* +* These shaders are used by SLTH IGT validation tests to verify: +* +* - SET_L2_TRAP / CLEAR_L2_TRAP UAPI +* - Trap entry +* - Trap handler execution +* - s_rfe_b64 trap return +* - VGPR state modification +* - Post-trap execution +* - KQ execution path +* - UMQ execution path +* +* The shaders below are specific to SLTH validation and are +* not part of the generic AMD shader test collection above. +* +*****************************************************************************/ + +/* Shader: SlthVgprProofIsa +* Purpose: +* Trigger an SLTH trap and verify that the trap handler +* modifies VGPR state visible after s_rfe_b64 returns. +* +* Expected: +* TrapHandlerIsaProof updates v2 to 42. +* Shader stores v2 after trap return. +* +* Proof: +* output == 42 +*/ +static const char SlthVgprProofIsa[] = +SHADER_START + R"( + v_mov_b32 v0, s0 + v_mov_b32 v1, s1 + + v_mov_b32 v2, 0 + + s_trap 1 + + flat_store_dword v[0:1], v2 + + s_endpgm +)"; + +/* Shader: SlthReturnProofIsa +* Purpose: +* Verify that execution resumes at the instruction +* immediately following s_trap after trap return. +* +* Flow: +* v2 = 1 +* s_trap 1 +* v2 = 2 +* store(v2) +* +* Expected: +* output == 2 +* +* Proof: +* The instruction after s_trap executed successfully. +* +* Validates: +* - Trap entry +* - Trap handler execution +* - Trap return +* - Program counter restoration +* - Post-return instruction execution +*/ +static const char SlthReturnProofIsa[] = +SHADER_START + R"( + v_mov_b32 v0, s0 + v_mov_b32 v1, s1 + + v_mov_b32 v2, 1 + + s_trap 1 + + v_mov_b32 v2, 2 + + flat_store_dword v[0:1], v2 + + s_endpgm +)"; + +/* Shader: TrapHandlerIsaProof +* Purpose: +* Validation-oriented SLTH trap handler used by +* SLTH proof subtests. +* +* Difference from TrapHandlerIsa: +* Updates VGPR v2 with a known value (42) +* before returning via s_rfe_b64. +* +* Expected usage: +* SlthVgprProofIsa +* GFX UMQ SLTH validation +* Compute SLTH proof tests +* +* Proof: +* If userspace observes value 42 after shader +* completion, trap entry, handler execution, +* and trap return all succeeded. +*/ +static const char TrapHandlerIsaProof[] = +SHADER_START + R"( + CHECK_VMFAULT: +/*if trap jumped to by vmfault, restore skip m0 signalling*/ + .if (.amdgcn.gfx_generation_number < 12) + s_getreg_b32 ttmp14, hwreg(HW_REG_TRAPSTS) + s_and_b32 ttmp2, ttmp14, 0x800 + .else + s_getreg_b32 ttmp14, hwreg(HW_REG_EXCP_FLAG_PRIV) + s_and_b32 ttmp2, ttmp14, 0x10 + .endif + s_cbranch_scc1 RESTORE_AND_EXIT + + .if (.amdgcn.gfx_generation_number < 12) + s_and_b32 ttmp2, ttmp14, 0x7080 + .else + s_and_b32 ttmp2, ttmp14, 0xf + .endif + + s_cbranch_scc0 GET_DOORBELL + + v_mov_b32 v5, v4 + v_mov_b32 v6, ttmp14 + + s_branch RESTORE_AND_EXIT + + GET_DOORBELL: + + .if .amdgcn.gfx_generation_number < 11 + s_mov_b32 ttmp2, exec_lo + s_mov_b32 ttmp3, exec_hi + + s_mov_b32 exec_lo, 0x80000000 + + s_sendmsg 10 + + WAIT_SENDMSG: + s_nop 7 + s_bitcmp0_b32 exec_lo, 0x1F + s_cbranch_scc0 WAIT_SENDMSG + + s_mov_b32 exec_hi, ttmp3 + s_and_b32 exec_lo, exec_lo, 0xfff + s_mov_b32 ttmp3, exec_lo + s_mov_b32 exec_lo, ttmp2 + .else + s_sendmsg_rtn_b32 ttmp3, sendmsg(MSG_RTN_GET_DOORBELL) + s_waitcnt lgkmcnt(0) + s_and_b32 ttmp3, ttmp3, 0x3ff + .endif + + s_mov_b32 ttmp2, m0 + s_or_b32 ttmp3, ttmp3, 0x800 + + s_mov_b32 m0, ttmp3 + s_nop 0x0 + s_sendmsg sendmsg(MSG_INTERRUPT) + s_waitcnt lgkmcnt(0) + + s_mov_b32 m0, ttmp2 + + /* proof value */ + v_mov_b32 v2, 42 + + s_add_u32 ttmp0, ttmp0, 4 + s_addc_u32 ttmp1, ttmp1, 0 + s_and_b32 ttmp1, ttmp1, 0xffff + + RESTORE_AND_EXIT: + + s_lshr_b32 ttmp2, ttmp11, (26 - 15) + s_and_b32 ttmp2, ttmp2, (0x8000 | 0x1F0000) + + s_setreg_b32 hwreg(HW_REG_IB_STS), ttmp2 + + s_and_b64 exec, exec, exec + s_and_b64 vcc, vcc, vcc + + s_setreg_b32 hwreg(HW_REG_STATUS), ttmp12 + + s_rfe_b64 [ttmp0, ttmp1] +)"; +#endif tests/amdgpu/amd_basic.c +1722
-138@@ -20,9 +20,28 @@#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 @@ -846,172 +865,1737 @@ static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_typefree (ring_context); } -int igt_main () +static void slth_alloc_buffers (amdgpu_device_handle device, +struct slth_bufs *bufs) { -amdgpu_device_handle device; -struct amdgpu_gpu_info gpu_info = {0 }; -struct drm_amdgpu_info_hw_ip info = {0 }; -int fd =-1 ;int r; -bool arr_cap[AMD_IP_MAX ] = {0 }; -bool userq_arr_cap[AMD_IP_MAX ] = {0 }; -bool enable_test = false; -#ifdef AMDGPU_USERQ_ENABLED - enable_test = true; -#endif +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 ); - igt_fixture() { -uint32_t major, minor; -int err; + 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 ); +} -log_total_time (true,igt_test_name ()); - fd =drm_open_driver (DRIVER_AMDGPU ); +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 ); +} - err =amdgpu_device_initialize (fd, &major, &minor, &device); -igt_require (err ==0 ); +static int vm_set_l2_trap (int fd, +uint64_t tba_va, +uint64_t tma_va) +{ +union drm_amdgpu_vm args = {0 }; -igt_info ("Initialized amdgpu, driver version %d.%d\n" , - major, minor); + args.in.op =AMDGPU_VM_OP_SET_L2_TRAP ; - r =amdgpu_query_gpu_info (device, &gpu_info); -igt_assert_eq (r,0 ); - r =amdgpu_query_hw_ip_info (device,AMDGPU_HW_IP_GFX ,0 , &info); -igt_assert_eq (r,0 ); - r =setup_amdgpu_ip_blocks (major, minor, &gpu_info, device); -igt_assert_eq (r,0 ); -asic_rings_readness (device,1 , arr_cap); -asic_userq_readiness (device, userq_arr_cap); -amd_platform_filter_init (&gpu_info); - } -igt_describe ("Check-alloc-free-VRAM-visible-non-visible-GART-write-combined-cached" ); - igt_subtest("memory-alloc") -amdgpu_memory_alloc (device); + args.in.l2trap.tba_va = tba_va; + args.in.l2trap.tba_sz =TBA_SIZE ; -igt_describe ("Check-DMA-CS-works-by-setting-the-pattern-and-after-execution-compare-memory-with-the-golden-settings" ); - igt_subtest_with_dynamic("userptr-with-IP-DMA") { -if (arr_cap[AMD_IP_DMA ]) { - igt_dynamic_f("userptr") -amdgpu_userptr_test (device); - } - } + args.in.l2trap.tma_va = tma_va; + args.in.l2trap.tma_sz =TMA_SIZE ; -igt_describe ("Check-GFX-CS-for-every-available-ring-works-for-write-const-fill-and-copy-operation-using-more-than-one-IB-and-shared-IB" ); - igt_subtest_with_dynamic("cs-gfx-with-IP-GFX") { -if (arr_cap[AMD_IP_GFX ]) { - igt_dynamic_f("cs-gfx") -amdgpu_command_submission_gfx (device, info.hw_ip_version_major <11 , false); - } - } +return drmIoctl (fd,DRM_IOCTL_AMDGPU_VM , &args); +} -igt_describe ("Check-COMPUTE-CS-for-every-available-ring-works-for-write-const-fill-copy-and-nop-operation" ); - igt_subtest_with_dynamic("cs-compute-with-IP-COMPUTE") { -if (arr_cap[AMD_IP_COMPUTE ]) { - igt_dynamic_f("cs-compute") -amdgpu_command_submission_compute (device, false); - } - } +static int vm_clear_l2_trap (int fd) +{ +union drm_amdgpu_vm args = {0 }; -igt_describe ("Check-GFX-CS-for-multi-fence" ); - igt_subtest_with_dynamic("cs-multi-fence-with-IP-GFX") { -if (arr_cap[AMD_IP_GFX ] && info.hw_ip_version_major <11 ) { - igt_dynamic_f("cs-multi-fence") -amdgpu_command_submission_multi_fence (device); - }else { -igt_info ("cs-multi-fence-with-IP-GFX testes are skipped due to GFX11 or no GFX_IP\n" ); - } - } + args.in.op =AMDGPU_VM_OP_CLEAR_L2_TRAP ; -igt_describe ("Check-DMA-CS-for-every-available-ring-works-for-write-const-fill-copy-operation" ); - igt_subtest_with_dynamic("cs-sdma-with-IP-DMA") { -if (arr_cap[AMD_IP_DMA ]) { - igt_dynamic_f("cs-sdma") -amdgpu_command_submission_sdma (device, false); - } - } +return drmIoctl (fd,DRM_IOCTL_AMDGPU_VM , &args); +} -igt_describe ("Check-signal-semaphore-on-DMA-wait-on-GFX" ); - igt_subtest_with_dynamic("semaphore-with-IP-GFX-and-IP-DMA") { -if (arr_cap[AMD_IP_GFX ] && arr_cap[AMD_IP_DMA ]) { - igt_dynamic_f("semaphore") -amdgpu_semaphore_test (device); - } - } +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; -igt_describe ("Check-eviction-using-DMA-max-allocation-size" ); - igt_subtest_with_dynamic("eviction-test-with-IP-DMA") { -if (arr_cap[AMD_IP_DMA ]) { - igt_dynamic_f("eviction_test") -amdgpu_bo_eviction_test (device); - } - } + r =amdgpu_query_gpu_info (device, &info); +igt_assert_eq (r,0 ); -igt_describe ("Check-sync-dependency-using-GFX-ring" ); - igt_subtest_with_dynamic("sync-dependency-test-with-IP-GFX") { -if (arr_cap[AMD_IP_GFX ]) { - igt_dynamic_f("sync-dependency-test") -amdgpu_sync_dependency_test (device, false); - } - } + r =amdgpu_family_id_to_mcpu (info.family_id, + mcpu, +sizeof (mcpu)); +igt_assert_eq (r,0 ); -igt_describe ("Check-GFX-CS-for-every-available-ring-works-for-write-const-fill-and-copy-operation-using-more-than-one-IB-and-shared-IB" ); - igt_subtest_with_dynamic("cs-gfx-with-IP-GFX-UMQ") { -if (enable_test && userq_arr_cap[AMD_IP_GFX ]) { - igt_dynamic_f("cs-gfx-with-umq") -amdgpu_command_submission_gfx (device, info.hw_ip_version_major <11 , true); - } - } +igt_info ("family_id=%u mcpu=%s\n" , + info.family_id, + mcpu); -igt_describe ("Check-COMPUTE-CS-for-every-available-ring-works-for-write-const-fill-copy-and-nop-operation" ); - igt_subtest_with_dynamic("cs-compute-with-IP-COMPUTE-UMQ") { -if (enable_test && userq_arr_cap[AMD_IP_COMPUTE ]) { - igt_dynamic_f("cs-compute-with-umq") -amdgpu_command_submission_compute (device, true); - } - } + r =amdgpu_llvm_assemble (mcpu, + handler, + isa_bin, +sizeof (isa_bin), + &isa_sz); -igt_describe ("Check-sync-dependency-using-GFX-ring" ); - igt_subtest_with_dynamic("sync-dependency-test-with-IP-GFX-UMQ") { -if (enable_test && userq_arr_cap[AMD_IP_GFX ]) { - igt_dynamic_f("sync-dependency-test-with-umq") -amdgpu_sync_dependency_test (device, true); - } - } +if (r) +igt_info ("amdgpu_llvm_assemble failed r=%d\n" , r); -igt_describe ("Check-DMA-CS-for-every-available-ring-works-for-write-const-fill-copy-operation" ); - igt_subtest_with_dynamic("cs-sdma-with-IP-DMA-UMQ") { -if (enable_test && userq_arr_cap[AMD_IP_DMA ]) { - igt_dynamic_f("cs-sdma-with-umq") -amdgpu_command_submission_sdma (device, true); - } +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_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_DMA ]) { - igt_dynamic_f("all-queues-with-umq") -amdgpu_test_all_queues (device, true); - } +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]); } +} -igt_describe ("Check-GFX-CS-FENCE_WAIT_MULTI-packet" ); - igt_subtest_with_dynamic("cs-gfx-fwm-UMQ") { -if (enable_test && userq_arr_cap[AMD_IP_GFX ]) { - igt_dynamic_f("cs-gfx-fwm-umq") -amdgpu_fwm_test (device,AMDGPU_HW_IP_GFX ); - } +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_describe ("Check-COMPUTE-CS-FENCE_WAIT_MULTI-packet" ); - igt_subtest_with_dynamic("cs-compute-fwm-UMQ") { -if (enable_test && userq_arr_cap[AMD_IP_COMPUTE ]) { - igt_dynamic_f("cs-compute-fwm-umq") -amdgpu_fwm_test (device,AMDGPU_HW_IP_COMPUTE ); - } +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" ); +} + +static void slth_gfx_umq_vgpr_proof_test (amdgpu_device_handle device, +int fd) +{ +const struct amdgpu_ip_block_version *gfx_ip = +get_ip_block (device,AMD_IP_GFX ); + +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; + +uint8_t isa_bin[8192 ]; +size_t isa_sz =0 ; + +const uint32_t *shader; +uint32_t size_bytes; + +struct slth_bufs bufs; + +int r; + +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); + +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); + +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); + + 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" ); + +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); +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 ); + + 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 ); + + 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" ); + +for (int i =0 ; i < base_cmd->cdw; i++) { +igt_info ("PM4[%02d] = 0x%08x\n" , + i, + ptr_pm4[i]); + } + +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); + +for (int i =0 ; i <1000 ; i++) { +if (ptr_output[0 ]) +break ; + +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 ); + +free_cmd_base (base_cmd); + + gfx_ip->funcs->userq_destroy (device, + ring_context, + gfx_ip->type); + + 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); + +igt_info ("UMQ queue destroyed\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" ); +} + +int igt_main () +{ +amdgpu_device_handle device; +struct amdgpu_gpu_info gpu_info = {0 }; +struct drm_amdgpu_info_hw_ip info = {0 }; +int fd =-1 ; +int r; +bool arr_cap[AMD_IP_MAX ] = {0 }; +bool userq_arr_cap[AMD_IP_MAX ] = {0 }; +bool enable_test = false; +#ifdef AMDGPU_USERQ_ENABLED + + enable_test = true; +#endif + + igt_fixture() { +uint32_t major, minor; +int err; + +log_total_time (true,igt_test_name ()); + fd =drm_open_driver (DRIVER_AMDGPU ); + + err =amdgpu_device_initialize (fd, &major, &minor, &device); +igt_require (err ==0 ); + +igt_info ("Initialized amdgpu, driver version %d.%d\n" , + major, minor); + + r =amdgpu_query_gpu_info (device, &gpu_info); +igt_assert_eq (r,0 ); + r =amdgpu_query_hw_ip_info (device,AMDGPU_HW_IP_GFX ,0 , &info); +igt_assert_eq (r,0 ); + r =setup_amdgpu_ip_blocks (major, minor, &gpu_info, device); +igt_assert_eq (r,0 ); +asic_rings_readness (device,1 , arr_cap); +asic_userq_readiness (device, userq_arr_cap); +amd_platform_filter_init (&gpu_info); + } +igt_describe ("Check-alloc-free-VRAM-visible-non-visible-GART-write-combined-cached" ); + igt_subtest("memory-alloc") +amdgpu_memory_alloc (device); + +igt_describe ("Check-DMA-CS-works-by-setting-the-pattern-and-after-execution-compare-memory-with-the-golden-settings" ); + igt_subtest_with_dynamic("userptr-with-IP-DMA") { +if (arr_cap[AMD_IP_DMA ]) { + igt_dynamic_f("userptr") +amdgpu_userptr_test (device); + } + } + +igt_describe ("Check-GFX-CS-for-every-available-ring-works-for-write-const-fill-and-copy-operation-using-more-than-one-IB-and-shared-IB" ); + igt_subtest_with_dynamic("cs-gfx-with-IP-GFX") { +if (arr_cap[AMD_IP_GFX ]) { + igt_dynamic_f("cs-gfx") +amdgpu_command_submission_gfx (device, info.hw_ip_version_major <11 , false); + } + } + +igt_describe ("Check-COMPUTE-CS-for-every-available-ring-works-for-write-const-fill-copy-and-nop-operation" ); + igt_subtest_with_dynamic("cs-compute-with-IP-COMPUTE") { +if (arr_cap[AMD_IP_COMPUTE ]) { + igt_dynamic_f("cs-compute") +amdgpu_command_submission_compute (device, false); + } + } + +igt_describe ("Check-GFX-CS-for-multi-fence" ); + igt_subtest_with_dynamic("cs-multi-fence-with-IP-GFX") { +if (arr_cap[AMD_IP_GFX ] && info.hw_ip_version_major <11 ) { + igt_dynamic_f("cs-multi-fence") +amdgpu_command_submission_multi_fence (device); + }else { +igt_info ("cs-multi-fence-with-IP-GFX testes are skipped due to GFX11 or no GFX_IP\n" ); + } + } + +igt_describe ("Check-DMA-CS-for-every-available-ring-works-for-write-const-fill-copy-operation" ); + igt_subtest_with_dynamic("cs-sdma-with-IP-DMA") { +if (arr_cap[AMD_IP_DMA ]) { + igt_dynamic_f("cs-sdma") +amdgpu_command_submission_sdma (device, false); + } + } + +igt_describe ("Check-signal-semaphore-on-DMA-wait-on-GFX" ); + igt_subtest_with_dynamic("semaphore-with-IP-GFX-and-IP-DMA") { +if (arr_cap[AMD_IP_GFX ] && arr_cap[AMD_IP_DMA ]) { + igt_dynamic_f("semaphore") +amdgpu_semaphore_test (device); + } + } + +igt_describe ("Check-eviction-using-DMA-max-allocation-size" ); + igt_subtest_with_dynamic("eviction-test-with-IP-DMA") { +if (arr_cap[AMD_IP_DMA ]) { + igt_dynamic_f("eviction_test") +amdgpu_bo_eviction_test (device); + } + } + +igt_describe ("Check-sync-dependency-using-GFX-ring" ); + igt_subtest_with_dynamic("sync-dependency-test-with-IP-GFX") { +if (arr_cap[AMD_IP_GFX ]) { + igt_dynamic_f("sync-dependency-test") +amdgpu_sync_dependency_test (device, false); + } + } + +igt_describe ("Check-GFX-CS-for-every-available-ring-works-for-write-const-fill-and-copy-operation-using-more-than-one-IB-and-shared-IB" ); + igt_subtest_with_dynamic("cs-gfx-with-IP-GFX-UMQ") { +if (enable_test && userq_arr_cap[AMD_IP_GFX ]) { + igt_dynamic_f("cs-gfx-with-umq") +amdgpu_command_submission_gfx (device, info.hw_ip_version_major <11 , true); + } + } + +igt_describe ("Check-COMPUTE-CS-for-every-available-ring-works-for-write-const-fill-copy-and-nop-operation" ); + igt_subtest_with_dynamic("cs-compute-with-IP-COMPUTE-UMQ") { +if (enable_test && userq_arr_cap[AMD_IP_COMPUTE ]) { + igt_dynamic_f("cs-compute-with-umq") +amdgpu_command_submission_compute (device, true); + } + } + +igt_describe ("Check-sync-dependency-using-GFX-ring" ); + igt_subtest_with_dynamic("sync-dependency-test-with-IP-GFX-UMQ") { +if (enable_test && userq_arr_cap[AMD_IP_GFX ]) { + igt_dynamic_f("sync-dependency-test-with-umq") +amdgpu_sync_dependency_test (device, true); + } + } + +igt_describe ("Check-DMA-CS-for-every-available-ring-works-for-write-const-fill-copy-operation" ); + igt_subtest_with_dynamic("cs-sdma-with-IP-DMA-UMQ") { +if (enable_test && userq_arr_cap[AMD_IP_DMA ]) { + igt_dynamic_f("cs-sdma-with-umq") +amdgpu_command_submission_sdma (device, true); + } + } + +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_DMA ]) { + igt_dynamic_f("all-queues-with-umq") +amdgpu_test_all_queues (device, true); + } + } + +igt_describe ("Check-GFX-CS-FENCE_WAIT_MULTI-packet" ); + igt_subtest_with_dynamic("cs-gfx-fwm-UMQ") { +if (enable_test && userq_arr_cap[AMD_IP_GFX ]) { + igt_dynamic_f("cs-gfx-fwm-umq") +amdgpu_fwm_test (device,AMDGPU_HW_IP_GFX ); + } + } + +igt_describe ("Check-COMPUTE-CS-FENCE_WAIT_MULTI-packet" ); + igt_subtest_with_dynamic("cs-compute-fwm-UMQ") { +if (enable_test && userq_arr_cap[AMD_IP_COMPUTE ]) { + igt_dynamic_f("cs-compute-fwm-umq") +amdgpu_fwm_test (device,AMDGPU_HW_IP_COMPUTE ); + } + } + + 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_fixture() {amdgpu_device_deinitialize (device);drm_close_driver (fd);
AMD General
Quoted 26 lines
-----Original Message-----
From: Lazar, Lijo <[email protected]>
Sent: Wednesday, November 18, 2026 4:47 PM
To: Zhang, Jesse(Jie) <[email protected]>; [email protected]
Cc: Prosyak, Vitaly <[email protected]>; Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>; SHANMUGAM, SRINIVASAN <[email protected]>; Kuehling, Felix <[email protected]>; Six, Lancelot <[email protected]>; Zhu, James <[email protected]>; Samuel Pitoiset <[email protected]>; Natalie Vock <[email protected]>; Timur Kristóf <[email protected]>; Pelloux-Prayer, Pierre-Eric <Pierre-eric.Pelloux- [email protected]>; Cornwall, Jay <[email protected]>
Subject: Re: [PATCH i-g-t V2 1/8] tests/amdgpu: Add SLTH validation tests for trap handling and trap return.Quoted 6 lines · Jesse Zhang
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.
Quoted 4 lines
cc Jay CornwallThere is no expansion given for SLTH acronym. It may be expanded as second level trap handler somewhere in the commit message/comments.
Sorry Lijo about the missing the comments. Will Fixed it, patch 1 now says "SLTH (second-level trap handler)".
Quoted 5 lines
Does it make sense to expand this test such that second level handler copies a known value from TMA region to vgpr instead of a hardcoded value? This is to check second level TMA accesses from second level handler.
Yes, done in v4 ( (patch 9 "tests/amdgpu: have the SLTH trap handler copy a value from its TMA"). The test writes a known value (0x5ec0de42) to the first dword of the second-level TMA. The handler gets the TMA address from ttmp[14:15], where the first-level handler puts the TMA set with SET_L2_TRAP, loads the value with s_load_dword and copies it to v2. The shader stores v2 after s_rfe, and the vgpr-proof tests check for that value. So they now also check that the TMA reaches the second-level handler and that the handler can read it.
Thanks
Jesse
Quoted 2,264 lines
Thanks,
Lijoinclude/drm-
Quoted 72 lines
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 followings_trapafters_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]>Signed-off-by Srinivasan Shanmugam <[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- renamed from include/drm-uapi/amdgpu_drm.h +0
-0
uapi/amdgpu_drm.hReview
Quoted 31 lines
index
29009f6aa..832903e2e100644include/drm-uapi/amdgpu_drm.h +16
-2@@ -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 {(quoted diff) +0
-0
b/lib/amdgpu/shaders/amd_shader_store.hlib/amdgpu/shaders/amd_shader_store.h static const char * const
Quoted 4 lines
index
6d04e79d0..a913237ed100644lib/amdgpu/shaders/amd_shader_store.h +0
-0@@ -1327,4 +1327,194 @@ static const char * constamdgpu_test_shaders[] = {
lib/amdgpu/shaders/amd_shader_store.h static const char * const · line 1330
Quoted 4 lines
lib/amdgpu/shaders/amd_shader_store.h +0
-0NULL };+/*****************************************************************
*************Quoted 7 lines
lib/amdgpu/shaders/amd_shader_store.h +7
-0+* SLTH Validation Shaders +* +* These shaders are used by SLTH IGT validation tests to verify: +* +* - SET_L2_TRAP / CLEAR_L2_TRAP UAPI +* - Trap entry +* - Trap handler execution lib/amdgpu/shaders/amd_shader_store.h static const char * const amdgpu_test_shaders[] = { · line 1348
Quoted 10 lines
lib/amdgpu/shaders/amd_shader_store.h +10
-0+* - s_rfe_b64 trap return +* - VGPR state modification +* - Post-trap execution +* - KQ execution path +* - UMQ execution path +* +* The shaders below are specific to SLTH validation and are +* not part of the generic AMD shader test collection above. +* +*******************************************************************
**********/tests/amdgpu/amd_basic.c static void
Quoted 207 lines
lib/amdgpu/shaders/amd_shader_store.h +172
-0+ +/* Shader: SlthVgprProofIsa +* Purpose: +* Trigger an SLTH trap and verify that the trap handler +* modifies VGPR state visible after s_rfe_b64 returns. +* +* Expected: +* TrapHandlerIsaProof updates v2 to 42. +* Shader stores v2 after trap return. +* +* Proof: +* output == 42 +*/ +static const char SlthVgprProofIsa[] = +SHADER_START + R"( + v_mov_b32 v0, s0 + v_mov_b32 v1, s1 + + v_mov_b32 v2, 0 + + s_trap 1 + + flat_store_dword v[0:1], v2 + + s_endpgm +)"; + +/* Shader: SlthReturnProofIsa +* Purpose: +* Verify that execution resumes at the instruction +* immediately following s_trap after trap return. +* +* Flow: +* v2 = 1 +* s_trap 1 +* v2 = 2 +* store(v2) +* +* Expected: +* output == 2 +* +* Proof: +* The instruction after s_trap executed successfully. +* +* Validates: +* - Trap entry +* - Trap handler execution +* - Trap return +* - Program counter restoration +* - Post-return instruction execution +*/ +static const char SlthReturnProofIsa[] = +SHADER_START + R"( + v_mov_b32 v0, s0 + v_mov_b32 v1, s1 + + v_mov_b32 v2, 1 + + s_trap 1 + + v_mov_b32 v2, 2 + + flat_store_dword v[0:1], v2 + + s_endpgm +)"; + +/* Shader: TrapHandlerIsaProof +* Purpose: +* Validation-oriented SLTH trap handler used by +* SLTH proof subtests. +* +* Difference from TrapHandlerIsa: +* Updates VGPR v2 with a known value (42) +* before returning via s_rfe_b64. +* +* Expected usage: +* SlthVgprProofIsa +* GFX UMQ SLTH validation +* Compute SLTH proof tests +* +* Proof: +* If userspace observes value 42 after shader +* completion, trap entry, handler execution, +* and trap return all succeeded. +*/ +static const char TrapHandlerIsaProof[] = +SHADER_START + R"( + CHECK_VMFAULT: +/*if trap jumped to by vmfault, restore skip m0 signalling*/ + .if (.amdgcn.gfx_generation_number < 12) + s_getreg_b32 ttmp14, hwreg(HW_REG_TRAPSTS) + s_and_b32 ttmp2, ttmp14, 0x800 + .else + s_getreg_b32 ttmp14, hwreg(HW_REG_EXCP_FLAG_PRIV) + s_and_b32 ttmp2, ttmp14, 0x10 + .endif + s_cbranch_scc1 RESTORE_AND_EXIT + + .if (.amdgcn.gfx_generation_number < 12) + s_and_b32 ttmp2, ttmp14, 0x7080 + .else + s_and_b32 ttmp2, ttmp14, 0xf + .endif + + s_cbranch_scc0 GET_DOORBELL + + v_mov_b32 v5, v4 + v_mov_b32 v6, ttmp14 + + s_branch RESTORE_AND_EXIT + + GET_DOORBELL: + + .if .amdgcn.gfx_generation_number < 11 + s_mov_b32 ttmp2, exec_lo + s_mov_b32 ttmp3, exec_hi + + s_mov_b32 exec_lo, 0x80000000 + + s_sendmsg 10 + + WAIT_SENDMSG: + s_nop 7 + s_bitcmp0_b32 exec_lo, 0x1F + s_cbranch_scc0 WAIT_SENDMSG + + s_mov_b32 exec_hi, ttmp3 + s_and_b32 exec_lo, exec_lo, 0xfff + s_mov_b32 ttmp3, exec_lo + s_mov_b32 exec_lo, ttmp2 + .else + s_sendmsg_rtn_b32 ttmp3, sendmsg(MSG_RTN_GET_DOORBELL) + s_waitcnt lgkmcnt(0) + s_and_b32 ttmp3, ttmp3, 0x3ff + .endif + + s_mov_b32 ttmp2, m0 + s_or_b32 ttmp3, ttmp3, 0x800 + + s_mov_b32 m0, ttmp3 + s_nop 0x0 + s_sendmsg sendmsg(MSG_INTERRUPT) + s_waitcnt lgkmcnt(0) + + s_mov_b32 m0, ttmp2 + + /* proof value */ + v_mov_b32 v2, 42 + + s_add_u32 ttmp0, ttmp0, 4 + s_addc_u32 ttmp1, ttmp1, 0 + s_and_b32 ttmp1, ttmp1, 0xffff + + RESTORE_AND_EXIT: + + s_lshr_b32 ttmp2, ttmp11, (26 - 15) + s_and_b32 ttmp2, ttmp2, (0x8000 | 0x1F0000) + + s_setreg_b32 hwreg(HW_REG_IB_STS), ttmp2 + + s_and_b64 exec, exec, exec + s_and_b64 vcc, vcc, vcc + + s_setreg_b32 hwreg(HW_REG_STATUS), ttmp12 + + s_rfe_b64 [ttmp0, ttmp1] +)"; +#endif tests/amdgpu/amd_basic.c +19
-0@@ -20,9 +20,28 @@#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 @@ -846,172 +865,1737 @@ static voidamdgpu_fwm_test(amdgpu_device_handle
device_handle, unsignedip_typeQuoted 71 lines
tests/amdgpu/amd_basic.c +44
-18free (ring_context); } -int igt_main () +static void slth_alloc_buffers (amdgpu_device_handle device, +struct slth_bufs *bufs) { -amdgpu_device_handle device; -struct amdgpu_gpu_info gpu_info = {0 }; -struct drm_amdgpu_info_hw_ip info = {0 }; -int fd =-1 ;int r; -bool arr_cap[AMD_IP_MAX ] = {0 }; -bool userq_arr_cap[AMD_IP_MAX ] = {0 }; -bool enable_test = false; -#ifdef AMDGPU_USERQ_ENABLED - enable_test = true; -#endif +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 ); - igt_fixture() { -uint32_t major, minor; -int err; + 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 ); +} -log_total_time (true,igt_test_name ()); - fd =drm_open_driver (DRIVER_AMDGPU ); +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 ); +} - err =amdgpu_device_initialize (fd, &major, &minor, &device); -igt_require (err ==0 ); +static int vm_set_l2_trap (int fd, +uint64_t tba_va, +uint64_t tma_va)tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 10 lines
tests/amdgpu/amd_basic.c +3
-5+{ +union drm_amdgpu_vm args = {0 }; -igt_info ("Initialized amdgpu, driver version %d.%d\n" , - major, minor); + args.in.op =AMDGPU_VM_OP_SET_L2_TRAP ; - r =amdgpu_query_gpu_info (device, &gpu_info); -igt_assert_eq (r,0 ); - r = amdgpu_query_hw_ip_info(device,
AMDGPU_HW_IP_GFX, 0, &info);tests/amdgpu/amd_basic.c static void · line 881
Quoted 2 lines
tests/amdgpu/amd_basic.c +0
-2-igt_assert_eq (r,0 ); - r = setup_amdgpu_ip_blocks(major, minor, &gpu_info,device);
tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 6 lines
tests/amdgpu/amd_basic.c +0
-6-igt_assert_eq (r,0 ); -asic_rings_readness (device,1 , arr_cap); -asic_userq_readiness (device, userq_arr_cap); -amd_platform_filter_init (&gpu_info); - } - igt_describe("Check-alloc-free-VRAM-visible-non-visible-GART-write-combined-cached");
tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 6 lines
tests/amdgpu/amd_basic.c +2
-3- igt_subtest("memory-alloc") -amdgpu_memory_alloc (device); + args.in.l2trap.tba_va = tba_va; + args.in.l2trap.tba_sz =TBA_SIZE ; - igt_describe("Check-DMA-CS-works-by-setting-the-pattern-and-after-execution-compare-memory-with-the-golden-settings");
tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 10 lines
tests/amdgpu/amd_basic.c +2
-7- igt_subtest_with_dynamic("userptr-with-IP-DMA") { -if (arr_cap[AMD_IP_DMA ]) { - igt_dynamic_f("userptr") -amdgpu_userptr_test (device); - } - } + args.in.l2trap.tma_va = tma_va; + args.in.l2trap.tma_sz =TMA_SIZE ; - igt_describe("Check-GFX-CS-for-every-available-ring-works-for-write-const-fill-and-copy-operation-using-more-than-one-IB-and-shared-IB");
tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 4 lines
tests/amdgpu/amd_basic.c +0
-4- igt_subtest_with_dynamic("cs-gfx-with-IP-GFX") { -if (arr_cap[AMD_IP_GFX ]) { - igt_dynamic_f("cs-gfx") - amdgpu_command_submission_gfx(device,info.hw_ip_version_major < 11, false);
tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 6 lines
tests/amdgpu/amd_basic.c +2
-3- } - } +return drmIoctl (fd,DRM_IOCTL_AMDGPU_VM , &args); +} - igt_describe("Check-COMPUTE-CS-for-every-available-ring-works-for-write-const-fill-copy-and-nop-operation");
tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 4 lines
tests/amdgpu/amd_basic.c +0
-4- igt_subtest_with_dynamic("cs-compute-with-IP-COMPUTE") { -if (arr_cap[AMD_IP_COMPUTE ]) { - igt_dynamic_f("cs-compute") - amdgpu_command_submission_compute(device,false);
tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 9 lines
tests/amdgpu/amd_basic.c +3
-5- } - } +static int vm_clear_l2_trap (int fd) +{ +union drm_amdgpu_vm args = {0 }; -igt_describe ("Check-GFX-CS-for-multi-fence" ); - igt_subtest_with_dynamic("cs-multi-fence-with-IP-GFX") { -if (arr_cap[AMD_IP_GFX ] && info.hw_ip_version_major <11 ){
tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 4 lines
tests/amdgpu/amd_basic.c +0
-4- igt_dynamic_f("cs-multi-fence") -amdgpu_command_submission_multi_fence (device); - }else { - igt_info("cs-multi-fence-with-IP-GFX testes areskipped due to GFX11 or no GFX_IP\n");
tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 5 lines
tests/amdgpu/amd_basic.c +1
-3- } - } + args.in.op =AMDGPU_VM_OP_CLEAR_L2_TRAP ; - igt_describe("Check-DMA-CS-for-every-available-ring-works-for-write-const-fill-copy-operation");
Quoted 40 lines
tests/amdgpu/amd_basic.c +14
-23- igt_subtest_with_dynamic("cs-sdma-with-IP-DMA") { -if (arr_cap[AMD_IP_DMA ]) { - igt_dynamic_f("cs-sdma") -amdgpu_command_submission_sdma (device, false); - } - } +return drmIoctl (fd,DRM_IOCTL_AMDGPU_VM , &args); +} -igt_describe ("Check-signal-semaphore-on-DMA-wait-on-GFX" ); - igt_subtest_with_dynamic("semaphore-with-IP-GFX-and-IP-DMA") { -if (arr_cap[AMD_IP_GFX ] && arr_cap[AMD_IP_DMA ]) { - igt_dynamic_f("semaphore") -amdgpu_semaphore_test (device); - } - } +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; -igt_describe ("Check-eviction-using-DMA-max-allocation-size" ); - igt_subtest_with_dynamic("eviction-test-with-IP-DMA") { -if (arr_cap[AMD_IP_DMA ]) { - igt_dynamic_f("eviction_test") -amdgpu_bo_eviction_test (device); - } - } + r =amdgpu_query_gpu_info (device, &info); +igt_assert_eq (r,0 ); -igt_describe ("Check-sync-dependency-using-GFX-ring" ); - igt_subtest_with_dynamic("sync-dependency-test-with-IP-GFX") { -if (arr_cap[AMD_IP_GFX ]) {tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 10 lines
tests/amdgpu/amd_basic.c +4
-5- igt_dynamic_f("sync-dependency-test") -amdgpu_sync_dependency_test (device, false); - } - } + r =amdgpu_family_id_to_mcpu (info.family_id, + mcpu, +sizeof (mcpu)); +igt_assert_eq (r,0 ); - igt_describe("Check-GFX-CS-for-every-available-ring-works-for-write-const-fill-and-copy-operation-using-more-than-one-IB-and-shared-IB");
tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 4 lines
tests/amdgpu/amd_basic.c +0
-4- igt_subtest_with_dynamic("cs-gfx-with-IP-GFX-UMQ") { -if (enable_test && userq_arr_cap[AMD_IP_GFX ]) { - igt_dynamic_f("cs-gfx-with-umq") - amdgpu_command_submission_gfx(device,info.hw_ip_version_major < 11, true);
tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 7 lines
tests/amdgpu/amd_basic.c +3
-3- } - } +igt_info ("family_id=%u mcpu=%s\n" , + info.family_id, + mcpu); - igt_describe("Check-COMPUTE-CS-for-every-available-ring-works-for-write-const-fill-copy-and-nop-operation");
tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 4 lines
tests/amdgpu/amd_basic.c +0
-4- igt_subtest_with_dynamic("cs-compute-with-IP-COMPUTE-UMQ") { -if (enable_test && userq_arr_cap[AMD_IP_COMPUTE ]) { - igt_dynamic_f("cs-compute-with-umq") - amdgpu_command_submission_compute(device,true);
tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 10 lines
tests/amdgpu/amd_basic.c +5
-4- } - } + r =amdgpu_llvm_assemble (mcpu, + handler, + isa_bin, +sizeof (isa_bin), + &isa_sz); -igt_describe ("Check-sync-dependency-using-GFX-ring" ); - igt_subtest_with_dynamic("sync-dependency-test-with-IP-GFX-UMQ") {
tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 9 lines
tests/amdgpu/amd_basic.c +2
-6-if (enable_test && userq_arr_cap[AMD_IP_GFX ]) { - igt_dynamic_f("sync-dependency-test-with-umq") -amdgpu_sync_dependency_test (device, true); - } - } +if (r) +igt_info ("amdgpu_llvm_assemble failed r=%d\n" , r); - igt_describe("Check-DMA-CS-for-every-available-ring-works-for-write-const-fill-copy-operation");
Quoted 9 lines
tests/amdgpu/amd_basic.c +4
-5- igt_subtest_with_dynamic("cs-sdma-with-IP-DMA-UMQ") { -if (enable_test && userq_arr_cap[AMD_IP_DMA ]) { - igt_dynamic_f("cs-sdma-with-umq") -amdgpu_command_submission_sdma (device, true); - } +igt_assert_eq (r,0 ); +igt_assert (isa_sz >0 ); + +memset (bufs->tba_cpu,0 ,TBA_SIZE );tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 10 lines
tests/amdgpu/amd_basic.c +10
-0+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_handledevice,
Quoted 50 lines
tests/amdgpu/amd_basic.c +40
-8+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_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_DMA ]) { - igt_dynamic_f("all-queues-with-umq") -amdgpu_test_all_queues (device, true); - } +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",tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 10 lines
tests/amdgpu/amd_basic.c +3
-5+ i, + ((uint32_t *)isa_bin)[i]); } +} -igt_describe ("Check-GFX-CS-FENCE_WAIT_MULTI-packet" ); - igt_subtest_with_dynamic("cs-gfx-fwm-UMQ") { -if (enable_test && userq_arr_cap[AMD_IP_GFX ]) { - igt_dynamic_f("cs-gfx-fwm-umq") - amdgpu_fwm_test(device,
AMDGPU_HW_IP_GFX);Quoted 171 lines
tests/amdgpu/amd_basic.c +170
-1- } +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++) {tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 10 lines
tests/amdgpu/amd_basic.c +3
-5+igt_info ("PRE[%d] = 0x%08x\n" , + i, + ptr_output[i]); } -igt_describe ("Check-COMPUTE-CS-FENCE_WAIT_MULTI-packet" ); - igt_subtest_with_dynamic("cs-compute-fwm-UMQ") { -if (enable_test && userq_arr_cap[AMD_IP_COMPUTE ]) { - igt_dynamic_f("cs-compute-fwm-umq") - amdgpu_fwm_test(device,
AMDGPU_HW_IP_COMPUTE);Quoted 128 lines
tests/amdgpu/amd_basic.c +125
-1- } +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" ); +tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 10 lines
tests/amdgpu/amd_basic.c +10
-0+ 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, shaderresumed successfully\n");
tests/amdgpu/amd_basic.c static void · line 1347
Quoted 2 lines
tests/amdgpu/amd_basic.c +2
-0+else + igt_info("SLTH GFX KQ VGPR proof failed: expected=42actual=%u\n",
Quoted 1,094 lines
tests/amdgpu/amd_basic.c +1094
-0+ 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" ); +} + +static void slth_gfx_umq_vgpr_proof_test (amdgpu_device_handle device, +int fd) +{ +const struct amdgpu_ip_block_version *gfx_ip = +get_ip_block (device,AMD_IP_GFX ); + +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; + +uint8_t isa_bin[8192 ]; +size_t isa_sz =0 ; + +const uint32_t *shader; +uint32_t size_bytes; + +struct slth_bufs bufs; + +int r; + +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); + +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); + +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); + + 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" ); + +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); +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 ); + + 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 ); + + 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" ); + +for (int i =0 ; i < base_cmd->cdw; i++) { +igt_info ("PM4[%02d] = 0x%08x\n" , + i, + ptr_pm4[i]); + } + +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); + +for (int i =0 ; i <1000 ; i++) { +if (ptr_output[0 ]) +break ; + +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 ); + +free_cmd_base (base_cmd); + + gfx_ip->funcs->userq_destroy (device, + ring_context, + gfx_ip->type); + + 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); + +igt_info ("UMQ queue destroyed\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" ); +} + +int igt_main () +{ +amdgpu_device_handle device; +struct amdgpu_gpu_info gpu_info = {0 }; +struct drm_amdgpu_info_hw_ip info = {0 }; +int fd =-1 ; +int r; +bool arr_cap[AMD_IP_MAX ] = {0 }; +bool userq_arr_cap[AMD_IP_MAX ] = {0 }; +bool enable_test = false; +#ifdef AMDGPU_USERQ_ENABLED + + enable_test = true; +#endif + + igt_fixture() { +uint32_t major, minor; +int err; + +log_total_time (true,igt_test_name ()); + fd =drm_open_driver (DRIVER_AMDGPU );tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 10 lines
tests/amdgpu/amd_basic.c +10
-0+ + err =amdgpu_device_initialize (fd, &major, &minor, &device); +igt_require (err ==0 ); + +igt_info ("Initialized amdgpu, driver version %d.%d\n" , + major, minor); + + r =amdgpu_query_gpu_info (device, &gpu_info); +igt_assert_eq (r,0 ); + r = amdgpu_query_hw_ip_info(device,
AMDGPU_HW_IP_GFX, 0, &info);tests/amdgpu/amd_basic.c static void · line 2453
Quoted 2 lines
tests/amdgpu/amd_basic.c +2
-0+igt_assert_eq (r,0 ); + r = setup_amdgpu_ip_blocks(major, minor, &gpu_info,device);
tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 6 lines
tests/amdgpu/amd_basic.c +6
-0+igt_assert_eq (r,0 ); +asic_rings_readness (device,1 , arr_cap); +asic_userq_readiness (device, userq_arr_cap); +amd_platform_filter_init (&gpu_info); + } + igt_describe("Check-alloc-free-VRAM-visible-non-visible-GART-write-combined-cached");
tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 4 lines
tests/amdgpu/amd_basic.c +4
-0+ igt_subtest("memory-alloc") +amdgpu_memory_alloc (device); + + igt_describe("Check-DMA-CS-works-by-setting-the-pattern-and-after-execution-compare-memory-with-the-golden-settings");
tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 8 lines
tests/amdgpu/amd_basic.c +8
-0+ igt_subtest_with_dynamic("userptr-with-IP-DMA") { +if (arr_cap[AMD_IP_DMA ]) { + igt_dynamic_f("userptr") +amdgpu_userptr_test (device); + } + } + + igt_describe("Check-GFX-CS-for-every-available-ring-works-for-write-const-fill-and-copy-operation-using-more-than-one-IB-and-shared-IB");
tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 4 lines
tests/amdgpu/amd_basic.c +4
-0+ igt_subtest_with_dynamic("cs-gfx-with-IP-GFX") { +if (arr_cap[AMD_IP_GFX ]) { + igt_dynamic_f("cs-gfx") + amdgpu_command_submission_gfx(device,info.hw_ip_version_major < 11, false);
tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 4 lines
tests/amdgpu/amd_basic.c +4
-0+ } + } + + igt_describe("Check-COMPUTE-CS-for-every-available-ring-works-for-write-const-fill-copy-and-nop-operation");
tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 4 lines
tests/amdgpu/amd_basic.c +4
-0+ igt_subtest_with_dynamic("cs-compute-with-IP-COMPUTE") { +if (arr_cap[AMD_IP_COMPUTE ]) { + igt_dynamic_f("cs-compute") + amdgpu_command_submission_compute(device,false);
tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 6 lines
tests/amdgpu/amd_basic.c +6
-0+ } + } + +igt_describe ("Check-GFX-CS-for-multi-fence" ); + igt_subtest_with_dynamic("cs-multi-fence-with-IP-GFX") { +if (arr_cap[AMD_IP_GFX ] && info.hw_ip_version_major <11 ){
tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 4 lines
tests/amdgpu/amd_basic.c +4
-0+ igt_dynamic_f("cs-multi-fence") +amdgpu_command_submission_multi_fence (device); + }else { + igt_info("cs-multi-fence-with-IP-GFX testes areskipped due to GFX11 or no GFX_IP\n");
tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 4 lines
tests/amdgpu/amd_basic.c +4
-0+ } + } + + igt_describe("Check-DMA-CS-for-every-available-ring-works-for-write-const-fill-copy-operation");
Quoted 22 lines
tests/amdgpu/amd_basic.c +22
-0+ igt_subtest_with_dynamic("cs-sdma-with-IP-DMA") { +if (arr_cap[AMD_IP_DMA ]) { + igt_dynamic_f("cs-sdma") +amdgpu_command_submission_sdma (device, false); + } + } + +igt_describe ("Check-signal-semaphore-on-DMA-wait-on-GFX" ); + igt_subtest_with_dynamic("semaphore-with-IP-GFX-and-IP-DMA") { +if (arr_cap[AMD_IP_GFX ] && arr_cap[AMD_IP_DMA ]) { + igt_dynamic_f("semaphore") +amdgpu_semaphore_test (device); + } + } + +igt_describe ("Check-eviction-using-DMA-max-allocation-size" ); + igt_subtest_with_dynamic("eviction-test-with-IP-DMA") { +if (arr_cap[AMD_IP_DMA ]) { + igt_dynamic_f("eviction_test") +amdgpu_bo_eviction_test (device); + } + }tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 10 lines
tests/amdgpu/amd_basic.c +10
-0+ +igt_describe ("Check-sync-dependency-using-GFX-ring" ); + igt_subtest_with_dynamic("sync-dependency-test-with-IP-GFX") { +if (arr_cap[AMD_IP_GFX ]) { + igt_dynamic_f("sync-dependency-test") +amdgpu_sync_dependency_test (device, false); + } + } + + igt_describe("Check-GFX-CS-for-every-available-ring-works-for-write-const-fill-and-copy-operation-using-more-than-one-IB-and-shared-IB");
tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 4 lines
tests/amdgpu/amd_basic.c +4
-0+ igt_subtest_with_dynamic("cs-gfx-with-IP-GFX-UMQ") { +if (enable_test && userq_arr_cap[AMD_IP_GFX ]) { + igt_dynamic_f("cs-gfx-with-umq") + amdgpu_command_submission_gfx(device,info.hw_ip_version_major < 11, true);
tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 4 lines
tests/amdgpu/amd_basic.c +4
-0+ } + } + + igt_describe("Check-COMPUTE-CS-for-every-available-ring-works-for-write-const-fill-copy-and-nop-operation");
tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 4 lines
tests/amdgpu/amd_basic.c +4
-0+ igt_subtest_with_dynamic("cs-compute-with-IP-COMPUTE-UMQ") { +if (enable_test && userq_arr_cap[AMD_IP_COMPUTE ]) { + igt_dynamic_f("cs-compute-with-umq") + amdgpu_command_submission_compute(device,true);
tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 5 lines
tests/amdgpu/amd_basic.c +5
-0+ } + } + +igt_describe ("Check-sync-dependency-using-GFX-ring" ); + igt_subtest_with_dynamic("sync-dependency-test-with-IP-GFX-UMQ") {
tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 7 lines
tests/amdgpu/amd_basic.c +7
-0+if (enable_test && userq_arr_cap[AMD_IP_GFX ]) { + igt_dynamic_f("sync-dependency-test-with-umq") +amdgpu_sync_dependency_test (device, true); + } + } + + igt_describe("Check-DMA-CS-for-every-available-ring-works-for-write-const-fill-copy-operation");
Quoted 12 lines
tests/amdgpu/amd_basic.c +12
-0+ igt_subtest_with_dynamic("cs-sdma-with-IP-DMA-UMQ") { +if (enable_test && userq_arr_cap[AMD_IP_DMA ]) { + igt_dynamic_f("cs-sdma-with-umq") +amdgpu_command_submission_sdma (device, true); + } + } + +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_DMA ]) {tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 10 lines
tests/amdgpu/amd_basic.c +10
-0+ igt_dynamic_f("all-queues-with-umq") +amdgpu_test_all_queues (device, true); + } + } + +igt_describe ("Check-GFX-CS-FENCE_WAIT_MULTI-packet" ); + igt_subtest_with_dynamic("cs-gfx-fwm-UMQ") { +if (enable_test && userq_arr_cap[AMD_IP_GFX ]) { + igt_dynamic_f("cs-gfx-fwm-umq") + amdgpu_fwm_test(device,
AMDGPU_HW_IP_GFX);tests/amdgpu/amd_basic.c static void amdgpu_fwm_test(amdgpu_device_handle device_handle, unsigned ip_type
Quoted 8 lines
tests/amdgpu/amd_basic.c +8
-0+ } + } + +igt_describe ("Check-COMPUTE-CS-FENCE_WAIT_MULTI-packet" ); + igt_subtest_with_dynamic("cs-compute-fwm-UMQ") { +if (enable_test && userq_arr_cap[AMD_IP_COMPUTE ]) { + igt_dynamic_f("cs-compute-fwm-umq") + amdgpu_fwm_test(device,
AMDGPU_HW_IP_COMPUTE);Quoted 18 lines
tests/amdgpu/amd_basic.c +15
-0+ } + } + + 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_fixture() {amdgpu_device_deinitialize (device);drm_close_driver (fd);
Patchwork
CI✗ Xe.CI.FULL: failure for series starting with [i-g-t,V2,1/8] 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,V2,1/8] tests/amdgpu: Add SLTH validation tests for trap handling and trap return.
URL : https://patchwork.freedesktop.org/series/178848/
State : failure
== Summary ==
CI Bug Log - changes from XEIGT_9196_FULL -> XEIGTPW_16168_FULL
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with XEIGTPW_16168_FULL absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes
introduced in XEIGTPW_16168_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_16168_FULL:
### IGT changes ###
#### Possible regressions ####
* igt@kms_pm_rpm@system-suspend-idle:
- shard-lnl: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-lnl-1/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-1/igt@[email protected]
#### Warnings ####
* igt@xe_survivability@runtime-survivability:
- shard-bmg: [DMESG-WARN][3] ([Intel XE#9365]) -> [DMESG-WARN][4]
[3]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-6/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-10/igt@[email protected]
Known issues
------------
Here are the changes found in XEIGTPW_16168_FULL that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@core_hotunplug@hotunplug-rescan:
- shard-bmg: [PASS][5] -> [SKIP][6] ([Intel XE#8749])
[5]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-6/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-3/igt@[email protected]
* igt@kms_atomic_transition@plane-all-modeset-transition:
- shard-bmg: NOTRUN -> [FAIL][7] ([Intel XE#8098] / [Intel XE#9561])
[7]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-7/igt@[email protected]
- shard-lnl: NOTRUN -> [SKIP][8] ([Intel XE#3279])
[8]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-3/igt@[email protected]
* igt@kms_atomic_transition@plane-all-modeset-transition@pipe-a-dp-1:
- shard-bmg: NOTRUN -> [FAIL][9] ([Intel XE#9561])
[9]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-7/igt@kms_atomic_transition@[email protected]
* igt@kms_big_fb@4-tiled-max-hw-stride-32bpp-rotate-0-async-flip:
- shard-lnl: [PASS][10] -> [FAIL][11] ([Intel XE#1231] / [Intel XE#8628])
[10]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-lnl-7/igt@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-5/igt@[email protected]
* igt@kms_big_fb@4-tiled-max-hw-stride-32bpp-rotate-180-hflip-async-flip:
- shard-lnl: NOTRUN -> [SKIP][12] ([Intel XE#3658] / [Intel XE#7360])
[12]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-2/igt@kms_big_fb@4-tiled-max-hw-stride-32bpp-rotate-180-hflip-async-flip.html
* igt@kms_big_fb@4-tiled-max-hw-stride-64bpp-rotate-0-hflip:
- shard-ptl: NOTRUN -> [SKIP][13] ([Intel XE#5901]) +1 other test skip
[13]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-4/igt@[email protected]
* igt@kms_big_fb@linear-64bpp-rotate-270:
- shard-bmg: NOTRUN -> [SKIP][14] ([Intel XE#2327])
[14]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-1/igt@[email protected]
* igt@kms_big_fb@x-tiled-16bpp-rotate-0:
- shard-ptl: NOTRUN -> [SKIP][15] ([Intel XE#5808]) +2 other tests skip
[15]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-3/igt@[email protected]
* igt@kms_big_fb@x-tiled-64bpp-rotate-90:
- shard-lnl: NOTRUN -> [SKIP][16] ([Intel XE#1407])
[16]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-4/igt@[email protected]
* igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-0:
- shard-bmg: NOTRUN -> [SKIP][17] ([Intel XE#1124]) +5 other tests skip
[17]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-9/igt@[email protected]
- shard-lnl: NOTRUN -> [SKIP][18] ([Intel XE#1124]) +1 other test skip
[18]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-6/igt@[email protected]
* igt@kms_bw@connected-linear-tiling-3-displays-target-1920x1080p:
- shard-bmg: NOTRUN -> [SKIP][19] ([Intel XE#7679])
[19]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-2/igt@[email protected]
* igt@kms_bw@connected-linear-tiling-3-displays-target-3840x2160p:
- shard-lnl: NOTRUN -> [SKIP][20] ([Intel XE#7679]) +1 other test skip
[20]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-5/igt@[email protected]
* igt@kms_bw@linear-tiling-1-displays-target-2560x1440p:
- shard-bmg: [PASS][21] -> [SKIP][22] ([Intel XE#367])
[21]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-7/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-4/igt@[email protected]
* igt@kms_bw@linear-tiling-2-displays-target-2560x1440p:
- shard-bmg: NOTRUN -> [SKIP][23] ([Intel XE#367]) +1 other test skip
[23]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-4/igt@[email protected]
* igt@kms_bw@linear-tiling-4-displays-target-1920x1080p:
- shard-ptl: NOTRUN -> [SKIP][24] ([Intel XE#367])
[24]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-2/igt@[email protected]
* igt@kms_ccs@crc-primary-basic-4-tiled-dg2-rc-ccs-cc:
- shard-bmg: NOTRUN -> [SKIP][25] ([Intel XE#2887]) +7 other tests skip
[25]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-3/igt@[email protected]
* igt@kms_ccs@crc-primary-suspend-4-tiled-bmg-ccs:
- shard-bmg: NOTRUN -> [INCOMPLETE][26] ([Intel XE#7084] / [Intel XE#8150]) +1 other test incomplete
[26]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-3/igt@[email protected]
* igt@kms_ccs@crc-primary-suspend-4-tiled-bmg-ccs@pipe-a-edp-1:
- shard-ptl: NOTRUN -> [SKIP][27] ([Intel XE#5823] / [Intel XE#6918]) +4 other tests skip
[27]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-7/igt@kms_ccs@[email protected]
* igt@kms_ccs@crc-primary-suspend-y-tiled-ccs:
- shard-bmg: NOTRUN -> [SKIP][28] ([Intel XE#3432])
[28]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-9/igt@[email protected]
* igt@kms_ccs@crc-sprite-planes-basic-4-tiled-dg2-rc-ccs-cc:
- shard-lnl: NOTRUN -> [SKIP][29] ([Intel XE#2887]) +2 other tests skip
[29]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-2/igt@[email protected]
* igt@kms_ccs@random-ccs-data-4-tiled-lnl-ccs@pipe-c-dp-2:
- shard-bmg: NOTRUN -> [SKIP][30] ([Intel XE#2652]) +3 other tests skip
[30]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-9/igt@kms_ccs@[email protected]
* igt@kms_ccs@random-ccs-data-y-tiled-ccs:
- shard-ptl: NOTRUN -> [SKIP][31] ([Intel XE#5822]) +4 other tests skip
[31]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-5/igt@[email protected]
* igt@kms_cdclk@mode-transition-all-outputs:
- shard-lnl: NOTRUN -> [SKIP][32] ([Intel XE#7008])
[32]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-2/igt@[email protected]
* igt@kms_chamelium_color@ctm-green-to-red:
- shard-ptl: NOTRUN -> [SKIP][33] ([Intel XE#5824])
[33]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-4/igt@[email protected]
* igt@kms_chamelium_color@ctm-red-to-blue:
- shard-bmg: NOTRUN -> [SKIP][34] ([Intel XE#2325] / [Intel XE#7358])
[34]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-1/igt@[email protected]
* igt@kms_chamelium_color_pipeline@plane-fixed-matrix-yuv-rgb-bt709-lim:
- shard-ptl: NOTRUN -> [SKIP][35] ([Intel XE#8391])
[35]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-5/igt@kms_chamelium_color_pipeline@plane-fixed-matrix-yuv-rgb-bt709-lim.html
* igt@kms_chamelium_color_pipeline@plane-fixed-matrix-yuv-rgb-bt709-lut1d:
- shard-bmg: NOTRUN -> [SKIP][36] ([Intel XE#7358]) +2 other tests skip
[36]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-6/igt@kms_chamelium_color_pipeline@plane-fixed-matrix-yuv-rgb-bt709-lut1d.html
* igt@kms_chamelium_frames@dp-crc-multiple:
- shard-ptl: NOTRUN -> [SKIP][37] ([Intel XE#2252]) +1 other test skip
[37]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-8/igt@[email protected]
* igt@kms_chamelium_hpd@dp-hpd-after-suspend:
- shard-bmg: NOTRUN -> [SKIP][38] ([Intel XE#2252]) +3 other tests skip
[38]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-1/igt@[email protected]
* igt@kms_color_pipeline@plane-ctm3x4-lut1d@pipe-b-plane-4:
- shard-bmg: NOTRUN -> [SKIP][39] ([Intel XE#6969]) +7 other tests skip
[39]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-10/igt@kms_color_pipeline@[email protected]
* igt@kms_color_pipeline@plane-ctm3x4-lut1d@pipe-d-plane-3:
- shard-ptl: NOTRUN -> [SKIP][40] ([Intel XE#6969]) +7 other tests skip
[40]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-2/igt@kms_color_pipeline@[email protected]
* igt@kms_content_protection@atomic-dpms-hdcp14@pipe-a-dp-1:
- shard-bmg: NOTRUN -> [FAIL][41] ([Intel XE#3304])
[41]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-7/igt@kms_content_protection@[email protected]
* igt@kms_content_protection@dp-mst-type-0-suspend-resume:
- shard-ptl: NOTRUN -> [SKIP][42] ([Intel XE#6974])
[42]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-5/igt@[email protected]
- shard-bmg: NOTRUN -> [SKIP][43] ([Intel XE#6974])
[43]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-6/igt@[email protected]
* igt@kms_content_protection@dp-mst-type-1:
- shard-bmg: NOTRUN -> [SKIP][44] ([Intel XE#2390] / [Intel XE#6974])
[44]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-1/igt@[email protected]
* igt@kms_content_protection@legacy-hdcp14:
- shard-ptl: NOTRUN -> [SKIP][45] ([Intel XE#7642])
[45]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-5/igt@[email protected]
* igt@kms_content_protection@lic-type-1:
- shard-lnl: NOTRUN -> [SKIP][46] ([Intel XE#7642]) +1 other test skip
[46]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-7/igt@[email protected]
- shard-bmg: NOTRUN -> [SKIP][47] ([Intel XE#7642])
[47]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-5/igt@[email protected]
* igt@kms_cursor_crc@cursor-offscreen-32x32:
- shard-bmg: NOTRUN -> [SKIP][48] ([Intel XE#2320]) +2 other tests skip
[48]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-2/igt@[email protected]
* igt@kms_cursor_crc@cursor-onscreen-512x512:
- shard-bmg: NOTRUN -> [SKIP][49] ([Intel XE#2321] / [Intel XE#7355])
[49]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-1/igt@[email protected]
* igt@kms_cursor_crc@cursor-sliding-max-size:
- shard-ptl: NOTRUN -> [SKIP][50] ([Intel XE#5900])
[50]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-4/igt@[email protected]
* igt@kms_cursor_legacy@cursora-vs-flipb-atomic:
- shard-ptl: NOTRUN -> [SKIP][51] ([Intel XE#5962])
[51]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-6/igt@[email protected]
* igt@kms_cursor_legacy@cursorb-vs-flipb-varying-size:
- shard-ptl: NOTRUN -> [SKIP][52] ([Intel XE#5962] / [Intel XE#7343]) +1 other test skip
[52]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-4/igt@[email protected]
* igt@kms_dither@fb-8bpc-vs-panel-6bpc@pipe-a-hdmi-a-3:
- shard-bmg: NOTRUN -> [SKIP][53] ([Intel XE#1340] / [Intel XE#7435])
[53]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-7/igt@kms_dither@[email protected]
* igt@kms_dp_link_training@uhbr-sst:
- shard-bmg: NOTRUN -> [SKIP][54] ([Intel XE#9535])
[54]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-5/igt@[email protected]
* igt@kms_dsc@dsc-fractional-bpp-bigjoiner:
- shard-bmg: NOTRUN -> [SKIP][55] ([Intel XE#8265]) +4 other tests skip
[55]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-3/igt@[email protected]
- shard-ptl: NOTRUN -> [SKIP][56] ([Intel XE#5907])
[56]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-4/igt@[email protected]
* igt@kms_feature_discovery@dsc:
- shard-bmg: NOTRUN -> [SKIP][57] ([Intel XE#8586])
[57]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-10/igt@[email protected]
- shard-lnl: NOTRUN -> [SKIP][58] ([Intel XE#8586])
[58]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-5/igt@[email protected]
* igt@kms_feature_discovery@psr1:
- shard-bmg: NOTRUN -> [SKIP][59] ([Intel XE#8589]) +16 other tests skip
[59]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-3/igt@[email protected]
* igt@kms_flip@2x-absolute-wf_vblank:
- shard-ptl: NOTRUN -> [SKIP][60] ([Intel XE#2316]) +1 other test skip
[60]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-1/igt@kms_flip@2x-absolute-wf_vblank.html
* igt@kms_flip@flip-vs-expired-vblank-interruptible@b-edp1:
- shard-lnl: [PASS][61] -> [FAIL][62] ([Intel XE#301]) +1 other test fail
[61]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-lnl-6/igt@kms_flip@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-8/igt@kms_flip@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-64bpp-ytile-upscaling:
- shard-bmg: NOTRUN -> [SKIP][63] ([Intel XE#7178] / [Intel XE#7351])
[63]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-10/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-64bpp-ytile-upscaling.html
* igt@kms_flip_scaled_crc@flip-p016-linear-to-p016-linear-reflect-x:
- shard-bmg: NOTRUN -> [SKIP][64] ([Intel XE#7179])
[64]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-5/igt@kms_flip_scaled_crc@flip-p016-linear-to-p016-linear-reflect-x.html
- shard-lnl: NOTRUN -> [SKIP][65] ([Intel XE#7179])
[65]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-7/igt@kms_flip_scaled_crc@flip-p016-linear-to-p016-linear-reflect-x.html
* igt@kms_frontbuffer_tracking@drrs-1p-primscrn-spr-indfb-fullscreen:
- shard-lnl: NOTRUN -> [SKIP][66] ([Intel XE#6312] / [Intel XE#651]) +1 other test skip
[66]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-5/igt@kms_frontbuffer_tracking@drrs-1p-primscrn-spr-indfb-fullscreen.html
* igt@kms_frontbuffer_tracking@drrs-argb161616f-draw-render:
- shard-bmg: NOTRUN -> [SKIP][67] ([Intel XE#7061] / [Intel XE#7356])
[67]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-9/igt@[email protected]
* igt@kms_frontbuffer_tracking@drrshdr-slowdraw:
- shard-bmg: NOTRUN -> [SKIP][68] ([Intel XE#2311]) +40 other tests skip
[68]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-5/igt@[email protected]
- shard-lnl: NOTRUN -> [SKIP][69] ([Intel XE#6312]) +1 other test skip
[69]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-7/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-fullscreen:
- shard-bmg: NOTRUN -> [SKIP][70] ([Intel XE#4141]) +12 other tests skip
[70]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-4/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-fullscreen.html
* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-spr-indfb-draw-blt:
- shard-lnl: NOTRUN -> [SKIP][71] ([Intel XE#656] / [Intel XE#7905]) +5 other tests skip
[71]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-3/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-tiling-y:
- shard-ptl: NOTRUN -> [SKIP][72] ([Intel XE#5865] / [Intel XE#7399])
[72]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-6/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcdrrs-1p-offscreen-pri-indfb-draw-mmap-wc:
- shard-ptl: NOTRUN -> [SKIP][73] ([Intel XE#6312]) +4 other tests skip
[73]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-5/igt@kms_frontbuffer_tracking@fbcdrrs-1p-offscreen-pri-indfb-draw-mmap-wc.html
* igt@kms_frontbuffer_tracking@fbcdrrs-2p-scndscrn-spr-indfb-draw-mmap-wc:
- shard-ptl: NOTRUN -> [SKIP][74] ([Intel XE#5812]) +30 other tests skip
[74]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-2/igt@kms_frontbuffer_tracking@fbcdrrs-2p-scndscrn-spr-indfb-draw-mmap-wc.html
* igt@kms_frontbuffer_tracking@fbcdrrs-abgr161616f-draw-render:
- shard-ptl: NOTRUN -> [SKIP][75] ([Intel XE#7061] / [Intel XE#7356])
[75]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-5/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcdrrs-tiling-y:
- shard-bmg: NOTRUN -> [SKIP][76] ([Intel XE#2352] / [Intel XE#7399]) +1 other test skip
[76]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-2/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbchdr-2p-scndscrn-cur-indfb-onoff:
- shard-bmg: [PASS][77] -> [SKIP][78] ([Intel XE#8589]) +42 other tests skip
[77]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-9/igt@[email protected]
[78]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-3/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbchdr-argb161616f-draw-blt:
- shard-bmg: NOTRUN -> [SKIP][79] ([Intel XE#7061])
[79]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-2/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbchdr-suspend:
- shard-ptl: NOTRUN -> [SKIP][80] ([Intel XE#7865]) +8 other tests skip
[80]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-4/igt@[email protected]
* igt@kms_frontbuffer_tracking@hdr-1p-primscrn-spr-indfb-fullscreen:
- shard-lnl: NOTRUN -> [SKIP][81] ([Intel XE#7865]) +3 other tests skip
[81]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-8/igt@kms_frontbuffer_tracking@hdr-1p-primscrn-spr-indfb-fullscreen.html
* igt@kms_frontbuffer_tracking@hdr-2p-scndscrn-indfb-msflip-blt:
- shard-lnl: NOTRUN -> [SKIP][82] ([Intel XE#7905]) +5 other tests skip
[82]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-2/igt@[email protected]
* igt@kms_frontbuffer_tracking@hdr-argb161616f-draw-mmap-wc:
- shard-lnl: NOTRUN -> [SKIP][83] ([Intel XE#7061])
[83]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-6/igt@[email protected]
* igt@kms_frontbuffer_tracking@psrhdr-2p-primscrn-pri-shrfb-draw-render:
- shard-bmg: NOTRUN -> [SKIP][84] ([Intel XE#2313]) +35 other tests skip
[84]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-10/igt@kms_frontbuffer_tracking@psrhdr-2p-primscrn-pri-shrfb-draw-render.html
* igt@kms_hdmi_audio_bw@audio-bw-hblank160:
- shard-ptl: NOTRUN -> [SKIP][85] ([Intel XE#9312])
[85]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-2/igt@[email protected]
* igt@kms_hdr@invalid-hdr:
- shard-bmg: [PASS][86] -> [SKIP][87] ([Intel XE#1503])
[86]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-2/igt@[email protected]
[87]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-1/igt@[email protected]
* igt@kms_joiner@invalid-modeset-ultra-joiner:
- shard-ptl: NOTRUN -> [SKIP][88] ([Intel XE#6900])
[88]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-5/igt@[email protected]
* igt@kms_panel_fitting@legacy:
- shard-bmg: NOTRUN -> [SKIP][89] ([Intel XE#2486])
[89]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-5/igt@[email protected]
* igt@kms_pipe_stress@stress-xrgb8888-4tiled:
- shard-bmg: NOTRUN -> [DMESG-FAIL][90] ([Intel XE#6652] / [Intel XE#7774])
[90]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-3/igt@[email protected]
* igt@kms_plane@pixel-format-4-tiled-mtl-rc-ccs-modifier-source-clamping:
- shard-bmg: NOTRUN -> [SKIP][91] ([Intel XE#7283]) +3 other tests skip
[91]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-1/igt@kms_plane@pixel-format-4-tiled-mtl-rc-ccs-modifier-source-clamping.html
- shard-ptl: NOTRUN -> [SKIP][92] ([Intel XE#7283]) +1 other test skip
[92]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-3/igt@kms_plane@pixel-format-4-tiled-mtl-rc-ccs-modifier-source-clamping.html
* igt@kms_plane_lowres@tiling-y:
- shard-bmg: NOTRUN -> [SKIP][93] ([Intel XE#2393])
[93]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-5/igt@[email protected]
* igt@kms_plane_multiple@2x-tiling-x:
- shard-lnl: NOTRUN -> [SKIP][94] ([Intel XE#4596] / [Intel XE#5854])
[94]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-5/igt@[email protected]
* igt@kms_plane_scaling@plane-downscale-max-crc-4-tiled@pipe-c-dp-2-p010:
- shard-bmg: [PASS][95] -> [FAIL][96] ([Intel XE#9780]) +9 other tests fail
[95]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-8/igt@kms_plane_scaling@[email protected]
[96]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-10/igt@kms_plane_scaling@[email protected]
* igt@kms_plane_scaling@plane-upscale-max-crc-rotation-180-y-tiled:
- shard-bmg: NOTRUN -> [SKIP][97] ([Intel XE#9779])
[97]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-3/igt@kms_plane_scaling@plane-upscale-max-crc-rotation-180-y-tiled.html
- shard-ptl: NOTRUN -> [SKIP][98] ([Intel XE#9779])
[98]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-4/igt@kms_plane_scaling@plane-upscale-max-crc-rotation-180-y-tiled.html
* igt@kms_pm_backlight@bad-brightness:
- shard-bmg: NOTRUN -> [SKIP][99] ([Intel XE#7376] / [Intel XE#7760] / [Intel XE#870])
[99]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-4/igt@[email protected]
* igt@kms_pm_backlight@brightness-with-dpms:
- shard-bmg: NOTRUN -> [SKIP][100] ([Intel XE#2938] / [Intel XE#7376] / [Intel XE#7760])
[100]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-8/igt@[email protected]
* igt@kms_pm_dc@dc3co-after-dc6@pr-xrgb8888:
- shard-lnl: NOTRUN -> [SKIP][101] ([Intel XE#8395] / [Intel XE#8396]) +1 other test skip
[101]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-5/igt@kms_pm_dc@[email protected]
* igt@kms_pm_dc@dc3co-after-dc6@psr2-yuv420:
- shard-lnl: NOTRUN -> [SKIP][102] ([Intel XE#8396]) +1 other test skip
[102]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-5/igt@kms_pm_dc@[email protected]
* igt@kms_pm_rpm@modeset-lpsp-stress-no-wait:
- shard-bmg: NOTRUN -> [SKIP][103] ([Intel XE#1439] / [Intel XE#3141] / [Intel XE#7383] / [Intel XE#836])
[103]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-9/igt@[email protected]
* igt@kms_psr2_sf@fbc-pr-cursor-plane-move-continuous-exceed-fully-sf:
- shard-lnl: NOTRUN -> [SKIP][104] ([Intel XE#2893] / [Intel XE#7304])
[104]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-5/igt@kms_psr2_sf@fbc-pr-cursor-plane-move-continuous-exceed-fully-sf.html
* igt@kms_psr2_sf@fbc-pr-cursor-plane-move-continuous-sf:
- shard-bmg: NOTRUN -> [SKIP][105] ([Intel XE#1489]) +3 other tests skip
[105]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-1/igt@[email protected]
* igt@kms_psr2_sf@pr-overlay-plane-update-continuous-sf:
- shard-ptl: NOTRUN -> [SKIP][106] ([Intel XE#7304])
[106]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-8/igt@[email protected]
* igt@kms_psr2_su@frontbuffer-xrgb8888:
- shard-bmg: NOTRUN -> [SKIP][107] ([Intel XE#2387] / [Intel XE#7429])
[107]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-2/igt@[email protected]
* igt@kms_psr@fbc-pr-cursor-plane-move:
- shard-lnl: NOTRUN -> [SKIP][108] ([Intel XE#1406])
[108]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-3/igt@[email protected]
* igt@kms_psr@fbc-psr2-basic:
- shard-bmg: NOTRUN -> [SKIP][109] ([Intel XE#2234] / [Intel XE#2850]) +5 other tests skip
[109]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-7/igt@[email protected]
* igt@kms_psr@pr-dpms:
- shard-ptl: NOTRUN -> [SKIP][110] ([Intel XE#1406]) +1 other test skip
[110]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-6/igt@[email protected]
* igt@kms_psr@psr2-primary-render:
- shard-bmg: NOTRUN -> [SKIP][111] ([Intel XE#2234])
[111]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-9/igt@[email protected]
* igt@kms_rotation_crc@primary-y-tiled-reflect-x-180:
- shard-bmg: NOTRUN -> [SKIP][112] ([Intel XE#2330] / [Intel XE#5813])
[112]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-3/igt@[email protected]
- shard-lnl: NOTRUN -> [SKIP][113] ([Intel XE#1127] / [Intel XE#5813])
[113]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-3/igt@[email protected]
* igt@kms_rotation_crc@primary-y-tiled-reflect-x-90:
- shard-ptl: NOTRUN -> [SKIP][114] ([Intel XE#5821])
[114]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-4/igt@[email protected]
* igt@kms_scaling_modes@scaling-mode-full:
- shard-bmg: NOTRUN -> [SKIP][115] ([Intel XE#2413])
[115]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-3/igt@[email protected]
* igt@kms_setmode@basic-clone-single-crtc:
- shard-bmg: NOTRUN -> [SKIP][116] ([Intel XE#1435] / [Intel XE#8695])
[116]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-1/igt@[email protected]
* igt@kms_sharpness_filter@invalid-filter-with-scaling-mode:
- shard-bmg: NOTRUN -> [SKIP][117] ([Intel XE#6503]) +1 other test skip
[117]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-2/igt@[email protected]
* igt@kms_vrr@flip-basic:
- shard-ptl: NOTRUN -> [FAIL][118] ([Intel XE#4227] / [Intel XE#7397]) +1 other test fail
[118]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-2/igt@[email protected]
* igt@kms_vrr@flip-suspend@pipe-a-edp-1:
- shard-ptl: [PASS][119] -> [FAIL][120] ([Intel XE#4227] / [Intel XE#7397]) +1 other test fail
[119]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-ptl-6/igt@kms_vrr@[email protected]
[120]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-2/igt@kms_vrr@[email protected]
* igt@kms_vrr@seamless-rr-switch-vrr:
- shard-bmg: NOTRUN -> [SKIP][121] ([Intel XE#1499] / [Intel XE#9271])
[121]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-4/igt@[email protected]
* igt@xe_evict@evict-mixed-threads-small:
- shard-ptl: NOTRUN -> [SKIP][122] ([Intel XE#5764]) +4 other tests skip
[122]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-6/igt@[email protected]
* igt@xe_evict@evict-small-external-multi-queue-cm:
- shard-bmg: NOTRUN -> [SKIP][123] ([Intel XE#8370])
[123]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-6/igt@[email protected]
* igt@xe_evict@evict-small-multi-vm-cm:
- shard-lnl: NOTRUN -> [SKIP][124] ([Intel XE#6540] / [Intel XE#688])
[124]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-1/igt@[email protected]
* igt@xe_exec_balancer@once-virtual-rebind:
- shard-ptl: NOTRUN -> [SKIP][125] ([Intel XE#7482]) +7 other tests skip
[125]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-8/igt@[email protected]
* igt@xe_exec_balancer@twice-virtual-userptr-rebind:
- shard-lnl: NOTRUN -> [SKIP][126] ([Intel XE#7482])
[126]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-7/igt@[email protected]
* igt@xe_exec_basic@multigpu-many-execqueues-many-vm-bindexecqueue-userptr:
- shard-bmg: NOTRUN -> [SKIP][127] ([Intel XE#2322] / [Intel XE#7372]) +5 other tests skip
[127]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-2/igt@xe_exec_basic@multigpu-many-execqueues-many-vm-bindexecqueue-userptr.html
- shard-ptl: NOTRUN -> [SKIP][128] ([Intel XE#5575] / [Intel XE#7484]) +1 other test skip
[128]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-1/igt@xe_exec_basic@multigpu-many-execqueues-many-vm-bindexecqueue-userptr.html
* igt@xe_exec_basic@multigpu-many-execqueues-many-vm-bindexecqueue-userptr-invalidate-race:
- shard-lnl: NOTRUN -> [SKIP][129] ([Intel XE#1392])
[129]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-6/igt@xe_exec_basic@multigpu-many-execqueues-many-vm-bindexecqueue-userptr-invalidate-race.html
* igt@xe_exec_fault_mode@many-execqueues-multi-queue-rebind-prefetch:
- shard-lnl: NOTRUN -> [SKIP][130] ([Intel XE#8374]) +2 other tests skip
[130]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-3/igt@xe_exec_fault_mode@many-execqueues-multi-queue-rebind-prefetch.html
* igt@xe_exec_fault_mode@many-execqueues-multi-queue-userptr-imm:
- shard-ptl: NOTRUN -> [SKIP][131] ([Intel XE#8374]) +5 other tests skip
[131]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-8/igt@[email protected]
* igt@xe_exec_fault_mode@many-execqueues-multi-queue-userptr-invalidate-imm:
- shard-bmg: NOTRUN -> [SKIP][132] ([Intel XE#8374]) +6 other tests skip
[132]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-5/igt@xe_exec_fault_mode@many-execqueues-multi-queue-userptr-invalidate-imm.html
* igt@xe_exec_mix_modes@exec-multi-queue-spinner-interrupted-lr:
- shard-bmg: NOTRUN -> [SKIP][133] ([Intel XE#9003])
[133]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-8/igt@[email protected]
* igt@xe_exec_multi_queue@max-queues-basic:
- shard-ptl: NOTRUN -> [SKIP][134] ([Intel XE#8364]) +5 other tests skip
[134]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-8/igt@[email protected]
* igt@xe_exec_multi_queue@one-queue-preempt-mode-fault-close-fd:
- shard-lnl: NOTRUN -> [SKIP][135] ([Intel XE#8364]) +3 other tests skip
[135]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-6/igt@[email protected]
* igt@xe_exec_multi_queue@two-queues-preempt-mode-fault-dyn-priority-smem:
- shard-bmg: NOTRUN -> [SKIP][136] ([Intel XE#8364]) +17 other tests skip
[136]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-1/igt@xe_exec_multi_queue@two-queues-preempt-mode-fault-dyn-priority-smem.html
* igt@xe_exec_reset@cm-multi-queue-close-execqueues:
- shard-bmg: NOTRUN -> [SKIP][137] ([Intel XE#8369]) +2 other tests skip
[137]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-2/igt@[email protected]
- shard-lnl: NOTRUN -> [SKIP][138] ([Intel XE#8369])
[138]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-1/igt@[email protected]
* igt@xe_exec_reset@multi-queue-gt-reset:
- shard-ptl: NOTRUN -> [SKIP][139] ([Intel XE#8369])
[139]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-2/igt@[email protected]
* igt@xe_exec_threads@threads-multi-queue-cm-userptr-invalidate-race:
- shard-ptl: NOTRUN -> [SKIP][140] ([Intel XE#8378]) +1 other test skip
[140]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-5/igt@xe_exec_threads@threads-multi-queue-cm-userptr-invalidate-race.html
* igt@xe_exec_threads@threads-multi-queue-mixed-many-groups-priority:
- shard-ptl: NOTRUN -> [SKIP][141] ([Intel XE#8780])
[141]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-5/igt@xe_exec_threads@threads-multi-queue-mixed-many-groups-priority.html
* igt@xe_exec_threads@threads-multi-queue-mixed-userptr-invalidate-race:
- shard-bmg: NOTRUN -> [SKIP][142] ([Intel XE#8378]) +5 other tests skip
[142]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-4/igt@xe_exec_threads@threads-multi-queue-mixed-userptr-invalidate-race.html
* igt@xe_exec_threads@threads-multi-queue-shared-vm-userptr:
- shard-lnl: NOTRUN -> [SKIP][143] ([Intel XE#8378]) +1 other test skip
[143]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-8/igt@[email protected]
* igt@xe_fault_injection@vm-bind-fail-vm_bind_ioctl_ops_execute:
- shard-bmg: [PASS][144] -> [ABORT][145] ([Intel XE#9463])
[144]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-10/igt@xe_fault_injection@vm-bind-fail-vm_bind_ioctl_ops_execute.html
[145]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-6/igt@xe_fault_injection@vm-bind-fail-vm_bind_ioctl_ops_execute.html
* igt@xe_live_ktest@xe_migrate@xe_migrate_access_memory_kunit:
- shard-lnl: NOTRUN -> [SKIP][146] ([Intel XE#9657])
[146]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-4/igt@xe_live_ktest@xe_migrate@xe_migrate_access_memory_kunit.html
* igt@xe_live_ktest@xe_migrate@xe_validate_ccs_kunit:
- shard-lnl: NOTRUN -> [SKIP][147] ([Intel XE#2229])
[147]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-4/igt@xe_live_ktest@xe_migrate@xe_validate_ccs_kunit.html
* igt@xe_multigpu_svm@mgpu-latency-copy-basic:
- shard-bmg: NOTRUN -> [SKIP][148] ([Intel XE#6964]) +3 other tests skip
[148]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-8/igt@[email protected]
* igt@xe_multigpu_svm@mgpu-migration-prefetch:
- shard-lnl: NOTRUN -> [SKIP][149] ([Intel XE#6964])
[149]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-6/igt@[email protected]
* igt@xe_multigpu_svm@mgpu-xgpu-access-basic:
- shard-ptl: NOTRUN -> [SKIP][150] ([Intel XE#6964]) +2 other tests skip
[150]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-3/igt@[email protected]
* igt@xe_oa@non-zero-reason:
- shard-bmg: [PASS][151] -> [FAIL][152] ([Intel XE#7334]) +1 other test fail
[151]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-4/igt@[email protected]
[152]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-3/igt@[email protected]
* igt@xe_oa@oa-tlb-invalidate:
- shard-ptl: NOTRUN -> [SKIP][153] ([Intel XE#6069])
[153]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-1/igt@[email protected]
- shard-bmg: NOTRUN -> [SKIP][154] ([Intel XE#2248] / [Intel XE#7325] / [Intel XE#7393])
[154]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-4/igt@[email protected]
* igt@xe_page_reclaim@basic-mixed:
- shard-lnl: NOTRUN -> [SKIP][155] ([Intel XE#7793])
[155]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-1/igt@[email protected]
* igt@xe_pat@pat-index-xelp:
- shard-bmg: NOTRUN -> [SKIP][156] ([Intel XE#2245] / [Intel XE#7590])
[156]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-5/igt@[email protected]
* igt@xe_pat@xa-app-transient-media-off:
- shard-bmg: NOTRUN -> [SKIP][157] ([Intel XE#7590]) +1 other test skip
[157]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-1/igt@[email protected]
* igt@xe_pm@s3-basic-exec:
- shard-lnl: NOTRUN -> [SKIP][158] ([Intel XE#584] / [Intel XE#7369])
[158]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-6/igt@[email protected]
* igt@xe_pm_residency@gt-c6-freeze@gt1:
- shard-bmg: [PASS][159] -> [FAIL][160] ([Intel XE#9254])
[159]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-6/igt@xe_pm_residency@[email protected]
[160]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-3/igt@xe_pm_residency@[email protected]
* igt@xe_pxp@pxp-termination-key-update-post-suspend:
- shard-bmg: NOTRUN -> [SKIP][161] ([Intel XE#4733] / [Intel XE#7417]) +1 other test skip
[161]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-6/igt@[email protected]
* igt@xe_query@multigpu-query-mem-usage:
- shard-bmg: NOTRUN -> [SKIP][162] ([Intel XE#944]) +1 other test skip
[162]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-10/igt@[email protected]
- shard-ptl: NOTRUN -> [SKIP][163] ([Intel XE#6019])
[163]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-2/igt@[email protected]
* igt@xe_sriov_admin@sched-priority-vf-write-denied:
- shard-lnl: NOTRUN -> [SKIP][164] ([Intel XE#7174])
[164]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-8/igt@[email protected]
#### Possible fixes ####
* igt@core_hotunplug@hotrebind-with-load:
- shard-bmg: [SKIP][165] ([Intel XE#8749]) -> [PASS][166]
[165]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-5/igt@[email protected]
[166]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-4/igt@[email protected]
* igt@kms_async_flips@async-flip-suspend-resume:
- shard-bmg: [DMESG-WARN][167] ([Intel XE#9365]) -> [PASS][168] +1 other test pass
[167]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-8/igt@[email protected]
[168]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-9/igt@[email protected]
* igt@kms_flip@flip-vs-absolute-wf_vblank@a-dp2:
- shard-bmg: [FAIL][169] ([Intel XE#5408] / [Intel XE#6266]) -> [PASS][170] +1 other test pass
[169]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-9/igt@kms_flip@[email protected]
[170]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-6/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-expired-vblank@a-edp1:
- shard-lnl: [FAIL][171] ([Intel XE#301]) -> [PASS][172] +1 other test pass
[171]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-lnl-2/igt@kms_flip@[email protected]
[172]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-1/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible:
- shard-bmg: [INCOMPLETE][173] ([Intel XE#2597] / [Intel XE#8155]) -> [PASS][174] +1 other test pass
[173]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-6/igt@[email protected]
[174]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-1/igt@[email protected]
* igt@kms_hdr@static-toggle-suspend:
- shard-bmg: [INCOMPLETE][175] ([Intel XE#9792]) -> [PASS][176]
[175]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-4/igt@[email protected]
[176]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-6/igt@[email protected]
* igt@kms_plane_scaling@plane-downscale-max-crc-rotation-180-4-tiled@pipe-d-dp-2-p010:
- shard-bmg: [FAIL][177] ([Intel XE#9780]) -> [PASS][178] +4 other tests pass
[177]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-1/igt@kms_plane_scaling@plane-downscale-max-crc-rotation-180-4-tiled@pipe-d-dp-2-p010.html
[178]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-5/igt@kms_plane_scaling@plane-downscale-max-crc-rotation-180-4-tiled@pipe-d-dp-2-p010.html
* igt@kms_pm_dc@dc5-psr:
- shard-lnl: [FAIL][179] ([Intel XE#8399]) -> [PASS][180]
[179]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-lnl-6/igt@[email protected]
[180]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-7/igt@[email protected]
* igt@xe_compute_preempt@compute-preempt-many-all-ram:
- shard-bmg: [ABORT][181] ([Intel XE#9481]) -> [PASS][182] +1 other test pass
[181]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-2/igt@[email protected]
[182]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-9/igt@[email protected]
* igt@xe_pm@s4-basic:
- shard-ptl: [ABORT][183] ([Intel XE#9362]) -> [PASS][184]
[183]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-ptl-8/igt@[email protected]
[184]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-ptl-3/igt@[email protected]
* igt@xe_pm_residency@gt-c6-freeze@gt0:
- shard-bmg: [FAIL][185] ([Intel XE#9254]) -> [PASS][186]
[185]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-6/igt@xe_pm_residency@[email protected]
[186]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-3/igt@xe_pm_residency@[email protected]
* igt@xe_sriov_flr@flr-vf1-clear:
- shard-bmg: [FAIL][187] ([Intel XE#6569]) -> [PASS][188]
[187]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-10/igt@[email protected]
[188]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-8/igt@[email protected]
* igt@xe_vm@bind-once:
- shard-bmg: [SKIP][189] ([Intel XE#8589]) -> [PASS][190] +29 other tests pass
[189]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-5/igt@[email protected]
[190]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-7/igt@[email protected]
#### Warnings ####
* igt@kms_bw@linear-tiling-3-displays-target-2560x1440p:
- shard-bmg: [SKIP][191] ([Intel XE#367]) -> [SKIP][192] ([Intel XE#8589])
[191]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-6/igt@[email protected]
[192]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-3/igt@[email protected]
* igt@kms_ccs@crc-sprite-planes-basic-4-tiled-mtl-rc-ccs:
- shard-bmg: [SKIP][193] ([Intel XE#2887]) -> [SKIP][194] ([Intel XE#8589])
[193]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-6/igt@[email protected]
[194]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-3/igt@[email protected]
* igt@kms_cursor_legacy@cursorb-vs-flipb-atomic-transitions:
- shard-lnl: [SKIP][195] ([Intel XE#309] / [Intel XE#7343]) -> [SKIP][196] ([Intel XE#309] / [Intel XE#7343] / [Intel XE#7935])
[195]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-lnl-2/igt@[email protected]
[196]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-lnl-8/igt@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs-downscaling:
- shard-bmg: [SKIP][197] ([Intel XE#7178] / [Intel XE#7351]) -> [SKIP][198] ([Intel XE#8589])
[197]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-3/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs-downscaling.html
[198]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-3/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs-downscaling.html
* igt@kms_frontbuffer_tracking@drrs-2p-scndscrn-pri-indfb-draw-mmap-wc:
- shard-bmg: [SKIP][199] ([Intel XE#2311]) -> [SKIP][200] ([Intel XE#8589]) +5 other tests skip
[199]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-10/igt@kms_frontbuffer_tracking@drrs-2p-scndscrn-pri-indfb-draw-mmap-wc.html
[200]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-3/igt@kms_frontbuffer_tracking@drrs-2p-scndscrn-pri-indfb-draw-mmap-wc.html
* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-cur-indfb-draw-blt:
- shard-bmg: [SKIP][201] ([Intel XE#4141]) -> [SKIP][202] ([Intel XE#8589]) +1 other test skip
[201]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-8/igt@[email protected]
[202]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-3/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcdrrs-2p-primscrn-pri-shrfb-draw-mmap-wc:
- shard-bmg: [SKIP][203] ([Intel XE#8589]) -> [SKIP][204] ([Intel XE#2311]) +2 other tests skip
[203]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-5/igt@kms_frontbuffer_tracking@fbcdrrs-2p-primscrn-pri-shrfb-draw-mmap-wc.html
[204]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-8/igt@kms_frontbuffer_tracking@fbcdrrs-2p-primscrn-pri-shrfb-draw-mmap-wc.html
* igt@kms_frontbuffer_tracking@fbcdrrshdr-argb161616f-draw-render:
- shard-bmg: [SKIP][205] ([Intel XE#8589]) -> [SKIP][206] ([Intel XE#7061])
[205]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-5/igt@[email protected]
[206]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-4/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsrhdr-2p-primscrn-pri-shrfb-draw-render:
- shard-bmg: [SKIP][207] ([Intel XE#8589]) -> [SKIP][208] ([Intel XE#2313]) +4 other tests skip
[207]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-5/igt@kms_frontbuffer_tracking@fbcpsrhdr-2p-primscrn-pri-shrfb-draw-render.html
[208]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-9/igt@kms_frontbuffer_tracking@fbcpsrhdr-2p-primscrn-pri-shrfb-draw-render.html
* igt@kms_frontbuffer_tracking@hdr-argb161616f-draw-blt:
- shard-bmg: [SKIP][209] ([Intel XE#7061]) -> [SKIP][210] ([Intel XE#8589])
[209]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-5/igt@[email protected]
[210]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-3/igt@[email protected]
* igt@kms_frontbuffer_tracking@psr-1p-primscrn-pri-indfb-draw-blt:
- shard-bmg: [SKIP][211] ([Intel XE#2313]) -> [SKIP][212] ([Intel XE#8589]) +3 other tests skip
[211]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-6/igt@[email protected]
[212]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-3/igt@[email protected]
* igt@kms_hdmi_audio_bw@suspend-disk-audio-recovery:
- shard-bmg: [FAIL][213] ([Intel XE#9319] / [Intel XE#9346]) -> [FAIL][214] ([Intel XE#9346])
[213]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-6/igt@[email protected]
[214]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-3/igt@[email protected]
* igt@kms_hdr@brightness-with-hdr:
- shard-bmg: [SKIP][215] ([Intel XE#3544]) -> [SKIP][216] ([Intel XE#3374] / [Intel XE#3544])
[215]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-3/igt@[email protected]
[216]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-7/igt@[email protected]
* igt@kms_pm_dc@dc3co-vpb-simulation:
- shard-bmg: [SKIP][217] ([Intel XE#8395] / [Intel XE#8396]) -> [SKIP][218] ([Intel XE#8589])
[217]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-2/igt@[email protected]
[218]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-3/igt@[email protected]
* igt@kms_psr2_sf@fbc-pr-cursor-plane-update-sf:
- shard-bmg: [SKIP][219] ([Intel XE#8589]) -> [SKIP][220] ([Intel XE#1489])
[219]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-5/igt@[email protected]
[220]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-4/igt@[email protected]
* igt@kms_psr@fbc-psr2-primary-render:
- shard-bmg: [SKIP][221] ([Intel XE#2234] / [Intel XE#2850]) -> [SKIP][222] ([Intel XE#8589])
[221]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-3/igt@[email protected]
[222]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-3/igt@[email protected]
* igt@kms_psr@pr-sprite-render:
- shard-bmg: [SKIP][223] ([Intel XE#8589]) -> [SKIP][224] ([Intel XE#2234] / [Intel XE#2850])
[223]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-5/igt@[email protected]
[224]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-7/igt@[email protected]
* igt@kms_rotation_crc@sprite-rotation-270:
- shard-bmg: [SKIP][225] ([Intel XE#3904] / [Intel XE#7342]) -> [SKIP][226] ([Intel XE#8589])
[225]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-5/igt@[email protected]
[226]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-3/igt@[email protected]
* igt@kms_tiled_display@basic-test-pattern:
- shard-bmg: [SKIP][227] ([Intel XE#2426] / [Intel XE#5848]) -> [FAIL][228] ([Intel XE#1729] / [Intel XE#7424])
[227]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-6/igt@[email protected]
[228]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-1/igt@[email protected]
* igt@kms_vrr@lobf-dc3co:
- shard-bmg: [SKIP][229] ([Intel XE#8397]) -> [SKIP][230] ([Intel XE#8589])
[229]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-6/igt@[email protected]
[230]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-3/igt@[email protected]
* igt@xe_cw_post_sync@walker-post-sync:
- shard-bmg: [SKIP][231] ([Intel XE#8608]) -> [SKIP][232] ([Intel XE#8589])
[231]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-6/igt@[email protected]
[232]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-3/igt@[email protected]
* igt@xe_exec_fault_mode@twice-multi-queue-invalid-userptr-fault:
- shard-bmg: [SKIP][233] ([Intel XE#8374]) -> [SKIP][234] ([Intel XE#8589])
[233]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-8/igt@[email protected]
[234]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-3/igt@[email protected]
* igt@xe_exec_multi_queue@few-execs-preempt-mode-fault-priority-smem:
- shard-bmg: [SKIP][235] ([Intel XE#8364]) -> [SKIP][236] ([Intel XE#8589]) +3 other tests skip
[235]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-2/igt@xe_exec_multi_queue@few-execs-preempt-mode-fault-priority-smem.html
[236]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-3/igt@xe_exec_multi_queue@few-execs-preempt-mode-fault-priority-smem.html
* igt@xe_exec_multi_queue@many-queues-preempt-mode-priority-smem:
- shard-bmg: [SKIP][237] ([Intel XE#8589]) -> [SKIP][238] ([Intel XE#8364])
[237]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-5/igt@[email protected]
[238]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-5/igt@[email protected]
* igt@xe_exec_reset@multi-queue-close-execqueues:
- shard-bmg: [SKIP][239] ([Intel XE#8589]) -> [SKIP][240] ([Intel XE#8369])
[239]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-5/igt@[email protected]
[240]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-2/igt@[email protected]
* igt@xe_exec_threads@threads-multi-queue-cm-shared-vm-userptr-rebind:
- shard-bmg: [SKIP][241] ([Intel XE#8378]) -> [SKIP][242] ([Intel XE#8589])
[241]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-4/igt@xe_exec_threads@threads-multi-queue-cm-shared-vm-userptr-rebind.html
[242]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-3/igt@xe_exec_threads@threads-multi-queue-cm-shared-vm-userptr-rebind.html
* igt@xe_pxp@pxp-stale-bo-bind-post-suspend:
- shard-bmg: [SKIP][243] ([Intel XE#8589]) -> [SKIP][244] ([Intel XE#4733] / [Intel XE#7417])
[243]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9196/shard-bmg-5/igt@[email protected]
[244]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/shard-bmg-5/igt@[email protected]
[Intel XE#1124]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1124
[Intel XE#1127]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1127
[Intel XE#1231]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1231
[Intel XE#1340]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1340
[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#1435]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1435
[Intel XE#1439]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1439
[Intel XE#1489]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1489
[Intel XE#1499]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1499
[Intel XE#1503]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1503
[Intel XE#1729]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1729
[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#2245]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2245
[Intel XE#2248]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2248
[Intel XE#2252]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2252
[Intel XE#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#2330]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2330
[Intel XE#2352]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2352
[Intel XE#2387]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2387
[Intel XE#2390]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2390
[Intel XE#2393]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2393
[Intel XE#2413]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2413
[Intel XE#2426]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2426
[Intel XE#2486]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2486
[Intel XE#2597]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2597
[Intel XE#2652]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2652
[Intel XE#2850]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2850
[Intel XE#2887]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2887
[Intel XE#2893]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2893
[Intel XE#2938]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2938
[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#3141]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3141
[Intel XE#3279]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3279
[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#3658]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3658
[Intel XE#367]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/367
[Intel XE#3904]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3904
[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#4596]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4596
[Intel XE#4733]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4733
[Intel XE#5408]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5408
[Intel XE#5575]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5575
[Intel XE#5764]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5764
[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#5823]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5823
[Intel XE#5824]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5824
[Intel XE#584]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/584
[Intel XE#5848]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5848
[Intel XE#5854]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5854
[Intel XE#5865]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5865
[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#5962]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5962
[Intel XE#6019]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6019
[Intel XE#6069]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6069
[Intel XE#6266]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6266
[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#6540]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6540
[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#6652]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6652
[Intel XE#688]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/688
[Intel XE#6900]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6900
[Intel XE#6918]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6918
[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#7008]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7008
[Intel XE#7061]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7061
[Intel XE#7084]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7084
[Intel XE#7174]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7174
[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#7304]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7304
[Intel XE#7325]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7325
[Intel XE#7334]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7334
[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#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#7360]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7360
[Intel XE#7369]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7369
[Intel XE#7372]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7372
[Intel XE#7376]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7376
[Intel XE#7383]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7383
[Intel XE#7393]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7393
[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#7417]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7417
[Intel XE#7424]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7424
[Intel XE#7429]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7429
[Intel XE#7435]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7435
[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#7590]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7590
[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#7760]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7760
[Intel XE#7774]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7774
[Intel XE#7793]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7793
[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#7935]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7935
[Intel XE#8098]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8098
[Intel XE#8150]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8150
[Intel XE#8155]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8155
[Intel XE#8265]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8265
[Intel XE#836]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/836
[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#8397]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8397
[Intel XE#8399]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8399
[Intel XE#8586]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8586
[Intel XE#8589]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8589
[Intel XE#8608]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8608
[Intel XE#8628]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8628
[Intel XE#8695]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8695
[Intel XE#870]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/870
[Intel XE#8749]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8749
[Intel XE#8780]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8780
[Intel XE#9003]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9003
[Intel XE#9254]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9254
[Intel XE#9271]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9271
[Intel XE#9312]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9312
[Intel XE#9319]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9319
[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#9365]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9365
[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#9481]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9481
[Intel XE#9535]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9535
[Intel XE#9561]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9561
[Intel XE#9657]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9657
[Intel XE#9779]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9779
[Intel XE#9780]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9780
[Intel XE#9792]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9792
Build changes
-------------
* IGT: IGT_9196 -> IGTPW_16168
* Linux: xe-6155-ccb10a534282f16c6d068bc06e5c722680045dda -> xe-6169-0249d68f50c265a0f17c06fc21906fda945fe2cf
IGTPW_16168: 16168
IGT_9196: 9196
xe-6155-ccb10a534282f16c6d068bc06e5c722680045dda: ccb10a534282f16c6d068bc06e5c722680045dda xe-6169-0249d68f50c265a0f17c06fc21906fda945fe2cf: 0249d68f50c265a0f17c06fc21906fda945fe2cf
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16168/index.html