drm/xe: Rework GPU page fault handling
authorMatthew Brost <matthew.brost@intel.com>
Fri, 7 Jun 2024 01:52:12 +0000 (18:52 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Fri, 7 Jun 2024 15:56:06 +0000 (08:56 -0700)
commit3d420e9fa84866cb3b98b6baa05d682850ef2952
tree90db65c292413f0f444f11e6d1b1f1c7af5a2b8b
parent78247e48a118948cbb7126fa3ebe0e2cb4215bfd
drm/xe: Rework GPU page fault handling

Add helper function to implement VMA (user binding) page faults, remove
unnecessary userptr.invalidate_link list del operation, retry on memory
pressure, remove unnecessary xe_vma_userptr_check_repin after rebinding,
remove unnecessary TLB invalidation, and always use vm->lock in write
mode. Changes help facilitate SVM page faults.

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Reviewed-by: Jagmeet Randhawa <jagmeet.randhawa@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240607015212.2190106-1-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_gt_pagefault.c