tests/kms_pwrite_crc: Add pwrite vs display coherency test
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 13 Nov 2014 15:24:57 +0000 (17:24 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 13 Nov 2014 16:40:18 +0000 (18:40 +0200)
commitf12ed8305807975e232e42fd34ad75e1147a788e
treed7b56955969a6c313752af4f8a70a8e14628e578
parentebab9f080b24ac11507e872fcfdf58ea9cb7e6fc
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>
tests/.gitignore
tests/Makefile.sources
tests/kms_pwrite_crc.c [new file with mode: 0644]