drm/rockchip: Use the helpers for PSR
Instead of rolling our own implementation for tracking when PSR should be [in]active, use the new self refresh helpers to do the heavy lifting. Changes in v2: - updated to reflect changes made in the helpers Changes in v3: - use the new atomic hooks to inspect crtc state instead of needing conn state (Daniel) Changes in v4: - Use Laurent's get_new_connector_for_encoder helper (Daniel) - Exit vop disable early if it's already off Changes in v5: - Rebase on latest drm-misc-next - Resolve conflict with s/edp_vsc_psr/dp_sdp/ rename - Resolve conflict with drm_atomic.h header inclusion Link to v1: https://patchwork.freedesktop.org/patch/msgid/20190228210939.83386-4-sean@poorly.run Link to v2: https://patchwork.freedesktop.org/patch/msgid/20190326204509.96515-3-sean@poorly.run Link to v3: https://patchwork.freedesktop.org/patch/msgid/20190502194956.218441-9-sean@poorly.run Link to v4: https://patchwork.freedesktop.org/patch/msgid/20190508160920.144739-9-sean@poorly.run Cc: Zain Wang <wzz@rock-chips.com> Cc: Tomasz Figa <tfiga@chromium.org> Cc: Daniel Vetter <daniel@ffwll.ch> Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Tested-by:Heiko Stuebner <heiko@sntech.de> Reviewed-by:
Heiko Stuebner <heiko@sntech.de> [seanpaul resolved some conflicts with drmP.h work and Helen's async fixes] Signed-off-by:
Sean Paul <seanpaul@chromium.org> Link: https://patchwork.freedesktop.org/patch/msgid/20190611160844.257498-9-sean@poorly.run
Showing
- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c 207 additions, 84 deletionsdrivers/gpu/drm/bridge/analogix/analogix_dp_core.c
- drivers/gpu/drm/bridge/analogix/analogix_dp_core.h 1 addition, 1 deletiondrivers/gpu/drm/bridge/analogix/analogix_dp_core.h
- drivers/gpu/drm/rockchip/Makefile 1 addition, 2 deletionsdrivers/gpu/drm/rockchip/Makefile
- drivers/gpu/drm/rockchip/analogix_dp-rockchip.c 56 additions, 50 deletionsdrivers/gpu/drm/rockchip/analogix_dp-rockchip.c
- drivers/gpu/drm/rockchip/rockchip_drm_fb.c 0 additions, 5 deletionsdrivers/gpu/drm/rockchip/rockchip_drm_fb.c
- drivers/gpu/drm/rockchip/rockchip_drm_psr.c 0 additions, 281 deletionsdrivers/gpu/drm/rockchip/rockchip_drm_psr.c
- drivers/gpu/drm/rockchip/rockchip_drm_psr.h 0 additions, 22 deletionsdrivers/gpu/drm/rockchip/rockchip_drm_psr.h
- drivers/gpu/drm/rockchip/rockchip_drm_vop.c 30 additions, 9 deletionsdrivers/gpu/drm/rockchip/rockchip_drm_vop.c
- include/drm/bridge/analogix_dp.h 0 additions, 4 deletionsinclude/drm/bridge/analogix_dp.h
Loading
Please register or sign in to comment