Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 89596EA4FC7 for ; Mon, 23 Feb 2026 14:00:27 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 08AD210E3FD; Mon, 23 Feb 2026 14:00:27 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="nMEYf2Rt"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0384610E3FC; Mon, 23 Feb 2026 14:00:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1771855225; x=1803391225; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=eJIbThSOvhhvyr2TVkh1V0NSi+LmS2OiodVKgSJrTws=; b=nMEYf2RtMelPqCGIsv4DoA7udU8fhLuIsOp2FCvrQ+GhNgh4OssE9x/4 gj+sjWS+ZEs/8d2y+scvRlFoG0Lkgw0/Oi7PXhvw2fGQgAEAxaPcLicT/ EAcFXmH86yaSqRjkQPJNeqmDsUwI1rK6Vx7Yqx/7WiAOR2Tfw8HePKTUk QnY+Ne1ReY7UY1I+bqmz4SbDRdhUsU7SOen07HqAlfrUlZ9V3w4XxnUSk QgvRGWzowlMx6FwQOWMuUB85lMd88Iw7vu+r/0iTCJHaAdl7XxgxmAivt LnMpDCZvFxtPvldr8IBE/1rtaxlpjun1SGsht0M/tyIty1Pl0qSB3VIka Q==; X-CSE-ConnectionGUID: N5aOBr99Ru+88nvLbTEW5A== X-CSE-MsgGUID: Rh+QsthmQbG/jz65RIVE0w== X-IronPort-AV: E=McAfee;i="6800,10657,11709"; a="72827065" X-IronPort-AV: E=Sophos;i="6.21,306,1763452800"; d="scan'208";a="72827065" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Feb 2026 06:00:25 -0800 X-CSE-ConnectionGUID: VqXQC3ScTfKKz5gp2yKt9g== X-CSE-MsgGUID: ngXepo3+Qf+JM2DvNVxvHQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,306,1763452800"; d="scan'208";a="212961227" Received: from srr4-3-linux-103-aknautiy.iind.intel.com ([10.223.34.160]) by fmviesa009-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Feb 2026 06:00:22 -0800 From: Ankit Nautiyal To: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org Cc: ville.syrjala@linux.intel.com, jouni.hogander@intel.com, animesh.manna@intel.com, Ankit Nautiyal Subject: [PATCH 11/14] drm/i915/dp: Program AS SDP DB[1:0] for PR with Link off Date: Mon, 23 Feb 2026 19:14:28 +0530 Message-ID: <20260223134431.1639308-12-ankit.k.nautiyal@intel.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20260223134431.1639308-1-ankit.k.nautiyal@intel.com> References: <20260223134431.1639308-1-ankit.k.nautiyal@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" For Panel Replay with AUX-less ALPM (link-off PR), the source must send Adaptive-Sync SDP v2. Program DB[1:0] per DP spec v2.1: - VRR AVT: 00b (variable VTotal) - VRR FAVT: 10b/11b (TRR not reached/reached) - Fixed timing with PR link-off (VRR off): 01b (AS disabled; VTotal fixed) Select SDP version v2 whenever PR link-off or VRR is active, otherwise v1, and program the AS SDP DB[1:0] bits. Also, drop the redundant target_rr assignment. Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_dp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c index 5952db6197cf..ad2aceb526ff 100644 --- a/drivers/gpu/drm/i915/display/intel_dp.c +++ b/drivers/gpu/drm/i915/display/intel_dp.c @@ -3139,7 +3139,7 @@ static void intel_dp_compute_as_sdp(struct intel_dp *intel_dp, as_sdp->duration_incr_ms = 0; as_sdp->version = 0x2; - if (crtc_state->vrr.enable) + if (crtc_state->vrr.enable || intel_psr_is_pr_with_link_off(crtc_state)) as_sdp->version = 0x2; else as_sdp->version = 0x1; @@ -3154,9 +3154,10 @@ static void intel_dp_compute_as_sdp(struct intel_dp *intel_dp, as_sdp->mode = DP_AS_SDP_FAVT_TRR_REACHED; as_sdp->target_rr = drm_mode_vrefresh(adjusted_mode); as_sdp->target_rr_divider = true; - } else { + } else if (crtc_state->vrr.enable) { as_sdp->mode = DP_AS_SDP_AVT_DYNAMIC_VTOTAL; - as_sdp->target_rr = 0; + } else if (intel_psr_is_pr_with_link_off(crtc_state)) { + as_sdp->mode = DP_AS_SDP_AVT_FIXED_VTOTAL; } } -- 2.45.2