diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-08-15 21:58:06 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-08-16 09:58:09 +0100 |
commit | 6dea0d84210770fbd89404d95274a019ec4052f3 (patch) | |
tree | 86fe5840a779274d7da0c198154cc44c8f89a6ad /tests/pm_rpm.c | |
parent | a3228b340c52f4ad2bf35af866f77603fe2d25d8 (diff) |
igt/pm_rpm: Avoid at_exit_drm_fd
Keep the drm_fd owned by pm_rpm as we need to relinquish all ownership
of the device in order to unload the module.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Diffstat (limited to 'tests/pm_rpm.c')
-rw-r--r-- | tests/pm_rpm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/pm_rpm.c b/tests/pm_rpm.c index c0212ed7..f0781617 100644 --- a/tests/pm_rpm.c +++ b/tests/pm_rpm.c @@ -697,7 +697,10 @@ static bool setup_environment(void) if (has_runtime_pm) goto out; - drm_fd = drm_open_driver_master(DRIVER_INTEL); + drm_fd = __drm_open_driver(DRIVER_INTEL); + igt_require(drm_fd != -1); + igt_device_set_master(drm_fd); + debugfs = igt_debugfs_dir(drm_fd); igt_require(debugfs != -1); |