gma500: Make GTT pages uncached
commitfb7ff7f66eeb137ec8d78e386c62638b95659dc6
authorAlan Cox <alan@linux.intel.com>
Thu, 16 Jun 2011 16:06:31 +0000 (16 17:06 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 28 Jun 2011 21:17:04 +0000 (28 14:17 -0700)
tree4ca7690422949b1f6c1ab95e0ef045867a49d957
parent7b847f6ded0ae3ee51d92089282d5c8f67b65b9e
gma500: Make GTT pages uncached

Clean up the GTT code a bit, make the pages uncached and go via the proper
interfaces. This avoids any aliasing problems.

On the CPU side we need to access the pages via their true addresses not via
the GTT. This is fine for GEM created fb objects for X. For the kernel fb
when not in stolen RAM we are going to need to use vm_map_ram() and hope we
have enough virtual address space to steal.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/gma500/psb_fb.c
drivers/staging/gma500/psb_gem.c
drivers/staging/gma500/psb_gtt.c