[PATCH i-g-t v2 2/8] tests/core_hotunplug: set known chipset before tests

Kamil Konieczny kamil.konieczny at linux.intel.com
Mon Aug 5 14:37:05 UTC 2024


Set chipset for all known drivers, not only for i915.

Signed-off-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>
Reviewed-by: Andrzej Hajda <andrzej.hajda at intel.com>
---
 tests/core_hotunplug.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/core_hotunplug.c b/tests/core_hotunplug.c
index 145fe141e..617332b0f 100644
--- a/tests/core_hotunplug.c
+++ b/tests/core_hotunplug.c
@@ -685,9 +685,9 @@ igt_main
 		fd_drm = __drm_open_driver(DRIVER_ANY);
 		igt_skip_on_f(fd_drm < 0, "No known DRM device found\n");
 
-		if (is_i915_device(fd_drm)) {
-			priv.chipset = DRIVER_INTEL;
+		priv.chipset = drm_get_chipset(fd_drm);
 
+		if (is_i915_device(fd_drm)) {
 			gem_quiescent_gpu(fd_drm);
 			igt_require_gem(fd_drm);
 
-- 
2.43.0



More information about the igt-dev mailing list