tests: add kms_fbcon_fbt

This test should test the interactions between fbcon and the
frontbuffer tracking infrastructure.

Right now the PSR test fails, but as soon as we merge the following
kernel patches, the test wills tart passing:
 - drm/i915: PSR: Flush means invalidate + flush
 - drm/i915: fbdev restore mode needs to invalidate frontbuffer
 - drm/i915: fbdev_set_par reliably invalidating frontbuffer

I didn't want to make this a subtest of kms_frontbuffer_tracking just
because when I wrote it, I really didn't have in mind the fact that
someone might just close the DRM fd in the middle of a subtest.

After this commit we'll have a little bit of duplicated code among
tests. I'll clean this up later.

v2:
  - Refactor the code a little bit.
  - Add the suspend subtests.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
This commit is contained in:
Paulo Zanoni
2015-07-09 13:32:16 -03:00
parent 7c5a218cc3
commit 1048aa9aa5
3 changed files with 293 additions and 0 deletions
+1
View File
@@ -65,6 +65,7 @@ TESTS_progs_M = \
kms_cursor_crc \
kms_draw_crc \
kms_fbc_crc \
kms_fbcon_fbt \
kms_flip \
kms_flip_event_leak \
kms_flip_tiling \