drm/xe: Use migrate engine for page fault binds
authorMatthew Brost <matthew.brost@intel.com>
Fri, 21 Jul 2023 19:16:13 +0000 (12:16 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:37:53 +0000 (11:37 -0500)
commit7ead33156483f5e7a699002f2480757aaa34ab08
tree1ce51c61a3ab62316724f74f69137fdc43fb4c21
parenta4cc60a55fd9a6bb8b50375d404f317ac2030941
drm/xe: Use migrate engine for page fault binds

We must use migrate engine for page fault binds in order to avoid a
deadlock as the migrate engine has a reserved BCS instance which cannot
be stuck on a fault. To use the migrate engine the engine argument to
xe_migrate_update_pgtables must be NULL, this was incorrectly wired up
so vm->eng[tile_id] was always being used. Fix this.

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_pt.c
drivers/gpu/drm/xe/xe_vm.c