From b47c057d6932798ff174ddce68486c262ca8e3a6 Mon Sep 17 00:00:00 2001 From: Andrey Grodzovsky Date: Tue, 1 Mar 2022 12:56:05 -0500 Subject: [PATCH] tests/amdgpu/hotunplu: Enable hotunplug tests. I tested with latest amd-staging-drm-next and after minor fix for me all the testys pass. I bumped libdrm minor version for this. Signed-off-by: Andrey Grodzovsky --- tests/amdgpu/hotunplug_tests.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/amdgpu/hotunplug_tests.c b/tests/amdgpu/hotunplug_tests.c index 23ea140..2b26567 100644 --- a/tests/amdgpu/hotunplug_tests.c +++ b/tests/amdgpu/hotunplug_tests.c @@ -62,15 +62,13 @@ CU_BOOL suite_hotunplug_tests_enable(void) return CU_FALSE; } - /* Disable until the hot-unplug support in kernel gets into drm-next */ - if (major_version < 0xff) - enable = false; - if (amdgpu_device_initialize(drm_amdgpu[0], &major_version, &minor_version, &device_handle)) return CU_FALSE; - - /* TODO Once DRM version for unplug feature ready compare here agains it*/ + + /* Latest tested amdgpu version to work with all the tests */ + if (minor_version < 46) + enable = false; if (amdgpu_device_deinitialize(device_handle)) return CU_FALSE; -- 2.7.4