From mboxrd@z Thu Jan 1 00:00:00 1970 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 6DD1EC36017 for ; Fri, 28 Mar 2025 08:24:48 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2080E10E9A9; Fri, 28 Mar 2025 08:24:48 +0000 (UTC) Received: from rtg-sunil-navi33.amd.com (unknown [165.204.156.251]) by gabe.freedesktop.org (Postfix) with ESMTPS id DB74C10E9AA for ; Fri, 28 Mar 2025 08:24:38 +0000 (UTC) Received: from rtg-sunil-navi33.amd.com (localhost [127.0.0.1]) by rtg-sunil-navi33.amd.com (8.15.2/8.15.2/Debian-22ubuntu3) with ESMTP id 52S8OYsF1470057; Fri, 28 Mar 2025 13:54:34 +0530 Received: (from sunil@localhost) by rtg-sunil-navi33.amd.com (8.15.2/8.15.2/Submit) id 52S8OYCN1470056; Fri, 28 Mar 2025 13:54:34 +0530 From: Sunil Khatri To: igt-dev@lists.freedesktop.org Cc: Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , Vitaly Prosyak , Sunil Khatri Subject: [PATCH v3 16/19] tests/amdgpu: disable check for IP presense with no kernel queue Date: Fri, 28 Mar 2025 13:54:13 +0530 Message-Id: <20250328082416.1469810-16-sunil.khatri@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250328082416.1469810-1-sunil.khatri@amd.com> References: <20250328082416.1469810-1-sunil.khatri@amd.com> 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" With kernel queues disabled num_rings will be reported zero. Enforce the condition to be always true till the time we have IOCTL to read this information from kernel. Signed-off-by: Sunil Khatri --- tests/amdgpu/amd_basic.c | 2 ++ tests/amdgpu/amd_cs_nop.c | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/amdgpu/amd_basic.c b/tests/amdgpu/amd_basic.c index 643a147f5..f8886fab8 100644 --- a/tests/amdgpu/amd_basic.c +++ b/tests/amdgpu/amd_basic.c @@ -788,6 +788,8 @@ igt_main } } + arr_cap[AMD_IP_GFX] = 1; + arr_cap[AMD_IP_COMPUTE] = 1; 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 (arr_cap[AMD_IP_GFX]) { diff --git a/tests/amdgpu/amd_cs_nop.c b/tests/amdgpu/amd_cs_nop.c index 96a15a029..0b7c29421 100644 --- a/tests/amdgpu/amd_cs_nop.c +++ b/tests/amdgpu/amd_cs_nop.c @@ -185,7 +185,7 @@ igt_main for (e = engines; e->name; e++) { igt_describe("Stressful-and-multiple-cs-of-nop-operations-using-multiple-processes-with-the-same-GPU-context"); igt_subtest_with_dynamic_f("cs-nops-with-%s-%s0", p->name, e->name) { - if (arr_cap[e->ip_type]) { + if (!arr_cap[e->ip_type]) { igt_dynamic_f("cs-nop-with-%s-%s0", p->name, e->name) nop_cs(device, context, e->name, e->ip_type, 0, 20, p->flags, 0); @@ -194,6 +194,8 @@ igt_main } } + arr_cap[AMDGPU_HW_IP_GFX] = 1; + arr_cap[AMDGPU_HW_IP_COMPUTE] = 1; for (p = phase; p->name; p++) { for (e = engines; e->name; e++) { igt_describe("Stressful-and-multiple-cs-of-nop-operations-using-multiple-processes-with-the-same-GPU-context-UMQ"); -- 2.43.0