From mboxrd@z Thu Jan 1 00:00:00 1970 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 DC468EA4FBE for ; Mon, 23 Feb 2026 13:30:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9B0A510E3A8; Mon, 23 Feb 2026 13:30:05 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="GavcaTbj"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0638210E3A6; Mon, 23 Feb 2026 13:30:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1771853404; x=1803389404; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ISgBmKYvPcFaEiuc7pAW0ah8Gp2xY71Ezy3GhG5pHb4=; b=GavcaTbjMoel7QyUGRmpBVGE958AL0+nuP9DpbjDlzD1c5ryq7rV556P XHVmWCVZ2xMDtbaLGab7OzSPZuAhX2jhhkxxNi4lLA1BQcQEjzM8IsFwP 0MIA46xXc4LxpIjnL5/8HSFKxkGRAZNXWxlgRrpa98kGv4lWcmuulC8JH be+hSRc2atl7NsSOQWBc+jIqZMjgnx6J7USeJCh5yTJJ5gh+lCztm7gOk t/1GVyFVjK2WBqVNqyewgIdN6R1dQQU2nkOpaIGCyfJBFdzjUs408h5yG DqbtDYs2u2f+MQUz5ZWIC0z7OBUf6OiMmNKM15SP7/ysBMG8FLoKioH5E A==; X-CSE-ConnectionGUID: L6xOQFzDRJmwntjL+IbgQA== X-CSE-MsgGUID: FQVu1G4eSa6bzBoARCwN4A== X-IronPort-AV: E=McAfee;i="6800,10657,11709"; a="72724151" X-IronPort-AV: E=Sophos;i="6.21,306,1763452800"; d="scan'208";a="72724151" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Feb 2026 05:30:03 -0800 X-CSE-ConnectionGUID: Zo3YY5S0QmG9I+e2N1sg3Q== X-CSE-MsgGUID: mNqLE/p1QduIqDwiWB7Ucg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,306,1763452800"; d="scan'208";a="215580249" Received: from srr4-3-linux-103-aknautiy.iind.intel.com ([10.223.34.160]) by orviesa008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Feb 2026 05:30:01 -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 03/14] drm/i915/dp: Add a helper to decide if AS SDP is needed Date: Mon, 23 Feb 2026 18:44:15 +0530 Message-ID: <20260223131426.1638946-4-ankit.k.nautiyal@intel.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20260223131426.1638946-1-ankit.k.nautiyal@intel.com> References: <20251111093007.3771409-3-ankit.k.nautiyal@intel.com> <20260223131426.1638946-1-ankit.k.nautiyal@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" Add a helper to check if AS SDP is needed. Currently AS SDP is only required when VRR is enabled. However, there are other use cases, along with the missing case of CMRR, dealt in subsequent changes. Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_dp.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c index b999d8c085c7..65764ab0bb9b 100644 --- a/drivers/gpu/drm/i915/display/intel_dp.c +++ b/drivers/gpu/drm/i915/display/intel_dp.c @@ -3111,6 +3111,12 @@ static void intel_dp_compute_vsc_colorimetry(const struct intel_crtc_state *crtc vsc->content_type = DP_CONTENT_TYPE_NOT_DEFINED; } +static bool intel_dp_needs_as_sdp(struct intel_dp *intel_dp, + struct intel_crtc_state *crtc_state) +{ + return crtc_state->vrr.enable; +} + static void intel_dp_compute_as_sdp(struct intel_dp *intel_dp, struct intel_crtc_state *crtc_state) { @@ -3118,7 +3124,10 @@ static void intel_dp_compute_as_sdp(struct intel_dp *intel_dp, const struct drm_display_mode *adjusted_mode = &crtc_state->hw.adjusted_mode; - if (!crtc_state->vrr.enable || !intel_dp->as_sdp_supported) + if (!intel_dp->as_sdp_supported) + return; + + if (!intel_dp_needs_as_sdp(intel_dp, crtc_state)) return; crtc_state->infoframes.enable |= intel_hdmi_infoframe_enable(DP_SDP_ADAPTIVE_SYNC); -- 2.45.2