drm/dp: Store coasting vtotal in struct drm_dp_as_sdp
authorAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Tue, 28 Apr 2026 07:44:54 +0000 (13:14 +0530)
committerSuraj Kandpal <suraj.kandpal@intel.com>
Mon, 11 May 2026 08:58:46 +0000 (14:28 +0530)
Add new field in struct drm_dp_as_sdp to store coasting vtotal.
This is used by the sinks that support Panel Replay and Asynchronous
timing during PR Active to derive refresh rate, when AS SDP transmission
is stopped by the source.

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Link: https://patch.msgid.link/20260428074457.3566918-7-ankit.k.nautiyal@intel.com
drivers/gpu/drm/display/drm_dp_helper.c
include/drm/display/drm_dp_helper.h

index 8028da1..ccb77b0 100644 (file)
@@ -3512,6 +3512,7 @@ void drm_dp_as_sdp_log(struct drm_printer *p, const struct drm_dp_as_sdp *as_sdp
        drm_printf(p, "    duration increase ms: %d\n", as_sdp->duration_incr_ms);
        drm_printf(p, "    duration decrease ms: %d\n", as_sdp->duration_decr_ms);
        drm_printf(p, "    operation mode: %d\n", as_sdp->mode);
+       drm_printf(p, "    coasting vtotal: %d\n", as_sdp->coasting_vtotal);
 }
 EXPORT_SYMBOL(drm_dp_as_sdp_log);
 
index 1d0acd5..8c2d77a 100644 (file)
@@ -126,6 +126,7 @@ struct drm_dp_as_sdp {
        int duration_decr_ms;
        bool target_rr_divider;
        enum operation_mode mode;
+       int coasting_vtotal;
 };
 
 void drm_dp_as_sdp_log(struct drm_printer *p,