[Intel-gfx] [PATCH v2] drm/i915/icl: Whitelist GEN9_SLICE_COMMON_ECO_CHICKEN1

Joonas Lahtinen joonas.lahtinen at linux.intel.com
Tue Apr 30 06:53:02 UTC 2019


Quoting Tvrtko Ursulin (2019-04-18 13:06:34)
> From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> 
> WaEnableStateCacheRedirectToCS context workaround configures the L3 cache
> to benefit 3d workloads but media has different requirements.
> 
> Remove the workaround and whitelist the register to allow any userspace
> configure the behaviour to their liking.
> 
> v2:
>  * Remove the workaround apart from adding the whitelist.

Please add the information that removal of the workaround doesn't cause
any ill effects with old Mesa and add Fixes:, so this gets picked up to
5.2. No need for stable as Icelake is alpha_support before 5.2

With those changes this is:

Reviewed-by: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>

Regards, Joonas

> 
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> Cc: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
> Cc: kevin.ma at intel.com
> Cc: xiaogang.li at intel.com
> ---
>  drivers/gpu/drm/i915/intel_workarounds.c | 7 +++----
>  1 file changed, 3 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/intel_workarounds.c b/drivers/gpu/drm/i915/intel_workarounds.c
> index b3cbed1ee1c9..baed186724d2 100644
> --- a/drivers/gpu/drm/i915/intel_workarounds.c
> +++ b/drivers/gpu/drm/i915/intel_workarounds.c
> @@ -556,10 +556,6 @@ static void icl_ctx_workarounds_init(struct intel_engine_cs *engine)
>                 WA_SET_BIT_MASKED(GEN7_ROW_CHICKEN2,
>                                   GEN11_TDL_CLOCK_GATING_FIX_DISABLE);
>  
> -       /* WaEnableStateCacheRedirectToCS:icl */
> -       WA_SET_BIT_MASKED(GEN9_SLICE_COMMON_ECO_CHICKEN1,
> -                         GEN11_STATE_CACHE_REDIRECT_TO_CS);
> -
>         /* Wa_2006665173:icl (pre-prod) */
>         if (IS_ICL_REVID(i915, ICL_REVID_A0, ICL_REVID_A0))
>                 WA_SET_BIT_MASKED(GEN11_COMMON_SLICE_CHICKEN3,
> @@ -1070,6 +1066,9 @@ static void icl_whitelist_build(struct i915_wa_list *w)
>  
>         /* WaAllowUMDToModifySamplerMode:icl */
>         whitelist_reg(w, GEN10_SAMPLER_MODE);
> +
> +       /* WaEnableStateCacheRedirectToCS:icl */
> +       whitelist_reg(w, GEN9_SLICE_COMMON_ECO_CHICKEN1);
>  }
>  
>  void intel_engine_init_whitelist(struct intel_engine_cs *engine)
> -- 
> 2.19.1
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx


More information about the Intel-gfx mailing list