* [PATCH] tests/intel/xe_vm: Always have at least 2 pages bound in hammer sections
@ 2024-04-10 1:15 Matthew Brost
0 siblings, 0 replies; only message in thread
From: Matthew Brost @ 2024-04-10 1:15 UTC (permalink / raw)
To: igt-dev; +Cc: Matthew Brost
If the prefetch buffer is 2k or larger the hammer sections will prefetch
the next page, if the page is unbound a fault will occur. Account for
larger prefetchs by always having at least 2 pages bound for the hammer
thread.
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
---
tests/intel/xe_vm.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/tests/intel/xe_vm.c b/tests/intel/xe_vm.c
index bd4973cc38..53acc650dc 100644
--- a/tests/intel/xe_vm.c
+++ b/tests/intel/xe_vm.c
@@ -1845,10 +1845,10 @@ igt_main
{ "either-side-partial", 4, 2, 1, 2, 0 },
{ "either-side-partial-hammer", 4, 2, 1, 2,
MAP_FLAG_HAMMER_FIRST_PAGE },
- { "either-side-partial-split-page-hammer", 4, 2, 1, 2,
+ { "either-side-partial-split-page-hammer", 6, 2, 2, 2,
MAP_FLAG_HAMMER_FIRST_PAGE |
MAP_FLAG_LARGE_PAGE },
- { "either-side-partial-large-page-hammer", 4, 2, 1, 2,
+ { "either-side-partial-large-page-hammer", 6, 2, 2, 2,
MAP_FLAG_HAMMER_FIRST_PAGE |
MAP_FLAG_LARGE_PAGE |
MAP_FLAG_LARGE_PAGE_NO_SPLIT },
@@ -1857,7 +1857,7 @@ igt_main
{ "front", 4, 2, 1, 3, 0 },
{ "many-all", 4 * 8, 2 * 8, 0 * 8, 4 * 8, 0 },
{ "many-either-side-partial", 4 * 8, 2 * 8, 1, 4 * 8 - 2, 0 },
- { "many-either-side-partial-hammer", 4 * 8, 2 * 8, 1, 4 * 8 - 2,
+ { "many-either-side-partial-hammer", 4 * 8, 2 * 8, 2, 4 * 8 - 4,
MAP_FLAG_HAMMER_FIRST_PAGE },
{ "many-either-side-full", 4 * 8, 4 * 8, 1 * 8, 2 * 8, 0 },
{ "many-end", 4 * 8, 4, 0 * 8, 3 * 8 + 2, 0 },
@@ -1902,12 +1902,12 @@ igt_main
{ "one-partial", 4, 1, 1, 2, 0 },
{ "either-side-partial", 4, 2, 1, 2, 0 },
{ "either-side-full", 4, 4, 1, 2, 0 },
- { "either-side-partial-hammer", 4, 2, 1, 2,
+ { "either-side-partial-hammer", 6, 2, 2, 2,
MAP_FLAG_HAMMER_FIRST_PAGE },
- { "either-side-partial-split-page-hammer", 4, 2, 1, 2,
+ { "either-side-partial-split-page-hammer", 6, 2, 2, 2,
MAP_FLAG_HAMMER_FIRST_PAGE |
MAP_FLAG_LARGE_PAGE },
- { "either-side-partial-large-page-hammer", 4, 2, 1, 2,
+ { "either-side-partial-large-page-hammer", 6, 2, 2, 2,
MAP_FLAG_HAMMER_FIRST_PAGE |
MAP_FLAG_LARGE_PAGE |
MAP_FLAG_LARGE_PAGE_NO_SPLIT },
@@ -1915,7 +1915,7 @@ igt_main
{ "front", 4, 2, 1, 3, 0 },
{ "many-all", 4 * 8, 2 * 8, 0 * 8, 4 * 8, 0 },
{ "many-either-side-partial", 4 * 8, 2 * 8, 1, 4 * 8 - 2, 0 },
- { "many-either-side-partial-hammer", 4 * 8, 2 * 8, 1, 4 * 8 - 2,
+ { "many-either-side-partial-hammer", 4 * 8, 2 * 8, 2, 4 * 8 - 4,
MAP_FLAG_HAMMER_FIRST_PAGE },
{ "userptr-all", 4, 2, 0, 4, MAP_FLAG_USERPTR },
{ "userptr-one-partial", 4, 1, 1, 2, MAP_FLAG_USERPTR },
--
2.34.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-04-10 1:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-10 1:15 [PATCH] tests/intel/xe_vm: Always have at least 2 pages bound in hammer sections Matthew Brost
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox