test/amdgpu/hotunplug: add apu check for hotplug test
authorjie zhang <jie1zhan@amd.com>
Wed, 15 Feb 2023 04:45:05 +0000 (04:45 +0000)
committerAlex Deucher <alexdeucher@gmail.com>
Fri, 17 Mar 2023 17:24:14 +0000 (17:24 +0000)
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>
tests/amdgpu/hotunplug_tests.c

index 2b26567..af933b1 100644 (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;