I suspect that currently we have an issue in there with the runtime PM
refcounting, but silly me developed this on a machine with runtime PM
support ...
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
#include "drm.h"
#include "i915_drm.h"
#include "drmtest.h"
+#include "igt_debugfs.h"
#define OBJECT_SIZE (16*1024*1024)
igt_stop_helper(&reader);
}
+static void
+test_forcewake(void)
+{
+ int fw_fd;
+
+ fw_fd = igt_open_forcewake_handle();
+ igt_assert(fw_fd >= 0);
+ igt_system_suspend_autoresume();
+ close (fw_fd);
+}
+
int fd;
igt_main
igt_subtest("sysfs-reader")
test_sysfs_reader();
+ igt_subtest("forcewake")
+ test_forcewake();
+
igt_fixture
close(fd);
}