Skip to content
Commit 91a25e46 authored by Mykola Lysenko's avatar Mykola Lysenko Committed by Dave Airlie
Browse files

drm/dp/mst: deallocate payload on port destruction



This is needed to properly deallocate port payload
after downstream branch get unplugged.

In order to do this unplugged MST topology should
be preserved, to find first alive port on path to
unplugged MST topology, and send payload deallocation
request to branch device of found port.

For this mstb and port kref's are used in reversed
order to track when port and branch memory could be
freed.

Added additional functions to find appropriate mstb
as described above.

Signed-off-by: default avatarMykola Lysenko <Mykola.Lysenko@amd.com>
Reviewed-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent c175cd16
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment