From a8ea5ddc7b6896eb192163ceb4a481d680fece2f Mon Sep 17 00:00:00 2001 From: Lyude Date: Wed, 22 Feb 2017 21:16:16 -0500 Subject: lib/igt_debugfs: Add functions/tests for controlling/testing HPD storm logic Recently we added i915_hpd_storm_ctl into i915's debugfs directory, which allows us to control the thresholds i915 uses for detecting hotplug interrupt storms from userspace, along with the ability to entirely disable them. This adds some helper functions into IGT to enable making use of this feature, along with adding some chamelium tests for it. Signed-off-by: Lyude --- lib/igt_debugfs.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/igt_debugfs.h') diff --git a/lib/igt_debugfs.h b/lib/igt_debugfs.h index 86c25dd3..5587ad40 100644 --- a/lib/igt_debugfs.h +++ b/lib/igt_debugfs.h @@ -129,6 +129,11 @@ int igt_pipe_crc_get_crcs(igt_pipe_crc_t *pipe_crc, int n_crcs, igt_crc_t **out_crcs); void igt_pipe_crc_collect_crc(igt_pipe_crc_t *pipe_crc, igt_crc_t *out_crc); +void igt_hpd_storm_set_threshold(unsigned int threshold); +void igt_hpd_storm_reset(void); +bool igt_hpd_storm_detected(void); +void igt_require_hpd_storm_ctl(void); + /* * Drop caches */ -- cgit v1.2.3