]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: don't enable autosuspend on platforms without RPM support
authorImre Deak <imre.deak@intel.com>
Thu, 17 Dec 2015 17:04:33 +0000 (19:04 +0200)
committerImre Deak <imre.deak@intel.com>
Fri, 18 Dec 2015 13:52:31 +0000 (15:52 +0200)
commit24aa3cbbdadb447e991eedf30366d19e6bb63449
tree4de939a92ba58ae8c9a9790959d000d59dfa0937
parentaede4e8b3b0a2d918dbe4f3be1468d2ddbb6f1a6
drm/i915: don't enable autosuspend on platforms without RPM support

pm_runtime_{use,dont_use}_autosuspend() controls whether the device's
sysfs power/autosuspend_delay_ms file is writeable or returns -EIO on
access to user space. Since

commit 858d608fc4bea0d52b0993e97fac2f8573864360
Author: Imre Deak <imre.deak@intel.com>
Date:   Thu Dec 17 13:44:56 2015 +0200

  drm/i915: get a permanent RPM reference on platforms w/o RPM support

this sysfs file is writeable also on platforms without RPM support, but
userspace (at least IGT) depends on this file being unchangable to
determine whether the device supports runtime PM at all. So restore the
old behavior.

This gets rid of igt/pm_rpm failures on old platforms without RPM
support, where the test should be skipped.

Testcase: igt/pm_rpm/basic-rte
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: David Weinehall <david.weinehall@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1450371873-878-1-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/intel_runtime_pm.c