diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-05-10 11:38:39 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-05-10 12:15:58 +0100 |
commit | 70d381477b93f9acf0c041e451dacb1a130bfca7 (patch) | |
tree | f9dc199f664f12c19bad9287a7b677c57c9936c8 /benchmarks/gem_wsim.c | |
parent | dd7bc6dd0351e3bdeb412a9a29ce763d4cb4bf51 (diff) |
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 <chris@chris-wilson.co.uk>
Diffstat (limited to 'benchmarks/gem_wsim.c')
-rw-r--r-- | benchmarks/gem_wsim.c | 9 |
1 files changed, 7 insertions, 2 deletions
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) { |