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 <andrey.grodzovsky@amd.com>
main
Andrey Grodzovsky 2022-03-01 12:56:05 -05:00
parent 8376362245
commit b47c057d69
1 changed files with 4 additions and 6 deletions

View File

@ -62,15 +62,13 @@ CU_BOOL suite_hotunplug_tests_enable(void)
return CU_FALSE; 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, if (amdgpu_device_initialize(drm_amdgpu[0], &major_version,
&minor_version, &device_handle)) &minor_version, &device_handle))
return CU_FALSE; 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)) if (amdgpu_device_deinitialize(device_handle))
return CU_FALSE; return CU_FALSE;