From patchwork Thu Mar 28 14:19:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Hogander, Jouni" X-Patchwork-Id: 13608648 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 4B4B4C54E67 for ; Thu, 28 Mar 2024 14:20:01 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A3B8F10F7BE; Thu, 28 Mar 2024 14:20:00 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="P+nLrxzG"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) by gabe.freedesktop.org (Postfix) with ESMTPS id 53B21112146 for ; Thu, 28 Mar 2024 14:19:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1711635593; x=1743171593; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=EBZUnggTvh7qv9RtQkCC6y/WEhQLvZwul9rJGpcyPCk=; b=P+nLrxzGT5vpZJgRbLaAq9qt0uzaTV8KdLhtmzGX7YuS07Hj001/Nh6h VyhhpLs/K9E/4dv8RPkMghoqbpKOGieTWs+3x9NptpFnuXewy/AgEFA8D MLY0BbntgA36qIN8r8Sa6tlD4M7v26I90fqkPszx5KNHmry+EV4c0LI/O dCwMu+uJQPbeerzvgpvX7tTcY8xYPJUS3iFWvndD4b2BmYl3rvHigmv79 L1ZTSv31IBI4YXOtT2uxirljEcTCaTPC0HQtBz5lGQ/TyjhaxVNP2sz9U dBsalnEhbUaT9qV+q5fT2/PCqE0JOx3RB7rnNZa1+EWKiXKKG+d911F7B A==; X-CSE-ConnectionGUID: QoCsWdGWS9yfgLhStGULRQ== X-CSE-MsgGUID: 1PA1HZkQTkCyzyTah8Y7Dg== X-IronPort-AV: E=McAfee;i="6600,9927,11026"; a="7391017" X-IronPort-AV: E=Sophos;i="6.07,162,1708416000"; d="scan'208";a="7391017" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2024 07:19:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,162,1708416000"; d="scan'208";a="47852024" Received: from comms.fi.intel.com (HELO jhogande-mobl1.fi.intel.com) ([10.237.72.67]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2024 07:19:52 -0700 From: =?utf-8?q?Jouni_H=C3=B6gander?= To: intel-gfx@lists.freedesktop.org Cc: =?utf-8?b?VmlsbGUgU3lyasOkbMOk?= , Animesh Manna , Arun R Murthy , =?utf-8?q?Jouni_H=C3=B6gander?= Subject: [PATCH v6 5/5] drm/i915/psr: Do not write ALPM configuration for PSR1 or DP2.0 Panel Replay Date: Thu, 28 Mar 2024 16:19:28 +0200 Message-Id: <20240328141928.1311284-6-jouni.hogander@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240328141928.1311284-1-jouni.hogander@intel.com> References: <20240328141928.1311284-1-jouni.hogander@intel.com> MIME-Version: 1.0 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo 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" No need to write ALPM configuration for DP2.0 Panel Replay or PSR1. Signed-off-by: Jouni Högander Reviewed-by: Animesh Manna --- drivers/gpu/drm/i915/display/intel_psr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c index 345493c85322..eef62983e9db 100644 --- a/drivers/gpu/drm/i915/display/intel_psr.c +++ b/drivers/gpu/drm/i915/display/intel_psr.c @@ -1723,7 +1723,8 @@ static void lnl_alpm_configure(struct intel_dp *intel_dp) struct intel_psr *psr = &intel_dp->psr; u32 alpm_ctl; - if (DISPLAY_VER(dev_priv) < 20) + if (DISPLAY_VER(dev_priv) < 20 || (!intel_dp->psr.psr2_enabled && + !intel_dp_is_edp(intel_dp))) return; /*