Skip to content

Commit

Permalink
drm/nvc0: skip dma object creation for drm channel
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information
Ben Skeggs committed Dec 21, 2010
1 parent effd6e0 commit 5216782
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions 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 5216782

Please sign in to comment.