All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/i915/psr: Reduce PSR2 "frames before selective update entry"
@ 2018-10-05  3:01 Dhinakaran Pandiyan
  2018-10-05  3:01 ` [PATCH 2/2] drm/i915/psr: Set Y coordinate valid for Gen10+ display Dhinakaran Pandiyan
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Dhinakaran Pandiyan @ 2018-10-05  3:01 UTC (permalink / raw)
  To: intel-gfx; +Cc: Dhinakaran Pandiyan

The hardware can start selective update following capture of a full frame
in the remote frame buffer, there is no need to wait any longer. Set
"Frames Before SU Entry" bitfield to the default value of 1.

Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
---
 drivers/gpu/drm/i915/intel_psr.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_psr.c b/drivers/gpu/drm/i915/intel_psr.c
index 83528647b40b..105b7ea2cd98 100644
--- a/drivers/gpu/drm/i915/intel_psr.c
+++ b/drivers/gpu/drm/i915/intel_psr.c
@@ -424,6 +424,7 @@ static void hsw_activate_psr2(struct intel_dp *intel_dp)
 
 	idle_frames = max(idle_frames, dev_priv->psr.sink_sync_latency + 1);
 	val = idle_frames << EDP_PSR2_IDLE_FRAME_SHIFT;
+	val |= EDP_PSR2_FRAME_BEFORE_SU(1);
 
 	/* FIXME: selective update is probably totally broken because it doesn't
 	 * mesh at all with our frontbuffer tracking. And the hw alone isn't
@@ -432,8 +433,6 @@ static void hsw_activate_psr2(struct intel_dp *intel_dp)
 	if (INTEL_GEN(dev_priv) >= 10 || IS_GEMINILAKE(dev_priv))
 		val |= EDP_Y_COORDINATE_ENABLE;
 
-	val |= EDP_PSR2_FRAME_BEFORE_SU(dev_priv->psr.sink_sync_latency + 1);
-
 	if (dev_priv->vbt.psr.tp2_tp3_wakeup_time_us >= 0 &&
 	    dev_priv->vbt.psr.tp2_tp3_wakeup_time_us <= 50)
 		val |= EDP_PSR2_TP2_TIME_50us;
-- 
2.14.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2018-10-05 22:36 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-05  3:01 [PATCH 1/2] drm/i915/psr: Reduce PSR2 "frames before selective update entry" Dhinakaran Pandiyan
2018-10-05  3:01 ` [PATCH 2/2] drm/i915/psr: Set Y coordinate valid for Gen10+ display Dhinakaran Pandiyan
2018-10-05 17:38   ` Rodrigo Vivi
2018-10-05 17:51     ` Dhinakaran Pandiyan
2018-10-05 19:53       ` Souza, Jose
2018-10-05 22:34         ` Dhinakaran Pandiyan
2018-10-05 19:54       ` Rodrigo Vivi
2018-10-05 20:12         ` Dhinakaran Pandiyan
2018-10-05  3:11 ` ✗ Fi.CI.SPARSE: warning for series starting with [1/2] drm/i915/psr: Reduce PSR2 "frames before selective update entry" Patchwork
2018-10-05  3:32 ` ✓ Fi.CI.BAT: success " Patchwork
2018-10-05  8:37 ` ✗ Fi.CI.IGT: failure " Patchwork
2018-10-05 20:00 ` [PATCH 1/2] " Souza, Jose
2018-10-05 21:06   ` Dhinakaran Pandiyan

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.