All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jouni Högander" <jouni.hogander@intel.com>
To: intel-gfx@lists.freedesktop.org
Cc: "Animesh Manna" <animesh.manna@intel.com>,
	"Jouni Högander" <jouni.hogander@intel.com>
Subject: [PATCH v6 04/10] drm/i915/psr: Detect panel replay selective update support
Date: Mon,  8 Apr 2024 11:22:06 +0300	[thread overview]
Message-ID: <20240408082212.3429193-5-jouni.hogander@intel.com> (raw)
In-Reply-To: <20240408082212.3429193-1-jouni.hogander@intel.com>

Add new boolean to store panel replay selective update support of sink into
intel_psr struct.  Detect panel replay selective update support and store
it into this new boolean.

v3: Clear sink_panel_replay_su_support in intel_dp_detect
v2: Merge adding new boolean into this patch

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
---
 drivers/gpu/drm/i915/display/intel_display_types.h |  1 +
 drivers/gpu/drm/i915/display/intel_dp.c            |  1 +
 drivers/gpu/drm/i915/display/intel_psr.c           | 10 ++++++++--
 3 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_display_types.h b/drivers/gpu/drm/i915/display/intel_display_types.h
index 369d1a48ff05..2cbb1eebe4f1 100644
--- a/drivers/gpu/drm/i915/display/intel_display_types.h
+++ b/drivers/gpu/drm/i915/display/intel_display_types.h
@@ -1760,6 +1760,7 @@ struct intel_psr {
 	u16 su_y_granularity;
 	bool source_panel_replay_support;
 	bool sink_panel_replay_support;
+	bool sink_panel_replay_su_support;
 	bool panel_replay_enabled;
 	u32 dc3co_exitline;
 	u32 dc3co_exit_delay;
diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
index 0d18bc7f4181..372871f7fc00 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp.c
@@ -5856,6 +5856,7 @@ intel_dp_detect(struct drm_connector *connector,
 		memset(&intel_dp->compliance, 0, sizeof(intel_dp->compliance));
 		memset(intel_connector->dp.dsc_dpcd, 0, sizeof(intel_connector->dp.dsc_dpcd));
 		intel_dp->psr.sink_panel_replay_support = false;
+		intel_dp->psr.sink_panel_replay_su_support = false;
 
 		intel_dp_mst_disconnect(intel_dp);
 
diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c
index f4c014eb28eb..fdc6d699d9c2 100644
--- a/drivers/gpu/drm/i915/display/intel_psr.c
+++ b/drivers/gpu/drm/i915/display/intel_psr.c
@@ -520,9 +520,15 @@ static void _panel_replay_init_dpcd(struct intel_dp *intel_dp)
 		return;
 	}
 
-	drm_dbg_kms(&i915->drm,
-		    "Panel replay is supported by panel\n");
 	intel_dp->psr.sink_panel_replay_support = true;
+
+	if (pr_dpcd & DP_PANEL_REPLAY_SU_SUPPORT)
+		intel_dp->psr.sink_panel_replay_su_support = true;
+
+	drm_dbg_kms(&i915->drm,
+		    "Panel replay %sis supported by panel\n",
+		    intel_dp->psr.sink_panel_replay_su_support ?
+		    "selective_update " : "");
 }
 
 static void _psr_init_dpcd(struct intel_dp *intel_dp)
-- 
2.34.1


  parent reply	other threads:[~2024-04-08  8:22 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-08  8:22 [PATCH v6 00/10] Panel replay selective update support Jouni Högander
2024-04-08  8:22 ` [PATCH v6 01/10] drm/i915/psr: Rename has_psr2 as has_sel_update Jouni Högander
2024-04-08  8:22 ` [PATCH v6 02/10] drm/i915/psr: Rename psr2_enabled as sel_update_enabled Jouni Högander
2024-04-08  8:22 ` [PATCH v6 03/10] drm/panelreplay: dpcd register definition for panelreplay SU Jouni Högander
2024-04-08  8:22 ` Jouni Högander [this message]
2024-04-08  8:22 ` [PATCH v6 05/10] drm/i915/psr: Modify intel_dp_get_su_granularity to support panel replay Jouni Högander
2024-04-08  8:22 ` [PATCH v6 06/10] drm/i915/psr: Panel replay uses SRD_STATUS to track it's status Jouni Högander
2024-04-08  8:22 ` [PATCH v6 07/10] drm/i915/psr: Do not apply workarounds in case of panel replay Jouni Högander
2024-04-08  8:22 ` [PATCH v6 08/10] drm/i915/psr: Update PSR module parameter descriptions Jouni Högander
2024-04-08  8:22 ` [PATCH v6 09/10] drm/i915/psr: Split intel_psr2_config_valid for panel replay Jouni Högander
2024-04-08  8:22 ` [PATCH v6 10/10] drm/i915/psr: Add panel replay sel update support to debugfs interface Jouni Högander
2024-04-08 17:43 ` ✗ Fi.CI.CHECKPATCH: warning for Panel replay selective update support (rev6) Patchwork
2024-04-08 17:43 ` ✗ Fi.CI.SPARSE: " Patchwork
2024-04-08 17:52 ` ✓ Fi.CI.BAT: success " Patchwork
2024-04-09 16:15 ` ✓ Fi.CI.IGT: " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240408082212.3429193-5-jouni.hogander@intel.com \
    --to=jouni.hogander@intel.com \
    --cc=animesh.manna@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.