[PATCH i-g-t v2] tests/i915_pm_rpm: Debug hack to test the uevent race

Anshuman Gupta anshuman.gupta at intel.com
Wed Jul 20 07:24:38 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 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/i915/i915_pm_rpm.c b/tests/i915/i915_pm_rpm.c
index e95875dc70..e1183aa497 100644
--- a/tests/i915/i915_pm_rpm.c
+++ b/tests/i915/i915_pm_rpm.c
@@ -825,6 +825,7 @@ static bool setup_environment(bool display_enabled)
 	if (has_runtime_pm)
 		goto out;
 
+	drm_load_module(DRIVER_INTEL);
 	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