]> www.infradead.org Git - users/hch/misc.git/commit
drm/dp_mst: Verify request type in the corresponding down message reply
authorImre Deak <imre.deak@intel.com>
Tue, 3 Dec 2024 16:02:18 +0000 (18:02 +0200)
committerImre Deak <imre.deak@intel.com>
Thu, 5 Dec 2024 14:18:46 +0000 (16:18 +0200)
commit4d49e77a973d3b5d1881663c3f122906a0702940
tree0f69042829351076a262c37d5029523b9ef19bdd
parenta6fa67d26de385c3c7a23c1e109a0e23bfda4ec7
drm/dp_mst: Verify request type in the corresponding down message reply

After receiving the response for an MST down request message, the
response should be accepted/parsed only if the response type matches
that of the request. Ensure this by checking if the request type code
stored both in the request and the reply match, dropping the reply in
case of a mismatch.

This fixes the topology detection for an MST hub, as described in the
Closes link below, where the hub sends an incorrect reply message after
a CLEAR_PAYLOAD_TABLE -> LINK_ADDRESS down request message sequence.

Cc: Lyude Paul <lyude@redhat.com>
Cc: <stable@vger.kernel.org>
Closes: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12804
Reviewed-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241203160223.2926014-3-imre.deak@intel.com
drivers/gpu/drm/display/drm_dp_mst_topology.c