Re: [PATCH 04/35] drm/i915: Rename hsw_wm_get_pixel_rate to ilk_pipe_pixel_rate

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2013/7/5  <ville.syrjala@xxxxxxxxxxxxxxx>:
> From: Ville Syrjälä <ville.syrjala@xxxxxxxxxxxxxxx>
>
> hsw_wm_get_pixel_rate() isn't specific to HSW. In fact it should be made
> to handle all gens, but for now it depends on the PCH panel fitter
> state, so give it an ilk_ prefix.
>
> Signed-off-by: Ville Syrjälä <ville.syrjala@xxxxxxxxxxxxxxx>

I couldn't find the ILK docs to check this, but SNB/IVB seems correct.

Reviewed-by: Paulo Zanoni <paulo.r.zanoni@xxxxxxxxx>

> ---
>  drivers/gpu/drm/i915/intel_pm.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
> index db548a1..b8fde13 100644
> --- a/drivers/gpu/drm/i915/intel_pm.c
> +++ b/drivers/gpu/drm/i915/intel_pm.c
> @@ -2080,8 +2080,8 @@ static void ivybridge_update_wm(struct drm_device *dev)
>                    cursor_wm);
>  }
>
> -static uint32_t hsw_wm_get_pixel_rate(struct drm_device *dev,
> -                                     struct drm_crtc *crtc)
> +static uint32_t ilk_pipe_pixel_rate(struct drm_device *dev,
> +                                   struct drm_crtc *crtc)
>  {
>         struct intel_crtc *intel_crtc = to_intel_crtc(crtc);
>         uint32_t pixel_rate, pfit_size;
> @@ -2373,7 +2373,7 @@ static void hsw_compute_wm_parameters(struct drm_device *dev,
>                 pipes_active++;
>
>                 p->pipe_htotal = intel_crtc->config.adjusted_mode.htotal;
> -               p->pixel_rate = hsw_wm_get_pixel_rate(dev, crtc);
> +               p->pixel_rate = ilk_pipe_pixel_rate(dev, crtc);
>                 p->pri_bytes_per_pixel = crtc->fb->bits_per_pixel / 8;
>                 p->cur_bytes_per_pixel = 4;
>                 p->pri_horiz_pixels =
> --
> 1.8.1.5
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx



-- 
Paulo Zanoni
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx





[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux