drm/amd/display: Shift DMUB AUX reply command if necessary
authorWayne Lin <Wayne.Lin@amd.com>
Fri, 18 Apr 2025 08:31:59 +0000 (16:31 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 May 2025 16:58:55 +0000 (12:58 -0400)
commitd5c9ade755a9afa210840708a12a8f44c0d532f4
tree9b931dad11df34664081f0d70246db2b923287bf
parent4465dd0e41e8223a46a41ce4fcdfc55fabd319d8
drm/amd/display: Shift DMUB AUX reply command if necessary

[Why]
Defined value of dmub AUX reply command field get updated but didn't
adjust dm receiving side accordingly.

[How]
Check the received reply command value to see if it's updated version
or not. Adjust it if necessary.

Fixes: ead08b95fa50 ("drm/amd/display: Fix race condition in DPIA AUX transfer")
Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Ray Wu <ray.wu@amd.com>
Signed-off-by: Wayne Lin <Wayne.Lin@amd.com>
Signed-off-by: Ray Wu <ray.wu@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