Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 345111
b: refs/heads/master
c: ecd8fae
h: refs/heads/master
i:
  345109: 058cc89
  345107: b35c914
  345103: a9a9b73
v: v3
  • Loading branch information
Ben Widawsky authored and Daniel Vetter committed Oct 16, 2012
1 parent cadf0f0 commit 6a17da4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 31643d54a739382626c27c0f2a12b3bbc22d1a38
refs/heads/master: ecd8faeac4897619e6b26fbcdce62bb732d5a571
9 changes: 8 additions & 1 deletion trunk/drivers/gpu/drm/i915/i915_debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1069,7 +1069,7 @@ static int gen6_drpc_info(struct seq_file *m)
struct drm_info_node *node = (struct drm_info_node *) m->private;
struct drm_device *dev = node->minor->dev;
struct drm_i915_private *dev_priv = dev->dev_private;
u32 rpmodectl1, gt_core_status, rcctl1;
u32 rpmodectl1, gt_core_status, rcctl1, rc6vids = 0;
unsigned forcewake_count;
int count=0, ret;

Expand Down Expand Up @@ -1097,6 +1097,7 @@ static int gen6_drpc_info(struct seq_file *m)

rpmodectl1 = I915_READ(GEN6_RP_CONTROL);
rcctl1 = I915_READ(GEN6_RC_CONTROL);
sandybridge_pcode_read(dev_priv, GEN6_PCODE_READ_RC6VIDS, &rc6vids);
mutex_unlock(&dev->struct_mutex);

seq_printf(m, "Video Turbo Mode: %s\n",
Expand Down Expand Up @@ -1149,6 +1150,12 @@ static int gen6_drpc_info(struct seq_file *m)
seq_printf(m, "RC6++ residency since boot: %u\n",
I915_READ(GEN6_GT_GFX_RC6pp));

seq_printf(m, "RC6 voltage: %dmV\n",
GEN6_DECODE_RC6_VID(((rc6vids >> 0) & 0xff)));
seq_printf(m, "RC6+ voltage: %dmV\n",
GEN6_DECODE_RC6_VID(((rc6vids >> 8) & 0xff)));
seq_printf(m, "RC6++ voltage: %dmV\n",
GEN6_DECODE_RC6_VID(((rc6vids >> 16) & 0xff)));
return 0;
}

Expand Down

0 comments on commit 6a17da4

Please sign in to comment.