diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2021-01-23 00:26:44 +0100 |
---|---|---|
committer | Manasi Navare <manasi.d.navare@intel.com> | 2021-01-26 00:23:18 +0100 |
commit | 4ef619a7dff8940fe622ef1d3cac8e1946a75e92 (patch) | |
tree | 9d9d7cec7d9466e21ee14a5993aa15ebbb06900d /drivers/gpu/drm/i915/display/intel_vrr.h | |
parent | drm/i915/display: Add HW state readout for VRR (diff) | |
download | linux-4ef619a7dff8940fe622ef1d3cac8e1946a75e92.tar.xz linux-4ef619a7dff8940fe622ef1d3cac8e1946a75e92.zip |
drm/i915/display: Helpers for VRR vblank min and max start
With VRR the earliest the registers can get latched are at
flipline decision boundary, calculate that as vrr_vmin_vblank_start()
and the latest the regsiters can get latched are vmax decision boundary
calculate that as vrr_vmax_vblank_start()
v2:
* Remove TODO and adjust extra scanline const (Manasi)
Signed-off-by: Manasi Navare <manasi.d.navare@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210122232647.22688-15-manasi.d.navare@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_vrr.h')
-rw-r--r-- | drivers/gpu/drm/i915/display/intel_vrr.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_vrr.h b/drivers/gpu/drm/i915/display/intel_vrr.h index 8a2fe9ceba46..fac01bf4ab50 100644 --- a/drivers/gpu/drm/i915/display/intel_vrr.h +++ b/drivers/gpu/drm/i915/display/intel_vrr.h @@ -27,5 +27,7 @@ void intel_vrr_send_push(const struct intel_crtc_state *crtc_state); void intel_vrr_disable(const struct intel_crtc_state *old_crtc_state); void intel_vrr_get_config(struct intel_crtc *crtc, struct intel_crtc_state *crtc_state); +int intel_vrr_vmax_vblank_start(const struct intel_crtc_state *crtc_state); +int intel_vrr_vmin_vblank_start(const struct intel_crtc_state *crtc_state); #endif /* __INTEL_VRR_H__ */ |