]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/xe: Assume large page size if VMA not yet bound
authorMatthew Brost <matthew.brost@intel.com>
Mon, 5 Feb 2024 23:17:14 +0000 (15:17 -0800)
committerMatthew Brost <matthew.brost@intel.com>
Tue, 6 Feb 2024 01:42:19 +0000 (17:42 -0800)
commit5ad6af5c91e9b942c44b657122270d935db3a813
tree3b403570c9e6904cef538188582e702af27b0ec6
parent17ffcdb041a4bce4db8f96552cbcf7ec8897490c
drm/xe: Assume large page size if VMA not yet bound

The calculation to determine max page size of a VMA during a REMAP
operations assumes the VMA has been bound. This assumption is not true
if the VMA is from an eariler operation in an array of binds. If a VMA
has not been bound use the maximum page size which will ensure the
previous / next REMAP operations are not incorrectly skipped.

Fixes: 8f33b4f054fc ("drm/xe: Avoid doing rebinds")
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240205231714.2956225-1-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_vm.c