[PATCH] drm/i915/psr: vbt.psr.enable is only for eDP panels

Naladala, Ramanaidu Ramanaidu.naladala at intel.com
Mon Oct 21 08:40:10 UTC 2024


Hi Jouni,

On 10/21/2024 1:03 PM, Jouni Högander wrote:
> We don't want to check vbt.psr.enable on DP Panel Replay as it is targeted
> for eDP panel usage only.
>
> Signed-off-by: Jouni Högander<jouni.hogander at intel.com>
> ---
>   drivers/gpu/drm/i915/display/intel_psr.c | 4 +++-
>   1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c
> index 3b20325b3f6a..4176163ec19a 100644
> --- a/drivers/gpu/drm/i915/display/intel_psr.c
> +++ b/drivers/gpu/drm/i915/display/intel_psr.c
> @@ -233,7 +233,9 @@ static bool psr_global_enabled(struct intel_dp *intel_dp)
>   	switch (intel_dp->psr.debug & I915_PSR_DEBUG_MODE_MASK) {
>   	case I915_PSR_DEBUG_DEFAULT:
>   		if (display->params.enable_psr == -1)
> -			return connector->panel.vbt.psr.enable;
> +			return intel_dp_is_edp(intel_dp) ?
> +				connector->panel.vbt.psr.enable :
> +				true;

LGTM,

Reviewed-by: Naladala Ramanaidu <ramanaidu.naladala at intel.com>
>   		return display->params.enable_psr;
>   	case I915_PSR_DEBUG_DISABLE:
>   		return false;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20241021/02a1da92/attachment-0001.htm>


More information about the Intel-gfx mailing list