Skip to contentSkip to conversation

drm/i915: fix panel fitting on LVDS on ILK+

PATCH In review Jesse Barnes 2 participants 5 messages May 3, 2013 – May 6, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915: fix panel fitting on LVDS on ILK+

In refactoring this, it was only applied to eDP, which is incorrect. In fact, if we ever use the panel fitter to deal with overscan on HDMI, we'll need to extend it again.

---
 drivers/gpu/drm/i915/intel_display.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_display.c +2 -1
index aa99b4d..f9894cf 100644
@@ -3240,7 +3240,8 @@ static void ironlake_pfit_enable(struct intel_crtc *crtc)
 	int pipe = crtc->pipe;
 
 	if (crtc->config.pch_pfit.size &&
-	    intel_pipe_has_type(&crtc->base, INTEL_OUTPUT_EDP)) {
+	    (intel_pipe_has_type(&crtc->base, INTEL_OUTPUT_EDP) ||
+	     intel_pipe_has_type(&crtc->base, INTEL_OUTPUT_LVDS))) {
 		/* Force use of hard-coded filter coefficients
 		 * as some pre-programmed values are broken,
 		 * e.g. x201.
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 5 lines · Jesse Barnes

In refactoring this, it was only applied to eDP, which is incorrect. In fact, if we ever use the panel fitter to deal with overscan on HDMI, we'll need to extend it again.

Citation of regressing commit is missing. Also, since the pfit is per-pipe on ilk+, shouldn't we just drop this?
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch

#2 lore raw
Quoted 9 lines · On Fri, 3 May 2013 22:15:27 +0200 Daniel Vetter <[email protected]> wrote:
Quoted 5 lines · Jesse Barnes

In refactoring this, it was only applied to eDP, which is incorrect. In fact, if we ever use the panel fitter to deal with overscan on HDMI, we'll need to extend it again.

Citation of regressing commit is missing. Also, since the pfit is per-pipe on ilk+, shouldn't we just drop this?

Drop the conditional? Sure if you want...

Signature · 1 line
Jesse Barnes, Intel Open Source Technology Center
#3 lore raw

PATCH 1/1 drm/i915: fix panel fitting on LVDS on ILK+ v2

In reply to Jesse Barnes

This regression was introduced in:

commit b074cec8c652f2d273907a4b35239b4766c894ac

Author: Jesse Barnes <[email protected]>
Date:   Thu Apr 25 12:55:02 2013 -0700

drm/i915: move PCH pfit controls into pipe_config

In refactoring this, it was only applied to eDP, which is incorrect. In fact, if we ever use the panel fitter to deal with overscan on HDMI, we'll need to extend it again, so just drop the conditional altogether.

v2: drop check for eDP since we can use the fitter in any config (Daniel)

---
 drivers/gpu/drm/i915/intel_display.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/i915/intel_display.c +1 -2
index aa99b4d..7b4005b 100644
@@ -3239,8 +3239,7 @@ static void ironlake_pfit_enable(struct intel_crtc *crtc)
 	struct drm_i915_private *dev_priv = dev->dev_private;
 	int pipe = crtc->pipe;
 
-	if (crtc->config.pch_pfit.size &&
-	    intel_pipe_has_type(&crtc->base, INTEL_OUTPUT_EDP)) {
+	if (crtc->config.pch_pfit.size) {
 		/* Force use of hard-coded filter coefficients
 		 * as some pre-programmed values are broken,
 		 * e.g. x201.
Signature · 1 line
1.7.9.5
#4 lore raw

Re: [PATCH] drm/i915: fix panel fitting on LVDS on ILK+ v2

Quoted 8 lines · Jesse Barnes

This regression was introduced in:

commit b074cec8c652f2d273907a4b35239b4766c894ac

Author: Jesse Barnes <[email protected]>
Date:   Thu Apr 25 12:55:02 2013 -0700

drm/i915: move PCH pfit controls into pipe_config

Quoted 7 lines

In refactoring this, it was only applied to eDP, which is incorrect. In fact, if we ever use the panel fitter to deal with overscan on HDMI, we'll need to extend it again, so just drop the conditional altogether.

v2: drop check for eDP since we can use the fitter in any config (Daniel)

Queued for -next, thanks for the patch.
-Daniel

Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch