Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 348083
b: refs/heads/master
c: 0fde901
h: refs/heads/master
i:
  348081: 6fbf6ab
  348079: 90211a5
v: v3
  • Loading branch information
Krzysztof Mazur authored and Daniel Vetter committed Dec 19, 2012
1 parent fd5ac9c commit 5af39df
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dc9dd7a20fde95aa81a8307cde79c2dff9f83f3d
refs/heads/master: 0fde901f1ddd2ce0e380a6444f1fb7ca555859e9
19 changes: 19 additions & 0 deletions trunk/drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -9152,6 +9152,23 @@ static void intel_sanitize_encoder(struct intel_encoder *encoder)
* the crtc fixup. */
}

static void i915_redisable_vga(struct drm_device *dev)
{
struct drm_i915_private *dev_priv = dev->dev_private;
u32 vga_reg;

if (HAS_PCH_SPLIT(dev))
vga_reg = CPU_VGACNTRL;
else
vga_reg = VGACNTRL;

if (I915_READ(vga_reg) != VGA_DISP_DISABLE) {
DRM_DEBUG_KMS("Something enabled VGA plane, disabling it\n");
I915_WRITE(vga_reg, VGA_DISP_DISABLE);
POSTING_READ(vga_reg);
}
}

/* Scan out the current hw modeset state, sanitizes it and maps it into the drm
* and i915 state tracking structures. */
void intel_modeset_setup_hw_state(struct drm_device *dev,
Expand Down Expand Up @@ -9260,6 +9277,8 @@ void intel_modeset_setup_hw_state(struct drm_device *dev,
intel_set_mode(&crtc->base, &crtc->base.mode,
crtc->base.x, crtc->base.y, crtc->base.fb);
}

i915_redisable_vga(dev);
} else {
intel_modeset_update_staged_output_state(dev);
}
Expand Down

0 comments on commit 5af39df

Please sign in to comment.