From: Jani Nikula <jani.nikula@linux.intel.com>
To: Intel Graphics Development <intel-gfx@lists.freedesktop.org>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>,
Daniel Vetter <daniel.vetter@intel.com>
Subject: Re: [PATCH 1/2] drm/i915: Simplify the pfit check in the fastboot hack
Date: Mon, 03 Nov 2014 15:49:32 +0200 [thread overview]
Message-ID: <87oasogzrn.fsf@intel.com> (raw)
In-Reply-To: <1415022024-27863-1-git-send-email-daniel.vetter@ffwll.ch>
On Mon, 03 Nov 2014, Daniel Vetter <daniel.vetter@ffwll.ch> wrote:
> Checking for lvds/edp is wrong (since we also support dsi panels now)
> and not terribly useless. If we want to be more intelligent about all
"wrong ... and not terribly useless"? useful?
BR,
Jani.
> this then we need to look at the old state to figure out whether the
> pfit adjustment is needed. This goes all the way back to the original
> fastboot pfit patch:
>
> commit 4d6a3e63bce0cb604864e36585ca8983160a421a
> Author: Jesse Barnes <jbarnes@virtuousgeek.org>
> Date: Wed Jun 26 01:38:18 2013 +0300
>
> drm/i915: turn off panel fitting at flip time if needed v2
>
> Spotted while reviewing Ander's patch which changed a lot of the
> pipe_has_type checks.
>
> Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
> ---
> drivers/gpu/drm/i915/intel_ddi.c | 5 ++---
> drivers/gpu/drm/i915/intel_display.c | 4 +---
> 2 files changed, 3 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c
> index e620a63a1dfe..d41768846f18 100644
> --- a/drivers/gpu/drm/i915/intel_ddi.c
> +++ b/drivers/gpu/drm/i915/intel_ddi.c
> @@ -473,9 +473,8 @@ intel_ddi_get_crtc_new_encoder(struct intel_crtc *crtc)
> }
> }
>
> - if (num_encoders != 1)
> - WARN(1, "%d encoders on crtc for pipe %c\n", num_encoders,
> - pipe_name(crtc->pipe));
> + WARN(num_encoders != 1, "%d encoders on crtc for pipe %c\n", num_encoders,
> + pipe_name(crtc->pipe));
>
> BUG_ON(ret == NULL);
> return ret;
> diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> index 6bd290d902df..5eb12ed11df5 100644
> --- a/drivers/gpu/drm/i915/intel_display.c
> +++ b/drivers/gpu/drm/i915/intel_display.c
> @@ -2877,9 +2877,7 @@ static void intel_update_pipe_size(struct intel_crtc *crtc)
> I915_WRITE(PIPESRC(crtc->pipe),
> ((adjusted_mode->crtc_hdisplay - 1) << 16) |
> (adjusted_mode->crtc_vdisplay - 1));
> - if (!crtc->config.pch_pfit.enabled &&
> - (intel_pipe_has_type(crtc, INTEL_OUTPUT_LVDS) ||
> - intel_pipe_has_type(crtc, INTEL_OUTPUT_EDP))) {
> + if (!crtc->config.pch_pfit.enabled) {
> I915_WRITE(PF_CTL(crtc->pipe), 0);
> I915_WRITE(PF_WIN_POS(crtc->pipe), 0);
> I915_WRITE(PF_WIN_SZ(crtc->pipe), 0);
> --
> 2.1.1
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2014-11-03 13:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-03 13:40 [PATCH 1/2] drm/i915: Simplify the pfit check in the fastboot hack Daniel Vetter
2014-11-03 13:40 ` [PATCH 2/2] drm/i915: Check pipe_config.has_dp_encoder instead of encoder types Daniel Vetter
2014-11-04 9:35 ` Ander Conselvan de Oliveira
2014-11-04 10:26 ` [PATCH] " Daniel Vetter
2014-11-03 13:49 ` Jani Nikula [this message]
2014-11-03 14:45 ` [PATCH 1/2] drm/i915: Simplify the pfit check in the fastboot hack Daniel Vetter
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=87oasogzrn.fsf@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=daniel.vetter@ffwll.ch \
--cc=daniel.vetter@intel.com \
--cc=intel-gfx@lists.freedesktop.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox