summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-10-07 11:50:57 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2015-10-07 14:27:54 +0100
commit87d95162904dfb6dbdab67226dbf7ada75ea6037 (patch)
tree4d3eae3e7154e44112a000b7df8d18b930843f3b
parent777c808c8dbfb898d80be2929e86ee9906f086e1 (diff)
tests/gem: Add blt bandwidth tester
-rw-r--r--tests.d/gem/gem_blt.test30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests.d/gem/gem_blt.test b/tests.d/gem/gem_blt.test
new file mode 100644
index 0000000..2ea48f6
--- /dev/null
+++ b/tests.d/gem/gem_blt.test
@@ -0,0 +1,30 @@
+test_exec_time=2
+
+[ -e $IGT_BENCHMARKS/gem_blt ] || return 1
+sudo -n true || return 1
+
+while read size batch count label; do
+ name="gem:blt:copy:${label}"
+ test_name="$test_name $name"
+ eval "${name}_run() { sudo $IGT_BENCHMARKS/gem_blt -r \$1 -s $size -c $count -b $batch; }"
+done<<SIZES
+4096 1 1 4KiBx1x1
+4096 64 1 4KiBx64x1
+4096 1 64 4KiBx1x64
+4096 64 64 4KiBx64x64
+4096 4096 1 4KiBx4096x1
+4096 1 4096 4KiBx1x4096
+4096 4096 4096 4KiBx4096x4096
+131072 1 1 128KiBx1x1
+131072 64 1 128KiBx64x1
+131072 1 64 128KiBx1x64
+131072 64 64 128KiBx64x64
+131072 1024 1 128KiBx1024x1
+131072 1 1024 128KiBx1x1024
+4194304 1 1 4MiBx1x1
+4194304 32 1 4MiBx32x1
+4194304 1 32 4MiBx1x32
+4194304 32 32 4MiBx32x32
+4194304 1024 1 4MiBx1024x1
+4194304 1 1024 4MiBx1x1024
+SIZES