[PATCH] trybot: Check to see what happens if we always force a modeset
Maarten Lankhorst
maarten.lankhorst at linux.intel.com
Thu Nov 2 11:19:18 UTC 2017
Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
---
drivers/gpu/drm/i915/i915_params.h | 2 +-
drivers/gpu/drm/i915/intel_pipe_crc.c | 11 +++++++----
drivers/gpu/drm/i915/intel_pm.c | 4 +++-
3 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_params.h b/drivers/gpu/drm/i915/i915_params.h
index e54e6a4bc6bd..396126aac932 100644
--- a/drivers/gpu/drm/i915/i915_params.h
+++ b/drivers/gpu/drm/i915/i915_params.h
@@ -57,7 +57,7 @@
param(bool, alpha_support, IS_ENABLED(CONFIG_DRM_I915_ALPHA_SUPPORT)) \
param(bool, enable_cmd_parser, true) \
param(bool, enable_hangcheck, true) \
- param(bool, fastboot, false) \
+ param(bool, fastboot, true) \
param(bool, prefault_disable, false) \
param(bool, load_detect_test, false) \
param(bool, force_reset_modeset_test, false) \
diff --git a/drivers/gpu/drm/i915/intel_pipe_crc.c b/drivers/gpu/drm/i915/intel_pipe_crc.c
index 4ca4ba5a145b..237b4e7b596b 100644
--- a/drivers/gpu/drm/i915/intel_pipe_crc.c
+++ b/drivers/gpu/drm/i915/intel_pipe_crc.c
@@ -365,14 +365,17 @@ static void hsw_pipe_A_crc_wa(struct drm_i915_private *dev_priv,
*/
pipe_config->ips_force_disable = enable;
if (pipe_config->ips_enabled == enable)
- pipe_config->base.connectors_changed = true;
+ pipe_config->base.mode_changed = true;
}
if (IS_HASWELL(dev_priv)) {
pipe_config->pch_pfit.force_thru = enable;
- if (pipe_config->cpu_transcoder == TRANSCODER_EDP &&
- pipe_config->pch_pfit.enabled != enable)
- pipe_config->base.connectors_changed = true;
+ if (pipe_config->pch_pfit.enabled != enable) {
+ if (pipe_config->cpu_transcoder == TRANSCODER_EDP)
+ pipe_config->base.connectors_changed = true;
+ else
+ pipe_config->base.mode_changed = true;
+ }
}
ret = drm_atomic_commit(state);
diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index 79f2e3865921..266aa702aabc 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -3377,7 +3377,9 @@ static int ilk_compute_intermediate_wm(struct drm_device *dev,
* and after the vblank.
*/
*a = newstate->wm.ilk.optimal;
- if (!newstate->base.active || drm_atomic_crtc_needs_modeset(&newstate->base))
+ if (!newstate->base.active ||
+ drm_atomic_crtc_needs_modeset(&newstate->base) ||
+ oldstate->base.mode.private_flags & I915_MODE_FLAG_INHERITED)
return 0;
a->pipe_enabled |= b->pipe_enabled;
More information about the Intel-gfx-trybot
mailing list