tests/kms_pwrite_crc: Add pwrite vs display coherency test

Add a test to verify that pwriting to a future scanout buffer works
correctly. The specific problem occurs when the buffer is already
UC/WT before the pwrite, not the current scanout buffer, and not
currently in the CPU write domain. With the buggy kernel no clflush
will be performed after the pwrite, and hence we end up with cache
dirt on the display.

The problem only affects LLC platforms (non-LLC would clflush anyway
after pwrite), but we can let the test run on all platforms.

v2: Fix typos in commit message and add to .gitignore

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
This commit is contained in:
Ville Syrjälä
2014-11-13 17:24:57 +02:00
parent ebab9f080b
commit f12ed83058
3 changed files with 221 additions and 2 deletions
+1
View File
@@ -126,6 +126,7 @@ kms_mmio_vs_cs_flip
kms_pipe_crc_basic
kms_plane
kms_psr_sink_crc
kms_pwrite_crc
kms_render
kms_rotation_crc
kms_setmode