[PATCH i-g-t] tests/i915_pm_rpm: Debug patch

Swati Sharma swati2.sharma at intel.com
Wed Jul 20 08:21:06 UTC 2022


Signed-off-by: Swati Sharma <swati2.sharma at intel.com>
---
 lib/drmtest.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/drmtest.c b/lib/drmtest.c
index 09a9a2292..0feb2bb8f 100644
--- a/lib/drmtest.c
+++ b/lib/drmtest.c
@@ -437,6 +437,10 @@ int __drm_open_driver_another(int idx, int chipset)
 
 		if (!found) {
 			drm_load_module(chipset);
+			/* userspace might miss major/minor registeration
+			 * uevent. give some time.
+			 */
+			sleep(1);
 			found = __get_card_for_nth_filter(idx, &card);
 		}
 
-- 
2.25.1



More information about the Intel-gfx-trybot mailing list