diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-01-31 10:57:06 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-01-31 16:00:34 +0000 |
commit | d524f385a17a73e3cfeeb2ed5a0610f0f0e3a61b (patch) | |
tree | f0b97d32ee4f9579561dff501826711370b2dd89 /tests/kms_vblank.c | |
parent | 93aefe6baa3fabf8c0cabe83e185f7b8f8d8753d (diff) |
lib: Find the associated runtime-pm sysfs for the device
Remove the hardcoded path to the igfx (00:00:02.00) and instead pass in
the fd of the DRM device we wish to control, and look up the associated
device/power/ under sysfs.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Imre Deak <imre.deak@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Diffstat (limited to 'tests/kms_vblank.c')
-rw-r--r-- | tests/kms_vblank.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms_vblank.c b/tests/kms_vblank.c index 73694433..a895ab80 100644 --- a/tests/kms_vblank.c +++ b/tests/kms_vblank.c @@ -121,7 +121,7 @@ static void run_test(data_t *data, void (*testfunc)(data_t *, int, int)) prepare_crtc(data, fd, output); if (data->flags & RPM) - igt_require(igt_setup_runtime_pm()); + igt_require(igt_setup_runtime_pm(fd)); igt_info("Beginning %s on pipe %s, connector %s\n", igt_subtest_name(), kmstest_pipe_name(data->pipe), |