Commit b807270c authored by Ben Skeggs's avatar Ben Skeggs

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

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 62465ac5
...@@ -67,6 +67,7 @@ nv40_instobj_ptrs = { ...@@ -67,6 +67,7 @@ nv40_instobj_ptrs = {
static void static void
nv40_instobj_release(struct nvkm_memory *memory) nv40_instobj_release(struct nvkm_memory *memory)
{ {
wmb();
} }
static void __iomem * static void __iomem *
...@@ -253,8 +254,8 @@ nv40_instmem_new(struct nvkm_device *device, int index, ...@@ -253,8 +254,8 @@ nv40_instmem_new(struct nvkm_device *device, int index,
else else
bar = 3; bar = 3;
imem->iomem = ioremap(device->func->resource_addr(device, bar), imem->iomem = ioremap_wc(device->func->resource_addr(device, bar),
device->func->resource_size(device, bar)); device->func->resource_size(device, bar));
if (!imem->iomem) { if (!imem->iomem) {
nvkm_error(&imem->base.subdev, "unable to map PRAMIN BAR\n"); nvkm_error(&imem->base.subdev, "unable to map PRAMIN BAR\n");
return -EFAULT; return -EFAULT;
......
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