Home Home > GIT Browse > openSUSE-15.1
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-05-13 14:59:58 +0200
committerTakashi Iwai <tiwai@suse.de>2019-05-15 11:46:06 +0200
commit83532ca7bde3f4c09703e53322b2e303ec5dec4c (patch)
treea9827d99c2ae8222e263c4d16a6d3590f26e07a1
parenta0298b0046c01b56b64cde1f903d97ecf59804fc (diff)
drm/amd/display: fix cursor black issue (bsc#1111666).
-rw-r--r--patches.drm/drm-amd-display-fix-cursor-black-issue.patch42
-rw-r--r--series.conf1
2 files changed, 43 insertions, 0 deletions
diff --git a/patches.drm/drm-amd-display-fix-cursor-black-issue.patch b/patches.drm/drm-amd-display-fix-cursor-black-issue.patch
new file mode 100644
index 0000000000..272aec51f0
--- /dev/null
+++ b/patches.drm/drm-amd-display-fix-cursor-black-issue.patch
@@ -0,0 +1,42 @@
+From c1cefe115d1cdc460014483319d440b2f0d07c68 Mon Sep 17 00:00:00 2001
+From: tiancyin <tianci.yin@amd.com>
+Date: Mon, 1 Apr 2019 10:15:31 +0800
+Subject: [PATCH] drm/amd/display: fix cursor black issue
+Git-commit: c1cefe115d1cdc460014483319d440b2f0d07c68
+Patch-mainline: v5.1-rc5
+References: bsc#1111666
+
+[Why]
+the member sdr_white_level of struct dc_cursor_attributes was not
+initialized, then the random value result that
+dcn10_set_cursor_sdr_white_level() set error hw_scale value 0x20D9(normal
+value is 0x3c00), this cause the black cursor issue.
+
+[how]
+just initilize the obj of struct dc_cursor_attributes to zero to avoid
+the random value.
+
+Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
+Signed-off-by: Tianci Yin <tianci.yin@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+Acked-by: Takashi Iwai <tiwai@suse.de>
+
+---
+ drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+index 81127f7d6ed1..3082b55b1e77 100644
+--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
++++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+@@ -4533,6 +4533,7 @@ static void handle_cursor_update(struct drm_plane *plane,
+ amdgpu_crtc->cursor_width = plane->state->crtc_w;
+ amdgpu_crtc->cursor_height = plane->state->crtc_h;
+
++ memset(&attributes, 0, sizeof(attributes));
+ attributes.address.high_part = upper_32_bits(address);
+ attributes.address.low_part = lower_32_bits(address);
+ attributes.width = plane->state->crtc_w;
+--
+2.16.4
+
diff --git a/series.conf b/series.conf
index 5a5b9d2a76..9c5744cf28 100644
--- a/series.conf
+++ b/series.conf
@@ -45535,6 +45535,7 @@
patches.drivers/Bluetooth-btusb-request-wake-pin-with-NOAUTOEN.patch
patches.drm/0001-drm-udl-add-a-release-method-and-delay-modeset-teard.patch
patches.drm/0003-drm-mediatek-Fix-an-error-code-in-mtk_hdmi_dt_parse_.patch
+ patches.drm/drm-amd-display-fix-cursor-black-issue.patch
patches.drm/drm-omap-hdmi4_cec-Fix-CEC-clock-handling-for-PM.patch
patches.drm/drm-i915-gvt-Annotate-iomem-usage.patch
patches.drm/drm-i915-gvt-Prevent-use-after-free-in-ppgtt_free_al.patch