commit 7ef9c62fcd62d843bc23e4f7073bf3e22599638c Author: Pierre Willenbrock Date: Sat Oct 18 20:16:38 2008 +0200 Make GEM backing shmem storage allocate pages below 4G boundary Signed-off-by: Pierre Willenbrock diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c index ccd1afd..45a3d48 100644 --- a/drivers/gpu/drm/drm_gem.c +++ b/drivers/gpu/drm/drm_gem.c @@ -101,6 +101,9 @@ drm_gem_object_alloc(struct drm_device *dev, size_t size) return NULL; } + obj->filp->f_path.dentry->d_inode->i_mapping->flags &= ~__GFP_HIGHMEM; + obj->filp->f_path.dentry->d_inode->i_mapping->flags |= __GFP_DMA32; + kref_init(&obj->refcount); kref_init(&obj->handlecount); obj->size = size;