drm/i915: get runtime PM reference around GEM set_caching IOCTL
authorImre Deak <imre.deak@intel.com>
Wed, 4 Nov 2015 19:25:32 +0000 (21:25 +0200)
committerJani Nikula <jani.nikula@intel.com>
Mon, 16 Nov 2015 13:32:08 +0000 (15:32 +0200)
commitfd0fe6acf1dd88aabfbf383f7e4c16315387a7b7
treeda556063e145567180f69d4dcc7f014f5a003ac4
parent500a3d2eb3883b71350036e15aad286cc6e5df21
drm/i915: get runtime PM reference around GEM set_caching IOCTL

After Damien's D3 fix I started to get runtime suspend residency for the
first time and that revealed a breakage on the set_caching IOCTL path
that accesses the HW but doesn't take an RPM ref. Fix this up.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Cc: stable@vger.kernel.org
Link: http://patchwork.freedesktop.org/patch/msgid/1446665132-22491-1-git-send-email-imre.deak@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_gem.c