Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 300035
b: refs/heads/master
c: e90f3b6
h: refs/heads/master
i:
  300033: 9719bf8
  300031: aa42854
v: v3
  • Loading branch information
Chris Wilson authored and Daniel Vetter committed May 2, 2012
1 parent d5c8044 commit d918d4a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 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: 074b5e1a99fb5017122591d70098601e0484ca6a
refs/heads/master: e90f3b61f4432e3c5bb6b57f4b3e8d8cba747541
3 changes: 3 additions & 0 deletions trunk/drivers/gpu/drm/i915/i915_debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1224,6 +1224,9 @@ static int i915_emon_status(struct seq_file *m, void *unused)
unsigned long temp, chipset, gfx;
int ret;

if (!IS_GEN5(dev))
return -ENODEV;

ret = mutex_lock_interruptible(&dev->struct_mutex);
if (ret)
return ret;
Expand Down
15 changes: 10 additions & 5 deletions trunk/drivers/gpu/drm/i915/i915_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -1701,6 +1701,9 @@ void i915_update_gfx_val(struct drm_i915_private *dev_priv)
unsigned long diffms;
u32 count;

if (dev_priv->info->gen != 5)
return;

getrawmonotonic(&now);
diff1 = timespec_sub(now, dev_priv->last_time2);

Expand Down Expand Up @@ -2121,12 +2124,14 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags)
setup_timer(&dev_priv->hangcheck_timer, i915_hangcheck_elapsed,
(unsigned long) dev);

spin_lock(&mchdev_lock);
i915_mch_dev = dev_priv;
dev_priv->mchdev_lock = &mchdev_lock;
spin_unlock(&mchdev_lock);
if (IS_GEN5(dev)) {
spin_lock(&mchdev_lock);
i915_mch_dev = dev_priv;
dev_priv->mchdev_lock = &mchdev_lock;
spin_unlock(&mchdev_lock);

ips_ping_for_i915_load();
ips_ping_for_i915_load();
}

return 0;

Expand Down

0 comments on commit d918d4a

Please sign in to comment.