提交 67e92af0 编写于 作者: E Eric Anholt 提交者: Chris Wilson

drm/i915: Apply display workaround required according to the B-Spec.

Not known to fix any current bugs.
Signed-off-by: NEric Anholt <eric@anholt.net>
Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
上级 de6e2eaf
...@@ -2609,6 +2609,8 @@ ...@@ -2609,6 +2609,8 @@
#define GTIER 0x4401c #define GTIER 0x4401c
#define ILK_DISPLAY_CHICKEN2 0x42004 #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_DPARB_GATE (1<<22)
#define ILK_VSDPFD_FULL (1<<21) #define ILK_VSDPFD_FULL (1<<21)
#define ILK_DSPCLK_GATE 0x42020 #define ILK_DSPCLK_GATE 0x42020
......
...@@ -5819,6 +5819,10 @@ void intel_init_clock_gating(struct drm_device *dev) ...@@ -5819,6 +5819,10 @@ void intel_init_clock_gating(struct drm_device *dev)
ILK_CLK_FBC); ILK_CLK_FBC);
} }
I915_WRITE(ILK_DISPLAY_CHICKEN2,
I915_READ(ILK_DISPLAY_CHICKEN2) |
ILK_ELPIN_409_SELECT);
if (IS_GEN5(dev)) { if (IS_GEN5(dev)) {
I915_WRITE(_3D_CHICKEN2, I915_WRITE(_3D_CHICKEN2,
_3D_CHICKEN2_WM_READ_PIPELINED << 16 | _3D_CHICKEN2_WM_READ_PIPELINED << 16 |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册