drm/i915: Don't restrict i915_wa_registers to BDW
authorDamien Lespiau <damien.lespiau@intel.com>
Sat, 30 Aug 2014 15:51:03 +0000 (16:51 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 3 Sep 2014 10:39:17 +0000 (12:39 +0200)
We have CHV code that already makes the test obsolete. Besides, when
num_wa_regs is 0 (platforms not gathering that W/A data), we expose
something sensible already.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Arun Siluvery <arun.siluvery@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c

index fc3d582a95301e67605439e38958c37d36bae16d..cd4f045f915d500481223181aba8422aac3bf0a9 100644 (file)
@@ -2636,11 +2636,6 @@ static int i915_wa_registers(struct seq_file *m, void *unused)
        struct drm_device *dev = node->minor->dev;
        struct drm_i915_private *dev_priv = dev->dev_private;
 
-       if (!IS_BROADWELL(dev)) {
-               DRM_DEBUG_DRIVER("Workaround table not available !!\n");
-               return -EINVAL;
-       }
-
        ret = mutex_lock_interruptible(&dev->struct_mutex);
        if (ret)
                return ret;