]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Mark KFD VRAM allocations for wipe on release
authorFelix Kuehling <Felix.Kuehling@amd.com>
Tue, 9 Jul 2019 00:01:22 +0000 (20:01 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 2 Aug 2019 15:18:38 +0000 (10:18 -0500)
commita8066ec1676bd54c67a7158e6fc0f7f80480f73e
treebbdcb71a98bc32953300c16470160ccdcbcd1b63
parent64dc7a1f43bd37c05c3f21c625b1a19c8f78f005
drm/amdgpu: Mark KFD VRAM allocations for wipe on release

Memory used by KFD applications can contain sensitive information that
should not be leaked to other processes. The current approach to prevent
leaks is to clear VRAM at allocation time. This is not effective because
memory can be reused in other ways without being cleared. Synchronously
clearing memory on the allocation path also carries a significant
performance penalty.

Stop clearing memory at allocation time. Instead mark the memory for
wipe on release.

Signed-off-by: Felix Kuehling <Felix.Kuehling@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_amdkfd_gpuvm.c