All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Matthew Schwartz" <matthew.schwartz@linux.dev>,
	amd-gfx@lists.freedesktop.org
Subject: Re: [PATCH 1/2] drm/amd/display: Rebuild the VRR vtotal limits on a modeset
Date: Thu, 26 Nov 2026 08:26:14 +0000	[thread overview]
Message-ID: <sashiko-outbox-235009@kernel.org> (raw)
In-Reply-To: <20261126053606.12286-2-matthew.schwartz@linux.dev>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] drm/amd/display: missing Fixes trailer for VRR vtotal limits
  modeset bug
--

commit 3bbede195cddea78c60d37613de49a067d814537
Author: Matthew Schwartz <matthew.schwartz@linux.dev>

> drm/amd/display: Rebuild the VRR vtotal limits on a modeset
>
> mod_freesync_build_vrr_params() returns early when the VRR state, the
> calculated refresh limits and the fixed refresh target are unchanged,
> so a modeset between two modes with the same refresh rate keeps the old
> mode's v_total_min/max while VRR stays active. With BTR enabled they
> are recalculated on the next flip or the vupdate after it. Without BTR
> they stay until six flips come in below the refresh range. Going from
> 1080p60 to 4K60 on a 40-60 Hz sink, where BTR is off, leaves limits of
> 1125 and 1687 lines on a 2250-line timing, and they are programmed into
> the OTG on every vupdate.
>
> Commit 33c995709121 ("drm/amd/display: Allow VRR params change if
> unsynced with the stream") resynced the limits for the inactive state
> only. Clear the saved VRR params on a modeset so they are always
> rebuilt from the new stream.
>
> Signed-off-by: Matthew Schwartz <matthew.schwartz@linux.dev>

[Severity: Low]
585d450c76d1 ("drm/amd/display: Refactor to prevent crtc state access in
DM IRQ handler") moved vrr_params from dm_crtc_state to
acrtc->dm_irq_params and dropped the memset() that reset_freesync_config_for_crtc()
performed on a modeset.  Should this include a Fixes tag:

  Fixes: 585d450c76d1 ("drm/amd/display: Refactor to prevent crtc state access in DM IRQ handler")

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261126053606.12286-1-matthew.schwartz@linux.dev?part=1

  reply	other threads:[~2026-11-26  8:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26  5:36 [PATCH 0/2] drm/amd/display: Rebuild the VRR vtotal limits on a modeset Matthew Schwartz
2026-11-26  5:36 ` [PATCH 1/2] " Matthew Schwartz
2026-11-26  8:26   ` sashiko-bot [this message]
2026-11-26  5:36 ` [PATCH 2/2] drm/amd/display: Test VRR vtotal limits across " Matthew Schwartz

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=sashiko-outbox-235009@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=matthew.schwartz@linux.dev \
    --cc=sashiko-reviews@lists.linux.dev \
    /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.