aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2013-09-30 09:21:50 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-10-04 04:32:17 -0400
commitd7bf63f2465b3b6335dd66ffbf387768d81a59d5 (patch)
tree28fb7ed012a8547ef42b28764189880594618f6c
parentbb2043de02ef15901c2a1e6f9349c989dce42615 (diff)
drm/i915: Use adjusted_mode in the fastboot hack to disable pfit
When booting with i915.fastboot=1, we always take tha code path and end up undoing what we're trying to do with adjusted_mode. Hopefully, as the fastboot hardware readout code is using adjusted_mode as well, it should be equivalent. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--drivers/gpu/drm/i915/intel_display.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index fe863255dedc..617b963dfb67 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -2334,9 +2334,12 @@ intel_pipe_set_base(struct drm_crtc *crtc, int x, int y,
2334 * then update the pipesrc and pfit state, even on the flip path. 2334 * then update the pipesrc and pfit state, even on the flip path.
2335 */ 2335 */
2336 if (i915_fastboot) { 2336 if (i915_fastboot) {
2337 const struct drm_display_mode *adjusted_mode =
2338 &intel_crtc->config.adjusted_mode;
2339
2337 I915_WRITE(PIPESRC(intel_crtc->pipe), 2340 I915_WRITE(PIPESRC(intel_crtc->pipe),
2338 ((crtc->mode.hdisplay - 1) << 16) | 2341 ((adjusted_mode->crtc_hdisplay - 1) << 16) |
2339 (crtc->mode.vdisplay - 1)); 2342 (adjusted_mode->crtc_vdisplay - 1));
2340 if (!intel_crtc->config.pch_pfit.enabled && 2343 if (!intel_crtc->config.pch_pfit.enabled &&
2341 (intel_pipe_has_type(crtc, INTEL_OUTPUT_LVDS) || 2344 (intel_pipe_has_type(crtc, INTEL_OUTPUT_LVDS) ||
2342 intel_pipe_has_type(crtc, INTEL_OUTPUT_EDP))) { 2345 intel_pipe_has_type(crtc, INTEL_OUTPUT_EDP))) {