projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62465ac
)
drm/nouveau/imem/nv40: map bar2 write-combined
author
Ben Skeggs
<bskeggs@redhat.com>
Tue, 31 Oct 2017 17:56:19 +0000
(
03:56
+1000)
committer
Ben Skeggs
<bskeggs@redhat.com>
Thu, 2 Nov 2017 03:32:19 +0000
(13:32 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv40.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv40.c
b/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv40.c
index
5ae9dd2
..
01453fd
100644
(file)
--- a/
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv40.c
+++ b/
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv40.c
@@
-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;