]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Add rotation readout for plane initial config
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 20 Nov 2018 13:54:50 +0000 (15:54 +0200)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Wed, 21 Nov 2018 12:30:58 +0000 (14:30 +0200)
commite1869cc07f5ad4773c4bf09b6b9dab1be3563300
treec7b64ccbe688eb8e656bb692401c74bf36f665cc
parent836fcabc03e7fe54300896e9b6b2721da48d0010
drm/i915: Add rotation readout for plane initial config

If we need to force a full plane update before userspace/fbdev
have given us a proper plane state we should try to maintain the
current plane state as much as possible (apart from the parts
of the state we're trying to fix up with the plane update).
To that end add basic readout for the plane rotation and
maintain it during the initial fb takeover.

Cc: Hans de Goede <hdegoede@redhat.com>
Fixes: f9df69ff7d22 ("drm/i915: Fix assert_plane() warning on bootup with external display")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181120135450.3634-2-ville.syrjala@linux.intel.com
Tested-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
(cherry picked from commit f43348a3db89305bb1935da9fe4499fdcdde9796)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h