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>
This commit is contained in:
Daniel Vetter 2013-12-06 08:39:31 +01:00
parent 5f40b23cfa
commit 509850bf48

View File

@ -660,9 +660,14 @@ static void test_close_pending_fork(void)
*/ */
pid = fork(); pid = fork();
if (pid == 0) { 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 * gem_quiescent_gpu() explicitly, as it is the
* key component to trigger the oops * 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(); const int fd2 = drm_open_any();
igt_assert(fd2 >= 0); igt_assert(fd2 >= 0);