Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH] [i-g-t] lib/igt_amd: add delay waiting for hotplug complete
@ 2023-04-24 13:06 Hersen Wu
  2023-04-24 14:00 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Hersen Wu @ 2023-04-24 13:06 UTC (permalink / raw)
  To: igt-dev, rodrigo.siqueira, aurabindo.pillai, alex.hung,
	hamza.mahfooz
  Cc: Hersen Wu

when run amd tests, amd_hotplug, amd_link_setings, in patch,
amd_link_settings be skipped. debugfs_hpd_trigger requests
kernel to generate hot plug event, but not wait for process
finish.it takes time for kernel and user mode components to
complete process for hot plug.

Signed-off-by: Hersen Wu <hersenxs.wu@amd.com>
---
 lib/igt_amd.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/igt_amd.c b/lib/igt_amd.c
index bef9c193..09923101 100644
--- a/lib/igt_amd.c
+++ b/lib/igt_amd.c
@@ -799,6 +799,8 @@ int igt_amd_trigger_hotplug(int drm_fd, char *connector_name)
         wr_len = write(hpd_fd, enable_hpd, strlen(enable_hpd));
         close(hpd_fd);
         igt_assert_eq(wr_len, strlen(enable_hpd));
+	/* wait for hotplug process complete by kernel and user mode components */
+	sleep(30);
 
         return 0;
 }
-- 
2.25.1

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

end of thread, other threads:[~2023-04-25 22:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-24 13:06 [igt-dev] [PATCH] [i-g-t] lib/igt_amd: add delay waiting for hotplug complete Hersen Wu
2023-04-24 14:00 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2023-04-24 17:36 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2023-04-25 22:59 ` [igt-dev] [PATCH] [i-g-t] " Alex Hung

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