lib: Fix assert failure in ring stop code
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 16 Apr 2014 14:07:07 +0000 (17:07 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 16 Apr 2014 16:21:17 +0000 (19:21 +0300)
commit4aa2c102b933d11cc85e0dc6fe607924e248b652
tree10704d2fff44e7a5aefc6f31098ea979e41411ec
parent43c2ed758fea849d666af519cd2382d6d6bc6607
lib: Fix assert failure in ring stop code

The assert in igt_set_stop_rings() is a bit bogus. Suppsoedly it was
meant to assure that the caller always restores the rings to running
state after stopping them. But in its current form it will trigger
any time someone calls the function and the rings were already stopped.
So you can't even restore the rings to running state w/o the assert
triggering.

Fix it up so that it'll ignore the current ring state when we're trying
to restore the rings back to running state.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
lib/igt_debugfs.c