summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorBen Skeggs <skeggsb@gmail.com>2007-08-15 14:14:23 +1000
committerBen Skeggs <skeggsb@gmail.com>2007-08-15 14:14:23 +1000
commit10f9b7bd0b471487371813083bd3481629b2a56f (patch)
treebd90ef52bfda7a9b050b364523d0489adb845409 /shared-core
parenta615d2fde77092062f7e2bbfa39705b5f34547e8 (diff)
nouveau: Use count parameter in nouveau_notifier_alloc().
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/nouveau_notifier.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/shared-core/nouveau_notifier.c b/shared-core/nouveau_notifier.c
index 91f605ec..71b8cbe1 100644
--- a/shared-core/nouveau_notifier.c
+++ b/shared-core/nouveau_notifier.c
@@ -45,11 +45,12 @@ nouveau_notifier_init_channel(struct nouveau_channel *chan)
flags = NOUVEAU_MEM_FB;
flags |= (NOUVEAU_MEM_MAPPED | NOUVEAU_MEM_FB_ACCEPTABLE);
- DRM_DEBUG("Allocating notifier block in %d\n", flags);
chan->notifier_block = nouveau_mem_alloc(dev, 0, PAGE_SIZE, flags,
(struct drm_file *)-2);
if (!chan->notifier_block)
return -ENOMEM;
+ DRM_DEBUG("Allocated notifier block in 0x%08x\n",
+ chan->notifier_block->flags);
ret = nouveau_mem_init_heap(&chan->notifier_heap,
0, chan->notifier_block->size);
@@ -99,7 +100,7 @@ nouveau_notifier_alloc(struct nouveau_channel *chan, uint32_t handle,
return -EINVAL;
}
- mem = nouveau_mem_alloc_block(chan->notifier_heap, 32, 0,
+ mem = nouveau_mem_alloc_block(chan->notifier_heap, count*32, 0,
(struct drm_file *)-2);
if (!mem) {
DRM_ERROR("Channel %d notifier block full\n", chan->id);