summaryrefslogtreecommitdiff
path: root/benchmarks/gem_wsim.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-05-09 22:33:17 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2017-05-10 12:15:58 +0100
commitd7bc419749d2f988f5632ba51c02197982da3c25 (patch)
treea64636bbecaebea02f3b3ec20b98b0f7b8521e41 /benchmarks/gem_wsim.c
parentf39a7c568599ddb763b6d146bb44574a355de9b7 (diff)
wsim: Stop treating wrk->status_page as just a single uint32_t
Map the whole page since we actually do use it! Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'benchmarks/gem_wsim.c')
-rw-r--r--benchmarks/gem_wsim.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/benchmarks/gem_wsim.c b/benchmarks/gem_wsim.c
index c4d0cd32..bd973afc 100644
--- a/benchmarks/gem_wsim.c
+++ b/benchmarks/gem_wsim.c
@@ -669,12 +669,11 @@ prepare_workload(unsigned int id, struct workload *wrk, unsigned int flags)
wrk->vcs_rr = id & 1;
if (flags & SEQNO) {
- const unsigned int status_sz = sizeof(uint32_t);
- uint32_t handle = gem_create(fd, status_sz);
+ uint32_t handle = gem_create(fd, 4096);
gem_set_caching(fd, handle, I915_CACHING_CACHED);
wrk->status_page_handle = handle;
- wrk->status_page = gem_mmap__cpu(fd, handle, 0, status_sz,
+ wrk->status_page = gem_mmap__cpu(fd, handle, 0, 4096,
PROT_READ);
}