diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-08-19 13:04:08 -0400 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-09-09 14:14:06 -0400 |
commit | 5ba2aaaaa1a282a71c27f385a743f0d86f3484ca (patch) | |
tree | e9a8d0c1dc2a46d4946a644fb44687de87ec02e3 /drivers/gpu/drm/i915/i915_debugfs.c | |
parent | df0e924883d029a8651a2a0c7b8da67a07611ed2 (diff) |
drm/i915/debug: Include Ironlake in self-refresh status
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_debugfs.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_debugfs.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 7700ccf25784..3d882b70af16 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c | |||
@@ -752,15 +752,17 @@ static int i915_sr_status(struct seq_file *m, void *unused) | |||
752 | drm_i915_private_t *dev_priv = dev->dev_private; | 752 | drm_i915_private_t *dev_priv = dev->dev_private; |
753 | bool sr_enabled = false; | 753 | bool sr_enabled = false; |
754 | 754 | ||
755 | if (IS_I965GM(dev) || IS_I945G(dev) || IS_I945GM(dev)) | 755 | if (IS_IRONLAKE(dev)) |
756 | sr_enabled = I915_READ(WM1_LP_ILK) & WM1_LP_SR_EN; | ||
757 | else if (IS_I965GM(dev) || IS_I945G(dev) || IS_I945GM(dev)) | ||
756 | sr_enabled = I915_READ(FW_BLC_SELF) & FW_BLC_SELF_EN; | 758 | sr_enabled = I915_READ(FW_BLC_SELF) & FW_BLC_SELF_EN; |
757 | else if (IS_I915GM(dev)) | 759 | else if (IS_I915GM(dev)) |
758 | sr_enabled = I915_READ(INSTPM) & INSTPM_SELF_EN; | 760 | sr_enabled = I915_READ(INSTPM) & INSTPM_SELF_EN; |
759 | else if (IS_PINEVIEW(dev)) | 761 | else if (IS_PINEVIEW(dev)) |
760 | sr_enabled = I915_READ(DSPFW3) & PINEVIEW_SELF_REFRESH_EN; | 762 | sr_enabled = I915_READ(DSPFW3) & PINEVIEW_SELF_REFRESH_EN; |
761 | 763 | ||
762 | seq_printf(m, "self-refresh: %s\n", sr_enabled ? "enabled" : | 764 | seq_printf(m, "self-refresh: %s\n", |
763 | "disabled"); | 765 | sr_enabled ? "enabled" : "disabled"); |
764 | 766 | ||
765 | return 0; | 767 | return 0; |
766 | } | 768 | } |