Skip to content

Commit 3924f45

Browse files
Wayne Linalexdeucher
authored andcommitted
drm/amd/display: Copy AUX read reply data whenever length > 0
[Why] amdgpu_dm_process_dmub_aux_transfer_sync() should return all exact data reply from the sink side. Don't do the analysis job in it. [How] Remove unnecessary check condition AUX_TRANSACTION_REPLY_AUX_ACK. Fixes: ead08b9 ("drm/amd/display: Fix race condition in DPIA AUX transfer") Cc: Mario Limonciello <[email protected]> Cc: Alex Deucher <[email protected]> Reviewed-by: Ray Wu <[email protected]> Signed-off-by: Wayne Lin <[email protected]> Signed-off-by: Ray Wu <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]> (cherry picked from commit 9b540e3) Cc: [email protected]
1 parent 396dc51 commit 3924f45

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12763,8 +12763,7 @@ int amdgpu_dm_process_dmub_aux_transfer_sync(
1276312763
/* The reply is stored in the top nibble of the command. */
1276412764
payload->reply[0] = (adev->dm.dmub_notify->aux_reply.command >> 4) & 0xF;
1276512765

12766-
if (!payload->write && p_notify->aux_reply.length &&
12767-
(payload->reply[0] == AUX_TRANSACTION_REPLY_AUX_ACK))
12766+
if (!payload->write && p_notify->aux_reply.length)
1276812767
memcpy(payload->data, p_notify->aux_reply.data,
1276912768
p_notify->aux_reply.length);
1277012769

0 commit comments

Comments
 (0)