[PATCH v3 00/10] drm: Add self refresh helpers
Sean Paul
sean at poorly.run
Thu May 2 19:49:42 UTC 2019
From: Sean Paul <seanpaul at chromium.org>
Hey all,
Back from my break from this. v3 isn't a whole lot different from v2,
aside from the new helpers that I've added. These allowed me to remove
some redundant state from connector and rely solely on crtc_state.
Please take a look,
Sean
Sean Paul (10):
drm: Add atomic variants of enable/disable to encoder helper funcs
drm: Add drm_atomic_crtc_state_for_encoder helper
drm: Add atomic variants for bridge enable/disable
drm: Convert connector_helper_funcs->atomic_check to accept
drm_atomic_state
drm: Add helpers to kick off self refresh mode in drivers
drm/rockchip: Use dirtyfb helper
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 self refresh
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 | 266 +++++++++++-----
.../drm/bridge/analogix/analogix_dp_core.h | 2 +-
drivers/gpu/drm/drm_atomic.c | 2 +
drivers/gpu/drm/drm_atomic_helper.c | 101 +++++-
drivers/gpu/drm/drm_atomic_state_helper.c | 4 +
drivers/gpu/drm/drm_atomic_uapi.c | 7 +-
drivers/gpu/drm/drm_bridge.c | 110 +++++++
drivers/gpu/drm/drm_self_refresh_helper.c | 205 +++++++++++++
drivers/gpu/drm/i915/intel_atomic.c | 8 +-
drivers/gpu/drm/i915/intel_dp_mst.c | 7 +-
drivers/gpu/drm/i915/intel_drv.h | 2 +-
drivers/gpu/drm/i915/intel_sdvo.c | 9 +-
drivers/gpu/drm/i915/intel_tv.c | 8 +-
drivers/gpu/drm/nouveau/dispnv50/disp.c | 5 +-
drivers/gpu/drm/rcar-du/rcar_lvds.c | 12 +-
drivers/gpu/drm/rockchip/Makefile | 3 +-
.../gpu/drm/rockchip/analogix_dp-rockchip.c | 86 +++---
drivers/gpu/drm/rockchip/rockchip_drm_fb.c | 39 +--
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 | 71 ++++-
drivers/gpu/drm/vc4/vc4_txp.c | 7 +-
include/drm/bridge/analogix_dp.h | 4 -
include/drm/drm_atomic.h | 15 +
include/drm/drm_atomic_helper.h | 6 +
include/drm/drm_bridge.h | 114 +++++++
include/drm/drm_connector.h | 14 +
include/drm/drm_crtc.h | 19 ++
include/drm/drm_modeset_helper_vtables.h | 47 ++-
include/drm/drm_self_refresh_helper.h | 22 ++
32 files changed, 983 insertions(+), 543 deletions(-)
create mode 100644 drivers/gpu/drm/drm_self_refresh_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_self_refresh_helper.h
--
Sean Paul, Software Engineer, Google / Chromium OS
More information about the dri-devel
mailing list