]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu: Allow more flags to be set on gem create.
authorDavid Francis <David.Francis@amd.com>
Tue, 12 Aug 2025 18:19:18 +0000 (14:19 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 2 Sep 2025 19:34:00 +0000 (15:34 -0400)
commit0317e0e224bcda9706a70c8bbd5aeb8b10b6ea0a
tree9e2df79061fca22183ea325ed649a5368f48c6da
parent4bf83dd6e3b3b2a131e357f035b17edaee6f6766
drm/amdgpu: Allow more flags to be set on gem create.

The GEM create flag AMDGPU_GEM_CREATE_VRAM_WIPE_ON_RELEASE
specifies that gem memory contains sensitive information and
should be cleared to prevent snooping.

The COHERENT and UNCACHED gem create flags enable memory
features related to sharing memory across devices.

For CRIU we need to re-create KFD BOs through the
GEM_CREATE IOCTL, so allow those KFD specific flags here as well.
This will also aid us in the future and allows to move
the KFD components over using the render node for allocations.

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_gem.h