Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e912b6d2 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds
Browse files

gma500: Fix shmem mapping



GMA500 did it the old way and it's been on the TODO list to fix.
Current kernels now blow up if we use the old way so we'd better
do the work!

Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent c1aab02d
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@
 */

#include <drm/drmP.h>
#include <linux/shmem_fs.h>
#include "psb_drv.h"


@@ -203,9 +204,7 @@ static int psb_gtt_attach_pages(struct gtt_range *gt)
	gt->npage = pages;

	for (i = 0; i < pages; i++) {
		/* FIXME: needs updating as per mail from Hugh Dickins */
		p = read_cache_page_gfp(mapping, i,
					__GFP_COLD | GFP_KERNEL);
		p = shmem_read_mapping_page(mapping, i);
		if (IS_ERR(p))
			goto err;
		gt->pages[i] = p;