]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/display: Fix wrong x_pos and y_pos for cursor offload
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Wed, 12 Nov 2025 15:58:19 +0000 (10:58 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Dec 2025 18:56:40 +0000 (13:56 -0500)
commitc02288724b98cbc018231200891d66578f83f848
tree96cf819b3c456f487ccaa7b874f7b3f7bd856657
parentdef3488eb0fdb386044aced1a8fb2592b1e68896
drm/amd/display: Fix wrong x_pos and y_pos for cursor offload

[Why]
The hubp401_cursor_set_position function programs a different value
than it stores for use with cursor offload.

This can cause a desync when switching between cursor programming paths.

[How]
We do the translation to destination space currently twice: once in the
HWSS layer, and then again in the HUBP layer since we never store the
translated result.

HUBP expects to program the pos->x and pos->y directly for other ASIC,
so follow that pattern here as well.

Reviewed-by: Alvin Lee <alvin.lee2@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Roman Li <roman.li@amd.com>
Tested-by: Dan 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
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c