Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Clint Taylor <clinton.a.taylor@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [PATCH i-g-t 4/9] XE3: tests/intel/xe_pat: extend for xe3
Date: Wed, 13 Nov 2024 15:02:56 -0800	[thread overview]
Message-ID: <20241113230301.655499-6-clinton.a.taylor@intel.com> (raw)
In-Reply-To: <20241113230301.655499-1-clinton.a.taylor@intel.com>

From: Matthew Auld <matthew.auld@intel.com>

Same pat_index modes should apply as for xe2. Matches the kernel.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Clint Taylor <Clinton.A.Taylor@intel.com>
---
 tests/intel/xe_pat.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/intel/xe_pat.c b/tests/intel/xe_pat.c
index b0b3ad8a7..1322df349 100644
--- a/tests/intel/xe_pat.c
+++ b/tests/intel/xe_pat.c
@@ -110,7 +110,7 @@ static void pat_index_all(int fd)
 
 	for (pat_index = 0; pat_index <= intel_get_max_pat_index(fd);
 	     pat_index++) {
-		if (intel_get_device_info(dev_id)->graphics_ver == 20 &&
+		if (intel_get_device_info(dev_id)->graphics_ver >= 20 &&
 		    pat_index >= 16 && pat_index <= 19) { /* hw reserved */
 			igt_assert_eq(__xe_vm_bind(fd, vm, 0, bo, 0, 0x40000,
 						   size, DRM_XE_VM_BIND_OP_MAP, 0, NULL, 0, 0,
@@ -854,7 +854,7 @@ static uint8_t get_pat_idx_wt(int fd, bool *compressed)
 	uint16_t dev_id = intel_get_drm_devid(fd);
 
 	if (compressed)
-		*compressed = intel_get_device_info(dev_id)->graphics_ver == 20;
+		*compressed = intel_get_device_info(dev_id)->graphics_ver >= 20;
 
 	return intel_get_pat_idx_wt(fd);
 }
-- 
2.25.1


  parent reply	other threads:[~2024-11-13 23:03 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-13 23:02 [PATCH i-g-t 0/9] Initial PTL support Clint Taylor
2024-11-13 23:02 ` [PATCH] lib: Sync pci ids with kernel Clint Taylor
2024-11-13 23:07   ` Taylor, Clinton A
2024-11-13 23:02 ` [PATCH i-g-t 1/9] PTL: lib/intel_chipset: add pantherlake definition and support Clint Taylor
2024-11-13 23:02 ` [PATCH i-g-t 2/9] PTL: lib/intel_device_info: Enable flatccs for PTL Clint Taylor
2024-11-13 23:02 ` [PATCH i-g-t 3/9] XE3: lib/intel_pat: extend for xe3 Clint Taylor
2024-11-13 23:02 ` Clint Taylor [this message]
2024-11-13 23:02 ` [PATCH i-g-t 5/9] XE3: tests/kms_addfb_basic: fix x-tiled tests for case when there is no x-tile Clint Taylor
2024-11-13 23:02 ` [PATCH i-g-t 6/9] XE3: tests/intel/kms_draw_crc: " Clint Taylor
2024-11-13 23:02 ` [PATCH i-g-t 7/9] XE3: tests/kms_cursor_legacy: flip_vs_cursor_busy_crc was requiring any driver but used intel x-tile Clint Taylor
2024-11-13 23:03 ` [PATCH i-g-t 8/9] XE3: tests/intel/kms_frontbuffer_tracking: fix x-tiled tests for case when there is no x-tile Clint Taylor
2024-11-13 23:03 ` [PATCH i-g-t 9/9] XE3: tests/intel/kms_frontbuffer_tracking: platform based handling of x-tile cases Clint Taylor
2024-11-13 23:16 ` ✗ Fi.CI.BUILD: failure for Initial PTL support (rev2) Patchwork

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=20241113230301.655499-6-clinton.a.taylor@intel.com \
    --to=clinton.a.taylor@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