1. 29 Jun, 2021 2 commits
  2. 21 Jun, 2021 1 commit
  3. 16 Jun, 2021 3 commits
    • José Roberto de Souza's avatar
      drm/dp_mst: Add missing drm parameters to recently added call to drm_dbg_kms() · 24ff3dc1
      José Roberto de Souza authored
      Commit 3769e4c0 ("drm/dp_mst: Avoid to mess up payload table by
      ports in stale topology") added to calls to drm_dbg_kms() but it
      missed the first parameter, the drm device breaking the build.
      
      Fixes: 3769e4c0 ("drm/dp_mst: Avoid to mess up payload table by ports in stale topology")
      Cc: Wayne Lin <Wayne.Lin@amd.com>
      Cc: Lyude Paul <lyude@redhat.com>
      Cc: dri-devel@lists.freedesktop.org
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarJosé Roberto de Souza <jose.souza@intel.com>
      Reviewed-by: default avatarLyude Paul <lyude@redhat.com>
      Signed-off-by: default avatarLyude Paul <lyude@redhat.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210616194415.36926-1-jose.souza@intel.com
      24ff3dc1
    • Wayne Lin's avatar
      drm/dp_mst: Avoid to mess up payload table by ports in stale topology · 3769e4c0
      Wayne Lin authored
      [Why]
      After unplug/hotplug hub from the system, userspace might start to
      clear stale payloads gradually. If we call drm_dp_mst_deallocate_vcpi()
      to release stale VCPI of those ports which are not relating to current
      topology, we have chane to wrongly clear active payload table entry for
      current topology.
      
      E.g.
      We have allocated VCPI 1 in current payload table and we call
      drm_dp_mst_deallocate_vcpi() to clean VCPI 1 in stale topology. In
      drm_dp_mst_deallocate_vcpi(), it will call drm_dp_mst_put_payload_id()
      tp put VCPI 1 and which means ID 1 is available again. Thereafter, if we
      want to allocate a new payload stream, it will find ID 1 is available by
      drm_dp_mst_assign_payload_id(). However, ID 1 is being used
      
      [How]
      Check target sink is relating to current topology or not before doing
      any payload table update.
      Searching upward to find the target sink's relevant root branch device.
      If the found root branch device is not the same root of current
      topology, don't update payload table.
      
      Changes since v1:
      * Change debug macro to use drm_dbg_kms() instead
      * Amend the commit message to add Cc tag.
      Signed-off-by: default avatarWayne Lin <Wayne.Lin@amd.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarLyude Paul <lyude@redhat.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210616035501.3776-3-Wayne.Lin@amd.comReviewed-by: default avatarLyude Paul <lyude@redhat.com>
      3769e4c0
    • Wayne Lin's avatar
      drm/dp_mst: Do not set proposed vcpi directly · 35d3e8cb
      Wayne Lin authored
      [Why]
      When we receive CSN message to notify one port is disconnected, we will
      implicitly set its corresponding num_slots to 0. Later on, we will
      eventually call drm_dp_update_payload_part1() to arrange down streams.
      
      In drm_dp_update_payload_part1(), we iterate over all proposed_vcpis[]
      to do the update. Not specific to a target sink only. For example, if we
      light up 2 monitors, Monitor_A and Monitor_B, and then we unplug
      Monitor_B. Later on, when we call drm_dp_update_payload_part1() to try
      to update payload for Monitor_A, we'll also implicitly clean payload for
      Monitor_B at the same time. And finally, when we try to call
      drm_dp_update_payload_part1() to clean payload for Monitor_B, we will do
      nothing at this time since payload for Monitor_B has been cleaned up
      previously.
      
      For StarTech 1to3 DP hub, it seems like if we didn't update DPCD payload
      ID table then polling for "ACT Handled"(BIT_1 of DPCD 002C0h) will fail
      and this polling will last for 3 seconds.
      
      Therefore, guess the best way is we don't set the proposed_vcpi[]
      diretly. Let user of these herlper functions to set the proposed_vcpi
      directly.
      
      [How]
      1. Revert commit 7617e962 ("drm/dp_mst: clear time slots for ports
      invalid")
      2. Tackle the issue in previous commit by skipping those trasient
      proposed VCPIs. These stale VCPIs shoulde be explicitly cleared by
      user later on.
      
      Changes since v1:
      * Change debug macro to use drm_dbg_kms() instead
      * Amend the commit message to add Fixed & Cc tags
      Signed-off-by: default avatarWayne Lin <Wayne.Lin@amd.com>
      Fixes: 7617e962 ("drm/dp_mst: clear time slots for ports invalid")
      Cc: Lyude Paul <lyude@redhat.com>
      Cc: Wayne Lin <Wayne.Lin@amd.com>
      Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Cc: Maxime Ripard <mripard@kernel.org>
      Cc: Thomas Zimmermann <tzimmermann@suse.de>
      Cc: dri-devel@lists.freedesktop.org
      Cc: <stable@vger.kernel.org> # v5.5+
      Signed-off-by: default avatarLyude Paul <lyude@redhat.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210616035501.3776-2-Wayne.Lin@amd.comReviewed-by: default avatarLyude Paul <lyude@redhat.com>
      35d3e8cb
  4. 15 Jun, 2021 1 commit
  5. 11 Jun, 2021 5 commits
  6. 10 Jun, 2021 6 commits
  7. 09 Jun, 2021 6 commits
  8. 08 Jun, 2021 16 commits