diff options
Diffstat (limited to 'common/recipes-kernel/linux/files/0709-drm-amdgpu-take-a-BO-reference-in-the-display-code.patch')
-rw-r--r-- | common/recipes-kernel/linux/files/0709-drm-amdgpu-take-a-BO-reference-in-the-display-code.patch | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/common/recipes-kernel/linux/files/0709-drm-amdgpu-take-a-BO-reference-in-the-display-code.patch b/common/recipes-kernel/linux/files/0709-drm-amdgpu-take-a-BO-reference-in-the-display-code.patch deleted file mode 100644 index f295ed0b..00000000 --- a/common/recipes-kernel/linux/files/0709-drm-amdgpu-take-a-BO-reference-in-the-display-code.patch +++ /dev/null @@ -1,52 +0,0 @@ -From e9d951a832d9a5db33f9d981a810a37f851f8b39 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com> -Date: Thu, 3 Dec 2015 19:55:51 +0100 -Subject: [PATCH 0709/1565] drm/amdgpu: take a BO reference in the display code -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -No need for the GEM reference here. - -Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> -Signed-off-by: Christian König <christian.koenig@amd.com> -Signed-off-by: Alex Deucher <alexander.deucher@amd.com> ---- - drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - -diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c -index e173a5a..ddd7233 100644 ---- a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c -+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c -@@ -109,7 +109,7 @@ static void amdgpu_unpin_work_func(struct work_struct *__work) - } else - DRM_ERROR("failed to reserve buffer after flip\n"); - -- drm_gem_object_unreference_unlocked(&work->old_rbo->gem_base); -+ amdgpu_bo_unref(&work->old_rbo); - kfree(work->shared); - kfree(work); - } -@@ -148,8 +148,8 @@ int amdgpu_crtc_page_flip(struct drm_crtc *crtc, - obj = old_amdgpu_fb->obj; - - /* take a reference to the old object */ -- drm_gem_object_reference(obj); - work->old_rbo = gem_to_amdgpu_bo(obj); -+ amdgpu_bo_ref(work->old_rbo); - - new_amdgpu_fb = to_amdgpu_framebuffer(fb); - obj = new_amdgpu_fb->obj; -@@ -222,7 +222,7 @@ pflip_cleanup: - amdgpu_bo_unreserve(new_rbo); - - cleanup: -- drm_gem_object_unreference_unlocked(&work->old_rbo->gem_base); -+ amdgpu_bo_unref(&work->old_rbo); - fence_put(work->excl); - for (i = 0; i < work->shared_count; ++i) - fence_put(work->shared[i]); --- -1.9.1 - |