Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DDA1DC369AB for ; Mon, 21 Apr 2025 08:07:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BF18D10E239; Mon, 21 Apr 2025 08:07:19 +0000 (UTC) X-Greylist: delayed 466 seconds by postgrey-1.36 at gabe; Mon, 21 Apr 2025 08:07:18 UTC Received: from amd-X570-AORUS-ELITE.amd.com (unknown [165.204.156.251]) by gabe.freedesktop.org (Postfix) with ESMTPS id D577610E239 for ; Mon, 21 Apr 2025 08:07:18 +0000 (UTC) Received: by amd-X570-AORUS-ELITE.amd.com (Postfix, from userid 1000) id 2B6CA36A1373; Mon, 21 Apr 2025 13:29:27 +0530 (IST) From: Sunil Khatri To: igt-dev@lists.freedesktop.org, Vitaly Prosyak Cc: Sunil Khatri Subject: [PATCH] tests/amdgpu: add missing user queue destroy for cs_nops Date: Mon, 21 Apr 2025 13:29:26 +0530 Message-ID: <20250421075926.31094-1-sunil.khatri@amd.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: igt-dev@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development mailing list for IGT GPU Tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" 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 --- 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