From: Ankit Nautiyal Date: Tue, 28 Apr 2026 07:44:54 +0000 (+0530) Subject: drm/dp: Store coasting vtotal in struct drm_dp_as_sdp X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=e878adca8477b4f6d51dee257c2ef3d2ad0086a5;p=thirdparty%2Fkernel%2Flinux.git drm/dp: Store coasting vtotal in struct drm_dp_as_sdp 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 Reviewed-by: Ville Syrjälä Signed-off-by: Suraj Kandpal Link: https://patch.msgid.link/20260428074457.3566918-7-ankit.k.nautiyal@intel.com --- diff --git a/drivers/gpu/drm/display/drm_dp_helper.c b/drivers/gpu/drm/display/drm_dp_helper.c index 8028da12038c..ccb77b0744d8 100644 --- a/drivers/gpu/drm/display/drm_dp_helper.c +++ b/drivers/gpu/drm/display/drm_dp_helper.c @@ -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); diff --git a/include/drm/display/drm_dp_helper.h b/include/drm/display/drm_dp_helper.h index 1d0acd58f486..8c2d77a032f0 100644 --- a/include/drm/display/drm_dp_helper.h +++ b/include/drm/display/drm_dp_helper.h @@ -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,