kms_flip: Add flip-vs-modeset-vs-hang test
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 30 Jan 2013 12:52:24 +0000 (14:52 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 30 Jan 2013 15:06:29 +0000 (16:06 +0100)
commit8c4bb7022b0b8327c3b41eeb34a14c415cca0d80
treed68ca38d8421cc763d8ff5b0bcf1103d416f0a9b
parente1d1beb47849875b65b4f970251e58d5918d6187
kms_flip: Add flip-vs-modeset-vs-hang test

The flip-vs-modeset-vs-hang test will:
1. simulate a GPU hang
2. exec a nop batch
3. schedule a page flip
4. perform a modeset operation

With the current buggy kernel driver, the modeset operation will
hang indefinitely waiting for the flip to complete. Since the
rings are stopped, that will never happen. The current GPU reset
code doesn't play well with page flips either, so a GPU reset
won't fix things.

Once the kernel driver is fixed, the eventual GPU reset will
save the day.

The nop batch buffer is required only because the kernel can't
currently detect GPU hangs, unless there is at least one user
submitted request pending.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
tests/kms_flip.c