]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Add debug option for allocating extra way for cursor
authorAlvin Lee <Alvin.Lee2@amd.com>
Thu, 1 Sep 2022 22:43:39 +0000 (18:43 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Sep 2022 19:12:31 +0000 (15:12 -0400)
commit8cf6f3c3d76537c5659f970a1acb93278f0a9315
treef1066f0ad54cbe871baf7cb6bf97d270725e2e61
parent95cdc982dbe64bcb5ab60768f99391f31df6b40f
drm/amd/display: Add debug option for allocating extra way for cursor

[Why and How]
- Add a debug option for allocating extra way for cursor
- Remove usage of cache_cursor_addr since it's not gaurenteed
  to be populated
- Include cursor size in MALL calculation if it exceeds the
  DCN cursor buffer size (and don't need extra way for cursor)

Reviewed-by: Aurabindo Pillai <Aurabindo.Pillai@amd.com>
Acked-by: Wayne Lin <wayne.lin@amd.com>
Signed-off-by: Alvin Lee <Alvin.Lee2@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/dc.h
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c
drivers/gpu/drm/amd/display/dc/dcn321/dcn321_resource.c