]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Use helper to set CRTC state's mode
authorMatt Roper <matthew.d.roper@intel.com>
Fri, 5 Jun 2015 22:08:24 +0000 (15:08 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 17 Jun 2015 11:42:08 +0000 (13:42 +0200)
commit04a033628cf895babc471562410925efd914813e
tree10c59098eae9395b5894f8e8fcd9e8f778bc05db
parent50da9a8065552d86ab25092b3f13ce480c25e1db
drm/i915: Use helper to set CRTC state's mode

We need to call drm_atomic_set_mode_for_crtc() rather than copying the
mode in manually.  As of commit

        commit b349cd8b54fb2dd7d9b6c09bce88e9b255d09321
        Author: Daniel Stone <daniels@collabora.com>
        Date:   Mon May 25 19:11:51 2015 +0100

            drm/atomic: Add current-mode blob to CRTC state

the helper now also takes care of setting up the mode property blob for
us; if we don't use the helper and never setup the mode blob, this will
also trigger a failure in drm_atomic_crtc_check() when we have the
DRIVER_ATOMIC flag set (i.e., when using the nuclear pageflip support
via i915.nuclear_pageflip kernel command line parameter).

Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c