Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] igt/kms_frontbuffer_tracking: Skip tests if FBC was disabled
@ 2018-03-06  9:24 Marta Lofstedt
  2018-03-06  9:32 ` Chris Wilson
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Marta Lofstedt @ 2018-03-06  9:24 UTC (permalink / raw)
  To: igt-dev

If FBC has been disabled in the system due to previous
malfuction, we would save time on CI if we bail out early.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105359
Signed-off-by: Marta Lofstedt <marta.lofstedt@intel.com>
---
 tests/kms_frontbuffer_tracking.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c
index 43384801..9cddc4f6 100644
--- a/tests/kms_frontbuffer_tracking.c
+++ b/tests/kms_frontbuffer_tracking.c
@@ -1593,7 +1593,7 @@ static bool fbc_supported_on_chipset(void)
 	char buf[128];
 
 	debugfs_read("i915_fbc_status", buf);
-	if (*buf == '\0')
+	if (*buf == '\0' || strstr(buf, "FBC disabled: "))
 		return false;
 
 	return !strstr(buf, "FBC unsupported on this chipset\n");
-- 
2.11.0

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-03-06 13:34 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-06  9:24 [igt-dev] [PATCH i-g-t] igt/kms_frontbuffer_tracking: Skip tests if FBC was disabled Marta Lofstedt
2018-03-06  9:32 ` Chris Wilson
2018-03-06 10:39   ` Lofstedt, Marta
2018-03-06 10:44     ` Jani Nikula
2018-03-06 10:45     ` Chris Wilson
2018-03-06 10:55       ` Jani Nikula
2018-03-06 11:03         ` Chris Wilson
2018-03-06 11:32           ` Lofstedt, Marta
2018-03-06 11:40             ` Chris Wilson
2018-03-06 10:27 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-03-06 13:34 ` [igt-dev] ✗ Fi.CI.IGT: warning " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox