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 4E446CD5BCF for ; Mon, 25 May 2026 05:40:57 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C3CBD10E3F1; Mon, 25 May 2026 05:40:56 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="L0WTh5kU"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) by gabe.freedesktop.org (Postfix) with ESMTPS id 206A210E3E9; Mon, 25 May 2026 05:40:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1779687654; x=1811223654; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=MXE+/2vWqPN1E/7O8AMFVpCIDfNZPUvJUoIymY1Ipps=; b=L0WTh5kURTjrhfCkMswLWxkoT0+JpBziMYr9D6rNx3OoTYOGMQt7n15/ q2NGYxiTzj+sZxWEeowIUsEEgOuR6App+m304Hp8L07TjWgM/SZvHZjfC VEK17ywll4W1Xd6m8fXr4ZARFqOBO3TjFZVNRVIDtqJ1HZH2AI3oKSsEo Q5EW0bKxP4vcn+OfMmeoqTNIw3SjSKb1liCyl3Kvcj+2NJPTDawZ/31a4 f9gqWv04Flco/eA0t4LtNtWQvw0DdPSvBKPcFKCskE3Ww4h7XaOp8kY+Z IwAG6Da65yI49w7J+wYRgShpy5zVOVG4BI6bG6YZYRhcFRB0wZEnotoEg Q==; X-CSE-ConnectionGUID: bi3e2/1BS8KPReji+P6tZA== X-CSE-MsgGUID: 4cpUVqu8SweIDPDpuqCLXQ== X-IronPort-AV: E=McAfee;i="6800,10657,11796"; a="68030812" X-IronPort-AV: E=Sophos;i="6.24,167,1774335600"; d="scan'208";a="68030812" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 May 2026 22:40:54 -0700 X-CSE-ConnectionGUID: +X53EF8wTp6dpNnxRmMO5g== X-CSE-MsgGUID: cCOI54KlToi5sUBRT8CrKQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.24,167,1774335600"; d="scan'208";a="237306588" Received: from srr4-3-linux-103-aknautiy.iind.intel.com ([10.223.34.160]) by fmviesa010-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 May 2026 22:40:52 -0700 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/11] drm/i915/dp: Account for AS_SDP guardband only when enabled Date: Mon, 25 May 2026 10:52:35 +0530 Message-ID: <20260525052235.560741-12-ankit.k.nautiyal@intel.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20260525052235.560741-1-ankit.k.nautiyal@intel.com> References: <20260525052235.560741-1-ankit.k.nautiyal@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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" Currently the intel_dp_sdp_min_guardband() accounts for AS_SDP for all platforms that support adaptive sync SDP even for configurations where it cannot be enabled. Instead account for adaptive sync SDP guardband only when it is enabled. Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_dp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c index c01ce3403ad1..8694633693d6 100644 --- a/drivers/gpu/drm/i915/display/intel_dp.c +++ b/drivers/gpu/drm/i915/display/intel_dp.c @@ -7535,7 +7535,6 @@ int intel_dp_get_lines_for_sdp(const struct intel_crtc_state *crtc_state, u32 ty int intel_dp_sdp_min_guardband(const struct intel_crtc_state *crtc_state, bool assume_all_enabled) { - struct intel_display *display = to_intel_display(crtc_state); int sdp_guardband = 0; if (assume_all_enabled || @@ -7550,8 +7549,8 @@ int intel_dp_sdp_min_guardband(const struct intel_crtc_state *crtc_state, sdp_guardband = max(sdp_guardband, intel_dp_get_lines_for_sdp(crtc_state, DP_SDP_PPS)); - if ((assume_all_enabled && HAS_AS_SDP(display)) || - crtc_state->infoframes.enable & intel_hdmi_infoframe_enable(DP_SDP_ADAPTIVE_SYNC)) + if (crtc_state->infoframes.enable & + intel_hdmi_infoframe_enable(DP_SDP_ADAPTIVE_SYNC)) sdp_guardband = max(sdp_guardband, intel_dp_get_lines_for_sdp(crtc_state, DP_SDP_ADAPTIVE_SYNC)); -- 2.45.2