]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/ttm: add BO priorities for the LRUs
authorChristian König <christian.koenig@amd.com>
Tue, 10 Jan 2017 13:08:28 +0000 (14:08 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 27 Jan 2017 17:20:33 +0000 (12:20 -0500)
commitcf6c467d67d319e239aec57d7ba31cb9946f29bf
tree8e6ab6e828cda2485ec80cd05b70777142725ab2
parent2ee7fc92cfd327fe41377f64a7f04ddc30c851e7
drm/ttm: add BO priorities for the LRUs

This way the driver can specify a priority for a BO which has the effect that
a BO is only evicted when all other BOs with a lower priority are evicted
first.

Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Roger.He <Hongbo.He@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
drivers/gpu/drm/ttm/ttm_bo.c
include/drm/ttm/ttm_bo_api.h
include/drm/ttm/ttm_bo_driver.h