summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorArun Siluvery <arun.siluvery@linux.intel.com>2014-08-26 14:44:51 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-09-03 11:04:44 +0200
commit888b59951ed5ac450fe3ddd7b3937d905b9bafbc (patch)
tree2b6e0fbe1cb2103445350c80ff0fc45dc7e7ff0a /drivers/gpu/drm/i915/i915_drv.h
parent86d7f23842f1bce3ab5e8c8d0c676112bbc4c99b (diff)
downloadlwn-888b59951ed5ac450fe3ddd7b3937d905b9bafbc.tar.gz
lwn-888b59951ed5ac450fe3ddd7b3937d905b9bafbc.zip
drm/i915/bdw: Export workaround data to debugfs
The workarounds that are applied are exported to a debugfs file; this is used to verify their state after the test case (reset or suspend/resume etc). This patch is only required to support i-g-t. Signed-off-by: Arun Siluvery <arun.siluvery@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index f13f30d65172..95820652e153 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -1556,6 +1556,20 @@ struct drm_i915_private {
struct intel_shared_dpll shared_dplls[I915_NUM_PLLS];
int dpio_phy_iosf_port[I915_NUM_PHYS_VLV];
+ /*
+ * workarounds are currently applied at different places and
+ * changes are being done to consolidate them so exact count is
+ * not clear at this point, use a max value for now.
+ */
+#define I915_MAX_WA_REGS 16
+ struct {
+ u32 addr;
+ u32 value;
+ /* bitmask representing WA bits */
+ u32 mask;
+ } intel_wa_regs[I915_MAX_WA_REGS];
+ u32 num_wa_regs;
+
/* Reclocking support */
bool render_reclock_avail;
bool lvds_downclock_avail;