Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180742
b: refs/heads/master
c: 6c42966
h: refs/heads/master
v: v3
  • Loading branch information
Ben Skeggs committed Feb 23, 2010
1 parent c8b199a commit 6642e1e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 76befb8c30cebe2af83fa346bdaf75b430893511
refs/heads/master: 6c42966768b0254f465a8f451333795283f53d22
8 changes: 7 additions & 1 deletion trunk/drivers/gpu/drm/nouveau/nouveau_mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,13 @@ nv50_mem_vm_bind_linear(struct drm_device *dev, uint64_t virt, uint32_t size,

virt = ((virt - dev_priv->vm_vram_base) >> 16) << 1;
size = (size >> 16) << 1;
phys |= ((uint64_t)flags << 32) | 1;

phys |= ((uint64_t)flags << 32);
phys |= 1;
if (dev_priv->vram_sys_base) {
phys += dev_priv->vram_sys_base;
phys |= 0x30;
}

dev_priv->engine.instmem.prepare_access(dev, true);
while (size) {
Expand Down

0 comments on commit 6642e1e

Please sign in to comment.