Re: [PATCH v10 09/10] drm/i915/display: Add HAS_PSR_TRANS_PUSH_FRAME_CHANGE macro

Nautiyal, Ankit K
2026-01-27T07:48:27Z

On 1/26/2026 1:29 PM, Jouni Högander wrote:
> Add macro telling platform supports triggering Frame Change event using
> Trans Push mechanism.

Perhaps :

Add a macro indicating that the platform supports triggering a Frame
Change event for the PSR HW using the TRANS PUSH mechanism.

>
> Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_display_device.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_display_device.h b/drivers/gpu/drm/i915/display/intel_display_device.h
> index 6c74d6b0cc48..13558bc648ab 100644
> --- a/drivers/gpu/drm/i915/display/intel_display_device.h
> +++ b/drivers/gpu/drm/i915/display/intel_display_device.h
> @@ -196,6 +196,7 @@ struct intel_display_platforms {
> #define HAS_PSR(__display) (DISPLAY_INFO(__display)->has_psr)
> #define HAS_PSR_HW_TRACKING(__display) (DISPLAY_INFO(__display)->has_psr_hw_tracking)
> #define HAS_PSR2_SEL_FETCH(__display) (DISPLAY_VER(__display) >= 12)
> +#define HAS_PSR_TRANS_PUSH_FRAME_CHANGE(__display) (DISPLAY_VER(__display) >= 20)

The HAS_PSR_HW_TRACKING should be below HAS_PSR2_SEL_FETCH, but can be a
separate patch, as not related to the series.

Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>

> #define HAS_SAGV(__display) (DISPLAY_VER(__display) >= 9 && \
> !(__display)->platform.broxton && !(__display)->platform.geminilake)
> #define HAS_TRANSCODER(__display, trans) ((DISPLAY_RUNTIME_INFO(__display)->cpu_transcoder_mask & \