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 258D6C54E90 for ; Wed, 21 May 2025 09:33:22 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 916BA10E722; Wed, 21 May 2025 09:33:20 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="DeuVD/kZ"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9AD8D10E70D; Wed, 21 May 2025 09:33:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1747820000; x=1779356000; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=EZRif6mjYfANn52EIufxwTVisYUEBZvz+aehc8ZQHIg=; b=DeuVD/kZLRXH8vRy3Ddy9zCI++Jd1E/mXXA+crjVJQRaRdswAI5w02Zn N3pg1fSNS3hEZWcdrABOtuWc1yNXJ7S/neQMgAw8xL3d3mTH0xRwU3+KV Jt8fgm34iAFrG47xCyqAex+gS0WqI0f6B6/n3ajS+rYJYsuBr4ZxRNqlp n5lrKs6ELwE5050JrsJ8+F+j22OJB8ji0ZDxJ+iDVopaJBwYZKUzGgg4n zuGFoRhWBS7LGSVIRCiKCvvClV5FiAi8vbwGPMgaOOLN54ki7c5UUU8FL ILJjIvG0PxKOv48KiLhjuzwjR9OKQWHfXy8dmYxW1XvlSgpLWGCNxFkbu w==; X-CSE-ConnectionGUID: UJR+aS7VSt29k+2XxzerKA== X-CSE-MsgGUID: lsuB5YD/SYifG6KQVI8G1Q== X-IronPort-AV: E=McAfee;i="6700,10204,11439"; a="49714394" X-IronPort-AV: E=Sophos;i="6.15,303,1739865600"; d="scan'208";a="49714394" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 May 2025 02:33:20 -0700 X-CSE-ConnectionGUID: b+9I4wXFTzSJbhqTyGZLxg== X-CSE-MsgGUID: 2OvNl1EPSYClrNUbmYxQ3g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.15,303,1739865600"; d="scan'208";a="140407177" Received: from abityuts-desk.ger.corp.intel.com (HELO jhogande-mobl1..) ([10.245.244.119]) by fmviesa008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 May 2025 02:33:18 -0700 From: =?UTF-8?q?Jouni=20H=C3=B6gander?= To: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org Cc: =?UTF-8?q?Jouni=20H=C3=B6gander?= , Ankit Nautiyal Subject: [PATCH v3 12/12] drm/i915/psr: Do not disable Panel Replay in case VRR is enabled Date: Wed, 21 May 2025 12:32:40 +0300 Message-ID: <20250521093240.2284835-13-jouni.hogander@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250521093240.2284835-1-jouni.hogander@intel.com> References: <20250521093240.2284835-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" Allow Panel Replay with VRR. All VRR modes are supposed to work with Panel Replay. Bspec: 68920, 68925 Signed-off-by: Jouni Högander Reviewed-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_psr.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c index 38535e0d2496..db7111374293 100644 --- a/drivers/gpu/drm/i915/display/intel_psr.c +++ b/drivers/gpu/drm/i915/display/intel_psr.c @@ -1579,6 +1579,12 @@ static bool _psr_compute_config(struct intel_dp *intel_dp, if (!CAN_PSR(intel_dp)) return false; + /* + * Currently PSR doesn't work reliably with VRR enabled. + */ + if (crtc_state->vrr.enable) + return false; + entry_setup_frames = intel_psr_entry_setup_frames(intel_dp, adjusted_mode); if (entry_setup_frames >= 0) { @@ -1696,12 +1702,6 @@ void intel_psr_compute_config(struct intel_dp *intel_dp, return; } - /* - * Currently PSR/PR doesn't work reliably with VRR enabled. - */ - if (crtc_state->vrr.enable) - return; - crtc_state->has_panel_replay = _panel_replay_compute_config(intel_dp, crtc_state, conn_state); -- 2.43.0