OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17c8b96
)
drm/nouveau: fix nv04_sgdma_bind on non-"4kB pages" archs
author
Marcin Slusarz
<marcin.slusarz@gmail.com>
Mon, 22 Aug 2011 21:22:13 +0000
(23:22 +0200)
committer
Ben Skeggs
<bskeggs@redhat.com>
Fri, 9 Sep 2011 07:24:10 +0000
(17:24 +1000)
nv04_sgdma_bind binds the same page multiple times on
architectures where PAGE_SIZE != 4096.
Let's fix it.
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_sgdma.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/nouveau_sgdma.c
b/drivers/gpu/drm/nouveau/nouveau_sgdma.c
index
88062de
..
2706cb3
100644
(file)
--- a/
drivers/gpu/drm/nouveau/nouveau_sgdma.c
+++ b/
drivers/gpu/drm/nouveau/nouveau_sgdma.c
@@
-129,7
+129,7
@@
nv04_sgdma_bind(struct ttm_backend *be, struct ttm_mem_reg *mem)
for (j = 0; j < PAGE_SIZE / NV_CTXDMA_PAGE_SIZE; j++, pte++) {
nv_wo32(gpuobj, (pte * 4) + 0, offset_l | 3);
-
dma_offset
+= NV_CTXDMA_PAGE_SIZE;
+
offset_l
+= NV_CTXDMA_PAGE_SIZE;
}
}