Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228630
b: refs/heads/master
c: 5216782
h: refs/heads/master
v: v3
  • Loading branch information
Ben Skeggs committed Dec 21, 2010
1 parent 3186cc1 commit 8b26739
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: effd6e066f406277254ad7603cf2c7465c4f114b
refs/heads/master: 5216782bf8c195de3befe0742a877c987dd3c4fd
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 @@ -552,6 +552,10 @@ nouveau_card_init_channel(struct drm_device *dev)
if (ret)
return ret;

/* no dma objects on fermi... */
if (dev_priv->card_type >= NV_C0)
goto out_done;

ret = nouveau_gpuobj_dma_new(dev_priv->channel, NV_CLASS_DMA_IN_MEMORY,
0, dev_priv->vram_size,
NV_MEM_ACCESS_RW, NV_MEM_TARGET_VRAM,
Expand All @@ -576,6 +580,7 @@ nouveau_card_init_channel(struct drm_device *dev)
if (ret)
goto out_err;

out_done:
mutex_unlock(&dev_priv->channel->mutex);
return 0;

Expand Down

0 comments on commit 8b26739

Please sign in to comment.