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 <[email protected]>

> 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 <[email protected]>

[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/[email protected]?part=1

Reply via email to