]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/display: Properly reuse completion structure
authorStylon Wang <stylon.wang@amd.com>
Tue, 10 Jan 2023 06:38:33 +0000 (14:38 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Jan 2023 18:26:25 +0000 (13:26 -0500)
commit0cf8307adbc6beb5ff3b8a76afedc6e4e0b536a9
treec89165fc27ba8bf61eb767e227eefe964a2d1bc3
parentc84ff24a77fa66aaf7c591cdf806456dcb5c2fcd
drm/amd/display: Properly reuse completion structure

[Why]
Connecting displays to TBT3 docks often produces invalid
replies for DPIA AUX requests. It turns out the completion
structure was not re-initialized before reusing it, resulting
in immature wake up to completion.

[How]
Properly call reinit_completion() on reused completion structure.

Cc: stable@vger.kernel.org
Reviewed-by: Solomon Chiu <solomon.chiu@amd.com>
Acked-by: Alan Liu <HaoPing.Liu@amd.com>
Signed-off-by: Stylon Wang <stylon.wang@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