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>
Showing
- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 1 addition, 0 deletionsdrivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
- drivers/gpu/drm/ast/ast_ttm.c 1 addition, 0 deletionsdrivers/gpu/drm/ast/ast_ttm.c
- drivers/gpu/drm/bochs/bochs_mm.c 1 addition, 0 deletionsdrivers/gpu/drm/bochs/bochs_mm.c
- drivers/gpu/drm/cirrus/cirrus_ttm.c 1 addition, 0 deletionsdrivers/gpu/drm/cirrus/cirrus_ttm.c
- drivers/gpu/drm/mgag200/mgag200_ttm.c 1 addition, 0 deletionsdrivers/gpu/drm/mgag200/mgag200_ttm.c
- drivers/gpu/drm/nouveau/nouveau_bo.c 1 addition, 0 deletionsdrivers/gpu/drm/nouveau/nouveau_bo.c
- drivers/gpu/drm/qxl/qxl_ttm.c 1 addition, 0 deletionsdrivers/gpu/drm/qxl/qxl_ttm.c
- drivers/gpu/drm/radeon/radeon_ttm.c 1 addition, 0 deletionsdrivers/gpu/drm/radeon/radeon_ttm.c
- drivers/gpu/drm/ttm/ttm_bo.c 22 additions, 13 deletionsdrivers/gpu/drm/ttm/ttm_bo.c
- drivers/gpu/drm/virtio/virtgpu_ttm.c 1 addition, 0 deletionsdrivers/gpu/drm/virtio/virtgpu_ttm.c
- drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c 1 addition, 0 deletionsdrivers/gpu/drm/vmwgfx/vmwgfx_buffer.c
- include/drm/ttm/ttm_bo_api.h 13 additions, 0 deletionsinclude/drm/ttm/ttm_bo_api.h
- include/drm/ttm/ttm_bo_driver.h 12 additions, 0 deletionsinclude/drm/ttm/ttm_bo_driver.h
Loading
Please register or sign in to comment