mirror of
https://github.com/torvalds/linux.git
synced 2024-12-17 16:43:08 +00:00
drm/nv50: mark PCIEGART pages non-present rather than using dummy page
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
24b102d348
commit
17b20348ea
@ -151,7 +151,7 @@ nouveau_sgdma_unbind(struct ttm_backend *be)
|
||||
nv_wo32(gpuobj, (pte * 4) + 0, dma_offset | 3);
|
||||
pte += 1;
|
||||
} else {
|
||||
nv_wo32(gpuobj, (pte * 4), dma_offset | 0x21);
|
||||
nv_wo32(gpuobj, (pte * 4) + 0, 0x00000000);
|
||||
nv_wo32(gpuobj, (pte * 4) + 4, 0x00000000);
|
||||
pte += 2;
|
||||
}
|
||||
@ -279,9 +279,8 @@ nouveau_sgdma_init(struct drm_device *dev)
|
||||
}
|
||||
} else {
|
||||
for (i = 0; i < obj_size; i += 8) {
|
||||
nv_wo32(gpuobj, i + 0,
|
||||
dev_priv->gart_info.sg_dummy_bus | 0x21);
|
||||
nv_wo32(gpuobj, i + 4, 0);
|
||||
nv_wo32(gpuobj, i + 0, 0x00000000);
|
||||
nv_wo32(gpuobj, i + 4, 0x00000000);
|
||||
}
|
||||
}
|
||||
dev_priv->engine.instmem.flush(dev);
|
||||
|
Loading…
Reference in New Issue
Block a user