[PATCH v3 10/27] drm/amd/display: dc/dce60: set max_cursor_size to 64

Mauro Rossi issor.oruam at gmail.com
Thu Jul 16 21:22:34 UTC 2020


[Why]
Issue in the Mouse cursor size in Linux Desktop Environments

[How]
In DCE6 dc->caps.max_cursor_size need to be set as 64 instead of 128

Signed-off-by: Mauro Rossi <issor.oruam at gmail.com>
---
 drivers/gpu/drm/amd/display/dc/dce60/dce60_resource.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/amd/display/dc/dce60/dce60_resource.c b/drivers/gpu/drm/amd/display/dc/dce60/dce60_resource.c
index 9d21cfba6009..179f67ed7dbb 100644
--- a/drivers/gpu/drm/amd/display/dc/dce60/dce60_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/dce60/dce60_resource.c
@@ -970,7 +970,7 @@ static bool dce60_construct(
 	pool->base.timing_generator_count = res_cap.num_timing_generator;
 	dc->caps.max_downscale_ratio = 200;
 	dc->caps.i2c_speed_in_khz = 40;
-	dc->caps.max_cursor_size = 128;
+	dc->caps.max_cursor_size = 64;
 	dc->caps.dual_link_dvi = true;
 	dc->caps.extended_aux_timeout_support = false;
 
@@ -1168,7 +1168,7 @@ static bool dce61_construct(
 	pool->base.timing_generator_count = res_cap_61.num_timing_generator;
 	dc->caps.max_downscale_ratio = 200;
 	dc->caps.i2c_speed_in_khz = 40;
-	dc->caps.max_cursor_size = 128;
+	dc->caps.max_cursor_size = 64;
 	dc->caps.is_apu = true;
 
 	/*************************************************
@@ -1365,7 +1365,7 @@ static bool dce64_construct(
 	pool->base.timing_generator_count = res_cap_64.num_timing_generator;
 	dc->caps.max_downscale_ratio = 200;
 	dc->caps.i2c_speed_in_khz = 40;
-	dc->caps.max_cursor_size = 128;
+	dc->caps.max_cursor_size = 64;
 	dc->caps.is_apu = true;
 
 	/*************************************************
-- 
2.25.1



More information about the amd-gfx mailing list