]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/panthor: Don't call drm_gpuvm_bo_extobj_add() if the object is private
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 1 Apr 2026 13:48:49 +0000 (15:48 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Fri, 3 Apr 2026 11:23:28 +0000 (13:23 +0200)
commit2b207c47c9cfcdfbaff1be61d09c71b1edc3f0ce
treea68dae2458e96e4e05e5900a0fc2d597cc9f8c27
parentf36adaaf3d0cd8423086ad2ee332970bab0dacd3
drm/panthor: Don't call drm_gpuvm_bo_extobj_add() if the object is private

drm_gpuvm_bo_extobj_add() is a NOP if the object is private, but it
forces us to take/release the VM resv lock, so let's do that only when
we know the object can be shared.

v3:
- New commit

v4:
- Collect R-bs

v5:
- No changes

v6:
- No changes

v7:
- No changes

Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Link: https://patch.msgid.link/20260401134854.2275433-6-boris.brezillon@collabora.com
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
drivers/gpu/drm/panthor/panthor_mmu.c