drm/nouveau: Fix notifier blocks over the 4GB mark.
authorFrancisco Jerez <currojerez@riseup.net>
Sat, 19 Nov 2011 16:22:37 +0000 (17:22 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 21 Dec 2011 09:01:47 +0000 (19:01 +1000)
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_notifier.c

index 6abdbe6530a7b31254879ebed445b23cb2b1636c..2ef883c4bbc182cc85d1db2326a5c0d7cc3a6b64 100644 (file)
@@ -115,7 +115,7 @@ nouveau_notifier_alloc(struct nouveau_channel *chan, uint32_t handle,
        struct drm_nouveau_private *dev_priv = dev->dev_private;
        struct nouveau_gpuobj *nobj = NULL;
        struct drm_mm_node *mem;
-       uint32_t offset;
+       uint64_t offset;
        int target, ret;
 
        mem = drm_mm_search_free_in_range(&chan->notifier_heap, size, 0,