summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikita Lipski <mikita.lipski@amd.com>2020-04-07 12:07:17 -0400
committerLyude Paul <lyude@redhat.com>2020-04-17 18:25:28 -0400
commit7bfc1fec1af3e2f0194843855b0d49054fa42fd2 (patch)
tree3a43d0674bcdf95bdcab62ff38e784ceb39103a7
parent8623b5255ae7ccaf276aac3920787bf575fa6b37 (diff)
drm/dp_mst: Zero assigned PBN when releasing VCPI slots
Zero Port's PBN together with VCPI slots when releasing allocated VCPI slots. That way when disabling the connector it will not cause issues in drm_dp_mst_atomic_check verifying branch bw limit. Signed-off-by: Mikita Lipski <mikita.lipski@amd.com> Signed-off-by: Lyude Paul <lyude@redhat.com> Fixes: cd82d82cbc04 ("drm/dp_mst: Add branch bandwidth validation to MST atomic check") Cc: <stable@vger.kernel.org> # v5.6+ Link: https://patchwork.freedesktop.org/patch/msgid/20200407160717.27976-1-mikita.lipski@amd.com
-rw-r--r--drivers/gpu/drm/drm_dp_mst_topology.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_dp_mst_topology.c b/drivers/gpu/drm/drm_dp_mst_topology.c
index 70c4b7afed12..283615e44838 100644
--- a/drivers/gpu/drm/drm_dp_mst_topology.c
+++ b/drivers/gpu/drm/drm_dp_mst_topology.c
@@ -4295,6 +4295,7 @@ int drm_dp_atomic_release_vcpi_slots(struct drm_atomic_state *state,
if (pos->vcpi) {
drm_dp_mst_put_port_malloc(port);
pos->vcpi = 0;
+ pos->pbn = 0;
}
return 0;