[Intel-gfx] [PATCH 2/3] drm/i915: Rename get stolen functions for LP platforms chv+
Daniel Vetter
daniel at ffwll.ch
Mon Dec 19 09:16:11 UTC 2016
On Sun, Dec 18, 2016 at 01:36:27PM -0800, Rodrigo Vivi wrote:
> gen8 is used for both Broadwell and Cherryview but this
> function here is only Cherryview and all next atom LP platforms.
> So let's rename it to avoid confusion as suggested by Ville.
>
> Cc: Ville Syrjälä <ville.syrjala at linux.intel.com>
> Signed-off-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter at ffwll.ch>
> ---
> drivers/gpu/drm/i915/i915_gem_stolen.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/i915_gem_stolen.c b/drivers/gpu/drm/i915/i915_gem_stolen.c
> index efc0e74..3d24227 100644
> --- a/drivers/gpu/drm/i915/i915_gem_stolen.c
> +++ b/drivers/gpu/drm/i915/i915_gem_stolen.c
> @@ -360,7 +360,7 @@ static void gen7_get_stolen_reserved(struct drm_i915_private *dev_priv,
> }
> }
>
> -static void gen8_get_stolen_reserved(struct drm_i915_private *dev_priv,
> +static void chv_get_stolen_reserved(struct drm_i915_private *dev_priv,
> unsigned long *base, unsigned long *size)
> {
> uint32_t reg_val = I915_READ(GEN6_STOLEN_RESERVED);
> @@ -459,7 +459,7 @@ int i915_gem_init_stolen(struct drm_i915_private *dev_priv)
> bdw_get_stolen_reserved(dev_priv, &reserved_base,
> &reserved_size);
> else
> - gen8_get_stolen_reserved(dev_priv, &reserved_base,
> + chv_get_stolen_reserved(dev_priv, &reserved_base,
> &reserved_size);
> break;
> }
> --
> 1.9.1
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
More information about the Intel-gfx
mailing list