]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915/gen6+: Interpret mailbox error flags
authorLyude <cpaul@redhat.com>
Wed, 17 Aug 2016 19:55:53 +0000 (15:55 -0400)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Mon, 22 Aug 2016 10:54:41 +0000 (12:54 +0200)
commit87660502f1a4d51fb043e89a45d30c9917787c22
treeb5b83146942aa0865961dc2c46f5bba16f86218f
parent1f061316cf556fe07804ca2eb30f7807cffc3f53
drm/i915/gen6+: Interpret mailbox error flags

In order to add proper support for the SAGV, we need to be able to know
what the cause of a failure to change the SAGV through the pcode mailbox
was. The reasoning for this is that some very early pre-release Skylake
machines don't actually allow you to control the SAGV on them, and
indicate an invalid mailbox command was sent.

This also might come in handy in the future for debugging.

Changes since v1:
 - Add functions for interpreting gen6 mailbox error codes along with
   gen7+ error codes, and actually interpret those codes properly
 - Renamed patch to reflect new behavior

Signed-off-by: Lyude <cpaul@redhat.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1471463761-26796-2-git-send-email-cpaul@redhat.com
[mlankhorst: -ENOSYS -> -ENXIO for checkpatch]
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_pm.c