]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: disable display fresh from MALL on an edge case for DCN321
authorAurabindo Pillai <aurabindo.pillai@amd.com>
Thu, 18 Aug 2022 16:34:06 +0000 (12:34 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 30 Aug 2022 21:03:52 +0000 (17:03 -0400)
commit279a64a56f1060daeec7980f29609b52e12bfadd
treeef665ce60d096acf3b8725b05e5d1b14d46cdb7d
parente9614b24b283b5394fef4eb16e32813bb0d19648
drm/amd/display: disable display fresh from MALL on an edge case for DCN321

[Why&How]
When using a 4k monitor when cursor caching is not supported due to
framebuffer being on an uncacheable address, enabling display refresh
from MALL would trigger corruption if SS is enabled.

Prevent entering SS if we are on the edge case and cursor caching is not
possible. Do this only if cursor size larger than a 64x64@4bpp. Pull the
cursor size calculation out of if condition since cursor address may not
be set on all platforms

Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Brian Chang <Brian.Chang@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c