Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH] [i-g-t] tests/amdgpu/amd_hotplug: add delay after igt_system_suspend_autoresume
@ 2023-04-24 13:48 Hersen Wu
  2023-04-24 16:07 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
  2023-04-24 16:49 ` [igt-dev] [PATCH] [i-g-t] " Rodrigo Siqueira Jordao
  0 siblings, 2 replies; 5+ messages in thread
From: Hersen Wu @ 2023-04-24 13:48 UTC (permalink / raw)
  To: igt-dev, rodrigo.siqueira, aurabindo.pillai, alex.hung,
	hamza.mahfooz
  Cc: Hersen Wu

at call back of igt_system_suspend_autoresume, linux kernel resume
finish and in d0 state. but user mode components may not be fully
out of sleep mode. add delay wait for system stable before issuing
debugfs_hotplug_trigger.

Signed-off-by: Hersen Wu <hersenxs.wu@amd.com>
---
 tests/amdgpu/amd_hotplug.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/amdgpu/amd_hotplug.c b/tests/amdgpu/amd_hotplug.c
index 736040a2..1c946ff8 100644
--- a/tests/amdgpu/amd_hotplug.c
+++ b/tests/amdgpu/amd_hotplug.c
@@ -133,6 +133,7 @@ static void test_hotplug_basic(data_t *data, bool suspend)
 	if (suspend) {
 		igt_system_suspend_autoresume(SUSPEND_STATE_MEM,
 					      SUSPEND_TEST_NONE);
+		sleep(30);
 	}
 
 	/* Trigger hotplug and confirm reference image is the same. */
-- 
2.25.1

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

end of thread, other threads:[~2023-04-24 19:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-24 13:48 [igt-dev] [PATCH] [i-g-t] tests/amdgpu/amd_hotplug: add delay after igt_system_suspend_autoresume Hersen Wu
2023-04-24 16:07 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
2023-04-24 16:49 ` [igt-dev] [PATCH] [i-g-t] " Rodrigo Siqueira Jordao
2023-04-24 19:02   ` Wu, Hersen
2023-04-24 19:15     ` Ville Syrjälä

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