summaryrefslogtreecommitdiff
path: root/lib/igt_aux.h
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2015-06-01 19:06:10 -0300
committerPaulo Zanoni <paulo.r.zanoni@intel.com>2015-06-11 10:41:51 -0300
commitd9ff9b3971121acdaedf45d95acceabbb1391547 (patch)
tree66fc865b0c322ff00cda08c46f02e9b545d47806 /lib/igt_aux.h
parent46a1791958f45cf1b15720b40aaca9306dd5227f (diff)
lib/igt_aux: add functions to manipulate i915.ko parameters
Some i915.ko features have very nice IGT tests, which are never executed because the features are disabled by default. This leads to unnoticed regressions both in the Kernel and in the IGT tests. We have seen this multiple times, for example, on FBC and PSR. We want to be able to run IGT and actually test these disabled-by-default features in order to make sure we at least don't break them even more. Sometimes they may be disabled for some specific reason, and we don't want to increase the set of reasons without noticing. To help solving this problem, this commit adds some helper functions that should make it easier to change certain i915.ko parameters and then restore their original values at the end of the test. With this, I'm hoping QA will be able to detect any regressions and automatically bisect them - or, with PRTS, reject the patches before they are even merged. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Diffstat (limited to 'lib/igt_aux.h')
-rw-r--r--lib/igt_aux.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/igt_aux.h b/lib/igt_aux.h
index b2dc2679..9ea50de2 100644
--- a/lib/igt_aux.h
+++ b/lib/igt_aux.h
@@ -145,4 +145,8 @@ void igt_unlock_mem(void);
ret_; \
})
+
+void igt_set_module_param(const char *name, const char *val);
+void igt_set_module_param_int(const char *name, int val);
+
#endif /* IGT_AUX_H */