diff options
author | Tvrtko Ursulin <tvrtko.ursulin@intel.com> | 2018-03-22 17:24:15 +0000 |
---|---|---|
committer | Tvrtko Ursulin <tvrtko.ursulin@intel.com> | 2018-03-26 10:20:24 +0100 |
commit | 9d9978aff16949c1a4e1508301d8169a21362ae8 (patch) | |
tree | 1d831414ad5ab4e643d071fcc06dd08cbdffcbd3 /benchmarks | |
parent | c2ee90774496a9772f17a7a359d7a670bf7d6b85 (diff) |
lib/dummyload: Add pollable spin batch
Pollable spin batch exports a spin->running pointer which can be checked
by dereferencing it to see if the spinner is actually executing on the
GPU.
This is useful for tests which want to make sure they do not proceed with
their next step whilst the spinner is potentially only being processed by
the driver and not actually executing.
Pollable spinner can be created with igt_spin_batch_new_poll or
__igt_spin_batch_new_poll, after which igt_spin_busywait_until_running can
be used to busy wait until it is executing.
v2:
* Move READ_ONCE to igt_core.
* Add igt_spin_busywait_until_running. (Chris Wilson)
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/gem_wsim.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/benchmarks/gem_wsim.c b/benchmarks/gem_wsim.c index c15dc365..57dec7b5 100644 --- a/benchmarks/gem_wsim.c +++ b/benchmarks/gem_wsim.c @@ -980,8 +980,6 @@ current_seqno(struct workload *wrk, enum intel_engine_id engine) return wrk->seqno[engine]; } -#define READ_ONCE(x) (*(volatile typeof(x) *)(&(x))) - static uint32_t read_status_page(struct workload *wrk, unsigned int idx) { |