linux_dsm_epyc7002/drivers/gpu/drm/i915/gem/selftests
Chris Wilson 9bad40a27d drm/i915/selftests: Always flush before unpining after writing
Be consistent, and even when we know we had used a WC, flush the mapped
object after writing into it. The flush understands the mapping type and
will only clflush if !I915_MAP_WC, but will always insert a wmb [sfence]
so that we can be sure that all writes are visible.

v2: Add the unconditional wmb so we are know that we always flush the
writes to memory/HW at that point.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200511141304.599-1-chris@chris-wilson.co.uk
2020-05-11 16:50:04 +01:00
..
huge_gem_object.c drm/i915/selftests: mark huge_gem_object as not shrinkable 2020-03-23 13:49:31 +00:00
huge_gem_object.h drm/i915/selftests: Make headers self-contained 2020-01-03 13:33:36 +00:00
huge_pages.c drm/i915: Only close vma we open 2020-04-24 11:24:45 +01:00
i915_gem_client_blt.c drm/i915/gem: Implement legacy MI_STORE_DATA_IMM 2020-05-04 15:15:04 +01:00
i915_gem_coherency.c drm/i915/selftests: Always flush before unpining after writing 2020-05-11 16:50:04 +01:00
i915_gem_context.c drm/i915: Emit await(batch) before MI_BB_START 2020-05-11 16:50:04 +01:00
i915_gem_dmabuf.c drm/i915: Remove dma_buf_kmap selftest 2019-11-25 22:36:01 +01:00
i915_gem_execbuffer.c drm/i915/gem: Implement legacy MI_STORE_DATA_IMM 2020-05-04 15:15:04 +01:00
i915_gem_mman.c drm/i915: Implement vm_ops->access for gdb access into mmaps 2020-05-01 17:30:47 +01:00
i915_gem_object_blt.c drm/i915/selftests: Avoid choosing zero for phys_sz 2020-02-12 10:14:06 +00:00
i915_gem_object.c drm/i915: remove redundant assignment to variable err 2020-04-09 20:19:31 +01:00
i915_gem_phys.c drm/i915/selftests: Drop vestigal struct_mutex guards 2019-10-04 15:39:41 +01:00
igt_gem_utils.c drm/i915/selftests: Always flush before unpining after writing 2020-05-11 16:50:04 +01:00
igt_gem_utils.h
mock_context.c drm/i915/gem: Consolidate ctx->engines[] release 2020-03-03 17:30:20 +00:00
mock_context.h drm/i915/selftests: make mock_context.h self-contained 2019-12-23 12:38:34 +02:00
mock_dmabuf.c drm/i915: Drop dma_buf->k(un)map 2019-11-25 22:36:14 +01:00
mock_dmabuf.h drm/i915: change to_mock() to an inline function 2019-11-08 09:12:34 +00:00
mock_gem_object.h drm/i915/selftests: Make headers self-contained 2020-01-03 13:33:36 +00:00