aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_channel.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2011-06-05 21:34:27 -0400
committerBen Skeggs <bskeggs@redhat.com>2011-06-23 01:59:07 -0400
commitb7cb6c01ee549b6c7c365c92f156983d346295a3 (patch)
treeed188dfde5cedb05f6c478925f947f0bb2a97ac9 /drivers/gpu/drm/nouveau/nouveau_channel.c
parent639212d01157266d9ee0b904fbc9f4a556e1c711 (diff)
drm/nouveau: modify gpuobj/ntfy takedown ordering
gpuobj really needs splitting into channel/gpuobj code instead... Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_channel.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_channel.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_channel.c b/drivers/gpu/drm/nouveau/nouveau_channel.c
index 764dd672112a..96ac906cfee5 100644
--- a/drivers/gpu/drm/nouveau/nouveau_channel.c
+++ b/drivers/gpu/drm/nouveau/nouveau_channel.c
@@ -27,6 +27,7 @@
27#include "nouveau_drv.h" 27#include "nouveau_drv.h"
28#include "nouveau_drm.h" 28#include "nouveau_drm.h"
29#include "nouveau_dma.h" 29#include "nouveau_dma.h"
30#include "nouveau_ramht.h"
30 31
31static int 32static int
32nouveau_channel_pushbuf_ctxdma_init(struct nouveau_channel *chan) 33nouveau_channel_pushbuf_ctxdma_init(struct nouveau_channel *chan)
@@ -316,8 +317,9 @@ nouveau_channel_put_unlocked(struct nouveau_channel **pchan)
316 nouveau_bo_unpin(chan->pushbuf_bo); 317 nouveau_bo_unpin(chan->pushbuf_bo);
317 nouveau_bo_ref(NULL, &chan->pushbuf_bo); 318 nouveau_bo_ref(NULL, &chan->pushbuf_bo);
318 } 319 }
319 nouveau_gpuobj_channel_takedown(chan); 320 nouveau_ramht_ref(NULL, &chan->ramht, chan);
320 nouveau_notifier_takedown_channel(chan); 321 nouveau_notifier_takedown_channel(chan);
322 nouveau_gpuobj_channel_takedown(chan);
321 323
322 nouveau_channel_ref(NULL, pchan); 324 nouveau_channel_ref(NULL, pchan);
323} 325}