drm/xe: Avoid doing rebinds
authorMatthew Brost <matthew.brost@intel.com>
Wed, 19 Jul 2023 21:46:01 +0000 (14:46 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:37:52 +0000 (11:37 -0500)
commit8f33b4f054fc29a4774d8d10116ef460faeb84a8
treeabb5c806178e12488bfa7a37382667c8492cf8e9
parent3188c0f4c893ce1b232cdf8a3e26ff6139079908
drm/xe: Avoid doing rebinds

If we dont change page sizes we can avoid doing rebinds rather just do a
partial unbind. The algorithm to determine its page size is greedy as we
assume all pages in the removed VMA are the largest page used in the
VMA.

v2: Don't exceed 100 lines
v3: struct xe_vma_op_unmap remove in different patch, remove XXX comment

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
drivers/gpu/drm/xe/xe_vm_types.h