linux/drivers/gpu/drm/omapdrm
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
..
Kconfig drm: Add separate Kconfig option for fbdev helpers 2013-10-11 23:36:58 +02:00
Makefile drm/omap: kill omap_gem_helpers.c 2013-08-19 10:36:16 +10:00
omap_connector.c drm: omapdrm: Switch connector DPMS to atomic helpers 2015-06-12 22:52:48 +03:00
omap_crtc.c drm/omap: Fixup compile fail 2015-08-06 14:09:35 +02:00
omap_debugfs.c drm: omapdrm: Clean up #include's 2015-06-12 22:52:46 +03:00
omap_dmm_priv.h drm/omap: fix race conditon in DMM 2015-03-24 13:50:59 +02:00
omap_dmm_tiler.c drm/omap: increase DMM transaction timeout 2015-07-02 15:58:06 +03:00
omap_dmm_tiler.h drm/omap: fix TILER on OMAP5 2015-03-24 13:50:55 +02:00
omap_drv.c drm/atomic-helper: Add option to update planes only on active crtc 2015-09-08 13:49:08 +02:00
omap_drv.h drm/omap: fix align_pitch() for 24 bits per pixel 2015-07-02 15:58:06 +03:00
omap_encoder.c drm: omapdrm: Move encoder setup to encoder operations 2015-06-12 22:52:50 +03:00
omap_fb.c drm/omap: fix omap_framebuffer_unpin() error handling 2015-07-02 15:58:06 +03:00
omap_fbdev.c drm/omap: Use new drm_fb_helper functions 2015-08-06 14:13:03 +02:00
omap_gem_dmabuf.c drm: omapdrm: Clean up #include's 2015-06-12 22:52:46 +03:00
omap_gem.c drm/omap: fix omap_gem_put_paddr() error handling 2015-07-02 15:58:06 +03:00
omap_irq.c drm: omapdrm: Turn vblank on/off when enabling/disabling CRTC 2015-06-12 22:52:46 +03:00
omap_plane.c drm/atomic: Make prepare_fb/cleanup_fb only take state, v3. 2015-09-08 13:45:54 +02:00
tcm-sita.c
tcm-sita.h
tcm.h
TODO