From 70d381477b93f9acf0c041e451dacb1a130bfca7 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 10 May 2017 11:38:39 +0100 Subject: wsim: Switch off heartbeat by default For reasons I haven't completely fathomed, adding a heartbeat per frame is upsetting the qd-balancer when run with just a single client, e.g. ./gem_wsim -n 341724 -w wsim/media_mfe2_480p.wsim -c 1 -r 100 -b 1 Signed-off-by: Chris Wilson --- benchmarks/gem_wsim.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'benchmarks/gem_wsim.c') diff --git a/benchmarks/gem_wsim.c b/benchmarks/gem_wsim.c index 4d02a1bc..686cf444 100644 --- a/benchmarks/gem_wsim.c +++ b/benchmarks/gem_wsim.c @@ -157,6 +157,7 @@ static int fd; #define VCS2REMAP (1<<4) #define INITVCSRR (1<<5) #define SYNCEDCLIENTS (1<<6) +#define HEARTBEAT (1<<7) #define VCS_SEQNO_IDX(engine) (((engine) - VCS1) * 16) #define VCS_SEQNO_OFFSET(engine) (VCS_SEQNO_IDX(engine) * sizeof(uint32_t)) @@ -1329,7 +1330,8 @@ run_workload(unsigned int id, struct workload *wrk, if (w->wait) { gem_sync(fd, w->obj[0].handle); - init_status_page(wrk, 0); + if (flags & HEARTBEAT) + init_status_page(wrk, 0); } if (qd_throttle > 0) { @@ -1589,7 +1591,7 @@ int main(int argc, char **argv) fd = drm_open_driver(DRIVER_INTEL); init_clocks(); - while ((c = getopt(argc, argv, "hqv2RSxc:n:r:w:W:t:b:")) != -1) { + while ((c = getopt(argc, argv, "hqv2RSHxc:n:r:w:W:t:b:")) != -1) { switch (c) { case 'W': if (master_workload >= 0) { @@ -1633,6 +1635,9 @@ int main(int argc, char **argv) case 'S': flags |= SYNCEDCLIENTS; break; + case 'H': + flags |= HEARTBEAT; + break; case 'b': i = find_balancer_by_name(optarg); if (i < 0) { -- cgit v1.2.3