diff options
author | jie zhang <jie1zhan@amd.com> | 2023-02-15 04:45:05 +0000 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2023-03-17 17:24:14 +0000 |
commit | d1681af05471176215ad3d437249c38768dc959f (patch) | |
tree | e761cdcfacbfe6a82ab14500ed61885f7603d00a | |
parent | 332809f3ee19f07abc03b62d5892fae51b9d9902 (diff) | |
download | drm-d1681af05471176215ad3d437249c38768dc959f.tar.gz |
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>
-rw-r--r-- | tests/amdgpu/hotunplug_tests.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/amdgpu/hotunplug_tests.c b/tests/amdgpu/hotunplug_tests.c index 2b265673..af933b19 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; |