From: Daniel Vetter <daniel@ffwll.ch>
To: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>,
Intel Graphics Development <intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH 3/3] drm/i915: move border color writes to pfit_enable
Date: Tue, 30 Apr 2013 16:17:13 +0200 [thread overview]
Message-ID: <20130430141712.GF6169@phenom.ffwll.local> (raw)
In-Reply-To: <87d2tc5dlm.fsf@gaia.fi.intel.com>
On Tue, Apr 30, 2013 at 04:53:41PM +0300, Mika Kuoppala wrote:
> Daniel Vetter <daniel.vetter@ffwll.ch> writes:
>
> Patches 1,2 and 3:
>
> Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
All merged to dinq, thanks for the review.
-Daniel
>
> > Writing hw registers from compute_config?
> > Just say no!
> >
> > In this case not too horrible since we write a constant 0, and only
> > debugging would put something else in there. But while checking that
> > code I've noticed that this register disappeared on pch platforms, so
> > fix that up, too.
> >
> > And adjust the comment a bit, it's outdated.
> >
> > Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
> > ---
> > drivers/gpu/drm/i915/intel_display.c | 4 ++++
> > drivers/gpu/drm/i915/intel_lvds.c | 10 ----------
> > 2 files changed, 4 insertions(+), 10 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> > index 2259cdd..26ff7d6 100644
> > --- a/drivers/gpu/drm/i915/intel_display.c
> > +++ b/drivers/gpu/drm/i915/intel_display.c
> > @@ -3633,6 +3633,10 @@ static void i9xx_pfit_enable(struct intel_crtc *crtc)
> >
> > I915_WRITE(PFIT_PGM_RATIOS, pipe_config->gmch_pfit.pgm_ratios);
> > I915_WRITE(PFIT_CONTROL, pipe_config->gmch_pfit.control);
> > +
> > + /* Border color in case we don't scale up to the full screen. Black by
> > + * default, change to something else for debugging. */
> > + I915_WRITE(BCLRPAT(crtc->pipe), 0);
> > }
> >
> > static void valleyview_crtc_enable(struct drm_crtc *crtc)
> > diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c
> > index 47f47ea..d256fe4 100644
> > --- a/drivers/gpu/drm/i915/intel_lvds.c
> > +++ b/drivers/gpu/drm/i915/intel_lvds.c
> > @@ -231,7 +231,6 @@ static bool intel_lvds_compute_config(struct intel_encoder *intel_encoder,
> > struct drm_display_mode *adjusted_mode = &pipe_config->adjusted_mode;
> > struct intel_crtc *intel_crtc = lvds_encoder->base.new_crtc;
> > unsigned int lvds_bpp;
> > - int pipe;
> >
> > /* Should never happen!! */
> > if (INTEL_INFO(dev)->gen < 4 && intel_crtc->pipe == 0) {
> > @@ -274,15 +273,6 @@ static bool intel_lvds_compute_config(struct intel_encoder *intel_encoder,
> > intel_connector->panel.fitting_mode);
> > }
> >
> > - /*
> > - * Enable automatic panel scaling for non-native modes so that they fill
> > - * the screen. Should be enabled before the pipe is enabled, according
> > - * to register description and PRM.
> > - * Change the value here to see the borders for debugging
> > - */
> > - for_each_pipe(pipe)
> > - I915_WRITE(BCLRPAT(pipe), 0);
> > -
> > drm_mode_set_crtcinfo(adjusted_mode, 0);
> > pipe_config->timings_set = true;
> >
> > --
> > 1.7.11.7
> >
> > _______________________________________________
> > Intel-gfx mailing list
> > Intel-gfx@lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
prev parent reply other threads:[~2013-04-30 14:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-25 20:52 [PATCH 1/3] drm/i915: move lvds_border_bits to pipe_config Daniel Vetter
2013-04-25 20:52 ` [PATCH 2/3] drm/i915: rip out indirection for pfit pipe_config assignment Daniel Vetter
2013-04-25 20:52 ` [PATCH 3/3] drm/i915: move border color writes to pfit_enable Daniel Vetter
2013-04-30 13:53 ` Mika Kuoppala
2013-04-30 14:17 ` Daniel Vetter [this message]
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=20130430141712.GF6169@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=daniel.vetter@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.org \
--cc=mika.kuoppala@linux.intel.com \
/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