Tiago Vignatti 0a9ae5be05 prime_mmap: Add basic tests to write in a bo using CPU
This patch adds test_correct_cpu_write, which maps the texture buffer through a
prime fd and then writes directly to it using the CPU. It stresses the driver
to guarantee cache synchronization among the different domains.

This test also adds test_forked_cpu_write, which creates the GEM bo in one
process and pass the prime handle of the it to another process, which in turn
uses the handle only to map and write. Grossly speaking this test simulates
Chrome OS  architecture, where the Web content ("unpriviledged process") maps
and CPU-draws a buffer, which was previously allocated in the GPU process
("priviledged process").

This requires kernel modifications (Daniel Thompson's "drm: prime: Honour
O_RDWR during prime-handle-to-fd").

Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
2015-08-10 13:25:11 -03:00
..
2014-07-23 16:43:05 +01:00
2015-04-22 18:00:42 +01:00
2014-12-04 10:17:16 +08:00
2015-07-20 18:13:37 +01:00
2015-07-20 18:13:37 +01:00
2013-12-05 15:32:42 -08:00
2014-02-20 13:42:25 +00:00
2011-03-29 22:52:50 +02:00
2015-07-02 08:17:17 +01:00
2015-05-14 17:00:40 +01:00
2015-07-02 08:17:17 +01:00
2015-04-14 17:44:34 +01:00
2015-02-25 16:59:22 +00:00
2015-07-14 12:52:09 -03:00
2015-04-16 16:49:46 +03:00
2015-07-02 08:17:17 +01:00
2015-07-02 08:17:17 +01:00
2015-07-02 08:17:17 +01:00
2015-03-25 17:52:11 +00:00
2015-03-25 17:52:11 +00:00