[Openchrome-devel] drm-openchrome: drivers/gpu/drm
James Simmons
jsimmons at kemper.freedesktop.org
Sat Jun 29 12:39:53 PDT 2013
drivers/gpu/drm/via/via_crtc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit ce5007633327b2ca15ba02b3e7d99ffc389e8f2c
Author: James Simmons <jsimmons at infradead.org>
Date: Sat Jun 29 15:39:20 2013 -0400
Passing in the wrong size for the buffer to used for the cursor. Size for ttm_bo_kmap is in number of pages not bytes
diff --git a/drivers/gpu/drm/via/via_crtc.c b/drivers/gpu/drm/via/via_crtc.c
index 1c90e7c..6602a3c 100644
--- a/drivers/gpu/drm/via/via_crtc.c
+++ b/drivers/gpu/drm/via/via_crtc.c
@@ -117,7 +117,7 @@ via_crtc_cursor_set(struct drm_crtc *crtc, struct drm_file *file_priv,
}
user_kmap.bo = obj->driver_private;
- ret = ttm_bo_kmap(user_kmap.bo, 0, user_kmap.bo->mem.size, &user_kmap);
+ ret = ttm_bo_kmap(user_kmap.bo, 0, user_kmap.bo->num_pages, &user_kmap);
if (!ret) {
/* Copy data from userland to cursor memory region */
u32 *dst = iga->cursor_kmap.virtual, *src = user_kmap.virtual;
More information about the Openchrome-devel
mailing list