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 EDA1ED7876A for ; Fri, 19 Dec 2025 13:06:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8520210EF8E; Fri, 19 Dec 2025 13:06:02 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="KnpLlELc"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) by gabe.freedesktop.org (Postfix) with ESMTPS id 938FB10EF8E; Fri, 19 Dec 2025 13:06:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1766149562; x=1797685562; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=5bb/fiRUcooeY7NSCXBOSBSChJPfINy7psr71d3fVdY=; b=KnpLlELcWEJT51nhg8sojmURzCz6VH8a03U83pwvQMVa6bL1c05x9C2e TaHU67ARFdkWEi5mloGw+bv5NFiDkc4mMDOUrK1lKfp9yznnDAs2RTUPM 7h7NCepPmyOUNcow2MZXOCHKRgtO0VAp/6IQprNNeZXwK/u8G5ZP8RKUK Lq1DZyoMwybGhgIoW95RXmi1FGR6MxRbuLN0sUBD1L6mXoSahsY0cG+WW nB5s0X+DFMGXI2fHc3ZWN/LZdfeVlaYebKqmfG19mFVqz13aaTm3TdsS7 z3/edagG34TId1mexQHhLg0IlcatryFd9k2l+8mO6XyHT2cJQE3jRdVJK A==; X-CSE-ConnectionGUID: TRdUAikLQVOs/aqXLGP5uQ== X-CSE-MsgGUID: lrEP1Dj0TQOAxNGXPUd4/g== X-IronPort-AV: E=McAfee;i="6800,10657,11646"; a="68086565" X-IronPort-AV: E=Sophos;i="6.21,161,1763452800"; d="scan'208";a="68086565" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Dec 2025 05:06:02 -0800 X-CSE-ConnectionGUID: OZ0dYvbGTM60v24nbGAGaQ== X-CSE-MsgGUID: 62BdjDGGQXaKedQoSGprOA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,161,1763452800"; d="scan'208";a="199337696" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO jhogande-mobl3.intel.com) ([10.245.246.49]) by fmviesa009-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Dec 2025 05:06:00 -0800 From: =?UTF-8?q?Jouni=20H=C3=B6gander?= To: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org Cc: =?UTF-8?q?Jouni=20H=C3=B6gander?= Subject: [PATCH v8 2/7] drm/i915/psr: Add intel_psr_use_trans_push to query if TRANS_PUSH is used Date: Fri, 19 Dec 2025 15:05:32 +0200 Message-ID: <20251219130537.3024373-3-jouni.hogander@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251219130537.3024373-1-jouni.hogander@intel.com> References: <20251219130537.3024373-1-jouni.hogander@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo 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" This is a preparation to start using trans push as a PSR "Frame Change" event. It adds intel_psr_use_trans_push placeholder which return false for now until we have everything in place. v2: - modify commit message - add TODO Signed-off-by: Jouni Högander --- 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 91f4ac86c7ad..170d65999ccd 100644 --- a/drivers/gpu/drm/i915/display/intel_psr.c +++ b/drivers/gpu/drm/i915/display/intel_psr.c @@ -4557,3 +4557,9 @@ int intel_psr_min_guardband(struct intel_crtc_state *crtc_state) return psr_min_guardband; } + +bool intel_psr_use_trans_push(const struct intel_crtc_state *crtc_state) +{ + /* TODO: Enable using trans push when everything is in place */ + return false; +} diff --git a/drivers/gpu/drm/i915/display/intel_psr.h b/drivers/gpu/drm/i915/display/intel_psr.h index b41dc4d44ff2..394b641840b3 100644 --- a/drivers/gpu/drm/i915/display/intel_psr.h +++ b/drivers/gpu/drm/i915/display/intel_psr.h @@ -85,5 +85,6 @@ bool intel_psr_needs_alpm_aux_less(struct intel_dp *intel_dp, 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); #endif /* __INTEL_PSR_H__ */ -- 2.43.0