From d1681af05471176215ad3d437249c38768dc959f Mon Sep 17 00:00:00 2001 From: jie zhang Date: Wed, 15 Feb 2023 04:45:05 +0000 Subject: [PATCH] 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 Reviewed-by: Flora Cui --- tests/amdgpu/hotunplug_tests.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/amdgpu/hotunplug_tests.c b/tests/amdgpu/hotunplug_tests.c index 2b26567..af933b1 100644 --- a/tests/amdgpu/hotunplug_tests.c +++ b/tests/amdgpu/hotunplug_tests.c @@ -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; -- 2.7.4