drm/amd/display: Change the DMCUB mailbox memory location from FB to inbox
authorLewis Huang <lewis.huang@amd.com>
Thu, 19 Oct 2023 09:22:21 +0000 (17:22 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 Nov 2023 05:54:58 +0000 (00:54 -0500)
commit5911d02cac70d7fb52009fbd37423e63f8f6f9bc
treefc469e5009eac8f1c85e27e7e01e665081f4a12e
parent9ddea8c9775d9379d71e6ac1519c552461b90b07
drm/amd/display: Change the DMCUB mailbox memory location from FB to inbox

[WHY]
Flush command sent to DMCUB spends more time for execution on
a dGPU than on an APU. This causes cursor lag when using high
refresh rate mouses.

[HOW]
1. Change the DMCUB mailbox memory location from FB to inbox.
2. Only change windows memory to inbox.

Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Acked-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Lewis Huang <lewis.huang@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/dmub/dmub_srv.h
drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c