From a2904ead7487c6eba5d3ea8b93d7a9f45e883355 Mon Sep 17 00:00:00 2001 From: Paulo Zanoni Date: Tue, 21 Jul 2015 11:02:26 -0300 Subject: [PATCH] kms_frontbuffer_tracking: SKIP if not enough stolen is available This is not an FBC bug. Signed-off-by: Paulo Zanoni --- tests/kms_frontbuffer_tracking.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c index 631c9f3e..e9f1b279 100644 --- a/tests/kms_frontbuffer_tracking.c +++ b/tests/kms_frontbuffer_tracking.c @@ -824,6 +824,14 @@ static void fbc_setup_compressing(void) igt_info("FBC compression information not supported\n"); } +static bool fbc_not_enough_stolen(void) +{ + char buf[128]; + + igt_debugfs_read("i915_fbc_status", buf); + return strstr(buf, "FBC disabled: not enough stolen memory\n"); +} + static bool fbc_wait_until_enabled(void) { return igt_wait(fbc_is_enabled(), 5000, 1); @@ -1548,6 +1556,7 @@ static int adjust_assertion_flags(const struct test_mode *t, int flags) \ if (opt.check_status) { \ if (flags_ & ASSERT_FBC_ENABLED) { \ + igt_require(!fbc_not_enough_stolen()); \ igt_assert(fbc_wait_until_enabled()); \ \ if (fbc.supports_compressing && \