Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Kunal Joshi <kunal1.joshi@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: kunal1.joshi@intel.com
Subject: [igt-dev] [PATCH i-g-t 4/6] RFC lib/ioctl_wrappers: GEM_SET_DOMAIN ioctl not supported on xe
Date: Tue, 13 Jun 2023 00:31:32 +0530	[thread overview]
Message-ID: <20230612190134.2902272-5-kunal1.joshi@intel.com> (raw)
In-Reply-To: <20230612190134.2902272-1-kunal1.joshi@intel.com>

xe doesn't support GEM_SET_DOMAIN ioctl

v2: Keep i915 specific check in test only

Signed-off-by: Kunal Joshi <kunal1.joshi@intel.com>
Reviewed-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
---
 tests/i915/kms_frontbuffer_tracking.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/i915/kms_frontbuffer_tracking.c b/tests/i915/kms_frontbuffer_tracking.c
index 54071285..22d1a7df 100644
--- a/tests/i915/kms_frontbuffer_tracking.c
+++ b/tests/i915/kms_frontbuffer_tracking.c
@@ -1569,7 +1569,8 @@ static void do_flush(const struct test_mode *t)
 	struct modeset_params *params = pick_params(t);
 	struct fb_region *target = pick_target(t, params);
 
-	gem_set_domain(drm.fd, target->fb->gem_handle, I915_GEM_DOMAIN_GTT, 0);
+	if (is_i915_device(drm.fd))
+		gem_set_domain(drm.fd, target->fb->gem_handle, I915_GEM_DOMAIN_GTT, 0);
 }
 
 #define DONT_ASSERT_CRC			(1 << 0)
-- 
2.34.1

  parent reply	other threads:[~2023-06-12 18:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-12 19:01 [igt-dev] [PATCH i-g-t 0/6] RFC Enable kms_frontbuffer_tracking on X Kunal Joshi
2023-06-12 19:01 ` [igt-dev] [PATCH i-g-t 1/6] RFC tests/i915/kms_frontbuffer_tracking: Add xe support Kunal Joshi
2023-06-12 19:01 ` [igt-dev] [PATCH i-g-t 2/6] RFC tests/i915/kms_frontbuffer_tracking: xe doesn't support tiling as of now Kunal Joshi
2023-06-13  5:59   ` Modem, Bhanuprakash
2023-06-12 19:01 ` [igt-dev] [PATCH i-g-t 3/6] tests/i915/kms_frontbuffer_tracking: all gem ioctls are not supported for xe " Kunal Joshi
2023-06-12 19:01 ` Kunal Joshi [this message]
2023-06-12 19:01 ` [igt-dev] [PATCH i-g-t 5/6] RFC tests/i915/kms_frontbuffer_tracking: xe only supports MMAP_WC, BLT, RENDER Kunal Joshi
2023-06-13  6:01   ` Modem, Bhanuprakash
2023-06-12 19:01 ` [igt-dev] [PATCH i-g-t 6/6] HAX: test kms_frontbuffer_tracking for regression by changes Kunal Joshi
2023-06-12 20:05 ` [igt-dev] ✗ Fi.CI.BAT: failure for RFC Enable kms_frontbuffer_tracking on X Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2023-06-13 16:59 [igt-dev] [PATCH i-g-t 0/6] RFC Enable kms_frontbuffer_tracking on XE Kunal Joshi
2023-06-13 16:59 ` [igt-dev] [PATCH i-g-t 4/6] RFC lib/ioctl_wrappers: GEM_SET_DOMAIN ioctl not supported on xe Kunal Joshi

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=20230612190134.2902272-5-kunal1.joshi@intel.com \
    --to=kunal1.joshi@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    /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