drm/i915/selftests: Perform some basic cycle counting of MI ops
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 11 Nov 2019 17:27:16 +0000 (17:27 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 11 Nov 2019 18:30:13 +0000 (18:30 +0000)
commit3c7a44bbbfa7896df0aa08a77a15ddcf21d59498
tree334792814b1b902bb07f89cbbf603e3d6385ff49
parent31b61f0ef9af62b6404d8df5dcd2cf58f80c9f53
drm/i915/selftests: Perform some basic cycle counting of MI ops

Some basic information that is useful to know, such as how many cycles
is a MI_NOOP.

v2: Keep volatile pages pinned at all times! (Matthew)

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Anna Karas <anna.karas@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191111172716.23733-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/selftests/i915_gem_object_blt.c
drivers/gpu/drm/i915/gt/selftest_engine_cs.c
drivers/gpu/drm/i915/i915_pci.c
drivers/gpu/drm/i915/i915_selftest.h
drivers/gpu/drm/i915/selftests/i915_perf_selftests.h [new file with mode: 0644]
drivers/gpu/drm/i915/selftests/i915_selftest.c