On Mon, 20 Jul 2020 17:38:01 -0700 Tony Nguyen wrote:
> +             (cq->next_to_use)++;
> +             if (cq->next_to_use == cq->ring_size)
> +                     cq->next_to_use = 0;
> +     }
> +
> +     /* Force memory write to complete before letting hardware
> +      * know that there are new descriptors to fetch.
> +      */
> +     iecm_wmb();

dma_wmb() would probably be sufficient here?

> +     wr32(hw, cq->reg.tail, cq->next_to_use);

Reply via email to