summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nv50_vm.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2011-06-03 09:57:27 +1000
committerBen Skeggs <bskeggs@redhat.com>2011-06-23 15:58:40 +1000
commitb79181cbad3ab40509ea6c985b940d48d90abc0b (patch)
tree820fe94e366f14618ad2347a94b162b308586b8b /drivers/gpu/drm/nouveau/nv50_vm.c
parentd359d51cba731a72fede6c09b1d567de02f081dc (diff)
downloadlinux-b79181cbad3ab40509ea6c985b940d48d90abc0b.tar.gz
linux-b79181cbad3ab40509ea6c985b940d48d90abc0b.tar.bz2
linux-b79181cbad3ab40509ea6c985b940d48d90abc0b.zip
drm/nv50-nvc0/vm: don't touch chan_vm
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv50_vm.c')
-rw-r--r--drivers/gpu/drm/nouveau/nv50_vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nv50_vm.c b/drivers/gpu/drm/nouveau/nv50_vm.c
index 1a0dd491a0e4..40b84f22d819 100644
--- a/drivers/gpu/drm/nouveau/nv50_vm.c
+++ b/drivers/gpu/drm/nouveau/nv50_vm.c
@@ -156,7 +156,7 @@ nv50_vm_flush(struct nouveau_vm *vm)
pinstmem->flush(vm->dev);
/* BAR */
- if (vm != dev_priv->chan_vm) {
+ if (vm == dev_priv->bar1_vm || vm == dev_priv->bar3_vm) {
nv50_vm_flush_engine(vm->dev, 6);
return;
}