diff options
author | Christian König <christian.koenig@amd.com> | 2016-08-30 11:26:04 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-10-25 14:44:04 -0400 |
commit | a2ab19fed9d1dc5a7a2ced44f4b289885c522a8f (patch) | |
tree | b70e33cd46fa454908bd0c6cae903fe562ef9c7c /drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | |
parent | 585ffd65441a4aea7e762d17f7a248d07cd1c9ac (diff) |
drm/ttm: make eviction decision a driver callback v2
This way the driver can decide if it is valuable to evict a BO or not.
The current implementation is added as default to all existing drivers.
v2: fix some typos found during internal testing
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c index 414fa8fa8488..fb646c44faae 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | |||
@@ -1109,6 +1109,7 @@ static struct ttm_bo_driver amdgpu_bo_driver = { | |||
1109 | .ttm_tt_unpopulate = &amdgpu_ttm_tt_unpopulate, | 1109 | .ttm_tt_unpopulate = &amdgpu_ttm_tt_unpopulate, |
1110 | .invalidate_caches = &amdgpu_invalidate_caches, | 1110 | .invalidate_caches = &amdgpu_invalidate_caches, |
1111 | .init_mem_type = &amdgpu_init_mem_type, | 1111 | .init_mem_type = &amdgpu_init_mem_type, |
1112 | .eviction_valuable = ttm_bo_eviction_valuable, | ||
1112 | .evict_flags = &amdgpu_evict_flags, | 1113 | .evict_flags = &amdgpu_evict_flags, |
1113 | .move = &amdgpu_bo_move, | 1114 | .move = &amdgpu_bo_move, |
1114 | .verify_access = &amdgpu_verify_access, | 1115 | .verify_access = &amdgpu_verify_access, |