Skip to content

drm: Add PSR helpers

Sean Paul dri-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5drm: Add helpers to kick off PSR enable/disableDocumentation/gpu/drm-kms-helpers.rst drivers/gpu/drm/Makefile drivers/gpu/drm/drm_atomic_helper.c +8 more+482 -14 replies
2/5drm/rockchip: Check for fast link training before enabling psrdrivers/gpu/drm/bridge/analogix/analogix_dp_core.c+5 -40 replies
3/5drm/rockchip: Use the helpers for PSRdrivers/gpu/drm/bridge/analogix/analogix_dp_core.c drivers/gpu/drm/bridge/analogix/analogix_dp_core.h drivers/gpu/drm/rockchip/Makefile +7 more+177 -4750 replies
4/5drm/rockchip: Don't fully disable vop on PSRdrivers/gpu/drm/rockchip/rockchip_drm_vop.c+38 -00 replies
5/5drm/rockchip: Use drm_atomic_helper_commit_tail_rpmdrivers/gpu/drm/rockchip/rockchip_drm_fb.c+1 -200 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] drm: Add PSR helpers

From: Sean Paul <[email protected]>

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
Signature · 6 lines
Sean Paul, Software Engineer, Google / Chromium OS

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel