All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/6] drm/i915/psr: Allow PSR2 to be enabled when debugfs asks
@ 2019-01-03 14:21 José Roberto de Souza
  2019-01-03 14:21 ` [PATCH v2 2/6] drm/i915: Refactor PSR status debugfs José Roberto de Souza
                   ` (9 more replies)
  0 siblings, 10 replies; 25+ messages in thread
From: José Roberto de Souza @ 2019-01-03 14:21 UTC (permalink / raw)
  To: intel-gfx; +Cc: Dhinakaran Pandiyan, Rodrigo Vivi

For now PSR2 is still disabled by default for all platforms but is
our intention to let debugfs to enable it for debug and tests
proporses, so intel_psr2_enabled() that is also used by debugfs to
decide if PSR2 is going to be enabled needs to take in consideration
the debug field.

v2: Using the switch/case that intel_psr2_enabled() already had to
handle this(DK)

Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
---
 drivers/gpu/drm/i915/intel_psr.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_psr.c b/drivers/gpu/drm/i915/intel_psr.c
index dce39f06b682..0ef6c5f8c298 100644
--- a/drivers/gpu/drm/i915/intel_psr.c
+++ b/drivers/gpu/drm/i915/intel_psr.c
@@ -71,17 +71,17 @@ static bool psr_global_enabled(u32 debug)
 static bool intel_psr2_enabled(struct drm_i915_private *dev_priv,
 			       const struct intel_crtc_state *crtc_state)
 {
-	/* Disable PSR2 by default for all platforms */
-	if (i915_modparams.enable_psr == -1)
-		return false;
-
 	/* Cannot enable DSC and PSR2 simultaneously */
 	WARN_ON(crtc_state->dsc_params.compression_enable &&
 		crtc_state->has_psr2);
 
 	switch (dev_priv->psr.debug & I915_PSR_DEBUG_MODE_MASK) {
+	case I915_PSR_DEBUG_DISABLE:
 	case I915_PSR_DEBUG_FORCE_PSR1:
 		return false;
+	case I915_PSR_DEBUG_DEFAULT:
+		if (i915_modparams.enable_psr <= 0)
+			return false;
 	default:
 		return crtc_state->has_psr2;
 	}
-- 
2.20.0

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

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

end of thread, other threads:[~2019-01-10 23:00 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-03 14:21 [PATCH v2 1/6] drm/i915/psr: Allow PSR2 to be enabled when debugfs asks José Roberto de Souza
2019-01-03 14:21 ` [PATCH v2 2/6] drm/i915: Refactor PSR status debugfs José Roberto de Souza
2019-01-03 16:29   ` Souza, Jose
2019-01-09 22:34   ` Dhinakaran Pandiyan
2019-01-10 15:21     ` Rodrigo Vivi
2019-01-03 14:21 ` [PATCH v2 3/6] drm/i915/psr: Make intel_psr_set_debugfs_mode() only handle PSR mode José Roberto de Souza
2019-01-04  6:53   ` Maarten Lankhorst
2019-01-04 13:28     ` Souza, Jose
2019-01-04 14:35       ` Maarten Lankhorst
2019-01-04 15:52         ` Souza, Jose
2019-01-07 10:53           ` Maarten Lankhorst
2019-01-03 14:21 ` [PATCH v2 4/6] drm/i915/psr: Do not print last attempted entry or exit in PSR debugfs while in PSR2 José Roberto de Souza
2019-01-10  1:24   ` Dhinakaran Pandiyan
2019-01-10 23:00     ` Souza, Jose
2019-01-03 14:21 ` [PATCH v2 5/6] drm/i915: Add PSR2 selective update status registers and bits definitions José Roberto de Souza
2019-01-10  2:18   ` Dhinakaran Pandiyan
2019-01-10 22:45     ` Souza, Jose
2019-01-03 14:21 ` [PATCH v2 6/6] drm/i915/debugfs: Print PSR selective update status register values José Roberto de Souza
2019-01-10  2:11   ` Dhinakaran Pandiyan
2019-01-10 22:29     ` Souza, Jose
2019-01-03 15:13 ` ✗ Fi.CI.CHECKPATCH: warning for series starting with [v2,1/6] drm/i915/psr: Allow PSR2 to be enabled when debugfs asks Patchwork
2019-01-03 15:33 ` ✗ Fi.CI.BAT: failure " Patchwork
2019-01-03 17:16 ` ✗ Fi.CI.BAT: failure for series starting with [v2,1/6] drm/i915/psr: Allow PSR2 to be enabled when debugfs asks (rev2) Patchwork
2019-01-04 13:30 ` ✗ Fi.CI.BAT: failure for series starting with [v2,1/6] drm/i915/psr: Allow PSR2 to be enabled when debugfs asks (rev3) Patchwork
2019-01-09 22:05 ` [PATCH v2 1/6] drm/i915/psr: Allow PSR2 to be enabled when debugfs asks 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.