summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Auld <matthew.auld@intel.com>2024-06-19 15:35:42 +0100
committerMatthew Auld <matthew.auld@intel.com>2024-07-05 10:34:38 +0100
commita1743ac7ed91ce40d742a351b1600da4f75972b1 (patch)
treeaed7130c37a3a63b24223e83034f35e236c915c3
parent95c1b90101478a8dc9571cc429aae1967113984d (diff)
tests/intel/xe_pat: account for Wa_16023588340
We can't use the CLOS3 entries on BMG g21. Signed-off-by: Matthew Auld <matthew.auld@intel.com> Cc: Matt Roper <matthew.d.roper@intel.com> Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
-rw-r--r--tests/intel/xe_pat.c21
1 files changed, 19 insertions, 2 deletions
diff --git a/tests/intel/xe_pat.c b/tests/intel/xe_pat.c
index fe6a367aa..82155f1d5 100644
--- a/tests/intel/xe_pat.c
+++ b/tests/intel/xe_pat.c
@@ -929,6 +929,18 @@ const struct pat_index_entry xe2_pat_index_modes[] = {
{ NULL, 31, false, "c3-2way", XE_COH_AT_LEAST_1WAY },
};
+const struct pat_index_entry bmg_g21_pat_index_modes[] = {
+ XE_COMMON_PAT_INDEX_MODES,
+
+ /* Too many, just pick some of the interesting ones */
+ { NULL, 1, false, "1way", XE_COH_AT_LEAST_1WAY },
+ { NULL, 2, false, "2way", XE_COH_AT_LEAST_1WAY },
+ { NULL, 2, false, "2way-cpu-wc", XE_COH_AT_LEAST_1WAY, true },
+ { NULL, 5, false, "uc-1way", XE_COH_AT_LEAST_1WAY },
+ { NULL, 12, true, "uc-comp", XE_COH_NONE },
+ { NULL, 27, false, "c2-2way", XE_COH_AT_LEAST_1WAY },
+};
+
/*
* Depending on 2M/1G GTT pages we might trigger different PTE layouts for the
* PAT bits, so make sure we test with and without huge-pages. Also ensure we
@@ -1169,8 +1181,13 @@ igt_main_args("V", NULL, help_str, opt_handler, NULL)
igt_subtest_with_dynamic("pat-index-xe2") {
igt_require(intel_get_device_info(dev_id)->graphics_ver >= 20);
igt_assert(HAS_FLATCCS(dev_id));
- subtest_pat_index_modes_with_regions(fd, xe2_pat_index_modes,
- ARRAY_SIZE(xe2_pat_index_modes));
+
+ if (intel_graphics_ver(dev_id) == IP_VER(20, 1))
+ subtest_pat_index_modes_with_regions(fd, bmg_g21_pat_index_modes,
+ ARRAY_SIZE(bmg_g21_pat_index_modes));
+ else
+ subtest_pat_index_modes_with_regions(fd, xe2_pat_index_modes,
+ ARRAY_SIZE(xe2_pat_index_modes));
}
igt_subtest("display-vs-wb-transient")