From: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: [PATCH i-g-t] drv_hangman: Add test for modeset during gpu reset.
Date: Tue, 5 Apr 2016 13:00:44 +0200 [thread overview]
Message-ID: <57039ADC.4010601@linux.intel.com> (raw)
In-Reply-To: <1459853797-30180-1-git-send-email-maarten.lankhorst@linux.intel.com>
This adds a test that forces a modeset during gpu reset, which has broken
a few times in the past during the atomic rework.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com
---
diff --git a/tests/drv_hangman.c b/tests/drv_hangman.c
index f4cdadb80e02..8a17d7acff1b 100644
--- a/tests/drv_hangman.c
+++ b/tests/drv_hangman.c
@@ -324,6 +324,22 @@ static void hangcheck_unterminated(void)
close(fd);
}
+static void reset_with_forced_modeset(void)
+{
+ igt_hang_ring_t hang;
+ int fd = drm_open_driver(DRIVER_INTEL);
+
+ igt_require_hang_ring(fd, I915_EXEC_DEFAULT);
+
+ igt_set_module_param_int("force_reset_modeset_test", 1);
+
+ hang = igt_hang_ring(fd, I915_EXEC_DEFAULT);
+ igt_post_hang_ring(fd, hang);
+
+ igt_set_module_param_int("force_reset_modeset_test", 0);
+ close(fd);
+}
+
igt_main
{
const struct intel_execution_engine *e;
@@ -353,4 +369,7 @@ igt_main
igt_subtest("hangcheck-unterminated")
hangcheck_unterminated();
+
+ igt_subtest("reset-with-forced-modeset")
+ reset_with_forced_modeset();
}
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2016-04-05 11:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-05 10:56 [PATCH] drm/i915: Add a way to test the modeset done during gpu reset Maarten Lankhorst
2016-04-05 11:00 ` Maarten Lankhorst [this message]
2016-04-11 6:23 ` [PATCH v2 1/2] drm/i915: Fix modeset handling " Maarten Lankhorst
2016-04-11 6:23 ` [PATCH v2 2/2] drm/i915: Add a way to test the modeset done during gpu reset, v2 Maarten Lankhorst
2016-04-25 16:33 ` Ville Syrjälä
2016-04-20 7:02 ` [PATCH v2 1/2] drm/i915: Fix modeset handling during gpu reset Maarten Lankhorst
2016-04-25 16:10 ` Ville Syrjälä
2016-04-05 13:01 ` [PATCH] drm/i915: Add a way to test the modeset done " Ville Syrjälä
2016-04-05 13:37 ` ✗ Fi.CI.BAT: failure for " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=57039ADC.4010601@linux.intel.com \
--to=maarten.lankhorst@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox