Skip to contentSkip to conversation

drm/i915/selftests/perf: measure memcpy bw between regions

PATCH In review Matthew Auld 3 participants 3 messages Jan 29, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 drm/i915/selftests/perf: measure memcpy bw between regions

Measure the memcpy bw between our CPU accessible regions, trying all supported mapping combinations(WC, WB) across various sizes.

v2:
use smaller sizes
throw in memcpy32/memcpy64/memcpy_from_wc

---
 .../drm/i915/selftests/i915_perf_selftests.h  |   1 +
 .../drm/i915/selftests/intel_memory_region.c  | 203 ++++++++++++++++++
 2 files changed, 204 insertions(+)
drivers/gpu/drm/i915/selftests/i915_perf_selftests.h +1 -0
index 5a577a1332f5..3bf7f53e9924 100644
@@ -17,3 +17,4 @@
  */
 selftest(engine_cs, intel_engine_cs_perf_selftests)
 selftest(blt, i915_gem_object_blt_perf_selftests)
+selftest(region, intel_memory_region_perf_selftests)
drivers/gpu/drm/i915/selftests/intel_memory_region.c +203 -0

224 lines not on this page · raw message

Signature · 6 lines
2.20.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Reviewed-by on v3 1/1
#1 lore raw

Quoting Matthew Auld (2020-01-29 09:33:43)

Quoted 9 lines

Measure the memcpy bw between our CPU accessible regions, trying all supported mapping combinations(WC, WB) across various sizes.

v2:
use smaller sizes
throw in memcpy32/memcpy64/memcpy_from_wc

Looks good, already dispelling some of my theories about rep mov :)

Runs fast enough not to worry about and the results seem to match rough expectations.

-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#2 lore raw

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/selftests/perf: measure memcpy bw between regions (rev3)

In reply to Matthew Auld
== Series Details ==

== Series Details ==

Series: drm/i915/selftests/perf: measure memcpy bw between regions (rev3)
URL : https://patchwork.freedesktop.org/series/72621/
State : failure

== Summary ==

Applying: drm/i915/selftests/perf: measure memcpy bw between regions Using index info to reconstruct a base tree...
M drivers/gpu/drm/i915/selftests/i915_perf_selftests.h
M drivers/gpu/drm/i915/selftests/intel_memory_region.c
Falling back to patching base and 3-way merge...
No changes -- Patch already applied.

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx