test/amdgpu/hotunplug: add apu check for hotplug test

For apu, it is integrated with cpu.
So hotplug test should be unnecessary for it.

Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
Reviewed-by: Flora Cui <flora.cui@amd.com>
main
jie zhang 2023-02-15 04:45:05 +00:00 committed by Alex Deucher
parent 332809f3ee
commit d1681af054
1 changed files with 4 additions and 0 deletions

View File

@ -70,6 +70,10 @@ CU_BOOL suite_hotunplug_tests_enable(void)
if (minor_version < 46)
enable = false;
/* skip hotplug test on APUs */
if(device_handle->dev_info.ids_flags & AMDGPU_IDS_FLAGS_FUSION)
enable = false;
if (amdgpu_device_deinitialize(device_handle))
return CU_FALSE;