linux_dsm_epyc7002/drivers/gpu/drm/exynos
Daniel Vetter aef9dbb8f7 drm/atomic-helper: Add option to update planes only on active crtc
With drivers supporting runtime pm it's generally not a good idea to
touch the hardware when it's off. Add an option to the commit_planes
helper to support this case.

Note that the helpers already add all planes on a crtc when a modeset
happens, hence plane updates will not be lost if drivers set this to
true.

v2: Check for NULL state->crtc before chasing the pointer. Also check
both old and new crtc if there's a switch. Finally just outright
disallow switching crtcs for a plane if the plane is in active use, on
most hardware that doesn't make sense.

v3: Since commit_planes(active_only = true) is for enabling things
only after all the crtc are on we should only look at the new crtc to
decide whether to call the plane hooks - if the current CRTC isn't on
then skip. If the old crtc (when moving a plane) went down then the
plane should have been disabled as part of the pipe shutdown work
already. For which there's currently no helper really unfortunately.
Also move the check for wether a plane gets a new CRTC assigned while
still in active use out of this patch.

v4: Rebase over exynos changes.

Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Thierry Reding <treding@nvidia.com>
Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Tested-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2015-09-08 13:49:08 +02:00
..
exynos7_drm_decon.c drm/exynos: Properly report supported formats for each device 2015-08-31 01:03:02 +09:00
exynos5433_drm_decon.c drm/exynos: Properly report supported formats for each device 2015-08-31 01:03:02 +09:00
exynos_dp_core.c drm/exynos: remove struct exynos_drm_encoder layer 2015-08-16 10:35:54 +09:00
exynos_dp_core.h drm/exynos: remove struct exynos_drm_encoder layer 2015-08-16 10:35:54 +09:00
exynos_dp_reg.c
exynos_dp_reg.h
exynos_drm_core.c drm/exynos: remove struct exynos_drm_encoder layer 2015-08-16 10:35:54 +09:00
exynos_drm_crtc.c drm/exynos: remove wait queue for pending page flip 2015-08-31 00:27:38 +09:00
exynos_drm_crtc.h drm/exynos: wait all planes updates to finish 2015-08-31 00:27:38 +09:00
exynos_drm_dpi.c drm/exynos: remove struct exynos_drm_encoder layer 2015-08-16 10:35:54 +09:00
exynos_drm_drv.c drm/atomic-helper: Add option to update planes only on active crtc 2015-09-08 13:49:08 +02:00
exynos_drm_drv.h drm/exynos: remove wait queue for pending page flip 2015-08-31 00:27:38 +09:00
exynos_drm_dsi.c drm/exynos: remove struct exynos_drm_encoder layer 2015-08-16 10:35:54 +09:00
exynos_drm_fb.c drm/exynos: remove buf_cnt from struct exynos_drm_fb 2015-09-02 23:10:34 +09:00
exynos_drm_fb.h drm/exynos: remove exynos_drm_fb_get_buf_cnt() 2015-09-02 23:10:34 +09:00
exynos_drm_fbdev.c drm/exynos: update exynos_drm_framebuffer_init() for multiple buffers 2015-09-02 23:10:32 +09:00
exynos_drm_fbdev.h
exynos_drm_fimc.c
exynos_drm_fimc.h
exynos_drm_fimd.c drm/exynos: Properly report supported formats for each device 2015-08-31 01:03:02 +09:00
exynos_drm_g2d.c drm/exynos: remove superfluous checks in g2d_check_reg_offset() 2015-09-02 23:10:29 +09:00
exynos_drm_g2d.h
exynos_drm_gem.c drm/exynos: fix build warning to exynos_drm_gem.c 2015-08-31 01:12:36 +09:00
exynos_drm_gem.h drm/exynos: merge exynos_drm_buf.c to exynos_drm_gem.c 2015-08-16 14:39:32 +09:00
exynos_drm_gsc.c drm/exynos: gsc: Handles the combination of rotation and flip 2015-08-16 10:23:32 +09:00
exynos_drm_gsc.h
exynos_drm_iommu.c drm/exynos: remove drm_iommu_attach_device_if_possible 2015-08-16 10:23:33 +09:00
exynos_drm_iommu.h drm/exynos: remove drm_iommu_attach_device_if_possible 2015-08-16 10:23:33 +09:00
exynos_drm_ipp.c drm/exynos: remove unnecessary checking to support iommu 2015-08-16 10:23:32 +09:00
exynos_drm_ipp.h
exynos_drm_mic.c
exynos_drm_plane.c drm/exynos: remove exynos_drm_fb_get_buf_cnt() 2015-09-02 23:10:34 +09:00
exynos_drm_plane.h drm/exynos: Properly report supported formats for each device 2015-08-31 01:03:02 +09:00
exynos_drm_rotator.c
exynos_drm_rotator.h
exynos_drm_vidi.c drm/exynos: Properly report supported formats for each device 2015-08-31 01:03:02 +09:00
exynos_drm_vidi.h
exynos_hdmi.c drm/exynos: remove struct exynos_drm_encoder layer 2015-08-16 10:35:54 +09:00
exynos_mixer.c drm/exynos: Properly report supported formats for each device 2015-08-31 01:03:02 +09:00
exynos_mixer.h
Kconfig
Makefile drm/exynos: merge exynos_drm_buf.c to exynos_drm_gem.c 2015-08-16 14:39:32 +09:00
regs-fimc.h
regs-gsc.h
regs-hdmi.h
regs-mixer.h
regs-rotator.h
regs-vp.h