[PATCH] tests/amdgpu: add missing user queue destroy for cs_nops

Sunil Khatri sunil.khatri at amd.com
Mon Apr 21 07:59:26 UTC 2025


user queues after completing the test case should destroy
the user queues and do the necessary clean up. clean up
was missing for cs_nops and that is added with the patch.

Signed-off-by: Sunil Khatri <sunil.khatri at amd.com>
---
 tests/amdgpu/amd_cs_nop.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/amdgpu/amd_cs_nop.c b/tests/amdgpu/amd_cs_nop.c
index 167699328..67bb0419d 100644
--- a/tests/amdgpu/amd_cs_nop.c
+++ b/tests/amdgpu/amd_cs_nop.c
@@ -139,6 +139,9 @@ static void nop_cs(amdgpu_device_handle device,
 
 	amdgpu_bo_unmap_and_free(ib_result_handle, va_handle,
 				 ib_result_mc_address, 4096);
+	if (user_queue)
+		amdgpu_user_queue_destroy(device, ring_context, ip_type);
+
 	free(ring_context);
 }
 
-- 
2.43.0



More information about the igt-dev mailing list