summaryrefslogtreecommitdiff
path: root/tests/syncobj_timeline.c
AgeCommit message (Collapse)Author
2020-08-06syncobj_timeline: Tell the compiler to read from the threadChris Wilson
32bits-limit waits for the thread to indicate it has started by busy spinning on a common variable. The compiler is clever and knows that the variable cannot change within the thread, and turns it into an infinite loop! Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
2020-08-05tests/syncobj_timeline: add more timeline testsLionel Landwerlin
Including ordering tests and 32bit limit. v2: add point 0 signaling test (Lionel) v3: Use READ_ONCE() in thread checker (Chris) Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2020-08-05igt: add timeline test casesChunming Zhou
v2: adapt to new transfer ioctl v3: Drop useless uint64_t casts (Lionel) Fix timeline query prototypes (Lionel) Test multi wait with timeline & binary syncobjs (Lionel) v4: Switch from drmIoctl to igt_ioctl in tests/*.c (Chris) Clear out errno in helper functions (Chris) v5: Fix lib comments on transfer helpers (Lionel) v6: Add igt_describe() (Lionel) v7: Fix reset-during-wait-for-submit (point value was left uninitialized and we picked up a > 1 value mostly by chance). Signed-off-by: Chunming Zhou <david1.zhou@amd.com> Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> (v6)