[PATCH i-g-t v1 2/7] tests/core_hotunplug: set known chipset before tests
Kamil Konieczny
kamil.konieczny at linux.intel.com
Fri Jun 7 15:36:14 UTC 2024
Set chipset for all known drivers, not only for i915.
Signed-off-by: Kamil Konieczny <kamil.konieczny at linux.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 db7a5c5e8..3971b94ff 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