Re: [PATCH 1/3] drm/i915: Prepare for larger CSB status FIFO size

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

 



Quoting Mika Kuoppala (2018-11-27 17:38:43)
>  static void reset_csb_pointers(struct intel_engine_execlists *execlists)
>  {
> +       u32 reset_val;
>         /*
>          * After a reset, the HW starts writing into CSB entry [0]. We
>          * therefore have to set our HEAD pointer back one entry so that
> @@ -776,8 +777,19 @@ static void reset_csb_pointers(struct intel_engine_execlists *execlists)
>          * inline comparison of our cached head position against the last HW
>          * write works even before the first interrupt.
>          */
> -       execlists->csb_head = execlists->csb_write_reset;
> -       WRITE_ONCE(*execlists->csb_write, execlists->csb_write_reset);
> +       execlists->csb_head = execlists->csb_entries - 1;
> +
> +       if (execlists_mmio_mode(execlists)) {
> +               const u32 mask = execlists->csb_entries == GEN8_CSB_ENTRIES ?
> +                       GEN8_CSB_WRITE_PTR_MASK :
> +                       GEN11_CSB_WRITE_PTR_MASK;
> +
> +               reset_val = _MASKED_FIELD(mask, execlists->csb_head);
> +       } else {
> +               reset_val = execlists->csb_head;
> +       }

Think: did I need to change this?
-Chris
_______________________________________________
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