linux_dsm_epyc7002/drivers/gpu/drm/amd
Felix Kuehling ab2f7a5c18 drm/amdgpu: Implement VRAM wipe on release
Wipe VRAM memory containing sensitive data when moving or releasing
BOs. Clearing the memory is pipelined to minimize any impact on
subsequent memory allocation latency. Use of a poison value should
help debug future use-after-free bugs.

When moving BOs, the existing ttm_bo_pipelined_move ensures that the
memory won't be reused before being wiped.

When releasing BOs, the BO is fenced with the memory fill operation,
which results in queuing the BO for a delayed delete.

v2: Move amdgpu_amdkfd_unreserve_memory_limit into
amdgpu_bo_release_notify so that KFD can use memory that's still
being cleared in the background

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>
2019-08-02 10:18:32 -05:00
..
acp treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
amdgpu drm/amdgpu: Implement VRAM wipe on release 2019-08-02 10:18:32 -05:00
amdkfd drm/amdkfd: Save/restore vcc on gfx10 2019-07-30 23:48:33 -05:00
display drm/amd/display: Use switch table for dc_to_smu_clock_type 2019-08-02 10:17:57 -05:00
include drm/amd/include: add define of TCP_EDC_CNT_NEW 2019-07-31 14:50:54 -05:00
powerplay drm/amd/powerplay: sort feature status index by asic feature id for smu 2019-08-02 10:17:05 -05:00