drm/i915/debugfs: Add i915_hpd_storm_ctl
authorLyude <lyude@redhat.com>
Sat, 4 Feb 2017 02:18:25 +0000 (21:18 -0500)
committerLyude <lyude@redhat.com>
Fri, 10 Feb 2017 19:04:00 +0000 (14:04 -0500)
commit317eaa95081bfa081a5bf147e175b4e007e5a105
treeb11f511ef2291abfa31ca2c5bd9fb02f7205a76d
parent6401c37dbd6264b045961868c1438bf03efdd104
drm/i915/debugfs: Add i915_hpd_storm_ctl

This adds a file in i915's debugfs directory that allows userspace to
manually control HPD storm detection. This is mainly for hotplugging
tests, where we might want to test HPD storm functionality or disable
storm detection to speed up hotplugging tests without breaking anything.

Changes since v1:
- Make HPD storm interval configurable
- Misc code cleanup

Signed-off-by: Lyude <lyude@redhat.com>
Acked-by: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Tomeu Vizoso <tomeu@tomeuvizoso.net>
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/intel_hotplug.c