Skip to content

Commit

Permalink
drm/nv50-nvc0/vm: don't touch chan_vm
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information
Ben Skeggs committed Jun 23, 2011
1 parent d359d51 commit b79181c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/nv50_vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
6 changes: 5 additions & 1 deletion drivers/gpu/drm/nouveau/nvc0_vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,11 @@ nvc0_vm_flush(struct nouveau_vm *vm)
struct drm_device *dev = vm->dev;
struct nouveau_vm_pgd *vpgd;
unsigned long flags;
u32 engine = (dev_priv->chan_vm == vm) ? 1 : 5;
u32 engine;

engine = 1;
if (vm == dev_priv->bar1_vm || vm == dev_priv->bar3_vm)
engine |= 4;

pinstmem->flush(vm->dev);

Expand Down

0 comments on commit b79181c

Please sign in to comment.