drm/tests
Maarten Lankhorst 5ea6f1c326 nouveau: make nouveau importing global buffers completely thread-safe, with tests
While I've closed off most races in a previous patch, a small race still existed
where importing then unreffing cound cause an invalid bo. Add a test for this case.

Racing sequence fixed:

- thread 1 releases bo, refcount drops to zero, blocks on acquiring nvdev->lock.
- thread 2 increases refcount to 1.
- thread 2 decreases refcount to zero, blocks on acquiring nvdev->lock.

At this point the 2 threads will clean up the same bo.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@ubuntu.com>
Reviewed-By: Emil Velikov <emil.l.velikov@gmail.com>
2015-03-13 20:26:33 +01:00
..
exynos tests/exynos: improve error handling 2015-03-10 19:21:52 +00:00
kmstest autotools: add WARN_CFLAGS to all targets 2015-02-27 15:51:24 +00:00
modeprint autotools: add WARN_CFLAGS to all targets 2015-02-27 15:51:24 +00:00
modetest tests: add support for imx-drm 2015-02-25 17:51:22 +01:00
nouveau nouveau: make nouveau importing global buffers completely thread-safe, with tests 2015-03-13 20:26:33 +01:00
proptest autotools: add WARN_CFLAGS to all targets 2015-02-27 15:51:24 +00:00
radeon tests/radeon: set the list* functions as inline 2015-02-27 15:51:36 +00:00
tegra autotools: add WARN_CFLAGS to all targets 2015-02-27 15:51:24 +00:00
ttmtest Purge macro NEED_REPLIES 2010-07-01 13:12:55 -06:00
vbltest autotools: add WARN_CFLAGS to all targets 2015-02-27 15:51:24 +00:00
Makefile.am nouveau: make nouveau importing global buffers completely thread-safe, with tests 2015-03-13 20:26:33 +01:00
auth.c tests: fix implicit funciton declaration errors 2015-02-27 15:51:15 +00:00
dristat.c Rename DRM_NODE_RENDER to DRM_NODE_PRIMARY 2015-01-23 23:02:06 +00:00
drmstat.c all: include config.h only when available and use its defines 2014-09-01 16:06:01 +01:00
drmtest.c drmtest: make check should fail so hard on unable to open device 2011-09-26 16:03:20 +01:00
drmtest.h Use libudev in test case to only run gem tests for intel devices. 2009-04-06 17:13:01 -04:00
getclient.c tests: fix implicit funciton declaration errors 2015-02-27 15:51:15 +00:00
getstats.c tests: fix implicit funciton declaration errors 2015-02-27 15:51:15 +00:00
getversion.c tests: Use drmFreeVersion() instead of drmFree() 2014-04-17 16:21:47 +02:00
lock.c tests: fix implicit funciton declaration errors 2015-02-27 15:51:15 +00:00
name_from_fd.c tests: remove unused variables 2015-02-27 15:51:28 +00:00
openclose.c Add some trivial regression tests, one of which fails. 2007-07-19 04:59:59 -07:00
setversion.c tests: fix implicit funciton declaration errors 2015-02-27 15:51:15 +00:00
updatedraw.c tests: remove unused variables 2015-02-27 15:51:28 +00:00