Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/core_hotunplug: Add XE driver test support
@ 2023-05-29 10:16 janga.rahul.kumar
  2023-05-30 11:43 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: janga.rahul.kumar @ 2023-05-29 10:16 UTC (permalink / raw)
  To: igt-dev, ramadevi.gandi, janga.rahul.kumar

From: Janga Rahul Kumar <janga.rahul.kumar@intel.com>

Enable test for DRIVER_XE

Signed-off-by: Janga Rahul Kumar<janga.rahul.kumar@intel.com>
---
 tests/core_hotunplug.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tests/core_hotunplug.c b/tests/core_hotunplug.c
index 4d6a721f..2b97e86e 100644
--- a/tests/core_hotunplug.c
+++ b/tests/core_hotunplug.c
@@ -445,7 +445,7 @@ static void node_healthcheck(struct hotunplug *priv, unsigned flags)
 	if (closed)	/* store fd for cleanup if not dirty */
 		priv->fd.drm_hc = fd_drm;
 
-	if (priv->chipset == DRIVER_INTEL) {
+	if (priv->chipset == DRIVER_INTEL || priv->chipset == DRIVER_XE) {
 		/* don't report library failed asserts as healthcheck failure */
 		priv->failure = "Unrecoverable test failure";
 		if (local_i915_healthcheck(fd_drm, "") &&
@@ -694,6 +694,10 @@ igt_main
 			igt_require_gem(fd_drm);
 
 			priv.has_intel_perf = local_i915_perf_healthcheck(fd_drm);
+		} else if (is_xe_device(fd_drm)) {
+			priv.chipset = DRIVER_XE;
+
+			gem_quiescent_gpu(fd_drm);
 		}
 
 		/* Make sure subtests always reopen the same device */
-- 
2.25.1

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

end of thread, other threads:[~2023-06-06  8:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-29 10:16 [igt-dev] [PATCH i-g-t] tests/core_hotunplug: Add XE driver test support janga.rahul.kumar
2023-05-30 11:43 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2023-05-30 21:36 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2023-06-06  8:28 ` [igt-dev] [PATCH i-g-t] " Dandamudi, Priyanka

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