From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Jani Nikula <jani.nikula@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: Fix crtc_y assignment in intel_find_initial_plane_obj()
Date: Fri, 13 Nov 2015 19:44:00 +0200 [thread overview]
Message-ID: <20151113174400.GC4437@intel.com> (raw)
In-Reply-To: <87a8qhiyyf.fsf@intel.com>
On Fri, Nov 13, 2015 at 07:36:08PM +0200, Jani Nikula wrote:
> On Fri, 13 Nov 2015, ville.syrjala@linux.intel.com wrote:
> > From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> >
> > Let's set crtc_y to 0 instead of setting src_y twice.
> >
> > Multiple assignments in one statement is a good way to hide bugs.
> > Please don't do that.
> >
> > Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> > Fixes: be5651f2d581 ("drm/i915: Update missing properties in find_initial_plane_obj")
>
> Cc: stable@vger.kernel.org # v4.3+
>
> right?
I think the state is kzalloc()ed, so there's probably no real bug here.
Should have mentioned that in the commit message I suppose.
>
>
> > Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> > ---
> > drivers/gpu/drm/i915/intel_display.c | 6 ++++--
> > 1 file changed, 4 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> > index d7c8a0f..e3db46d 100644
> > --- a/drivers/gpu/drm/i915/intel_display.c
> > +++ b/drivers/gpu/drm/i915/intel_display.c
> > @@ -2640,11 +2640,13 @@ intel_find_initial_plane_obj(struct intel_crtc *intel_crtc,
> > return;
> >
> > valid_fb:
> > - plane_state->src_x = plane_state->src_y = 0;
> > + plane_state->src_x = 0;
> > + plane_state->src_y = 0;
> > plane_state->src_w = fb->width << 16;
> > plane_state->src_h = fb->height << 16;
> >
> > - plane_state->crtc_x = plane_state->src_y = 0;
> > + plane_state->crtc_x = 0;
> > + plane_state->crtc_y = 0;
> > plane_state->crtc_w = fb->width;
> > plane_state->crtc_h = fb->height;
>
> --
> Jani Nikula, Intel Open Source Technology Center
--
Ville Syrjälä
Intel OTC
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2015-11-13 17:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-13 17:16 [PATCH] drm/i915: Fix crtc_y assignment in intel_find_initial_plane_obj() ville.syrjala
2015-11-13 17:36 ` Jani Nikula
2015-11-13 17:44 ` Ville Syrjälä [this message]
2015-11-16 12:15 ` Maarten Lankhorst
2015-11-16 12:46 ` Jani Nikula
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=20151113174400.GC4437@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@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 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.