]> git.baikalelectronics.ru Git - kernel.git/commit
drm/mst: Support simultaneous down replies
authorSean Paul <seanpaul@chromium.org>
Thu, 13 Feb 2020 21:15:19 +0000 (16:15 -0500)
committerSean Paul <seanpaul@chromium.org>
Fri, 27 Mar 2020 17:36:01 +0000 (13:36 -0400)
commit176eaf3c497ec2034b60439eb12d262bc0024310
treedae33c2243ae0d7b1a9141802937e6b3574a3e7c
parent51f2d8d9f927015256998e40c0e3d95f556ca97c
drm/mst: Support simultaneous down replies

Currently we have one down reply message servicing the mst manager, so
we need to serialize all tx msgs to ensure we only have one message in
flight at a time. For obvious reasons this is suboptimal (but less
suboptimal than the free-for-all we had before serialization).

This patch removes the single down_rep_recv message from manager and
adds 2 replies in the branch structure. The 2 replies mirrors the tx_slots
which we use to rate-limit outgoing messages and correspond to seqno in
the packet headers.

Cc: Wayne Lin <Wayne.Lin@amd.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Wayne Lin <waynelin@amd.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200213211523.156998-3-sean@poorly.run
drivers/gpu/drm/drm_dp_mst_topology.c
include/drm/drm_dp_mst_helper.h