Skip to content

Commit a13f9ac

Browse files
Wayne Lingregkh
authored andcommitted
drm/amd/display: Copy AUX read reply data whenever length > 0
commit 3924f45 upstream. [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 <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> (cherry picked from commit 9b540e3) Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 2d63e66 commit a13f9ac

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
@@ -12546,8 +12546,7 @@ int amdgpu_dm_process_dmub_aux_transfer_sync(
1254612546
/* The reply is stored in the top nibble of the command. */
1254712547
payload->reply[0] = (adev->dm.dmub_notify->aux_reply.command >> 4) & 0xF;
1254812548

12549-
if (!payload->write && p_notify->aux_reply.length &&
12550-
(payload->reply[0] == AUX_TRANSACTION_REPLY_AUX_ACK))
12549+
if (!payload->write && p_notify->aux_reply.length)
1255112550
memcpy(payload->data, p_notify->aux_reply.data,
1255212551
p_notify->aux_reply.length);
1255312552

0 commit comments

Comments
 (0)