From: Ander Conselvan de Oliveira Date: Mon, 1 Jun 2015 10:50:03 +0000 (+0200) Subject: drm/i915: Read hw state into an atomic state struct, v2. X-Git-Tag: omap-for-v4.3/fixes-rc1~89^2~36^2~284^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37ade41794e914103b8db417e480afd20dcea971;p=pandora-kernel.git drm/i915: Read hw state into an atomic state struct, v2. To make this work we load the new hardware state into the atomic_state, then swap it with the sw state. This lets us change the force restore path in setup_hw_state() to use a single call to intel_mode_set() to restore all the previous state. As a nice bonus this kills off encoder->new_encoder, connector->new_enabled and crtc->new_enabled. They were used only to restore the state after a modeset. Changes since v1: - Make sure all possible planes are added with their crtc set, so they will be turned off on first modeset. Signed-off-by: Ander Conselvan de Oliveira Signed-off-by: Maarten Lankhorst Reviewed-by: Matt Roper Signed-off-by: Jani Nikula --- Reading git-diff-tree failed