Tiago Vignatti
4d77c22da7
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 this same binary a few times cause
it's not 100% reproducible -- what I usually do is the following, using '-n'
option to not call the sync ioctls:
$ while ((1)) ; do ./kms_mmap_write_crc -n; done # in terminal A
$ find / # in terminal B
That will most likely trashes the memory 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.
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
2015-12-16 19:14:13 -02: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
2015-12-04 16:35:31 +01: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
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
2015-09-11 14:39:43 +01:00
2015-11-03 19:46:11 +00:00
2015-09-11 14:39:43 +01:00
2015-09-11 14:39:43 +01:00
2015-08-21 09:37:10 +01:00
2015-12-11 11:55:26 +00: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
2015-11-27 10:03:55 +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
2015-09-11 14:39:43 +01:00
2015-09-11 14:39:43 +01:00
2015-11-03 19:46:11 +00:00
2015-11-03 19:46:11 +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-12-16 13:46:47 +00:00
2015-12-04 16:33:58 +01:00
2015-12-04 16:33:58 +01:00
2015-09-11 14:39:43 +01:00
2015-09-11 14:39:43 +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
2015-12-16 19:55:36 +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-10-12 19:57:58 +03: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-12-16 10:21:14 +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-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
2015-11-12 09:30:39 +00: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-09-11 14:39:43 +01: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-11-03 19:46:11 +00:00
2015-09-11 14:39:43 +01:00
2015-09-24 14:24:18 +01:00
2015-09-11 14:39:43 +01: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
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-12-10 12:45:20 +01:00
2015-12-10 12:45:20 +01:00
2015-12-02 15:02:52 +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
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-12-14 10:23:58 +02:00
2015-12-03 11:12:38 +00:00
2015-09-11 14:39:43 +01:00
2015-09-24 11:04:34 +01: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-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
2015-12-16 19:11:15 -02: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-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
2015-11-03 19:46:12 +00: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
2015-09-11 14:39:43 +01:00
2015-12-04 10:49:11 +01:00
2015-12-08 15:23:10 +02:00
2015-12-07 09:06:33 -08:00
2015-09-11 14:39:43 +01:00
2015-12-16 19:14:13 -02:00
2015-09-11 14:39:43 +01:00
2015-11-03 19:46:11 +00:00
2015-11-03 19:46:11 +00:00
2015-10-23 15:40:09 +03:00
2015-11-03 19:46:11 +00:00
2015-09-11 14:39:43 +01:00
2015-12-09 07:23:50 -08:00
2015-09-11 14:39:43 +01:00
2015-09-11 14:39:43 +01:00
2015-11-17 14:34:51 +00:00
2015-12-04 10:49:11 +01: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
2015-12-16 16:54:28 +00:00
2015-12-16 19:14:13 -02:00
2012-08-08 08:51:55 +02:00
2015-11-03 19:46:11 +00:00
2015-12-04 10:49:11 +01:00
2015-09-28 18:23:52 +03:00
2015-12-04 10:49:11 +01:00
2015-12-09 17:27:56 +02:00
2015-09-11 14:39:43 +01:00
2015-12-16 19:13:16 -02: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
2015-08-21 09:37:10 +01:00
2015-12-04 10:49:11 +01:00
2012-01-24 10:50:10 +01:00
2015-12-03 11:36:02 +00:00
2012-01-15 16:05:43 +01:00