Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/i915: Take into account fbc_status "stolen memory not initialised"
@ 2023-08-18  8:08 Jouni Högander
  2023-08-18  9:02 ` [igt-dev] ○ CI.xeBAT: info for " Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Jouni Högander @ 2023-08-18  8:08 UTC (permalink / raw)
  To: igt-dev

Earlier non initialized memory caused fbc_status debugfs interface not
being created at all. This was considered as "Unsupported chipset" by
certain igt testcases. Now fbc_status is informing "stolen memory not
initialised". Consider this again as "Unsupported chipset"

Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/9131
Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
---
 tests/i915/kms_fbcon_fbt.c            | 3 ++-
 tests/i915/kms_frontbuffer_tracking.c | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/tests/i915/kms_fbcon_fbt.c b/tests/i915/kms_fbcon_fbt.c
index e65cbda93..2cb0ffdb4 100644
--- a/tests/i915/kms_fbcon_fbt.c
+++ b/tests/i915/kms_fbcon_fbt.c
@@ -103,7 +103,8 @@ static bool fbc_supported_on_chipset(int device, int debugfs_fd)
 	if (ret < 0)
 		return false;
 
-	return !strstr(buf, "FBC unsupported on this chipset\n");
+	return !strstr(buf, "FBC unsupported on this chipset\n") &&
+		!strstr(buf, "stolen memory not initialised\n");
 }
 
 static bool connector_can_fbc(drmModeConnectorPtr connector)
diff --git a/tests/i915/kms_frontbuffer_tracking.c b/tests/i915/kms_frontbuffer_tracking.c
index 3e8f15bb0..136426204 100644
--- a/tests/i915/kms_frontbuffer_tracking.c
+++ b/tests/i915/kms_frontbuffer_tracking.c
@@ -1444,7 +1444,8 @@ static bool fbc_supported_on_chipset(void)
 	if (*buf == '\0')
 		return false;
 
-	return !strstr(buf, "FBC unsupported on this chipset\n");
+	return !strstr(buf, "FBC unsupported on this chipset\n") &&
+		!strstr(buf, "stolen memory not initialised\n");
 }
 
 static void setup_fbc(void)
-- 
2.34.1

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

end of thread, other threads:[~2023-08-21 11:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-18  8:08 [igt-dev] [PATCH i-g-t] tests/i915: Take into account fbc_status "stolen memory not initialised" Jouni Högander
2023-08-18  9:02 ` [igt-dev] ○ CI.xeBAT: info for " Patchwork
2023-08-18  9:14 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2023-08-19 12:13 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2023-08-21 11:46   ` Hogander, Jouni
2023-08-21 10:06 ` [igt-dev] [PATCH i-g-t] " Juha-Pekka Heikkila
2023-08-21 11:52   ` Hogander, Jouni

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