public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t 1/2] [CI] tests/pm_backlight.c: Fix brightness failure with system suspend
@ 2018-10-17  9:13 Jyoti Yadav
  2018-10-17  9:13 ` [igt-dev] [PATCH i-g-t 2/2] [CI] HAX: Adding test to fast feedback testlist Jyoti Yadav
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Jyoti Yadav @ 2018-10-17  9:13 UTC (permalink / raw)
  To: igt-dev; +Cc: Jyoti Yadav

This patch tries to fix the faliure occuring during subtest
"fade_with_suspend". Failure is occuring because, brightness
value is being checked before driver initializes fully after resume.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107847
Signed-off-by: Jyoti Yadav <jyoti.r.yadav@intel.com>
---
 tests/pm_backlight.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/pm_backlight.c b/tests/pm_backlight.c
index 32808cd..ec047b3 100644
--- a/tests/pm_backlight.c
+++ b/tests/pm_backlight.c
@@ -183,6 +183,7 @@ test_fade_with_suspend(struct context *context, igt_output_t *output)
 	igt_require(igt_wait_for_pm_status(IGT_RUNTIME_PM_STATUS_SUSPENDED));
 
 	igt_system_suspend_autoresume(SUSPEND_STATE_MEM, SUSPEND_TEST_NONE);
+	igt_require(igt_wait_for_pm_status(IGT_RUNTIME_PM_STATUS_ACTIVE));
 
 	test_fade(context);
 }
-- 
1.9.1

_______________________________________________
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-10-18 20:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-17  9:13 [igt-dev] [PATCH i-g-t 1/2] [CI] tests/pm_backlight.c: Fix brightness failure with system suspend Jyoti Yadav
2018-10-17  9:13 ` [igt-dev] [PATCH i-g-t 2/2] [CI] HAX: Adding test to fast feedback testlist Jyoti Yadav
2018-10-17  9:42 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/2,CI] tests/pm_backlight.c: Fix brightness failure with system suspend Patchwork
2018-10-17  9:44 ` [igt-dev] [PATCH i-g-t 1/2] [CI] " Chris Wilson
2018-10-17 14:19   ` Daniel Vetter
2018-10-18 14:15     ` Jani Nikula
2018-10-18 14:16       ` Jani Nikula
2018-10-17 12:03 ` [igt-dev] ✗ Fi.CI.IGT: failure for series starting with [i-g-t,1/2,CI] " Patchwork
2018-10-18 15:09 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/2,CI] tests/pm_backlight.c: Fix brightness failure with system suspend (rev2) Patchwork
2018-10-18 20:56 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

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