Tiago Vignatti
7c89c9d734
tests: Add kms_mmap_write_crc for cache coherency tests
...
This program can be used to detect when CPU writes in the dma-buf mapped object
don't land in scanout due cache incoherency.
Although this seems a problem inherently of non-LCC machines ("Atom"), this
particular test catches a cache dirt on scanout on LLC machines as well. It's
inspired in Ville's kms_pwrite_crc.c and can be used also to test the
correctness of the driver's begin_cpu_access and end_cpu_access (which requires
i915 implementation.
To see the need for flush, one has to run using '-n' option to not call the
sync ioctls which, via a rather simple CPU hog the system will trashes the
caches, while the test will catch the coherency issue. If you now suppress
'-n', then things should just work like expected.
I tested this with !llc and llc platforms, BTY and IVY respectively.
v2: use prime_handle_to_fd_for_mmap instead.
v3: merge end_cpu_access() patch with this and provide options to disable sync.
v4: use library's prime_sync_{start,end} instead.
v7: use CPU hog instead and use testing rounds to catch the sync problems.
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2016-02-11 18:16:20 +01:00
..
2014-12-10 17:11:35 +00:00
2014-12-10 17:11:35 +00:00
2015-08-13 11:28:22 +01:00
2015-12-03 11:36:02 +00:00
2015-12-01 17:31:27 +01:00
2015-09-11 14:39:43 +01:00
2015-09-11 14:39:43 +01:00
2015-09-11 14:39:43 +01:00
2015-09-11 14:39:43 +01:00
2015-11-03 19:46:12 +00:00
2015-12-02 16:17:18 +00:00
2015-12-02 13:14:03 +02:00
2015-12-03 11:36:02 +00:00
2013-07-01 18:54:40 +02:00
2015-11-25 15:52:18 +02:00
2015-12-04 16:35:00 +01:00
2015-11-25 14:33:49 +00:00
2015-09-11 14:39:43 +01:00
2015-09-11 14:39:43 +01:00
2015-09-11 14:39:43 +01:00
2015-09-11 14:39:43 +01:00
2015-12-03 11:36:02 +00:00
2015-09-11 14:39:43 +01:00
2016-02-04 11:22:00 +00:00
2015-12-03 11:36:02 +00:00
2015-12-03 11:36:02 +00:00
2015-10-12 19:57:58 +03:00
2016-02-04 17:48:16 +00:00
2015-09-11 14:39:43 +01:00
2015-09-11 14:39:43 +01:00
2015-09-11 14:39:43 +01:00
2015-09-11 14:39:43 +01:00
2015-09-11 14:39:43 +01:00
2016-01-25 19:44:31 +01:00
2015-09-11 14:39:43 +01:00
2016-02-04 09:49:29 +00:00
2015-09-11 14:39:43 +01:00
2015-08-21 09:37:10 +01:00
2016-02-11 18:15:44 +01:00
2015-04-02 16:35:42 +01:00
2015-12-10 12:45:20 +01:00
2015-12-03 11:12:38 +00:00
2016-01-28 16:22:43 +00:00
2016-01-28 17:03:21 +00:00
2015-09-11 14:39:43 +01:00
2015-09-11 14:39:43 +01:00
2015-09-11 14:39:43 +01:00
2015-09-11 14:39:43 +01:00
2016-02-04 11:22:00 +00:00
2015-11-03 19:46:11 +00:00
2016-02-05 09:12:31 +00:00
2015-09-11 14:39:43 +01:00
2015-09-11 14:39:43 +01:00
2016-01-27 14:45:18 +00:00
2016-01-25 14:03:56 +00:00
2016-01-25 14:03:56 +00:00
2016-02-05 16:13:23 +00:00
2015-09-11 14:39:43 +01:00
2016-02-09 09:46:03 +01:00
2015-10-09 19:16:26 +03:00
2015-09-11 14:39:43 +01:00
2015-10-12 19:57:58 +03:00
2015-10-12 19:57:58 +03:00
2016-01-27 14:47:19 +00:00
2016-02-10 09:16:33 +01:00
2016-01-27 14:45:18 +00:00
2016-01-28 16:22:43 +00:00
2015-09-11 14:39:43 +01:00
2015-10-12 19:57:58 +03:00
2015-10-12 19:57:58 +03:00
2016-01-27 14:45:18 +00:00
2015-09-11 14:39:43 +01:00
2015-12-16 10:21:14 +01:00
2015-09-11 14:39:43 +01:00
2015-10-12 19:57:58 +03:00
2016-01-08 19:56:49 +02:00
2015-10-12 19:57:58 +03:00
2015-09-11 14:39:43 +01:00
2015-09-11 14:39:43 +01:00
2015-10-12 19:57:58 +03:00
2015-12-10 12:45:20 +01:00
2015-09-11 14:39:43 +01:00
2015-11-11 14:20:55 +00:00
2015-09-11 14:39:43 +01:00
2016-01-19 14:03:15 +00:00
2015-10-12 19:57:58 +03:00
2016-01-19 14:03:15 +00:00
2015-10-12 19:57:58 +03:00
2015-09-11 14:39:43 +01:00
2015-09-11 14:39:43 +01:00
2016-01-20 07:53:22 +00:00
2015-10-12 19:57:58 +03:00
2015-11-03 19:46:11 +00:00
2015-09-11 14:39:43 +01:00
2016-01-25 19:44:31 +01:00
2016-01-20 13:13:57 +00:00
2015-12-12 20:02:16 +00:00
2015-11-03 19:46:11 +00:00
2015-10-16 11:04:33 +01:00
2015-12-12 20:02:16 +00:00
2015-12-13 15:20:18 +00:00
2015-09-11 14:39:43 +01:00
2015-11-03 19:46:11 +00:00
2015-10-09 19:16:26 +03:00
2016-01-20 13:13:57 +00:00
2015-09-11 14:39:43 +01:00
2015-09-11 14:39:43 +01:00
2015-12-10 12:45:20 +01:00
2015-12-10 12:45:20 +01:00
2015-12-02 15:02:52 +00:00
2016-02-04 15:25:40 +00:00
2015-09-11 14:39:43 +01:00
2016-01-27 14:45:18 +00:00
2016-02-04 09:49:35 +00:00
2015-09-11 14:39:43 +01:00
2015-09-11 14:39:43 +01:00
2015-10-12 19:57:58 +03:00
2015-10-12 19:57:58 +03:00
2016-01-28 16:22:43 +00:00
2015-12-03 11:12:38 +00:00
2016-01-25 19:44:31 +01:00
2016-01-27 14:47:19 +00:00
2016-02-04 09:49:35 +00:00
2015-09-11 14:39:43 +01:00
2016-01-27 14:47:19 +00:00
2015-09-11 14:39:43 +01:00
2015-12-10 12:45:20 +01:00
2015-12-10 12:45:20 +01:00
2015-09-11 14:39:43 +01:00
2015-10-12 19:57:58 +03:00
2015-10-12 19:57:58 +03:00
2015-11-03 19:46:11 +00:00
2015-11-03 19:46:11 +00:00
2015-11-03 19:46:11 +00:00
2015-10-12 19:57:58 +03:00
2015-09-11 14:39:43 +01:00
2015-09-11 14:39:43 +01:00
2016-02-11 18:15:44 +01:00
2015-09-11 14:39:43 +01:00
2016-02-05 17:38:02 +00:00
2015-09-11 14:39:43 +01:00
2015-10-12 19:57:58 +03:00
2015-09-11 14:39:43 +01:00
2015-10-12 19:57:58 +03:00
2015-10-12 19:57:58 +03:00
2015-10-12 19:57:58 +03:00
2015-10-12 19:57:58 +03:00
2015-12-04 10:49:11 +01:00
2015-11-16 15:35:28 +02:00
2016-01-29 16:30:15 -02:00
2016-01-11 20:25:45 +02:00
2015-09-11 14:39:43 +01:00
2015-10-16 15:35:28 +01:00
2015-12-04 10:49:11 +01:00
2015-11-11 14:20:56 +00:00
2015-12-04 10:49:11 +01:00
2015-10-12 19:57:58 +03:00
2015-09-11 14:39:43 +01:00
2016-01-08 15:01:59 +02:00
2016-01-08 19:59:10 +02:00
2016-02-11 12:46:24 +01:00
2016-01-29 16:29:08 -02:00
2015-09-11 14:39:43 +01:00
2016-02-11 18:16:20 +01:00
2015-09-11 14:39:43 +01:00
2016-01-08 15:01:59 +02:00
2015-11-03 19:46:11 +00:00
2016-01-08 19:59:10 +02:00
2016-01-08 15:01:59 +02:00
2015-09-11 14:39:43 +01:00
2016-01-08 16:00:13 -08:00
2016-01-08 15:01:59 +02:00
2016-01-29 16:30:15 -02:00
2016-01-05 15:22:30 +01:00
2016-01-08 15:01:59 +02:00
2015-09-11 14:39:43 +01:00
2015-12-03 11:36:02 +00:00
2015-10-14 15:45:23 +01:00
2015-09-11 14:39:43 +01:00
2016-02-08 16:34:13 -08:00
2016-02-11 18:16:20 +01:00
2012-08-08 08:51:55 +02:00
2015-11-03 19:46:11 +00:00
2016-01-08 15:01:59 +02:00
2015-09-28 18:23:52 +03:00
2016-01-29 16:31:18 -02:00
2016-01-25 19:44:31 +01:00
2016-01-25 19:44:31 +01:00
2016-02-11 18:16:12 +01:00
2015-08-21 09:37:10 +01:00
2015-08-21 09:37:10 +01:00
2015-08-21 09:37:10 +01:00
2015-12-16 10:21:14 +01:00
2015-08-21 09:37:10 +01:00
2015-12-03 11:36:02 +00:00
2015-09-11 14:39:43 +01:00
2015-12-03 11:36:02 +00:00
2016-01-26 09:32:43 -08:00
2016-01-26 09:32:43 -08:00
2016-01-26 09:32:43 -08:00
2015-12-03 11:36:02 +00:00
2016-02-08 16:34:13 -08:00
2016-02-08 16:34:13 -08:00
2016-02-08 16:34:13 -08:00
2012-01-15 16:05:43 +01:00