[PATCH i-g-t] tests/amdgpu: Standardize user queue test enablement with AMDGPU_ENABLE_USERQTEST
Jesse.Zhang
Jesse.Zhang at amd.com
Tue Jul 1 07:49:36 UTC 2025
Consolidate user queue test control by replacing AMDGPU_DISABLE_USERQTEST
with AMDGPU_ENABLE_USERQTEST. This change:
1. Replaces negative logic (disable) with positive enablement control
2. Affects four test files consistently:
- tests/amdgpu/amd_basic.c
- tests/amdgpu/amd_cs_nop.c
- tests/amdgpu/amd_deadlock.c
- tests/amdgpu/amd_security.c
Signed-off-by: Jesse Zhang <Jesse.Zhang at amd.com
---
tests/amdgpu/amd_basic.c | 2 +-
tests/amdgpu/amd_cs_nop.c | 2 +-
tests/amdgpu/amd_deadlock.c | 2 +-
tests/amdgpu/amd_security.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/amdgpu/amd_basic.c b/tests/amdgpu/amd_basic.c
index 9eb5c7599..04e8d62e5 100644
--- a/tests/amdgpu/amd_basic.c
+++ b/tests/amdgpu/amd_basic.c
@@ -702,7 +702,7 @@ igt_main
bool userq_arr_cap[AMD_IP_MAX] = {0};
#ifdef AMDGPU_USERQ_ENABLED
bool enable_test;
- const char *env = getenv("AMDGPU_DISABLE_USERQTEST");
+ const char *env = getenv("AMDGPU_ENABLE_USERQTEST");
enable_test = env && atoi(env);
#endif
diff --git a/tests/amdgpu/amd_cs_nop.c b/tests/amdgpu/amd_cs_nop.c
index 7b08bf99c..96a385413 100644
--- a/tests/amdgpu/amd_cs_nop.c
+++ b/tests/amdgpu/amd_cs_nop.c
@@ -173,7 +173,7 @@ igt_main
bool userq_arr_cap[AMD_IP_MAX] = {0};
#ifdef AMDGPU_USERQ_ENABLED
bool enable_test;
- const char *env = getenv("AMDGPU_DISABLE_USERQTEST");
+ const char *env = getenv("AMDGPU_ENABLE_USERQTEST");
enable_test = env && atoi(env);
#endif
diff --git a/tests/amdgpu/amd_deadlock.c b/tests/amdgpu/amd_deadlock.c
index 7bc53ee12..19dff1dc0 100644
--- a/tests/amdgpu/amd_deadlock.c
+++ b/tests/amdgpu/amd_deadlock.c
@@ -46,7 +46,7 @@ igt_main
#ifdef AMDGPU_USERQ_ENABLED
bool enable_test;
- const char *env = getenv("AMDGPU_DISABLE_USERQTEST");
+ const char *env = getenv("AMDGPU_ENABLE_USERQTEST");
enable_test = env && atoi(env);
#endif
diff --git a/tests/amdgpu/amd_security.c b/tests/amdgpu/amd_security.c
index c9a02ade2..ce448a806 100644
--- a/tests/amdgpu/amd_security.c
+++ b/tests/amdgpu/amd_security.c
@@ -319,7 +319,7 @@ igt_main
#ifdef AMDGPU_USERQ_ENABLED
bool enable_test;
- const char *env = getenv("AMDGPU_DISABLE_USERQTEST");
+ const char *env = getenv("AMDGPU_ENABLE_USERQTEST");
enable_test = env && atoi(env);
#endif
--
2.49.0
More information about the igt-dev
mailing list