drm/i915: Hold RPM reference while setting freq limits through sysfs
authorSagar Arun Kamble <sagar.a.kamble@intel.com>
Mon, 8 Feb 2016 17:17:11 +0000 (22:47 +0530)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 2 Mar 2016 16:50:47 +0000 (18:50 +0200)
commit933bfb44b228f26e09364d122576c8e938588d4f
tree8959a980cba4268805cbbe479f39d44d3781ce83
parentca377809d657ea3ba249e97d073a7373e383ab6a
drm/i915: Hold RPM reference while setting freq limits through sysfs

This changes ensures device is active when frequency limits are changed.
This is needed as we are writing to register RPNSWREQ in intel_set_rps.
If not done, might lead to undesired errors like:
[ 1965.189137] [drm:fw_domains_get] *ERROR* blitter: timed out waiting for forcewake ack to clear.

v2: Added elaborate commit message. (Jani)
    Fixing RPM reference drop in early exit paths. (Ville)

Signed-off-by: Sagar Arun Kamble <sagar.a.kamble@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1454951831-11778-1-git-send-email-sagar.a.kamble@intel.com
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
drivers/gpu/drm/i915/i915_sysfs.c