Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/msm: Disallow foreign mapping of _NO_SHARE

This restriction applies to mapping of _NO_SHARE objs in the kms vm as
well as importing/exporting BOs. Since the DPU has it's own VM, scanout
counts as "exporting" a BO from outside of it's host VM.

Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
Patchwork: https://patchwork.freedesktop.org/patch/713897/
Message-ID: <20260324220519.1221471-1-robin.clark@oss.qualcomm.com>

Rob Clark c0761236 cf50ccdb

+6
+6
drivers/gpu/drm/msm/msm_gem_vma.c
··· 373 373 struct msm_gem_vma *vma; 374 374 int ret; 375 375 376 + /* _NO_SHARE objs cannot be mapped outside of their "host" vm: */ 377 + if (obj && (to_msm_bo(obj)->flags & MSM_BO_NO_SHARE) && 378 + GEM_WARN_ON(obj->resv != drm_gpuvm_resv(gpuvm))) { 379 + return ERR_PTR(-EINVAL); 380 + } 381 + 376 382 drm_gpuvm_resv_assert_held(&vm->base); 377 383 378 384 vma = kzalloc(sizeof(*vma), GFP_KERNEL);