summaryrefslogtreecommitdiffstats
path: root/i915-enable-fastboot-on-vlv-chv.patch
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2019-01-31 10:15:07 +0100
committerHans de Goede <hdegoede@redhat.com>2019-01-31 10:15:07 +0100
commit3f22d634d2e1da3f29c2a0a83923e79c4080dd24 (patch)
treed211176bdba0a4f17160d37bad11769789a70742 /i915-enable-fastboot-on-vlv-chv.patch
parent0ccd979b76fd871c4dfd4a50d84e44fd5a3daa75 (diff)
downloadkernel-3f22d634d2e1da3f29c2a0a83923e79c4080dd24.tar.gz
kernel-3f22d634d2e1da3f29c2a0a83923e79c4080dd24.tar.xz
kernel-3f22d634d2e1da3f29c2a0a83923e79c4080dd24.zip
Add patches from -next to enable i915.fastboot by default on Skylake+ for
https://fedoraproject.org/wiki/Changes/FlickerFreeBoot
Diffstat (limited to 'i915-enable-fastboot-on-vlv-chv.patch')
-rw-r--r--i915-enable-fastboot-on-vlv-chv.patch53
1 files changed, 53 insertions, 0 deletions
diff --git a/i915-enable-fastboot-on-vlv-chv.patch b/i915-enable-fastboot-on-vlv-chv.patch
new file mode 100644
index 000000000..456a8bcf6
--- /dev/null
+++ b/i915-enable-fastboot-on-vlv-chv.patch
@@ -0,0 +1,53 @@
+From c3d75c94de553c3084dd4dfd0d5d9aa6e53f3457 Mon Sep 17 00:00:00 2001
+From: Hans de Goede <hdegoede@redhat.com>
+Date: Tue, 29 Jan 2019 12:53:32 +0100
+Subject: [PATCH] drm/i915: Enable fastboot by default on VLV and CHV
+
+We really want to have fastboot enabled by default to avoid an ugly
+modeset during boot.
+
+Currently we are enabling fastboot by default on gen9+ (Skylake and newer).
+The intention is to enable it on older generations after it has seen more
+testing on gen9+.
+
+VLV and CHV devices are still being sold in stores today, as such it is
+desirable to also enable fastboot by default on these now.
+
+I've extensively tested fastboot=1 support on over 50 different
+Bay- and Cherry-Trail devices. Testing DSI and eDP panels as well as
+HDMI output (and even DP over Type-C on one device).
+
+All 50 devices work fine with fastboot=1. On 2 devices their DSI panel
+turns black as soon as the i915 driver loads when fastboot=0, so having
+fastboot enabled is required for these 2 to work properly (for lack of
+a better fix).
+
+Signed-off-by: Hans de Goede <hdegoede@redhat.com>
+---
+ drivers/gpu/drm/i915/intel_display.c | 10 +++++++++-
+ 1 file changed, 9 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
+index d756d7358292..0ff42a38023c 100644
+--- a/drivers/gpu/drm/i915/intel_display.c
++++ b/drivers/gpu/drm/i915/intel_display.c
+@@ -11672,7 +11672,15 @@ static bool fastboot_enabled(struct drm_i915_private *dev_priv)
+ return i915_modparams.fastboot;
+
+ /* Enable fastboot by default on Skylake and newer */
+- return INTEL_GEN(dev_priv) >= 9;
++ if (INTEL_GEN(dev_priv) >= 9)
++ return true;
++
++ /* Enable fastboot by default on VLV and CHV */
++ if (IS_VALLEYVIEW(dev_priv) || IS_CHERRYVIEW(dev_priv))
++ return true;
++
++ /* Disabled by default on all others */
++ return false;
+ }
+
+ static bool
+--
+2.20.1
+