]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
nouveau: nouveau_set_bo_placement takes TTM flags
authorDave Airlie <airlied@redhat.com>
Fri, 18 May 2012 14:31:12 +0000 (15:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Jun 2012 07:12:59 +0000 (15:12 +0800)
commit c284815debba2f14ee2fd07b1b4cc972ab116110 upstream.

This seems to be wrong to me, spotted while thinking about dma-buf.

Reviewed-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/nouveau/nouveau_bo.c

index 2ad49cbf7c8b272203976af98abb1479d6d6847c..5fb98de0c57d92f9c82f2b27e8d3f5bc835b0294 100644 (file)
@@ -1075,7 +1075,7 @@ nouveau_ttm_fault_reserve_notify(struct ttm_buffer_object *bo)
 
        nvbo->placement.fpfn = 0;
        nvbo->placement.lpfn = dev_priv->fb_mappable_pages;
-       nouveau_bo_placement_set(nvbo, TTM_PL_VRAM, 0);
+       nouveau_bo_placement_set(nvbo, TTM_PL_FLAG_VRAM, 0);
        return nouveau_bo_validate(nvbo, false, true, false);
 }