diff options
author | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2012-11-20 10:27:41 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-11-21 11:47:09 -0500 |
commit | 13888d78c664a1f61d7b09d282f5916993827a40 (patch) | |
tree | 6b7ebbf9c96af358bdfcf72f4a51673f8635311b /drivers/gpu/drm | |
parent | 79935fca3f1259e0a6fe203b55008f84ab8f3087 (diff) |
drm/i915: make the panel fitter work on pipes B and C on IVB
I actually found this problem on Haswell, but then discovered Ivy
Bridge also has it by reading the spec.
I don't have the hardware to test this.
Cc: stable@vger.kernel.org
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/i915/i915_reg.h | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index 5aba146300d3..97fbd9d1823b 100644 --- a/drivers/gpu/drm/i915/i915_reg.h +++ b/drivers/gpu/drm/i915/i915_reg.h | |||
@@ -3339,6 +3339,8 @@ | |||
3339 | #define _PFA_CTL_1 0x68080 | 3339 | #define _PFA_CTL_1 0x68080 |
3340 | #define _PFB_CTL_1 0x68880 | 3340 | #define _PFB_CTL_1 0x68880 |
3341 | #define PF_ENABLE (1<<31) | 3341 | #define PF_ENABLE (1<<31) |
3342 | #define PF_PIPE_SEL_MASK_IVB (3<<29) | ||
3343 | #define PF_PIPE_SEL_IVB(pipe) ((pipe)<<29) | ||
3342 | #define PF_FILTER_MASK (3<<23) | 3344 | #define PF_FILTER_MASK (3<<23) |
3343 | #define PF_FILTER_PROGRAMMED (0<<23) | 3345 | #define PF_FILTER_PROGRAMMED (0<<23) |
3344 | #define PF_FILTER_MED_3x3 (1<<23) | 3346 | #define PF_FILTER_MED_3x3 (1<<23) |
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index e233541d4c9f..c2ef6cdf66c3 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c | |||
@@ -3387,7 +3387,11 @@ static void ironlake_crtc_enable(struct drm_crtc *crtc) | |||
3387 | * as some pre-programmed values are broken, | 3387 | * as some pre-programmed values are broken, |
3388 | * e.g. x201. | 3388 | * e.g. x201. |
3389 | */ | 3389 | */ |
3390 | I915_WRITE(PF_CTL(pipe), PF_ENABLE | PF_FILTER_MED_3x3); | 3390 | if (IS_IVYBRIDGE(dev)) |
3391 | I915_WRITE(PF_CTL(pipe), PF_ENABLE | PF_FILTER_MED_3x3 | | ||
3392 | PF_PIPE_SEL_IVB(pipe)); | ||
3393 | else | ||
3394 | I915_WRITE(PF_CTL(pipe), PF_ENABLE | PF_FILTER_MED_3x3); | ||
3391 | I915_WRITE(PF_WIN_POS(pipe), dev_priv->pch_pf_pos); | 3395 | I915_WRITE(PF_WIN_POS(pipe), dev_priv->pch_pf_pos); |
3392 | I915_WRITE(PF_WIN_SZ(pipe), dev_priv->pch_pf_size); | 3396 | I915_WRITE(PF_WIN_SZ(pipe), dev_priv->pch_pf_size); |
3393 | } | 3397 | } |