提交 b807270c 编写于 作者: B Ben Skeggs

drm/nouveau/imem/nv40: map bar2 write-combined

Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
上级 62465ac5
......@@ -67,6 +67,7 @@ nv40_instobj_ptrs = {
static void
nv40_instobj_release(struct nvkm_memory *memory)
{
wmb();
}
static void __iomem *
......@@ -253,8 +254,8 @@ nv40_instmem_new(struct nvkm_device *device, int index,
else
bar = 3;
imem->iomem = ioremap(device->func->resource_addr(device, bar),
device->func->resource_size(device, bar));
imem->iomem = ioremap_wc(device->func->resource_addr(device, bar),
device->func->resource_size(device, bar));
if (!imem->iomem) {
nvkm_error(&imem->base.subdev, "unable to map PRAMIN BAR\n");
return -EFAULT;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册