[Intel-gfx] [PATCH 5/7] drm/i915/vblank: use intel_de_read()

Murthy, Arun R arun.r.murthy at intel.com
Wed Dec 14 04:05:44 UTC 2022


> -----Original Message-----
> From: Intel-gfx <intel-gfx-bounces at lists.freedesktop.org> On Behalf Of Jani
> Nikula
> Sent: Monday, December 12, 2022 7:59 PM
> To: intel-gfx at lists.freedesktop.org
> Cc: Nikula, Jani <jani.nikula at intel.com>
> Subject: [Intel-gfx] [PATCH 5/7] drm/i915/vblank: use intel_de_read()
> 
> Use the intel_de_* functions for display registers.
> 
> Cc: Ville Syrjälä <ville.syrjala at linux.intel.com>
> Signed-off-by: Jani Nikula <jani.nikula at intel.com>
> ---
Reviewed-by: Arun R Murthy <arun.r.murthy at intel.com>

Thanks and Regards,
Arun R Murthy
--------------------
>  drivers/gpu/drm/i915/display/intel_vblank.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/i915/display/intel_vblank.c
> b/drivers/gpu/drm/i915/display/intel_vblank.c
> index aec7758ef917..cf1215631b27 100644
> --- a/drivers/gpu/drm/i915/display/intel_vblank.c
> +++ b/drivers/gpu/drm/i915/display/intel_vblank.c
> @@ -137,7 +137,7 @@ u32 g4x_get_vblank_counter(struct drm_crtc *crtc)
>  	if (!vblank->max_vblank_count)
>  		return 0;
> 
> -	return intel_uncore_read(&dev_priv->uncore,
> PIPE_FRMCOUNT_G4X(pipe));
> +	return intel_de_read(dev_priv, PIPE_FRMCOUNT_G4X(pipe));
>  }
> 
>  static u32 intel_crtc_scanlines_since_frame_timestamp(struct intel_crtc
> *crtc)
> --
> 2.34.1



More information about the Intel-gfx mailing list