drm/amdgpu: add AMDGPU_GEM_CREATE_DISCARDABLE
Add a AMDGPU_GEM_CREATE_DISCARDABLE flag to note that the content of a BO doesn't needs to be preserved during eviction. KFD was already using a similar functionality for SVM BOs so replace the internal flag with the new UAPI. Signed-off-by:Christian König <christian.koenig@amd.com> Reviewed-by:
Alex Deucher <alexander.deucher@amd.com> Reviewed-by:
Marek Olšák <marek.olsak@amd.com> Signed-off-by:
Alex Deucher <alexander.deucher@amd.com>
Showing
- drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 2 additions, 2 deletionsdrivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 1 addition, 0 deletionsdrivers/gpu/drm/amd/amdgpu/amdgpu_object.c
- drivers/gpu/drm/amd/amdgpu/amdgpu_object.h 0 additions, 1 deletiondrivers/gpu/drm/amd/amdgpu/amdgpu_object.h
- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 1 addition, 1 deletiondrivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
- drivers/gpu/drm/amd/amdkfd/kfd_svm.c 1 addition, 1 deletiondrivers/gpu/drm/amd/amdkfd/kfd_svm.c
- include/uapi/drm/amdgpu_drm.h 4 additions, 0 deletionsinclude/uapi/drm/amdgpu_drm.h
Loading
Please register or sign in to comment