mirror of https://gitee.com/openkylin/linux.git
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);
|
nv_wo32(gpuobj, (pte * 4) + 0, dma_offset | 3);
|
||||||
pte += 1;
|
pte += 1;
|
||||||
} else {
|
} else {
|
||||||
nv_wo32(gpuobj, (pte * 4), dma_offset | 0x21);
|
nv_wo32(gpuobj, (pte * 4) + 0, 0x00000000);
|
||||||
nv_wo32(gpuobj, (pte * 4) + 4, 0x00000000);
|
nv_wo32(gpuobj, (pte * 4) + 4, 0x00000000);
|
||||||
pte += 2;
|
pte += 2;
|
||||||
}
|
}
|
||||||
|
@ -279,9 +279,8 @@ nouveau_sgdma_init(struct drm_device *dev)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (i = 0; i < obj_size; i += 8) {
|
for (i = 0; i < obj_size; i += 8) {
|
||||||
nv_wo32(gpuobj, i + 0,
|
nv_wo32(gpuobj, i + 0, 0x00000000);
|
||||||
dev_priv->gart_info.sg_dummy_bus | 0x21);
|
nv_wo32(gpuobj, i + 4, 0x00000000);
|
||||||
nv_wo32(gpuobj, i + 4, 0);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dev_priv->engine.instmem.flush(dev);
|
dev_priv->engine.instmem.flush(dev);
|
||||||
|
|
Loading…
Reference in New Issue