Skip to contentSkip to conversation

drm/i915: Enable fastboot by default on Skylake and newer

RFC New Hans de Goede 2 participants 2 messages Dec 17, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

RFC 1/1 drm/i915: Enable fastboot by default on Skylake and newer

We really want to have fastboot enabled by default to avoid an ugly modeset during boot.

Rather then enabling it everywhere, lets start with enabling it on Skylake and newer.

---
 drivers/gpu/drm/i915/i915_params.c   |  6 ++++--
 drivers/gpu/drm/i915/i915_params.h   |  2 +-
 drivers/gpu/drm/i915/intel_display.c | 11 ++++++++++-
 3 files changed, 15 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/i915_params.c +4 -2
index 295e981e4a39..ff5f32a3aaf0 100644
@@ -101,8 +101,10 @@ i915_param_named_unsafe(disable_power_well, int, 0400,
 
 i915_param_named_unsafe(enable_ips, int, 0600, "Enable IPS (default: true)");
 
-i915_param_named(fastboot, bool, 0600,
-	"Try to skip unnecessary mode sets at boot time (default: false)");
+i915_param_named(fastboot, int, 0600,
+	"Try to skip unnecessary mode sets at boot time "
+	"(0=disabled, 1=enabled) "
+	"Default: -1 (use per-chip default)");
 
 i915_param_named_unsafe(prefault_disable, bool, 0600,
 	"Disable page prefaulting for pread/pwrite/reloc (default:false). "
drivers/gpu/drm/i915/i915_params.h +1 -1
index 6c4d4a21474b..7e11aa4d1d97 100644
@@ -55,10 +55,10 @@ struct drm_printer;
 	param(int, edp_vswing, 0) \
 	param(int, reset, 2) \
 	param(unsigned int, inject_load_failure, 0) \
+	param(int, fastboot, -1) \
 	/* leave bools at the end to not create holes */ \
 	param(bool, alpha_support, IS_ENABLED(CONFIG_DRM_I915_ALPHA_SUPPORT)) \
 	param(bool, enable_hangcheck, true) \
-	param(bool, fastboot, false) \
 	param(bool, prefault_disable, false) \
 	param(bool, load_detect_test, false) \
 	param(bool, force_reset_modeset_test, false) \
drivers/gpu/drm/i915/intel_display.c +10 -1
index 071954d255c6..62df34d30b1f 100644
@@ -12501,6 +12501,15 @@ static int calc_watermark_data(struct drm_atomic_state *state)
 	return 0;
 }
 
+static bool fastboot_enabled(struct drm_i915_private *dev_priv)
+{
+	if (i915_modparams.fastboot != -1)
+		return i915_modparams.fastboot;
+
+	/* Enable fastboot by default on Skylake and newer */
+	return INTEL_GEN(dev_priv) >= 9;
+}
+
 static bool can_fastset(struct drm_i915_private *dev_priv,
 			struct intel_crtc_state *old_crtc_state,
 			struct intel_crtc_state *new_crtc_state)
@@ -12510,7 +12519,7 @@ static bool can_fastset(struct drm_i915_private *dev_priv,
 		!(new_crtc_state->base.mode.private_flags & I915_MODE_FLAG_INHERITED);
 
 	/* Without fastboot, we always want to modeset the initial mode. */
-	if (reset_mode && !i915_modparams.fastboot)
+	if (reset_mode && !fastboot_enabled(dev_priv))
 		return false;
 
 	return intel_pipe_config_compare(dev_priv, old_crtc_state,
Signature · 6 lines
2.20.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

✗ Fi.CI.BAT: failure for drm/i915: Enable fastboot by default on Skylake and newer

== Series Details ==

== Series Details ==

Series: drm/i915: Enable fastboot by default on Skylake and newer
URL : https://patchwork.freedesktop.org/series/54143/
State : failure

== Summary ==

Applying: drm/i915: Enable fastboot by default on Skylake and newer
error: sha1 information is lacking or useless (drivers/gpu/drm/i915/intel_display.c).
error: could not build fake ancestor
Patch failed at 0001 drm/i915: Enable fastboot by default on Skylake and newer Use 'git am --show-current-patch' to see the failed patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx