Commit 6c429667 authored by Ben Skeggs's avatar Ben Skeggs

drm/nv50: fix vram ptes on IGPs to point at stolen system memory

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 76befb8c
...@@ -291,7 +291,13 @@ nv50_mem_vm_bind_linear(struct drm_device *dev, uint64_t virt, uint32_t size, ...@@ -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; virt = ((virt - dev_priv->vm_vram_base) >> 16) << 1;
size = (size >> 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); dev_priv->engine.instmem.prepare_access(dev, true);
while (size) { while (size) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment