From patchwork Wed Nov 8 07:23:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Manna, Animesh" X-Patchwork-Id: 13449650 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 9E8A9C4332F for ; Wed, 8 Nov 2023 07:35:45 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 877C510E706; Wed, 8 Nov 2023 07:35:34 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by gabe.freedesktop.org (Postfix) with ESMTPS id 77B4910E706; Wed, 8 Nov 2023 07:35:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1699428932; x=1730964932; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=g0H1IodmBexDnw2f5hTRnBc4YOoSukg7ZPPerfRXRn0=; b=hd+xmTGFhsKxSzna5gZOkVjmZdAkeQux3DO95umDnQLJl3HCgEomyrzK kmRLC86I6wU1nyNJZqqVdg3TxRqniP73DpvECpA7N9eBA/M72BUgj3/e+ N9Av5j2BGUNRlNRdKjxwEOJGKVr8AdSwlJYFn+z+3FE/4u0tbrZ/7TY84 7DAiFRBriUax+w8wz2KqEdsWB3u51lczX6r8F6teNed5ws15kIxU16EiY DWqYnxpZnXehbWovIEc2pqoPXDovcTUO1htDpwinWBZw/NtSPy5cjuMBv 26dJkli/yQpmwqi3iuGIiSAvG0Tn9SE6ZXaWYlzidmlkcHDfp845fIvAW A==; X-IronPort-AV: E=McAfee;i="6600,9927,10887"; a="8360273" X-IronPort-AV: E=Sophos;i="6.03,285,1694761200"; d="scan'208";a="8360273" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Nov 2023 23:35:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10887"; a="906689593" X-IronPort-AV: E=Sophos;i="6.03,285,1694761200"; d="scan'208";a="906689593" Received: from srr4-3-linux-101-amanna.iind.intel.com ([10.223.74.76]) by fmsmga001.fm.intel.com with ESMTP; 07 Nov 2023 23:35:30 -0800 From: Animesh Manna To: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Date: Wed, 8 Nov 2023 12:53:01 +0530 Message-Id: <20231108072303.3414118-5-animesh.manna@intel.com> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20231108072303.3414118-1-animesh.manna@intel.com> References: <20231108072303.3414118-1-animesh.manna@intel.com> MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH v9 4/6] drm/i915/panelreplay: Enable panel replay dpcd initialization for DP 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: , Cc: Jani Nikula Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Due to similarity panel replay dpcd initialization got added in psr function which is specific for edp panel. This patch enables panel replay initialization for dp connector. Cc: Jouni Högander Cc: Arun R Murthy Cc: Jani Nikula Reviewed-by: Arun R Murthy Signed-off-by: Animesh Manna --- drivers/gpu/drm/i915/display/intel_psr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c index 3ffdeb451a83..3c25c8d85803 100644 --- a/drivers/gpu/drm/i915/display/intel_psr.c +++ b/drivers/gpu/drm/i915/display/intel_psr.c @@ -2794,6 +2794,9 @@ void intel_psr_init(struct intel_dp *intel_dp) if (!(HAS_PSR(dev_priv) || HAS_DP20(dev_priv))) return; + if (!intel_dp_is_edp(intel_dp)) + intel_psr_init_dpcd(intel_dp); + /* * HSW spec explicitly says PSR is tied to port A. * BDW+ platforms have a instance of PSR registers per transcoder but