Patch "drm/amdgpu: Also call cursor_move_locked when the cursor size changes" has been added to the 4.9-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
drm/amdgpu: Also call cursor_move_locked when the cursor size changes
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
drm-amdgpu-also-call-cursor_move_locked-when-the-cursor-size-changes.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
8b02cde994e3025b6886c82eac6cd1e7bc4d1fe9Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michel=20D=C3=A4nzer?= <[email protected]>
Date: Thu, 27 Oct 2016 17:01:26 +0900
Subject: drm/amdgpu: Also call cursor_move_locked when the cursor size changes
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
From: Michel Dänzer <[email protected]>
commit 8b02cde994e3025b6886c82eac6cd1e7bc4d1fe9 upstream.
The cursor size also affects the register programming.
--- drivers/gpu/drm/amd/amdgpu/dce_v10_0.c | 9 +++++---- drivers/gpu/drm/amd/amdgpu/dce_v11_0.c | 9 +++++---- drivers/gpu/drm/amd/amdgpu/dce_v6_0.c | 9 +++++---- drivers/gpu/drm/amd/amdgpu/dce_v8_0.c | 9 +++++---- 4 files changed, 20 insertions(+), 16 deletions(-)
drivers/gpu/drm/amd/amdgpu/dce_v10_0.c +5 -4
@@ -2661,12 +2661,11 @@ static int dce_v10_0_crtc_cursor_set2(streturn ret; } - amdgpu_crtc->cursor_width = width; - amdgpu_crtc->cursor_height = height; -dce_v10_0_lock_cursor (crtc, true); -if (hot_x != amdgpu_crtc->cursor_hot_x || +if (width != amdgpu_crtc->cursor_width || + height != amdgpu_crtc->cursor_height || + hot_x != amdgpu_crtc->cursor_hot_x || hot_y != amdgpu_crtc->cursor_hot_y) {int x, y;
@@ -2675,6 +2674,8 @@ static int dce_v10_0_crtc_cursor_set2(stdce_v10_0_cursor_move_locked (crtc, x, y); + amdgpu_crtc->cursor_width = width; + amdgpu_crtc->cursor_height = height; amdgpu_crtc->cursor_hot_x = hot_x; amdgpu_crtc->cursor_hot_y = hot_y; }
drivers/gpu/drm/amd/amdgpu/dce_v11_0.c +5 -4
@@ -2677,12 +2677,11 @@ static int dce_v11_0_crtc_cursor_set2(streturn ret; } - amdgpu_crtc->cursor_width = width; - amdgpu_crtc->cursor_height = height; -dce_v11_0_lock_cursor (crtc, true); -if (hot_x != amdgpu_crtc->cursor_hot_x || +if (width != amdgpu_crtc->cursor_width || + height != amdgpu_crtc->cursor_height || + hot_x != amdgpu_crtc->cursor_hot_x || hot_y != amdgpu_crtc->cursor_hot_y) {int x, y;
@@ -2691,6 +2690,8 @@ static int dce_v11_0_crtc_cursor_set2(stdce_v11_0_cursor_move_locked (crtc, x, y); + amdgpu_crtc->cursor_width = width; + amdgpu_crtc->cursor_height = height; amdgpu_crtc->cursor_hot_x = hot_x; amdgpu_crtc->cursor_hot_y = hot_y; }
drivers/gpu/drm/amd/amdgpu/dce_v6_0.c +5 -4
@@ -2017,12 +2017,11 @@ static int dce_v6_0_crtc_cursor_set2(strreturn ret; } - amdgpu_crtc->cursor_width = width; - amdgpu_crtc->cursor_height = height; -dce_v6_0_lock_cursor (crtc, true); -if (hot_x != amdgpu_crtc->cursor_hot_x || +if (width != amdgpu_crtc->cursor_width || + height != amdgpu_crtc->cursor_height || + hot_x != amdgpu_crtc->cursor_hot_x || hot_y != amdgpu_crtc->cursor_hot_y) {int x, y;
@@ -2031,6 +2030,8 @@ static int dce_v6_0_crtc_cursor_set2(strdce_v6_0_cursor_move_locked (crtc, x, y); + amdgpu_crtc->cursor_width = width; + amdgpu_crtc->cursor_height = height; amdgpu_crtc->cursor_hot_x = hot_x; amdgpu_crtc->cursor_hot_y = hot_y; }
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c +5 -4
@@ -2549,12 +2549,11 @@ static int dce_v8_0_crtc_cursor_set2(strreturn ret; } - amdgpu_crtc->cursor_width = width; - amdgpu_crtc->cursor_height = height; -dce_v8_0_lock_cursor (crtc, true); -if (hot_x != amdgpu_crtc->cursor_hot_x || +if (width != amdgpu_crtc->cursor_width || + height != amdgpu_crtc->cursor_height || + hot_x != amdgpu_crtc->cursor_hot_x || hot_y != amdgpu_crtc->cursor_hot_y) {int x, y;
@@ -2563,6 +2562,8 @@ static int dce_v8_0_crtc_cursor_set2(strdce_v8_0_cursor_move_locked (crtc, x, y); + amdgpu_crtc->cursor_width = width; + amdgpu_crtc->cursor_height = height; amdgpu_crtc->cursor_hot_x = hot_x; amdgpu_crtc->cursor_hot_y = hot_y; }
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/drm-amdgpu-store-crtc-relative-amdgpu_crtc-cursor_x-y-values.patch queue-4.9/drm-amdgpu-also-call-cursor_move_locked-when-the-cursor-size-changes.patch queue-4.9/drm-radeon-also-call-cursor_move_locked-when-the-cursor-size-changes.patch queue-4.9/drm-radeon-hide-the-hw-cursor-while-it-s-out-of-bounds.patch