From: Sasha Levin <sashal@kernel.org>
To: gregkh@linuxfoundation.org
Cc: Wayne.Lin@amd.com, lyude@redhat.com, stable@vger.kernel.org
Subject: Re: FAILED: patch "[PATCH] drm/dp_mst: Remove VCPI while disabling topology mgr" failed to apply to 5.5-stable tree
Date: Sun, 9 Feb 2020 13:10:34 -0500 [thread overview]
Message-ID: <20200209181034.GK3584@sasha-vm> (raw)
In-Reply-To: <158124846315195@kroah.com>
On Sun, Feb 09, 2020 at 12:41:03PM +0100, gregkh@linuxfoundation.org wrote:
>
>The patch below does not apply to the 5.5-stable tree.
>If someone wants it applied there, or to any other stable or longterm
>tree, then please email the backport, including the original git commit
>id to <stable@vger.kernel.org>.
>
>thanks,
>
>greg k-h
>
>------------------ original commit in Linus's tree ------------------
>
>From 64e62bdf04ab8529f45ed0a85122c703035dec3a Mon Sep 17 00:00:00 2001
>From: Wayne Lin <Wayne.Lin@amd.com>
>Date: Thu, 5 Dec 2019 17:00:43 +0800
>Subject: [PATCH] drm/dp_mst: Remove VCPI while disabling topology mgr
>
>[Why]
>
>This patch is trying to address the issue observed when hotplug DP
>daisy chain monitors.
>
>e.g.
>src-mstb-mstb-sst -> src (unplug) mstb-mstb-sst -> src-mstb-mstb-sst
>(plug in again)
>
>Once unplug a DP MST capable device, driver will call
>drm_dp_mst_topology_mgr_set_mst() to disable MST. In this function,
>it cleans data of topology manager while disabling mst_state. However,
>it doesn't clean up the proposed_vcpis of topology manager.
>If proposed_vcpi is not reset, once plug in MST daisy chain monitors
>later, code will fail at checking port validation while trying to
>allocate payloads.
>
>When MST capable device is plugged in again and try to allocate
>payloads by calling drm_dp_update_payload_part1(), this
>function will iterate over all proposed virtual channels to see if
>any proposed VCPI's num_slots is greater than 0. If any proposed
>VCPI's num_slots is greater than 0 and the port which the
>specific virtual channel directed to is not in the topology, code then
>fails at the port validation. Since there are stale VCPI allocations
>from the previous topology enablement in proposed_vcpi[], code will fail
>at port validation and reurn EINVAL.
>
>[How]
>
>Clean up the data of stale proposed_vcpi[] and reset mgr->proposed_vcpis
>to NULL while disabling mst in drm_dp_mst_topology_mgr_set_mst().
>
>Changes since v1:
>*Add on more details in commit message to describe the issue which the
>patch is trying to fix
>
>Signed-off-by: Wayne Lin <Wayne.Lin@amd.com>
>[added cc to stable]
>Signed-off-by: Lyude Paul <lyude@redhat.com>
>Link: https://patchwork.freedesktop.org/patch/msgid/20191205090043.7580-1-Wayne.Lin@amd.com
>Cc: <stable@vger.kernel.org> # v3.17+
Context conflict because we don't have f79489074c59 ("drm/dp_mst: Clear
all payload id tables downstream when initializing") in older kernels.
Cleaned up and queued for 5.5-4.4.
--
Thanks,
Sasha
prev parent reply other threads:[~2020-02-09 18:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-09 11:41 FAILED: patch "[PATCH] drm/dp_mst: Remove VCPI while disabling topology mgr" failed to apply to 5.5-stable tree gregkh
2020-02-09 18:10 ` Sasha Levin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200209181034.GK3584@sasha-vm \
--to=sashal@kernel.org \
--cc=Wayne.Lin@amd.com \
--cc=gregkh@linuxfoundation.org \
--cc=lyude@redhat.com \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox