summaryrefslogtreecommitdiff
path: root/tests/gem_reset_stats.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-12-06 08:39:31 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-12-06 08:39:31 +0100
commit509850bf48199c9ec88b9ae03154e809da283d13 (patch)
treee2f5818e71f304ba50646ae12e9eaa66b04475a0 /tests/gem_reset_stats.c
parent5f40b23cfa0441fceba9d2cb6437724e880a8fc3 (diff)
tests/gem_reset_stats: document the new subtest a bit better
I wanted to add this to Mika's original patch but forgot to git add. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/gem_reset_stats.c')
-rw-r--r--tests/gem_reset_stats.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/gem_reset_stats.c b/tests/gem_reset_stats.c
index 095b14b5..176e1c85 100644
--- a/tests/gem_reset_stats.c
+++ b/tests/gem_reset_stats.c
@@ -660,9 +660,14 @@ static void test_close_pending_fork(void)
*/
pid = fork();
if (pid == 0) {
- /* Not first drm_open_any() so we need to do
+ /*
+ * Not first drm_open_any() so we need to do
* gem_quiescent_gpu() explicitly, as it is the
* key component to trigger the oops
+ *
+ * The crucial component is that we schedule the same noop batch
+ * on each ring. If gem_quiescent_gpu ever changes that we need
+ * to update this testcase.
*/
const int fd2 = drm_open_any();
igt_assert(fd2 >= 0);