Skip to content

Commit

Permalink
drm/nouveau/imem/nv40: map bar2 write-combined
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information
Ben Skeggs committed Nov 2, 2017
1 parent 62465ac commit b807270
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv40.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ nv40_instobj_ptrs = {
static void
nv40_instobj_release(struct nvkm_memory *memory)
{
wmb();
}

static void __iomem *
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit b807270

Please sign in to comment.