From patchwork Fri Nov 3 21:00:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Manna, Animesh" X-Patchwork-Id: 13445145 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 5690CC4332F for ; Fri, 3 Nov 2023 21:13:15 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BB49610EACF; Fri, 3 Nov 2023 21:13:08 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0025310EACF; Fri, 3 Nov 2023 21:13:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1699045985; x=1730581985; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=jEAG3xm3fs7p3L1wiXl9L1VgGg5vRERt2iKYeBhaT5w=; b=iUBcMPpd886/Wv1srgo5RwBXWkPu+W0i/5/hQDv6+MvqQlXxlCzPE8RK +J4khmM9rdeesQSPFttO0mhevyJNpgH/9BI2coeells5q2E3p3OAizNIw p1+dSdAtU/KMHWc9JOrJzl1JWFUQkieDhZGmARogfHjvqoyJfFYMLavF3 jNXr2R+xNWuH4SE78o0kZEaGTh97DVPBZVdbnBLzXvOnxx18UEZ68Iham GCVxuqDBJoTKjPWV/4pPVEs1QsudxbJFyfkS57Eli79zAfkf9aXtC2Jr+ xpCh0j99XVzdd2mPIwaaa2je5ELEnARvLm6lB5cpFVn7QAJYEi8QuHWPL g==; X-IronPort-AV: E=McAfee;i="6600,9927,10883"; a="379416740" X-IronPort-AV: E=Sophos;i="6.03,275,1694761200"; d="scan'208";a="379416740" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Nov 2023 14:13:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10883"; a="790877367" X-IronPort-AV: E=Sophos;i="6.03,275,1694761200"; d="scan'208";a="790877367" Received: from srr4-3-linux-101-amanna.iind.intel.com ([10.223.74.76]) by orsmga008.jf.intel.com with ESMTP; 03 Nov 2023 14:13:02 -0700 From: Animesh Manna To: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Date: Sat, 4 Nov 2023 02:30:33 +0530 Message-Id: <20231103210035.3151502-5-animesh.manna@intel.com> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20231103210035.3151502-1-animesh.manna@intel.com> References: <20231103210035.3151502-1-animesh.manna@intel.com> MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH v8 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 3c66257b6bb2..e53a2217627a 100644 --- a/drivers/gpu/drm/i915/display/intel_psr.c +++ b/drivers/gpu/drm/i915/display/intel_psr.c @@ -2742,6 +2742,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