Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: janga.rahul.kumar@intel.com
To: igt-dev@lists.freedesktop.org, ramadevi.gandi@intel.com,
	janga.rahul.kumar@intel.com
Subject: [igt-dev] [PATCH i-g-t] tests/core_hotunplug: Add XE driver test support
Date: Mon, 29 May 2023 15:46:54 +0530	[thread overview]
Message-ID: <20230529101654.488126-1-janga.rahul.kumar@intel.com> (raw)

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

             reply	other threads:[~2023-05-29 10:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-29 10:16 janga.rahul.kumar [this message]
2023-05-30 11:43 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/core_hotunplug: Add XE driver test support 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230529101654.488126-1-janga.rahul.kumar@intel.com \
    --to=janga.rahul.kumar@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=ramadevi.gandi@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox