]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Report the failure to write to the punit
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 26 Jan 2017 10:19:19 +0000 (10:19 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 26 Jan 2017 17:09:44 +0000 (17:09 +0000)
commita5d96fc83ca8bfca511c75239e2022ce3ba1852b
tree1ea77d4b3d6092ea96be32a7e5ceacfc19caaa89
parentb6df22194038bd7d487c331c35a90a606f692ab2
drm/i915: Report the failure to write to the punit

The write to the punit may fail, so propagate the error code back to its
callers. Of particular interest are the RPS writes, so add appropriate
user error codes and logging.

v2: Add DEBUG for failed frequency changes during RPS.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170126101919.13211-1-chris@chris-wilson.co.uk
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/i915_sysfs.c
drivers/gpu/drm/i915/intel_pm.c
drivers/gpu/drm/i915/intel_sideband.c