drm/msm: Handle in-place remaps
authorRob Clark <robin.clark@oss.qualcomm.com>
Tue, 5 Aug 2025 16:44:31 +0000 (09:44 -0700)
committerRob Clark <robin.clark@oss.qualcomm.com>
Thu, 7 Aug 2025 16:22:28 +0000 (09:22 -0700)
commitfe2f3b1c702f0e02906419c662ca9446cc789354
treefc2ff816ba9584e0c88d78fa77beabe5493b622c
parentba3afadeb81ebb92ab23546fbd2ec7d9dfe216f8
drm/msm: Handle in-place remaps

Detect and handle the special case of a MAP op simply updating the vma
flags of an existing vma, and skip the pgtable updates.  This allows
turnip to set the MSM_VMA_DUMP flag on an existing mapping without
requiring additional synchronization against commands running on the
GPU.

Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
Tested-by: Connor Abbott <cwabbott0@gmail.com>
Patchwork: https://patchwork.freedesktop.org/patch/667238/
drivers/gpu/drm/msm/msm_gem_vma.c