Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH] [i-g-t] tests/amdgpu/amd_mem_leak: add delay after igt_system_suspend_autoresume
@ 2023-04-24 13:30 Hersen Wu
  2023-04-24 15:37 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
  0 siblings, 1 reply; 3+ messages in thread
From: Hersen Wu @ 2023-04-24 13:30 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 checking
memory leak.

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

diff --git a/tests/amdgpu/amd_mem_leak.c b/tests/amdgpu/amd_mem_leak.c
index dee563cb..7d920c11 100644
--- a/tests/amdgpu/amd_mem_leak.c
+++ b/tests/amdgpu/amd_mem_leak.c
@@ -173,6 +173,7 @@ static void test_suspend_resume(data_t *data)
 	igt_display_commit_atomic(display, DRM_MODE_ATOMIC_ALLOW_MODESET, NULL);
 
 	igt_system_suspend_autoresume(SUSPEND_STATE_MEM, SUSPEND_TEST_NONE);
+	sleep(30);
 
 	igt_assert_f(check_memleak(data), "memory leak detected\n");
 
-- 
2.25.1

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

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

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-24 13:30 [igt-dev] [PATCH] [i-g-t] tests/amdgpu/amd_mem_leak: add delay after igt_system_suspend_autoresume Hersen Wu
2023-04-24 15:37 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
2023-04-24 16:38   ` Kamil Konieczny

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