mbox series

[0/5] drm: Add PSR helpers

Message ID 20190228210939.83386-1-sean@poorly.run (mailing list archive)
Headers show
Series drm: Add PSR helpers | expand

Message

Sean Paul Feb. 28, 2019, 9:09 p.m. UTC
From: Sean Paul <seanpaul@chromium.org>

Hey all,
Here's a set to add some helpers for drivers looking to implement PSR.
I've converted rockchip as a proof of concept, and will likely do the
work for msm dsi sometime in the coming months.

PTAL,

Sean


Sean Paul (5):
  drm: Add helpers to kick off PSR enable/disable
  drm/rockchip: Check for fast link training before enabling psr
  drm/rockchip: Use the helpers for PSR
  drm/rockchip: Don't fully disable vop on PSR
  drm/rockchip: Use drm_atomic_helper_commit_tail_rpm

 Documentation/gpu/drm-kms-helpers.rst         |   9 +
 drivers/gpu/drm/Makefile                      |   2 +-
 .../drm/bridge/analogix/analogix_dp_core.c    | 206 +++++++----
 .../drm/bridge/analogix/analogix_dp_core.h    |   1 -
 drivers/gpu/drm/drm_atomic_helper.c           |  34 ++
 drivers/gpu/drm/drm_atomic_uapi.c             |   5 +
 drivers/gpu/drm/drm_fb_helper.c               |   9 +
 drivers/gpu/drm/drm_framebuffer.c             |  18 +
 drivers/gpu/drm/drm_psr_helper.c              | 343 ++++++++++++++++++
 drivers/gpu/drm/rockchip/Makefile             |   3 +-
 .../gpu/drm/rockchip/analogix_dp-rockchip.c   |  70 ++--
 drivers/gpu/drm/rockchip/rockchip_drm_drv.c   |  12 +-
 drivers/gpu/drm/rockchip/rockchip_drm_fb.c    |  37 +-
 drivers/gpu/drm/rockchip/rockchip_drm_psr.c   | 290 ---------------
 drivers/gpu/drm/rockchip/rockchip_drm_psr.h   |  30 --
 drivers/gpu/drm/rockchip/rockchip_drm_vop.c   |  59 ++-
 include/drm/bridge/analogix_dp.h              |   4 +-
 include/drm/drm_connector.h                   |  22 ++
 include/drm/drm_crtc.h                        |  11 +
 include/drm/drm_mode_config.h                 |   6 +
 include/drm/drm_psr_helper.h                  |  24 ++
 21 files changed, 699 insertions(+), 496 deletions(-)
 create mode 100644 drivers/gpu/drm/drm_psr_helper.c
 delete mode 100644 drivers/gpu/drm/rockchip/rockchip_drm_psr.c
 delete mode 100644 drivers/gpu/drm/rockchip/rockchip_drm_psr.h
 create mode 100644 include/drm/drm_psr_helper.h