All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: intel-gfx@lists.freedesktop.org
Cc: stable@kernel.org
Subject: [PATCH 2/4] drm/i915: Enable panel fitting for eDP
Date: Mon, 19 Jul 2010 09:43:12 +0100	[thread overview]
Message-ID: <1279528994-5621-3-git-send-email-chris@chris-wilson.co.uk> (raw)
In-Reply-To: <1279528994-5621-1-git-send-email-chris@chris-wilson.co.uk>

From: Zhao Yakui <yakui.zhao@intel.com>

When trying to set other display mode besides the fixed panel mode, the
panel fitting should be enabled. This is similar to LVDS.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: stable@kernel.org
---
 drivers/gpu/drm/i915/intel_display.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 8359c50..77ae44e 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -1888,7 +1888,8 @@ static void ironlake_crtc_dpms(struct drm_crtc *crtc, int mode)
 		}
 
 		/* Enable panel fitting for LVDS */
-		if (intel_pipe_has_type(crtc, INTEL_OUTPUT_LVDS)) {
+		if (intel_pipe_has_type(crtc, INTEL_OUTPUT_LVDS)
+		    || HAS_eDP || intel_pch_has_edp(crtc)) {
 			temp = I915_READ(pf_ctl_reg);
 			I915_WRITE(pf_ctl_reg, temp | PF_ENABLE | PF_FILTER_MED_3x3);
 
-- 
1.7.1

  parent reply	other threads:[~2010-07-19  8:43 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-19  8:43 Bug 28479 -- black screen for non-native modes on eDP Chris Wilson
2010-07-19  8:43 ` [PATCH 1/4] drm/i915: Add fixed panel mode parsed from EDID for eDP without fixed mode in VBT Chris Wilson
2010-07-29  1:00   ` Dave Airlie
2010-07-29  1:53     ` Zhenyu Wang
2010-07-19  8:43 ` Chris Wilson [this message]
2010-07-29  0:58   ` [PATCH 2/4] drm/i915: Enable panel fitting for eDP Dave Airlie
2010-07-29  7:26     ` Chris Wilson
2010-08-06 15:56     ` [stable] " Greg KH
2010-07-19  8:43 ` [PATCH 3/4] drm/i915: Always use the fixed panel timing " Chris Wilson
2010-08-02  2:41   ` Eric Anholt
2010-07-19  8:43 ` [PATCH 4/4] drm/i915: Validate the mode for eDP by using fixed panel size Chris Wilson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1279528994-5621-3-git-send-email-chris@chris-wilson.co.uk \
    --to=chris@chris-wilson.co.uk \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=stable@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.