drm/amd/display: Return the exact value for debugging
authorWayne Lin <Wayne.Lin@amd.com>
Wed, 30 Apr 2025 09:35:21 +0000 (17:35 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 13 May 2025 13:30:58 +0000 (09:30 -0400)
[Why]
It's unnecessary to set operation_result as invalid reply when
p_notify->result != AUX_RET_SUCCESS.

[How]
Set operation_result as p_notify->result to better understand
the reason for the error

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

index a78a40584dd3fd3795bc1d6d75278fbd87cc52b0..4b4e9241619f1504b62d7dca77760a6a949eb69c 100644 (file)
@@ -12701,7 +12701,7 @@ int amdgpu_dm_process_dmub_aux_transfer_sync(
                                        payload->address, payload->length,
                                        p_notify->result);
                }
-               *operation_result = AUX_RET_ERROR_INVALID_REPLY;
+               *operation_result = p_notify->result;
                goto out;
        }