drm/i915: Add debugfs file to clear FIFO underruns.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 28 Mar 2018 10:05:26 +0000 (12:05 +0200)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Tue, 10 Apr 2018 14:29:24 +0000 (16:29 +0200)
commitd52ad9cb9d6d3b696d6b7ad20a381a8f5520ea03
tree1e9e373d793670a9b870d7ba58383b673efa7634
parentdaeb725e919c0d2d4b628aeaa1fa053125f888b2
drm/i915: Add debugfs file to clear FIFO underruns.

Adding a i915_fifo_underrun_reset debugfs file will make it possible
for IGT tests to clear FIFO underrun fallout at the start of each
subtest, and make re-enable FBC so tests always have maximum exposure
to features used by IGT. FIFO underruns and FBC bugs will no longer
hide when an earlier subtests disables both.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
References: https://bugs.freedesktop.org/show_bug.cgi?id=105685
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105681
Link: https://patchwork.freedesktop.org/patch/msgid/20180328100526.36467-1-maarten.lankhorst@linux.intel.com
Acked-by: Jani Nikula <jani.nikula@linux.intel.com>
[mlankhorst: Reset FBC reason if underrun had occurred. (vivijim)]
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_fbc.c