From 49c0a9938912d3badd7671be14fc7994cb90b765 Mon Sep 17 00:00:00 2001 From: Mika Kuoppala Date: Wed, 19 Feb 2014 18:43:25 +0200 Subject: [PATCH] tests/kms_flip: stop only ring when hanging the gpu Stopping all the rings will result multiple batches to hang. With multiple hangs from same context, the context gets banned and thus the gem_quietence_gpu will fail along with whole test. Fix this by stopping only one ring and thus the context gets blamed only once, allowing further gpu access. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=72631 Signed-off-by: Mika Kuoppala --- tests/kms_flip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/kms_flip.c b/tests/kms_flip.c index d8f6404..3e6260f 100644 --- a/tests/kms_flip.c +++ b/tests/kms_flip.c @@ -736,7 +736,7 @@ static void hang_gpu(struct test_output *o) { static const char dfs_base[] = "/sys/kernel/debug/dri"; static const char dfs_entry[] = "i915_ring_stop"; - static const char data[] = "0xf"; + static const char data[] = "0x01"; char fname[FILENAME_MAX]; int card_index = drm_get_card(); int fd; -- 1.7.9.5