mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
drm/nouveau/imem/nv40: map bar2 write-combined
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
62465ac518
commit
b807270cbd
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue