[Intel-gfx] [PATCH 2/2] drm/i915/selftests: Replace opencoded clflush with drm_clflush_virt_range

Matthew Auld matthew.william.auld at gmail.com
Mon Jul 30 09:18:03 UTC 2018


On 30 July 2018 at 08:53, Chris Wilson <chris at chris-wilson.co.uk> wrote:
> We occasionally see that the clflush prior to a read of GPU data is
> returning stale data, reminiscent of much earlier bugs fixed by adding a
> second clflush for serialisation. As drm_clflush_virt_range() already
> supplies the workaround, use it rather than open code the clflush
> instruction.
>
> References: 396f5d62d1a5 ("drm: Restore double clflush on the last partial cacheline")
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld at intel.com>


More information about the Intel-gfx mailing list