1. 07 Jul, 2022 1 commit
  2. 04 Jul, 2022 7 commits
  3. 01 Jul, 2022 1 commit
  4. 29 Jun, 2022 3 commits
  5. 27 Jun, 2022 1 commit
  6. 22 Jun, 2022 4 commits
  7. 19 Jun, 2022 1 commit
  8. 16 Jun, 2022 16 commits
  9. 14 Jun, 2022 1 commit
  10. 10 Jun, 2022 1 commit
  11. 09 Jun, 2022 2 commits
  12. 08 Jun, 2022 1 commit
  13. 06 Jun, 2022 1 commit
    • Brian Norris's avatar
      drm/atomic: Force bridge self-refresh-exit on CRTC switch · e54a4424
      Brian Norris authored
      It's possible to change which CRTC is in use for a given
      connector/encoder/bridge while we're in self-refresh without fully
      disabling the connector/encoder/bridge along the way. This can confuse
      the bridge encoder/bridge, because
      (a) it needs to track the SR state (trying to perform "active"
          operations while the panel is still in SR can be Bad(TM)); and
      (b) it tracks the SR state via the CRTC state (and after the switch, the
          previous SR state is lost).
      
      Thus, we need to either somehow carry the self-refresh state over to the
      new CRTC, or else force an encoder/bridge self-refresh transition during
      such a switch.
      
      I choose the latter, so we disable the encoder (and exit PSR) before
      attaching it to the new CRTC (where we can continue to assume a clean
      (non-self-refresh) state).
      
      This fixes PSR issues seen on Rockchip RK3399 systems with
      drivers/gpu/drm/bridge/analogix/analogix_dp_core.c.
      
      Change in v2:
      
      - Drop "->enable" condition; this could possibly be "->active" to
        reflect the intended hardware state, but it also is a little
        over-specific. We want to make a transition through "disabled" any
        time we're exiting PSR at the same time as a CRTC switch.
        (Thanks Liu Ying)
      
      Cc: Liu Ying <victor.liu@oss.nxp.com>
      Cc: <stable@vger.kernel.org>
      Fixes: 1452c25b ("drm: Add helpers to kick off self refresh mode in drivers")
      Signed-off-by: default avatarBrian Norris <briannorris@chromium.org>
      Reviewed-by: default avatarSean Paul <seanpaul@chromium.org>
      Signed-off-by: default avatarDouglas Anderson <dianders@chromium.org>
      Link: https://patchwork.freedesktop.org/patch/msgid/20220228122522.v2.2.Ic15a2ef69c540aee8732703103e2cff51fb9c399@changeid
      e54a4424