android_kernel_motorola_sm6375/include/drm
Repository files (latest commit first)
Filename Latest commit message Latest commit date
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
..
bridge Merge branch 'drm-dwhdmi-devel' of git://ftp.arm.linux.org.uk/~rmk/linux-arm into drm-next 2015-08-27 13:01:57 +10:00
i2c
ttm drm/ttm: device address space != CPU address space 2015-03-05 09:04:39 +10:00
ati_pcigart.h
drm_agpsupport.h
drm_atomic.h drm/atomic: add connectors_changed to separate it from mode_changed, v2 2015-07-27 10:06:38 +02:00
drm_atomic_helper.h drm/atomic-helper: Add option to update planes only on active crtc 2015-09-08 13:49:08 +02:00
drm_cache.h
drm_core.h
drm_crtc.h drm: Constify TV mode names 2015-09-08 13:45:52 +02:00
drm_crtc_helper.h Linux 4.2-rc7 2015-08-17 14:13:53 +10:00
drm_displayid.h drm/displayid: add displayid defines and edid extension (v2) 2014-12-09 09:56:46 +10:00
drm_dp_helper.h drm/dp/mst: dump branch OUI in debugfs (v2) 2015-08-21 12:04:49 +10:00
drm_dp_mst_helper.h drm/dp/mst: close deadlock in connector destruction. 2015-06-25 11:57:23 +10:00
drm_edid.h drm/edid: add function to help find SADs 2015-08-20 09:46:08 +10:00
drm_encoder_slave.h
drm_fb_cma_helper.h
drm_fb_helper.h drm/fb-helper: Use -errno return in restore_mode_unlocked 2015-09-08 13:45:49 +02:00
drm_fixed.h
drm_flip_work.h
drm_gem.h drm: Use kref_put_mutex in drm_gem_object_unreference_unlocked 2015-04-07 18:11:25 +02:00
drm_gem_cma_helper.h
drm_global.h
drm_hashtab.h
drm_legacy.h
drm_mem_util.h drm: use kvfree() in drm_free_large() 2015-06-30 19:44:59 -07:00
drm_mipi_dsi.h
drm_mm.h drm/mm: Support 4 GiB and larger ranges 2015-03-05 09:01:37 +10:00
drm_modes.h drm/mode: Unstatic kernel-userspace mode conversion 2015-05-22 16:18:21 +02:00
drm_modeset_lock.h drm/doc: Fixing xml documentation warning 2015-09-08 13:45:48 +02:00
drm_of.h
drm_os_linux.h
drm_panel.h drm/panel: Add display timing support 2015-04-02 19:04:12 +02:00
drm_pciids.h drm/radeon: add new OLAND pci id 2015-08-12 12:24:05 -04:00
drm_plane_helper.h drm/atomic: Make prepare_fb/cleanup_fb only take state, v3. 2015-09-08 13:45:54 +02:00
drm_rect.h
drm_sysfs.h
drm_vma_manager.h
drmP.h Merge branch 'vmwgfx-next' of git://people.freedesktop.org/~thomash/linux into drm-next 2015-08-17 16:03:48 +10:00
exynos_drm.h
gma_drm.h
i915_component.h drm/i915/audio: add codec wakeup override enabled/disable callback 2015-05-05 14:44:19 +02:00
i915_drm.h
i915_pciids.h drm/i915/bxt: Update the Broxton PCI ids 2015-05-20 11:26:06 +02:00
intel-gtt.h drm/i915/gtt: Allow >= 4GB sizes for vm. 2015-06-26 10:41:13 +02:00