Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 260170
b: refs/heads/master
c: 1e5216e
h: refs/heads/master
v: v3
  • Loading branch information
Hugh Dickins authored and Keith Packard committed Jun 28, 2011
1 parent 1fe2754 commit 10456fa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 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: 8bc47de33569a111092a48465eb26cd855117e27
refs/heads/master: 1e5216e43846b7758b2a04b3612c475608a4b708
3 changes: 1 addition & 2 deletions trunk/drivers/gpu/drm/i915/i915_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -2182,9 +2182,8 @@ int i915_driver_unload(struct drm_device *dev)
/* Flush any outstanding unpin_work. */
flush_workqueue(dev_priv->wq);

i915_gem_free_all_phys_object(dev);

mutex_lock(&dev->struct_mutex);
i915_gem_free_all_phys_object(dev);
i915_gem_cleanup_ringbuffer(dev);
mutex_unlock(&dev->struct_mutex);
if (I915_HAS_FBC(dev) && i915_powersave)
Expand Down
5 changes: 5 additions & 0 deletions trunk/drivers/gpu/drm/i915/intel_overlay.c
Original file line number Diff line number Diff line change
Expand Up @@ -1412,6 +1412,8 @@ void intel_setup_overlay(struct drm_device *dev)
goto out_free;
overlay->reg_bo = reg_bo;

mutex_lock(&dev->struct_mutex);

if (OVERLAY_NEEDS_PHYSICAL(dev)) {
ret = i915_gem_attach_phys_object(dev, reg_bo,
I915_GEM_PHYS_OVERLAY_REGS,
Expand All @@ -1436,6 +1438,8 @@ void intel_setup_overlay(struct drm_device *dev)
}
}

mutex_unlock(&dev->struct_mutex);

/* init all values */
overlay->color_key = 0x0101fe;
overlay->brightness = -19;
Expand All @@ -1460,6 +1464,7 @@ void intel_setup_overlay(struct drm_device *dev)
i915_gem_object_unpin(reg_bo);
out_free_bo:
drm_gem_object_unreference(&reg_bo->base);
mutex_unlock(&dev->struct_mutex);
out_free:
kfree(overlay);
return;
Expand Down

0 comments on commit 10456fa

Please sign in to comment.