Re: [PATCH] drm/i915/tgl: Don't treat unslice registers as masked

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

 



On Thu, Mar 5, 2020 at 12:25 PM Matt Roper <matthew.d.roper@xxxxxxxxx> wrote:
>
> The UNSLICE_UNIT_LEVEL_CLKGATE and UNSLICE_UNIT_LEVEL_CLKGATE2 registers
> that we update in a few engine workarounds are not masked registers
> (i.e., we don't have to write a mask bit in the top 16 bits when
> updating one of the lower 16 bits).  As such, these workarounds should
> be applied via wa_write_or() rather than wa_masked_en()
>
> Reported-by: Nick Desaulniers <ndesaulniers@xxxxxxxxxx>
> Fixes: 50148a25f841 ("drm/i915/tgl: Move and restrict Wa_1408615072")
> Fixes: 3551ff928744 ("drm/i915/gen11: Moving WAs to rcs_engine_wa_init()")
> Cc: José Roberto de Souza <jose.souza@xxxxxxxxx>
> Signed-off-by: Matt Roper <matthew.d.roper@xxxxxxxxx>

I appreciate the fast turnaround time!
Tested-by: Nick Desaulniers <ndesaulniers@xxxxxxxxxx>

If the maintainer wouldn't mind adding the following tags to help us
track and show some love for our bots:
Link: https://github.com/ClangBuiltLinux/linux/issues/918
Reported-by: kernelci.org bot <bot@xxxxxxxxxxxx>

> ---
>  drivers/gpu/drm/i915/gt/intel_workarounds.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/gt/intel_workarounds.c b/drivers/gpu/drm/i915/gt/intel_workarounds.c
> index 908a70914399..b4785212fb7d 100644
> --- a/drivers/gpu/drm/i915/gt/intel_workarounds.c
> +++ b/drivers/gpu/drm/i915/gt/intel_workarounds.c
> @@ -1382,8 +1382,8 @@ rcs_engine_wa_init(struct intel_engine_cs *engine, struct i915_wa_list *wal)
>                 wa_masked_en(wal, GEN9_ROW_CHICKEN4, GEN12_DISABLE_TDL_PUSH);
>
>                 /* Wa_1408615072:tgl */
> -               wa_masked_en(wal, UNSLICE_UNIT_LEVEL_CLKGATE2,
> -                            VSUNIT_CLKGATE_DIS_TGL);
> +               wa_write_or(wal, UNSLICE_UNIT_LEVEL_CLKGATE2,
> +                           VSUNIT_CLKGATE_DIS_TGL);
>         }
>
>         if (IS_TIGERLAKE(i915)) {
> @@ -1467,12 +1467,12 @@ rcs_engine_wa_init(struct intel_engine_cs *engine, struct i915_wa_list *wal)
>                  * Wa_1408615072:icl,ehl  (vsunit)
>                  * Wa_1407596294:icl,ehl  (hsunit)
>                  */
> -               wa_masked_en(wal, UNSLICE_UNIT_LEVEL_CLKGATE,
> -                            VSUNIT_CLKGATE_DIS | HSUNIT_CLKGATE_DIS);
> +               wa_write_or(wal, UNSLICE_UNIT_LEVEL_CLKGATE,
> +                           VSUNIT_CLKGATE_DIS | HSUNIT_CLKGATE_DIS);
>
>                 /* Wa_1407352427:icl,ehl */
> -               wa_masked_en(wal, UNSLICE_UNIT_LEVEL_CLKGATE2,
> -                            PSDUNIT_CLKGATE_DIS);
> +               wa_write_or(wal, UNSLICE_UNIT_LEVEL_CLKGATE2,
> +                           PSDUNIT_CLKGATE_DIS);
>
>                 /* Wa_1406680159:icl,ehl */
>                 wa_write_or(wal,
> --
> 2.24.1
>


--
Thanks,
~Nick Desaulniers
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux