diff options
Diffstat (limited to 'common/recipes-kernel/linux/files/0899-drm-amdgpu-only-move-pt-bos-in-LRU-list-on-success.patch')
-rw-r--r-- | common/recipes-kernel/linux/files/0899-drm-amdgpu-only-move-pt-bos-in-LRU-list-on-success.patch | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/common/recipes-kernel/linux/files/0899-drm-amdgpu-only-move-pt-bos-in-LRU-list-on-success.patch b/common/recipes-kernel/linux/files/0899-drm-amdgpu-only-move-pt-bos-in-LRU-list-on-success.patch deleted file mode 100644 index 965e32d3..00000000 --- a/common/recipes-kernel/linux/files/0899-drm-amdgpu-only-move-pt-bos-in-LRU-list-on-success.patch +++ /dev/null @@ -1,40 +0,0 @@ -From 95116d184d469b880c694f456c8bf72f41dbdd01 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Nicolai=20H=C3=A4hnle?= <nicolai.haehnle@amd.com> -Date: Wed, 27 Jan 2016 11:04:19 -0500 -Subject: [PATCH 0899/1565] drm/amdgpu: only move pt bos in LRU list on success -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -This fixes a race condition in the error case: since the pt bos have not -necessarily been reserved in case of an error, we could move a pt bo that -is currently in the middle of being evicted/moved by another process, -which then resulted in a BUG_ON in ttm_bo_add_to_lru. - -Reviewed-by: Christian König <christian.koenig@amd.com> -Signed-off-by: Nicolai Hähnle <nicolai.haehnle@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_cs.c | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c -index 6f89f8e..b882e81 100644 ---- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c -+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c -@@ -478,9 +478,9 @@ static void amdgpu_cs_parser_fini(struct amdgpu_cs_parser *parser, int error, bo - struct amdgpu_fpriv *fpriv = parser->filp->driver_priv; - unsigned i; - -- amdgpu_vm_move_pt_bos_in_lru(parser->adev, &fpriv->vm); -- - if (!error) { -+ amdgpu_vm_move_pt_bos_in_lru(parser->adev, &fpriv->vm); -+ - /* Sort the buffer list from the smallest to largest buffer, - * which affects the order of buffers in the LRU list. - * This assures that the smallest buffers are added first --- -1.9.1 - |