Skip to content

Commit bfe79f5

Browse files
Wayne Linalexdeucher
authored andcommitted
drm/amd/display: Align the returned error code with legacy DP
[Why] For usb4 connector, AUX transaction is handled by dmub utilizing a differnt code path comparing to legacy DP connector. If the usb4 DP connector is disconnected, AUX access will report EBUSY and cause igt@kms_dp_aux_dev fail. [How] Align the error code with the one reported by legacy DP as EIO. Cc: Mario Limonciello <mario.limonciello@amd.com> Cc: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org Acked-by: Alex Hung <alex.hung@amd.com> Signed-off-by: Wayne Lin <Wayne.Lin@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent d3579f5 commit bfe79f5

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -979,6 +979,11 @@ int dm_helper_dmub_aux_transfer_sync(
979979
struct aux_payload *payload,
980980
enum aux_return_code_type *operation_result)
981981
{
982+
if (!link->hpd_status) {
983+
*operation_result = AUX_RET_ERROR_HPD_DISCON;
984+
return -1;
985+
}
986+
982987
return amdgpu_dm_process_dmub_aux_transfer_sync(ctx, link->link_index, payload,
983988
operation_result);
984989
}

0 commit comments

Comments
 (0)