]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Set cursor attributes before position
authorHarry Wentland <harry.wentland@amd.com>
Thu, 4 Apr 2024 15:54:40 +0000 (11:54 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 30 Apr 2024 13:48:49 +0000 (09:48 -0400)
commite7f5f9d6222ec9264b160b622544cd7e1091e4b4
tree0a6f865cd5846ed6df6351f7f2c2b3148ea824ab
parentf63f86b5affcc2abd1162f11824b9386fc06ac94
drm/amd/display: Set cursor attributes before position

HWSS set_cursor_attributes copies the stream's cursor attributes
to the hubp cursor attributes. set_cursor_position might attempt
to program the cursor attributes but will program them wrong if
they're not set correctly. We need to call HWSS set_cursor_attributes
first to ensure hubp has the right attributes to be programmed.

Reviewed-by: Agustin Gutierrez <agustin.gutierrez@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Harry Wentland <harry.wentland@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/hwss/dcn10/dcn10_hwseq.c
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c