drm/i915/vrr: Tell intel_crtc_update_active_timings() about VRR explicitly
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 20 Mar 2023 20:33:50 +0000 (22:33 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 12 Apr 2023 14:30:30 +0000 (17:30 +0300)
commitecaeecea9263496ecbb287aac6545e8b3cd9257d
tree4efe1531ccfc591d2e120a160ab5fb1c03635710
parentfa9e4fce52ec4ee45ddfc6747ecb2bc8856c4753
drm/i915/vrr: Tell intel_crtc_update_active_timings() about VRR explicitly

In order to move VRR enable/disable to a place where it's also
applicable to fastsets we need to be prepared to configure
the pipe into non-VRR mode initially, and then later switch
to VRR mode. To that end allow the active timings to be configured
in non-VRR mode temporarily even when the crtc_state says we're
going to be using VRR.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230320203352.19515-5-ville.syrjala@linux.intel.com
Reviewed-by: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com>
drivers/gpu/drm/i915/display/intel_crtc.c
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/display/intel_modeset_setup.c
drivers/gpu/drm/i915/display/intel_vblank.c
drivers/gpu/drm/i915/display/intel_vblank.h