gma500: Mask out bits not part of the page table base address
authorPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
Fri, 8 Jul 2011 08:44:03 +0000 (09:44 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 8 Jul 2011 20:44:57 +0000 (13:44 -0700)
Otherwise we can't ioremap the gtt and the screen gets garbled.

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/gma500/gtt.c

index 28f2261b622224c0461b2e62f8074834725a185b..78dd01bb1eb6a2be2bcd5c06be17212fa1caa014 100644 (file)
@@ -397,7 +397,7 @@ int psb_gtt_init(struct drm_device *dev, int resume)
        /* The root resource we allocate address space from */
        dev_priv->gtt_initialized = 1;
 
-       pg->gtt_phys_start = dev_priv->pge_ctl;
+       pg->gtt_phys_start = dev_priv->pge_ctl & PAGE_MASK;
        
        /*
         *      FIXME: video mmu has hw bug to access 0x0D0000000,