drm/i915: preserve SSC if previously set v3
authorJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 9 Oct 2014 19:57:42 +0000 (12:57 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 14 Nov 2014 09:35:23 +0000 (10:35 +0100)
commit92122789b2d699a1e82dca502940e0dd37bf6f3b
tree322dff7ec72f9871617c4786c21e74d14222b4b3
parent3581f309a9c532cad6faea12ad1986da135e99b0
drm/i915: preserve SSC if previously set v3

Some machines may have a broken VBT or no VBT at all, but we still want
to use SSC there.  So check for it and keep it enabled if we see it
already on.  Based on an earlier fix from Kristian.

v2: honor modparam if set too (Daniel)
    read out at init time and store for panel_use_ssc() use (Jesse)
v3: trust BIOS configuration over VBT like we do for DP (Jani)

Reported-by: Kristian Høgsberg <hoegsberg@gmail.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c