]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: Use xe_vma_ops to implement page fault rebinds
authorMatthew Brost <matthew.brost@intel.com>
Thu, 25 Apr 2024 04:55:07 +0000 (21:55 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Fri, 26 Apr 2024 19:10:01 +0000 (12:10 -0700)
commitbf69918b7199ffa5bb6213f2b0a2c0b1be8f87dd
tree1bae55d826c61a615137810eceb4b7685dd0ad64
parent4dbbe4579490b4dbc89bf9c79ef3b9f1d94366c3
drm/xe: Use xe_vma_ops to implement page fault rebinds

In effort to make multiple VMA binds operations atomic (1 job), all
device page tables updates will be implemented via a xe_vma_ops (atomic
unit) interface,

Add xe_vma_rebind function which is implemented using xe_vma_ops
interface. Use xe_vma_rebind in GPU page faults for rebinds rather than
directly called deprecated function in PT layer.

v3:
 - Update commit message (Oak)
v4:
 - Fix tile_mask argument (CI)

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Oak Zeng <oak.zeng@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240425045513.1913039-8-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_gt_pagefault.c
drivers/gpu/drm/xe/xe_vm.c
drivers/gpu/drm/xe/xe_vm.h
drivers/gpu/drm/xe/xe_vm_types.h