summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dce120
diff options
context:
space:
mode:
authorDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>2017-04-21 09:34:09 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-09-26 18:06:35 -0400
commitbeb16b6a0f921f66472e4946a4955f07942fa9d8 (patch)
treed1d1a6c02a70b3351f447b8e189674bb55af7482 /drivers/gpu/drm/amd/display/dc/dce120
parent03f5c686c3900f74853539cdebe4c25190106402 (diff)
downloadlinux-stable-beb16b6a0f921f66472e4946a4955f07942fa9d8.tar.gz
linux-stable-beb16b6a0f921f66472e4946a4955f07942fa9d8.tar.bz2
linux-stable-beb16b6a0f921f66472e4946a4955f07942fa9d8.zip
drm/amd/display: improve cursor programming reliability
This change will cache cursor attributes and reprogram them when enabling cursor after power gating if the attributes were not yet reprogrammed Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com> Acked-by: Harry Wentland <Harry.Wentland@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dce120')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dce120/dce120_ipp.h2
-rw-r--r--drivers/gpu/drm/amd/display/dc/dce120/dce120_ipp_cursor.c4
2 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dce120/dce120_ipp.h b/drivers/gpu/drm/amd/display/dc/dce120/dce120_ipp.h
index 4b326bcb4600..7f645fde7064 100644
--- a/drivers/gpu/drm/amd/display/dc/dce120/dce120_ipp.h
+++ b/drivers/gpu/drm/amd/display/dc/dce120/dce120_ipp.h
@@ -42,7 +42,7 @@ void dce120_ipp_cursor_set_position(
const struct dc_cursor_position *position,
const struct dc_cursor_mi_param *param);
-bool dce120_ipp_cursor_set_attributes(
+void dce120_ipp_cursor_set_attributes(
struct input_pixel_processor *ipp,
const struct dc_cursor_attributes *attributes);
diff --git a/drivers/gpu/drm/amd/display/dc/dce120/dce120_ipp_cursor.c b/drivers/gpu/drm/amd/display/dc/dce120/dce120_ipp_cursor.c
index 15671fd2cb9c..dc81d320f6e5 100644
--- a/drivers/gpu/drm/amd/display/dc/dce120/dce120_ipp_cursor.c
+++ b/drivers/gpu/drm/amd/display/dc/dce120/dce120_ipp_cursor.c
@@ -160,7 +160,7 @@ void dce120_ipp_cursor_set_position(
lock(ipp110, false);
}
-bool dce120_ipp_cursor_set_attributes(
+void dce120_ipp_cursor_set_attributes(
struct input_pixel_processor *ipp,
const struct dc_cursor_attributes *attributes)
{
@@ -189,7 +189,5 @@ bool dce120_ipp_cursor_set_attributes(
/* Unlock Cursor registers. */
lock(ipp110, false);
-
- return true;
}