public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [i-g-t] tests/core_hotunplug: Open render capable DRM device
@ 2026-03-03 22:53 Jagmeet Randhawa
  2026-03-04  6:40 ` ✓ Xe.CI.BAT: success for " Patchwork
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Jagmeet Randhawa @ 2026-03-03 22:53 UTC (permalink / raw)
  Cc: igt-dev, stuart.summers, Jagmeet Randhawa

The test may select simpledrm when opening DRIVER_ANY,
which does not expose a render node. This causes the
later render open to fail.

Open a render capable device initially using
__drm_open_driver_render(DRIVER_ANY) to avoid
selecting simpledrm.

Signed-off-by: Jagmeet Randhawa <jagmeet.randhawa@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 7c9dae1bf..3a612fce2 100644
--- a/tests/core_hotunplug.c
+++ b/tests/core_hotunplug.c
@@ -696,8 +696,8 @@ int igt_main()
 		int fd_drm;
 		char driver[32] = {};
 
-		fd_drm = __drm_open_driver(DRIVER_ANY);
-		igt_skip_on_f(fd_drm < 0, "No known DRM device found\n");
+		fd_drm = __drm_open_driver_render(DRIVER_ANY);
+		igt_skip_on_f(fd_drm < 0, "No known DRM render device found\n");
 
 		priv.chipset = drm_get_chipset(fd_drm);
 		/* Make sure it opens the same driver */
-- 
2.52.0


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-03-05  9:04 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-03 22:53 [i-g-t] tests/core_hotunplug: Open render capable DRM device Jagmeet Randhawa
2026-03-04  6:40 ` ✓ Xe.CI.BAT: success for " Patchwork
2026-03-04  7:04 ` ✓ i915.CI.BAT: " Patchwork
2026-03-04 13:56 ` [i-g-t] " Kamil Konieczny
2026-03-04 16:31   ` Janusz Krzysztofik
2026-03-04 17:49     ` Randhawa, Jagmeet
2026-03-04 17:36   ` Randhawa, Jagmeet
2026-03-05  5:11 ` ✗ Xe.CI.FULL: failure for " Patchwork
2026-03-05  8:38 ` Patchwork
2026-03-05  9:04 ` ✗ i915.CI.Full: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox