[PATCH i-g-t] tests/i915_pm_rpm: Debug hack to test the uevent race
Anshuman Gupta
anshuman.gupta at intel.com
Tue Jul 19 14:05:50 UTC 2022
This is debug patch meant to test i915_pm_rpm at module-reload
test with igt tryboat. This loads the i915 module before
opening the fd.
Signed-off-by: Anshuman Gupta <anshuman.gupta at intel.com>
---
tests/i915/i915_pm_rpm.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/i915/i915_pm_rpm.c b/tests/i915/i915_pm_rpm.c
index e95875dc70..6997c3a6f3 100644
--- a/tests/i915/i915_pm_rpm.c
+++ b/tests/i915/i915_pm_rpm.c
@@ -825,6 +825,8 @@ static bool setup_environment(bool display_enabled)
if (has_runtime_pm)
goto out;
+ drm_load_module(DRIVER_INTEL);
+ sleep(1);
drm_fd = __drm_open_driver(DRIVER_INTEL);
igt_require(drm_fd != -1);
igt_device_set_master(drm_fd);
--
2.26.2
More information about the Intel-gfx-trybot
mailing list