diff options
Diffstat (limited to 'common/recipes-kernel/linux/files/0487-drm-ttm-implement-LRU-add-callbacks-v2.patch')
-rw-r--r-- | common/recipes-kernel/linux/files/0487-drm-ttm-implement-LRU-add-callbacks-v2.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0487-drm-ttm-implement-LRU-add-callbacks-v2.patch b/common/recipes-kernel/linux/files/0487-drm-ttm-implement-LRU-add-callbacks-v2.patch new file mode 100644 index 00000000..4a515009 --- /dev/null +++ b/common/recipes-kernel/linux/files/0487-drm-ttm-implement-LRU-add-callbacks-v2.patch @@ -0,0 +1,36 @@ +From c1fd9de7e6dce64e58b5a099c0a20c2ef0bf5dad Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com> +Date: Wed, 6 Apr 2016 11:12:07 +0200 +Subject: [PATCH 0487/1110] drm/ttm: implement LRU add callbacks v2 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +This allows fine grained control for the driver where to add a BO into the LRU. + +v2: fix typo in comment + +Reviewed-by: Sinclair Yeh <syeh@vmware.com> +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> +--- + drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +index 07fb3b3..1ec9491 100644 +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c ++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +@@ -923,6 +923,8 @@ static struct ttm_bo_driver amdgpu_bo_driver = { + .fault_reserve_notify = &amdgpu_bo_fault_reserve_notify, + .io_mem_reserve = &amdgpu_ttm_io_mem_reserve, + .io_mem_free = &amdgpu_ttm_io_mem_free, ++ .lru_tail = &ttm_bo_default_lru_tail, ++ .swap_lru_tail = &ttm_bo_default_swap_lru_tail, + }; + + int amdgpu_ttm_init(struct amdgpu_device *adev) +-- +2.7.4 + |