Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: Wakko Warner <wakko@animx.eu.org>
To: Thomas Zimmermann <tzimmermann@suse.de>
Cc: airlied@redhat.com, jfalempe@redhat.com,
	dri-devel@lists.freedesktop.org,
	???????????? <afmerlord@gmail.com>,
	stable@vger.kernel.org
Subject: Re: [PATCH] drm/mgag200: Fix value in <VBLKSTR> register
Date: Wed, 16 Apr 2025 12:56:27 -0400	[thread overview]
Message-ID: <Z//hO7ol4nED5UiH@animx.eu.org> (raw)
In-Reply-To: <568a359c-e096-4486-84b3-95b37b2de7a6@suse.de>

Thomas Zimmermann wrote:
> Hi
> 
> Am 16.04.25 um 17:22 schrieb Wakko Warner:
> > Thomas Zimmermann wrote:
> > > Fix an off-by-one error when setting the vblanking start in
> > > <VBLKSTR>. Commit d6460bd52c27 ("drm/mgag200: Add dedicated
> > > variables for blanking fields") switched the value from
> > > crtc_vdisplay to crtc_vblank_start, which DRM helpers copy
> > > from the former. The commit missed to subtract one though.
> > Applied to 6.14.2.  BMC and external monitor works as expected.
> 
> Great. Thanks for testing. Can I add your Tested-by tag to the commit?

You may.

> > > Reported-by: Wakko Warner <wakko@animx.eu.org>
> > > Closes: https://lore.kernel.org/dri-devel/CAMwc25rKPKooaSp85zDq2eh-9q4UPZD=RqSDBRp1fAagDnmRmA@mail.gmail.com/
> > > Reported-by: ???????????? <afmerlord@gmail.com>
> > > Closes: https://lore.kernel.org/all/5b193b75-40b1-4342-a16a-ae9fc62f245a@gmail.com/
> > > Closes: https://bbs.archlinux.org/viewtopic.php?id=303819
> > > Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
> > > Fixes: d6460bd52c27 ("drm/mgag200: Add dedicated variables for blanking fields")
> > > Cc: Thomas Zimmermann <tzimmermann@suse.de>
> > > Cc: Jocelyn Falempe <jfalempe@redhat.com>
> > > Cc: Dave Airlie <airlied@redhat.com>
> > > Cc: dri-devel@lists.freedesktop.org
> > > Cc: <stable@vger.kernel.org> # v6.12+
> > > ---
> > >   drivers/gpu/drm/mgag200/mgag200_mode.c | 2 +-
> > >   1 file changed, 1 insertion(+), 1 deletion(-)
> > > 
> > > diff --git a/drivers/gpu/drm/mgag200/mgag200_mode.c b/drivers/gpu/drm/mgag200/mgag200_mode.c
> > > index fb71658c3117..6067d08aeee3 100644
> > > --- a/drivers/gpu/drm/mgag200/mgag200_mode.c
> > > +++ b/drivers/gpu/drm/mgag200/mgag200_mode.c
> > > @@ -223,7 +223,7 @@ void mgag200_set_mode_regs(struct mga_device *mdev, const struct drm_display_mod
> > >   	vsyncstr = mode->crtc_vsync_start - 1;
> > >   	vsyncend = mode->crtc_vsync_end - 1;
> > >   	vtotal = mode->crtc_vtotal - 2;
> > > -	vblkstr = mode->crtc_vblank_start;
> > > +	vblkstr = mode->crtc_vblank_start - 1;
> > >   	vblkend = vtotal + 1;
> > >   	linecomp = vdispend;
> > > -- 
> > > 2.49.0
> > > 
> 
> -- 
> --
> Thomas Zimmermann
> Graphics Driver Developer
> SUSE Software Solutions Germany GmbH
> Frankenstrasse 146, 90461 Nuernberg, Germany
> GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman
> HRB 36809 (AG Nuernberg)
> 
-- 
 Microsoft has beaten Volkswagen's world record.  Volkswagen only created 22
 million bugs.

  reply	other threads:[~2025-04-16 16:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-16  8:38 [PATCH] drm/mgag200: Fix value in <VBLKSTR> register Thomas Zimmermann
2025-04-16  9:36 ` Jocelyn Falempe
2025-04-16 15:22 ` Wakko Warner
2025-04-16 16:43   ` Thomas Zimmermann
2025-04-16 16:56     ` Wakko Warner [this message]
2025-04-17  6:19     ` Сергей

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=Z//hO7ol4nED5UiH@animx.eu.org \
    --to=wakko@animx.eu.org \
    --cc=afmerlord@gmail.com \
    --cc=airlied@redhat.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jfalempe@redhat.com \
    --cc=stable@vger.kernel.org \
    --cc=tzimmermann@suse.de \
    /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