summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/allocator
diff options
context:
space:
mode:
authorMatthew Schwartz <matthew.schwartz@linux.dev>2026-10-19 19:51:57 -0700
committerAlex Deucher <alexander.deucher@amd.com>2026-11-04 12:35:49 -0500
commitf2853a06e4b923c77a8cba69d76d2222b198256b (patch)
tree22a942886d3db02475143882c969a01070326745 /rust/kernel/alloc/allocator
parentbba4dc3306483335ddbe065c05b2d8359ec387a4 (diff)
drm/amd/display: Keep the nominal vtotal while VRR is inactive
Commit 33c995709121 ("drm/amd/display: Allow VRR params change if unsynced with the stream") derives the inactive vtotal from max_refresh_in_uhz and rounds it up. The round trip through integer rates can add a line even with VRR off. The ASUS ROG Xbox Ally X20's 120.0004 Hz mode exceeds its 120 Hz EDID maximum, so 1152 lines become 1153 and the CRTC vblank counter measures 119.89 Hz. Take both limits from stream->timing.v_total, as mod_freesync_build_vrr_params() does, which keeps the resync to the stream's timing. Active VRR keeps the helper's rounding. Fixes: 33c995709121 ("drm/amd/display: Allow VRR params change if unsynced with the stream") Signed-off-by: Matthew Schwartz <matthew.schwartz@linux.dev> Reviewed-by: Ivan Lipski <ivan.lipski@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit 428c95d380f07694cbbd9ebe3450214404f57b5a) Cc: stable@vger.kernel.org
Diffstat (limited to 'rust/kernel/alloc/allocator')
0 files changed, 0 insertions, 0 deletions