aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/hyperv/hyperv_drm_modeset.c
diff options
context:
space:
mode:
authorThomas Hellström <[email protected]>2021-06-02 08:38:14 +0000
committerThomas Hellström <[email protected]>2021-06-07 14:07:09 +0000
commitabb50d67adf3f01f567f365b45ecb49df8289296 (patch)
treea97e174a774b1e0de49e1b521bb1b7ae29a9ef84 /drivers/gpu/drm/hyperv/hyperv_drm_modeset.c
parentdrm/ttm: Document and optimize ttm_bo_pipeline_gutting() (diff)
downloadkernel-abb50d67adf3f01f567f365b45ecb49df8289296.tar.gz
kernel-abb50d67adf3f01f567f365b45ecb49df8289296.zip
drm/ttm, drm/amdgpu: Allow the driver some control over swapping
We are calling the eviction_valuable driver callback at eviction time to determine whether we actually can evict a buffer object. The upcoming i915 TTM backend needs the same functionality for swapout, and that might actually be beneficial to other drivers as well. Add an eviction_valuable call also in the swapout path. Try to keep the current behaviour for all drivers by returning true if the buffer object is already in the TTM_PL_SYSTEM placement. We change behaviour for the case where a buffer object is in a TT backed placement when swapped out, in which case the drivers normal eviction_valuable path is run. Reviewed-by: Maarten Lankhorst <[email protected]> Cc: Christian König <[email protected]> Signed-off-by: Thomas Hellström <[email protected]> Acked-by: Christian König <[email protected]> Link: https://lore.kernel.org/r/[email protected] Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/hyperv/hyperv_drm_modeset.c')
0 files changed, 0 insertions, 0 deletions