]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Program CURSOR_DST_X_OFFSET in viewport space
authorAlvin Lee <alvin.lee2@amd.com>
Thu, 13 Jun 2024 20:10:16 +0000 (16:10 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Jun 2024 21:10:37 +0000 (17:10 -0400)
commite1e75cf7334c0e31f4c37d715b964784d45685fa
tree6300e259ea700c3c1ad56e3b8de3f6d2ab818d14
parente1f4805bcc6b39e1c249777c237e419705266234
drm/amd/display: Program CURSOR_DST_X_OFFSET in viewport space

[WHAT & HOW]
According to register specifications, the CURSOR_DST_X_OFFSET
is relative to the start of the data viewport, not RECOUT space.
In this case we must transform the cursor coordinates passed to
hubp401_cursor_set_position into viewport space to program this
register. This fixes an underflow issue that occurs in scaled
mode with low refresh rate.

Reviewed-by: Nevenko Stupar <nevenko.stupar@amd.com>
Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Alex Hung <alex.hung@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/hubp/dcn401/dcn401_hubp.c