summaryrefslogtreecommitdiff
path: root/lib/igt_core.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2019-06-04 11:54:22 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2020-05-22 20:41:06 +0100
commit8cea80faed3d591a5ffe8d145836431cff3c860f (patch)
tree40c1c59232d589b8a5c3f4f083a28cd84bfa495f /lib/igt_core.h
parent74f7488fe4f8acf901b18fc9c6c4d45a972dcad5 (diff)
i915: Add gem_exec_endless
Start our preparations for guaranteeing endless execution. First, we just want to estimate the direct userspace dispatch overhead of running an endless chain of batch buffers. The legacy binding process here will be replaced by async VM_BIND, but for the moment this suffices to construct the GTT as required for arbitrary indirect execution. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com> Acked-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Diffstat (limited to 'lib/igt_core.h')
-rw-r--r--lib/igt_core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/igt_core.h b/lib/igt_core.h
index b97fa2fa..c5871520 100644
--- a/lib/igt_core.h
+++ b/lib/igt_core.h
@@ -1369,6 +1369,7 @@ void igt_kmsg(const char *format, ...);
#define KMSG_DEBUG "<7>[IGT] "
#define READ_ONCE(x) (*(volatile typeof(x) *)(&(x)))
+#define WRITE_ONCE(x, v) do *(volatile typeof(x) *)(&(x)) = (v); while (0)
#define MSEC_PER_SEC (1000)
#define USEC_PER_SEC (1000*MSEC_PER_SEC)