Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 345107
b: refs/heads/master
c: 1ce4292
h: refs/heads/master
i:
  345105: 6dfba86
  345103: a9a9b73
v: v3
  • Loading branch information
Paulo Zanoni authored and Daniel Vetter committed Oct 10, 2012
1 parent 79c737c commit b35c914
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2886e93f5d28c559b3de9c4f75547af31e14504e
refs/heads/master: 1ce4292073695fd0fec74d1169bc94dadc339731
7 changes: 5 additions & 2 deletions trunk/drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -5217,6 +5217,11 @@ static int haswell_crtc_mode_set(struct drm_crtc *crtc,
WARN(num_connectors != 1, "%d connectors attached to pipe %c\n",
num_connectors, pipe_name(pipe));

WARN_ON(I915_READ(PIPECONF(pipe)) &
(PIPECONF_ENABLE | I965_PIPECONF_ACTIVE));

WARN_ON(I915_READ(DSPCNTR(plane)) & DISPLAY_PLANE_ENABLE);

if (!intel_ddi_pll_mode_set(crtc, adjusted_mode->clock))
return -EINVAL;

Expand Down Expand Up @@ -5357,8 +5362,6 @@ static int haswell_crtc_mode_set(struct drm_crtc *crtc,

haswell_set_pipeconf(crtc, adjusted_mode, dither);

intel_wait_for_vblank(dev, pipe);

/* Set up the display plane register */
I915_WRITE(DSPCNTR(plane), DISPPLANE_GAMMA_ENABLE);
POSTING_READ(DSPCNTR(plane));
Expand Down

0 comments on commit b35c914

Please sign in to comment.