From: Ville Syrjälä <ville.syrjala@xxxxxxxxxxxxxxx> If IGT_NO_FORCEWAKE is set, skip the forcewake open. Useful when you want to poke at register without otherwise disturbing the GPU. Signed-off-by: Ville Syrjälä <ville.syrjala@xxxxxxxxxxxxxxx> --- lib/igt_debugfs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/igt_debugfs.c b/lib/igt_debugfs.c index 809d447..2f655a1 100644 --- a/lib/igt_debugfs.c +++ b/lib/igt_debugfs.c @@ -618,6 +618,8 @@ void igt_enable_prefault(void) */ int igt_open_forcewake_handle(void) { + if (getenv("IGT_NO_FORCEWAKE")) + return -1; return igt_debugfs_open("i915_forcewake_user", O_WRONLY); } -- 1.8.5.5 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/intel-gfx