Skip to content

Commit

Permalink
drm/nv50: fix vram ptes on IGPs to point at stolen system memory
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 Feb 23, 2010
1 parent 76befb8 commit 6c42966
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion drivers/gpu/drm/nouveau/nouveau_mem.c
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 6c42966

Please sign in to comment.