From patchwork Wed Oct 11 11:09:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Manna, Animesh" X-Patchwork-Id: 13417237 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 972ECCD6E5A for ; Wed, 11 Oct 2023 11:23:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1399C10E6F8; Wed, 11 Oct 2023 11:23:11 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5A50D10E6F5; Wed, 11 Oct 2023 11:23:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697023386; x=1728559386; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=VhIzIK9NM5vqYd+YGSMCo3cyFVJ/qZ5Cky30ftvXl7I=; b=OwhHegECOmv8Oim52Jjf/0HkauW6AcmUKnnQzcA+emBcGACKyki91WxH GM+80jw+Stli6heThHP4k/nabnvbdhTtg8C05hhl7viCa4OBfTN2EIciu 9t+0CprsgASrwE5ufp6VXvoyKzbBMd4cZP+MoN+dOVJy4cEk4jVj2gQOY rZcuv1SU6wcsu2SkNx5Z7UXMEVEbJbsRBgGkEU79op5CrItuAHqkw8VLg FZWs41hhn2BFA/EIxi9gOWf9cBGfjrIiA4bOuYa9ooo1RcUSJlbSlwHQ5 UTwJyuSWWm5T82pvXWYeKHLzJrldfhqNRSYQljPEYzzj6LfUjRUj6Y9it w==; X-IronPort-AV: E=McAfee;i="6600,9927,10859"; a="387482667" X-IronPort-AV: E=Sophos;i="6.03,214,1694761200"; d="scan'208";a="387482667" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2023 04:21:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10859"; a="877630923" X-IronPort-AV: E=Sophos;i="6.03,214,1694761200"; d="scan'208";a="877630923" Received: from srr4-3-linux-101-amanna.iind.intel.com ([10.223.74.76]) by orsmga004.jf.intel.com with ESMTP; 11 Oct 2023 04:21:40 -0700 From: Animesh Manna To: intel-gfx@lists.freedesktop.org Date: Wed, 11 Oct 2023 16:39:34 +0530 Message-Id: <20231011110936.1851563-5-animesh.manna@intel.com> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20231011110936.1851563-1-animesh.manna@intel.com> References: <20231011110936.1851563-1-animesh.manna@intel.com> MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH v7 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 , dri-devel@lists.freedesktop.org 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 Signed-off-by: Animesh Manna Reviewed-by: Arun R Murthy --- 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 f9837001aa5f..a2e0637c53fb 100644 --- a/drivers/gpu/drm/i915/display/intel_psr.c +++ b/drivers/gpu/drm/i915/display/intel_psr.c @@ -2738,6 +2738,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