[igt-dev] [PATCH i-g-t] tests/core_hotunplug: Add XE driver test support
janga.rahul.kumar at intel.com
janga.rahul.kumar at intel.com
Mon May 29 10:16:54 UTC 2023
From: Janga Rahul Kumar <janga.rahul.kumar at intel.com>
Enable test for DRIVER_XE
Signed-off-by: Janga Rahul Kumar<janga.rahul.kumar at 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
More information about the igt-dev
mailing list