Skip to content

Commit 7bfc1fe

Browse files
Mikita LipskiLyude
authored andcommitted
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 <[email protected]> Signed-off-by: Lyude Paul <[email protected]> Fixes: cd82d82 ("drm/dp_mst: Add branch bandwidth validation to MST atomic check") Cc: <[email protected]> # v5.6+ Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 8623b52 commit 7bfc1fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/drm_dp_mst_topology.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4295,6 +4295,7 @@ int drm_dp_atomic_release_vcpi_slots(struct drm_atomic_state *state,
42954295
if (pos->vcpi) {
42964296
drm_dp_mst_put_port_malloc(port);
42974297
pos->vcpi = 0;
4298+
pos->pbn = 0;
42984299
}
42994300

43004301
return 0;

0 commit comments

Comments
 (0)