]> Gentwo Git Trees - linux/.git/commit
drm/amdgpu: Add mapping info option for GEM_OP ioctl
authorDavid Francis <David.Francis@amd.com>
Mon, 16 Jun 2025 13:49:33 +0000 (09:49 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 2 Sep 2025 19:53:33 +0000 (15:53 -0400)
commit4d82724f7f2b847eb0454b1aab5450545b39abd4
tree663aaf1f17301f451bd9ca203137ab781218e491
parentf9db1fc52ceb42f4a18506693349316f5e209ba6
drm/amdgpu: Add mapping info option for GEM_OP ioctl

Add new GEM_OP_IOCTL option GET_MAPPING_INFO, which
returns a list of mappings associated with a given bo, along with
their positions and offsets.

Userspace for this and the previous change can be found at:
https://github.com/checkpoint-restore/criu/pull/2613

Signed-off-by: David Francis <David.Francis@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
include/uapi/drm/amdgpu_drm.h