projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
497a3ff
)
vmwgfx: Make sure the reserved area is at the start of vram
author
Jakob Bornecrantz
<jakob@vmware.com>
Tue, 4 Oct 2011 18:13:15 +0000
(20:13 +0200)
committer
Dave Airlie
<airlied@redhat.com>
Wed, 5 Oct 2011 09:17:09 +0000
(10:17 +0100)
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
index c14eb764e096dec24c2096c5595f6723ff62cec0..7ee8b8e121851d7763f6ef012fb07aff82732bb9 100644
(file)
--- a/
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
+++ b/
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
@@
-717,6
+717,9
@@
static int vmw_surface_dmabuf_pin(struct vmw_framebuffer *vfb)
vmw_framebuffer_to_vfbs(&vfb->base);
unsigned long size = vfbs->base.base.pitch * vfbs->base.base.height;
int ret;
+ struct ttm_placement ne_placement = vmw_vram_ne_placement;
+
+ ne_placement.lpfn = (size + (PAGE_SIZE - 1)) / PAGE_SIZE;
vfbs->buffer = kzalloc(sizeof(*vfbs->buffer), GFP_KERNEL);
if (unlikely(vfbs->buffer == NULL))