drm/i915: Hold rpm wakeref for debugfs/i915_drop_caches_set
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 15 Oct 2018 11:58:56 +0000 (12:58 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 15 Oct 2018 14:10:06 +0000 (15:10 +0100)
commit9d3eb2c33f03432a25a6a3ab3177f839f25cbaf5
tree93d1effccf9058d5aa091fbe8c890b0938dedd85
parent668b6c176c33f443a50afd981cc9c0939e411b3b
drm/i915: Hold rpm wakeref for debugfs/i915_drop_caches_set

Since we peek into HW state and poke around, it behoves us to acquire a
runtime pm wakeref beforehand.

References: https://bugs.freedesktop.org/show_bug.cgi?id=108343
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108364
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181015115856.18590-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_debugfs.c