diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2013-07-07 20:40:35 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2013-07-07 20:52:02 -0400 |
commit | 1bb3f6a252c92cbc07884091e185a51b4ccb4f1d (patch) | |
tree | 1ceb01dc2104bb4a1bc6822f9086ab7b35e52e8e /drivers/gpu/drm | |
parent | bf03d1b293cc556df53545e318110505014d805e (diff) |
drm/nouveau: fix minor thinko causing bo moves to not be async on kepler
Reported-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_bo.c | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_drm.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_bo.c b/drivers/gpu/drm/nouveau/nouveau_bo.c index a1cf8255db50..4b1afb131380 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bo.c +++ b/drivers/gpu/drm/nouveau/nouveau_bo.c | |||
@@ -968,7 +968,7 @@ nouveau_bo_move_m2mf(struct ttm_buffer_object *bo, int evict, bool intr, | |||
968 | bool no_wait_gpu, struct ttm_mem_reg *new_mem) | 968 | bool no_wait_gpu, struct ttm_mem_reg *new_mem) |
969 | { | 969 | { |
970 | struct nouveau_drm *drm = nouveau_bdev(bo->bdev); | 970 | struct nouveau_drm *drm = nouveau_bdev(bo->bdev); |
971 | struct nouveau_channel *chan = chan = drm->channel; | 971 | struct nouveau_channel *chan = chan = drm->ttm.chan; |
972 | struct nouveau_bo *nvbo = nouveau_bo(bo); | 972 | struct nouveau_bo *nvbo = nouveau_bo(bo); |
973 | struct ttm_mem_reg *old_mem = &bo->mem; | 973 | struct ttm_mem_reg *old_mem = &bo->mem; |
974 | int ret; | 974 | int ret; |
@@ -1052,6 +1052,7 @@ nouveau_bo_move_init(struct nouveau_drm *drm) | |||
1052 | } | 1052 | } |
1053 | 1053 | ||
1054 | drm->ttm.move = mthd->exec; | 1054 | drm->ttm.move = mthd->exec; |
1055 | drm->ttm.chan = chan; | ||
1055 | name = mthd->name; | 1056 | name = mthd->name; |
1056 | break; | 1057 | break; |
1057 | } | 1058 | } |
diff --git a/drivers/gpu/drm/nouveau/nouveau_drm.h b/drivers/gpu/drm/nouveau/nouveau_drm.h index f2b30f89dee0..41ff7e0d403a 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drm.h +++ b/drivers/gpu/drm/nouveau/nouveau_drm.h | |||
@@ -96,6 +96,7 @@ struct nouveau_drm { | |||
96 | int (*move)(struct nouveau_channel *, | 96 | int (*move)(struct nouveau_channel *, |
97 | struct ttm_buffer_object *, | 97 | struct ttm_buffer_object *, |
98 | struct ttm_mem_reg *, struct ttm_mem_reg *); | 98 | struct ttm_mem_reg *, struct ttm_mem_reg *); |
99 | struct nouveau_channel *chan; | ||
99 | int mtrr; | 100 | int mtrr; |
100 | } ttm; | 101 | } ttm; |
101 | 102 | ||