]> git.baikalelectronics.ru Git - kernel.git/commit
drm/display/dp_mst: Fix down/up message handling after sink disconnect
authorImre Deak <imre.deak@intel.com>
Wed, 14 Dec 2022 18:42:56 +0000 (20:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 12:55:42 +0000 (13:55 +0100)
commit8fcd042953cc87970b8e12d9df9c5d1458aa2cbd
treebae4f5812330fbdc85f0de588a2f1d5247ed161c
parentf3f3f7079cb66595623359fb7e0e36c78b1a6ee3
drm/display/dp_mst: Fix down/up message handling after sink disconnect

commit 8fdab5f0c01bf3aa8da7131203c170cff29be4b0 upstream.

If the sink gets disconnected during receiving a multi-packet DP MST AUX
down-reply/up-request sideband message, the state keeping track of which
packets have been received already is not reset. This results in a failed
sanity check for the subsequent message packet received after a sink is
reconnected (due to the pending message not yet completed with an
end-of-message-transfer packet), indicated by the

"sideband msg set header failed"

error.

Fix the above by resetting the up/down message reception state after a
disconnect event.

Cc: Lyude Paul <lyude@redhat.com>
Cc: <stable@vger.kernel.org> # v3.17+
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221214184258.2869417-1-imre.deak@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/display/drm_dp_mst_topology.c