Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/i915/display: Prepare for vblank_delay for LRR

Update allow_vblank_delay_fastset() to permit vblank delay adjustments
during with LRR when VRR TG is always active.

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://lore.kernel.org/r/20251016055415.2101347-11-ankit.k.nautiyal@intel.com

+8 -2
+8 -2
drivers/gpu/drm/i915/display/intel_display.c
··· 4958 4958 * Allow fastboot to fix up vblank delay (handled via LRR 4959 4959 * codepaths), a bit dodgy as the registers aren't 4960 4960 * double buffered but seems to be working more or less... 4961 + * 4962 + * Also allow this when the VRR timing generator is always on, 4963 + * and optimized guardband is used. In such cases, 4964 + * vblank delay may vary even without inherited state, but it's 4965 + * still safe as VRR guardband is still same. 4961 4966 */ 4962 - return HAS_LRR(display) && old_crtc_state->inherited && 4963 - !intel_crtc_has_type(old_crtc_state, INTEL_OUTPUT_DSI); 4967 + return HAS_LRR(display) && 4968 + (old_crtc_state->inherited || intel_vrr_always_use_vrr_tg(display)) && 4969 + !intel_crtc_has_type(old_crtc_state, INTEL_OUTPUT_DSI); 4964 4970 } 4965 4971 4966 4972 bool