]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/panthor: Extend VM locked region for remap case to be a superset
authorAdrián Larumbe <adrian.larumbe@collabora.com>
Wed, 8 Apr 2026 19:12:23 +0000 (20:12 +0100)
committerAdrián Larumbe <adrian.larumbe@collabora.com>
Mon, 13 Apr 2026 15:16:07 +0000 (16:16 +0100)
commit8867262d993d249309a8d3ec28ce095378cf1720
treeda8a5ad3dc2d2d8e325edd83d9b39dfffca8cc69
parent2d76319c4cbb19eccfca71fa05d40a6b4ce7fc3d
drm/panthor: Extend VM locked region for remap case to be a superset

In the event of an sm_step_remap() that leads to a partial unmap of a
transparent huge page, the new locked region required by an extended unmap
might not be a superset of the original one. Then, if it leaves a portion
of the initially requested one out, the ensuing map will trigger a warning.

Fixes: 8e7460eac786 ("drm/panthor: Support partial unmaps of huge pages")
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Link: https://patch.msgid.link/20260408191228.537625-1-adrian.larumbe@collabora.com
Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
drivers/gpu/drm/panthor/panthor_mmu.c