[Intel-gfx] [PATCH igt 2/4] lib/igt_debufs: Add IGT_NO_FORCEWAKE environment variable
ville.syrjala at linux.intel.com
ville.syrjala at linux.intel.com
Wed Jun 11 18:41:18 CEST 2014
From: Ville Syrjälä <ville.syrjala at linux.intel.com>
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 at linux.intel.com>
---
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
More information about the Intel-gfx
mailing list