[Intel-gfx] [PATCH i-g-t v2 0/8] extract cork and ring measure code

Daniele Ceraolo Spurio daniele.ceraolospurio at intel.com
Wed Oct 25 23:08:03 UTC 2017


The "cork" bo used to stall execution and the interruptible execbuf
used to measure the ring size are repeated almost identically in
several files. Extracting those to common files helps simplifying
the code and avoiding repetition.

Cc: Chris Wilson <chris at chris-wilson.co.uk>

Daniele Ceraolo Spurio (8):
  lib/igt_dummyload: add igt_cork
  lib/igt_gt: add intel_measure_ring_size
  tests/gem_exec_schedule: use new common functions
  tests/gem_exec_fence: use new common functions
  tests/gem_exec_latency: use new common functions
  tests/gem_wait: use igt_cork
  tests/gem_exec_await: use intel_measure_ring_size
  tests/gem_ringfill: use intel_measure_ring_size

 lib/igt_dummyload.c       |  58 +++++++++++++++++
 lib/igt_dummyload.h       |   8 +++
 lib/igt_gt.c              |  83 ++++++++++++++++++++++++
 lib/igt_gt.h              |   2 +
 tests/gem_exec_await.c    |  90 +-------------------------
 tests/gem_exec_fence.c    | 117 ++++-----------------------------
 tests/gem_exec_latency.c  |  97 ++++------------------------
 tests/gem_exec_schedule.c | 161 ++++++++++++----------------------------------
 tests/gem_ringfill.c      |  96 +--------------------------
 tests/gem_wait.c          |  54 +++-------------
 10 files changed, 226 insertions(+), 540 deletions(-)

-- 
1.9.1



More information about the Intel-gfx mailing list