diff options
| author | Wayne Lin <[email protected]> | 2025-04-25 06:44:02 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2025-05-13 13:25:43 +0000 |
| commit | 7ac37f0dcd2e0b729fa7b5513908dc8ab802b540 (patch) | |
| tree | cbeea770463440b99cfea4c1b1355795213eb82e /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | drm/amd/display: Backup and restore plane configuration only on update (diff) | |
| download | kernel-7ac37f0dcd2e0b729fa7b5513908dc8ab802b540.tar.gz kernel-7ac37f0dcd2e0b729fa7b5513908dc8ab802b540.zip | |
drm/amd/display: Correct the reply value when AUX write incomplete
[Why]
Now forcing aux->transfer to return 0 when incomplete AUX write is
inappropriate. It should return bytes have been transferred.
[How]
aux->transfer is asked not to change original msg except reply field of
drm_dp_aux_msg structure. Copy the msg->buffer when it's write request,
and overwrite the first byte when sink reply 1 byte indicating partially
written byte number. Then we can return the correct value without
changing the original msg.
Fixes: 3637e457eb00 ("drm/amd/display: Fix wrong handling for AUX_DEFER case")
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]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
