Skip to content

Commit

Permalink
drm/i915: Apply display workaround required according to the B-Spec.
Browse files Browse the repository at this point in the history
Not known to fix any current bugs.

Signed-off-by: Eric Anholt <[email protected]>
Signed-off-by: Chris Wilson <[email protected]>
  • Loading branch information
anholt authored and ickle committed Nov 8, 2010
1 parent de6e2ea commit 67e92af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/i915/i915_reg.h
Original file line number Diff line number Diff line change
Expand Up @@ -2609,6 +2609,8 @@
#define GTIER 0x4401c

#define ILK_DISPLAY_CHICKEN2 0x42004
/* Required on all Ironlake and Sandybridge according to the B-Spec. */
#define ILK_ELPIN_409_SELECT (1 << 25)
#define ILK_DPARB_GATE (1<<22)
#define ILK_VSDPFD_FULL (1<<21)
#define ILK_DSPCLK_GATE 0x42020
Expand Down
4 changes: 4 additions & 0 deletions drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -5819,6 +5819,10 @@ void intel_init_clock_gating(struct drm_device *dev)
ILK_CLK_FBC);
}

I915_WRITE(ILK_DISPLAY_CHICKEN2,
I915_READ(ILK_DISPLAY_CHICKEN2) |
ILK_ELPIN_409_SELECT);

if (IS_GEN5(dev)) {
I915_WRITE(_3D_CHICKEN2,
_3D_CHICKEN2_WM_READ_PIPELINED << 16 |
Expand Down

0 comments on commit 67e92af

Please sign in to comment.