Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/i915/psr: Add enable_panel_replay module parameter

Add new module parameter enable_panel_replay. This can be used to
enable/disable Panel Replay. 0=disabled, 1=enabled. -1=use per-chip default
(default).

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://lore.kernel.org/r/20250715105509.4146806-4-jouni.hogander@intel.com

+8 -1
+3
drivers/gpu/drm/i915/display/intel_display_params.c
··· 120 120 "(0=disabled, 1=enable up to PSR1, 2=enable up to PSR2) " 121 121 "Default: -1 (use per-chip default)"); 122 122 123 + intel_display_param_named_unsafe(enable_panel_replay, int, 0400, 124 + "Enable Panel Replay (0=disabled, 1=enabled). Default: -1 (use per-chip default)"); 125 + 123 126 intel_display_param_named(psr_safest_params, bool, 0400, 124 127 "Replace PSR VBT parameters by the safest and not optimal ones. This " 125 128 "is helpful to detect if PSR issues are related to bad values set in "
+1
drivers/gpu/drm/i915/display/intel_display_params.h
··· 46 46 param(bool, enable_dp_mst, true, 0600) \ 47 47 param(int, enable_fbc, -1, 0600) \ 48 48 param(int, enable_psr, -1, 0600) \ 49 + param(int, enable_panel_replay, -1, 0600) \ 49 50 param(bool, psr_safest_params, false, 0400) \ 50 51 param(bool, enable_psr2_sel_fetch, true, 0400) \ 51 52 param(int, enable_dmc_wl, -1, 0400) \
+4 -1
drivers/gpu/drm/i915/display/intel_psr.c
··· 259 259 260 260 static bool panel_replay_global_enabled(struct intel_dp *intel_dp) 261 261 { 262 - return !(intel_dp->psr.debug & I915_PSR_DEBUG_PANEL_REPLAY_DISABLE); 262 + struct intel_display *display = to_intel_display(intel_dp); 263 + 264 + return !(intel_dp->psr.debug & I915_PSR_DEBUG_PANEL_REPLAY_DISABLE) && 265 + display->params.enable_panel_replay; 263 266 } 264 267 265 268 static u32 psr_irq_psr_error_bit_get(struct intel_dp *intel_dp)