]> Gentwo Git Trees - linux/.git/commit
drm/amdgpu: Add ioctl to get all gem handles for a process
authorDavid Francis <David.Francis@amd.com>
Mon, 16 Jun 2025 13:47:42 +0000 (09:47 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 2 Sep 2025 19:34:00 +0000 (15:34 -0400)
commitf9db1fc52ceb42f4a18506693349316f5e209ba6
tree34c2dfef850a46522a583b84fc99abbacd2719be
parent0317e0e224bcda9706a70c8bbd5aeb8b10b6ea0a
drm/amdgpu: Add ioctl to get all gem handles for a process

Add new ioctl DRM_IOCTL_AMDGPU_GEM_LIST_HANDLES.

This ioctl returns a list of bos with their handles, sizes,
and flags and domains.

This ioctl is meant to be used during CRIU checkpoint and
provide information needed to reconstruct the bos
in CRIU restore.

Userspace for this and the next 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_drv.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h
include/uapi/drm/amdgpu_drm.h