OSDN Git Service

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)
commitfbc821c4a506a960e85f3e97e32cfab63d43f7d0
treedae33c2243ae0d7b1a9141802937e6b3574a3e7c
parent21a729d00776799c553b1cf45cb798c852ead660
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