All of lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t 1/3] igt/kms_fbcon_fbt: Handle ENODEV when checking i915_edp_psr_status for chipset support
@ 2018-02-22  7:43 Marta Lofstedt
  2018-02-22  7:43 ` [igt-dev] [PATCH i-g-t 2/3] igt/kms_fronbuffer_tracking: " Marta Lofstedt
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Marta Lofstedt @ 2018-02-22  7:43 UTC (permalink / raw)
  To: igt-dev

If the machine doesn't support PSR, it will return -ENODEV from
i915_edp_psr_status, which we want to interpret as unsupported.
This is in line with what Chris just fixed for FBC.

Signed-off-by: Marta Lofstedt <marta.lofstedt@intel.com>
---
 tests/kms_fbcon_fbt.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/kms_fbcon_fbt.c b/tests/kms_fbcon_fbt.c
index 1b236f8b..6aa171e6 100644
--- a/tests/kms_fbcon_fbt.c
+++ b/tests/kms_fbcon_fbt.c
@@ -164,6 +164,8 @@ static bool psr_supported_on_chipset(int fd)
 {
 	char buf[256];
 
+	if (*buf == '\0') /* !HAS_PSR -> -ENODEV*/
+		return false;
 	igt_debugfs_read(fd, "i915_edp_psr_status", buf);
 	return strstr(buf, "Sink_Support: yes\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] 10+ messages in thread

end of thread, other threads:[~2018-03-07 17:01 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-22  7:43 [igt-dev] [PATCH i-g-t 1/3] igt/kms_fbcon_fbt: Handle ENODEV when checking i915_edp_psr_status for chipset support Marta Lofstedt
2018-02-22  7:43 ` [igt-dev] [PATCH i-g-t 2/3] igt/kms_fronbuffer_tracking: " Marta Lofstedt
2018-02-22  7:43 ` [igt-dev] [PATCH i-g-t 3/3] HACK to get some PSR tests run on BAT Marta Lofstedt
2018-02-22  7:46 ` [igt-dev] [PATCH i-g-t 1/3] igt/kms_fbcon_fbt: Handle ENODEV when checking i915_edp_psr_status for chipset support Chris Wilson
2018-02-22  7:48   ` Lofstedt, Marta
2018-03-06 14:56     ` Daniel Vetter
2018-03-07  6:16       ` Lofstedt, Marta
2018-03-07 17:01         ` Daniel Vetter
2018-02-22  8:39 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/3] " Patchwork
2018-02-22 10:51 ` [igt-dev] ✗ Fi.CI.IGT: warning " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.