Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix execlist mode
@ 2024-02-22  3:47 Matthew Brost
  2024-02-22  3:47 ` [PATCH] drm/xe: Add debug prints for skipping rebinds Matthew Brost
                   ` (9 more replies)
  0 siblings, 10 replies; 13+ messages in thread
From: Matthew Brost @ 2024-02-22  3:47 UTC (permalink / raw)
  To: intel-xe; +Cc: Matthew Brost

While not supported, execlist mode shouldn't be totally broken either.
Fix execlist mode so some basic tests work without a kernel panic (e.g.
xe_exec_basic.once-basic)

Matthew Brost (2):
  drm/xe: Fix execlist splat
  drm/xe: Don't issue TLB invalidations for VMAs if using execlists

 drivers/gpu/drm/xe/xe_execlist.c |  2 +-
 drivers/gpu/drm/xe/xe_pt.c       | 32 +++++++++++++++++++-------------
 2 files changed, 20 insertions(+), 14 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 13+ messages in thread
* [PATCH] drm/xe: Add debug prints for skipping rebinds
@ 2024-02-21  3:27 Matthew Brost
  2024-02-21 21:13 ` Rodrigo Vivi
  0 siblings, 1 reply; 13+ messages in thread
From: Matthew Brost @ 2024-02-21  3:27 UTC (permalink / raw)
  To: intel-xe; +Cc: Matthew Brost

Will help debug issues with VM binds.

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
---
 drivers/gpu/drm/xe/xe_vm.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/gpu/drm/xe/xe_vm.c b/drivers/gpu/drm/xe/xe_vm.c
index 23a44ef85aa4..bf040df0d02b 100644
--- a/drivers/gpu/drm/xe/xe_vm.c
+++ b/drivers/gpu/drm/xe/xe_vm.c
@@ -2287,6 +2287,7 @@ static int vm_bind_ioctl_ops_parse(struct xe_vm *vm, struct xe_exec_queue *q,
 				   struct xe_sync_entry *syncs, u32 num_syncs,
 				   struct list_head *ops_list, bool last)
 {
+	struct xe_device *xe = vm->xe;
 	struct xe_vma_op *last_op = NULL;
 	struct drm_gpuva_op *__op;
 	int err = 0;
@@ -2362,6 +2363,9 @@ static int vm_bind_ioctl_ops_parse(struct xe_vm *vm, struct xe_exec_queue *q,
 						xe_vma_end(vma) -
 						xe_vma_start(old);
 					op->remap.start = xe_vma_end(vma);
+					vm_dbg(&xe->drm, "REMAP:SKIP_PREV: addr=0x%016llx, range=0x%016llx",
+					       (ULL)op->remap.start,
+					       (ULL)op->remap.range);
 				}
 			}
 
@@ -2392,6 +2396,9 @@ static int vm_bind_ioctl_ops_parse(struct xe_vm *vm, struct xe_exec_queue *q,
 					op->remap.range -=
 						xe_vma_end(old) -
 						xe_vma_start(vma);
+					vm_dbg(&xe->drm, "REMAP:SKIP_NEXT: addr=0x%016llx, range=0x%016llx",
+					       (ULL)op->remap.start,
+					       (ULL)op->remap.range);
 				}
 			}
 			break;
-- 
2.34.1


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

end of thread, other threads:[~2024-02-22  4:25 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-22  3:47 [PATCH 0/2] Fix execlist mode Matthew Brost
2024-02-22  3:47 ` [PATCH] drm/xe: Add debug prints for skipping rebinds Matthew Brost
2024-02-22  3:47 ` [PATCH 1/2] drm/xe: Fix execlist splat Matthew Brost
2024-02-22  3:47 ` [PATCH 2/2] drm/xe: Don't issue TLB invalidations for VMAs if using execlists Matthew Brost
2024-02-22  3:51 ` ✓ CI.Patch_applied: success for Fix execlist mode (rev2) Patchwork
2024-02-22  3:51 ` ✓ CI.checkpatch: " Patchwork
2024-02-22  3:52 ` ✓ CI.KUnit: " Patchwork
2024-02-22  4:03 ` ✓ CI.Build: " Patchwork
2024-02-22  4:04 ` ✓ CI.Hooks: " Patchwork
2024-02-22  4:05 ` ✓ CI.checksparse: " Patchwork
2024-02-22  4:25 ` ✓ CI.BAT: " Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2024-02-21  3:27 [PATCH] drm/xe: Add debug prints for skipping rebinds Matthew Brost
2024-02-21 21:13 ` Rodrigo Vivi

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