• Lyude Paul's avatar
    drm/display/dp_mst: Maintain time slot allocations when deleting payloads · 6366fc70
    Lyude Paul authored
    Currently, we set drm_dp_atomic_payload->time_slots to 0 in order to
    indicate that we're about to delete a payload in the current atomic state.
    Since we're going to be dropping all of the legacy code for handling the
    payload table however, we need to be able to ensure that we still keep
    track of the current time slot allocations for each payload so we can reuse
    this info when asking the root MST hub to delete payloads. We'll also be
    using it to recalculate the start slots of each VC.
    
    So, let's keep track of the intent of a payload in drm_dp_atomic_payload by
    adding ->delete, which we set whenever we're planning on deleting a payload
    during the current atomic commit.
    Signed-off-by: default avatarLyude Paul <lyude@redhat.com>
    Cc: Wayne Lin <Wayne.Lin@amd.com>
    Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
    Cc: Fangzhi Zuo <Jerry.Zuo@amd.com>
    Cc: Jani Nikula <jani.nikula@intel.com>
    Cc: Imre Deak <imre.deak@intel.com>
    Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
    Cc: Sean Paul <sean@poorly.run>
    Acked-by: default avatarJani Nikula <jani.nikula@intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20220817193847.557945-16-lyude@redhat.com
    6366fc70
drm_dp_mst_topology.c 170 KB