Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 250675
b: refs/heads/master
c: 9766610
h: refs/heads/master
i:
  250673: c2ea6e4
  250671: 266de6d
v: v3
  • Loading branch information
Jimmy Rentz authored and Ben Skeggs committed May 16, 2011
1 parent 9296fa8 commit 85fd2a0
Show file tree
Hide file tree
Showing 3 changed files with 6 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: 2abdb057e45ea9b558653a97d979053cfdd1a04a
refs/heads/master: 976661093dab143f164b81f15133724fa2a4bb86
2 changes: 0 additions & 2 deletions trunk/drivers/gpu/drm/nouveau/nouveau_mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,6 @@ nouveau_mem_vram_fini(struct drm_device *dev)
{
struct drm_nouveau_private *dev_priv = dev->dev_private;

nouveau_bo_ref(NULL, &dev_priv->vga_ram);

ttm_bo_device_release(&dev_priv->ttm.bdev);

nouveau_ttm_global_release(dev_priv);
Expand Down
5 changes: 5 additions & 0 deletions trunk/drivers/gpu/drm/nouveau/nouveau_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,11 @@ static void nouveau_card_takedown(struct drm_device *dev)
engine->mc.takedown(dev);
engine->display.late_takedown(dev);

if (dev_priv->vga_ram) {
nouveau_bo_unpin(dev_priv->vga_ram);
nouveau_bo_ref(NULL, &dev_priv->vga_ram);
}

mutex_lock(&dev->struct_mutex);
ttm_bo_clean_mm(&dev_priv->ttm.bdev, TTM_PL_VRAM);
ttm_bo_clean_mm(&dev_priv->ttm.bdev, TTM_PL_TT);
Expand Down

0 comments on commit 85fd2a0

Please sign in to comment.