drm/nouveau: fix minor thinko causing bo moves to not be async on kepler
authorBen Skeggs <bskeggs@redhat.com>
Mon, 8 Jul 2013 00:40:35 +0000 (10:40 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 8 Jul 2013 00:52:02 +0000 (10:52 +1000)
Reported-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/nouveau/nouveau_drm.h

index a1cf8255db50c82c21d45ead84141545058bcbfe..4b1afb131380312bc971117635c9ac072fbdba1a 100644 (file)
@@ -968,7 +968,7 @@ nouveau_bo_move_m2mf(struct ttm_buffer_object *bo, int evict, bool intr,
                     bool no_wait_gpu, struct ttm_mem_reg *new_mem)
 {
        struct nouveau_drm *drm = nouveau_bdev(bo->bdev);
-       struct nouveau_channel *chan = chan = drm->channel;
+       struct nouveau_channel *chan = chan = drm->ttm.chan;
        struct nouveau_bo *nvbo = nouveau_bo(bo);
        struct ttm_mem_reg *old_mem = &bo->mem;
        int ret;
@@ -1052,6 +1052,7 @@ nouveau_bo_move_init(struct nouveau_drm *drm)
                        }
 
                        drm->ttm.move = mthd->exec;
+                       drm->ttm.chan = chan;
                        name = mthd->name;
                        break;
                }
index f2b30f89dee0cdd6654e78c5fea55fdd6e9dd9e9..41ff7e0d403a7978b4331bb8a1d0c2985cea1c72 100644 (file)
@@ -96,6 +96,7 @@ struct nouveau_drm {
                int (*move)(struct nouveau_channel *,
                            struct ttm_buffer_object *,
                            struct ttm_mem_reg *, struct ttm_mem_reg *);
+               struct nouveau_channel *chan;
                int mtrr;
        } ttm;