Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > 841e788116726c5de83f1f9f40393472 > files > 3

libdrm-2.4.115-2.mga9.src.rpm

From d1681af05471176215ad3d437249c38768dc959f Mon Sep 17 00:00:00 2001
From: jie zhang <jie1zhan@amd.com>
Date: Wed, 15 Feb 2023 04:45:05 +0000
Subject: [PATCH 3/8] 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>
---
 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 2b265673e73a..af933b19d1ba 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.40.0