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 C0053EA4FC0 for ; Mon, 23 Feb 2026 13:30:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5B5F310E3B1; Mon, 23 Feb 2026 13:30:18 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="c3FehGa8"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) by gabe.freedesktop.org (Postfix) with ESMTPS id 267C610E3B1; Mon, 23 Feb 2026 13:30:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1771853418; x=1803389418; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=+ZCisIoRDwyhylzqDMrbHHCN9fNBs5sJ7toNcoqtL+w=; b=c3FehGa88D7KMqY8X/7UNqsn4XrWghxkMnK2CRFxRmPLAL0W23OXDwXJ fOXLYuHTesXYOtJpsW/qK5t+LDoawVXrozV9DHYEhBXWu2Ych8/3YEuHf uBOhAXFAxMQwuiDleTUGUu00V/nyF8o4lPODaiRSI5L1KzA+wSipfra4k JtknWCXo1jSBaBoQFcu8nQ9AWttdSStzbV1oXbYwcS7QkgFlWWLxeBSDZ 1tPRa8iM+5g8mhJTt78Pr0ioctRF8z/LD8Q+ZaYEOCVpWA9BUp6YrMCvb R3T6vjIEwnrfq1aX8ZYV99hf6w7PKJc9raQFakeUm5dRNdBql63I77ymw Q==; X-CSE-ConnectionGUID: WXRqNkerR9uAbUk3zXRwpQ== X-CSE-MsgGUID: 8TzpwfErTdyS257eTIstUg== X-IronPort-AV: E=McAfee;i="6800,10657,11709"; a="72724193" X-IronPort-AV: E=Sophos;i="6.21,306,1763452800"; d="scan'208";a="72724193" 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:18 -0800 X-CSE-ConnectionGUID: Lr5XjWgEQGCxhcvYwET7Aw== X-CSE-MsgGUID: nEb+UxcBRM+sRC7wDsy8tA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,306,1763452800"; d="scan'208";a="215580458" 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:16 -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 09/14] drm/i915/psr: Add helper to check if PR is with link OFF Date: Mon, 23 Feb 2026 18:44:21 +0530 Message-ID: <20260223131426.1638946-10-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-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" Introduce a helper intel_psr_is_pr_with_link_off() to check if the Panel Replay feature needs to be enabled with link off. Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_psr.c | 6 ++++++ drivers/gpu/drm/i915/display/intel_psr.h | 1 + 2 files changed, 7 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c index 5bea2eda744b..e0e6ddbfaa2d 100644 --- a/drivers/gpu/drm/i915/display/intel_psr.c +++ b/drivers/gpu/drm/i915/display/intel_psr.c @@ -4575,3 +4575,9 @@ bool intel_psr_use_trans_push(const struct intel_crtc_state *crtc_state) return HAS_PSR_TRANS_PUSH_FRAME_CHANGE(display) && crtc_state->has_psr; } + +bool intel_psr_is_pr_with_link_off(const struct intel_crtc_state *crtc_state) +{ + return crtc_state->has_panel_replay && + crtc_state->link_off_after_as_sdp_when_pr_active; +} diff --git a/drivers/gpu/drm/i915/display/intel_psr.h b/drivers/gpu/drm/i915/display/intel_psr.h index 394b641840b3..6764bcb13f9b 100644 --- a/drivers/gpu/drm/i915/display/intel_psr.h +++ b/drivers/gpu/drm/i915/display/intel_psr.h @@ -86,5 +86,6 @@ void intel_psr_compute_config_late(struct intel_dp *intel_dp, struct intel_crtc_state *crtc_state); int intel_psr_min_guardband(struct intel_crtc_state *crtc_state); bool intel_psr_use_trans_push(const struct intel_crtc_state *crtc_state); +bool intel_psr_is_pr_with_link_off(const struct intel_crtc_state *crtc_state); #endif /* __INTEL_PSR_H__ */ -- 2.45.2