[PATCH i-g-t] tests/amdgpu: Add user queue test control via environment variable

vitaly prosyak vprosyak at amd.com
Thu Jun 26 22:18:46 UTC 2025


Reviewed-by: Vitaly Prosyak <vitaly.prosyak at amd.com>

On 2025-06-26 02:01, Jesse.Zhang wrote:
> - Add environment variable check 'AMDGPU_DISABLE_USERQTEST' to control
>   user queue test execution
> - Only run SDMA with UMQ test when both enabled via the flag and
>   hardware supports it (userq_arr_cap[AMD_IP_DMA])
> - Helps disable user queue tests when needed while keeping other tests
>   active
>
> Signed-off-by: Jesse Zhang <Jesse.Zhang at amd.com>
> ---
>  tests/amdgpu/amd_basic.c | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/tests/amdgpu/amd_basic.c b/tests/amdgpu/amd_basic.c
> index 39690419c..9eb5c7599 100644
> --- a/tests/amdgpu/amd_basic.c
> +++ b/tests/amdgpu/amd_basic.c
> @@ -700,6 +700,12 @@ igt_main
>  	int r;
>  	bool arr_cap[AMD_IP_MAX] = {0};
>  	bool userq_arr_cap[AMD_IP_MAX] = {0};
> +#ifdef AMDGPU_USERQ_ENABLED
> +	bool enable_test;
> +	const char *env = getenv("AMDGPU_DISABLE_USERQTEST");
> +
> +	enable_test = env && atoi(env);
> +#endif
>  
>  	igt_fixture {
>  		uint32_t major, minor;
> @@ -820,7 +826,7 @@ igt_main
>  
>  	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 (userq_arr_cap[AMD_IP_DMA]) {
> +		if (enable_test && userq_arr_cap[AMD_IP_DMA]) {
>  			igt_dynamic_f("cs-sdma-with-umq")
>  			amdgpu_command_submission_sdma(device, true);
>  		}


More information about the igt-dev mailing list