]> git.baikalelectronics.ru Git - kernel.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Mar 2023 10:52:24 +0000 (11:52 +0100)
commit62a0b5b1c6aa60e8ab177073ce4e65e2d83bd933
tree4353fac6eea3a7271703d95de4f0dddd6b05178b
parent3b9c9883a72750de6a998adcb5996902ca067a7d
drm/amd/display: Properly reuse completion structure

commit 44f37c9d35ecd6defee169a5a8e6ade5992054a0 upstream.

[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>
Cc: "Limonciello, Mario" <mario.limonciello@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c