Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] lib/xe_query: Fix xe_supports_faults()
@ 2023-12-07  1:26 Brian Welty
  2023-12-06 18:29 ` Matthew Brost
                   ` (6 more replies)
  0 siblings, 7 replies; 11+ messages in thread
From: Brian Welty @ 2023-12-07  1:26 UTC (permalink / raw)
  To: igt-dev; +Cc: Rodrigo Vivi

In recent uAPI changes, it was missed that setting VM_CREATE_FLAG_FAULT_MODE
requires VM_CREATE_FLAG_LR_MODE in this query routine.

Fixes: dc71419700 (tests/intel/xe: Adjust to KMD uAPI changes for long-running VMs)
Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/997
Signed-off-by: Brian Welty <brian.welty@intel.com>
---
 lib/xe/xe_query.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/xe/xe_query.c b/lib/xe/xe_query.c
index 3ebce83615..701fe1d1ea 100644
--- a/lib/xe/xe_query.c
+++ b/lib/xe/xe_query.c
@@ -312,6 +312,7 @@ bool xe_supports_faults(int fd)
 
 	struct drm_xe_vm_create create = {
 		.flags = DRM_XE_VM_CREATE_FLAG_ASYNC_DEFAULT |
+			 DRM_XE_VM_CREATE_FLAG_LR_MODE |
 			 DRM_XE_VM_CREATE_FLAG_FAULT_MODE,
 	};
 
-- 
2.38.0

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-12-14  7:26 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-07  1:26 [igt-dev] [PATCH i-g-t] lib/xe_query: Fix xe_supports_faults() Brian Welty
2023-12-06 18:29 ` Matthew Brost
2023-12-07  2:40 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
2023-12-07 11:33   ` Kamil Konieczny
2023-12-13  6:59     ` Musial, Ewelina
2023-12-13  8:33       ` Illipilli, TejasreeX
2023-12-07  3:26 ` [igt-dev] ✓ CI.xeBAT: success " Patchwork
2023-12-13  8:27 ` ✓ Fi.CI.BAT: " Patchwork
2023-12-13  8:28 ` Patchwork
2023-12-13 10:15 ` ✗ Fi.CI.IGT: failure " Patchwork
2023-12-14  7:26 ` ✓ Fi.CI.IGT: success " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox