[Intel-gfx] [PATCH 2/2] drm/i915/display/xelpd: Do not program EDP_Y_COORDINATE_ENABLE

Mun, Gwan-gyeong gwan-gyeong.mun at intel.com
Thu Apr 22 11:01:18 UTC 2021


Looks good to me.

Reviewed-by: Gwan-gyeong Mun <gwan-gyeong.mun at intel.com>

On Wed, 2021-04-21 at 15:02 -0700, José Roberto de Souza wrote:
> EDP_Y_COORDINATE_ENABLE became a reserved register in display 13.
> EDP_Y_COORDINATE_VALID have the same fate as EDP_Y_COORDINATE_ENABLE
> but as we don't need it, removing the macro definition of it.
> 
> BSpec: 50422
> Cc: Gwan-gyeong Mun <gwan-gyeong.mun at intel.com>
> Cc: Anusha Srivatsa <anusha.srivatsa at intel.com>
> Signed-off-by: José Roberto de Souza <jose.souza at intel.com>
> ---
>  drivers/gpu/drm/i915/display/intel_psr.c | 2 +-
>  drivers/gpu/drm/i915/i915_reg.h          | 3 +--
>  2 files changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/display/intel_psr.c
> b/drivers/gpu/drm/i915/display/intel_psr.c
> index 4ad756e238c5..66335ec6b7d1 100644
> --- a/drivers/gpu/drm/i915/display/intel_psr.c
> +++ b/drivers/gpu/drm/i915/display/intel_psr.c
> @@ -524,7 +524,7 @@ static void hsw_activate_psr2(struct intel_dp
> *intel_dp)
>         val = psr_compute_idle_frames(intel_dp) <<
> EDP_PSR2_IDLE_FRAME_SHIFT;
>  
>         val |= EDP_PSR2_ENABLE | EDP_SU_TRACK_ENABLE;
> -       if (DISPLAY_VER(dev_priv) >= 10)
> +       if (DISPLAY_VER(dev_priv) >= 10 && DISPLAY_VER(dev_priv) <= 12)
>                 val |= EDP_Y_COORDINATE_ENABLE;
>  
>         val |= EDP_PSR2_FRAME_BEFORE_SU(intel_dp->psr.sink_sync_latency
> + 1);
> diff --git a/drivers/gpu/drm/i915/i915_reg.h
> b/drivers/gpu/drm/i915/i915_reg.h
> index 66a902b3bb8e..e18576c94cef 100644
> --- a/drivers/gpu/drm/i915/i915_reg.h
> +++ b/drivers/gpu/drm/i915/i915_reg.h
> @@ -4569,8 +4569,7 @@ enum {
>  #define   EDP_SU_TRACK_ENABLE                  (1 << 30)
>  #define   TGL_EDP_PSR2_BLOCK_COUNT_NUM_2       (0 << 28)
>  #define   TGL_EDP_PSR2_BLOCK_COUNT_NUM_3       (1 << 28)
> -#define   EDP_Y_COORDINATE_VALID               (1 << 26) /* GLK and
> CNL+ */
> -#define   EDP_Y_COORDINATE_ENABLE              (1 << 25) /* GLK and
> CNL+ */
> +#define   EDP_Y_COORDINATE_ENABLE              REG_BIT(25) /* display
> 10, 11 and 12 */
>  #define   EDP_MAX_SU_DISABLE_TIME(t)           ((t) << 20)
>  #define   EDP_MAX_SU_DISABLE_TIME_MASK         (0x1f << 20)
>  #define   EDP_PSR2_IO_BUFFER_WAKE_MAX_LINES    8



More information about the Intel-gfx mailing list